cft-builder 0.1.39 → 0.1.41
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.umd.cjs
CHANGED
|
@@ -1594,7 +1594,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1594
1594
|
}
|
|
1595
1595
|
}
|
|
1596
1596
|
`}}),p8=y.forwardRef(function(t,e){var n=$n(),r=y.useContext(rr),i=Wm.getProps(t,r),a=y.useState(i.id),s=p_(a,2),l=s[0],c=s[1],u=y.useState(i.collapsed),d=p_(u,2),f=d[0],h=d[1],m=i.toggleable?i.onToggle?i.collapsed:f:!1,g=y.useRef(null),v=y.useRef(null),A=l+"_header",w=l+"_content",x=Wm.setMetaData({props:i,state:{id:l,collapsed:m}}),S=x.ptm,E=x.cx,C=x.isUnstyled;fi(Wm.css.styles,C,{name:"fieldset"});var _=function(G){i.toggleable&&(m?T(G):N(G),i.onToggle&&i.onToggle({originalEvent:G,value:!m})),G.preventDefault()},T=function(G){i.onToggle||h(!1),i.onExpand&&i.onExpand(G)},N=function(G){i.onToggle||h(!0),i.onCollapse&&i.onCollapse(G)};Pi(function(){i.id||c(jo())});var O=function(G){(G.code==="Enter"||G.code==="NumpadEnter"||G.code==="Space")&&(_(G),G.preventDefault())},B=function(){var G=n({className:E("content")},S("content")),ae=n({ref:v,id:w,role:"region","aria-labelledby":A,className:E("toggleableContent")},S("toggleableContent")),Y=n({classNames:E("transition"),timeout:{enter:1e3,exit:450},in:!m,unmountOnExit:!0,options:i.transitionOptions},S("transition"));return y.createElement(Ho,Gm({nodeRef:v},Y),y.createElement("div",ae,y.createElement("div",G,i.children)))},M=function(){if(i.toggleable){var G=n({className:E("togglericon")},S("togglericon")),ae=m?i.expandIcon||y.createElement(Hm,G):i.collapseIcon||y.createElement(h8,G),Y=Qn.getJSXIcon(ae,G,{props:i});return Y}return null},z=function(){var G=n({className:E("legendTitle")},S("legendTitle")),ae=n({id:A,role:"button","aria-expanded":!m,"aria-controls":w,onKeyDown:O,onClick:_,"aria-label":i.legend,tabIndex:0},S("toggler"));if(i.toggleable){var Y=M();return y.createElement("a",ae,Y,y.createElement("span",G,i.legend),y.createElement(Qt,null))}return y.createElement("span",Gm({},G,{id:A}),i.legend)},P=function(){var G=n({className:E("legend")},S("legend"));if(i.legend!=null||i.toggleable){var ae=z();return y.createElement("legend",G,ae)}};y.useImperativeHandle(e,function(){return{props:i,getElement:function(){return g.current},getContent:function(){return v.current}}});var j=n({id:l,ref:g,style:i.style,className:pt(i.className,E("root")),onClick:i.onClick},Wm.getOtherProps(i),S("root")),de=P(),he=B();return y.createElement("fieldset",j,de,he)});p8.displayName="Fieldset";const WW=t=>o.jsx(rn,{target:`.${t==null?void 0:t.element}`,position:"right",children:o.jsxs("div",{style:{width:400},className:"card m-3",children:[o.jsx("div",{className:"text-900 font-medium text-2xl mb-2",children:t==null?void 0:t.label}),o.jsx("div",{children:"Dynamic Listing Component"}),o.jsx(na,{}),o.jsxs("div",{className:"p-fluid",children:[o.jsx("label",{children:t==null?void 0:t.label}),o.jsxs("div",{children:[o.jsxs(p8,{children:[o.jsx("div",{className:"pi pi-circle",children:" Option 1"}),o.jsx("br",{})]}),o.jsx("br",{}),o.jsx(p8,{children:o.jsx("div",{className:"pi pi-circle",children:" Option 2"})})]})]})]})}),QW=t=>o.jsx(rn,{target:`.${t==null?void 0:t.element}`,position:"right",children:o.jsxs("div",{style:{width:400},className:"card m-3",children:[o.jsx("div",{className:"text-900 font-medium text-2xl mb-2",children:t==null?void 0:t.label}),o.jsx("div",{children:"Documents"}),o.jsx(na,{}),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"]})]})]})}),JW=[{label:"Free form inputs",icon:"pi pi-fw pi-file",expanded:!0,items:[{label:"Text",icon:"pi pi-fw pi-plus",element:"input",schema:$Y,uuid:tt(),type:tr,toolTip:t=>mX(t)},{label:"Number",icon:"pi pi-fw pi-trash",element:"number",schema:qY,uuid:tt(),type:tr,toolTip:t=>vX(t)},{label:"Email",icon:"pi pi-fw pi-external-link",element:"email",schema:UY,uuid:tt(),type:tr,toolTip:t=>bX(t)},{label:"Text Area",icon:"pi pi-fw pi-external-link",element:"textArea",schema:XY,uuid:tt(),type:tr,toolTip:t=>yX(t)},{label:"Text Editor",icon:"pi pi-fw pi-external-link",element:"textHtmlEditor",schema:VY,uuid:tt(),type:tr,toolTip:t=>AX(t)},{label:"Date Picker",icon:"pi pi-fw pi-user-plus",element:"date-picker",schema:NY,uuid:tt(),type:tr,toolTip:t=>wR(t)},{label:"Draw Signature",icon:"pi pi-fw pi-trash",element:"signature",schema:cT,uuid:tt(),type:tr,toolTip:t=>ER(t)},{label:"Type Signature",icon:"pi pi-fw pi-trash",element:"type-signature",schema:RY,uuid:tt(),type:tr,toolTip:t=>IR(t)},{label:"File Upload",icon:"pi pi-fw pi-trash",element:"file-upload",schema:MY,uuid:tt(),type:tr,toolTip:t=>_R(t)},{label:"Phone Number",icon:"pi pi-fw pi-trash",element:"phone",schema:HY,uuid:tt(),type:tr,PhoneNumberToolTip:mE,toolTip:t=>mE(t)},{label:"Website Url",icon:"pi pi-fw pi-trash",element:"web-url",schema:WY,uuid:tt(),type:tr,toolTip:t=>OR(t)},{label:"Hidden Field",icon:"pi pi-fw pi-trash",element:"hidden-field",schema:BY,uuid:tt(),type:tr,toolTip:t=>lG(t)},{label:"Address",icon:"pi pi-fw pi-trash",element:"address",schema:DY,uuid:tt(),type:tr,toolTip:t=>cG(t)},{label:"Grid Component",icon:"pi pi-fw pi-trash",element:"grid-component",schema:LY,uuid:tt(),type:tr,toolTip:t=>zW(t)},{label:"Matrix Dropdown",icon:"pi pi-fw pi-trash",element:"matrix-dropdown",schema:jY,uuid:tt(),type:tr,toolTip:t=>YW(t)}]},{label:"Controlled inputs",icon:"pi pi-fw pi-pencil",items:[{label:"Countries",icon:"pi pi-fw pi-align-left",element:"country",schema:WC,uuid:tt(),type:tr,toolTip:t=>c_(t)},{label:"Dropdown",icon:"pi pi-fw pi-align-left",element:"select",schema:lT,uuid:tt(),type:tr,toolTip:t=>u_(t)},{label:"Multi Select",icon:"pi pi-fw pi-align-right",element:"multi-select",schema:iT,uuid:tt(),type:tr,toolTip:t=>d_(t)},{label:"CheckBox",icon:"pi pi-fw pi-align-left",element:"checkbox",schema:GC,uuid:tt(),type:tr,toolTip:t=>f_(t)},{label:"Radio Button",icon:"pi pi-fw pi-align-left",element:"radio",schema:sT,uuid:tt(),type:tr,toolTip:t=>d8(t)},{label:"Hierarchal Radio",icon:"pi pi-fw pi-align-left",element:"radio-hierarchal",schema:YY,uuid:tt(),type:tr,toolTip:t=>d8(t)},{label:"Dynamic Radio",icon:"pi pi-fw pi-align-left",element:"dynamic-listing",schema:FY,uuid:tt(),type:tr,toolTip:t=>WW(t)}]},{label:"Rating Inputs",icon:"pi pi-fw pi-pencil",items:[{label:"Likert Scale",icon:"pi pi-fw pi-trash",element:"likert-scale",schema:rT,uuid:tt(),type:tr,toolTip:t=>M6(t)},{label:"Slider",icon:"pi pi-fw pi-trash",element:"slider",schema:uT,uuid:tt(),type:tr,toolTip:t=>EE(t)},{label:"Rating",icon:"pi pi-fw pi-trash",element:"rating",schema:oT,uuid:tt(),type:tr,toolTip:t=>xE(t)},{label:"Thumbs Up and Down",icon:"pi pi-fw pi-align-left",element:"thumbs",schema:dT,uuid:tt(),type:tr,toolTip:t=>sG(t)},{label:"Likert Emoji Scale",icon:"pi pi-fw pi-align-left",element:"likert-emoji-scale",schema:nT,uuid:tt(),type:tr,toolTip:t=>oG(t)}]},{label:"Social Logins",icon:"pi pi-fw pi-pencil",items:[{label:"Facebook Login",icon:"pi pi-fw pi-trash",element:"facebook-login",schema:PY,uuid:tt(),type:tr,toolTip:t=>M6(t)}]},{label:"Media",icon:"pi pi-fw pi-user",items:[{label:"Document",icon:"pi pi-fw pi-trash",element:"document",schema:QC,uuid:tt(),type:tr,toolTip:t=>QW(t)}]}],ZW=[{label:"HTML",icon:"pi pi-fw pi-file",expanded:!0,items:[{label:"<a>",icon:"pi pi-fw pi-plus",element:"a",schema:eT,uuid:tt(),type:tr},{label:"<p>",icon:"pi pi-fw pi-trash",element:"paragraph",schema:aT,uuid:tt(),type:tr},{label:"<heading>",icon:"pi pi-fw pi-external-link",element:"h",schema:JC,uuid:tt(),type:tr},{label:"<li>",icon:"pi pi-fw pi-external-link",element:"list",schema:GY,uuid:tt(),type:tr},{label:"divider",icon:"pi pi-fw pi-external-link",element:"hr",schema:ZC,uuid:tt(),type:tr},{label:"Image",icon:"pi pi-fw pi-user-plus",element:"image",schema:k9,uuid:tt(),type:tr},{label:"Image Gallery",icon:"pi pi-fw pi-user-plus",element:"image-gallery",schema:tT,uuid:tt(),type:tr},{label:"Video",icon:"pi pi-fw pi-user-minus",element:"video",schema:P9,uuid:tt(),type:tr}]}],eQ=[{label:"Controlled inputs",icon:"pi pi-fw pi-pencil",items:[{label:"Countries",icon:"pi pi-fw pi-align-left",element:"country",schema:WC,uuid:tt(),type:tr,toolTip:t=>c_(t)},{label:"Dropdown",icon:"pi pi-fw pi-align-left",element:"select",schema:lT,uuid:tt(),type:tr,toolTip:t=>u_(t)},{label:"Multi Select",icon:"pi pi-fw pi-align-right",element:"multi-select",schema:iT,uuid:tt(),type:tr,toolTip:t=>d_(t)},{label:"CheckBox",icon:"pi pi-fw pi-align-left",element:"checkbox",schema:GC,uuid:tt(),type:tr,toolTip:t=>f_(t)},{label:"Radio Button",icon:"pi pi-fw pi-align-left",element:"radio",schema:sT,uuid:tt(),type:tr,toolTip:t=>d8(t)}]},{label:"Rating Inputs",icon:"pi pi-fw pi-pencil",items:[{label:"Likert Scale",icon:"pi pi-fw pi-trash",element:"likert-scale",schema:rT,uuid:tt(),type:tr,toolTip:t=>M6(t)},{label:"Slider",icon:"pi pi-fw pi-trash",element:"slider",schema:uT,uuid:tt(),type:tr,toolTip:t=>EE(t)},{label:"Rating",icon:"pi pi-fw pi-trash",element:"rating",schema:oT,uuid:tt(),type:tr,toolTip:t=>xE(t)},{label:"Thumbs Up and Down",icon:"pi pi-fw pi-align-left",element:"thumbs",schema:dT,uuid:tt(),type:tr},{label:"Likert Emoji Scale",icon:"pi pi-fw pi-align-left",element:"likert-emoji-scale",schema:nT,uuid:tt(),type:tr}]}],tQ=[{label:"Media",icon:"pi pi-fw pi-user",items:[{label:"Image",icon:"pi pi-fw pi-user-plus",element:"image",schema:k9,uuid:tt(),type:tr},{label:"Video",icon:"pi pi-fw pi-user-minus",element:"video",schema:P9,uuid:tt(),type:tr},{label:"Quiz",icon:"pi pi-fw pi-trash",element:"quiz",schema:zY,uuid:tt(),type:tr},{label:"Document",icon:"pi pi-fw pi-trash",element:"document",schema:QC,uuid:tt(),type:tr}]}],nQ=[{label:"Left",icon:"pi pi-align-left",value:"left"},{label:"Right",icon:"pi pi-align-right",value:"right"}],rQ=[{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"}],iQ=[{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"}],Qm={type:zC,isCoverPage:!1,margin:{left:0,right:0,top:0,bottom:0},isVisible:!0,isHidden:!1,isValid:!1,displayRules:[],title:{english:"Page 1"}},af={type:ta,showSectionHeader:!1,isVisible:!0,isHidden:!1,isValid:!1,showSectionTitle:!1,showSectionSubTitle:!1,heading:{english:"Section header"},subHeadingText:{english:""},isCollapsed:!1},tu={type:bo,isHidden:!1,isValid:!1,isRequired:!1,isCollapsed:!1,showRowTitle:!0,showRowSubTitle:!0,heading:{english:""},subHeadingText:{english:""},rowIsRepeatable:!1,repeatableFields:[],repeatableFieldsData:[],isMinimumEntries:!1,minimumEntries:5,addToListButtonLabel:{english:"Add To List"},reviewerChecklist:[]},Ac={type:ms,isCollapsed:!1},aQ=t=>{let e=t;e={...e,uuid:tt()};const n=e.children.map(r=>({...r,uuid:tt(),children:r.children.map(i=>({...i,uuid:tt(),children:i.children.map(a=>{var s;return{...a,uuid:tt(),...((s=a==null?void 0:a.children)==null?void 0:s.length)>0?{children:a.children.map(l=>{var c;return{...l,uuid:tt(),...((c=l.options)==null?void 0:c.length)>0?{options:l.options.map(u=>({...u,uuid:tt()}))}:{}}})}:{}}})}))}));return e={...e,children:n},e};function sQ(t){return e=>{const n={...Qm,uuid:tt(),title:{english:`Page ${t+1}`},children:[{...af,uuid:tt(),children:[{...tu,uuid:tt(),children:[{...Ac,uuid:tt(),children:[]}]}]}]};e({type:SC,payLoad:n})}}function oQ(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:$C,payLoad:{tableFields:n}})}}function lQ(t,e){return(n,r)=>{const i=t;let a=Et.cloneDeep(i);const{layout:s}=r;a={...a,title:{english:`Page ${(s==null?void 0:s.length)+1}`}},a=aQ(a),n({type:EC,payLoad:{page:a,pageIndex:e}})}}function cQ(t,e){return n=>{n({type:qC,payLoad:{pageIndex:t,page:e}})}}function uQ(t){return e=>{e({type:gC,payLoad:{pageIndex:t}})}}const g_=t=>{let e=t;e={...e,uuid:tt()};const n=e.children.map(r=>({...r,uuid:tt(),children:r.children.map(i=>{var a;return{...i,uuid:tt(),...((a=i==null?void 0:i.children)==null?void 0:a.length)>0?{children:i.children.map(s=>{var l;return{...s,uuid:tt(),...((l=s.options)==null?void 0:l.length)>0?{options:s.options.map(c=>({...c,uuid:tt()}))}:{}}})}:{}}})}));return e={...e,children:n},e};function dQ(t,e){return n=>{n({type:mC,payLoad:{pageIndex:t,sectionIndex:e}})}}function fQ(t){return e=>{const n={...af,uuid:tt(),children:[{...tu,uuid:tt(),children:[{...Ac,uuid:tt(),children:[]}]}]};e({type:xC,payLoad:{pageIndex:t,section:n}})}}function hQ(t,e,n){return r=>{r({type:wC,payLoad:{pageIndex:t,sectionIndex:e,section:n}})}}function pQ(t,e,n){return r=>{const i=t;let a=Et.cloneDeep(i);a=g_(a),r({type:IC,payLoad:{section:a,pageIndex:e,sectionIndex:n}})}}function gQ(t,e){return n=>{const r=t;let i=Et.cloneDeep(r);i=g_(i),n({type:_C,payLoad:{section:i,pageIndex:e}})}}const mQ=t=>{let e=t;e={...e,uuid:tt()};const n=e.children.map(r=>{var i;return{...r,uuid:tt(),...((i=r==null?void 0:r.children)==null?void 0:i.length)>0?{children:r.children.map(a=>{var s;return{...a,uuid:tt(),...((s=a.options)==null?void 0:s.length)>0?{options:a.options.map(l=>({...l,uuid:tt()}))}:{}}})}:{}}});return e={...e,children:n},e};function vQ(t,e,n,r){return i=>{const a=t;let s=Et.cloneDeep(a);s=mQ(s),i({type:DC,payLoad:{row:s,pageIndex:e,sectionIndex:n,rowIndex:r}})}}function bQ(t,e,n,r){return i=>{i({type:D9,payLoad:{pageIndex:t,sectionIndex:e,rowIndex:n,row:r}})}}function yQ(t,e,n){return r=>{r({type:vC,payLoad:{pageIndex:t,sectionIndex:e,rowIndex:n}})}}function AQ(t,e){return n=>{const r={...tu,uuid:tt(),isCollapsed:!1,children:[{...Ac,uuid:tt(),children:[]}]};n({type:CC,payLoad:{pageIndex:t,sectionIndex:e,row:r}})}}function wQ(t,e,n,r){return i=>{i({type:kC,payLoad:{pageIndex:t,sectionIndex:e,rowIndex:n,fieldItem:r}})}}const SQ=t=>{var r;let e=t;e={...e,uuid:tt()};const n=((r=e==null?void 0:e.children)==null?void 0:r.length)>0?e.children.map((i,a)=>{var s;return{...i,uuid:tt(),...((s=i.options)==null?void 0:s.length)>0?{options:i.options.map((l,c)=>({...l,uuid:tt()}))}:{}}}):[];return e={...e,children:n},e};function xQ(t,e,n){return r=>{const i={...Ac,uuid:tt(),children:[]};r({type:TC,payLoad:{pageIndex:t,sectionIndex:e,rowIndex:n,column:i}})}}function CQ(t,e,n,r,i){return a=>{const s=t;let l=Et.cloneDeep(s);l=SQ(l),a({type:OC,payLoad:{column:l,pageIndex:e,sectionIndex:n,rowIndex:r,columnIndex:i}})}}function TQ(t,e,n,r){return i=>{i({type:bC,payLoad:{pageIndex:t,sectionIndex:e,rowIndex:n,columnIndex:r}})}}function m_(t,e,n,r){return i=>{i({type:D9,payLoad:{pageIndex:t,sectionIndex:e,rowIndex:n,row:r}})}}function EQ(t,e,n,r,i){return(a,s)=>{var m,g,v,A;const{layout:l,tableFields:c}=s;let u=(m=l[t])==null?void 0:m.children[e].children[n];const d=(A=(v=(g=l[t])==null?void 0:g.children[e])==null?void 0:v.children[n])==null?void 0:A.children[r].children[i];if((u==null?void 0:u.rowIsRepeatable)===!0){const w=[...u.repeatableFields],x=Et.findIndex(w,function(S){return S.uuid===(d==null?void 0:d.uuid)});w.splice(x,1),u={...u,repeatableFields:w},a(m_(t,e,n,u))}const f=Et.findIndex(c,function(w){return w.uuid===(d==null?void 0:d.uuid)});c.splice(f,1),a({type:yC,payLoad:{pageIndex:t,sectionIndex:e,rowIndex:n,columnIndex:r,fieldIndex:i}})}}function IQ(t,e,n,r,i,a){return(s,l)=>{var m,g,v,A;const{layout:c,tableFields:u}=l;let d=(m=c[t])==null?void 0:m.children[e].children[n];if((d==null?void 0:d.rowIsRepeatable)===!0){const w=(A=(v=(g=c[t])==null?void 0:g.children[e])==null?void 0:v.children[n])==null?void 0:A.children[r].children[i],x=[...d.repeatableFields],S=Et.findIndex(x,function(E){return E.uuid===(w==null?void 0:w.uuid)});S===-1?x.splice(i,0,a):x[S]=a,x[S]=a,d={...d,repeatableFields:x},s(m_(t,e,n,d))}const f={type:AC,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 _Q(t,e,n,r,i,a){return s=>{var d;const l=t;let c=Et.cloneDeep(l);if(c={...c,uuid:tt()},c!=null&&c.options&&((d=c==null?void 0:c.options)==null?void 0:d.length)>0){const f=c==null?void 0:c.options.map(h=>({...h,uuid:tt()}));c={...c,options:f}}s({type:NC,payLoad:{field:c,pageIndex:e,sectionIndex:n,rowIndex:r,columnIndex:i,fieldIndex:a}})}}function DQ(t,e,n,r,i,a,s,l){return c=>{c({type:PC,payLoad:{pageIndex:t,sectionIndex:e,rowIndex:n,columnIndex:r,fieldIndex:i,ruleIndex:a,conditionIndex:s,field:l}})}}function OQ(t,e,n,r,i,a,s,l){return c=>{c({type:MC,payLoad:{pageIndex:t,sectionIndex:e,rowIndex:n,columnIndex:r,fieldIndex:i,gridColumnIndex:s,gridRowIndex:a,field:l}})}}function NQ(t,e,n,r,i,a,s,l,c){return u=>{u({type:VC,payLoad:{pageIndex:t,sectionIndex:e,rowIndex:n,columnIndex:r,fieldIndex:i,gridRowIndex:a,gridColumnIndex:s,fieldChildrenIndex:l,field:c}})}}function FQ(t,e,n,r,i,a,s,l){return c=>{c({type:UC,payLoad:{pageIndex:t,sectionIndex:e,rowIndex:n,columnIndex:r,fieldIndex:i,gridRowIndex:a,gridColumnIndex:s,fieldChildrenIndex:l}})}}function kQ(t,e,n,r,i,a,s,l,c){return u=>{u({type:LC,payLoad:{pageIndex:t,sectionIndex:e,rowIndex:n,columnIndex:r,fieldIndex:i,ruleIndex:a,conditionIndex:s,inlineFieldIndex:l,field:c}})}}function PQ(t,e,n,r,i,a,s,l){return c=>{c({type:BC,payLoad:{pageIndex:t,sectionIndex:e,rowIndex:n,columnIndex:r,fieldIndex:i,ruleIndex:a,conditionIndex:s,inlineFieldIndex:l}})}}function MQ(t){return e=>{e({type:$1,payLoad:{formSchema:t}})}}function LQ(t){return e=>{e({type:$1,payLoad:{layout:t}})}}function BQ(t){return(e,n)=>{const{languages:r}=n,i={type:$1,payLoad:{languages:[...r,t]}};e(i)}}function VQ(t){return(e,n)=>{const{languages:r}=n,i=Et.findIndex(r,l=>l.key===t.key),a=[...r];a.splice(i,1),e({type:$1,payLoad:{languages:a}})}}function UQ(t){return e=>{const n={type:$1,payLoad:{userSelectedLanguage:t.value}};e(n)}}function qQ(t){return e=>{e({type:lm,payLoad:{formType:t}})}}function $Q(t){return e=>{e({type:lm,payLoad:t})}}function jQ(t){return e=>{e({type:lm,payLoad:{editing_by:t}})}}function HQ(){return t=>{t({type:FC,payLoad:null})}}const g8={loading:!1,intro:"",editing_by:0,isChangesSaved:!1,enableReviewTask:!1,enableAutoSave:!1,enableAutoSaveBuilderSetting:!1,surveyQuestionSlide:!1,enableFormFluid:!0,showConditionalFields:!0,isAdvanceView:!1,models:[],fieldMappings:[],version_name:null,showIntroTab:!1,published_status:!1,formType:null,randomiseQuestions:!1,randomiseAnswers:!1,enableNoOfAssessmentQuestions:!1,noOfAssessmentQuestions:null,tableFields:[],tableConfiguration:{stripedRows:!1,gridLines:!1,flexScroll:!1,isResponsive:!1,rowReorder:!1},builderTemplateName:"",quizConfiguration:{quizPassMark:75,quizTimeLimit:2,quizMaxAttempts:99,quizSequentialAnswer:0,isAllCorrectMandatory:!0,quizRandomiseQuestions:1,quizUniqueAnswersPerAttempt:"1"},header:[],languages:[{key:1,language:"English",type:"english"}],userSelectedLanguage:{key:1,language:"English",type:"english"},layout:[{uuid:tt(),...Qm,children:[{uuid:tt(),...af,children:[{uuid:tt(),...tu,children:[{uuid:tt(),...Ac,children:[]}]}]}]}],conditionalTabsRules:[],conditionalSectionsRules:[]},zQ=(t=g8,e)=>{var n,r;switch(e.type){case EY:return{...t,...e.payLoad};case TY:return{...t,...e.payLoad};case FC:return{...t,...g8};case $1:return{...t,...e.payLoad};case lm:return{...t,...e.payLoad};case gC:{const{pageIndex:i}=e.payLoad;return{...t,layout:t.layout.filter((a,s)=>s!==i)}}case SC:return{...t,layout:[...t.layout,e.payLoad]};case xC:{const{pageIndex:i,section:a}=e.payLoad,s=[...t.layout];return s[i].children=[...s[i].children,a],{...t,layout:s}}case kC:{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 IY:{const{fieldItem:i}=e.payLoad;let a=[...t.tableFields];return a=[...a,i],{...t,tableFields:a}}case $C:return{...t,...e.payLoad};case CC:{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 TC:{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 PC:{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 MC:{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 LC:{const{pageIndex:i,sectionIndex:a,rowIndex:s,columnIndex:l,fieldIndex:c,ruleIndex:u,conditionIndex:d,inlineFieldIndex:f,field:h}=e.payLoad,m=[...t.layout];return m[i].children[a].children[s].children[l].children[c].inlineConditionalRules.rules[u].conditions[d].children[f]=h,{...t,layout:m}}case VC:{const{pageIndex:i,sectionIndex:a,rowIndex:s,columnIndex:l,fieldIndex:c,gridRowIndex:u,gridColumnIndex:d,fieldChildrenIndex:f,field:h}=e.payLoad,m=[...t.layout];return m[i].children[a].children[s].children[l].children[c].children[f]={[`${u}-${d}`]:h},{...t,layout:m}}case BC:{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 UC:{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 mC:{const{pageIndex:i,sectionIndex:a}=e.payLoad,s=[...t.layout];return s[i].children.splice(a,1),{...t,layout:s}}case vC:{const{pageIndex:i,sectionIndex:a,rowIndex:s}=e.payLoad,l=[...t.layout];return l[i].children[a].children.splice(s,1),{...t,layout:l}}case bC:{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 yC:{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 AC:{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 wC:{const{pageIndex:i,sectionIndex:a,section:s}=e.payLoad,l=[...t.layout];return l[i].children[a]=s,{...t,layout:l}}case D9:{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 qC:{const{pageIndex:i,page:a}=e.payLoad,s=[...t.layout];return s[i]=a,{...t,layout:s}}case EC:{const{page:i,pageIndex:a}=e.payLoad,s=[...t.layout];return s.splice(a+1,0,i),{...t,layout:s}}case IC:{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 _C:{const{section:i,pageIndex:a}=e.payLoad,s=[...t.layout];return s[a].children.push(i),{...t,layout:s}}case DC:{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 OC:{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 NC:{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},v_=F.createContext({dragDropManager:void 0});function nu(t){"@babel/helpers - typeof";return nu=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},nu(t)}function YQ(t,e){if(nu(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(nu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function KQ(t){var e=YQ(t,"string");return nu(e)=="symbol"?e:e+""}function XQ(t,e,n){return(e=KQ(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function b_(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 y_(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?b_(Object(n),!0).forEach(function(r){XQ(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):b_(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Ul(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 A_=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),m8=function(){return Math.random().toString(36).substring(7).split("").join(".")},w_={INIT:"@@redux/INIT"+m8(),REPLACE:"@@redux/REPLACE"+m8(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+m8()}};function RQ(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 GQ(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(JQ(t))return"date";if(QQ(t))return"error";var n=WQ(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 WQ(t){return typeof t.constructor=="function"?t.constructor.name:null}function QQ(t){return t instanceof Error||typeof t.message=="string"&&t.constructor&&typeof t.constructor.stackTraceLimit=="number"}function JQ(t){return t instanceof Date?!0:typeof t.toDateString=="function"&&typeof t.getDate=="function"&&typeof t.setDate=="function"}function sf(t){var e=typeof t;return process.env.NODE_ENV!=="production"&&(e=GQ(t)),e}function S_(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"?Ul(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"?Ul(1):"Expected the enhancer to be a function. Instead, received: '"+sf(n)+"'");return n(S_)(t,e)}if(typeof t!="function")throw new Error(process.env.NODE_ENV==="production"?Ul(2):"Expected the root reducer to be a function. Instead, received: '"+sf(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"?Ul(3):"You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return a}function f(v){if(typeof v!="function")throw new Error(process.env.NODE_ENV==="production"?Ul(4):"Expected the listener to be a function. Instead, received: '"+sf(v)+"'");if(c)throw new Error(process.env.NODE_ENV==="production"?Ul(5):"You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");var A=!0;return u(),l.push(v),function(){if(A){if(c)throw new Error(process.env.NODE_ENV==="production"?Ul(6):"You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");A=!1,u();var x=l.indexOf(v);l.splice(x,1),s=null}}}function h(v){if(!RQ(v))throw new Error(process.env.NODE_ENV==="production"?Ul(7):"Actions must be plain objects. Instead, the actual type was: '"+sf(v)+"'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.");if(typeof v.type>"u")throw new Error(process.env.NODE_ENV==="production"?Ul(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"?Ul(9):"Reducers may not dispatch actions.");try{c=!0,a=i(a,v)}finally{c=!1}for(var A=s=l,w=0;w<A.length;w++){var x=A[w];x()}return v}function m(v){if(typeof v!="function")throw new Error(process.env.NODE_ENV==="production"?Ul(10):"Expected the nextReducer to be a function. Instead, received: '"+sf(v));i=v,h({type:w_.REPLACE})}function g(){var v,A=f;return v={subscribe:function(x){if(typeof x!="object"||x===null)throw new Error(process.env.NODE_ENV==="production"?Ul(11):"Expected the observer to be an object. Instead, received: '"+sf(x)+"'");function S(){x.next&&x.next(d())}S();var E=A(S);return{unsubscribe:E}}},v[A_]=function(){return this},v}return h({type:w_.INIT}),r={dispatch:h,subscribe:f,getState:d,replaceReducer:m},r[A_]=g,r}function qr(t,e,...n){if(ZQ()&&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 ZQ(){return typeof process<"u"&&process.env.NODE_ENV==="production"}function eJ(t,e,n){return e.split(".").reduce((r,i)=>r&&r[i]?r[i]:n||null,t)}function tJ(t,e){return t.filter(n=>n!==e)}function x_(t){return typeof t=="object"}function nJ(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 rJ(t,e){return t.filter(n=>e.indexOf(n)>-1)}const v8="dnd-core/INIT_COORDS",Jm="dnd-core/BEGIN_DRAG",b8="dnd-core/PUBLISH_DRAG_SOURCE",Zm="dnd-core/HOVER",e3="dnd-core/DROP",t3="dnd-core/END_DRAG";function C_(t,e){return{type:v8,payload:{sourceClientOffset:e||null,clientOffset:t||null}}}const iJ={type:v8,payload:{clientOffset:null,sourceClientOffset:null}};function aJ(t){return function(n=[],r={publishSource:!0}){const{publishSource:i=!0,clientOffset:a,getSourceClientOffset:s}=r,l=t.getMonitor(),c=t.getRegistry();t.dispatch(C_(a)),sJ(n,l,c);const u=cJ(n,l);if(u==null){t.dispatch(iJ);return}let d=null;if(a){if(!s)throw new Error("getSourceClientOffset must be defined");oJ(s),d=s(u)}t.dispatch(C_(a,d));const h=c.getSource(u).beginDrag(l,u);if(h==null)return;lJ(h),c.pinSource(u);const m=c.getSourceType(u);return{type:Jm,payload:{itemType:m,item:h,sourceId:u,clientOffset:a||null,sourceClientOffset:d||null,isSourcePublic:!!i}}}}function sJ(t,e,n){qr(!e.isDragging(),"Cannot call beginDrag while dragging."),t.forEach(function(r){qr(n.getSource(r),"Expected sourceIds to be registered.")})}function oJ(t){qr(typeof t=="function","When clientOffset is provided, getSourceClientOffset must be a function.")}function lJ(t){qr(x_(t),"Item must be an object.")}function cJ(t,e){let n=null;for(let r=t.length-1;r>=0;r--)if(e.canDragSource(t[r])){n=t[r];break}return n}function uJ(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function dJ(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){uJ(t,i,n[i])})}return t}function fJ(t){return function(n={}){const r=t.getMonitor(),i=t.getRegistry();hJ(r),mJ(r).forEach((s,l)=>{const c=pJ(s,l,i,r),u={type:e3,payload:{dropResult:dJ({},n,c)}};t.dispatch(u)})}}function hJ(t){qr(t.isDragging(),"Cannot call drop while not dragging."),qr(!t.didDrop(),"Cannot call drop twice during one drag operation.")}function pJ(t,e,n,r){const i=n.getTarget(t);let a=i?i.drop(r,t):void 0;return gJ(a),typeof a>"u"&&(a=e===0?{}:r.getDropResult()),a}function gJ(t){qr(typeof t>"u"||x_(t),"Drop result must either be an object or undefined.")}function mJ(t){const e=t.getTargetIds().filter(t.canDropOnTarget,t);return e.reverse(),e}function vJ(t){return function(){const n=t.getMonitor(),r=t.getRegistry();bJ(n);const i=n.getSourceId();return i!=null&&(r.getSource(i,!0).endDrag(n,i),r.unpinSource()),{type:t3}}}function bJ(t){qr(t.isDragging(),"Cannot call endDrag while not dragging.")}function y8(t,e){return e===null?t===null:Array.isArray(t)?t.some(n=>n===e):t===e}function yJ(t){return function(n,{clientOffset:r}={}){AJ(n);const i=n.slice(0),a=t.getMonitor(),s=t.getRegistry(),l=a.getItemType();return SJ(i,s,l),wJ(i,a,s),xJ(i,a,s),{type:Zm,payload:{targetIds:i,clientOffset:r||null}}}}function AJ(t){qr(Array.isArray(t),"Expected targetIds to be an array.")}function wJ(t,e,n){qr(e.isDragging(),"Cannot call hover while not dragging."),qr(!e.didDrop(),"Cannot call hover after drop.");for(let r=0;r<t.length;r++){const i=t[r];qr(t.lastIndexOf(i)===r,"Expected targetIds to be unique in the passed array.");const a=n.getTarget(i);qr(a,"Expected targetIds to be registered.")}}function SJ(t,e,n){for(let r=t.length-1;r>=0;r--){const i=t[r],a=e.getTargetType(i);y8(a,n)||t.splice(r,1)}}function xJ(t,e,n){t.forEach(function(r){n.getTarget(r).hover(e,r)})}function CJ(t){return function(){if(t.getMonitor().isDragging())return{type:b8}}}function TJ(t){return{beginDrag:aJ(t),publishDragSource:CJ(t),hover:yJ(t),drop:fJ(t),endDrag:vJ(t)}}class EJ{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=TJ(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 IJ(t,e){return{x:t.x+e.x,y:t.y+e.y}}function T_(t,e){return{x:t.x-e.x,y:t.y-e.y}}function _J(t){const{clientOffset:e,initialClientOffset:n,initialSourceClientOffset:r}=t;return!e||!n||!r?null:T_(IJ(e,r),n)}function DJ(t){const{clientOffset:e,initialClientOffset:n}=t;return!e||!n?null:T_(e,n)}const Ep=[],A8=[];Ep.__IS_NONE__=!0,A8.__IS_ALL__=!0;function OJ(t,e){return t===Ep?!1:t===A8||typeof e>"u"?!0:rJ(e,t).length>0}class NJ{subscribeToStateChange(e,n={}){const{handlerIds:r}=n;qr(typeof e=="function","listener must be a function."),qr(typeof r>"u"||Array.isArray(r),"handlerIds, when specified, must be an array of strings.");let i=this.store.getState().stateId;const a=()=>{const s=this.store.getState(),l=s.stateId;try{l===i||l===i+1&&!OJ(s.dirtyHandlerIds,r)||e()}finally{i=l}};return this.store.subscribe(a)}subscribeToOffsetChange(e){qr(typeof e=="function","listener must be a function.");let n=this.store.getState().dragOffset;const r=()=>{const i=this.store.getState().dragOffset;i!==n&&(n=i,e())};return this.store.subscribe(r)}canDragSource(e){if(!e)return!1;const n=this.registry.getSource(e);return qr(n,`Expected to find a valid source. sourceId=${e}`),this.isDragging()?!1:n.canDrag(this,e)}canDropOnTarget(e){if(!e)return!1;const n=this.registry.getTarget(e);if(qr(n,`Expected to find a valid target. targetId=${e}`),!this.isDragging()||this.didDrop())return!1;const r=this.registry.getTargetType(e),i=this.getItemType();return y8(r,i)&&n.canDrop(this,e)}isDragging(){return!!this.getItemType()}isDraggingSource(e){if(!e)return!1;const n=this.registry.getSource(e,!0);if(qr(n,`Expected to find a valid source. sourceId=${e}`),!this.isDragging()||!this.isSourcePublic())return!1;const r=this.registry.getSourceType(e),i=this.getItemType();return r!==i?!1:n.isDragging(this,e)}isOverTarget(e,n={shallow:!1}){if(!e)return!1;const{shallow:r}=n;if(!this.isDragging())return!1;const i=this.registry.getTargetType(e),a=this.getItemType();if(a&&!y8(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 _J(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return DJ(this.store.getState().dragOffset)}constructor(e,n){this.store=e,this.registry=n}}const E_=typeof global<"u"?global:self,I_=E_.MutationObserver||E_.WebKitMutationObserver;function __(t){return function(){const n=setTimeout(i,0),r=setInterval(i,50);function i(){clearTimeout(n),clearInterval(r),t()}}}function FJ(t){let e=1;const n=new I_(t),r=document.createTextNode("");return n.observe(r,{characterData:!0}),function(){e=-e,r.data=e}}const kJ=typeof I_=="function"?FJ:__;class PJ{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=kJ(this.flush),this.requestErrorThrow=__(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}}class MJ{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 LJ{create(e){const n=this.freeTasks,r=n.length?n.pop():new MJ(this.onError,i=>n[n.length]=i);return r.task=e,r}constructor(e){this.onError=e,this.freeTasks=[]}}const D_=new PJ,BJ=new LJ(D_.registerPendingError);function VJ(t){D_.enqueueTask(BJ.create(t))}const w8="dnd-core/ADD_SOURCE",S8="dnd-core/ADD_TARGET",x8="dnd-core/REMOVE_SOURCE",n3="dnd-core/REMOVE_TARGET";function UJ(t){return{type:w8,payload:{sourceId:t}}}function qJ(t){return{type:S8,payload:{targetId:t}}}function $J(t){return{type:x8,payload:{sourceId:t}}}function jJ(t){return{type:n3,payload:{targetId:t}}}function HJ(t){qr(typeof t.canDrag=="function","Expected canDrag to be a function."),qr(typeof t.beginDrag=="function","Expected beginDrag to be a function."),qr(typeof t.endDrag=="function","Expected endDrag to be a function.")}function zJ(t){qr(typeof t.canDrop=="function","Expected canDrop to be a function."),qr(typeof t.hover=="function","Expected hover to be a function."),qr(typeof t.drop=="function","Expected beginDrag to be a function.")}function C8(t,e){if(e&&Array.isArray(t)){t.forEach(n=>C8(n,!1));return}qr(typeof t=="string"||typeof t=="symbol",e?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}var ql;(function(t){t.SOURCE="SOURCE",t.TARGET="TARGET"})(ql||(ql={}));let YJ=0;function KJ(){return YJ++}function XJ(t){const e=KJ().toString();switch(t){case ql.SOURCE:return`S${e}`;case ql.TARGET:return`T${e}`;default:throw new Error(`Unknown Handler Role: ${t}`)}}function O_(t){switch(t[0]){case"S":return ql.SOURCE;case"T":return ql.TARGET;default:throw new Error(`Cannot parse handler ID: ${t}`)}}function N_(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 RJ{addSource(e,n){C8(e),HJ(n);const r=this.addHandler(ql.SOURCE,e,n);return this.store.dispatch(UJ(r)),r}addTarget(e,n){C8(e,!0),zJ(n);const r=this.addHandler(ql.TARGET,e,n);return this.store.dispatch(qJ(r)),r}containsHandler(e){return N_(this.dragSources,e)||N_(this.dropTargets,e)}getSource(e,n=!1){return qr(this.isSourceId(e),"Expected a valid source ID."),n&&e===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(e)}getTarget(e){return qr(this.isTargetId(e),"Expected a valid target ID."),this.dropTargets.get(e)}getSourceType(e){return qr(this.isSourceId(e),"Expected a valid source ID."),this.types.get(e)}getTargetType(e){return qr(this.isTargetId(e),"Expected a valid target ID."),this.types.get(e)}isSourceId(e){return O_(e)===ql.SOURCE}isTargetId(e){return O_(e)===ql.TARGET}removeSource(e){qr(this.getSource(e),"Expected an existing source."),this.store.dispatch($J(e)),VJ(()=>{this.dragSources.delete(e),this.types.delete(e)})}removeTarget(e){qr(this.getTarget(e),"Expected an existing target."),this.store.dispatch(jJ(e)),this.dropTargets.delete(e),this.types.delete(e)}pinSource(e){const n=this.getSource(e);qr(n,"Expected an existing source."),this.pinnedSourceId=e,this.pinnedSource=n}unpinSource(){qr(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(e,n,r){const i=XJ(e);return this.types.set(i,n),e===ql.SOURCE?this.dragSources.set(i,r):e===ql.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 GJ=(t,e)=>t===e;function WJ(t,e){return!t&&!e?!0:!t||!e?!1:t.x===e.x&&t.y===e.y}function QJ(t,e,n=GJ){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 JJ(t=Ep,e){switch(e.type){case Zm:break;case w8:case S8:case n3:case x8:return Ep;case Jm:case b8:case t3:case e3:default:return A8}const{targetIds:n=[],prevTargetIds:r=[]}=e.payload,i=nJ(n,r);if(!(i.length>0||!QJ(n,r)))return Ep;const s=r[r.length-1],l=n[n.length-1];return s!==l&&(s&&i.push(s),l&&i.push(l)),i}function ZJ(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function eZ(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){ZJ(t,i,n[i])})}return t}const F_={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function tZ(t=F_,e){const{payload:n}=e;switch(e.type){case v8:case Jm:return{initialSourceClientOffset:n.sourceClientOffset,initialClientOffset:n.clientOffset,clientOffset:n.clientOffset};case Zm:return WJ(t.clientOffset,n.clientOffset)?t:eZ({},t,{clientOffset:n.clientOffset});case t3:case e3:return F_;default:return t}}function nZ(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function of(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){nZ(t,i,n[i])})}return t}const rZ={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function iZ(t=rZ,e){const{payload:n}=e;switch(e.type){case Jm:return of({},t,{itemType:n.itemType,item:n.item,sourceId:n.sourceId,isSourcePublic:n.isSourcePublic,dropResult:null,didDrop:!1});case b8:return of({},t,{isSourcePublic:!0});case Zm:return of({},t,{targetIds:n.targetIds});case n3:return t.targetIds.indexOf(n.targetId)===-1?t:of({},t,{targetIds:tJ(t.targetIds,n.targetId)});case e3:return of({},t,{dropResult:n.dropResult,didDrop:!0,targetIds:[]});case t3:return of({},t,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return t}}function aZ(t=0,e){switch(e.type){case w8:case S8:return t+1;case x8:case n3:return t-1;default:return t}}function sZ(t=0){return t+1}function oZ(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function lZ(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){oZ(t,i,n[i])})}return t}function cZ(t={},e){return{dirtyHandlerIds:JJ(t.dirtyHandlerIds,{type:e.type,payload:lZ({},e.payload,{prevTargetIds:eJ(t,"dragOperation.targetIds",[])})}),dragOffset:tZ(t.dragOffset,e),refCount:aZ(t.refCount,e),dragOperation:iZ(t.dragOperation,e),stateId:sZ(t.stateId)}}function uZ(t,e=void 0,n={},r=!1){const i=dZ(r),a=new NJ(i,new RJ(i)),s=new EJ(i,a),l=t(s,e,n);return s.receiveBackend(l),s}function dZ(t){const e=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__;return S_(cZ,t&&e&&e({name:"dnd-core",instanceId:"dnd-core"}))}function fZ(t,e){if(t==null)return{};var n=hZ(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 hZ(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,a;for(a=0;a<r.length;a++)i=r[a],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}let k_=0;const r3=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");var lf=F.memo(function(e){var{children:n}=e,r=fZ(e,["children"]);const[i,a]=pZ(r);return F.useEffect(()=>{if(a){const s=P_();return++k_,()=>{--k_===0&&(s[r3]=null)}}},[]),o.jsx(v_.Provider,{value:i,children:n})});function pZ(t){if("manager"in t)return[{dragDropManager:t.manager},!1];const e=gZ(t.backend,t.context,t.options,t.debugMode),n=!t.context;return[e,n]}function gZ(t,e=P_(),n,r){const i=e;return i[r3]||(i[r3]={dragDropManager:uZ(t,e,n,r)}),i[r3]}function P_(){return typeof global<"u"?global:window}var M_=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 mZ=gs(M_),$0=typeof window<"u"?F.useLayoutEffect:F.useEffect;function vZ(t,e,n){const[r,i]=F.useState(()=>e(t)),a=F.useCallback(()=>{const s=e(t);mZ(r,s)||(i(s),n&&n())},[r,t,n]);return $0(a),[r,a]}function bZ(t,e,n){const[r,i]=vZ(t,e,n);return $0(function(){const s=t.getHandlerId();if(s!=null)return t.subscribeToStateChange(i,{handlerIds:[s]})},[t,i]),r}function L_(t,e,n){return bZ(e,t||(()=>({})),()=>n.reconnect())}function B_(t,e){const n=[...e||[]];return e==null&&typeof t!="function"&&n.push(t),F.useMemo(()=>typeof t=="function"?t():t,n)}function yZ(t){return F.useMemo(()=>t.hooks.dragSource(),[t])}function AZ(t){return F.useMemo(()=>t.hooks.dragPreview(),[t])}let T8=!1,E8=!1;class wZ{receiveHandlerId(e){this.sourceId=e}getHandlerId(){return this.sourceId}canDrag(){qr(!T8,"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 T8=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{T8=!1}}isDragging(){if(!this.sourceId)return!1;qr(!E8,"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 E8=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{E8=!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 I8=!1;class SZ{receiveHandlerId(e){this.targetId=e}getHandlerId(){return this.targetId}subscribeToStateChange(e,n){return this.internalMonitor.subscribeToStateChange(e,n)}canDrop(){if(!this.targetId)return!1;qr(!I8,"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 I8=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{I8=!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 xZ(t,e,n){const r=n.getRegistry(),i=r.addTarget(t,e);return[i,()=>r.removeTarget(i)]}function CZ(t,e,n){const r=n.getRegistry(),i=r.addSource(t,e);return[i,()=>r.removeSource(i)]}function _8(t,e,n,r){let i=n?n.call(r,t,e):void 0;if(i!==void 0)return!!i;if(t===e)return!0;if(typeof t!="object"||!t||typeof e!="object"||!e)return!1;const a=Object.keys(t),s=Object.keys(e);if(a.length!==s.length)return!1;const l=Object.prototype.hasOwnProperty.bind(e);for(let c=0;c<a.length;c++){const u=a[c];if(!l(u))return!1;const d=t[u],f=e[u];if(i=n?n.call(r,d,f,u):void 0,i===!1||i===void 0&&d!==f)return!1}return!0}function D8(t){return t!==null&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function TZ(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 EZ(t){return(e=null,n=null)=>{if(!F.isValidElement(e)){const a=e;return t(a,n),a}const r=e;return TZ(r),IZ(r,n?a=>t(a,n):t)}}function V_(t){const e={};return Object.keys(t).forEach(n=>{const r=t[n];if(n.endsWith("Ref"))e[n]=t[n];else{const i=EZ(r);e[n]=()=>i}}),e}function U_(t,e){typeof t=="function"?t(e):t.current=e}function IZ(t,e){const n=t.ref;return qr(typeof n!="string","Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"),n?F.cloneElement(t,{ref:r=>{U_(n,r),U_(e,r)}}):F.cloneElement(t,{ref:e})}class _Z{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!_8(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}didDragPreviewOptionsChange(){return!_8(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=V_({dragSource:(n,r)=>{this.clearDragSource(),this.dragSourceOptions=r||null,D8(n)?this.dragSourceRef=n:this.dragSourceNode=n,this.reconnectDragSource()},dragPreview:(n,r)=>{this.clearDragPreview(),this.dragPreviewOptions=r||null,D8(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 DZ{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!_8(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=V_({dropTarget:(n,r)=>{this.clearDropTarget(),this.dropTargetOptions=r,D8(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 cf(){const{dragDropManager:t}=F.useContext(v_);return qr(t!=null,"Expected drag drop context"),t}function OZ(t,e){const n=cf(),r=F.useMemo(()=>new _Z(n.getBackend()),[n]);return $0(()=>(r.dragSourceOptions=t||null,r.reconnect(),()=>r.disconnectDragSource()),[r,t]),$0(()=>(r.dragPreviewOptions=e||null,r.reconnect(),()=>r.disconnectDragPreview()),[r,e]),r}function NZ(){const t=cf();return F.useMemo(()=>new wZ(t),[t])}class FZ{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 kZ(t,e,n){const r=F.useMemo(()=>new FZ(t,e,n),[e,n]);return F.useEffect(()=>{r.spec=t},[t]),r}function PZ(t){return F.useMemo(()=>{const e=t.type;return qr(e!=null,"spec.type must be defined"),e},[t])}function MZ(t,e,n){const r=cf(),i=kZ(t,e,n),a=PZ(t);$0(function(){if(a!=null){const[l,c]=CZ(a,i,r);return e.receiveHandlerId(l),n.receiveHandlerId(l),c}},[r,e,n,i,a])}function Qi(t,e){const n=B_(t,e);qr(!n.begin,"useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)");const r=NZ(),i=OZ(n.options,n.previewOptions);return MZ(n,r,i),[L_(n.collect,r,i),yZ(i),AZ(i)]}function LZ(t){return F.useMemo(()=>t.hooks.dropTarget(),[t])}function BZ(t){const e=cf(),n=F.useMemo(()=>new DZ(e.getBackend()),[e]);return $0(()=>(n.dropTargetOptions=t||null,n.reconnect(),()=>n.disconnectDropTarget()),[t]),n}function VZ(){const t=cf();return F.useMemo(()=>new SZ(t),[t])}function UZ(t){const{accept:e}=t;return F.useMemo(()=>(qr(t.accept!=null,"accept must be defined"),Array.isArray(e)?e:[e]),[e])}class qZ{canDrop(){const e=this.spec,n=this.monitor;return e.canDrop?e.canDrop(n.getItem(),n):!0}hover(){const e=this.spec,n=this.monitor;e.hover&&e.hover(n.getItem(),n)}drop(){const e=this.spec,n=this.monitor;if(e.drop)return e.drop(n.getItem(),n)}constructor(e,n){this.spec=e,this.monitor=n}}function $Z(t,e){const n=F.useMemo(()=>new qZ(t,e),[e]);return F.useEffect(()=>{n.spec=t},[t]),n}function jZ(t,e,n){const r=cf(),i=$Z(t,e),a=UZ(t);$0(function(){const[l,c]=xZ(a,i,r);return e.receiveHandlerId(l),n.receiveHandlerId(l),c},[r,e,i,n,a.map(s=>s.toString()).join("|")])}function HZ(t,e){const n=B_(t,e),r=VZ(),i=BZ(n.options);return jZ(n,r,i),[L_(n.collect,r,i),LZ(i)]}function q_(t){let e=null;return()=>(e==null&&(e=t()),e)}function zZ(t,e){return t.filter(n=>n!==e)}function YZ(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 KZ{enter(e){const n=this.entered.length,r=i=>this.isNodeInDocument(i)&&(!i.contains||i.contains(e));return this.entered=YZ(this.entered.filter(r),[e]),n===0&&this.entered.length>0}leave(e){const n=this.entered.length;return this.entered=zZ(this.entered.filter(this.isNodeInDocument),e),n>0&&this.entered.length===0}reset(){this.entered=[]}constructor(e){this.entered=[],this.isNodeInDocument=e}}class XZ{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 $_="__NATIVE_FILE__",j_="__NATIVE_URL__",H_="__NATIVE_TEXT__",z_="__NATIVE_HTML__",Y_=Object.freeze(Object.defineProperty({__proto__:null,FILE:$_,HTML:z_,TEXT:H_,URL:j_},Symbol.toStringTag,{value:"Module"}));function O8(t,e,n){const r=e.reduce((i,a)=>i||t.getData(a),"");return r??n}const N8={[$_]:{exposeProperties:{files:t=>Array.prototype.slice.call(t.files),items:t=>t.items,dataTransfer:t=>t},matchesTypes:["Files"]},[z_]:{exposeProperties:{html:(t,e)=>O8(t,e,""),dataTransfer:t=>t},matchesTypes:["Html","text/html"]},[j_]:{exposeProperties:{urls:(t,e)=>O8(t,e,"").split(`
|
|
1597
|
-
`),dataTransfer:t=>t},matchesTypes:["Url","text/uri-list"]},[H_]:{exposeProperties:{text:(t,e)=>O8(t,e,""),dataTransfer:t=>t},matchesTypes:["Text","text/plain"]}};function RZ(t,e){const n=N8[t];if(!n)throw new Error(`native type ${t} has no configuration`);const r=new XZ(n);return r.loadDataTransfer(e),r}function F8(t){if(!t)return null;const e=Array.prototype.slice.call(t.types||[]);return Object.keys(N8).filter(n=>{const r=N8[n];return r!=null&&r.matchesTypes?r.matchesTypes.some(i=>e.indexOf(i)>-1):!1})[0]||null}const GZ=q_(()=>/firefox/i.test(navigator.userAgent)),K_=q_(()=>!!window.safari);class X_{interpolate(e){const{xs:n,ys:r,c1s:i,c2s:a,c3s:s}=this;let l=n.length-1;if(e===n[l])return r[l];let c=0,u=s.length-1,d;for(;c<=u;){d=Math.floor(.5*(c+u));const m=n[d];if(m<e)c=d+1;else if(m>e)u=d-1;else return r[d]}l=Math.max(0,u);const f=e-n[l],h=f*f;return r[l]+i[l]*f+a[l]*h+s[l]*f*h}constructor(e,n){const{length:r}=e,i=[];for(let m=0;m<r;m++)i.push(m);i.sort((m,g)=>e[m]<e[g]?-1:1);const a=[],s=[];let l,c;for(let m=0;m<r-1;m++)l=e[m+1]-e[m],c=n[m+1]-n[m],a.push(l),s.push(c/l);const u=[s[0]];for(let m=0;m<a.length-1;m++){const g=s[m],v=s[m+1];if(g*v<=0)u.push(0);else{l=a[m];const A=a[m+1],w=l+A;u.push(3*w/((w+A)/g+(w+l)/v))}}u.push(s[s.length-1]);const d=[],f=[];let h;for(let m=0;m<u.length-1;m++){h=s[m];const g=u[m],v=1/a[m],A=g+u[m+1]-h-h;d.push((h-g-A)*v),f.push(A*v*v)}this.xs=e,this.ys=n,this.c1s=u,this.c2s=d,this.c3s=f}}const WZ=1;function R_(t){const e=t.nodeType===WZ?t:t.parentElement;if(!e)return null;const{top:n,left:r}=e.getBoundingClientRect();return{x:r,y:n}}function i3(t){return{x:t.clientX,y:t.clientY}}function QZ(t){var e;return t.nodeName==="IMG"&&(GZ()||!(!((e=document.documentElement)===null||e===void 0)&&e.contains(t)))}function JZ(t,e,n,r){let i=t?e.width:n,a=t?e.height:r;return K_()&&t&&(a/=window.devicePixelRatio,i/=window.devicePixelRatio),{dragPreviewWidth:i,dragPreviewHeight:a}}function ZZ(t,e,n,r,i){const a=QZ(e),l=R_(a?t:e),c={x:n.x-l.x,y:n.y-l.y},{offsetWidth:u,offsetHeight:d}=t,{anchorX:f,anchorY:h}=r,{dragPreviewWidth:m,dragPreviewHeight:g}=JZ(a,e,u,d),v=()=>{let _=new X_([0,.5,1],[c.y,c.y/d*g,c.y+g-d]).interpolate(h);return K_()&&a&&(_+=(window.devicePixelRatio-1)*g),_},A=()=>new X_([0,.5,1],[c.x,c.x/u*m,c.x+m-u]).interpolate(f),{offsetX:w,offsetY:x}=i,S=w===0||w,E=x===0||x;return{x:S?w:A(),y:E?x:v()}}class eee{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 tee(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function G_(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){tee(t,i,n[i])})}return t}class nee{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 G_({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 G_({anchorX:.5,anchorY:.5,captureDraggingState:!1},n||{})}isDraggingNativeItem(){const e=this.monitor.getItemType();return Object.keys(Y_).some(n=>Y_[n]===e)}beginDragNativeItem(e,n){this.clearCurrentDragSourceNode(),this.currentNativeSource=RZ(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&&R_(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=i3(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=F8(l);if(this.monitor.isDragging()){if(l&&typeof l.setDragImage=="function"){const d=this.monitor.getSourceId(),f=this.sourceNodes.get(d),h=this.sourcePreviewNodes.get(d)||f;if(h){const{anchorX:m,anchorY:g,offsetX:v,offsetY:A}=this.getCurrentSourcePreviewNodeOptions(),S=ZZ(f,h,s,{anchorX:m,anchorY:g},{offsetX:v,offsetY:A});l.setDragImage(h,S.x,S.y)}}try{l==null||l.setData("application/json",{})}catch{}this.setCurrentDragSourceNode(i.target);const{captureDraggingState:u}=this.getCurrentSourcePreviewNodeOptions();u?this.actions.publishDragSource():setTimeout(()=>this.actions.publishDragSource(),0)}else if(c)this.beginDragNativeItem(c);else{if(l&&!l.types&&(i.target&&!i.target.hasAttribute||!i.target.hasAttribute("draggable")))return;i.preventDefault()}},this.handleTopDragEndCapture=()=>{this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleTopDragEnterCapture=i=>{if(this.dragEnterTargetIds=[],this.isDraggingNativeItem()){var a;(a=this.currentNativeSource)===null||a===void 0||a.loadDataTransfer(i.dataTransfer)}if(!this.enterLeaveCounter.enter(i.target)||this.monitor.isDragging())return;const{dataTransfer:l}=i,c=F8(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:i3(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=i3(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 F8(i.dataTransfer)&&i.preventDefault();this.enterLeaveCounter.reset()},this.handleTopDrop=i=>{const{dropTargetIds:a}=this;this.dropTargetIds=[],this.actions.hover(a,{clientOffset:i3(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 eee(n,r),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.registry=e.getRegistry(),this.enterLeaveCounter=new KZ(this.isNodeInDocument)}}const uf=function(e,n,r){return new nee(e,n,r)},W_=F.createContext(void 0),Q_=({children:t,option:e,templateSchema:n,onChange:r})=>{const i={...g8,...n},[a,s]=F.useReducer(zQ,i);F.useEffect(()=>{console.log("Update FormBuilderProvider here to check how many time it updates -- commented")},[n]);const{isPreview:l,isAdmin:c,isRenderView:u,renderType:d,isAdvanceView:f,globalAlignment:h="ltr",emitSocketData:m,media:g,reusableComponent:v,saveFormProgress:A}=e;return o.jsx(W_.Provider,{value:{media:g,isPreview:l,isAdmin:c,isRenderView:u,renderType:d,isAdvanceView:f,globalAlignment:h,emitSocketData:m,reusableComponent:v,state:a,dispatch:s,onChange:r,saveFormProgress:A},children:o.jsx(lf,{backend:uf,children:t})})},J_=()=>F.useContext(W_),ree=(t,e,n)=>{const r=Array.from(t),[i]=r.splice(e,1);return r.splice(n,0,i),r},iee=(t,e)=>[...t.slice(0,e),...t.slice(e+1)],aee=(t,e,n)=>[...t.slice(0,e),n,...t.slice(e)],Z_=(t,e,n)=>{if(e.length===1){const c=Number(e[0]),u=Number(n[0]);return ree(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:Z_(l.children,a,s)},r},eD=(t,e)=>{if(e.length===1){const s=Number(e[0]);return iee(t,s)}const n=[...t],r=Number(e.slice(0,1)),i=e.slice(1),a=n[r];return n[r]={...a,children:eD(a.children,i)},n},k8=(t,e,n)=>{if(e.length===1){const l=Number(e[0]);return aee(t,l,n)}const r=[...t],i=Number(e.slice(0,1)),a=e.slice(1),s=r[i];return r[i]={...s,children:k8(s.children,a,n)},r},see=(t,e,n)=>{let r=[...t],i=r[n[oa]].children[n[la]].children[n[fa]].children[n[ha]].children[n[pa]].inlineConditionalRules.rules[n[wa]].conditions[n[$o]].children[n[yo]];return r[n[oa]].children[n[la]].children[n[fa]].children[n[ha]].children[n[pa]].inlineConditionalRules.rules[n[wa]].conditions[n[$o]].children.splice([n[yo]],1),r[e[oa]].children[e[la]].children[e[fa]].children[e[ha]].children[e[pa]].inlineConditionalRules.rules[e[wa]].conditions[e[$o]].children.splice(e[yo],0,i),r},oee=(t,e,n)=>Z_(t,e,n),lee=t=>{const e=[...t],n={type:ms,uuid:tt(),children:[]};return e.map(r=>(r.children.length||(r.children=[n]),r))},tD=(t,e,n,r)=>{var h,m,g,v,A,w;let i;const a={...Ac,uuid:tt(),children:[r]},s={...tu,uuid:tt()},l={...tu,uuid:tt(),children:[a]},c={...af,uuid:tt(),children:[l]},u={...Qm,uuid:tt(),children:[c]};switch(e.length){case 1:{r.type===zC?i={...c,children:[r]}:i={...c,children:[s]};break}case 2:{r.type===ta?i={...u,children:[c]}:i={...u,children:[c]};break}case 3:{r.type===bo?i={...c,children:[l]}:i={...tu,uuid:tt(),children:[{...Ac,uuid:tt(),children:[r]}]};break}case 4:{r.type===j1?i=a:i=r;break}case 5:{i=r;break}default:i=r}let d=t;return n.length>5?(w=(A=(v=(g=(m=(h=d[n[oa]])==null?void 0:h.children[n[la]])==null?void 0:m.children[n[fa]])==null?void 0:g.children[n[ha]])==null?void 0:v.children[n[pa]])==null?void 0:A.inlineConditionalRules)==null||w.rules[n[wa]].conditions[n[$o]].children.splice(n[yo],1):d=eD(d,n),d=lee(d),d=k8(d,e,i),d},cee=(t,e,n)=>{let r;switch(e.length){case 1:{r={...Qm,uuid:tt(),children:[{...af,uuid:tt(),children:[{...tu,uuid:tt(),children:[{...Ac,uuid:tt(),children:[n]}]}]}]};break}case 2:{r={...af,uuid:tt(),children:[{...tu,uuid:tt(),children:[{...Ac,uuid:tt(),children:[n]}]}]};break}case 3:{r={...tu,uuid:tt(),children:[{...Ac,uuid:tt(),children:[n]}]};break}case 4:{r={...Ac,uuid:tt(),children:[n]};break}default:r=n}return k8(t,e,r)},on=()=>{const{state:t,dispatch:e,onChange:n,saveFormProgress:r}=J_();if(t===void 0)throw new Error("Must be wrapped in builder provider");const i=t.builderTemplateName,a=t.isChangesSaved,s=t.editing_by,l=t.version_name,c=t.loading,u=t.published_status,d=t,f=t,h=t.formType,m=t==null?void 0:t.userSelectedLanguage,g=t==null?void 0:t.languages,v=t.layout,A=F.useCallback(ge=>MQ(ge)(e),[e]),w=F.useCallback(ge=>oQ(ge)(e),[e]),x=F.useCallback(ge=>LQ(ge)(e),[e]),S=F.useCallback((ge,me)=>{var Ot,Pt,fn,yn,wn,Fn,Hn,Cn;const Le=[...v],Oe=ge.path.split("-"),ve=Oe.slice(0,-1).join("-"),V={uuid:me.uuid,type:me.type,reviewerChecklist:[]},ne=0,X=1,oe=2,fe=3,we=4,De=5,$e=6,ct=8,Nt=7,at=5,St=6,st=8;if(me.type===ta&&(me==null?void 0:me.schema)!==void 0){B(JSON.parse(me==null?void 0:me.schema),parseInt(Oe[ne]));return}if(((Ot=me==null?void 0:me.schema)==null?void 0:Ot.componentType)==="question"&&((Fn=(wn=(yn=(fn=(Pt=Le[0])==null?void 0:Pt.children[0])==null?void 0:fn.children[0])==null?void 0:yn.children[0])==null?void 0:wn.children)!=null&&Fn.some(zt=>{var rt,Je,dt;return((rt=zt==null?void 0:zt.questionText)==null?void 0:rt[m.type])===((dt=(Je=me==null?void 0:me.schema)==null?void 0:Je.questionText)==null?void 0:dt[m.type])})))return;if(me.type===tr){let zt={type:j1,reviewerChecklist:[],...Et.cloneDeep(me.schema)};if(zt!=null&&zt.options&&(zt={...zt,options:[{uuid:tt(),optionText:{english:"Option 1"},value:"Option1",hyperlinkText:{english:""},abbreviationText:{english:"Option 1"},custom_values:{}},{uuid:tt(),optionText:{english:"Option 2"},value:"Option2",hyperlinkText:{english:""},abbreviationText:{english:"Option 1"},custom_values:{}}]}),zt.componentType==="grid-component"&&(zt={...zt,children:[],options:[{uuid:tt(),custom_values:{}}]}),zt.componentType==="radio-hierarchal"&&(zt={...zt,type:"radio",children:[],options:[{uuid:tt(),label:"Yes",value:null,enableConditionalField:!0,children:[]},{uuid:tt(),label:"No",value:null,enableConditionalField:!0,children:[]}]}),zt={...zt,uuid:tt()},Oe.length===ct){U(parseInt(Oe[ne]),parseInt(Oe[X]),parseInt(Oe[oe]),parseInt(Oe[fe]),parseInt(Oe[we]),parseInt(Oe[De]),parseInt(Oe[$e]),zt);return}if(Oe.length===Nt){Z(parseInt(Oe[ne]),parseInt(Oe[X]),parseInt(Oe[oe]),parseInt(Oe[fe]),parseInt(Oe[we]),parseInt(Oe[at]),parseInt(Oe[St]),zt);return}if((Cn=(Hn=Le[Oe[ne]].children[Oe[X]])==null?void 0:Hn.children[Oe[oe]])!=null&&Cn.rowIsRepeatable&&(zt==null?void 0:zt.componentType)==="editor")return;x(cee(Le,Oe,zt)),Oe.length>1&&Ce(Oe[ne],Oe[X],Oe[oe],zt);return}const bt=me.path.split("-"),Ft=bt.slice(0,-1).join("-");if(bt.length===Oe.length){if(Ft===ve){if((bt==null?void 0:bt.length)===st){x(see(Le,Oe,bt));return}x(oee(Le,Oe,bt));return}const zt={...V,...me};(me==null?void 0:me.id)===void 0&&(zt.id=tt()),x(tD(Le,Oe,bt,zt));return}if((bt==null?void 0:bt.length)===8){const zt={type:j1,reviewerChecklist:[],...me};Z(parseInt(Oe[ne]),parseInt(Oe[X]),parseInt(Oe[oe]),parseInt(Oe[fe]),parseInt(Oe[we]),parseInt(Oe[at]),parseInt(Oe[St]),zt),Ae(bt[oa],bt[la],bt[fa],bt[ha],bt[pa],bt[at],bt[St],bt[Bl]);return}const Qe={...V,...me};(me==null?void 0:me.id)===void 0&&(Qe.id=tt()),x(tD(Le,Oe,bt,Qe))},[v,x,m.type]),E=F.useCallback(()=>HQ()(e),[e]),C=F.useCallback(ge=>BQ(ge)(e,t),[e]),_=F.useCallback(ge=>VQ(ge)(e,t),[e]),T=F.useCallback(ge=>UQ(ge)(e),[e]),N=F.useCallback(ge=>sQ(ge)(e),[e]),O=F.useCallback(ge=>fQ(ge)(e),[e]),B=F.useCallback((ge,me)=>gQ(ge,me)(e),[e]),M=F.useCallback((ge,me)=>AQ(ge,me)(e),[e]),z=F.useCallback((ge,me,Le)=>xQ(ge,me,Le)(e),[e]),P=F.useCallback(ge=>uQ(ge)(e),[e]),j=F.useCallback((ge,me)=>dQ(ge,me)(e),[e]),de=F.useCallback((ge,me,Le)=>yQ(ge,me,Le)(e),[e]),he=F.useCallback((ge,me,Le,Oe)=>TQ(ge,me,Le,Oe)(e),[e]),te=F.useCallback((ge,me,Le,Oe,ve)=>EQ(ge,me,Le,Oe,ve)(e,t),[e]),G=F.useCallback((ge,me,Le,Oe,ve,V)=>IQ(ge,me,Le,Oe,ve,V)(e,t),[e]),ae=F.useCallback((ge,me,Le)=>hQ(ge,me,Le)(e),[e]),Y=F.useCallback((ge,me,Le,Oe)=>bQ(ge,me,Le,Oe)(e),[e]),pe=F.useCallback((ge,me)=>cQ(ge,me)(e),[e]),ie=F.useCallback((ge,me,Le,Oe,ve,V)=>_Q(ge,me,Le,Oe,ve,V)(e),[e]),J=F.useCallback((ge,me,Le,Oe,ve)=>CQ(ge,me,Le,Oe,ve)(e),[e]),Q=F.useCallback((ge,me,Le,Oe)=>vQ(ge,me,Le,Oe)(e),[e]),se=F.useCallback((ge,me,Le)=>pQ(ge,me,Le)(e),[e]),be=F.useCallback((ge,me)=>lQ(ge,me)(e,t),[e]),Ce=F.useCallback((ge,me,Le,Oe)=>wQ(ge,me,Le,Oe)(e),[e]),Te=F.useCallback((ge,me,Le,Oe,ve,V,ne,X,oe)=>kQ(ge,me,Le,Oe,ve,V,ne,X,oe)(e),[e]),ye=F.useCallback((ge,me,Le,Oe,ve,V,ne,X,oe)=>NQ(ge,me,Le,Oe,ve,V,ne,X,oe)(e),[e]),Ae=F.useCallback((ge,me,Le,Oe,ve,V,ne,X)=>FQ(ge,me,Le,Oe,ve,V,ne,X)(e),[e]),re=F.useCallback((ge,me,Le,Oe,ve,V,ne,X)=>PQ(ge,me,Le,Oe,ve,V,ne,X)(e),[e]),U=F.useCallback((ge,me,Le,Oe,ve,V,ne,X)=>DQ(ge,me,Le,Oe,ve,V,ne,X)(e),[e]),Z=F.useCallback((ge,me,Le,Oe,ve,V,ne,X)=>OQ(ge,me,Le,Oe,ve,V,ne,X)(e),[e]),K=F.useCallback(ge=>qQ(ge)(e),[e]),ue=F.useCallback(ge=>$Q(ge)(e),[e]),Ee=F.useCallback(ge=>jQ(ge)(e),[e]);return{builderIsChangesSaved:a,builderTemplateName:i,formBuilderFormSchema:d,formBuilderFormLayout:v,formBuilderSchemaLanguages:g,saveFormTemplateNewVersion:f,userSelectedLanguage:m,formBuilderConfigurationType:h,formBuilderLoading:c,formBuilderPublishedStatus:u,builderEditingBy:s,builderVersionName:l,handleDrop:S,formatTableFieldsHook:w,saveFormBuilderSchema:A,removePage:P,removeSection:j,removeRow:de,removeColumn:he,removeField:te,updateEditingBy:Ee,addTabs:N,addSection:O,addRow:M,addColumn:z,cloneField:ie,cloneColumn:J,cloneRow:Q,cloneSection:se,clonePage:be,sectionImport:B,setLayout:x,fieldSettingUpdate:G,selectFormBuilderLanguage:C,unselectFormBuilderLanguage:_,updateUserFormSelectedLanguage:T,updateFormType:K,schemaBuilderUpdate:ue,pageSettingUpdate:pe,saveFormProgress:r,sectionSettingUpdate:ae,rowSettingUpdate:Y,clearBuilderSchema:E,addFieldToRowRepeaptable:Ce,addFieldToInlineRuleCondtionFields:U,fieldSettingUpdateInlineConditional:Te,fieldSettingDeleteInlineConditional:re,addFieldToGridComponentHook:Z,gridComponentFieldSettingUpdate:ye,gridComponentFieldDelete:Ae}},Zt=()=>{const{isPreview:t,isAdmin:e,isRenderView:n,renderType:r,isAdvanceView:i,media:a,globalAlignment:s,reusableComponent:l}=J_();if(t===void 0)throw new Error("Must be wrapped in builder provider");const c=r==null?void 0:r.key,{saveComponent:u,componentList:d}=l;return{isPreview:t,isAdmin:e,isRenderView:n,renderType:c,isAdvanceView:i,globalAlignment:s,media:a,saveComponent:u,componentList:d,emitSocketData:()=>{},updateGlobalToast:m=>{console.log(m)}}},uee="TASKS_LOADING",dee="TASKS_ADD",fee="TASKS_GET_PAGINATED_LIST",hee="TASKS_DELETE",pee="TASKS_PAGNIATION_UPDATE",gee="TASKS_UPDATE",mee="TASKS_SUCCESS_GET",vee="TASK_GET_TEMPLATE",bee="TASK_SET_DATA",yee="TASKS_FORM_SUBMIT",Aee="TASKS_FORM_HTTP_REQUEST",P8="TASK_SET_PROGRESS_VALUE",nD="TASK_SET_MAX_PROGRESS_VALUE",rD="TASK_SET_REGISTER_DATA",wee="TASK_SET_SCHEMA",M8="TASK_UPDATE_USER_FORM_SUBMIT_DATA",iD="CLEAR_TASK",aD="TASK_USER_SUBMIT_FORM_REPEATABLE_ADD",sD="TASK_USER_SUBMIT_FORM_REPEATABLE_REMOVE_INDEX",oD="TASK_USER_TRAINING_DATA",lD="TASK_FIELD_UPDATE",cD=6,L8=1;function See(t,e,n,r,i,a){return s=>{s({type:lD,payLoad:{pageIndex:t,sectionIndex:e,rowIndex:n,columnIndex:r,fieldIndex:i,field:a}})}}function uD(t){return(e,n)=>{const r={type:M8,payLoad:{userTaskSubmitFormData:[...t]}};e(r)}}function xee(t){return(e,n)=>{const{TasksReducer:r}=n(),{taskData:i}=r,a={type:M8,payLoad:{taskData:{...i,...t}}};e(a)}}function Cee(t,e){return(n,r)=>{const{TasksReducer:i}=r(),{userTaskSubmitFormData:a}=i,s=Et.findIndex(a,function(c){return c.rowId===t});n({type:sD,payLoad:{userSubmitFormIndex:s,repeatableDataRowIndex:e}})}}function Tee(t,e){return(n,r)=>{const{TasksReducer:i}=r(),{userTaskSubmitFormData:a}=i,s=Et.findIndex(a,function(c){return c.rowId===t});n({type:aD,payLoad:{userSubmitFormIndex:s,repeatableData:e}})}}function Eee(){return t=>{t({type:iD,payLoad:null})}}const dD=t=>e=>{e({type:P8,payLoad:{progressValue:t}})},Iee=t=>e=>{e({type:P8,payLoad:t})},_ee=t=>e=>{e({type:oD,payLoad:{userTrainingSaveData:t}})},fD=t=>e=>{e({type:rD,payLoad:{registerData:t}})},Dee=(t,e,n)=>(r,i)=>{var d;const{TasksReducer:a}=i(),{userTaskSubmitFormData:s}=a,l=[...s],c=Et.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(uD(l))},Oee=(t,e,n)=>(r,i)=>{const{TasksReducer:a}=i(),{userTaskSubmitFormData:s,registerData:l}=a,c=s,u=Et.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(fD(u));const d=Object.keys(u).length;r(dD(d))},Nee=t=>e=>{e({type:nD,payLoad:{progressMaxValue:t}})},B8={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},Fee=(t=B8,e)=>{switch(e.type){case iD:return{...t,...B8,list:[...t.list],page:t.page,per_page:t.per_page,filter:t.filter,sort:t.sort,total_records:t.total_records};case mee:return{...t,...e.payLoad};case M8:return{...t,...e.payLoad};case wee:return{...t,...e.payLoad};case P8:return{...t,...e.payLoad};case rD:return{...t,registerData:e.payLoad.registerData};case nD:return{...t,...e.payLoad};case uee:return{...t,...e.payLoad};case yee:return{...t,...e.payLoad};case Aee:return{...t,...e.payLoad};case dee:{const{record:n}=e.payLoad;return{...t,list:[...n,...t.list]}}case fee:return{...t,...e.payLoad};case bee:return{...t,taskData:e.payLoad};case pee:return{...t,...e.payLoad};case hee:{const n=t.list.filter(r=>r.task_id!==e.payLoad.task_id);return{...t,list:[...n]}}case oD:return{...t,...e.payLoad};case lD:{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 sD:{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 gee:{const{row:n,eventIndex:r}=e.payLoad,i=t.list[r];return t.list[r]={...i,...n},t}case vee:return{...t,...e.payLoad}}return t},hD=F.createContext(void 0),kee=({option:t,taskOptions:e,templateSchema:n,taskValue:r,children:i})=>{const[a,s]=F.useReducer(Fee,{...B8,...r});return o.jsx(hD.Provider,{value:{taskOptions:e,state:a,dispatch:s},children:o.jsx(Q_,{option:t,templateSchema:n,onChange:()=>{},children:i})})},Pee=()=>F.useContext(hD),br=()=>{var ye,Ae,re,U,Z,K;const{taskOptions:n,state:r,dispatch:i}=Pee();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,m=r.httpRequest,g=r.taskData,v=r.progressMaxValue,A=r.maxTabs,w=r.tabNoOfFieldsData,x=r.registerData,S=r.progressValue,E=r.noOfTotalElements,C=r.menuList,_=r.loading,T=r.submitting,N=r.success,O=r.success_message,B=(ye=n==null?void 0:n.exam)!=null&&ye.startQuiz?(Ae=n==null?void 0:n.exam)==null?void 0:Ae.startQuiz:()=>{},M=(re=n==null?void 0:n.exam)!=null&&re.AddUserAssessmentAnswer?(U=n==null?void 0:n.exam)==null?void 0:U.AddUserAssessmentAnswer:()=>{},z=(Z=n==null?void 0:n.exam)!=null&&Z.endQuiz?(K=n==null?void 0:n.exam)==null?void 0:K.endQuiz:()=>{},P=n!=null&&n.updateTaskFormData?n==null?void 0:n.updateTaskFormData:(ue,Ee,ge,me,Le,Oe)=>{},j=n!=null&&n.submitTaskFormData?n==null?void 0:n.submitTaskFormData:(ue,Ee,ge)=>{},de=F.useCallback(ue=>i(xee(ue)),[i]),he=F.useCallback((ue,Ee,ge)=>{console.log("form",ue)},[i]),te=F.useCallback(()=>i(Eee()),[i]),G=F.useCallback((ue,Ee)=>i(Tee(ue,Ee)),[i]),ae=F.useCallback((ue,Ee)=>i(Cee(ue,Ee)),[i]),Y=F.useCallback(ue=>i(dD(ue)),[i]),pe=F.useCallback(ue=>i(Iee(ue)),[i]),ie=F.useCallback(ue=>i(fD(ue)),[i]),J=F.useCallback(ue=>i(uD(ue)),[i]),Q=F.useCallback(ue=>i(Nee(ue)),[i]),se=F.useCallback(ue=>i(_ee(ue)),[i]),be=F.useCallback((ue,Ee,ge)=>i(Dee(ue,Ee,ge)),[i]),Ce=F.useCallback((ue,Ee,ge)=>i(Oee(ue,Ee,ge)),[i]),Te=F.useCallback((ue,Ee,ge,me,Le,Oe)=>i(See(ue,Ee,ge,me,Le,Oe)),[i]);return{taskOptions:n,TASK_PUBLISHED:6,TASK_PENDING:1,taskStatus:s,assessmentData:d,taskSchema:u,taskData:g,TasksList:C,TasksLoading:_,TasksSuccess:N,TasksSuccessMessage:O,taskProgressMaxValue:v,taskRegisterData:x,taskProgressValue:S,taskMaxTabs:A,noOfTotalElements:E,taskTabRequiredFieldsData:w,userTaskSubmitFormData:l,userTrainingSaveData:c,TasksSubmitLoading:T,updateTaskDataSchema:de,submitTaskFormData:j,updateTaskFormData:P,TasksSubmit:h,TasksHTTPRequest:m,updateTaskRegisterData:ie,updateTaskProgressValue:Y,updateTaskProgressMaxValue:Q,updateUserFormDataSubmit:J,removeUserDataFormSectionRepeatableData:ae,addUserDataFormSectionRepeatableData:G,onSetValuetoRepeatableData:be,onSetValuetoPostDataHook:Ce,clearTaskSchema:te,taskProgressLoading:f,task_status:a,startQuiz:B,endQuiz:z,AddUserAssessmentAnswer:M,updateUserTraining:se,taskFieldUpdateHook:Te,updateProgressDataValuesHook:pe,saveProgressDataHook:he}};function V8(){return V8=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},V8.apply(this,arguments)}var pD=y.memo(y.forwardRef(function(t,e){var n=ti.getPTI(t);return y.createElement("svg",V8({ref:e,width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),y.createElement("path",{d:"M13.4018 13.1893H0.598161C0.49329 13.189 0.390283 13.1615 0.299143 13.1097C0.208003 13.0578 0.131826 12.9832 0.0780112 12.8932C0.0268539 12.8015 0 12.6982 0 12.5931C0 12.4881 0.0268539 12.3848 0.0780112 12.293L6.47985 1.08982C6.53679 1.00399 6.61408 0.933574 6.70484 0.884867C6.7956 0.836159 6.897 0.810669 7 0.810669C7.103 0.810669 7.2044 0.836159 7.29516 0.884867C7.38592 0.933574 7.46321 1.00399 7.52015 1.08982L13.922 12.293C13.9731 12.3848 14 12.4881 14 12.5931C14 12.6982 13.9731 12.8015 13.922 12.8932C13.8682 12.9832 13.792 13.0578 13.7009 13.1097C13.6097 13.1615 13.5067 13.189 13.4018 13.1893ZM1.63046 11.989H12.3695L7 2.59425L1.63046 11.989Z",fill:"currentColor"}),y.createElement("path",{d:"M6.99996 8.78801C6.84143 8.78594 6.68997 8.72204 6.57787 8.60993C6.46576 8.49782 6.40186 8.34637 6.39979 8.18784V5.38703C6.39979 5.22786 6.46302 5.0752 6.57557 4.96265C6.68813 4.85009 6.84078 4.78686 6.99996 4.78686C7.15914 4.78686 7.31179 4.85009 7.42435 4.96265C7.5369 5.0752 7.60013 5.22786 7.60013 5.38703V8.18784C7.59806 8.34637 7.53416 8.49782 7.42205 8.60993C7.30995 8.72204 7.15849 8.78594 6.99996 8.78801Z",fill:"currentColor"}),y.createElement("path",{d:"M6.99996 11.1887C6.84143 11.1866 6.68997 11.1227 6.57787 11.0106C6.46576 10.8985 6.40186 10.7471 6.39979 10.5885V10.1884C6.39979 10.0292 6.46302 9.87658 6.57557 9.76403C6.68813 9.65147 6.84078 9.58824 6.99996 9.58824C7.15914 9.58824 7.31179 9.65147 7.42435 9.76403C7.5369 9.87658 7.60013 10.0292 7.60013 10.1884V10.5885C7.59806 10.7471 7.53416 10.8985 7.42205 11.0106C7.30995 11.1227 7.15849 11.1866 6.99996 11.1887Z",fill:"currentColor"}))}));pD.displayName="ExclamationTriangleIcon";function U8(){return U8=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},U8.apply(this,arguments)}var gD=y.memo(y.forwardRef(function(t,e){var n=ti.getPTI(t);return y.createElement("svg",U8({ref:e,width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),y.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.11101 12.8203C4.26215 13.5895 5.61553 14 7 14C8.85652 14 10.637 13.2625 11.9497 11.9497C13.2625 10.637 14 8.85652 14 7C14 5.61553 13.5895 4.26215 12.8203 3.11101C12.0511 1.95987 10.9579 1.06266 9.67879 0.532846C8.3997 0.00303296 6.99224 -0.13559 5.63437 0.134506C4.2765 0.404603 3.02922 1.07129 2.05026 2.05026C1.07129 3.02922 0.404603 4.2765 0.134506 5.63437C-0.13559 6.99224 0.00303296 8.3997 0.532846 9.67879C1.06266 10.9579 1.95987 12.0511 3.11101 12.8203ZM3.75918 2.14976C4.71846 1.50879 5.84628 1.16667 7 1.16667C8.5471 1.16667 10.0308 1.78125 11.1248 2.87521C12.2188 3.96918 12.8333 5.45291 12.8333 7C12.8333 8.15373 12.4912 9.28154 11.8502 10.2408C11.2093 11.2001 10.2982 11.9478 9.23232 12.3893C8.16642 12.8308 6.99353 12.9463 5.86198 12.7212C4.73042 12.4962 3.69102 11.9406 2.87521 11.1248C2.05941 10.309 1.50384 9.26958 1.27876 8.13803C1.05367 7.00647 1.16919 5.83358 1.61071 4.76768C2.05222 3.70178 2.79989 2.79074 3.75918 2.14976ZM7.00002 4.8611C6.84594 4.85908 6.69873 4.79698 6.58977 4.68801C6.48081 4.57905 6.4187 4.43185 6.41669 4.27776V3.88888C6.41669 3.73417 6.47815 3.58579 6.58754 3.4764C6.69694 3.367 6.84531 3.30554 7.00002 3.30554C7.15473 3.30554 7.3031 3.367 7.4125 3.4764C7.52189 3.58579 7.58335 3.73417 7.58335 3.88888V4.27776C7.58134 4.43185 7.51923 4.57905 7.41027 4.68801C7.30131 4.79698 7.1541 4.85908 7.00002 4.8611ZM7.00002 10.6945C6.84594 10.6925 6.69873 10.6304 6.58977 10.5214C6.48081 10.4124 6.4187 10.2652 6.41669 10.1111V6.22225C6.41669 6.06754 6.47815 5.91917 6.58754 5.80977C6.69694 5.70037 6.84531 5.63892 7.00002 5.63892C7.15473 5.63892 7.3031 5.70037 7.4125 5.80977C7.52189 5.91917 7.58335 6.06754 7.58335 6.22225V10.1111C7.58134 10.2652 7.51923 10.4124 7.41027 10.5214C7.30131 10.6304 7.1541 10.6925 7.00002 10.6945Z",fill:"currentColor"}))}));gD.displayName="InfoCircleIcon";function q8(){return q8=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},q8.apply(this,arguments)}var $8=y.memo(y.forwardRef(function(t,e){var n=ti.getPTI(t);return y.createElement("svg",q8({ref:e,width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),y.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 14C5.61553 14 4.26215 13.5895 3.11101 12.8203C1.95987 12.0511 1.06266 10.9579 0.532846 9.67879C0.00303296 8.3997 -0.13559 6.99224 0.134506 5.63437C0.404603 4.2765 1.07129 3.02922 2.05026 2.05026C3.02922 1.07129 4.2765 0.404603 5.63437 0.134506C6.99224 -0.13559 8.3997 0.00303296 9.67879 0.532846C10.9579 1.06266 12.0511 1.95987 12.8203 3.11101C13.5895 4.26215 14 5.61553 14 7C14 8.85652 13.2625 10.637 11.9497 11.9497C10.637 13.2625 8.85652 14 7 14ZM7 1.16667C5.84628 1.16667 4.71846 1.50879 3.75918 2.14976C2.79989 2.79074 2.05222 3.70178 1.61071 4.76768C1.16919 5.83358 1.05367 7.00647 1.27876 8.13803C1.50384 9.26958 2.05941 10.309 2.87521 11.1248C3.69102 11.9406 4.73042 12.4962 5.86198 12.7212C6.99353 12.9463 8.16642 12.8308 9.23232 12.3893C10.2982 11.9478 11.2093 11.2001 11.8502 10.2408C12.4912 9.28154 12.8333 8.15373 12.8333 7C12.8333 5.45291 12.2188 3.96918 11.1248 2.87521C10.0308 1.78125 8.5471 1.16667 7 1.16667ZM4.66662 9.91668C4.58998 9.91704 4.51404 9.90209 4.44325 9.87271C4.37246 9.84333 4.30826 9.8001 4.2544 9.74557C4.14516 9.6362 4.0838 9.48793 4.0838 9.33335C4.0838 9.17876 4.14516 9.0305 4.2544 8.92113L6.17553 7L4.25443 5.07891C4.15139 4.96832 4.09529 4.82207 4.09796 4.67094C4.10063 4.51982 4.16185 4.37563 4.26872 4.26876C4.3756 4.16188 4.51979 4.10066 4.67091 4.09799C4.82204 4.09532 4.96829 4.15142 5.07887 4.25446L6.99997 6.17556L8.92106 4.25446C9.03164 4.15142 9.1779 4.09532 9.32903 4.09799C9.48015 4.10066 9.62434 4.16188 9.73121 4.26876C9.83809 4.37563 9.89931 4.51982 9.90198 4.67094C9.90464 4.82207 9.84855 4.96832 9.74551 5.07891L7.82441 7L9.74554 8.92113C9.85478 9.0305 9.91614 9.17876 9.91614 9.33335C9.91614 9.48793 9.85478 9.6362 9.74554 9.74557C9.69168 9.8001 9.62748 9.84333 9.55669 9.87271C9.4859 9.90209 9.40996 9.91704 9.33332 9.91668C9.25668 9.91704 9.18073 9.90209 9.10995 9.87271C9.03916 9.84333 8.97495 9.8001 8.9211 9.74557L6.99997 7.82444L5.07884 9.74557C5.02499 9.8001 4.96078 9.84333 4.88999 9.87271C4.81921 9.90209 4.74326 9.91704 4.66662 9.91668Z",fill:"currentColor"}))}));$8.displayName="TimesCircleIcon";function j8(){return j8=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},j8.apply(this,arguments)}function H8(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Mee(t){if(Array.isArray(t))return H8(t)}function Lee(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function mD(t,e){if(t){if(typeof t=="string")return H8(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return H8(t,e)}}function Bee(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
1597
|
+
`),dataTransfer:t=>t},matchesTypes:["Url","text/uri-list"]},[H_]:{exposeProperties:{text:(t,e)=>O8(t,e,""),dataTransfer:t=>t},matchesTypes:["Text","text/plain"]}};function RZ(t,e){const n=N8[t];if(!n)throw new Error(`native type ${t} has no configuration`);const r=new XZ(n);return r.loadDataTransfer(e),r}function F8(t){if(!t)return null;const e=Array.prototype.slice.call(t.types||[]);return Object.keys(N8).filter(n=>{const r=N8[n];return r!=null&&r.matchesTypes?r.matchesTypes.some(i=>e.indexOf(i)>-1):!1})[0]||null}const GZ=q_(()=>/firefox/i.test(navigator.userAgent)),K_=q_(()=>!!window.safari);class X_{interpolate(e){const{xs:n,ys:r,c1s:i,c2s:a,c3s:s}=this;let l=n.length-1;if(e===n[l])return r[l];let c=0,u=s.length-1,d;for(;c<=u;){d=Math.floor(.5*(c+u));const m=n[d];if(m<e)c=d+1;else if(m>e)u=d-1;else return r[d]}l=Math.max(0,u);const f=e-n[l],h=f*f;return r[l]+i[l]*f+a[l]*h+s[l]*f*h}constructor(e,n){const{length:r}=e,i=[];for(let m=0;m<r;m++)i.push(m);i.sort((m,g)=>e[m]<e[g]?-1:1);const a=[],s=[];let l,c;for(let m=0;m<r-1;m++)l=e[m+1]-e[m],c=n[m+1]-n[m],a.push(l),s.push(c/l);const u=[s[0]];for(let m=0;m<a.length-1;m++){const g=s[m],v=s[m+1];if(g*v<=0)u.push(0);else{l=a[m];const A=a[m+1],w=l+A;u.push(3*w/((w+A)/g+(w+l)/v))}}u.push(s[s.length-1]);const d=[],f=[];let h;for(let m=0;m<u.length-1;m++){h=s[m];const g=u[m],v=1/a[m],A=g+u[m+1]-h-h;d.push((h-g-A)*v),f.push(A*v*v)}this.xs=e,this.ys=n,this.c1s=u,this.c2s=d,this.c3s=f}}const WZ=1;function R_(t){const e=t.nodeType===WZ?t:t.parentElement;if(!e)return null;const{top:n,left:r}=e.getBoundingClientRect();return{x:r,y:n}}function i3(t){return{x:t.clientX,y:t.clientY}}function QZ(t){var e;return t.nodeName==="IMG"&&(GZ()||!(!((e=document.documentElement)===null||e===void 0)&&e.contains(t)))}function JZ(t,e,n,r){let i=t?e.width:n,a=t?e.height:r;return K_()&&t&&(a/=window.devicePixelRatio,i/=window.devicePixelRatio),{dragPreviewWidth:i,dragPreviewHeight:a}}function ZZ(t,e,n,r,i){const a=QZ(e),l=R_(a?t:e),c={x:n.x-l.x,y:n.y-l.y},{offsetWidth:u,offsetHeight:d}=t,{anchorX:f,anchorY:h}=r,{dragPreviewWidth:m,dragPreviewHeight:g}=JZ(a,e,u,d),v=()=>{let _=new X_([0,.5,1],[c.y,c.y/d*g,c.y+g-d]).interpolate(h);return K_()&&a&&(_+=(window.devicePixelRatio-1)*g),_},A=()=>new X_([0,.5,1],[c.x,c.x/u*m,c.x+m-u]).interpolate(f),{offsetX:w,offsetY:x}=i,S=w===0||w,E=x===0||x;return{x:S?w:A(),y:E?x:v()}}class eee{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 tee(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function G_(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){tee(t,i,n[i])})}return t}class nee{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 G_({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 G_({anchorX:.5,anchorY:.5,captureDraggingState:!1},n||{})}isDraggingNativeItem(){const e=this.monitor.getItemType();return Object.keys(Y_).some(n=>Y_[n]===e)}beginDragNativeItem(e,n){this.clearCurrentDragSourceNode(),this.currentNativeSource=RZ(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&&R_(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=i3(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=F8(l);if(this.monitor.isDragging()){if(l&&typeof l.setDragImage=="function"){const d=this.monitor.getSourceId(),f=this.sourceNodes.get(d),h=this.sourcePreviewNodes.get(d)||f;if(h){const{anchorX:m,anchorY:g,offsetX:v,offsetY:A}=this.getCurrentSourcePreviewNodeOptions(),S=ZZ(f,h,s,{anchorX:m,anchorY:g},{offsetX:v,offsetY:A});l.setDragImage(h,S.x,S.y)}}try{l==null||l.setData("application/json",{})}catch{}this.setCurrentDragSourceNode(i.target);const{captureDraggingState:u}=this.getCurrentSourcePreviewNodeOptions();u?this.actions.publishDragSource():setTimeout(()=>this.actions.publishDragSource(),0)}else if(c)this.beginDragNativeItem(c);else{if(l&&!l.types&&(i.target&&!i.target.hasAttribute||!i.target.hasAttribute("draggable")))return;i.preventDefault()}},this.handleTopDragEndCapture=()=>{this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleTopDragEnterCapture=i=>{if(this.dragEnterTargetIds=[],this.isDraggingNativeItem()){var a;(a=this.currentNativeSource)===null||a===void 0||a.loadDataTransfer(i.dataTransfer)}if(!this.enterLeaveCounter.enter(i.target)||this.monitor.isDragging())return;const{dataTransfer:l}=i,c=F8(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:i3(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=i3(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 F8(i.dataTransfer)&&i.preventDefault();this.enterLeaveCounter.reset()},this.handleTopDrop=i=>{const{dropTargetIds:a}=this;this.dropTargetIds=[],this.actions.hover(a,{clientOffset:i3(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 eee(n,r),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.registry=e.getRegistry(),this.enterLeaveCounter=new KZ(this.isNodeInDocument)}}const uf=function(e,n,r){return new nee(e,n,r)},W_=F.createContext(void 0),Q_=({children:t,option:e,templateSchema:n,onChange:r})=>{const i={...g8,...n},[a,s]=F.useReducer(zQ,i),{isPreview:l,isAdmin:c,isRenderView:u,renderType:d,isAdvanceView:f,globalAlignment:h="ltr",emitSocketData:m,media:g,reusableComponent:v,saveFormProgress:A}=e;return o.jsx(W_.Provider,{value:{media:g,isPreview:l,isAdmin:c,isRenderView:u,renderType:d,isAdvanceView:f,globalAlignment:h,emitSocketData:m,reusableComponent:v,state:a,dispatch:s,onChange:r,saveFormProgress:A},children:o.jsx(lf,{backend:uf,children:t})})},J_=()=>F.useContext(W_),ree=(t,e,n)=>{const r=Array.from(t),[i]=r.splice(e,1);return r.splice(n,0,i),r},iee=(t,e)=>[...t.slice(0,e),...t.slice(e+1)],aee=(t,e,n)=>[...t.slice(0,e),n,...t.slice(e)],Z_=(t,e,n)=>{if(e.length===1){const c=Number(e[0]),u=Number(n[0]);return ree(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:Z_(l.children,a,s)},r},eD=(t,e)=>{if(e.length===1){const s=Number(e[0]);return iee(t,s)}const n=[...t],r=Number(e.slice(0,1)),i=e.slice(1),a=n[r];return n[r]={...a,children:eD(a.children,i)},n},k8=(t,e,n)=>{if(e.length===1){const l=Number(e[0]);return aee(t,l,n)}const r=[...t],i=Number(e.slice(0,1)),a=e.slice(1),s=r[i];return r[i]={...s,children:k8(s.children,a,n)},r},see=(t,e,n)=>{let r=[...t],i=r[n[oa]].children[n[la]].children[n[fa]].children[n[ha]].children[n[pa]].inlineConditionalRules.rules[n[wa]].conditions[n[$o]].children[n[yo]];return r[n[oa]].children[n[la]].children[n[fa]].children[n[ha]].children[n[pa]].inlineConditionalRules.rules[n[wa]].conditions[n[$o]].children.splice([n[yo]],1),r[e[oa]].children[e[la]].children[e[fa]].children[e[ha]].children[e[pa]].inlineConditionalRules.rules[e[wa]].conditions[e[$o]].children.splice(e[yo],0,i),r},oee=(t,e,n)=>Z_(t,e,n),lee=t=>{const e=[...t],n={type:ms,uuid:tt(),children:[]};return e.map(r=>(r.children.length||(r.children=[n]),r))},tD=(t,e,n,r)=>{var h,m,g,v,A,w;let i;const a={...Ac,uuid:tt(),children:[r]},s={...tu,uuid:tt()},l={...tu,uuid:tt(),children:[a]},c={...af,uuid:tt(),children:[l]},u={...Qm,uuid:tt(),children:[c]};switch(e.length){case 1:{r.type===zC?i={...c,children:[r]}:i={...c,children:[s]};break}case 2:{r.type===ta?i={...u,children:[c]}:i={...u,children:[c]};break}case 3:{r.type===bo?i={...c,children:[l]}:i={...tu,uuid:tt(),children:[{...Ac,uuid:tt(),children:[r]}]};break}case 4:{r.type===j1?i=a:i=r;break}case 5:{i=r;break}default:i=r}let d=t;return n.length>5?(w=(A=(v=(g=(m=(h=d[n[oa]])==null?void 0:h.children[n[la]])==null?void 0:m.children[n[fa]])==null?void 0:g.children[n[ha]])==null?void 0:v.children[n[pa]])==null?void 0:A.inlineConditionalRules)==null||w.rules[n[wa]].conditions[n[$o]].children.splice(n[yo],1):d=eD(d,n),d=lee(d),d=k8(d,e,i),d},cee=(t,e,n)=>{let r;switch(e.length){case 1:{r={...Qm,uuid:tt(),children:[{...af,uuid:tt(),children:[{...tu,uuid:tt(),children:[{...Ac,uuid:tt(),children:[n]}]}]}]};break}case 2:{r={...af,uuid:tt(),children:[{...tu,uuid:tt(),children:[{...Ac,uuid:tt(),children:[n]}]}]};break}case 3:{r={...tu,uuid:tt(),children:[{...Ac,uuid:tt(),children:[n]}]};break}case 4:{r={...Ac,uuid:tt(),children:[n]};break}default:r=n}return k8(t,e,r)},on=()=>{const{state:t,dispatch:e,onChange:n,saveFormProgress:r}=J_();if(t===void 0)throw new Error("Must be wrapped in builder provider");const i=t.builderTemplateName,a=t.isChangesSaved,s=t.editing_by,l=t.version_name,c=t.loading,u=t.published_status,d=t,f=t,h=t.formType,m=t==null?void 0:t.userSelectedLanguage,g=t==null?void 0:t.languages,v=t.layout,A=F.useCallback(ge=>MQ(ge)(e),[e]),w=F.useCallback(ge=>oQ(ge)(e),[e]),x=F.useCallback(ge=>LQ(ge)(e),[e]),S=F.useCallback((ge,me)=>{var Ot,Pt,fn,yn,wn,Fn,Hn,Cn;const Le=[...v],Oe=ge.path.split("-"),ve=Oe.slice(0,-1).join("-"),V={uuid:me.uuid,type:me.type,reviewerChecklist:[]},ne=0,X=1,oe=2,fe=3,we=4,De=5,$e=6,ct=8,Nt=7,at=5,St=6,st=8;if(me.type===ta&&(me==null?void 0:me.schema)!==void 0){B(JSON.parse(me==null?void 0:me.schema),parseInt(Oe[ne]));return}if(((Ot=me==null?void 0:me.schema)==null?void 0:Ot.componentType)==="question"&&((Fn=(wn=(yn=(fn=(Pt=Le[0])==null?void 0:Pt.children[0])==null?void 0:fn.children[0])==null?void 0:yn.children[0])==null?void 0:wn.children)!=null&&Fn.some(zt=>{var rt,Je,dt;return((rt=zt==null?void 0:zt.questionText)==null?void 0:rt[m.type])===((dt=(Je=me==null?void 0:me.schema)==null?void 0:Je.questionText)==null?void 0:dt[m.type])})))return;if(me.type===tr){let zt={type:j1,reviewerChecklist:[],...Et.cloneDeep(me.schema)};if(zt!=null&&zt.options&&(zt={...zt,options:[{uuid:tt(),optionText:{english:"Option 1"},value:"Option1",hyperlinkText:{english:""},abbreviationText:{english:"Option 1"},custom_values:{}},{uuid:tt(),optionText:{english:"Option 2"},value:"Option2",hyperlinkText:{english:""},abbreviationText:{english:"Option 1"},custom_values:{}}]}),zt.componentType==="grid-component"&&(zt={...zt,children:[],options:[{uuid:tt(),custom_values:{}}]}),zt.componentType==="radio-hierarchal"&&(zt={...zt,type:"radio",children:[],options:[{uuid:tt(),label:"Yes",value:null,enableConditionalField:!0,children:[]},{uuid:tt(),label:"No",value:null,enableConditionalField:!0,children:[]}]}),zt={...zt,uuid:tt()},Oe.length===ct){U(parseInt(Oe[ne]),parseInt(Oe[X]),parseInt(Oe[oe]),parseInt(Oe[fe]),parseInt(Oe[we]),parseInt(Oe[De]),parseInt(Oe[$e]),zt);return}if(Oe.length===Nt){Z(parseInt(Oe[ne]),parseInt(Oe[X]),parseInt(Oe[oe]),parseInt(Oe[fe]),parseInt(Oe[we]),parseInt(Oe[at]),parseInt(Oe[St]),zt);return}if((Cn=(Hn=Le[Oe[ne]].children[Oe[X]])==null?void 0:Hn.children[Oe[oe]])!=null&&Cn.rowIsRepeatable&&(zt==null?void 0:zt.componentType)==="editor")return;x(cee(Le,Oe,zt)),Oe.length>1&&Ce(Oe[ne],Oe[X],Oe[oe],zt);return}const bt=me.path.split("-"),Ft=bt.slice(0,-1).join("-");if(bt.length===Oe.length){if(Ft===ve){if((bt==null?void 0:bt.length)===st){x(see(Le,Oe,bt));return}x(oee(Le,Oe,bt));return}const zt={...V,...me};(me==null?void 0:me.id)===void 0&&(zt.id=tt()),x(tD(Le,Oe,bt,zt));return}if((bt==null?void 0:bt.length)===8){const zt={type:j1,reviewerChecklist:[],...me};Z(parseInt(Oe[ne]),parseInt(Oe[X]),parseInt(Oe[oe]),parseInt(Oe[fe]),parseInt(Oe[we]),parseInt(Oe[at]),parseInt(Oe[St]),zt),Ae(bt[oa],bt[la],bt[fa],bt[ha],bt[pa],bt[at],bt[St],bt[Bl]);return}const Qe={...V,...me};(me==null?void 0:me.id)===void 0&&(Qe.id=tt()),x(tD(Le,Oe,bt,Qe))},[v,x,m.type]),E=F.useCallback(()=>HQ()(e),[e]),C=F.useCallback(ge=>BQ(ge)(e,t),[e]),_=F.useCallback(ge=>VQ(ge)(e,t),[e]),T=F.useCallback(ge=>UQ(ge)(e),[e]),N=F.useCallback(ge=>sQ(ge)(e),[e]),O=F.useCallback(ge=>fQ(ge)(e),[e]),B=F.useCallback((ge,me)=>gQ(ge,me)(e),[e]),M=F.useCallback((ge,me)=>AQ(ge,me)(e),[e]),z=F.useCallback((ge,me,Le)=>xQ(ge,me,Le)(e),[e]),P=F.useCallback(ge=>uQ(ge)(e),[e]),j=F.useCallback((ge,me)=>dQ(ge,me)(e),[e]),de=F.useCallback((ge,me,Le)=>yQ(ge,me,Le)(e),[e]),he=F.useCallback((ge,me,Le,Oe)=>TQ(ge,me,Le,Oe)(e),[e]),te=F.useCallback((ge,me,Le,Oe,ve)=>EQ(ge,me,Le,Oe,ve)(e,t),[e]),G=F.useCallback((ge,me,Le,Oe,ve,V)=>IQ(ge,me,Le,Oe,ve,V)(e,t),[e]),ae=F.useCallback((ge,me,Le)=>hQ(ge,me,Le)(e),[e]),Y=F.useCallback((ge,me,Le,Oe)=>bQ(ge,me,Le,Oe)(e),[e]),pe=F.useCallback((ge,me)=>cQ(ge,me)(e),[e]),ie=F.useCallback((ge,me,Le,Oe,ve,V)=>_Q(ge,me,Le,Oe,ve,V)(e),[e]),J=F.useCallback((ge,me,Le,Oe,ve)=>CQ(ge,me,Le,Oe,ve)(e),[e]),Q=F.useCallback((ge,me,Le,Oe)=>vQ(ge,me,Le,Oe)(e),[e]),se=F.useCallback((ge,me,Le)=>pQ(ge,me,Le)(e),[e]),be=F.useCallback((ge,me)=>lQ(ge,me)(e,t),[e]),Ce=F.useCallback((ge,me,Le,Oe)=>wQ(ge,me,Le,Oe)(e),[e]),Te=F.useCallback((ge,me,Le,Oe,ve,V,ne,X,oe)=>kQ(ge,me,Le,Oe,ve,V,ne,X,oe)(e),[e]),ye=F.useCallback((ge,me,Le,Oe,ve,V,ne,X,oe)=>NQ(ge,me,Le,Oe,ve,V,ne,X,oe)(e),[e]),Ae=F.useCallback((ge,me,Le,Oe,ve,V,ne,X)=>FQ(ge,me,Le,Oe,ve,V,ne,X)(e),[e]),re=F.useCallback((ge,me,Le,Oe,ve,V,ne,X)=>PQ(ge,me,Le,Oe,ve,V,ne,X)(e),[e]),U=F.useCallback((ge,me,Le,Oe,ve,V,ne,X)=>DQ(ge,me,Le,Oe,ve,V,ne,X)(e),[e]),Z=F.useCallback((ge,me,Le,Oe,ve,V,ne,X)=>OQ(ge,me,Le,Oe,ve,V,ne,X)(e),[e]),K=F.useCallback(ge=>qQ(ge)(e),[e]),ue=F.useCallback(ge=>$Q(ge)(e),[e]),Ee=F.useCallback(ge=>jQ(ge)(e),[e]);return{builderIsChangesSaved:a,builderTemplateName:i,formBuilderFormSchema:d,formBuilderFormLayout:v,formBuilderSchemaLanguages:g,saveFormTemplateNewVersion:f,userSelectedLanguage:m,formBuilderConfigurationType:h,formBuilderLoading:c,formBuilderPublishedStatus:u,builderEditingBy:s,builderVersionName:l,handleDrop:S,formatTableFieldsHook:w,saveFormBuilderSchema:A,removePage:P,removeSection:j,removeRow:de,removeColumn:he,removeField:te,updateEditingBy:Ee,addTabs:N,addSection:O,addRow:M,addColumn:z,cloneField:ie,cloneColumn:J,cloneRow:Q,cloneSection:se,clonePage:be,sectionImport:B,setLayout:x,fieldSettingUpdate:G,selectFormBuilderLanguage:C,unselectFormBuilderLanguage:_,updateUserFormSelectedLanguage:T,updateFormType:K,schemaBuilderUpdate:ue,pageSettingUpdate:pe,saveFormProgress:r,sectionSettingUpdate:ae,rowSettingUpdate:Y,clearBuilderSchema:E,addFieldToRowRepeaptable:Ce,addFieldToInlineRuleCondtionFields:U,fieldSettingUpdateInlineConditional:Te,fieldSettingDeleteInlineConditional:re,addFieldToGridComponentHook:Z,gridComponentFieldSettingUpdate:ye,gridComponentFieldDelete:Ae}},Zt=()=>{const{isPreview:t,isAdmin:e,isRenderView:n,renderType:r,isAdvanceView:i,media:a,globalAlignment:s,reusableComponent:l}=J_();if(t===void 0)throw new Error("Must be wrapped in builder provider");const c=r==null?void 0:r.key,{saveComponent:u,componentList:d}=l;return{isPreview:t,isAdmin:e,isRenderView:n,renderType:c,isAdvanceView:i,globalAlignment:s,media:a,saveComponent:u,componentList:d,emitSocketData:()=>{},updateGlobalToast:m=>{console.log(m)}}},uee="TASKS_LOADING",dee="TASKS_ADD",fee="TASKS_GET_PAGINATED_LIST",hee="TASKS_DELETE",pee="TASKS_PAGNIATION_UPDATE",gee="TASKS_UPDATE",mee="TASKS_SUCCESS_GET",vee="TASK_GET_TEMPLATE",bee="TASK_SET_DATA",yee="TASKS_FORM_SUBMIT",Aee="TASKS_FORM_HTTP_REQUEST",P8="TASK_SET_PROGRESS_VALUE",nD="TASK_SET_MAX_PROGRESS_VALUE",rD="TASK_SET_REGISTER_DATA",wee="TASK_SET_SCHEMA",M8="TASK_UPDATE_USER_FORM_SUBMIT_DATA",iD="CLEAR_TASK",aD="TASK_USER_SUBMIT_FORM_REPEATABLE_ADD",sD="TASK_USER_SUBMIT_FORM_REPEATABLE_REMOVE_INDEX",oD="TASK_USER_TRAINING_DATA",lD="TASK_FIELD_UPDATE",cD=6,L8=1;function See(t,e,n,r,i,a){return s=>{s({type:lD,payLoad:{pageIndex:t,sectionIndex:e,rowIndex:n,columnIndex:r,fieldIndex:i,field:a}})}}function uD(t){return(e,n)=>{const r={type:M8,payLoad:{userTaskSubmitFormData:[...t]}};e(r)}}function xee(t){return(e,n)=>{const{TasksReducer:r}=n(),{taskData:i}=r,a={type:M8,payLoad:{taskData:{...i,...t}}};e(a)}}function Cee(t,e){return(n,r)=>{const{TasksReducer:i}=r(),{userTaskSubmitFormData:a}=i,s=Et.findIndex(a,function(c){return c.rowId===t});n({type:sD,payLoad:{userSubmitFormIndex:s,repeatableDataRowIndex:e}})}}function Tee(t,e){return(n,r)=>{const{TasksReducer:i}=r(),{userTaskSubmitFormData:a}=i,s=Et.findIndex(a,function(c){return c.rowId===t});n({type:aD,payLoad:{userSubmitFormIndex:s,repeatableData:e}})}}function Eee(){return t=>{t({type:iD,payLoad:null})}}const dD=t=>e=>{e({type:P8,payLoad:{progressValue:t}})},Iee=t=>e=>{e({type:P8,payLoad:t})},_ee=t=>e=>{e({type:oD,payLoad:{userTrainingSaveData:t}})},fD=t=>e=>{e({type:rD,payLoad:{registerData:t}})},Dee=(t,e,n)=>(r,i)=>{var d;const{TasksReducer:a}=i(),{userTaskSubmitFormData:s}=a,l=[...s],c=Et.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(uD(l))},Oee=(t,e,n)=>(r,i)=>{const{TasksReducer:a}=i(),{userTaskSubmitFormData:s,registerData:l}=a,c=s,u=Et.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(fD(u));const d=Object.keys(u).length;r(dD(d))},Nee=t=>e=>{e({type:nD,payLoad:{progressMaxValue:t}})},B8={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},Fee=(t=B8,e)=>{switch(e.type){case iD:return{...t,...B8,list:[...t.list],page:t.page,per_page:t.per_page,filter:t.filter,sort:t.sort,total_records:t.total_records};case mee:return{...t,...e.payLoad};case M8:return{...t,...e.payLoad};case wee:return{...t,...e.payLoad};case P8:return{...t,...e.payLoad};case rD:return{...t,registerData:e.payLoad.registerData};case nD:return{...t,...e.payLoad};case uee:return{...t,...e.payLoad};case yee:return{...t,...e.payLoad};case Aee:return{...t,...e.payLoad};case dee:{const{record:n}=e.payLoad;return{...t,list:[...n,...t.list]}}case fee:return{...t,...e.payLoad};case bee:return{...t,taskData:e.payLoad};case pee:return{...t,...e.payLoad};case hee:{const n=t.list.filter(r=>r.task_id!==e.payLoad.task_id);return{...t,list:[...n]}}case oD:return{...t,...e.payLoad};case lD:{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 sD:{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 gee:{const{row:n,eventIndex:r}=e.payLoad,i=t.list[r];return t.list[r]={...i,...n},t}case vee:return{...t,...e.payLoad}}return t},hD=F.createContext(void 0),kee=({option:t,taskOptions:e,templateSchema:n,taskValue:r,children:i})=>{const[a,s]=F.useReducer(Fee,{...B8,...r});return o.jsx(hD.Provider,{value:{taskOptions:e,state:a,dispatch:s},children:o.jsx(Q_,{option:t,templateSchema:n,onChange:()=>{},children:i})})},Pee=()=>F.useContext(hD),br=()=>{var ye,Ae,re,U,Z,K;const{taskOptions:n,state:r,dispatch:i}=Pee();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,m=r.httpRequest,g=r.taskData,v=r.progressMaxValue,A=r.maxTabs,w=r.tabNoOfFieldsData,x=r.registerData,S=r.progressValue,E=r.noOfTotalElements,C=r.menuList,_=r.loading,T=r.submitting,N=r.success,O=r.success_message,B=(ye=n==null?void 0:n.exam)!=null&&ye.startQuiz?(Ae=n==null?void 0:n.exam)==null?void 0:Ae.startQuiz:()=>{},M=(re=n==null?void 0:n.exam)!=null&&re.AddUserAssessmentAnswer?(U=n==null?void 0:n.exam)==null?void 0:U.AddUserAssessmentAnswer:()=>{},z=(Z=n==null?void 0:n.exam)!=null&&Z.endQuiz?(K=n==null?void 0:n.exam)==null?void 0:K.endQuiz:()=>{},P=n!=null&&n.updateTaskFormData?n==null?void 0:n.updateTaskFormData:(ue,Ee,ge,me,Le,Oe)=>{},j=n!=null&&n.submitTaskFormData?n==null?void 0:n.submitTaskFormData:(ue,Ee,ge)=>{},de=F.useCallback(ue=>i(xee(ue)),[i]),he=F.useCallback((ue,Ee,ge)=>{console.log("form",ue)},[i]),te=F.useCallback(()=>i(Eee()),[i]),G=F.useCallback((ue,Ee)=>i(Tee(ue,Ee)),[i]),ae=F.useCallback((ue,Ee)=>i(Cee(ue,Ee)),[i]),Y=F.useCallback(ue=>i(dD(ue)),[i]),pe=F.useCallback(ue=>i(Iee(ue)),[i]),ie=F.useCallback(ue=>i(fD(ue)),[i]),J=F.useCallback(ue=>i(uD(ue)),[i]),Q=F.useCallback(ue=>i(Nee(ue)),[i]),se=F.useCallback(ue=>i(_ee(ue)),[i]),be=F.useCallback((ue,Ee,ge)=>i(Dee(ue,Ee,ge)),[i]),Ce=F.useCallback((ue,Ee,ge)=>i(Oee(ue,Ee,ge)),[i]),Te=F.useCallback((ue,Ee,ge,me,Le,Oe)=>i(See(ue,Ee,ge,me,Le,Oe)),[i]);return{taskOptions:n,TASK_PUBLISHED:6,TASK_PENDING:1,taskStatus:s,assessmentData:d,taskSchema:u,taskData:g,TasksList:C,TasksLoading:_,TasksSuccess:N,TasksSuccessMessage:O,taskProgressMaxValue:v,taskRegisterData:x,taskProgressValue:S,taskMaxTabs:A,noOfTotalElements:E,taskTabRequiredFieldsData:w,userTaskSubmitFormData:l,userTrainingSaveData:c,TasksSubmitLoading:T,updateTaskDataSchema:de,submitTaskFormData:j,updateTaskFormData:P,TasksSubmit:h,TasksHTTPRequest:m,updateTaskRegisterData:ie,updateTaskProgressValue:Y,updateTaskProgressMaxValue:Q,updateUserFormDataSubmit:J,removeUserDataFormSectionRepeatableData:ae,addUserDataFormSectionRepeatableData:G,onSetValuetoRepeatableData:be,onSetValuetoPostDataHook:Ce,clearTaskSchema:te,taskProgressLoading:f,task_status:a,startQuiz:B,endQuiz:z,AddUserAssessmentAnswer:M,updateUserTraining:se,taskFieldUpdateHook:Te,updateProgressDataValuesHook:pe,saveProgressDataHook:he}};function V8(){return V8=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},V8.apply(this,arguments)}var pD=y.memo(y.forwardRef(function(t,e){var n=ti.getPTI(t);return y.createElement("svg",V8({ref:e,width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),y.createElement("path",{d:"M13.4018 13.1893H0.598161C0.49329 13.189 0.390283 13.1615 0.299143 13.1097C0.208003 13.0578 0.131826 12.9832 0.0780112 12.8932C0.0268539 12.8015 0 12.6982 0 12.5931C0 12.4881 0.0268539 12.3848 0.0780112 12.293L6.47985 1.08982C6.53679 1.00399 6.61408 0.933574 6.70484 0.884867C6.7956 0.836159 6.897 0.810669 7 0.810669C7.103 0.810669 7.2044 0.836159 7.29516 0.884867C7.38592 0.933574 7.46321 1.00399 7.52015 1.08982L13.922 12.293C13.9731 12.3848 14 12.4881 14 12.5931C14 12.6982 13.9731 12.8015 13.922 12.8932C13.8682 12.9832 13.792 13.0578 13.7009 13.1097C13.6097 13.1615 13.5067 13.189 13.4018 13.1893ZM1.63046 11.989H12.3695L7 2.59425L1.63046 11.989Z",fill:"currentColor"}),y.createElement("path",{d:"M6.99996 8.78801C6.84143 8.78594 6.68997 8.72204 6.57787 8.60993C6.46576 8.49782 6.40186 8.34637 6.39979 8.18784V5.38703C6.39979 5.22786 6.46302 5.0752 6.57557 4.96265C6.68813 4.85009 6.84078 4.78686 6.99996 4.78686C7.15914 4.78686 7.31179 4.85009 7.42435 4.96265C7.5369 5.0752 7.60013 5.22786 7.60013 5.38703V8.18784C7.59806 8.34637 7.53416 8.49782 7.42205 8.60993C7.30995 8.72204 7.15849 8.78594 6.99996 8.78801Z",fill:"currentColor"}),y.createElement("path",{d:"M6.99996 11.1887C6.84143 11.1866 6.68997 11.1227 6.57787 11.0106C6.46576 10.8985 6.40186 10.7471 6.39979 10.5885V10.1884C6.39979 10.0292 6.46302 9.87658 6.57557 9.76403C6.68813 9.65147 6.84078 9.58824 6.99996 9.58824C7.15914 9.58824 7.31179 9.65147 7.42435 9.76403C7.5369 9.87658 7.60013 10.0292 7.60013 10.1884V10.5885C7.59806 10.7471 7.53416 10.8985 7.42205 11.0106C7.30995 11.1227 7.15849 11.1866 6.99996 11.1887Z",fill:"currentColor"}))}));pD.displayName="ExclamationTriangleIcon";function U8(){return U8=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},U8.apply(this,arguments)}var gD=y.memo(y.forwardRef(function(t,e){var n=ti.getPTI(t);return y.createElement("svg",U8({ref:e,width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),y.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.11101 12.8203C4.26215 13.5895 5.61553 14 7 14C8.85652 14 10.637 13.2625 11.9497 11.9497C13.2625 10.637 14 8.85652 14 7C14 5.61553 13.5895 4.26215 12.8203 3.11101C12.0511 1.95987 10.9579 1.06266 9.67879 0.532846C8.3997 0.00303296 6.99224 -0.13559 5.63437 0.134506C4.2765 0.404603 3.02922 1.07129 2.05026 2.05026C1.07129 3.02922 0.404603 4.2765 0.134506 5.63437C-0.13559 6.99224 0.00303296 8.3997 0.532846 9.67879C1.06266 10.9579 1.95987 12.0511 3.11101 12.8203ZM3.75918 2.14976C4.71846 1.50879 5.84628 1.16667 7 1.16667C8.5471 1.16667 10.0308 1.78125 11.1248 2.87521C12.2188 3.96918 12.8333 5.45291 12.8333 7C12.8333 8.15373 12.4912 9.28154 11.8502 10.2408C11.2093 11.2001 10.2982 11.9478 9.23232 12.3893C8.16642 12.8308 6.99353 12.9463 5.86198 12.7212C4.73042 12.4962 3.69102 11.9406 2.87521 11.1248C2.05941 10.309 1.50384 9.26958 1.27876 8.13803C1.05367 7.00647 1.16919 5.83358 1.61071 4.76768C2.05222 3.70178 2.79989 2.79074 3.75918 2.14976ZM7.00002 4.8611C6.84594 4.85908 6.69873 4.79698 6.58977 4.68801C6.48081 4.57905 6.4187 4.43185 6.41669 4.27776V3.88888C6.41669 3.73417 6.47815 3.58579 6.58754 3.4764C6.69694 3.367 6.84531 3.30554 7.00002 3.30554C7.15473 3.30554 7.3031 3.367 7.4125 3.4764C7.52189 3.58579 7.58335 3.73417 7.58335 3.88888V4.27776C7.58134 4.43185 7.51923 4.57905 7.41027 4.68801C7.30131 4.79698 7.1541 4.85908 7.00002 4.8611ZM7.00002 10.6945C6.84594 10.6925 6.69873 10.6304 6.58977 10.5214C6.48081 10.4124 6.4187 10.2652 6.41669 10.1111V6.22225C6.41669 6.06754 6.47815 5.91917 6.58754 5.80977C6.69694 5.70037 6.84531 5.63892 7.00002 5.63892C7.15473 5.63892 7.3031 5.70037 7.4125 5.80977C7.52189 5.91917 7.58335 6.06754 7.58335 6.22225V10.1111C7.58134 10.2652 7.51923 10.4124 7.41027 10.5214C7.30131 10.6304 7.1541 10.6925 7.00002 10.6945Z",fill:"currentColor"}))}));gD.displayName="InfoCircleIcon";function q8(){return q8=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},q8.apply(this,arguments)}var $8=y.memo(y.forwardRef(function(t,e){var n=ti.getPTI(t);return y.createElement("svg",q8({ref:e,width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),y.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 14C5.61553 14 4.26215 13.5895 3.11101 12.8203C1.95987 12.0511 1.06266 10.9579 0.532846 9.67879C0.00303296 8.3997 -0.13559 6.99224 0.134506 5.63437C0.404603 4.2765 1.07129 3.02922 2.05026 2.05026C3.02922 1.07129 4.2765 0.404603 5.63437 0.134506C6.99224 -0.13559 8.3997 0.00303296 9.67879 0.532846C10.9579 1.06266 12.0511 1.95987 12.8203 3.11101C13.5895 4.26215 14 5.61553 14 7C14 8.85652 13.2625 10.637 11.9497 11.9497C10.637 13.2625 8.85652 14 7 14ZM7 1.16667C5.84628 1.16667 4.71846 1.50879 3.75918 2.14976C2.79989 2.79074 2.05222 3.70178 1.61071 4.76768C1.16919 5.83358 1.05367 7.00647 1.27876 8.13803C1.50384 9.26958 2.05941 10.309 2.87521 11.1248C3.69102 11.9406 4.73042 12.4962 5.86198 12.7212C6.99353 12.9463 8.16642 12.8308 9.23232 12.3893C10.2982 11.9478 11.2093 11.2001 11.8502 10.2408C12.4912 9.28154 12.8333 8.15373 12.8333 7C12.8333 5.45291 12.2188 3.96918 11.1248 2.87521C10.0308 1.78125 8.5471 1.16667 7 1.16667ZM4.66662 9.91668C4.58998 9.91704 4.51404 9.90209 4.44325 9.87271C4.37246 9.84333 4.30826 9.8001 4.2544 9.74557C4.14516 9.6362 4.0838 9.48793 4.0838 9.33335C4.0838 9.17876 4.14516 9.0305 4.2544 8.92113L6.17553 7L4.25443 5.07891C4.15139 4.96832 4.09529 4.82207 4.09796 4.67094C4.10063 4.51982 4.16185 4.37563 4.26872 4.26876C4.3756 4.16188 4.51979 4.10066 4.67091 4.09799C4.82204 4.09532 4.96829 4.15142 5.07887 4.25446L6.99997 6.17556L8.92106 4.25446C9.03164 4.15142 9.1779 4.09532 9.32903 4.09799C9.48015 4.10066 9.62434 4.16188 9.73121 4.26876C9.83809 4.37563 9.89931 4.51982 9.90198 4.67094C9.90464 4.82207 9.84855 4.96832 9.74551 5.07891L7.82441 7L9.74554 8.92113C9.85478 9.0305 9.91614 9.17876 9.91614 9.33335C9.91614 9.48793 9.85478 9.6362 9.74554 9.74557C9.69168 9.8001 9.62748 9.84333 9.55669 9.87271C9.4859 9.90209 9.40996 9.91704 9.33332 9.91668C9.25668 9.91704 9.18073 9.90209 9.10995 9.87271C9.03916 9.84333 8.97495 9.8001 8.9211 9.74557L6.99997 7.82444L5.07884 9.74557C5.02499 9.8001 4.96078 9.84333 4.88999 9.87271C4.81921 9.90209 4.74326 9.91704 4.66662 9.91668Z",fill:"currentColor"}))}));$8.displayName="TimesCircleIcon";function j8(){return j8=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},j8.apply(this,arguments)}function H8(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Mee(t){if(Array.isArray(t))return H8(t)}function Lee(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function mD(t,e){if(t){if(typeof t=="string")return H8(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return H8(t,e)}}function Bee(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
1598
1598
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function z8(t){return Mee(t)||Lee(t)||mD(t)||Bee()}function Vee(t){if(Array.isArray(t))return t}function Uee(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 qee(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
1599
1599
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Y8(t,e){return Vee(t)||Uee(t,e)||mD(t,e)||qee()}function Ip(t){"@babel/helpers - typeof";return Ip=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ip(t)}function $ee(t,e){if(Ip(t)!=="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Ip(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function vD(t){var e=$ee(t,"string");return Ip(e)==="symbol"?e:String(e)}function Co(t,e,n){return e=vD(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var jee=`
|
|
1600
1600
|
@layer primereact {
|
|
@@ -4161,7 +4161,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4161
4161
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function rwe(t,e){if(t){if(typeof t=="string")return W$(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return W$(t,e)}}function W$(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function iwe(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r=[],i=!0,a=!1,s,l;try{for(n=n.call(t);!(i=(s=n.next()).done)&&(r.push(s.value),!(e&&r.length===e));i=!0);}catch(c){a=!0,l=c}finally{try{!i&&n.return!=null&&n.return()}finally{if(a)throw l}}return r}}function awe(t){if(Array.isArray(t))return t}function swe(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Q$(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function owe(t,e,n){return e&&Q$(t.prototype,e),n&&Q$(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}var lwe="["+h0+Ig+"]+",cwe=new RegExp("^"+lwe+"$","i"),uwe="(?:["+Dye+"]["+h0+Ig+"]*|["+h0+Ig+"]+)",dwe=new RegExp("[^"+h0+Ig+"]+.*$"),fwe=/[^\d\[\]]/,hwe=function(){function t(e){var n=e.defaultCountry,r=e.defaultCallingCode,i=e.metadata,a=e.onNationalSignificantNumberChange;swe(this,t),this.defaultCountry=n,this.defaultCallingCode=r,this.metadata=i,this.onNationalSignificantNumberChange=a}return owe(t,[{key:"input",value:function(n,r){var i=mwe(n),a=G$(i,2),s=a[0],l=a[1],c=_h(s),u;return l&&(r.digits||(r.startInternationalNumber(),c||(u=!0))),c&&this.inputDigits(c,r),{digits:c,justLeadingPlus:u}}},{key:"inputDigits",value:function(n,r){var i=r.digits,a=i.length<3&&i.length+n.length>=3;if(r.appendDigits(n),a&&this.extractIddPrefix(r),this.isWaitingForCountryCallingCode(r)){if(!this.extractCountryCallingCode(r))return}else r.appendNationalSignificantNumberDigits(n);r.international||this.hasExtractedNationalSignificantNumber||this.extractNationalSignificantNumber(r.getNationalDigits(),function(s){return r.update(s)})}},{key:"isWaitingForCountryCallingCode",value:function(n){var r=n.international,i=n.callingCode;return r&&!i}},{key:"extractCountryCallingCode",value:function(n){var r=AAe("+"+n.getDigitsWithoutInternationalPrefix(),this.defaultCountry,this.defaultCallingCode,this.metadata.metadata),i=r.countryCallingCode,a=r.number;if(i)return n.setCallingCode(i),n.update({nationalSignificantNumber:a}),!0}},{key:"reset",value:function(n){if(n){this.hasSelectedNumberingPlan=!0;var r=n._nationalPrefixForParsing();this.couldPossiblyExtractAnotherNationalSignificantNumber=r&&fwe.test(r)}else this.hasSelectedNumberingPlan=void 0,this.couldPossiblyExtractAnotherNationalSignificantNumber=void 0}},{key:"extractNationalSignificantNumber",value:function(n,r){if(this.hasSelectedNumberingPlan){var i=mS(n,this.metadata),a=i.nationalPrefix,s=i.nationalNumber,l=i.carrierCode;if(s!==n)return this.onExtractedNationalNumber(a,l,s,n,r),!0}}},{key:"extractAnotherNationalSignificantNumber",value:function(n,r,i){if(!this.hasExtractedNationalSignificantNumber)return this.extractNationalSignificantNumber(n,i);if(this.couldPossiblyExtractAnotherNationalSignificantNumber){var a=mS(n,this.metadata),s=a.nationalPrefix,l=a.nationalNumber,c=a.carrierCode;if(l!==r)return this.onExtractedNationalNumber(s,c,l,n,i),!0}}},{key:"onExtractedNationalNumber",value:function(n,r,i,a,s){var l,c,u=a.lastIndexOf(i);if(u>=0&&u===a.length-i.length){c=!0;var d=a.slice(0,u);d!==n&&(l=d)}s({nationalPrefix:n,carrierCode:r,nationalSignificantNumber:i,nationalSignificantNumberMatchesInput:c,complexPrefixBeforeNationalSignificantNumber:l}),this.hasExtractedNationalSignificantNumber=!0,this.onNationalSignificantNumberChange()}},{key:"reExtractNationalSignificantNumber",value:function(n){if(this.extractAnotherNationalSignificantNumber(n.getNationalDigits(),n.nationalSignificantNumber,function(r){return n.update(r)}))return!0;if(this.extractIddPrefix(n))return this.extractCallingCodeAndNationalSignificantNumber(n),!0;if(this.fixMissingPlus(n))return this.extractCallingCodeAndNationalSignificantNumber(n),!0}},{key:"extractIddPrefix",value:function(n){var r=n.international,i=n.IDDPrefix,a=n.digits;if(n.nationalSignificantNumber,!(r||i)){var s=F$(a,this.defaultCountry,this.defaultCallingCode,this.metadata.metadata);if(s!==void 0&&s!==a)return n.update({IDDPrefix:a.slice(0,a.length-s.length)}),this.startInternationalNumber(n,{country:void 0,callingCode:void 0}),!0}}},{key:"fixMissingPlus",value:function(n){if(!n.international){var r=P$(n.digits,this.defaultCountry,this.defaultCallingCode,this.metadata.metadata),i=r.countryCallingCode;if(r.number,i)return n.update({missingPlus:!0}),this.startInternationalNumber(n,{country:n.country,callingCode:i}),!0}}},{key:"startInternationalNumber",value:function(n,r){var i=r.country,a=r.callingCode;n.startInternationalNumber(i,a),n.nationalSignificantNumber&&(n.resetNationalSignificantNumber(),this.onNationalSignificantNumberChange(),this.hasExtractedNationalSignificantNumber=void 0)}},{key:"extractCallingCodeAndNationalSignificantNumber",value:function(n){this.extractCountryCallingCode(n)&&this.extractNationalSignificantNumber(n.getNationalDigits(),function(r){return n.update(r)})}}]),t}();function pwe(t){var e=t.search(uwe);if(!(e<0)){t=t.slice(e);var n;return t[0]==="+"&&(n=!0,t=t.slice(1)),t=t.replace(dwe,""),n&&(t="+"+t),t}}function gwe(t){var e=pwe(t)||"";return e[0]==="+"?[e.slice(1),!0]:[e]}function mwe(t){var e=gwe(t),n=G$(e,2),r=n[0],i=n[1];return cwe.test(r)||(r=""),[r,i]}function vwe(t,e){return wwe(t)||Awe(t,e)||ywe(t,e)||bwe()}function bwe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
4162
4162
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ywe(t,e){if(t){if(typeof t=="string")return J$(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return J$(t,e)}}function J$(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Awe(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r=[],i=!0,a=!1,s,l;try{for(n=n.call(t);!(i=(s=n.next()).done)&&(r.push(s.value),!(e&&r.length===e));i=!0);}catch(c){a=!0,l=c}finally{try{!i&&n.return!=null&&n.return()}finally{if(a)throw l}}return r}}function wwe(t){if(Array.isArray(t))return t}function Swe(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Z$(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function xwe(t,e,n){return e&&Z$(t.prototype,e),n&&Z$(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}var E5=function(){function t(e,n){Swe(this,t),this.metadata=new uo(n);var r=this.getCountryAndCallingCode(e),i=vwe(r,2),a=i[0],s=i[1];this.defaultCountry=a,this.defaultCallingCode=s,this.reset()}return xwe(t,[{key:"getCountryAndCallingCode",value:function(n){var r,i;return n&&(A5(n)?(r=n.defaultCountry,i=n.defaultCallingCode):r=n),r&&!this.metadata.hasCountry(r)&&(r=void 0),[r,i]}},{key:"input",value:function(n){var r=this.parser.input(n,this.state),i=r.digits,a=r.justLeadingPlus;if(a)this.formattedOutput="+";else if(i){this.determineTheCountryIfNeeded(),this.state.nationalSignificantNumber&&this.formatter.narrowDownMatchingFormats(this.state);var s;if(this.metadata.hasSelectedNumberingPlan()&&(s=this.formatter.format(i,this.state)),s===void 0&&this.parser.reExtractNationalSignificantNumber(this.state)){this.determineTheCountryIfNeeded();var l=this.state.getNationalDigits();l&&(s=this.formatter.format(l,this.state))}this.formattedOutput=s?this.getFullNumber(s):this.getNonFormattedNumber()}return this.formattedOutput}},{key:"reset",value:function(){var n=this;return this.state=new IAe({onCountryChange:function(i){n.country=i},onCallingCodeChange:function(i,a){n.metadata.selectNumberingPlan(a,i),n.formatter.reset(n.metadata.numberingPlan,n.state),n.parser.reset(n.metadata.numberingPlan)}}),this.formatter=new twe({state:this.state,metadata:this.metadata}),this.parser=new hwe({defaultCountry:this.defaultCountry,defaultCallingCode:this.defaultCallingCode,metadata:this.metadata,state:this.state,onNationalSignificantNumberChange:function(){n.determineTheCountryIfNeeded(),n.formatter.reset(n.metadata.numberingPlan,n.state)}}),this.state.reset({country:this.defaultCountry,callingCode:this.defaultCallingCode}),this.formattedOutput="",this}},{key:"isInternational",value:function(){return this.state.international}},{key:"getCallingCode",value:function(){if(this.isInternational())return this.state.callingCode}},{key:"getCountryCallingCode",value:function(){return this.getCallingCode()}},{key:"getCountry",value:function(){var n=this.state.digits;if(n)return this._getCountry()}},{key:"_getCountry",value:function(){var n=this.state.country;return n}},{key:"determineTheCountryIfNeeded",value:function(){(!this.state.country||this.isCountryCallingCodeAmbiguous())&&this.determineTheCountry()}},{key:"getFullNumber",value:function(n){var r=this;if(this.isInternational()){var i=function(l){return r.formatter.getInternationalPrefixBeforeCountryCallingCode(r.state,{spacing:!!l})+l},a=this.state.callingCode;return i(a?n?"".concat(a," ").concat(n):a:"".concat(this.state.getDigitsWithoutInternationalPrefix()))}return n}},{key:"getNonFormattedNationalNumberWithPrefix",value:function(){var n=this.state,r=n.nationalSignificantNumber,i=n.complexPrefixBeforeNationalSignificantNumber,a=n.nationalPrefix,s=r,l=i||a;return l&&(s=l+s),s}},{key:"getNonFormattedNumber",value:function(){var n=this.state.nationalSignificantNumberMatchesInput;return this.getFullNumber(n?this.getNonFormattedNationalNumberWithPrefix():this.state.getNationalDigits())}},{key:"getNonFormattedTemplate",value:function(){var n=this.getNonFormattedNumber();if(n)return n.replace(/[\+\d]/g,Uc)}},{key:"isCountryCallingCodeAmbiguous",value:function(){var n=this.state.callingCode,r=this.metadata.getCountryCodesForCallingCode(n);return r&&r.length>1}},{key:"determineTheCountry",value:function(){this.state.setCountry(CAe(this.isInternational()?this.state.callingCode:this.defaultCallingCode,{nationalNumber:this.state.nationalSignificantNumber,defaultCountry:this.defaultCountry,metadata:this.metadata}))}},{key:"getNumberValue",value:function(){var n=this.state,r=n.digits,i=n.callingCode,a=n.country,s=n.nationalSignificantNumber;if(r){if(this.isInternational())return i?"+"+i+s:"+"+r;if(a||i){var l=a?this.metadata.countryCallingCode():i;return"+"+l+s}}}},{key:"getNumber",value:function(){var n=this.state,r=n.nationalSignificantNumber,i=n.carrierCode,a=n.callingCode,s=this._getCountry();if(r&&!(!s&&!a)){if(s&&s===this.defaultCountry){var l=new uo(this.metadata.metadata);l.selectNumberingPlan(s);var c=l.numberingPlan.callingCode(),u=this.metadata.getCountryCodesForCallingCode(c);if(u.length>1){var d=L$(r,{countries:u,defaultCountry:this.defaultCountry,metadata:this.metadata.metadata});d&&(s=d)}}var f=new pAe(s||a,r,this.metadata.metadata);return i&&(f.carrierCode=i),f}}},{key:"isPossible",value:function(){var n=this.getNumber();return n?n.isPossible():!1}},{key:"isValid",value:function(){var n=this.getNumber();return n?n.isValid():!1}},{key:"getNationalNumber",value:function(){return this.state.nationalSignificantNumber}},{key:"getChars",value:function(){return(this.state.international?"+":"")+this.state.digits}},{key:"getTemplate",value:function(){return this.formatter.getTemplate(this.state)||this.getNonFormattedTemplate()||""}}]),t}();function Cwe(t,e,n){return n||(n=e,e=void 0),new E5(e,n).input(t)}function ej(t){var e=t.country,n=t.international,r=t.withCountryCallingCode,i=t.metadata;return e&&n&&!r?"+".concat(D1(e,i)):""}function wS(t,e){return e&&(t=t.slice(e.length),t[0]===" "&&(t=t.slice(1))),t}function Twe(t,e,n){if(!(n&&n.ignoreRest)){var r=function(a){if(n)switch(a){case"end":n.ignoreRest=!0;break}};return b$(t,e,r)}}function tj(t){var e=t.onKeyDown,n=t.international;return F.useCallback(function(r){if(r.keyCode===Ewe&&n&&r.target instanceof HTMLInputElement&&Iwe(r.target)===_we){r.preventDefault();return}e&&e(r)},[e,n])}var Ewe=8;function Iwe(t){return t.selectionStart}var _we=1,Dwe=["onKeyDown","country","international","withCountryCallingCode","metadata"];function SS(){return SS=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},SS.apply(this,arguments)}function Owe(t,e){if(t==null)return{};var n=Nwe(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 Nwe(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}function Fwe(t){function e(n,r){var i=n.onKeyDown,a=n.country,s=n.international,l=n.withCountryCallingCode,c=n.metadata,u=c===void 0?t:c,d=Owe(n,Dwe),f=F.useCallback(function(m){var g=new E5(a,u),v=ej({country:a,international:s,withCountryCallingCode:l,metadata:u}),A=g.input(v+m),w=g.getTemplate();return v&&(A=wS(A,v),w&&(w=wS(w,v))),{text:A,template:w}},[a,u]),h=tj({onKeyDown:i,international:s});return F.createElement(Aye,SS({},d,{ref:r,parse:Twe,format:f,onKeyDown:h}))}return e=F.forwardRef(e),e.propTypes={value:bn.string.isRequired,onChange:bn.func.isRequired,onKeyDown:bn.func,country:bn.string,international:bn.bool,withCountryCallingCode:bn.bool,metadata:bn.object},e}const kwe=Fwe();var Pwe=["value","onChange","onKeyDown","country","international","withCountryCallingCode","metadata","inputComponent"];function xS(){return xS=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},xS.apply(this,arguments)}function Mwe(t,e){if(t==null)return{};var n=Lwe(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 Lwe(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}function Bwe(t){function e(n,r){var i=n.value,a=n.onChange,s=n.onKeyDown,l=n.country,c=n.international,u=n.withCountryCallingCode,d=n.metadata,f=d===void 0?t:d,h=n.inputComponent,m=h===void 0?"input":h,g=Mwe(n,Pwe),v=ej({country:l,international:c,withCountryCallingCode:u,metadata:f}),A=F.useCallback(function(x){var S=zye(x.target.value);if(S===i){var E=nj(v,S,l,f);E.indexOf(x.target.value)===0&&(S=S.slice(0,-1))}a(S)},[v,i,a,l,f]),w=tj({onKeyDown:s,international:c});return F.createElement(m,xS({},g,{ref:r,value:nj(v,i,l,f),onChange:A,onKeyDown:w}))}return e=F.forwardRef(e),e.propTypes={value:bn.string.isRequired,onChange:bn.func.isRequired,onKeyDown:bn.func,country:bn.string,international:bn.bool,withCountryCallingCode:bn.bool,metadata:bn.object,inputComponent:bn.elementType},e}const Vwe=Bwe();function nj(t,e,n,r){return wS(Cwe(t+e,n,r),t)}var Uwe=bn.shape({country_calling_codes:bn.object.isRequired,countries:bn.object.isRequired});bn.objectOf(bn.string);function rj(t,e){var n="+"+D1(t,e);return n}function _g(t,e){return Hwe(t)||jwe(t,e)||$we(t,e)||qwe()}function qwe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
4163
4163
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $we(t,e){if(t){if(typeof t=="string")return ij(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ij(t,e)}}function ij(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function jwe(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 Hwe(t){if(Array.isArray(t))return t}function zwe(t){var e=this,n=t.value,r=t.onChange,i=t.country,a=t.defaultCountry,s=t.international,l=t.withCountryCallingCode,c=t.useNationalFormatForDefaultCountryValue,u=t.metadata,d=F.useRef(),f=function(Y,pe,ie){console.error("[react-phone-number-input] Expected phone number ".concat(Y," to correspond to country ").concat(pe," but ").concat(ie?"in reality it corresponds to country "+ie:"it doesn't",".")),d.current=!0},h=function(Y){return Ywe(n,i,s,l,a,c,u,function(){Y&&Y.onCountryMismatch&&Y.onCountryMismatch();for(var pe=arguments.length,ie=new Array(pe),J=0;J<pe;J++)ie[J]=arguments[J];f.apply(e,ie)})},m=F.useState(i),g=_g(m,2),v=g[0],A=g[1],w=F.useState(a),x=_g(w,2),S=x[0],E=x[1],C=F.useState(h()),_=_g(C,2),T=_[0],N=_[1],O=F.useState(n),B=_g(O,2),M=B[0],z=B[1],P=F.useState(),j=_g(P,2);j[0];var de=j[1],he=F.useCallback(function(){return de({})},[de]);function te(ae){if(ae){i&&s&&!l&&(ae="+".concat(D1(i,u)).concat(ae));var Y=new E5(i||a,u);return Y.input(ae),Y.getNumberValue()}}F.useEffect(function(){n!==M&&(z(n),N(h()))},[n]),F.useEffect(function(){if(i!==v){A(i);var ae,Y=h({onCountryMismatch:function(){ae=!0}});N(Y),ae&&z(te(Y))}},[i]),F.useEffect(function(){a!==S&&(E(a),N(h()))},[a]),F.useEffect(function(){M!==n&&r(M)},[M]);var G=F.useCallback(function(ae){var Y;if(i)if(s&&l){var pe=rj(i,u);if(ae.indexOf(pe)!==0){if(ae&&ae[0]!=="+")ae=pe+ae;else if(!d.current)return N(pe),z(void 0),he()}}else ae&&ae[0]==="+"&&(ae=ae.slice(1));else a||ae&&ae[0]!=="+"&&(ae="+"+ae);ae&&(Y=te(ae)),N(ae),z(Y)},[i,s,l,a,u,N,z,he,d]);return[T,G]}function Ywe(t,e,n,r,i,a,s,l){if(e&&n&&r){var c=rj(e,s);return t?(t.indexOf(c)!==0&&l(t,e),t):c}if(!t)return"";if(!e&&!i)return t;var u=new E5(void 0,s);u.input(t);var d=u.getNumber();return d?e?(d.country&&d.country!==e?l(t,e,d.country):d.countryCallingCode!==D1(e,s)&&l(t,e),n?d.nationalNumber:_h(d.formatNational())):d.countryCallingCode&&d.countryCallingCode===D1(i,s)&&a?_h(d.formatNational()):t:""}var Kwe=["Component","country","defaultCountry","useNationalFormatForDefaultCountryValue","value","onChange","metadata","international","withCountryCallingCode"];function CS(){return CS=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},CS.apply(this,arguments)}function Xwe(t,e){return Qwe(t)||Wwe(t,e)||Gwe(t,e)||Rwe()}function Rwe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
4164
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Gwe(t,e){if(t){if(typeof t=="string")return aj(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return aj(t,e)}}function aj(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Wwe(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 Qwe(t){if(Array.isArray(t))return t}function Jwe(t,e){if(t==null)return{};var n=Zwe(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 Zwe(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}function I5(t,e){var n=t.Component,r=t.country,i=t.defaultCountry,a=t.useNationalFormatForDefaultCountryValue,s=a===void 0?!0:a,l=t.value,c=t.onChange,u=t.metadata,d=t.international,f=t.withCountryCallingCode,h=Jwe(t,Kwe),m=zwe({value:l,onChange:c,country:r,defaultCountry:i,international:d,withCountryCallingCode:f,useNationalFormatForDefaultCountryValue:s,metadata:u}),g=Xwe(m,2),v=g[0],A=g[1];return F.createElement(n,CS({},h,{ref:e,metadata:u,international:d,withCountryCallingCode:f,country:r||i,value:v,onChange:A}))}I5=F.forwardRef(I5),I5.propTypes={value:bn.string,onChange:bn.func.isRequired,country:bn.string,defaultCountry:bn.string,international:bn.bool,withCountryCallingCode:bn.bool,Component:bn.elementType.isRequired,useNationalFormatForDefaultCountryValue:bn.bool,metadata:Uwe};const eSe=I5;var tSe=["type","autoComplete","smartCaret","metadata"];function TS(){return TS=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},TS.apply(this,arguments)}function nSe(t,e){if(t==null)return{};var n=rSe(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 rSe(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}function sj(t){function e(n,r){var i=n.type,a=i===void 0?"tel":i,s=n.autoComplete,l=s===void 0?"tel":s,c=n.smartCaret,u=c===void 0?!0:c,d=n.metadata,f=d===void 0?t:d,h=nSe(n,tSe);return F.createElement(eSe,TS({},h,{type:a,autoComplete:l,metadata:f,ref:r,Component:u?kwe:Vwe}))}return e=F.forwardRef(e),e.propTypes={type:bn.string,autoComplete:bn.string,smartCaret:bn.bool,metadata:bn.object},e}sj();const iSe=sj(Jbe),aSe=t=>{var J,Q,se,be,Ce,Te,ye,Ae,re,U,Z;const{taskRegisterData:e,updateTaskRegisterData:n,updateTaskProgressValue:r,updateUserFormDataSubmit:i,userTaskSubmitFormData:a,TASK_PUBLISHED:s,task_status:l}=br(),{userSelectedLanguage:c,fieldSettingUpdate:u}=on(),{field:d,fieldIndex:f,sectionIndex:h,pageIndex:m,row:g,rowIndex:v,columnIndex:A}=t,{isAdmin:w,isRenderView:x,isPreview:S}=Zt(),[E,C]=F.useState(!1),[_,T]=F.useState(""),[N,O]=F.useState(0),[B,M]=F.useState(!1),[z,P]=F.useState(!1),j=()=>{P(!0)},de=()=>{P(!1)},he=()=>{var K,ue,Ee;if(g!=null&&g.rowIsRepeatable){if(g!=null&&g.repeatableFields){const ge=[...g.repeatableFields],me=Et.findIndex(ge,function(Le){return Le.uuid===(d==null?void 0:d.uuid)});me>=0&&ge[me].fieldData?T(ge[me].fieldData):T("")}}else{const ge=a;if(ge!=null&&ge.length){for(const me of ge)if(me.fieldId===t.field.uuid&&((K=me==null?void 0:me.postData[0])==null?void 0:K.postValue)!==""&&((ue=me==null?void 0:me.postData[0])!=null&&ue.postValue)){T((Ee=me==null?void 0:me.postData[0])==null?void 0:Ee.postValue);break}}}M(!0)};F.useEffect(()=>{B||he();const K=Gt.addListener("clearRepeatableFields",me=>{me===(g==null?void 0:g.uuid)&&(T(""),O(0),d.isValid=0,u(m,h,v,A,f,d))}),ue=Gt.addListener("onSubmitUserForm",()=>{var me;(me=d==null?void 0:d.attributes)!=null&&me.required?_?d.isValid=1:d.isValid=0:d.isValid=1}),Ee=Gt.addListener("OnInvalidFieldCatch",me=>{d.uuid===(me==null?void 0:me.fieldId)?O(1):O(0)}),ge=Gt.addListener("OnGetFieldValue",me=>{var Oe;const Le=(Oe=me==null?void 0:me.repeatableColumn)==null?void 0:Oe.filter(ve=>(ve==null?void 0:ve.fieldUuid)===(d==null?void 0:d.uuid));Le!=null&&Le.length});return()=>{ue.remove(),Ee.remove(),ge.remove(),K.remove()}});const te=K=>{C(K)},G=()=>{C(!1)},ae=(K,ue)=>{const Ee=a,ge=Et.cloneDeep(e);if(ue){if(ge[d==null?void 0:d.uuid]=K,(Ee==null?void 0:Ee.length)>0)for(const me of Ee)me.fieldId===t.field.uuid&&(me.postData[0]={postValue:K})}else if(delete ge[d==null?void 0:d.uuid],(Ee==null?void 0:Ee.length)>0)for(const me of Ee)me.fieldId===t.field.uuid&&(me.postData[0]={postValue:K});if(!(g!=null&&g.rowIsRepeatable)){n(ge);const me=Object.keys(ge).length;r(me)}},Y=(K,ue)=>{var Ee;if(a){const ge=[...a],me=Et.findIndex(ge,function(Oe){return Oe.rowId===(g==null?void 0:g.uuid)});let Le=(Ee=a[me])==null?void 0:Ee.repeatableFields;Le={...Le,[K==null?void 0:K.uuid]:ue},ge[me]={...ge[me],repeatableFields:Le},i(ge)}T(ue),ue!==""?K.isValid=1:K.isValid=0},pe=K=>{g!=null&&g.rowIsRepeatable?Y(d,K):ae(K,!0)},ie=o.jsxs("div",{onMouseOver:j,onMouseOut:de,children:[!x&&!S&&z&&o.jsx(Hr,{handleFieldSettingsSidebar:te,...t}),o.jsxs("div",{className:`field ${S?" ":" builder-element-wrapper "}${(d==null?void 0:d.isFluid)===!0?" card py-3 px-4 p-fluid":"card py-3 px-4"}`,children:[o.jsx("div",{className:"grid",children:o.jsxs("div",{className:S?"col-12 ":"col-12 p-fluid",children:[(d==null?void 0:d.showHeaderText)&&o.jsx("h6",{children:(J=d==null?void 0:d.headerText)==null?void 0:J[c==null?void 0:c.type]}),(d==null?void 0:d.showLabel)&&o.jsxs("label",{htmlFor:f,className:"flex font-medium mb-3 text-700 text-2xl",children:[o.jsx(aa,{...t}),((Q=d==null?void 0:d.attributes)==null?void 0:Q.required)&&o.jsx("span",{className:"must-required mr-1",children:"*"})," ",S?o.jsx(o.Fragment,{children:(se=d==null?void 0:d.label)==null?void 0:se[c==null?void 0:c.type]}):o.jsx(Zi,{...t}),o.jsx("span",{className:"ml-3",children:(d==null?void 0:d.showToolTip)&&o.jsx(Bi,{message:(be=d==null?void 0:d.toolTip)==null?void 0:be[c==null?void 0:c.type],position:"right"})})]}),o.jsxs("div",{className:"mt-3",children:[o.jsxs("span",{className:"p-input-icon-"+(d==null?void 0:d.iconAlignment),children:[(d==null?void 0:d.showIcon)&&o.jsx("i",{className:"pi pi-"+((Te=(Ce=d==null?void 0:d.icon)==null?void 0:Ce.properties)==null?void 0:Te.name)}),o.jsx(iSe,{id:d==null?void 0:d.uuid,placeholder:(ye=d==null?void 0:d.placeholder)==null?void 0:ye[c==null?void 0:c.type],value:_,onFocus:()=>O(1),onChange:pe,international:!0,className:`${N===1&&((Ae=d==null?void 0:d.attributes)!=null&&Ae.required)?_?"valid":"invalid":"valid'"} p-inputtext`,readOnly:l===s})]}),o.jsx("div",{children:((re=d==null?void 0:d.attributes)==null?void 0:re.required)&&o.jsx("small",{className:"error",children:N===1&&!_?(U=d==null?void 0:d.validationMesssage)==null?void 0:U.english:""})}),o.jsx("div",{children:(d==null?void 0:d.showHelperText)&&o.jsx("small",{children:(Z=d==null?void 0:d.helperText)==null?void 0:Z[c==null?void 0:c.type]})})]})]})}),w&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(Ni,{...t})]})]})]});return o.jsxs(o.Fragment,{children:[E===!0&&o.jsx(Xi,{visibilty:E,closeSettingFieldSidebar:G,...t}),o.jsx(wi,{...t,fieldWrap:ie})]})},sSe=t=>{var ae,Y,pe,ie,J,Q,se,be,Ce,Te,ye;const{field:e,fieldIndex:n,pageIndex:r,sectionIndex:i,row:a}=t,{isPreview:s,isAdmin:l,isRenderView:c}=Zt(),{task_status:u,taskRegisterData:d,updateTaskRegisterData:f,updateTaskProgressValue:h,updateUserFormDataSubmit:m,userTaskSubmitFormData:g,TASK_PUBLISHED:v}=br(),{userSelectedLanguage:A}=on(),[w,x]=F.useState(!1),[S,E]=F.useState(""),[C,_]=F.useState(0),[T,N]=F.useState(!1),O=()=>{N(!0)},B=()=>{N(!1)};F.useEffect(()=>{w||de();const Ae=Gt.addListener("clearRepeatableFields",U=>{U===(a==null?void 0:a.uuid)&&(E(""),_(0),e.isValid=0)}),re=Gt.addListener("onSubmitUserForm",()=>{var U;(U=e==null?void 0:e.attributes)!=null&&U.required?S!==""&&fu.test(S)===!0?e.isValid=1:e.isValid=0:e.isValid=1});return()=>{re.remove(),Ae.remove()}});const[M,z]=F.useState(!1),P=Ae=>{z(Ae)},j=()=>{z(!1)},de=()=>{var Ae,re,U;if(a!=null&&a.rowIsRepeatable){if(a!=null&&a.repeatableFields){const Z=[...a.repeatableFields],K=Et.findIndex(Z,function(ue){return ue.uuid===(e==null?void 0:e.uuid)});K>=0&&Z[K].fieldData?E(Z[K].fieldData):E("")}}else{const Z=g;if(Z!=null&&Z.length){for(const K of Z)if(K.fieldId===t.field.uuid&&((Ae=K==null?void 0:K.postData[0])==null?void 0:Ae.postValue)!==""&&((re=K==null?void 0:K.postData[0])!=null&&re.postValue)){E((U=K==null?void 0:K.postData[0])==null?void 0:U.postValue),x(!0);break}}}x(!0)},he=Ae=>{E(Ae);const re=g,U=Et.cloneDeep(d);if(Ae!==""&&fu.test(Ae)===!0){if(U[e==null?void 0:e.uuid]=Ae,(re==null?void 0:re.length)>0)for(const Z of re)Z.fieldId===t.field.uuid&&(Z.postData[0]={postValue:Ae})}else if(delete U[e==null?void 0:e.uuid],(re==null?void 0:re.length)>0)for(const Z of re)Z.fieldId===t.field.uuid&&(Z.postData[0]={postValue:""});if(!(a!=null&&a.rowIsRepeatable)){f(U);const Z=Object.keys(U).length;h(Z)}},te=(Ae,re)=>{var ge;const U=[...g],Z=Et.findIndex(U,function(me){return me.rowId===(a==null?void 0:a.uuid)});let K=(ge=g[Z])==null?void 0:ge.repeatableFields;const ue=Ae,Ee=ue==null?void 0:ue.uuid;K={...K,[Ee]:re},U[Z]={...U[Z],repeatableFields:K},m(U),E(re),re!==""&&fu.test(re)===!0?e.isValid=1:e.isValid=0},G=o.jsxs("div",{onMouseOver:O,onMouseOut:B,children:[!c&&!s&&T&&o.jsx(Hr,{handleFieldSettingsSidebar:P,...t}),o.jsxs("div",{className:`field ${s?" ":" builder-element-wrapper "}${(e==null?void 0:e.isFluid)===!0?" card py-3 px-4 p-fluid":"card py-3 px-4"}`,children:[o.jsx("div",{className:"grid"}),(e==null?void 0:e.showHeaderText)&&o.jsx("h6",{children:(ae=e==null?void 0:e.headerText)==null?void 0:ae[A==null?void 0:A.type]}),(e==null?void 0:e.showLabel)&&o.jsxs("label",{htmlFor:n,className:"flex font-medium mb-3 text-700 text-2xl",children:[o.jsx(aa,{...t}),((Y=e==null?void 0:e.attributes)==null?void 0:Y.required)&&o.jsx("span",{className:"must-required mr-1",children:"*"})," ",s?o.jsx(o.Fragment,{children:(pe=e==null?void 0:e.label)==null?void 0:pe[A==null?void 0:A.type]}):o.jsx(Zi,{...t}),o.jsx("span",{className:"ml-3",children:(e==null?void 0:e.showToolTip)&&o.jsx(Bi,{message:(ie=e==null?void 0:e.toolTip)==null?void 0:ie[A==null?void 0:A.type],position:"right"})})]}),o.jsxs("span",{className:"p-input-icon-"+(e==null?void 0:e.iconAlignment),children:[(e==null?void 0:e.showIcon)&&o.jsx("i",{className:"pi pi-"+((Q=(J=e==null?void 0:e.icon)==null?void 0:J.properties)==null?void 0:Q.name)}),o.jsx(mn,{id:e==null?void 0:e.uuid,placeholder:(se=e==null?void 0:e.placeholder)==null?void 0:se[A==null?void 0:A.type],value:S,onFocus:()=>_(1),onChange:Ae=>{a!=null&&a.rowIsRepeatable?te(r,i):he(Ae.target.value)},className:C===1&&((be=e==null?void 0:e.attributes)!=null&&be.required)?S?"valid":"invalid":"valid'",readOnly:u===v})]}),((Ce=e==null?void 0:e.attributes)==null?void 0:Ce.required)&&o.jsx("div",{children:o.jsx("small",{className:"error",children:C===1&&!S?(Te=e==null?void 0:e.validationMesssage)==null?void 0:Te[A==null?void 0:A.type]:""})}),S!==""&&C===1&&fu.test(S)===!1&&o.jsx("small",{className:"error",children:"Please enter correct url"}),(e==null?void 0:e.showHelperText)&&o.jsx("div",{children:o.jsx("small",{children:(ye=e==null?void 0:e.helperText)==null?void 0:ye[A==null?void 0:A.type]})})]}),l&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(Ni,{...t})]})]});return o.jsxs(o.Fragment,{children:[M===!0&&o.jsx(Xi,{visibilty:M,closeSettingFieldSidebar:j,...t},e==null?void 0:e.uuid),o.jsx(wi,{...t,fieldWrap:G})]})},oSe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAwAAAAMACAYAAACTgQCOAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAABmJLR0QA/wD/AP+gvaeTAACAAElEQVR42u3deXxcdb3/8ffnTLaWthSUVVuaTMIWKc2cpLWi/oqIeK+4XisuoKDodUNx38H9Ku67IhdwB6NeF1xBqQrWNjOTUgxbM0kLyKp0b7PMnM/vj1ZFtiazZc7M6/l4+LhXxTZ5nzPnfN9zvt/vMQEAakI6DJv3j6L5gft8NTfPN/f5cp8fuR+gIJhv7vNdag7M5sm91aXZkvaTe4uk/c2sSdL+kuRSQtK8h/hr5khqfsB/Nilpx0P8s9tMKuz9/7e6e17SVplNSNpp0i6ZjUfu20yadLMtiqItgdlmmW1xsy2anNwSmW3ZGgRbejOZSY4yAMw8IwIAqAxf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{task_status:c,taskRegisterData:u,updateTaskRegisterData:d,updateTaskProgressValue:f,updateUserFormDataSubmit:h,userTaskSubmitFormData:m,TASK_PUBLISHED:g}=br(),{userSelectedLanguage:v}=on(),[A,w]=F.useState(!1),[x,S]=F.useState(""),[E,C]=F.useState(0),[_,T]=F.useState(!1),N=()=>{T(!0)},O=()=>{T(!1)};F.useEffect(()=>{A||j();const Ce=Gt.addListener("clearRepeatableFields",ye=>{ye===(i==null?void 0:i.uuid)&&(S(""),C(0),e.isValid=0)}),Te=Gt.addListener("onSubmitUserForm",()=>{var ye;(ye=e==null?void 0:e.attributes)!=null&&ye.required?x!==""&&fu.test(x)===!0?e.isValid=1:e.isValid=0:e.isValid=1});return()=>{Te.remove(),Ce.remove()}});const[B,M]=F.useState(!1),z=Ce=>{M(Ce)},P=()=>{M(!1)},j=()=>{var Ce,Te,ye;if(i!=null&&i.rowIsRepeatable){const Ae=[...(i==null?void 0:i.repeatableFields)||[]],re=Et.findIndex(Ae,function(U){return U.uuid===(e==null?void 0:e.uuid)});re>=0&&Ae[re].fieldData?S(Ae[re].fieldData):S("")}else{const Ae=m;if(Ae!=null&&Ae.length){for(const re of Ae)if(re.fieldId===t.field.uuid&&((Ce=re==null?void 0:re.postData[0])==null?void 0:Ce.postValue)!==""&&((Te=re==null?void 0:re.postData[0])!=null&&Te.postValue)){S((ye=re==null?void 0:re.postData[0])==null?void 0:ye.postValue),w(!0);break}}}w(!0)},de=(Ce,Te)=>{S(Te);const ye=m,Ae=Et.cloneDeep(u);if(ye!==null){if(Te){if(Ae[e==null?void 0:e.uuid]=Te,(ye==null?void 0:ye.length)>0)for(const re of ye)re.fieldId===t.field.uuid&&(re.postData[0]={postValue:Te})}else if(delete Ae[e==null?void 0:e.uuid],(ye==null?void 0:ye.length)>0)for(const re of ye)re.fieldId===t.field.uuid&&(re.postData[0]={postValue:""})}if(!(i!=null&&i.rowIsRepeatable)){d(Ae);const re=Object.keys(Ae).length;f(re)}},he=(Ce,Te,ye,Ae)=>{var K;const re=[...m],U=Et.findIndex(re,function(ue){return ue.rowId===(i==null?void 0:i.uuid)});let Z=(K=m[U])==null?void 0:K.repeatableFields;Z={...Z,[ye==null?void 0:ye.uuid]:Ae},re[U]={...re[U],repeatableFields:Z},h(re),S(Ae),Ae!==""&&fu.test(Ae)===!0?e.isValid=1:e.isValid=0},te=o.jsxs("div",{onMouseOver:N,onMouseOut:O,children:[!l&&!s&&_&&o.jsx(Hr,{handleFieldSettingsSidebar:z,...t}),o.jsxs("div",{className:`field ${s?" ":" builder-element-wrapper "}${(e==null?void 0:e.isFluid)===!0?" card py-3 px-4 p-fluid":"card py-3 px-4"}`,children:[o.jsx("div",{className:"grid",children:o.jsxs("div",{className:a?"col-6 ":"col-12 p-fluid",children:[(e==null?void 0:e.showHeaderText)&&o.jsx("h6",{children:(G=e==null?void 0:e.headerText)==null?void 0:G[v==null?void 0:v.type]}),(e==null?void 0:e.showLabel)&&o.jsxs("label",{htmlFor:e.uuid,className:"flex font-medium mb-3 text-700 text-2xl",children:[o.jsx(aa,{...t}),((ae=e==null?void 0:e.attributes)==null?void 0:ae.required)&&o.jsx("span",{className:"must-required mr-1",children:"*"})," ",s?o.jsx(o.Fragment,{children:(Y=e==null?void 0:e.label)==null?void 0:Y[v==null?void 0:v.type]}):o.jsx(Zi,{...t}),(e==null?void 0:e.showToolTip)&&o.jsx("span",{className:"ml-3",children:o.jsx(Bi,{message:(pe=e==null?void 0:e.toolTip)==null?void 0:pe[v==null?void 0:v.type],position:"right"})})]}),o.jsx("div",{children:o.jsx(D6,{cancelIcon:o.jsx("img",{src:oSe,alt:"custom-cancel-image",width:"25px",height:"25px"}),offIcon:o.jsx("img",{src:lSe,alt:"custom-image-active",width:"25px",height:"25px"}),onIcon:o.jsx("img",{src:cSe,alt:"custom-image",width:"25px",height:"25px"}),id:e==null?void 0:e.uuid,placeholder:(ie=e==null?void 0:e.placeholder)==null?void 0:ie[v==null?void 0:v.type],value:x,onFocus:()=>C(1),onChange:Ce=>{i!=null&&i.rowIsRepeatable?he(n,r,e,Ce.value):de(Ce,Ce.value)},className:E===1&&((J=e==null?void 0:e.attributes)!=null&&J.required)?x?"valid":"invalid":"valid'",readOnly:c===g})}),((Q=e==null?void 0:e.attributes)==null?void 0:Q.required)&&o.jsx("div",{children:o.jsx("small",{className:"error",children:E===1&&!x?(se=e==null?void 0:e.validationMesssage)==null?void 0:se[v==null?void 0:v.type]:""})}),(e==null?void 0:e.showHelperText)&&o.jsx("div",{children:o.jsx("small",{children:(be=e==null?void 0:e.helperText)==null?void 0:be[v==null?void 0:v.type]})})]})}),a&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(Ni,{...t})]})]})]});return o.jsxs(o.Fragment,{children:[B===!0&&o.jsx(Xi,{visibilty:B,closeSettingFieldSidebar:P,...t},e==null?void 0:e.uuid),o.jsx(wi,{...t,fieldWrap:te})]})},dSe=t=>{var G,ae,Y,pe,ie,J,Q,se,be;const{field:e,pageIndex:n,sectionIndex:r,row:i}=t,{isPreview:a,isAdmin:s,isRenderView:l}=Zt(),{task_status:c,taskRegisterData:u,updateTaskRegisterData:d,updateTaskProgressValue:f,updateUserFormDataSubmit:h,userTaskSubmitFormData:m,TASK_PUBLISHED:g}=br(),{userSelectedLanguage:v}=on(),[A,w]=F.useState(!1),[x,S]=F.useState(""),[E,C]=F.useState(0),[_,T]=F.useState(!1),N=()=>{T(!0)},O=()=>{T(!1)};F.useEffect(()=>{A||j();const Ce=Gt.addListener("clearRepeatableFields",ye=>{ye===(i==null?void 0:i.uuid)&&(S(""),C(0),e.isValid=0)}),Te=Gt.addListener("onSubmitUserForm",()=>{var ye;(ye=e==null?void 0:e.attributes)!=null&&ye.required?x!==""&&fu.test(x)===!0?e.isValid=1:e.isValid=0:e.isValid=1});return()=>{Te.remove(),Ce.remove()}});const[B,M]=F.useState(!1),z=Ce=>{M(Ce)},P=()=>{M(!1)},j=()=>{var Ce,Te,ye;if(i!=null&&i.rowIsRepeatable){if(i!=null&&i.repeatableFields){const Ae=[...i.repeatableFields],re=Et.findIndex(Ae,function(U){return U.uuid===(e==null?void 0:e.uuid)});re>=0&&Ae[re].fieldData?S(Ae[re].fieldData):S("")}}else{const Ae=m;if(Ae!=null&&Ae.length){for(const re of Ae)if(re.fieldId===t.field.uuid&&((Ce=re==null?void 0:re.postData[0])==null?void 0:Ce.postValue)!==""&&((Te=re==null?void 0:re.postData[0])!=null&&Te.postValue)){S((ye=re==null?void 0:re.postData[0])==null?void 0:ye.postValue),w(!0);break}}}w(!0)},de=(Ce,Te)=>{S(Te);const ye=m,Ae=Et.cloneDeep(u);if(ye!==null){if(Te){if(Ae[e==null?void 0:e.uuid]=Te,(ye==null?void 0:ye.length)>0)for(const re of ye)re.fieldId===t.field.uuid&&(re.postData[0]={postValue:Te})}else if(delete Ae[e==null?void 0:e.uuid],(ye==null?void 0:ye.length)>0)for(const re of ye)re.fieldId===t.field.uuid&&(re.postData[0]={postValue:""})}if(!(i!=null&&i.rowIsRepeatable)){d(Ae);const re=Object.keys(Ae).length;f(re)}},he=(Ce,Te,ye,Ae)=>{var K;const re=[...m],U=Et.findIndex(re,function(ue){return ue.rowId===(i==null?void 0:i.uuid)});let Z=(K=m[U])==null?void 0:K.repeatableFields;Z={...Z,[ye==null?void 0:ye.uuid]:Ae},re[U]={...re[U],repeatableFields:Z},h(re),S(Ae),Ae!==""&&fu.test(Ae)===!0?e.isValid=1:e.isValid=0},te=o.jsxs("div",{onMouseOver:N,onMouseOut:O,children:[!l&&!a&&_&&o.jsx(Hr,{handleFieldSettingsSidebar:z,...t}),o.jsx("div",{className:`field ${a?" ":" builder-element-wrapper "}${(e==null?void 0:e.isFluid)===!0?" card py-3 px-4 p-fluid":"card py-3 px-4"}`,children:o.jsxs("div",{className:"grid",children:[o.jsxs("div",{className:a?"col-12 p-fluid":"col-12 p-fluid field-form-builder",children:[(e==null?void 0:e.showHeaderText)&&o.jsx("h6",{children:(G=e==null?void 0:e.headerText)==null?void 0:G[v==null?void 0:v.type]}),(e==null?void 0:e.showLabel)&&o.jsxs("label",{htmlFor:e.uuid,className:"flex font-medium mb-3 text-700 text-2xl",children:[o.jsx(aa,{...t}),((ae=e==null?void 0:e.attributes)==null?void 0:ae.required)&&o.jsx("span",{className:"must-required mr-1",children:"*"})," ",a?o.jsx(o.Fragment,{children:(Y=e==null?void 0:e.label)==null?void 0:Y[v==null?void 0:v.type]}):o.jsx(Zi,{...t}),o.jsx("span",{className:"ml-3",children:(e==null?void 0:e.showToolTip)&&o.jsx(Bi,{message:(pe=e==null?void 0:e.toolTip)==null?void 0:pe[v==null?void 0:v.type],position:"right"})})]}),o.jsx(F6,{id:e==null?void 0:e.uuid,placeholder:(ie=e==null?void 0:e.placeholder)==null?void 0:ie[v==null?void 0:v.type],value:x,onFocus:()=>C(1),onChange:Ce=>{i!=null&&i.rowIsRepeatable?he(n,r,e,Ce.value):de(Ce,Ce.value)},className:E===1&&((J=e==null?void 0:e.attributes)!=null&&J.required)?x?"valid":"invalid":"valid'",readOnly:c===g}),((Q=e==null?void 0:e.attributes)==null?void 0:Q.required)&&o.jsx("div",{children:o.jsx("small",{className:"error",children:E===1&&!x?(se=e==null?void 0:e.validationMesssage)==null?void 0:se[v==null?void 0:v.type]:""})}),(e==null?void 0:e.showHelperText)&&o.jsx("div",{children:o.jsx("small",{children:(be=e==null?void 0:e.helperText)==null?void 0:be[v==null?void 0:v.type]})})]}),s&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(Ni,{...t})]})]})})]});return o.jsxs(o.Fragment,{children:[B===!0&&o.jsx(Xi,{visibilty:B,closeSettingFieldSidebar:P,...t},e==null?void 0:e.uuid),o.jsx(wi,{...t,fieldWrap:te})]})},fSe=t=>{var G,ae,Y,pe,ie,J;const{field:e,pageIndex:n,sectionIndex:r,row:i}=t,{isPreview:a,isAdmin:s,isRenderView:l}=Zt(),{task_status:c,taskRegisterData:u,updateTaskRegisterData:d,updateTaskProgressValue:f,updateUserFormDataSubmit:h,userTaskSubmitFormData:m,TASK_PUBLISHED:g}=br(),{userSelectedLanguage:v}=on(),[A,w]=F.useState(!1),[x,S]=F.useState(""),[E,C]=F.useState(0),[_,T]=F.useState(!1),N=()=>{T(!0)},O=()=>{T(!1)};F.useEffect(()=>{A||j();const Q=Gt.addListener("clearRepeatableFields",be=>{be===(i==null?void 0:i.uuid)&&(S(""),C(0),e.isValid=0)}),se=Gt.addListener("onSubmitUserForm",()=>{var be;(be=e==null?void 0:e.attributes)!=null&&be.required&&(x!==""&&fu.test(x)===!0?e.isValid=1:e.isValid=0)});return()=>{se.remove(),Q.remove()}});const[B,M]=F.useState(!1),z=Q=>{M(Q)},P=()=>{M(!1)},j=()=>{var Q,se,be;if(i!=null&&i.rowIsRepeatable){if(i!=null&&i.repeatableFields){const Ce=[...i.repeatableFields],Te=Et.findIndex(Ce,function(ye){return ye.uuid===(e==null?void 0:e.uuid)});Te>=0&&Ce[Te].fieldData?S(Ce[Te].fieldData):S("")}}else{const Ce=m;if(Ce!=null&&Ce.length){for(const Te of Ce)if(Te.fieldId===t.field.uuid&&((Q=Te==null?void 0:Te.postData[0])==null?void 0:Q.postValue)!==""&&((se=Te==null?void 0:Te.postData[0])!=null&&se.postValue)){S((be=Te==null?void 0:Te.postData[0])==null?void 0:be.postValue),w(!0);break}}}w(!0)},de=(Q,se)=>{S(se);const be=m,Ce=Et.cloneDeep(u);if(se){if(Ce[e==null?void 0:e.uuid]=se,(be==null?void 0:be.length)>0)for(const Te of be)Te.fieldId===t.field.uuid&&(Te.postData[0]={postValue:se})}else if(delete Ce[e==null?void 0:e.uuid],(be==null?void 0:be.length)>0)for(const Te of be)Te.fieldId===t.field.uuid&&(Te.postData[0]={postValue:""});if(!(i!=null&&i.rowIsRepeatable)){d(Ce);const Te=Object.keys(Ce).length;f(Te)}},he=(Q,se,be,Ce)=>{var re;const Te=[...m],ye=Et.findIndex(Te,function(U){return U.rowId===(i==null?void 0:i.uuid)});let Ae=(re=m[ye])==null?void 0:re.repeatableFields;Ae={...Ae,[be==null?void 0:be.uuid]:Ce},Te[ye]={...Te[ye],repeatableFields:Ae},h(Te),S(Ce),Ce!==""&&fu.test(Ce)===!0?e.isValid=1:e.isValid=0},te=o.jsxs("div",{onMouseOver:N,onMouseOut:O,children:[!l&&!a&&_&&o.jsx(Hr,{handleFieldSettingsSidebar:z,...t}),o.jsxs("div",{className:`field ${a?" ":" builder-element-wrapper "}${(e==null?void 0:e.isFluid)===!0?" p-fluid ":" "} ${l?" ":" py-6 px-4 card"}`,children:[o.jsxs("div",{className:a?"p-fluid":"card p-fluid field-form-builder",children:[!a&&o.jsx("label",{className:"block font-medium mb-3 text-700 text-2xl",children:"Hidden field"}),o.jsx(mn,{type:a===!0?"hidden":"text",id:e==null?void 0:e.uuid,placeholder:(G=e==null?void 0:e.placeholder)==null?void 0:G[v==null?void 0:v.type],value:(ae=e==null?void 0:e.defaultValue)==null?void 0:ae[v==null?void 0:v.type],onFocus:()=>C(1),onLoad:()=>{i!=null&&i.rowIsRepeatable?he(n,r,e,e==null?void 0:e.defaultValue):de("",e==null?void 0:e.defaultValue)},className:E===1&&((Y=e==null?void 0:e.attributes)!=null&&Y.required)?x?"valid":"invalid":"valid'",readOnly:c===g}),((pe=e==null?void 0:e.attributes)==null?void 0:pe.required)&&o.jsx("div",{children:o.jsx("small",{className:"error",children:E===1&&!x?(ie=e==null?void 0:e.validationMesssage)==null?void 0:ie[v==null?void 0:v.type]:""})}),(e==null?void 0:e.showHelperText)&&o.jsx("div",{children:o.jsx("small",{children:(J=e==null?void 0:e.helperText)==null?void 0:J[v==null?void 0:v.type]})})]}),s&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(Ni,{...t})]})]})]});return o.jsxs(o.Fragment,{children:[B===!0&&o.jsx(Xi,{visibilty:B,closeSettingFieldSidebar:P,...t}),o.jsx(wi,{...t,fieldWrap:te})]})},oj=t=>{var E;const{field:e,fieldIndex:n,pageIndex:r,sectionIndex:i,rowIndex:a,columnIndex:s,path:l,labelType:c}=t,[u,d]=F.useState(e),{isPreview:f}=Zt();F.useEffect(()=>{var C;return x((C=e[c])==null?void 0:C[h==null?void 0:h.type]),()=>{}},[e]);const{userSelectedLanguage:h,fieldSettingUpdate:m,fieldSettingUpdateInlineConditional:g,gridComponentFieldSettingUpdate:v}=on(),A=(C,_,T)=>{d(N=>({...N,[C]:{...N[C],[_==null?void 0:_.type]:T}}))},[w,x]=F.useState((E=e[c])==null?void 0:E[h==null?void 0:h.type]);F.useEffect(()=>(S(),()=>{}),[u]);const S=()=>{const C=l.split("-").map(Number);(t==null?void 0:t.fieldContainer)==="inline-condition-container"?g(C[oa],C[la],C[fa],C[ha],C[pa],C[wa],C[$o],C[yo],u):(C==null?void 0:C.length)>wa&&(C==null?void 0:C.length)===Bl+1&&(e!=null&&e.componentType)&&(t==null?void 0:t.fieldContainer)==="grid-container"?v(C[oa],C[la],C[fa],C[ha],C[pa],C[5],C[6],C[7],u):m(r,i,a,s,n,{...e,[c]:u[c]})};return o.jsx(o.Fragment,{children:o.jsx(r4,{style:{display:"inline-block"},className:"builder-input-label-edit",html:w,disabled:f,onChange:C=>{var _;x(l4.sanitize((_=C==null?void 0:C.target)==null?void 0:_.value))},onBlur:C=>{var T;const _=l4.sanitize((T=C==null?void 0:C.target)==null?void 0:T.innerText);x(_),A(c,h,_)},tagName:"article"})})},hSe=t=>{var ie,J,Q,se,be,Ce,Te;const{taskRegisterData:e,updateTaskRegisterData:n,updateTaskProgressValue:r,updateUserFormDataSubmit:i,userTaskSubmitFormData:a}=br(),{userSelectedLanguage:s,fieldSettingUpdate:l}=on(),{field:c,fieldIndex:u,sectionIndex:d,pageIndex:f,row:h,rowIndex:m,columnIndex:g}=t,{isPreview:v,isAdmin:A,isRenderView:w}=Zt(),[x,S]=F.useState(!1),[E,C]=F.useState(""),[_,T]=F.useState(0),[N,O]=F.useState(!1),[B,M]=F.useState(!1),z=()=>{M(!0)},P=()=>{M(!1)},j=()=>{var ye,Ae,re;if(h!=null&&h.rowIsRepeatable){if(h!=null&&h.repeatableFields){const U=[...h.repeatableFields],Z=Et.findIndex(U,function(K){return K.uuid===(c==null?void 0:c.uuid)});Z>=0&&U[Z].fieldData?C(U[Z].fieldData):C("")}}else{const U=a;if(U!=null&&U.length){for(const Z of U)if(Z.fieldId===t.field.uuid&&((ye=Z==null?void 0:Z.postData[0])==null?void 0:ye.postValue)!==""&&((Ae=Z==null?void 0:Z.postData[0])!=null&&Ae.postValue)){C((re=Z==null?void 0:Z.postData[0])==null?void 0:re.postValue);break}}}O(!0)};F.useEffect(()=>{N||j();const ye=Gt.addListener("clearRepeatableFields",Z=>{Z===(h==null?void 0:h.uuid)&&(C(""),T(0),c.isValid=0,l(f,d,m,g,u,c))}),Ae=Gt.addListener("onSubmitUserForm",()=>{var Z;(Z=c==null?void 0:c.attributes)!=null&&Z.required?E?c.isValid=1:c.isValid=0:c.isValid=1}),re=Gt.addListener("OnInvalidFieldCatch",Z=>{c.uuid===(Z==null?void 0:Z.fieldId)?T(1):T(0)}),U=Gt.addListener("OnGetFieldValue",Z=>{var ue;const K=(ue=Z==null?void 0:Z.repeatableColumn)==null?void 0:ue.filter(Ee=>(Ee==null?void 0:Ee.fieldUuid)===(c==null?void 0:c.uuid));K!=null&&K.length});return()=>{Ae.remove(),re.remove(),U.remove(),ye.remove()}});const de=ye=>{S(ye)},he=()=>{S(!1)},te=ye=>{var U,Z;C(ye.target.value);const Ae=a,re=Et.cloneDeep(e);if(Ae!==null){if((U=ye==null?void 0:ye.target)!=null&&U.value){if(re[c==null?void 0:c.uuid]=(Z=ye==null?void 0:ye.target)==null?void 0:Z.value,(Ae==null?void 0:Ae.length)>0)for(const K of Ae)K.fieldId===t.field.uuid&&(K.postData[0]={postValue:ye.target.value})}else if(delete re[c==null?void 0:c.uuid],(Ae==null?void 0:Ae.length)>0)for(const K of Ae)K.fieldId===t.field.uuid&&(K.postData[0]={postValue:""})}if(!(h!=null&&h.rowIsRepeatable)){n(re);const K=Object.keys(re).length;r(K)}},G=(ye,Ae,re,U)=>{var Z;if(a){const K=[...a],ue=Et.findIndex(K,function(ge){return ge.rowId===(h==null?void 0:h.uuid)});let Ee=(Z=a[ue])==null?void 0:Z.repeatableFields;Ee={...Ee,[re==null?void 0:re.uuid]:U},K[ue]={...K[ue],repeatableFields:Ee},i(K)}C(U),U!==""?re.isValid=1:re.isValid=0},ae=10,Y=()=>{const ye=[];for(let Ae=0;Ae<=ae;Ae++)ye.push(o.jsxs("label",{children:[o.jsx("input",{onChange:re=>{h!=null&&h.rowIsRepeatable?G(f,d,c,re.target.value):te(re)},checked:parseInt(E)===Ae,name:"liker-scale"+(c==null?void 0:c.uuid),type:"radio",value:Ae}),o.jsx("span",{children:Ae})]},`field-${c==null?void 0:c.uuid}-likertScale-${Ae} ${parseInt(E)===Ae?"scale-selected":""}`));return ye},pe=o.jsxs("div",{onMouseOver:z,onMouseOut:P,children:[!w&&!v&&B&&o.jsx(Hr,{handleFieldSettingsSidebar:de,...t}),o.jsxs("div",{className:`field ${v?" ":" builder-element-wrapper "}${(c==null?void 0:c.isFluid)===!0?" card py-3 px-4 p-fluid":"card py-3 px-4"}`,children:[o.jsxs("div",{className:"",children:[(c==null?void 0:c.showHeaderText)&&o.jsx("h6",{children:(ie=c==null?void 0:c.headerText)==null?void 0:ie[s==null?void 0:s.type]}),(c==null?void 0:c.showLabel)&&o.jsxs("label",{htmlFor:u,className:"flex font-medium mb-3 text-700 text-2xl",children:[o.jsx(aa,{...t}),((J=c==null?void 0:c.attributes)==null?void 0:J.required)&&o.jsx("span",{className:"must-required mr-1",children:"*"})," ",v?o.jsx(o.Fragment,{children:(Q=c==null?void 0:c.label)==null?void 0:Q[s==null?void 0:s.type]}):o.jsx(Zi,{...t}),o.jsx("span",{className:"ml-3",children:(c==null?void 0:c.showToolTip)&&o.jsx(Bi,{message:(se=c==null?void 0:c.toolTip)==null?void 0:se[s==null?void 0:s.type],position:"right"})})]}),o.jsx("div",{children:o.jsxs("div",{className:"mt-4",children:[o.jsxs("div",{className:"flex justify-content-between mb-3",children:[o.jsx("div",{className:"font-medium text-900 ",children:o.jsx(oj,{...t,labelType:"startingMessage"})}),o.jsx("div",{className:"font-medium text-900",children:o.jsx(oj,{...t,labelType:"endingMessage"})})]}),o.jsx("div",{className:"likert",children:Y()})]})}),o.jsx("div",{children:((be=c==null?void 0:c.attributes)==null?void 0:be.required)&&o.jsx("small",{className:"error",children:_===1&&!E?(Ce=c==null?void 0:c.validationMesssage)==null?void 0:Ce.language:""})}),o.jsx("div",{children:(c==null?void 0:c.showHelperText)&&o.jsx("small",{children:(Te=c==null?void 0:c.helperText)==null?void 0:Te[s==null?void 0:s.type]})})]}),A&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(Ni,{...t})]})]})]});return o.jsxs(o.Fragment,{children:[x===!0&&o.jsx(Xi,{visibilty:x,closeSettingFieldSidebar:he,...t}),o.jsx(wi,{...t,fieldWrap:pe})]})},pSe=t=>{var ie,J,Q,se,be,Ce,Te,ye,Ae,re,U,Z;const{taskRegisterData:e,updateTaskRegisterData:n,updateTaskProgressValue:r,updateUserFormDataSubmit:i,userTaskSubmitFormData:a,task_status:s,TASK_PUBLISHED:l}=br(),{userSelectedLanguage:c,fieldSettingUpdate:u}=on(),{field:d,fieldIndex:f,sectionIndex:h,pageIndex:m,row:g,rowIndex:v,columnIndex:A}=t,{isPreview:w,isAdmin:x,isRenderView:S}=Zt(),[E,C]=F.useState(!1),[_,T]=F.useState(""),[N,O]=F.useState(0),[B,M]=F.useState(!1),[z,P]=F.useState(!1),j=()=>{P(!0)},de=()=>{P(!1)},he=()=>{var K,ue,Ee;if(g!=null&&g.rowIsRepeatable){if(g!=null&&g.repeatableFields){const ge=[...g.repeatableFields],me=Et.findIndex(ge,function(Le){return Le.uuid===(d==null?void 0:d.uuid)});me>=0&&ge[me].fieldData?T(ge[me].fieldData):T("")}}else{const ge=a;if(ge!=null&&ge.length){for(const me of ge)if(me.fieldId===t.field.uuid&&((K=me==null?void 0:me.postData[0])==null?void 0:K.postValue)!==""&&((ue=me==null?void 0:me.postData[0])!=null&&ue.postValue)){T((Ee=me==null?void 0:me.postData[0])==null?void 0:Ee.postValue);break}}}M(!0)};F.useEffect(()=>{B||he();const K=Gt.addListener("clearRepeatableFields",me=>{me===(g==null?void 0:g.uuid)&&(T(""),O(0),d.isValid=0,u(m,h,v,A,f,d))}),ue=Gt.addListener("onSubmitUserForm",()=>{var me;(me=d==null?void 0:d.attributes)!=null&&me.required?_?d.isValid=1:d.isValid=0:d.isValid=1}),Ee=Gt.addListener("OnInvalidFieldCatch",me=>{d.uuid===(me==null?void 0:me.fieldId)?O(1):O(0)}),ge=Gt.addListener("OnGetFieldValue",me=>{var Oe;const Le=(Oe=me==null?void 0:me.repeatableColumn)==null?void 0:Oe.filter(ve=>(ve==null?void 0:ve.fieldUuid)===(d==null?void 0:d.uuid));Le!=null&&Le.length});return()=>{ue.remove(),Ee.remove(),ge.remove(),K.remove()}});const te=K=>{C(K)},G=()=>{C(!1)},ae=K=>{var ge,me;T(K.target.value);const ue=a,Ee=Et.cloneDeep(e);if(ue!==null){if((ge=K==null?void 0:K.target)!=null&&ge.value){if(Ee[d==null?void 0:d.uuid]=(me=K==null?void 0:K.target)==null?void 0:me.value,(ue==null?void 0:ue.length)>0)for(const Le of ue)Le.fieldId===t.field.uuid&&(Le.postData[0]={postValue:K.target.value})}else if(delete Ee[d==null?void 0:d.uuid],(ue==null?void 0:ue.length)>0)for(const Le of ue)Le.fieldId===t.field.uuid&&(Le.postData[0]={postValue:""})}if(!(g!=null&&g.rowIsRepeatable)){n(Ee);const Le=Object.keys(Ee).length;r(Le)}},Y=(K,ue)=>{var Ee;if(a){const ge=[...a],me=Et.findIndex(ge,function(Oe){return Oe.rowId===(g==null?void 0:g.uuid)});let Le=(Ee=a[me])==null?void 0:Ee.repeatableFields;Le={...Le,[K==null?void 0:K.uuid]:ue},ge[me]={...ge[me],repeatableFields:Le},i(ge)}T(ue),ue!==""?K.isValid=1:K.isValid=0},pe=o.jsxs("div",{onMouseOver:j,onMouseOut:de,children:[!S&&!w&&z&&o.jsx(Hr,{handleFieldSettingsSidebar:te,...t}),o.jsxs("div",{className:`field ${w?" ":" builder-element-wrapper "}${(d==null?void 0:d.isFluid)===!0?" card py-3 px-4 p-fluid":"card py-3 px-4"}`,children:[o.jsx("div",{className:"grid",children:o.jsxs("div",{className:w?"col-12 ":"col-12 p-fluid",children:[(d==null?void 0:d.showHeaderText)&&o.jsx("h6",{children:(ie=d==null?void 0:d.headerText)==null?void 0:ie[c==null?void 0:c.type]}),(d==null?void 0:d.showLabel)&&o.jsxs("label",{htmlFor:f,className:"flex font-medium mb-3 text-700 text-2xl",children:[o.jsx(aa,{...t}),((J=d==null?void 0:d.attributes)==null?void 0:J.required)&&o.jsx("span",{className:"must-required mr-1",children:"*"})," ",w?o.jsx(o.Fragment,{children:(Q=d==null?void 0:d.label)==null?void 0:Q[c==null?void 0:c.type]}):o.jsx(Zi,{...t}),o.jsx("span",{className:"ml-3",children:(d==null?void 0:d.showToolTip)&&o.jsx(Bi,{message:(se=d==null?void 0:d.toolTip)==null?void 0:se[c==null?void 0:c.type],position:"right"})})]}),o.jsxs("div",{className:"mt-3",children:[o.jsxs("span",{className:"p-input-icon-"+(d==null?void 0:d.iconAlignment),children:[(d==null?void 0:d.showIcon)&&o.jsx("i",{className:"pi pi-"+((Ce=(be=d==null?void 0:d.icon)==null?void 0:be.properties)==null?void 0:Ce.name)}),o.jsx(mn,{id:d==null?void 0:d.uuid,placeholder:(Te=d==null?void 0:d.placeholder)==null?void 0:Te[c==null?void 0:c.type],value:_,onFocus:()=>O(1),onChange:K=>{g!=null&&g.rowIsRepeatable?Y(d,K.target.value):ae(K)},className:N===1&&((ye=d==null?void 0:d.attributes)!=null&&ye.required)?_?"valid mt-2 mr-2":"invalid mt-2":"valid mt-2",readOnly:s===l})]}),o.jsx("div",{children:((Ae=d==null?void 0:d.attributes)==null?void 0:Ae.required)&&o.jsx("small",{className:"error",children:N===1&&!_?(re=d==null?void 0:d.validationMesssage)==null?void 0:re.english:""})}),o.jsx("div",{children:(d==null?void 0:d.showHelperText)&&o.jsx("small",{children:(U=d==null?void 0:d.helperText)==null?void 0:U[c==null?void 0:c.type]})})]})]})}),o.jsx("p",{className:"text-center",children:o.jsx("span",{className:`${(Z=d==null?void 0:d.fontStyle)==null?void 0:Z.font} text-center`,style:{fontSize:d==null?void 0:d.fontSize},children:_})}),x&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(Ni,{...t})]})]})]});return o.jsxs(o.Fragment,{children:[E===!0&&o.jsx(Xi,{visibilty:E,closeSettingFieldSidebar:G,...t}),o.jsx(wi,{...t,fieldWrap:pe})]})},gSe=t=>{var ye,Ae,re,U,Z,K,ue,Ee,ge,me,Le,Oe,ve,V,ne,X,oe;const{taskRegisterData:e,updateTaskRegisterData:n,updateTaskProgressValue:r,userTaskSubmitFormData:i,TASK_PUBLISHED:a,task_status:s}=br(),{globalAlignment:l}=Zt(),{userSelectedLanguage:c,fieldSettingUpdate:u}=on(),{isRenderView:d,isAdmin:f,isPreview:h}=Zt(),m=fe=>{const we=fe.collapsed?"pi pi-chevron-down":"pi pi-chevron-up",De=`${fe.className} justify-content-start`,$e=`${fe.titleClassName} pl-1`;return o.jsxs("div",{className:De,children:[o.jsxs("button",{className:fe.togglerClassName,onClick:fe.onTogglerClick,children:[o.jsx("span",{className:we}),o.jsx(Qt,{})]}),o.jsx("span",{className:$e,children:he})]})},{field:g,fieldIndex:v,sectionIndex:A,pageIndex:w,row:x,rowIndex:S,columnIndex:E}=t,[C,_]=F.useState(!1),[T,N]=F.useState(null),[O,B]=F.useState({country:null,city:null,state:null,addressOne:null,addressTwo:null,zipcode:null,isBillingAddressSame:!1,billingCountry:null,billingCity:null,billingState:null,billingAddressOne:null,billingAddressTwo:null,billingZipcode:null}),[M,z]=F.useState(!1),P=()=>{z(!0)},j=()=>{z(!1)},de=(fe,we)=>{let De={...O};De={...De,[fe]:we},B(De),(De==null?void 0:De.addressOne)!==""&&(De!=null&&De.addressTwo)&&(De!=null&&De.zipcode)&&Ce(De==null?void 0:De.zipcode)?(g.isValid=1,Q(De,!0)):(g.isValid=0,Q(null,!1))},[he]=F.useState((ye=g==null?void 0:g.label)==null?void 0:ye[c==null?void 0:c.type]),[te,G]=F.useState(0),[ae,Y]=F.useState(!1),pe=()=>{var fe,we;if(!(x!=null&&x.rowIsRepeatable)){const De=i;if(De!=null&&De.length){for(const $e of De)if($e.fieldId===t.field.uuid&&((fe=$e==null?void 0:$e.postData[0])!=null&&fe.postValue)){B((we=$e==null?void 0:$e.postData[0])==null?void 0:we.postValue);break}}}Y(!0)};F.useEffect(()=>{ae||pe();const fe=Gt.addListener("clearRepeatableFields",Nt=>{Nt===(x==null?void 0:x.uuid)&&(G(0),g.isValid=0,u(w,A,S,E,v,g))}),we=Gt.addListener("onSubmitUserForm",()=>{var Nt;(Nt=g==null?void 0:g.attributes)!=null&&Nt.required?(O==null?void 0:O.addressOne)!==""&&(O==null?void 0:O.zipcode)!==""&&Ce(O==null?void 0:O.zipcode)?g.isValid=1:g.isValid=0:g.isValid=1}),De=Gt.addListener("OnInvalidFieldCatch",Nt=>{g.uuid===(Nt==null?void 0:Nt.fieldId)?G(1):G(0)}),$e=Gt.addListener("OnGetFieldValue",Nt=>{var St;const at=(St=Nt==null?void 0:Nt.repeatableColumn)==null?void 0:St.filter(st=>(st==null?void 0:st.fieldUuid)===(g==null?void 0:g.uuid));at!=null&&at.length}),ct=Gt.addListener("formFieldAdded",Nt=>{T===null&&N(Nt.uuid)});return()=>{we.remove(),De.remove(),$e.remove(),fe.remove(),ct.remove()}});const ie=fe=>{_(fe)},J=()=>{_(!1)},Q=(fe,we)=>{const De=i,$e=Et.cloneDeep(e);if(we){if($e[g==null?void 0:g.uuid]=fe,(De==null?void 0:De.length)>0)for(const ct of De)ct.fieldId===t.field.uuid&&(ct.postData[0]={postValue:fe})}else if(delete $e[g==null?void 0:g.uuid],(De==null?void 0:De.length)>0)for(const ct of De)ct.fieldId===t.field.uuid&&(ct.postData[0]={postValue:fe});if(!(x!=null&&x.rowIsRepeatable)){n($e);const ct=Object.keys($e).length;r(ct)}},se=()=>{let fe="";return h||(fe=fe+" field-form-builder"),s===a&&f===!0&&(fe=fe+" card"),fe},be=()=>{let fe=!1;return O.addressOne!==""&&O.zipcode!==""&&Ce(O.zipcode)&&(fe=!0),fe};function Ce(fe){const we=/\d/.test(fe),De=/[a-zA-Z]/.test(fe);return we&&De?!0:!!we}F.useEffect(()=>(T!==null&&setTimeout(()=>{N(null)},1e3),()=>{}),[T]);const Te=o.jsxs("div",{onMouseOver:P,onMouseOut:j,children:[!d&&!h&&M&&o.jsx(Hr,{handleFieldSettingsSidebar:ie,...t}),o.jsxs("div",{className:`field ${h?" ":" builder-element-wrapper "} ${(g==null?void 0:g.isFluid)===!0?" card py-3 px-4 p-fluid":"card p-4"} ${T===(g==null?void 0:g.uuid)?" new-field ":" card "}`,children:[o.jsx("div",{className:"grid",children:o.jsxs("div",{className:h?"col-12 ":"col-11 p-fluid",children:[(g==null?void 0:g.showHeaderText)&&o.jsx("h6",{children:(Ae=g==null?void 0:g.headerText)==null?void 0:Ae[c==null?void 0:c.type]}),(g==null?void 0:g.showLabel)&&o.jsxs("label",{htmlFor:v,className:"flex font-medium mb-3 text-700 text-2xl",children:[o.jsx(aa,{...t}),((re=g==null?void 0:g.attributes)==null?void 0:re.required)&&o.jsx("span",{className:"must-required mr-1",children:"*"})," ",h?o.jsx(o.Fragment,{children:(U=g==null?void 0:g.label)==null?void 0:U[c==null?void 0:c.type]}):o.jsx(Zi,{...t}),o.jsx("span",{className:"ml-3",children:(g==null?void 0:g.showToolTip)&&o.jsx(Bi,{message:(Z=g==null?void 0:g.toolTip)==null?void 0:Z[c==null?void 0:c.type],position:"right"})})]}),o.jsxs("div",{className:"mt-3 p-fluid",children:[o.jsx("div",{children:o.jsx("label",{className:"w-full",htmlFor:"",children:(K=g==null?void 0:g.addresslineFirstLabel)==null?void 0:K[c==null?void 0:c.type]})}),o.jsx(mn,{value:O.addressOne||"",onChange:fe=>de("addressOne",fe.target.value),className:"my-2 ",readOnly:s===a}),o.jsx("div",{children:o.jsx("label",{htmlFor:"",children:(ue=g==null?void 0:g.addresslineSecondLabel)==null?void 0:ue[c==null?void 0:c.type]})}),o.jsx(mn,{value:O.addressTwo||"",onChange:fe=>de("addressTwo",fe.target.value),className:"my-2",readOnly:s===a}),o.jsx("div",{children:o.jsx("label",{htmlFor:"",children:(Ee=g==null?void 0:g.postalcodeLabel)==null?void 0:Ee[c==null?void 0:c.type]})}),o.jsx(mn,{value:O.zipcode||"",onChange:fe=>de("zipcode",fe.target.value),className:"my-2",readOnly:s===a}),o.jsx("p",{children:!Ce(O.zipcode)&&o.jsx("small",{children:"Cannot be alphabetical only."})}),((ge=g==null?void 0:g.attributes)==null?void 0:ge.required)&&!be()&&o.jsx("small",{className:"error",children:te===1?(me=g==null?void 0:g.validationMesssage)==null?void 0:me.language:""}),(g==null?void 0:g.showBillingAddress)===!0&&o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:"field-checkbox",children:[o.jsx(Nr,{inputId:"binary",checked:O.isBillingAddressSame,onChange:fe=>{de("isBillingAddressSame",fe.checked),fe.checked?B(we=>({...we,billingCountry:O.country,billingCity:O.city,billingState:O.state,billingAddressOne:O.addressOne,billingAddressTwo:O.addressTwo,billingZipcode:O.zipcode})):B(we=>({...we,billingCountry:null,billingCity:null,billingState:null,billingAddressOne:null,billingAddressTwo:null,billingZipcode:null}))},disabled:s===a}),o.jsx("label",{htmlFor:"binary",children:"Is Billing Address Same"})]}),O.isBillingAddressSame===!1&&o.jsxs(o.Fragment,{children:[(g==null?void 0:g.showLabel)&&o.jsxs("label",{htmlFor:v,className:"flex font-medium mb-3 text-700 text-2xl",children:[((Le=g==null?void 0:g.attributes)==null?void 0:Le.required)&&o.jsx("span",{className:"must-required",children:"*"})," ",(Oe=g==null?void 0:g.billingLabel)==null?void 0:Oe[c==null?void 0:c.type],o.jsx("span",{className:"ml-3",children:(g==null?void 0:g.showToolTip)&&o.jsx(Bi,{message:(ve=g==null?void 0:g.toolTip)==null?void 0:ve[c==null?void 0:c.type],position:"right"})})]}),o.jsx("label",{htmlFor:"",children:(V=g==null?void 0:g.addresslineFirstLabel)==null?void 0:V[c==null?void 0:c.type]}),o.jsx(mn,{value:O.billingAddressOne||"",onChange:fe=>de("billingAddressOne",fe.target.value),className:"my-2",readOnly:s===a}),o.jsx("label",{htmlFor:"",children:(ne=g==null?void 0:g.addresslineSecondLabel)==null?void 0:ne[c==null?void 0:c.type]}),o.jsx(mn,{value:O.billingAddressTwo||"",onChange:fe=>de("billingAddressTwo",fe.target.value),className:"my-2",readOnly:s===a}),o.jsx("label",{htmlFor:"",children:(X=g==null?void 0:g.postalcodeLabel)==null?void 0:X[c==null?void 0:c.type]}),o.jsx(mn,{value:O.billingZipcode||"",onChange:fe=>de("billingZipcode",fe.target.value),className:"my-2",readOnly:s===a}),!Ce(O.billingZipcode)&&o.jsx("small",{children:"Cannot be alphabetical only."})]})]}),o.jsx("div",{}),o.jsx("div",{children:(g==null?void 0:g.showHelperText)&&o.jsx("small",{children:(oe=g==null?void 0:g.helperText)==null?void 0:oe[c==null?void 0:c.type]})})]})]})}),f&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(Ni,{...t})]})]})]});return o.jsxs(o.Fragment,{children:[C===!0&&o.jsx(Xi,{visibilty:C,closeSettingFieldSidebar:J,...t}),o.jsx("div",{dir:l?"rtl":"ltr",className:se(),children:s===a&&f===!0?o.jsx(li,{headerTemplate:m,toggleable:!0,children:Te}):Te})]})},mSe=t=>{var S;const{customColumn:e,indexes:n,customColumnIndex:r,path:i,field:a,onSetValuetoPostData:s,sectionIndex:l,page:c,row:u,column:d,section:f,pageIndex:h,rowIndex:m,columnIndex:g}=t,{handleDrop:v}=on(),{isPreview:A,isAdvanceView:w}=Zt(),x=(E,C)=>{s(E,C)};return o.jsxs("div",{className:"p-2 py-4",children:[n&&((S=a.children)==null?void 0:S.length)>0&&a.children.map((E,C)=>{const _=E[`${n.rowIndex}-${n.columnIndex}`];return _?o.jsx("div",{children:o.jsx(qc,{type:"grid",showFieldIcons:!1,onChange:x,data:_,field:_,path:`${i}-${n.rowIndex}-${n.columnIndex}-${C}`,sectionIndex:l,page:c,column:d,row:u,section:f,pageIndex:h,rowIndex:m,columnIndex:g,fieldIndex:C,fieldContainer:"grid-container"})},`${n.rowIndex}-${n.columnIndex}-${C}`):null}),n&&A===!1&&o.jsx("div",{className:"py-5",children:o.jsx(Tr,{isAdvanceView:w,fieldDropArea:!0,data:{path:`${i}-${n.rowIndex}-${r}`,childrenCount:1,droppedField:e},onDrop:v})})]})},lj=t=>{var M,z,P,j,de,he,te;const{field:e,column:n,section:r,row:i,rowIndex:a,columnIndex:s,sectionIndex:l,isPreview:c,userSelectedLanguage:u,fieldIndex:d,customColumnHeaderTemplate:f,onSetValuetoPostData:h,setAllFields:m,allFields:g,actionHeaderTemplate:v,actionBodyTemplate:A,isFocus:w,inputValue:x,handleFieldSettingsSidebar:S,isAdmin:E,emitSocketData:C,isRenderView:_}=t,[T,N]=F.useState(!1),O=()=>{N(!0)},B=()=>{N(!1)};return o.jsxs("div",{onMouseOver:O,onMouseOut:B,children:[!_&&!c&&T&&o.jsx(Hr,{handleFieldSettingsSidebar:S,...t}),o.jsxs("div",{className:`field ${c?" ":" builder-element-wrapper "}${(e==null?void 0:e.isFluid)===!0?" card py-3 px-4 ":"card py-3 px-4"}`,children:[o.jsx("div",{className:"grid",children:o.jsxs("div",{className:"col-12 ",children:[(e==null?void 0:e.showHeaderText)&&o.jsx("h6",{children:(M=e==null?void 0:e.headerText)==null?void 0:M[u==null?void 0:u.type]}),(e==null?void 0:e.showLabel)&&o.jsxs("label",{htmlFor:d,className:"flex font-medium mb-3 text-700 text-2xl",children:[o.jsx(aa,{...t}),((z=e==null?void 0:e.attributes)==null?void 0:z.required)&&o.jsx("span",{className:"must-required mr-1",children:"*"})," ",c?o.jsx(o.Fragment,{children:(P=e==null?void 0:e.label)==null?void 0:P[u==null?void 0:u.type]}):o.jsx(Zi,{...t}),o.jsx("span",{className:"ml-3",children:(e==null?void 0:e.showToolTip)&&o.jsx(Bi,{message:(j=e==null?void 0:e.toolTip)==null?void 0:j[u==null?void 0:u.type],position:"right"})})]}),o.jsxs("div",{className:"mt-3",children:[o.jsxs(Hs,{scrollable:!0,showGridlines:!0,columnResizeMode:"expand",resizableColumns:!0,value:e==null?void 0:e.options,tableStyle:{minWidth:"50rem"},children:[e==null?void 0:e.customColumnsForOptions.map((G,ae)=>o.jsx(fr,{style:{minWidth:350},header:f(G,ae),body:(Y,pe)=>o.jsx(mSe,{customColumn:G,section:r,column:n,columnIndex:s,row:i,rowIndex:a,sectionIndex:l,e:Y,indexes:pe,customColumnIndex:ae,onSetValuetoPostData:h,setAllFields:m,allFields:g,emitSocketData:C,field:e,...t})},G==null?void 0:G.uuid)),!c&&o.jsx(fr,{frozen:!0,header:G=>v(G),body:(G,ae)=>A(G,ae),headerStyle:{textAlign:"left"},bodyStyle:{textAlign:"left",overflow:"visible"}})]}),o.jsx("div",{children:((de=e==null?void 0:e.attributes)==null?void 0:de.required)&&o.jsx("small",{className:"error",children:w===1&&!x?(he=e==null?void 0:e.validationMesssage)==null?void 0:he.english:""})}),o.jsx("div",{children:(e==null?void 0:e.showHelperText)&&o.jsx("small",{children:(te=e==null?void 0:e.helperText)==null?void 0:te[u==null?void 0:u.type]})})]})]})}),E&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(Ni,{...t})]})]})]})},cj=t=>{var Ae;const{globalAlignment:e}=Zt(),n=re=>{const U=re.collapsed?"pi pi-chevron-down":"pi pi-chevron-up",Z=`${re.className} justify-content-start`,K=`${re.titleClassName} pl-1`;return o.jsxs("div",{className:Z,children:[o.jsxs("button",{className:re.togglerClassName,onClick:re.onTogglerClick,children:[o.jsx("span",{className:U}),o.jsx(Qt,{})]}),o.jsx("span",{className:K,children:C})]})},{userTaskSubmitFormData:r,TASK_PUBLISHED:i,task_status:a}=br(),{userSelectedLanguage:s,fieldSettingUpdate:l}=on(),{isPreview:c,field:u,fieldIndex:d,sectionIndex:f,pageIndex:h,row:m,rowIndex:g,columnIndex:v,isAdmin:A}=t,[w,x]=F.useState(!1),[S,E]=F.useState(""),[C]=F.useState((Ae=u==null?void 0:u.label)==null?void 0:Ae[s==null?void 0:s.type]),[_,T]=F.useState(0),[N,O]=F.useState(!1),[B,M]=F.useState(null),[z,P]=F.useState([]),j=()=>{var re,U,Z;if(m!=null&&m.rowIsRepeatable){if(m!=null&&m.repeatableFields){const K=[...m.repeatableFields],ue=Et.findIndex(K,function(Ee){return Ee.uuid===(u==null?void 0:u.uuid)});ue>=0&&K[ue].fieldData?E(K[ue].fieldData):E("")}}else{const K=r;if(K!=null&&K.length){for(const ue of K)if(ue.fieldId===t.field.uuid&&((re=ue==null?void 0:ue.postData[0])==null?void 0:re.postValue)!==""&&((U=ue==null?void 0:ue.postData[0])!=null&&U.postValue)){E((Z=ue==null?void 0:ue.postData[0])==null?void 0:Z.postValue);break}}}O(!0)},de=()=>{const re=u;re.customColumnsForOptions=[...re.customColumnsForOptions,{customKey:"Column",uuid:tt()}],ye(re)},[he,te]=F.useState(!1),G=(re,U)=>{var Z;return o.jsxs(o.Fragment,{children:[((Z=u==null?void 0:u.options)==null?void 0:Z.length)>1&&o.jsx(kt,{text:!0,type:"button",className:"p-button-danger left-space ",icon:"pi pi-trash",onClick:()=>pe(re==null?void 0:re.uuid,U==null?void 0:U.rowIndex),rounded:!0,severity:"secondary","aria-label":"Bookmark",size:"small"}),o.jsx(kt,{text:!0,type:"button",icon:"pi pi-plus",rounded:!0,severity:"secondary",onClick:()=>Ce(),"aria-label":"Add Row",size:"small"})]})},ae=(re,U)=>{var Z;return o.jsxs(o.Fragment,{children:[re==null?void 0:re.customKey,c===!1&&o.jsxs(o.Fragment,{children:[((Z=u==null?void 0:u.customColumnsForOptions)==null?void 0:Z.length)>1&&o.jsx("i",{className:"pi pi-trash ml-3",onClick:()=>ie(re==null?void 0:re.uuid,U)}),o.jsx("i",{className:"pi pi-cog ml-3",onClick:()=>{M(re),te(!0)}})]})]})},Y=()=>o.jsx(o.Fragment,{children:o.jsx(kt,{text:!0,icon:"pi pi-plus",onClick:()=>de(),rounded:!0,severity:"secondary","aria-label":"Cancel"})}),pe=(re,U)=>{var ge,me;const Z=(ge=u==null?void 0:u.customColumnsForOptions)==null?void 0:ge.length,K=[...(u==null?void 0:u.children)||[]];(me=u==null?void 0:u.children)==null||me.map(Le=>{for(let Oe=0;Oe<Z;Oe++)if(Le[`${U}-${Oe}`]!==void 0){const ve=Et.findIndex(K,function(V){return V[`${U}-${Oe}`]!==void 0});K.splice(ve,1)}});for(let Le=0;Le<(K==null?void 0:K.length);Le++){const Oe=K[Le],V=Object.keys(Oe)[0].split("-");parseInt(V[0])>U&&(K[Le]={[`${parseInt(V[0])-1}-${V[1]}`]:K[Le][`${parseInt(V[0])}-${V[1]}`]})}const ue=u==null?void 0:u.options.filter(function(Le){return(Le==null?void 0:Le.uuid)!==re}),Ee={...u,children:[...K]};Ee.options=ue,ye(Ee)},ie=(re,U)=>{var me,Le;const Z=Et.findIndex(u==null?void 0:u.customColumnsForOptions,Oe=>Oe.uuid===re),K=u==null?void 0:u.customColumnsForOptions.filter(function(Oe,ve){return ve!==Z}),ue=(me=u==null?void 0:u.options)==null?void 0:me.length,Ee=[...(u==null?void 0:u.children)||[]];(Le=u==null?void 0:u.children)==null||Le.map(Oe=>{for(let ve=0;ve<ue;ve++)if(Oe[`${ve}-${U}`]!==void 0){const V=Et.findIndex(Ee,function(ne){return ne[`${ve}-${U}`]!==void 0});Ee.splice(V,1)}});for(let Oe=0;Oe<(Ee==null?void 0:Ee.length);Oe++){const ve=Ee[Oe],ne=Object.keys(ve)[0].split("-");parseInt(ne[1])>U&&(Ee[Oe]={[`${parseInt(ne[0])}-${parseInt(ne[1])-1}`]:Ee[Oe][`${parseInt(ne[0])}-${ne[1]}`]})}const ge={...u,children:[...Ee]};ge.customColumnsForOptions=K,ye(ge)};F.useEffect(()=>{N||j();const re=Gt.addListener("clearRepeatableFields",ue=>{ue===(m==null?void 0:m.uuid)&&(E(""),T(0),u.isValid=0,l(h,f,g,v,d,u))}),U=Gt.addListener("onSubmitUserForm",()=>{var ue;(ue=u==null?void 0:u.attributes)!=null&&ue.required&&(u.isValid=1)}),Z=Gt.addListener("OnInvalidFieldCatch",ue=>{u.uuid===(ue==null?void 0:ue.fieldId)?T(1):T(0)}),K=Gt.addListener("OnGetFieldValue",ue=>{var ge;const Ee=(ge=ue==null?void 0:ue.repeatableColumn)==null?void 0:ge.filter(me=>(me==null?void 0:me.fieldUuid)===(u==null?void 0:u.uuid));Ee!=null&&Ee.length});return()=>{U.remove(),Z.remove(),K.remove(),re.remove()}});const J=re=>{x(re)},Q=()=>{x(!1)},se=(re,U)=>{var K;const Z=r;if((Z==null?void 0:Z.length)>0)for(const ue of Z)ue.fieldId===t.field.uuid&&(ue.postData[0]={postValue:{...(K=ue.postData[0])==null?void 0:K.postValue,[re]:U}})},be=()=>{let re="";return c||(re=re+" field-form-builder"),a===i&&A===!0&&(re=re+" card"),re},Ce=()=>{const re=u;re.options=[...re.options,{uuid:tt(),custom_values:{}}],ye(re)},Te=(re,U)=>{M(Ee=>Ee===null?{customKey:U,uuid:""}:{...Ee,customKey:U});const Z=u.customColumnsForOptions,K=Z.findIndex(Ee=>Ee.uuid===re.uuid);Z[K]={...Z[K],customKey:U};const ue=u;ue.customColumnsForOptions=Z,ye(ue)},ye=re=>{l(h,f,g,v,d,re)};return o.jsxs(o.Fragment,{children:[o.jsx(ys,{maximizable:!0,header:"Update Column Title",visible:he,style:{width:"20vw"},footer:()=>o.jsx(kt,{text:!0,label:"Save",onClick:()=>te(!1)}),onHide:()=>te(!1),children:o.jsx("div",{className:"p-fluid",children:o.jsx(mn,{value:(B==null?void 0:B.customKey)||"",onChange:re=>Te(B,re.target.value)})})}),o.jsx(Xi,{visibilty:w,closeSettingFieldSidebar:Q,...t}),o.jsx("div",{dir:e,className:be(),children:a===i&&A===!0?o.jsx(li,{headerTemplate:n,toggleable:!0,children:o.jsx(lj,{...t,field:u,isPreview:c,userSelectedLanguage:s,fieldIndex:d,pageIndex:h,columnIndex:v,customColumnHeaderTemplate:ae,onSetValuetoPostData:se,setAllFields:re=>P(re),allFields:z,actionHeaderTemplate:Y,actionBodyTemplate:G,addOption:Ce,isFocus:_,inputValue:S,handleFieldSettingsSidebar:J,isAdmin:A})}):o.jsx(lj,{...t,field:u,isPreview:c,userSelectedLanguage:s,fieldIndex:d,pageIndex:h,columnIndex:v,customColumnHeaderTemplate:ae,onSetValuetoPostData:se,setAllFields:re=>P(re),allFields:z,actionHeaderTemplate:Y,actionBodyTemplate:G,addOption:Ce,isFocus:_,inputValue:S,handleFieldSettingsSidebar:J,isAdmin:A})})]})},vSe=t=>{const{customColumn:e,indexes:n,customColumnIndex:r,setAllFields:i,allFields:a}=t,s=l=>{const c={...a};c[`${n==null?void 0:n.rowIndex}-${r}`]=l,i(c)};return o.jsx("div",{children:o.jsx(Sa,{value:a[`${n==null?void 0:n.rowIndex}-${r}`],options:e.options,onChange:l=>s(l.value),optionLabel:"label",placeholder:"Select"})})},uj=t=>{var E,C,_,T,N,O,B;const{field:e,isPreview:n,userSelectedLanguage:r,fieldIndex:i,customColumnHeaderTemplate:a,customColumnRowBodyTemplate:s,setAllFields:l,allFields:c,actionHeaderTemplate:u,actionBodyTemplate:d,isFocus:f,inputValue:h,handleFieldSettingsSidebar:m,isAdmin:g,isRenderView:v}=t,[A,w]=F.useState(!1),x=()=>{w(!0)},S=()=>{w(!1)};return o.jsxs("div",{onMouseOver:x,onMouseOut:S,children:[!v&&!n&&A&&o.jsx(Hr,{handleFieldSettingsSidebar:m,...t}),o.jsxs("div",{className:`field ${n?" ":" builder-element-wrapper "}${(e==null?void 0:e.isFluid)===!0?" card py-3 px-4 p-fluid":"card py-3 px-4"}`,children:[o.jsx("div",{className:"grid",children:o.jsxs("div",{className:n?"col-12 ":"col-11 p-fluid",children:[(e==null?void 0:e.showHeaderText)&&o.jsx("h6",{children:(E=e==null?void 0:e.headerText)==null?void 0:E[r==null?void 0:r.type]}),(e==null?void 0:e.showLabel)&&o.jsxs("label",{htmlFor:i,className:"flex font-medium mb-3 text-700 text-2xl",children:[o.jsx(aa,{...t}),((C=e==null?void 0:e.attributes)==null?void 0:C.required)&&o.jsx("span",{className:"must-required",children:"*"})," ",n?o.jsx(o.Fragment,{children:(_=e==null?void 0:e.label)==null?void 0:_[r==null?void 0:r.type]}):o.jsx(Zi,{...t}),o.jsx("span",{className:"ml-3",children:(e==null?void 0:e.showToolTip)&&o.jsx(Bi,{message:(T=e==null?void 0:e.toolTip)==null?void 0:T[r==null?void 0:r.type],position:"right"})})]}),o.jsxs("div",{className:"mt-3",children:[o.jsxs(Hs,{showGridlines:!0,value:e==null?void 0:e.rows,children:[o.jsx(fr,{frozen:!0,header:"",headerStyle:{textAlign:"left"},bodyStyle:{textAlign:"left",overflow:"visible"},body:M=>s(M)}),e==null?void 0:e.customColumns.map((M,z)=>o.jsx(fr,{header:a(M),headerStyle:{textAlign:"left"},bodyStyle:{textAlign:"left",overflow:"visible"},body:(P,j)=>o.jsx(vSe,{customColumn:M,e:P,indexes:j,customColumnIndex:z,setAllFields:l,allFields:c,...t})},M==null?void 0:M.uuid)),n===!1&&o.jsx(fr,{frozen:!0,header:M=>u(M),body:M=>d(M),headerStyle:{textAlign:"left"},bodyStyle:{textAlign:"left",overflow:"visible"}})]}),o.jsx("div",{children:((N=e==null?void 0:e.attributes)==null?void 0:N.required)&&o.jsx("small",{className:"error",children:f===1&&!h?(O=e==null?void 0:e.validationMesssage)==null?void 0:O.english:""})}),o.jsx("div",{children:(e==null?void 0:e.showHelperText)&&o.jsx("small",{children:(B=e==null?void 0:e.helperText)==null?void 0:B[r==null?void 0:r.type]})})]})]})}),g&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(Ni,{...t})]})]})]})},bSe=(t,e)=>{var Le,Oe;const n=ve=>{const V=ve.collapsed?"pi pi-chevron-down":"pi pi-chevron-up",ne=`${ve.className} justify-content-start`,X=`${ve.titleClassName} pl-1`;return o.jsxs("div",{className:ne,children:[o.jsxs("button",{className:ve.togglerClassName,onClick:ve.onTogglerClick,children:[o.jsx("span",{className:V}),o.jsx(Qt,{})]}),o.jsx("span",{className:X,children:_})]})},{userTaskSubmitFormData:r,TASK_PUBLISHED:i,task_status:a}=br(),{globalAlignment:s,isPreview:l,isAdmin:c}=Zt(),{userSelectedLanguage:u,fieldSettingUpdate:d}=on(),{field:f,fieldIndex:h,sectionIndex:m,pageIndex:g,row:v,rowIndex:A,columnIndex:w}=t,[x,S]=F.useState(!1),[E,C]=F.useState(""),[_]=F.useState((Le=f==null?void 0:f.label)==null?void 0:Le[u==null?void 0:u.type]),[T,N]=F.useState(0),[O,B]=F.useState(!1),[M,z]=F.useState(null),[P,j]=F.useState(null),[de,he]=F.useState({}),te=()=>{var ve,V,ne;if(v!=null&&v.rowIsRepeatable){if(v!=null&&v.repeatableFields){const X=[...v.repeatableFields],oe=Et.findIndex(X,function(fe){return fe.uuid===(f==null?void 0:f.uuid)});oe>=0&&X[oe].fieldData?C(X[oe].fieldData):C("")}}else{const X=r;if(X!=null&&X.length){for(const oe of X)if(oe.fieldId===t.field.uuid&&((ve=oe==null?void 0:oe.postData[0])==null?void 0:ve.postValue)!==""&&((V=oe==null?void 0:oe.postData[0])!=null&&V.postValue)){C((ne=oe==null?void 0:oe.postData[0])==null?void 0:ne.postValue);break}}}B(!0)},G=()=>{const ve=f;ve.customColumns=[...ve.customColumns,{customKey:"Column",uuid:tt(),options:[]}],ue(ve)},[ae,Y]=F.useState(!1),[pe,ie]=F.useState(!1),J=ve=>{var V;return o.jsxs(o.Fragment,{children:[((V=f==null?void 0:f.options)==null?void 0:V.length)>1&&o.jsx(kt,{text:!0,type:"button",icon:"pi pi-trash",rounded:!0,severity:"secondary",onClick:()=>Ce(ve==null?void 0:ve.uuid),"aria-label":"Add Row"}),o.jsx(kt,{text:!0,type:"button",icon:"pi pi-plus",rounded:!0,severity:"secondary",onClick:()=>U(),"aria-label":"Add Row"})]})},Q=ve=>{var V;return o.jsxs(o.Fragment,{children:[ve==null?void 0:ve.customKey,l===!1&&o.jsxs(o.Fragment,{children:[((V=f==null?void 0:f.customColumns)==null?void 0:V.length)>1&&o.jsx("i",{className:"pi pi-trash ml-3",onClick:()=>Te(ve==null?void 0:ve.uuid)}),o.jsx("i",{className:"pi pi-cog ml-3",onClick:()=>{z(ve),Y(!0)}})]})]})},se=()=>o.jsx(o.Fragment,{children:o.jsx(kt,{text:!0,type:"button",icon:"pi pi-plus",rounded:!0,severity:"secondary",onClick:()=>G(),"aria-label":"Add Column"})}),be=ve=>o.jsxs(o.Fragment,{children:[ve==null?void 0:ve.rowHeading,l===!1&&o.jsx(o.Fragment,{children:o.jsx("i",{className:"pi pi-cog ml-3",onClick:()=>{j(ve),ie(!0)}})})]}),Ce=ve=>{const V=f==null?void 0:f.rows.filter(function(X){return(X==null?void 0:X.uuid)!==ve}),ne=f;ne.rows=V,ue(ne)},Te=ve=>{const V=Et.findIndex(f==null?void 0:f.customColumns,oe=>oe.uuid===ve),ne=f==null?void 0:f.customColumns.filter(function(oe,fe){return fe!==V}),X=f;X.customColumns=ne,ue(X)};F.useEffect(()=>{O||te();const ve=Gt.addListener("clearRepeatableFields",X=>{X===(v==null?void 0:v.uuid)&&(C(""),N(0),f.isValid=0,d(g,m,A,w,h,f))}),V=Gt.addListener("OnInvalidFieldCatch",X=>{f.uuid===(X==null?void 0:X.fieldId)?N(1):N(0)}),ne=Gt.addListener("OnGetFieldValue",X=>{var fe;const oe=(fe=X==null?void 0:X.repeatableColumn)==null?void 0:fe.filter(we=>(we==null?void 0:we.fieldUuid)===(f==null?void 0:f.uuid));oe!=null&&oe.length});return()=>{V.remove(),ne.remove(),ve.remove()}});const ye=ve=>{S(ve)},Ae=()=>{S(!1)},re=()=>{let ve="";return l||(ve=ve+" field-form-builder"),a===i&&c===!0&&(ve=ve+" card"),ve},U=()=>{const ve=f;ve.rows=[...ve.rows,{rowHeading:"Row",uuid:tt(),custom_values:{}}],ue(ve)},Z=(ve,V)=>{z(fe=>fe===null?{customKey:V,uuid:""}:{...fe,customKey:V});const ne=f.customColumns,X=ne.findIndex(fe=>fe.uuid===ve.uuid);ne[X]={...ne[X],customKey:V};const oe=f;oe.customColumns=ne,ue(oe)},K=(ve,V)=>{j(fe=>fe===null?{uuid:"",rowHeading:V}:{...fe,rowHeading:V});const ne=f.rows,X=ne.findIndex(fe=>fe.uuid===ve.uuid);ne[X]={...ne[X],rowHeading:V};const oe=f;oe.rows=ne,ue(oe)},ue=ve=>{d(g,m,A,w,h,ve)};function Ee(ve){return ve.toLowerCase().replace(/ /g,"-").replace(/[^\w-]+/g,"")}const ge=(ve,V,ne)=>{const X=f.customColumns,oe=X.findIndex(we=>M&&we.uuid===M.uuid);X[oe].options[ne][V]=ve,X[oe].options[ne].value=Ee(ve);const fe=f;fe.customColumns=X,ue(fe)},me=()=>{const ve=f.customColumns,V=ve.findIndex(X=>M&&X.uuid===M.uuid);ve[V].options.push({label:"",value:"",uuid:tt()});const ne=f;ne.customColumns=ve,ue(ne)};return o.jsxs(o.Fragment,{children:[o.jsxs(ys,{maximizable:!0,header:"Update Column Title",visible:ae,style:{width:"20vw"},footer:()=>o.jsxs(o.Fragment,{children:[" ",o.jsx(kt,{text:!0,label:"Add Option",icon:"pi pi-plus",onClick:()=>me()}),o.jsx(kt,{text:!0,label:"Save",onClick:()=>Y(!1)})]}),onHide:()=>Y(!1),children:[o.jsx("div",{className:"p-fluid",children:o.jsx(mn,{value:(M==null?void 0:M.customKey)||"",onChange:ve=>Z(M,ve.target.value)})}),o.jsx("hr",{}),o.jsx("h5",{children:"Options"}),(M==null?void 0:M.options)&&((Oe=M==null?void 0:M.options)==null?void 0:Oe.length)>0&&(M==null?void 0:M.options.map((ve,V)=>o.jsxs("div",{className:"my-2 flex p-fluid",children:[o.jsx("span",{children:V+1}),o.jsx(mn,{value:(ve==null?void 0:ve.label)||"",className:"ml-2",onChange:ne=>ge(ne.target.value,"label",V)})]},`custom_column_option_${V}`)))]}),o.jsx(ys,{maximizable:!0,header:"Update Row Title",visible:pe,style:{width:"20vw"},footer:()=>o.jsx(kt,{text:!0,label:"Save",onClick:()=>ie(!1)}),onHide:()=>ie(!1),children:o.jsx("div",{className:"p-fluid",children:o.jsx(mn,{value:(P==null?void 0:P.rowHeading)||"",onChange:ve=>K(P,ve.target.value)})})}),o.jsx(Xi,{visibilty:x,closeSettingFieldSidebar:Ae,...t}),o.jsx("div",{dir:s,className:re(),children:a===i&&c===!0?o.jsx(li,{headerTemplate:n,toggleable:!0,children:o.jsx(uj,{ref:e,...t,field:f,isPreview:l,userSelectedLanguage:u,fieldIndex:h,customColumnHeaderTemplate:Q,customColumnRowBodyTemplate:be,setAllFields:he,allFields:de,actionHeaderTemplate:se,actionBodyTemplate:J,isFocus:T,inputValue:E,handleFieldSettingsSidebar:ye,isAdmin:c})}):o.jsx(uj,{ref:e,...t,field:f,isPreview:l,userSelectedLanguage:u,fieldIndex:h,customColumnHeaderTemplate:Q,customColumnRowBodyTemplate:be,setAllFields:he,allFields:de,actionHeaderTemplate:se,actionBodyTemplate:J,isFocus:T,inputValue:E,handleFieldSettingsSidebar:ye,isAdmin:c})})]})},ySe=t=>{const{indexes:e,customColumnIndex:n,allFields:r}=t;return o.jsx("div",{children:o.jsx(mn,{value:r[`${e==null?void 0:e.rowIndex}-${n}`]})})},dj=t=>{var m,g,v,A,w,x,S;const{field:e,isPreview:n,userSelectedLanguage:r,fieldIndex:i,customColumnHeaderTemplate:a,setAllFields:s,allFields:l,actionHeaderTemplate:c,actionBodyTemplate:u,isFocus:d,inputValue:f,isAdmin:h}=t;return o.jsxs("div",{className:`field ${n?" ":" builder-element-wrapper "}${(e==null?void 0:e.isFluid)===!0?" card p-fluid py-6 px-4":"card py-3 px-4"}`,children:[" ",o.jsx("div",{className:"grid",children:o.jsxs("div",{className:"col-12 p-fluid",children:[(e==null?void 0:e.showHeaderText)&&o.jsx("h6",{children:(m=e==null?void 0:e.headerText)==null?void 0:m[r==null?void 0:r.type]}),(e==null?void 0:e.showLabel)&&o.jsxs("label",{htmlFor:i,className:"flex font-medium mb-3 text-700 text-2xl",children:[o.jsx(aa,{...t}),((g=e==null?void 0:e.attributes)==null?void 0:g.required)&&o.jsx("span",{className:"must-required",children:"*"})," ",n?o.jsx(o.Fragment,{children:(v=e==null?void 0:e.label)==null?void 0:v[r==null?void 0:r.type]}):o.jsx(Zi,{path:"",...t}),o.jsx("span",{className:"ml-3",children:(e==null?void 0:e.showToolTip)&&o.jsx(Bi,{message:(A=e==null?void 0:e.toolTip)==null?void 0:A[r==null?void 0:r.type],position:"right"})})]}),o.jsxs("div",{className:"mt-3",style:{backgroundColor:"#0a061a"},children:[o.jsxs(Hs,{scrollable:!0,showGridlines:!0,value:e==null?void 0:e.rows,children:[e==null?void 0:e.customColumns.map((E,C)=>o.jsx(fr,{header:a(E),headerStyle:{textAlign:"left"},bodyStyle:{textAlign:"left",overflow:"visible"},body:(_,T)=>o.jsx(ySe,{customColumn:E,e:_,indexes:T,customColumnIndex:C,setAllFields:s,allFields:l,...t})},E==null?void 0:E.uuid)),n===!1&&o.jsx(fr,{frozen:!0,header:E=>c(E),body:E=>u(E),headerStyle:{textAlign:"left"},bodyStyle:{textAlign:"left",overflow:"visible"}})]}),o.jsx("div",{children:((w=e==null?void 0:e.attributes)==null?void 0:w.required)&&o.jsx("small",{className:"error",children:d===1&&!f?(x=e==null?void 0:e.validationMesssage)==null?void 0:x.english:""})}),o.jsx("div",{children:(e==null?void 0:e.showHelperText)&&o.jsx("small",{children:(S=e==null?void 0:e.helperText)==null?void 0:S[r==null?void 0:r.type]})})]})]})}),h&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(Ni,{...t})]})]})},ASe=t=>{var Oe;const e=ve=>{const V=ve.collapsed?"pi pi-chevron-down":"pi pi-chevron-up",ne=`${ve.className} justify-content-start`,X=`${ve.titleClassName} pl-1`;return o.jsxs("div",{className:ne,children:[o.jsxs("button",{className:ve.togglerClassName,onClick:ve.onTogglerClick,children:[o.jsx("span",{className:V}),o.jsx(Qt,{})]}),o.jsx("span",{className:X,children:_})]})},{userTaskSubmitFormData:n,TASK_PUBLISHED:r,task_status:i}=br(),{userSelectedLanguage:a,fieldSettingUpdate:s}=on(),{globalAlignment:l,isPreview:c,isAdmin:u,isRenderView:d}=Zt(),{field:f,fieldIndex:h,sectionIndex:m,pageIndex:g,row:v,rowIndex:A,columnIndex:w}=t,[x,S]=F.useState(!1),[E,C]=F.useState(""),[_]=F.useState((Oe=f==null?void 0:f.label)==null?void 0:Oe[a==null?void 0:a.type]),[T,N]=F.useState(0),[O,B]=F.useState(!1),[M,z]=F.useState(null),[P,j]=F.useState(null),[de,he]=F.useState({}),[te,G]=F.useState(!1),ae=()=>{var ve,V,ne;if(v!=null&&v.rowIsRepeatable){if(v!=null&&v.repeatableFields){const X=[...v.repeatableFields],oe=Et.findIndex(X,function(fe){return fe.uuid===(f==null?void 0:f.uuid)});oe>=0&&X[oe].fieldData?C(X[oe].fieldData):C("")}}else{const X=n;if(X!=null&&X.length){for(const oe of X)if(oe.fieldId===t.field.uuid&&((ve=oe==null?void 0:oe.postData[0])==null?void 0:ve.postValue)!==""&&((V=oe==null?void 0:oe.postData[0])!=null&&V.postValue)){C((ne=oe==null?void 0:oe.postData[0])==null?void 0:ne.postValue);break}}}B(!0)},Y=()=>{const ve=f;ve.customColumns=[...ve.customColumns,{customKey:"Column",uuid:tt(),options:[]}],ge(ve)},[pe,ie]=F.useState(!1),[J,Q]=F.useState(!1),se=ve=>{var V;return o.jsxs(o.Fragment,{children:[((V=f==null?void 0:f.options)==null?void 0:V.length)>1&&o.jsx(kt,{text:!0,type:"button",icon:"pi pi-trash",rounded:!0,severity:"secondary",onClick:()=>ye(ve==null?void 0:ve.uuid),"aria-label":"Add Row",size:"small"}),o.jsx(kt,{text:!0,type:"button",icon:"pi pi-plus",rounded:!0,severity:"secondary",onClick:()=>K(),"aria-label":"Add Row",size:"small"})]})},be=ve=>{var V;return o.jsxs(o.Fragment,{children:[ve==null?void 0:ve.customKey,c===!1&&o.jsxs(o.Fragment,{children:[((V=f==null?void 0:f.customColumns)==null?void 0:V.length)>1&&o.jsx("i",{className:"pi pi-trash ml-3",onClick:()=>Ae(ve==null?void 0:ve.uuid)}),o.jsx("i",{className:"pi pi-cog ml-3",onClick:()=>{z(ve),ie(!0)}})]})]})},Ce=()=>o.jsx(o.Fragment,{children:o.jsx(kt,{text:!0,type:"button",icon:"pi pi-plus",rounded:!0,severity:"secondary",onClick:()=>Y(),"aria-label":"Add Column"})}),Te=ve=>o.jsxs(o.Fragment,{children:[ve==null?void 0:ve.rowHeading,c===!1&&o.jsx(o.Fragment,{children:o.jsx("i",{className:"pi pi-cog ml-3",onClick:()=>{j(ve),Q(!0)}})})]}),ye=ve=>{const V=f==null?void 0:f.rows.filter(function(X){return(X==null?void 0:X.uuid)!==ve}),ne=f;ne.rows=V,ge(ne)},Ae=ve=>{const V=Et.findIndex(f==null?void 0:f.customColumns,oe=>oe.uuid===ve),ne=f==null?void 0:f.customColumns.filter(function(oe,fe){return fe!==V}),X=f;X.customColumns=ne,ge(X)};F.useEffect(()=>{O||ae();const ve=Gt.addListener("clearRepeatableFields",oe=>{oe===(v==null?void 0:v.uuid)&&(C(""),N(0),f.isValid=0,s(g,m,A,w,h,f))}),V=Gt.addListener("onSubmitUserForm",()=>{}),ne=Gt.addListener("OnInvalidFieldCatch",oe=>{f.uuid===(oe==null?void 0:oe.fieldId)?N(1):N(0)}),X=Gt.addListener("OnGetFieldValue",oe=>{var we;const fe=(we=oe==null?void 0:oe.repeatableColumn)==null?void 0:we.filter(De=>(De==null?void 0:De.fieldUuid)===(f==null?void 0:f.uuid));fe!=null&&fe.length});return()=>{V.remove(),ne.remove(),X.remove(),ve.remove()}});const re=ve=>{S(ve)},U=()=>{S(!1)},Z=()=>{let ve="";return c||(ve=ve+" field-form-builder"),i===r&&u===!0&&(ve=ve+" card"),ve},K=()=>{const ve=f;ve.rows=[...ve.rows,{rowHeading:"Row",uuid:tt(),custom_values:{}}],ge(ve)},ue=(ve,V)=>{z(fe=>fe===null?{customKey:V,uuid:""}:{...fe,customKey:V});const ne=f.customColumns,X=ne.findIndex(fe=>fe.uuid===ve.uuid);ne[X]={...ne[X],customKey:V};const oe=f;oe.customColumns=ne,ge(oe)},Ee=(ve,V)=>{j(fe=>fe===null?{uuid:"",rowHeading:V}:{...fe,rowHeading:V});const ne=f.rows,X=ne.findIndex(fe=>fe.uuid===ve.uuid);ne[X]={...ne[X],rowHeading:V};const oe=f;oe.rows=ne,ge(oe)},ge=ve=>{s(g,m,A,w,h,ve)},me=()=>{G(!0)},Le=()=>{G(!1)};return o.jsxs(o.Fragment,{children:[o.jsx(ys,{maximizable:!0,header:"Update Column Title",visible:pe,style:{width:"20vw"},footer:()=>o.jsx(o.Fragment,{children:o.jsx(kt,{text:!0,label:"Save",onClick:()=>ie(!1)})}),onHide:()=>ie(!1),children:o.jsx("div",{className:"p-fluid",children:o.jsx(mn,{value:(M==null?void 0:M.customKey)||"",onChange:ve=>ue(M,ve.target.value)})})}),o.jsx(ys,{maximizable:!0,header:"Update Row Title",visible:J,style:{width:"20vw"},footer:()=>o.jsx(kt,{text:!0,label:"Save",onClick:()=>Q(!1)}),onHide:()=>Q(!1),children:o.jsx("div",{className:"p-fluid",children:o.jsx(mn,{value:(P==null?void 0:P.rowHeading)||"",onChange:ve=>Ee(P,ve.target.value)})})}),o.jsx(Xi,{visibilty:x,closeSettingFieldSidebar:U,...t}),o.jsx("div",{className:"field-form-builder",children:o.jsxs("div",{onMouseOver:me,onMouseOut:Le,children:[!d&&!c&&te&&o.jsx(Hr,{handleFieldSettingsSidebar:re,...t}),o.jsx("div",{dir:l,className:Z(),children:i===r&&u===!0?o.jsx(li,{headerTemplate:e,toggleable:!0,children:o.jsx(dj,{...t,field:f,isPreview:c,userSelectedLanguage:a,fieldIndex:h,customColumnHeaderTemplate:be,customColumnRowBodyTemplate:Te,setAllFields:he,allFields:de,actionHeaderTemplate:Ce,actionBodyTemplate:se,isFocus:T,inputValue:E,handleFieldSettingsSidebar:re,isAdmin:u})}):o.jsx(dj,{...t,field:f,isPreview:c,userSelectedLanguage:a,fieldIndex:h,customColumnHeaderTemplate:be,customColumnRowBodyTemplate:Te,setAllFields:he,allFields:de,actionHeaderTemplate:Ce,actionBodyTemplate:se,isFocus:T,inputValue:E,handleFieldSettingsSidebar:re,isAdmin:u})})]})})]})},wSe=t=>{var U,Z,K,ue,Ee,ge,me,Le,Oe,ve,V;const{task_status:e,taskRegisterData:n,updateTaskRegisterData:r,updateTaskProgressValue:i,userTaskSubmitFormData:a,updateUserFormDataSubmit:s,TASK_PUBLISHED:l}=br(),[c,u]=F.useState([]),{field:d,fieldIndex:f,row:h,pageIndex:m,sectionIndex:g,section:v,page:A,rowIndex:w,columnIndex:x,path:S,update:E,value:C}=t,{isRenderView:_,isAdmin:T,isPreview:N}=Zt(),{userSelectedLanguage:O}=on(),[B,M]=F.useState(!1),[z,P]=F.useState(""),[j,de]=F.useState(0),[he,te]=F.useState(!1),[G,ae]=F.useState(!1),Y=()=>{ae(!0)},pe=()=>{ae(!1)},ie=ne=>{M(ne)},J=()=>{M(!1)};F.useEffect(()=>((d==null?void 0:d.dataSourceType)==="custom"&&u(d==null?void 0:d.options),d==null||d.dataSourceType,()=>{}));const Q=()=>{var X,oe,fe,we;let ne=null;if(h!=null&&h.rowIsRepeatable){if(h!=null&&h.repeatableFields){const De=[...h.repeatableFields],$e=Et.findIndex(De,function(ct){return ct.uuid===(d==null?void 0:d.uuid)});$e>=0&&De[$e].fieldData?(ne=De[$e].fieldData,P(De[$e].fieldData)):(d.isValid=0,P(""))}}else{const De=a,$e=Et.cloneDeep(n);if(De!=null&&De.length){for(const ct of De)if(ct.fieldId===t.field.uuid&&((X=ct==null?void 0:ct.postData)!=null&&X.length)){ne=(oe=ct==null?void 0:ct.postData[0])==null?void 0:oe.postValue,P((fe=ct==null?void 0:ct.postData[0])==null?void 0:fe.postValue),$e[d==null?void 0:d.uuid]=(we=ct==null?void 0:ct.postData[0])==null?void 0:we.postValue;const Nt=Object.keys($e).length;i(Nt);break}}}P(ne),setTimeout(()=>{te(!0)},2e3)};F.useEffect(()=>{!he&&(a==null?void 0:a.length)>0&&Q();const ne=Gt.addListener("clearRepeatableFields",fe=>{fe===(h==null?void 0:h.uuid)&&(P(""),de(0),d.isValid=1)}),X=Gt.addListener("onSubmitUserForm",()=>{var fe;(fe=d==null?void 0:d.attributes)!=null&&fe.required?z?d.isValid=1:d.isValid=0:d.isValid=1}),oe=Gt.addListener("OnInvalidFieldCatch",fe=>{d.uuid===(fe==null?void 0:fe.fieldId)?de(1):de(0)});return()=>{X.remove(),oe.remove(),ne.remove()}});const se=(ne,X)=>{var oe;if(a){const fe=[...a],we=Et.findIndex(fe,function($e){return $e.rowId===(h==null?void 0:h.uuid)});let De=(oe=a[we])==null?void 0:oe.repeatableFields;De={...De,[ne==null?void 0:ne.uuid]:X},fe[we]={...fe[we],repeatableFields:De},s(fe)}P(X),X?ne.isValid=1:ne.isValid=0},be=ne=>{var X;P(ne.target.value),h!=null&&h.rowIsRepeatable?se(d,(X=ne==null?void 0:ne.target)==null?void 0:X.value):Ae(ne.target.value)},Ce=()=>(d==null?void 0:d.dataSourceType)==="custom"?`optionText.${O.type}`:(d==null?void 0:d.dataSourceType)==="database"?`${d==null?void 0:d.optionLabel}`:"",Te=()=>(d==null?void 0:d.dataSourceType)==="custom"?`optionText.${O.type}`:(d==null?void 0:d.dataSourceType)==="database"?`${d==null?void 0:d.optionLabel}`:"",ye=()=>{var ne,X,oe;if(((ne=d==null?void 0:d.fieldType)==null?void 0:ne.type)==="radio"){const fe=[];return c.map((we,De)=>{var ct,Nt,at,St;const $e=z;fe.push(o.jsxs("div",{className:"field-radiobutton field-radiobutton-builder",onClick:()=>{be({value:we,target:{value:we}})},style:($e==null?void 0:$e.uuid)===(we==null?void 0:we.uuid)?{backgroundColor:"#0F8BFD",padding:15,borderRadius:8}:{padding:15},children:[o.jsx(Ji,{onFocus:()=>de(1),inputId:`radio-option-${De}-${we==null?void 0:we.uuid}-${N?"preview":"builder-radio"}`,onChange:st=>{be(st)},value:we,name:`radio-option-${De}-${we==null?void 0:we.uuid}-${N?"preview":"builder"}`,checked:($e==null?void 0:$e.uuid)===(we==null?void 0:we.uuid),disabled:e===l}),((ct=we==null?void 0:we.hyperlinkText)==null?void 0:ct[O==null?void 0:O.type])===""?o.jsx("label",{htmlFor:`radio-option-${De}-${we==null?void 0:we.uuid}-${N?"preview":"builder"}`,children:(Nt=we==null?void 0:we.optionText)==null?void 0:Nt[O==null?void 0:O.type]}):o.jsx("label",{children:o.jsx("a",{href:(at=we==null?void 0:we.hyperlinkText)==null?void 0:at[O==null?void 0:O.type],target:"_blank",rel:"noreferrer",children:(St=we==null?void 0:we.optionText)==null?void 0:St[O==null?void 0:O.type]})})]},De))}),fe}if(((X=d==null?void 0:d.fieldType)==null?void 0:X.type)==="dropdown")return o.jsx(Sa,{onFocus:()=>de(1),onChange:fe=>{h!=null&&h.rowIsRepeatable?se(d,fe.target.value):Ae(fe.target.value)},options:c,optionLabel:Te(),optionValue:Ce(),value:z,placeholder:(oe=d==null?void 0:d.placeholder)==null?void 0:oe[O==null?void 0:O.type],disabled:e===l})},Ae=ne=>{var fe,we;P(ne.target.value);const X=a,oe=Et.cloneDeep(n);if(X!==null){if((fe=ne==null?void 0:ne.target)!=null&&fe.value){if(oe[d==null?void 0:d.uuid]=(we=ne==null?void 0:ne.target)==null?void 0:we.value,(X==null?void 0:X.length)>0)for(const De of X)De.fieldId===t.field.uuid&&(De.postData[0]={postValue:ne.target.value})}else if(delete oe[d==null?void 0:d.uuid],(X==null?void 0:X.length)>0)for(const De of X)De.fieldId===t.field.uuid&&(De.postData[0]={postValue:""})}if(!(h!=null&&h.rowIsRepeatable)){r(oe);const De=Object.keys(oe).length;i(De)}},re=o.jsxs("div",{onMouseOver:Y,onMouseOut:pe,children:[!_&&!N&&G&&o.jsx(Hr,{handleFieldSettingsSidebar:ie,...t}),o.jsx("div",{className:`field-${(d==null?void 0:d.isFluid)===!0?" card py-3 px-4 p-fluid":"card py-3 px-4"}`,children:o.jsxs("div",{className:"grid",children:[o.jsxs("div",{className:"col-12",children:[(d==null?void 0:d.showHeaderText)&&o.jsx("h6",{children:(U=d==null?void 0:d.headerText)==null?void 0:U[O==null?void 0:O.type]}),(d==null?void 0:d.showLabel)&&o.jsxs("label",{htmlFor:f,className:"flex font-medium mb-5 text-700 text-2xl",children:[o.jsx(aa,{sectionIndex:g,fieldIndex:f,field:d,update:E,value:C}),((Z=d==null?void 0:d.attributes)==null?void 0:Z.required)&&o.jsx("span",{className:"must-required mr-1",children:"*"})," ",N?o.jsx(o.Fragment,{children:(K=d==null?void 0:d.label)==null?void 0:K[O==null?void 0:O.type]}):o.jsx(Zi,{...t}),o.jsx("span",{className:"ml-3",children:d!=null&&d.showToolTip?o.jsx(o.Fragment,{children:o.jsx(Bi,{message:(ue=d==null?void 0:d.toolTip)==null?void 0:ue[O==null?void 0:O.type],position:"right"})}):""})]}),ye(),o.jsx("div",{children:((Ee=d==null?void 0:d.attributes)==null?void 0:Ee.required)&&o.jsx("small",{className:"error",children:j===1&&!z?(ge=d==null?void 0:d.validationMesssage)==null?void 0:ge.language:""})}),o.jsx("div",{children:(d==null?void 0:d.showHelperText)&&o.jsx("small",{children:(me=d==null?void 0:d.helperText)==null?void 0:me[O==null?void 0:O.type]})}),((Le=d==null?void 0:d.inlineConditionalRules)==null?void 0:Le.rules.length)>0&&N===!1&&o.jsx("p",{children:"Inline conditional rules"}),he===!0&&((ve=(Oe=d==null?void 0:d.inlineConditionalRules)==null?void 0:Oe.rules)==null?void 0:ve.length)>0&&((V=d==null?void 0:d.inlineConditionalRules)==null?void 0:V.rules.map((ne,X)=>{const oe=z;return N===!0?o.jsx("div",{children:ne==null?void 0:ne.conditions.map((fe,we)=>o.jsx(F.Fragment,{children:o.jsx(e0,{isConditionTrue:(oe==null?void 0:oe.value)==fe.value||!N,inputValue:z,condition:fe,ruleIndex:X,conditionIndex:we,field:d,section:v,page:A,row:h,pageIndex:m,sectionIndex:g,rowIndex:w,columnIndex:x,path:S,...t})},`select-rule-${X}-`+we))},`rule-${X}`):o.jsx(li,{className:"mt-4",header:`Rule ${X+1}`,children:o.jsx("div",{children:ne==null?void 0:ne.conditions.map((fe,we)=>o.jsx(F.Fragment,{children:o.jsx(e0,{isConditionTrue:(oe==null?void 0:oe.value)===fe.value||!N,inputValue:z,condition:fe,ruleIndex:X,conditionIndex:we,isPreview:N,field:d,section:v,page:A,row:h,pageIndex:m,sectionIndex:g,rowIndex:w,columnIndex:x,path:S,...t})},`select-rule-${X}-`+we))},`rule-${X}`)},X)}))]}),T&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(Ni,{...t})]})]})})]});return o.jsxs(o.Fragment,{children:[B===!0&&o.jsx(Xi,{visibilty:B,closeSettingFieldSidebar:J,...t},d==null?void 0:d.uuid),o.jsx(wi,{...t,fieldWrap:re})]})},SSe=t=>{var j,de,he,te;const{taskRegisterData:e,updateTaskRegisterData:n,updateTaskProgressValue:r,userTaskSubmitFormData:i}=br(),{field:a,row:s}=t,{isPreview:l,isRenderView:c,isAdmin:u}=Zt(),{userSelectedLanguage:d}=on(),[f,h]=F.useState(!1),[m,g]=F.useState(""),[v,A]=F.useState(0),[w,x]=F.useState(!1),[S,E]=F.useState(!1),C=()=>{E(!0)},_=()=>{E(!1)},T=G=>{h(G)},N=()=>{h(!1)},O=()=>{var ae,Y,pe,ie;let G=null;if(s!=null&&s.rowIsRepeatable){if(s!=null&&s.repeatableFields){const J=[...s.repeatableFields],Q=Et.findIndex(J,function(se){return se.uuid===(a==null?void 0:a.uuid)});Q>=0&&J[Q].fieldData?(G=J[Q].fieldData,g(J[Q].fieldData)):(a.isValid=0,g(""))}}else{const J=i,Q=Et.cloneDeep(e);if(J!=null&&J.length){for(const se of J)if(se.fieldId===t.field.uuid&&((ae=se==null?void 0:se.postData)!=null&&ae.length)){G=(Y=se==null?void 0:se.postData[0])==null?void 0:Y.postValue,g((pe=se==null?void 0:se.postData[0])==null?void 0:pe.postValue),Q[a==null?void 0:a.uuid]=(ie=se==null?void 0:se.postData[0])==null?void 0:ie.postValue;const be=Object.keys(Q).length;r(be);break}}}g(G),setTimeout(()=>{x(!0)},2e3)};F.useEffect(()=>{w||O();const G=Gt.addListener("clearRepeatableFields",pe=>{pe===(s==null?void 0:s.uuid)&&(g(""),A(0),a.isValid=1)}),ae=Gt.addListener("onSubmitUserForm",()=>{var pe;if((pe=a==null?void 0:a.attributes)!=null&&pe.required){const ie=m;ie!=null&&ie[a.uuid]?a.isValid=1:a.isValid=0}else a.isValid=1}),Y=Gt.addListener("OnInvalidFieldCatch",pe=>{a.uuid===(pe==null?void 0:pe.fieldId)?A(1):A(0)});return()=>{ae.remove(),Y.remove(),G.remove()}});const B=(G,ae,Y,pe,ie)=>pe==null?void 0:pe.map(J=>{var Q,se;return{...J,children:J!=null&&J.children&&((Q=J==null?void 0:J.children)==null?void 0:Q.length)>0?[...((se=J==null?void 0:J.children)==null?void 0:se.map(be=>ae===(J==null?void 0:J.uuid)||ie===!0?(Y!=null&&Y[be==null?void 0:be.uuid]&&delete Y[be==null?void 0:be.uuid],{...be,options:B(G,ae,Y,(be==null?void 0:be.options)||[],!0)}):{...be,options:B(G,ae,Y,(be==null?void 0:be.options)||[],!1)}))||[]]:[]}}),M=(G,ae)=>{const Y={...m};B(G,ae,Y,a==null?void 0:a.options,!1),Y[G]=ae,g(Y),s!=null&&s.rowIsRepeatable||z(Y)},z=G=>{const ae=i,Y=Et.cloneDeep(e);if(ae!==null){if(G){if(Y[a==null?void 0:a.uuid]=G,(ae==null?void 0:ae.length)>0)for(const pe of ae)pe.fieldId===t.field.uuid&&(pe.postData[0]={postValue:G})}else if(delete Y[a==null?void 0:a.uuid],(ae==null?void 0:ae.length)>0)for(const pe of ae)pe.fieldId===t.field.uuid&&(pe.postData[0]={postValue:""})}if(!(s!=null&&s.rowIsRepeatable)){n(Y);const pe=Object.keys(Y).length;r(pe)}},P=o.jsxs("div",{onMouseOver:C,onMouseOut:_,children:[!c&&!l&&S&&o.jsx(Hr,{handleFieldSettingsSidebar:T,...t}),o.jsx("div",{className:`field-${(a==null?void 0:a.isFluid)===!0?" card py-3 px-4 p-fluid":"card py-3 px-4"}`,children:o.jsxs("div",{className:"grid",children:[o.jsxs("div",{className:"col-12",children:[(a==null?void 0:a.showHeaderText)&&o.jsx("h6",{children:(j=a==null?void 0:a.headerText)==null?void 0:j[d==null?void 0:d.type]}),o.jsx(yb,{...t,isFirst:!0,isPreview:l,schema:a,field:a,value:m,update:(G,ae)=>{M(G,ae)}}),o.jsx("div",{children:((de=a==null?void 0:a.attributes)==null?void 0:de.required)&&o.jsx("small",{className:"error",children:v===1&&!m?(he=a==null?void 0:a.validationMesssage)==null?void 0:he.english:""})}),o.jsx("div",{children:(a==null?void 0:a.showHelperText)&&o.jsx("small",{children:(te=a==null?void 0:a.helperText)==null?void 0:te[d==null?void 0:d.type]})})]}),u&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(Ni,{...t})]})]})})]});return o.jsxs(o.Fragment,{children:[o.jsx(Xi,{visibilty:f,closeSettingFieldSidebar:N,...t},a==null?void 0:a.uuid),o.jsx(wi,{...t,fieldWrap:P})]})},xSe=t=>{var Q,se,be,Ce,Te,ye,Ae,re,U,Z;const{field:e,fieldIndex:n,sectionIndex:r,pageIndex:i,row:a,rowIndex:s,columnIndex:l}=t,{isRenderView:c,isAdmin:u,isPreview:d}=Zt(),{taskRegisterData:f,updateTaskRegisterData:h,updateTaskProgressValue:m,updateUserFormDataSubmit:g,userTaskSubmitFormData:v,task_status:A,TASK_PUBLISHED:w}=br(),[x,S]=F.useState(!1),{userSelectedLanguage:E,fieldSettingUpdate:C}=on(),[_,T]=F.useState(!1),[N,O]=F.useState(0),[B,M]=F.useState(),[z,P]=F.useState(!1),j=()=>{P(!0)},de=()=>{P(!1)},he=[{icon:"pi pi-thumbs-up",thumbValue:"up"},{icon:"pi pi-thumbs-down",thumbValue:"down"}],te=K=>o.jsx("span",{className:"m-2",children:o.jsx("i",{style:{fontSize:30},className:K.icon})}),G=()=>{var K,ue,Ee;if(a!=null&&a.rowIsRepeatable){if(a!=null&&a.repeatableFields){const ge=[...a.repeatableFields],me=Et.findIndex(ge,function(Le){return Le.uuid===(e==null?void 0:e.uuid)});me>=0&&ge[me].fieldData?M(ge[me].fieldData):M("")}}else{const ge=v;if(ge!=null&&ge.length){for(const me of ge)if(me.fieldId===t.field.uuid&&((K=me==null?void 0:me.postData[0])==null?void 0:K.postValue)!==""&&((ue=me==null?void 0:me.postData[0])!=null&&ue.postValue)){M((Ee=me==null?void 0:me.postData[0])==null?void 0:Ee.postValue);break}}}T(!0)};F.useEffect(()=>{_||G();const K=Gt.addListener("clearRepeatableFields",me=>{me===(a==null?void 0:a.uuid)&&(M(""),O(0),e.isValid=0,C(i,r,s,l,n,e))}),ue=Gt.addListener("onSubmitUserForm",()=>{var me;(me=e==null?void 0:e.attributes)!=null&&me.required?B?e.isValid=1:e.isValid=0:e.isValid=1}),Ee=Gt.addListener("OnInvalidFieldCatch",me=>{e.uuid===(me==null?void 0:me.fieldId)?O(1):O(0)}),ge=Gt.addListener("OnGetFieldValue",me=>{var Oe;const Le=(Oe=me==null?void 0:me.repeatableColumn)==null?void 0:Oe.filter((ve,V)=>(ve==null?void 0:ve.fieldUuid)===(e==null?void 0:e.uuid));Le!=null&&Le.length});return()=>{ue.remove(),Ee.remove(),ge.remove(),K.remove()}});const ae=K=>{M(K.value);const ue=v,Ee=Et.cloneDeep(f);if(ue!==null){if(K!=null&&K.value){if(Ee[e==null?void 0:e.uuid]=K==null?void 0:K.value,(ue==null?void 0:ue.length)>0)for(const ge of ue)ge.fieldId===t.field.uuid&&(ge.postData[0]={postValue:K.value})}else if(delete Ee[e==null?void 0:e.uuid],(ue==null?void 0:ue.length)>0)for(const ge of ue)ge.fieldId===t.field.uuid&&(ge.postData[0]={postValue:""})}if(!(a!=null&&a.rowIsRepeatable)){h(Ee);const ge=Object.keys(Ee).length;m(ge)}},Y=(K,ue)=>{var Ee;if(v){const ge=[...v],me=Et.findIndex(ge,function(Oe){return Oe.rowId===(a==null?void 0:a.uuid)});let Le=(Ee=v[me])==null?void 0:Ee.repeatableFields;Le={...Le,[K==null?void 0:K.uuid]:ue},ge[me]={...ge[me],repeatableFields:Le},g(ge)}M(ue),ue!==""?K.isValid=1:K.isValid=0},pe=K=>{S(K)},ie=()=>{S(!1)},J=o.jsxs("div",{onMouseOver:j,onMouseOut:de,children:[!c&&!d&&z&&o.jsx(Hr,{handleFieldSettingsSidebar:pe,...t}),o.jsx("div",{className:`field ${d?" ":" builder-element-wrapper "}${(e==null?void 0:e.isFluid)===!0?" card py-3 px-4 p-fluid":"card py-3 px-4"}`,children:o.jsxs("div",{className:"grid",children:[o.jsxs("div",{className:u?"col-6 ":"col-12 p-fluid",children:[(e==null?void 0:e.showHeaderText)&&o.jsx("h6",{children:(Q=e==null?void 0:e.headerText)==null?void 0:Q[E==null?void 0:E.type]}),(e==null?void 0:e.showLabel)&&o.jsxs("label",{htmlFor:n,className:"flex font-medium mb-3 text-700 text-2xl",children:[o.jsx(aa,{...t}),((se=e==null?void 0:e.attributes)==null?void 0:se.required)&&o.jsx("span",{className:"must-required mr-1",children:"*"})," ",d?o.jsx(o.Fragment,{children:(be=e==null?void 0:e.label)==null?void 0:be[E==null?void 0:E.type]}):o.jsx(Zi,{...t}),o.jsx("span",{className:"ml-3",children:(e==null?void 0:e.showToolTip)&&o.jsx(Bi,{message:(Ce=e==null?void 0:e.toolTip)==null?void 0:Ce[E==null?void 0:E.type],position:"right"})})]}),o.jsxs("span",{className:"p-input-icon-"+(e==null?void 0:e.iconAlignment),children:[(e==null?void 0:e.showIcon)&&o.jsx("i",{className:"pi pi-"+((ye=(Te=e==null?void 0:e.icon)==null?void 0:Te.properties)==null?void 0:ye.name)}),o.jsx("div",{className:"card flex justify-content-start",children:o.jsx(q0,{value:B,onChange:K=>{M(K.value),a!=null&&a.rowIsRepeatable?Y(e,K.value):ae(K)},itemTemplate:te,optionLabel:"value",onFocus:()=>O(1),options:he,readOnly:A===w,className:N===1&&((Ae=e==null?void 0:e.attributes)!=null&&Ae.required)?B?"valid":"invalid":"valid'"})})]}),o.jsx("div",{children:((re=e==null?void 0:e.attributes)==null?void 0:re.required)&&o.jsx(o.Fragment,{children:o.jsx("small",{className:"error",children:N===1&&!B?(U=e==null?void 0:e.validationMesssage)==null?void 0:U.english:""})})}),o.jsx("div",{children:(e==null?void 0:e.showHelperText)&&o.jsx("small",{children:(Z=e==null?void 0:e.helperText)==null?void 0:Z[E==null?void 0:E.type]})})]}),u&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(Ni,{...t})]})]})})]});return o.jsxs(o.Fragment,{children:[o.jsx(Xi,{visibilty:x,closeSettingFieldSidebar:ie,...t}),o.jsx(wi,{...t,fieldWrap:J})]})},CSe=t=>{var ie,J,Q,se,be,Ce,Te;const{taskRegisterData:e,updateTaskRegisterData:n,updateTaskProgressValue:r,updateUserFormDataSubmit:i,userTaskSubmitFormData:a}=br(),{userSelectedLanguage:s,fieldSettingUpdate:l}=on(),{field:c,fieldIndex:u,sectionIndex:d,pageIndex:f,row:h,rowIndex:m,columnIndex:g}=t,{isRenderView:v,isAdmin:A,isPreview:w}=Zt(),[x,S]=F.useState(!1),[E,C]=F.useState(""),[_,T]=F.useState(0),[N,O]=F.useState(!1),[B,M]=F.useState(!1),z=()=>{M(!0)},P=()=>{M(!1)},j=()=>{var ye,Ae,re;if(h!=null&&h.rowIsRepeatable){if(h!=null&&h.repeatableFields){const U=[...h.repeatableFields],Z=Et.findIndex(U,function(K){return K.uuid===(c==null?void 0:c.uuid)});Z>=0&&U[Z].fieldData?C(U[Z].fieldData):C("")}}else{const U=a;if(U!=null&&U.length){for(const Z of U)if(Z.fieldId===t.field.uuid&&((ye=Z==null?void 0:Z.postData[0])==null?void 0:ye.postValue)!==""&&((Ae=Z==null?void 0:Z.postData[0])!=null&&Ae.postValue)){C((re=Z==null?void 0:Z.postData[0])==null?void 0:re.postValue);break}}}O(!0)};F.useEffect(()=>{N||j();const ye=Gt.addListener("clearRepeatableFields",Z=>{Z===(h==null?void 0:h.uuid)&&(C(""),T(0),c.isValid=0,l(f,d,m,g,u,c))}),Ae=Gt.addListener("onSubmitUserForm",()=>{var Z;(Z=c==null?void 0:c.attributes)!=null&&Z.required?E?c.isValid=1:c.isValid=0:c.isValid=1}),re=Gt.addListener("OnInvalidFieldCatch",Z=>{c.uuid===(Z==null?void 0:Z.fieldId)?T(1):T(0)}),U=Gt.addListener("OnGetFieldValue",Z=>{var ue;const K=(ue=Z==null?void 0:Z.repeatableColumn)==null?void 0:ue.filter(Ee=>(Ee==null?void 0:Ee.fieldUuid)===(c==null?void 0:c.uuid));K!=null&&K.length});return()=>{Ae.remove(),re.remove(),U.remove(),ye.remove()}});const de=ye=>{S(ye)},he=()=>{S(!1)},te=ye=>{var U,Z;C(ye.target.value);const Ae=a,re=Et.cloneDeep(e);if(Ae!==null){if((U=ye==null?void 0:ye.target)!=null&&U.value){if(re[c==null?void 0:c.uuid]=(Z=ye==null?void 0:ye.target)==null?void 0:Z.value,(Ae==null?void 0:Ae.length)>0)for(const K of Ae)K.fieldId===t.field.uuid&&(K.postData[0]={postValue:ye.target.value})}else if(delete re[c==null?void 0:c.uuid],(Ae==null?void 0:Ae.length)>0)for(const K of Ae)K.fieldId===t.field.uuid&&(K.postData[0]={postValue:""})}if(!(h!=null&&h.rowIsRepeatable)){n(re);const K=Object.keys(re).length;r(K)}},G=(ye,Ae,re,U)=>{var Z;if(a){const K=[...a],ue=Et.findIndex(K,function(ge){return ge.rowId===(h==null?void 0:h.uuid)});let Ee=(Z=a[ue])==null?void 0:Z.repeatableFields;Ee={...Ee,[re==null?void 0:re.uuid]:U},K[ue]={...K[ue],repeatableFields:Ee},i(K)}C(U),U!==""?re.isValid=1:re.isValid=0},ae=5,Y=()=>{const ye=[],Ae=[PE,kE,ME,NE,FE],re=["Awful","Not Very Good","Okay","Really Good","Fantastic"];for(let U=0;U<ae;U++)ye.push(o.jsxs("label",{children:[o.jsx("input",{onChange:Z=>{h!=null&&h.rowIsRepeatable?G(f,d,c,Z.target.value):te(Z)},checked:parseInt(E)===U,name:"liker-Emoji-scale"+(c==null?void 0:c.uuid),type:"radio",value:U}),o.jsxs("span",{className:"grid m-0",children:[o.jsx("div",{className:"col-12 flex justify-content-center",children:o.jsx("img",{src:Ae[U]})}),o.jsx("div",{children:re[U]})]})]},`field-${c==null?void 0:c.uuid}-likertEmojiScale-${U} ${parseInt(E)===U?"scale-selected":""}`));return ye},pe=o.jsxs("div",{onMouseOver:z,onMouseOut:P,children:[!v&&!w&&B&&o.jsx(Hr,{handleFieldSettingsSidebar:de,...t}),o.jsxs("div",{className:`field ${w?" ":" builder-element-wrapper "}${(c==null?void 0:c.isFluid)===!0?" card py-3 px-4 p-fluid":"card py-3 px-4"}`,children:[o.jsx("div",{className:"grid",children:o.jsxs("div",{className:"col-12 ",children:[(c==null?void 0:c.showHeaderText)&&o.jsx("h6",{children:(ie=c==null?void 0:c.headerText)==null?void 0:ie[s==null?void 0:s.type]}),(c==null?void 0:c.showLabel)&&o.jsxs("label",{htmlFor:`label${u}`,className:"flex font-medium mb-3 text-700 text-2xl",children:[o.jsx(aa,{...t}),((J=c==null?void 0:c.attributes)==null?void 0:J.required)&&o.jsx("span",{className:"must-required mr-1",children:"*"})," ",w?o.jsx(o.Fragment,{children:(Q=c==null?void 0:c.label)==null?void 0:Q[s==null?void 0:s.type]}):o.jsx(Zi,{...t}),o.jsx("span",{className:"ml-3",children:(c==null?void 0:c.showToolTip)&&o.jsx(Bi,{message:(se=c==null?void 0:c.toolTip)==null?void 0:se[s==null?void 0:s.type],position:"right"})})]}),o.jsxs("div",{className:"mt-3",children:[o.jsx("div",{children:o.jsx("div",{className:"emoji",children:Y()})}),o.jsx("div",{children:((be=c==null?void 0:c.attributes)==null?void 0:be.required)&&o.jsx("small",{className:"error",children:_===1&&!E?(Ce=c==null?void 0:c.validationMesssage)==null?void 0:Ce.english:""})}),o.jsx("div",{children:(c==null?void 0:c.showHelperText)&&o.jsx("small",{children:(Te=c==null?void 0:c.helperText)==null?void 0:Te[s==null?void 0:s.type]})})]})]})}),A&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(Ni,{...t})]})]})]});return o.jsxs(o.Fragment,{children:[o.jsx(Xi,{visibilty:x,closeSettingFieldSidebar:he,...t}),o.jsx(wi,{...t,fieldWrap:pe})]})},TSe=t=>{var j,de,he,te,G,ae,Y,pe,ie,J,Q;const{userTaskSubmitFormData:e}=br(),{userSelectedLanguage:n,fieldSettingUpdate:r}=on(),{isPreview:i,isAdmin:a,isRenderView:s}=Zt(),{field:l,fieldIndex:c,sectionIndex:u,pageIndex:d,row:f,rowIndex:h,columnIndex:m}=t,[g,v]=F.useState(!1),[A,w]=F.useState(""),[x,S]=F.useState(0),[E,C]=F.useState(!1),[_,T]=F.useState(!1),N=()=>{T(!0)},O=()=>{T(!1)},B=()=>{var se,be,Ce;if(f!=null&&f.rowIsRepeatable){if(f!=null&&f.repeatableFields){const Te=[...f.repeatableFields],ye=Et.findIndex(Te,function(Ae){return Ae.uuid===(l==null?void 0:l.uuid)});ye>=0&&Te[ye].fieldData?w(Te[ye].fieldData):w("")}}else{const Te=e;if(Te!=null&&Te.length){for(const ye of Te)if(ye.fieldId===t.field.uuid&&((se=ye==null?void 0:ye.postData[0])==null?void 0:se.postValue)!==""&&((be=ye==null?void 0:ye.postData[0])!=null&&be.postValue)){w((Ce=ye==null?void 0:ye.postData[0])==null?void 0:Ce.postValue);break}}}C(!0)};F.useEffect(()=>{E||B();const se=Gt.addListener("clearRepeatableFields",ye=>{ye===(f==null?void 0:f.uuid)&&(w(""),S(0),l.isValid=0,r(d,u,h,m,c,l))}),be=Gt.addListener("onSubmitUserForm",()=>{var ye,Ae;(ye=l==null?void 0:l.attributes)!=null&&ye.required?A&&(A==null?void 0:A.length)<((Ae=l==null?void 0:l.attributes)==null?void 0:Ae.minLength)?l.isValid=1:l.isValid=0:l.isValid=1}),Ce=Gt.addListener("OnInvalidFieldCatch",ye=>{l.uuid===(ye==null?void 0:ye.fieldId)?S(1):S(0)}),Te=Gt.addListener("OnGetFieldValue",ye=>{var re;const Ae=(re=ye==null?void 0:ye.repeatableColumn)==null?void 0:re.filter(U=>(U==null?void 0:U.fieldUuid)===(l==null?void 0:l.uuid));Ae!=null&&Ae.length});return()=>{be.remove(),Ce.remove(),Te.remove(),se.remove()}});const M=se=>{v(se)},z=()=>{v(!1)},P=o.jsxs("div",{onMouseOver:N,onMouseOut:O,children:[!s&&!i&&_&&o.jsx(Hr,{handleFieldSettingsSidebar:M,...t}),o.jsxs("div",{className:`field ${i?" ":" builder-element-wrapper "}${(l==null?void 0:l.isFluid)===!0?" card p-fluid ":"card"} ${s?" ":" py-6 px-4 "}`,children:[o.jsx("div",{className:"grid",children:o.jsxs("div",{className:a?"col-6 ":"col-12 p-fluid",children:[(l==null?void 0:l.showHeaderText)&&o.jsx("h6",{children:(j=l==null?void 0:l.headerText)==null?void 0:j[n==null?void 0:n.type]}),(l==null?void 0:l.showLabel)&&o.jsxs("label",{htmlFor:c,className:"flex font-medium mb-3 text-700 text-2xl",children:[o.jsx(aa,{...t}),((de=l==null?void 0:l.attributes)==null?void 0:de.required)&&o.jsx("span",{className:"must-required mr-1",children:"*"})," ",i?o.jsx(o.Fragment,{children:(he=l==null?void 0:l.label)==null?void 0:he[n==null?void 0:n.type]}):o.jsx(Zi,{...t}),(l==null?void 0:l.showToolTip)&&o.jsx("span",{className:"ml-3",children:o.jsx(Bi,{message:(te=l==null?void 0:l.toolTip)==null?void 0:te[n==null?void 0:n.type],position:"right"})})]}),o.jsxs("div",{className:"mt-3",children:[o.jsx("span",{className:"p-input-icon-"+(l==null?void 0:l.iconAlignment),children:(l==null?void 0:l.showIcon)&&o.jsx("i",{className:"pi pi-"+((ae=(G=l==null?void 0:l.icon)==null?void 0:G.properties)==null?void 0:ae.name)})}),o.jsx("div",{children:((Y=l==null?void 0:l.attributes)==null?void 0:Y.required)&&o.jsxs(o.Fragment,{children:[o.jsx("small",{className:"error",children:x===1&&!A?(pe=l==null?void 0:l.validationMesssage)==null?void 0:pe.english:""}),o.jsx("small",{className:"error",children:x===1&&(A==null?void 0:A.length)<((ie=l==null?void 0:l.attributes)==null?void 0:ie.minLength)?`Mini length ${(J=l==null?void 0:l.attributes)==null?void 0:J.minLength}`:""})]})}),o.jsx("div",{children:(l==null?void 0:l.showHelperText)&&o.jsx("small",{children:(Q=l==null?void 0:l.helperText)==null?void 0:Q[n==null?void 0:n.type]})})]})]})}),a&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(Ni,{...t})]})]})]});return o.jsxs(o.Fragment,{children:[o.jsx(Xi,{visibilty:g,closeSettingFieldSidebar:z,...t}),o.jsx(wi,{...t,fieldWrap:P})]})},ESe=t=>{var z,P,j,de,he,te,G;const{field:e,fieldIndex:n,columnIndex:r,sectionIndex:i,rowIndex:a,pageIndex:s,ref:l}=t,{isPreview:c}=Zt(),{userSelectedLanguage:u,fieldSettingUpdate:d}=on(),{userTaskSubmitFormData:f}=br(),[h,m]=F.useState(!1),[g,v]=F.useState(""),[A,w]=F.useState(0),[x,S]=F.useState(!1),[E,C]=F.useState(!1),_=()=>{C(!0)},T=()=>{C(!1)},N=()=>{var Y;const ae=f;if(ae.length){for(const pe of ae)if(pe.fieldId===t.field.uuid){v((Y=pe==null?void 0:pe.postData[0])==null?void 0:Y.postValue),S(!0);break}}};F.useEffect(()=>{x||N();const ae=Gt.addListener("onSubmitUserForm",()=>{var pe;(pe=e==null?void 0:e.attributes)!=null&&pe.required&&(g?e.isValid=1:e.isValid=0,d(s,i,a,r,n,e))}),Y=Gt.addListener("OnInvalidFieldCatch",pe=>{e.uuid===(pe==null?void 0:pe.fieldId)?w(1):w(0)});return()=>{ae.remove(),Y.remove()}});const O=ae=>{m(ae)},B=()=>{m(!1)},M=o.jsxs("div",{onMouseOver:_,onMouseOut:T,children:[!c&&E&&o.jsx(Hr,{handleFieldSettingsSidebar:O,...t}),o.jsx("div",{className:c?"":"field-form-builder",ref:l,children:o.jsx("div",{className:"field",children:o.jsx("div",{className:"grid",children:o.jsxs("div",{className:c?"col-12":"col-11",children:[(e==null?void 0:e.showHeaderText)&&o.jsx("h6",{children:(z=e==null?void 0:e.headerText)==null?void 0:z[u==null?void 0:u.type]}),(e==null?void 0:e.showLabel)&&o.jsxs("label",{htmlFor:`${n}`,className:"flex font-medium mb-3 text-700 text-2xl",children:[((P=e==null?void 0:e.attributes)==null?void 0:P.required)&&o.jsx("span",{className:"must-required",children:"*"})," ",i+1,".",r+1,".",n+1," ",(j=e==null?void 0:e.label)==null?void 0:j[u==null?void 0:u.type],o.jsx("span",{className:"ml-3",children:(e==null?void 0:e.showToolTip)&&o.jsx(Bi,{message:(de=e==null?void 0:e.toolTip)==null?void 0:de[u==null?void 0:u.type],position:"right"})})]}),o.jsxs("div",{className:"mt-3",children:[o.jsx("p",{children:"Anchor Tag"}),o.jsx("div",{children:((he=e==null?void 0:e.attributes)==null?void 0:he.required)&&o.jsx("small",{className:"error",children:A===1&&!g?(te=e==null?void 0:e.validationMesssage)==null?void 0:te.language:""})}),o.jsx("div",{children:(e==null?void 0:e.showHelperText)&&o.jsx("small",{children:(G=e==null?void 0:e.helperText)==null?void 0:G[u==null?void 0:u.type]})})]})]})})})})]});return o.jsxs(o.Fragment,{children:[h===!0&&o.jsx(Xi,{visibilty:h,closeSettingFieldSidebar:B,...t}),o.jsx(wi,{...t,fieldWrap:M})]})},qc=t=>{const{data:e,path:n,field:r}=t,{renderType:i,isPreview:a}=Zt(),s=F.useRef(null),[l,c]=F.useState(!1),[{isDragging:u},d]=Qi({item:{...e,type:j1,uuid:e==null?void 0:e.uuid,path:n},type:j1,collect:A=>({isDragging:A.isDragging()})}),f=u?.25:1;d(s);const h=A=>{switch(r==null?void 0:r.componentType){case"text":return o.jsx(B0e,{typeName:"Text",field:r,...A});case"number":return o.jsx(j0e,{typeName:"Number",field:r,...A});case"email":return o.jsx(H0e,{typeName:"Email",field:r,...A});case"textarea":return o.jsx(z0e,{typeName:"Text Area",field:r,...A});case"editor":return o.jsx(c1e,{typeName:"Editor",field:r,...A});case"question":return o.jsx(U1e,{typeName:"Exam",field:r,...A});case"select":return o.jsx(Q0e,{typeName:"Select",field:r,...A});case"multi-select":return o.jsx(T1e,{typeName:"Multi Select",field:r,...A});case"checkbox":return o.jsx(E1e,{typeName:"Checkbox",field:r,...A});case"radio":return o.jsx(_1e,{typeName:"Radio",field:r,...A});case"radio-hierarchal":return o.jsx(SSe,{typeName:"Radio Progressive",field:r,...A});case"href":return o.jsx($0e,{typeName:"Href",field:r,...A});case"heading":return o.jsx(F1e,{typeName:"Heading",field:r,...A});case"paragraph":return o.jsx(Hve,{typeName:"Paragraph",field:r,...A});case"image":return o.jsx(tk,{typeName:"Image",field:r,...A});case"video":return o.jsx(Y3e,{typeName:"Video",field:r,...A});case"hr":return o.jsx(K3e,{typeName:"Hr",field:r,...A});case"date-picker":return o.jsx(X3e,{typeName:"Date Picker",field:r,...A});case"signature":return o.jsx(R3e,{typeName:"Signature",field:r,...A});case"file-upload":return o.jsx(Ybe,{typeName:"File Upload",field:r,...A});case"facebook-login":return o.jsx(TSe,{typeName:"Facebook Login",field:r,...A});case"anchor":return o.jsx(ESe,{ref:s,typeName:"Anchor Tag",field:r,...A});case"image-gallery":return o.jsx(qve,{typeName:"Image Gallery",field:r,...A});case"quiz":return o.jsx(Rbe,{typeName:"Quiz",field:r,...A});case"document":return o.jsx(Kbe,{typeName:"Document",field:r,...A});case"list":return o.jsx(Qbe,{typeName:"List",field:r,...A});case"country":return o.jsx(L0e,{typeName:"Country",field:r,...A});case"phone":return o.jsx(aSe,{typeName:"Phone",field:r,...A});case"web-url":return o.jsx(sSe,{typeName:"Website Url",field:r,...A});case"rating":return o.jsx(uSe,{typeName:"Rating",field:r,...A});case"slider":return o.jsx(dSe,{typeName:"Rating",field:r,...A});case"hidden-field":return o.jsx(fSe,{typeName:"Hidden Field",field:r,...A});case"likert-scale":return o.jsx(hSe,{typeName:"Likert Scale Field",field:r,...A});case"type-signature":return o.jsx(pSe,{typeName:"Likert Scale Field",field:r,...A});case"address":return o.jsx(gSe,{typeName:"Address",field:r,...A});case"grid-component":return o.jsx(cj,{typeName:"Grid",field:r,...A});case"matrix-scale":return o.jsx(cj,{typeName:"Grid",field:r,...A});case"matrix-dropdown":return o.jsx(bSe,{typeName:"Grid",field:r,...A});case"thumbs":return o.jsx(xSe,{typeName:"Thumbs Up and Down",field:r,...A});case"likert-emoji-scale":return o.jsx(CSe,{typeName:"Thumbs Up and Down",field:r,...A});case"table":return o.jsx(ASe,{typeName:"Grid",field:r,...A});case"dynamic-listing":return o.jsx(wSe,{typeName:"Grid",field:r,...A});default:return o.jsx(o.Fragment,{children:"Empty"})}},m=()=>{c(!0)},g=()=>{c(!1)},v=()=>{let A="";return a?(A=A+" component ",i===z1?A=A+" ":A=A+" px-2 "):(A=A+" component draggable field-form-builder-not-preview",i===z1?A=A+" pdf-component":A=A+" px-2 pdf-component"),A};return o.jsx(o.Fragment,{children:o.jsxs("div",{style:{opacity:f},className:v(),onMouseOver:m,onMouseOut:g,children:[!a&&l&&o.jsx("i",{ref:a===!1?s:null,className:"elementDrag-icon pi pi-arrows-alt cursor-move",style:{fontSize:"1em"}}),h(t)]})})},ISe={position:"relative"},_Se=t=>{var O,B,M,z,P;const{data:e,path:n,pageIndex:r,sectionIndex:i,rowIndex:a,columnIndex:s,section:l,row:c,page:u}=t,d=F.useRef(null),{removeColumn:f,addColumn:h,cloneColumn:m,formBuilderFormLayout:g,handleDrop:v}=on(),{isPreview:A,isRenderView:w,isAdvanceView:x,emitSocketData:S}=Zt(),[{isDragging:E},C]=Qi({type:ms,item:{type:ms,uuid:e==null?void 0:e.uuid,children:e.children,path:n},collect:j=>({isDragging:j.isDragging()})}),_=E&&!w?.25:1;C(d);const T=(j,de,he,te,G,ae,Y)=>o.jsx(qc,{page:u,type:"field",row:c,column:e,section:l,field:j,data:j,path:de,pageIndex:he,sectionIndex:te,rowIndex:G,columnIndex:ae,fieldIndex:Y},`component-${n}-${j==null?void 0:j.uuid}`),N=(j,de,he,te,G)=>{var ie,J,Q,se;const ae=j.collapsed?"pi pi-chevron-down":"pi pi-chevron-up",Y=`${j.className} justify-content-space-between`,pe=`${j.titleClassName} pl-1 text-primary`;return o.jsxs(o.Fragment,{children:[o.jsx(rn,{target:".clone-tool"}),o.jsx(rn,{target:".add-column-tool"}),o.jsxs("div",{className:Y,children:[o.jsxs("span",{ref:A===!1?d:null,children:[o.jsx("button",{className:j.togglerClassName,children:o.jsx("span",{className:"pi pi-sliders-h dragabble"})}),o.jsxs("button",{className:j.togglerClassName,onClick:j.onTogglerClick,children:[o.jsx("span",{className:ae}),o.jsx(Qt,{})]}),o.jsx("span",{className:pe,children:"Column"})]}),A===!1&&o.jsxs("div",{className:"p-panel-icons",children:[o.jsx("span",{className:"add-column-tool","data-pr-tooltip":"Add Column",children:o.jsxs("button",{className:j.togglerClassName,onClick:()=>{h(de,he,te),S()},children:[o.jsx("span",{className:"pi pi-plus"}),o.jsx(Qt,{})]})}),((se=(Q=(J=(ie=g[de])==null?void 0:ie.children[he])==null?void 0:J.children[te])==null?void 0:Q.children)==null?void 0:se.length)>1&&o.jsxs("button",{className:j.togglerClassName,onClick:()=>{f(de,he,te,G),S()},children:[o.jsx("span",{className:"pi pi-trash"}),o.jsx(Qt,{})]}),o.jsx("span",{className:"clone-tool","data-pr-tooltip":"Clone",children:o.jsxs("button",{className:j.togglerClassName,onClick:()=>{m(e,de,he,te,G),S()},children:[o.jsx("span",{className:"pi pi-clone"}),o.jsx(Qt,{})]})})]})]})]})};return o.jsx("div",{style:x?{...ISe,opacity:_}:{},className:w?"form-builder-column container-column":"draggable form-builder-column container-column",children:A===!1?o.jsx(o.Fragment,{children:x===!0?o.jsxs(li,{className:"builder-row-column",header:"Column",toggleable:!0,headerTemplate:j=>N(j,r,i,a,s),children:[((O=e==null?void 0:e.children)==null?void 0:O.length)>0?(B=e==null?void 0:e.children)==null?void 0:B.map((j,de)=>{const he=`${n}-${de}`;return o.jsxs(F.Fragment,{children:[o.jsx(Tr,{isAdvanceView:x,fieldDropArea:!0,data:{path:he,childrenCount:e.children.length,droppedField:e},onDrop:v}),T(j,he,r,i,a,s,de)]},he)}):o.jsxs("span",{className:"pt-4 text-center text-primary",style:{display:"block",zIndex:-1,width:"99%"},children:["Please drop the element from the sidebar below",o.jsx("p",{children:o.jsx("i",{className:"pi pi-arrow-down py-2",style:{fontSize:"2em"}})})]}),o.jsx(Tr,{isAdvanceView:x,fieldDropArea:!0,data:{path:`${n}-${e.children.length}`,childrenCount:e.children.length,droppedField:e},onDrop:v,isLast:!0})]}):o.jsx(o.Fragment,{children:o.jsxs("div",{children:[((M=e==null?void 0:e.children)==null?void 0:M.length)>0?(z=e==null?void 0:e.children)==null?void 0:z.map((j,de)=>{const he=`${n}-${de}`;return o.jsxs(F.Fragment,{children:[o.jsx(Tr,{isAdvanceView:x,fieldDropArea:!0,data:{path:he,childrenCount:e.children.length,droppedField:e},onDrop:v}),T(j,he,r,i,a,s,de)]},he)}):o.jsx(o.Fragment,{children:o.jsxs("span",{className:"pt-4 text-center text-primary",style:{display:"block",zIndex:-1,width:"99%"},children:["Please drop the element from the sidebar below",o.jsx("p",{children:o.jsx("i",{className:"pi pi-arrow-down py-2",style:{fontSize:"2em"}})})]})}),o.jsx(Tr,{isAdvanceView:x,dropHereLastField:!0,fieldDropArea:!0,data:{path:`${n}-${e.children.length}`,childrenCount:e.children.length,droppedField:e},onDrop:v,isLast:!0})]})})}):o.jsx(o.Fragment,{children:(P=e==null?void 0:e.children)==null?void 0:P.map((j,de)=>{const he=`${n}-${de}`;return o.jsx(F.Fragment,{children:T(j,he,r,i,a,s,de)},he)})})})},DSe=t=>{var i,a,s;const{language:e,onHandleChange:n,stateRow:r}=t;return o.jsxs("form",{className:"p-fluid",children:[o.jsxs("div",{className:"field",children:[o.jsx("label",{children:"Row Heading"}),o.jsx(mn,{value:(i=r==null?void 0:r.heading)==null?void 0:i[e==null?void 0:e.type],onChange:l=>n("heading",e,l.target.value)})]}),o.jsxs("div",{className:"field",children:[o.jsx("label",{children:"Row Description"}),o.jsx(_s,{value:(a=r==null?void 0:r.subHeadingText)==null?void 0:a[e==null?void 0:e.type],onChange:l=>n("subHeadingText",e,l.target.value)})]}),(r==null?void 0:r.rowIsRepeatable)===!0&&o.jsxs("div",{className:"field",children:[o.jsx("span",{className:"must-required",children:"*"})," ",o.jsx("label",{children:"Add To List Button Label"}),o.jsx(mn,{value:(s=r.addToListButtonLabel)==null?void 0:s[e==null?void 0:e.type],onChange:l=>n("addToListButtonLabel",e,l.target.value)})]})]})},OSe=t=>{const{stateRow:e,onHandleChangeAdvanceSettings:n}=t,{renderType:r}=Zt();return o.jsxs("div",{className:"p-fluid",children:[r===F0&&o.jsxs("div",{className:"field-checkbox",children:[o.jsx(Nr,{inputId:"rowIsRepeatable",checked:e==null?void 0:e.rowIsRepeatable,onChange:i=>n("rowIsRepeatable",i==null?void 0:i.checked)}),o.jsx("label",{htmlFor:"isRepeatable",children:"Row is repeatable ?"})]}),(e==null?void 0:e.rowIsRepeatable)&&o.jsxs("div",{className:"field",children:[o.jsx("span",{className:"must-required",children:"*"})," ",o.jsx("label",{children:"Row Minimum Entries"}),o.jsx(Oa,{value:e==null?void 0:e.minimumEntries,onChange:i=>n("minimumEntries",i.value)})]}),o.jsxs("div",{className:"field-checkbox",children:[o.jsx(Nr,{inputId:"isManualEnumerationEnabled",checked:(e==null?void 0:e.isManualEnumerationEnabled)||!1,onChange:i=>n("isManualEnumerationEnabled",i==null?void 0:i.checked)}),o.jsx("label",{htmlFor:"isManualEnumerationEnabled",children:"Enable manual enumeration for row components?"}),o.jsxs("small",{children:[" ","You need to set mannual enumeration for every component from its settings."," "]})]})]})},NSe=t=>{var f,h,m,g;const{onHandleChange:e,stateRow:n,onHandleChangePageMargin:r}=t,i=new Vb,[,a]=F.useState("");F.useEffect(()=>{},[]);const[s]=F.useState(null),l=()=>{},c=v=>{e("bgImage",v==null?void 0:v.url)},u=[{icon:"pi pi-image",value:"image"},{icon:"pi pi-palette ",value:"color"},{icon:"pi pi-microsoft ",value:"gradient"}],d=v=>o.jsx("i",{className:v.icon});return o.jsxs("div",{className:"",children:[o.jsxs("div",{className:" field",children:[o.jsxs("div",{className:"grid",children:[o.jsxs("div",{className:"field col-2 md:col-3",children:[o.jsx("label",{children:"Left"}),o.jsx(Oa,{value:(f=n==null?void 0:n.margin)==null?void 0:f.left,onChange:v=>{r("left",v.value)},mode:"decimal",showButtons:!0,min:0,max:100})]}),o.jsxs("div",{className:"field col-2 md:col-3",children:[o.jsx("label",{children:"Right"}),o.jsx(Oa,{value:(h=n==null?void 0:n.margin)==null?void 0:h.right,onChange:v=>{r("right",v.value)},mode:"decimal",showButtons:!0,min:0,max:100})]}),o.jsxs("div",{className:"field col-2 md:col-3",children:[o.jsx("label",{children:"Top"}),o.jsx(Oa,{value:(m=n==null?void 0:n.margin)==null?void 0:m.top,onChange:v=>{r("top",v.value)},mode:"decimal",showButtons:!0,min:0,max:100})]}),o.jsxs("div",{className:"field col-2 md:col-3",children:[o.jsx("label",{children:"Bottom"}),o.jsx(Oa,{value:(g=n==null?void 0:n.margin)==null?void 0:g.bottom,onChange:v=>{r("bottom",v.value)},mode:"decimal",showButtons:!0,min:0,max:100})]})]}),o.jsx("label",{children:"Background Type"}),o.jsx(q0,{value:n==null?void 0:n.bgType,options:u,onChange:v=>e("bgType",v.value),itemTemplate:d,optionLabel:"value"})]}),(n==null?void 0:n.bgType)==="color"&&o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"p-fluid field",children:o.jsx(Jd,{value:(n==null?void 0:n.bgColor)||"",onChange:v=>e("bgColor",v.value)})}),o.jsx(Jd,{value:(n==null?void 0:n.bgColor)||"",onChange:v=>e("bgColor",v.value),inline:!0})]}),(n==null?void 0:n.bgType)==="image"&&o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:"p-fluid field",children:[o.jsx("span",{className:"must-required",children:"*"}),o.jsx("label",{children:"Background image"}),o.jsx(mn,{value:(n==null?void 0:n.bgImage)||"",onChange:v=>e("bgImage",v.target.value),placeholder:"enter page title",id:"page_title",name:"page_title"})]}),o.jsxs("div",{className:"shadow-2 border-round surface-card p-4",children:[o.jsx("div",{className:"flex align-items-center justify-content-between mb-4",children:o.jsx("span",{className:"text-xl font-medium text-900",children:"Selected Files"})}),o.jsx("h5",{children:"Media Library"}),o.jsxs("div",{className:"grid",children:[o.jsx("div",{className:"col-8",children:o.jsxs("div",{className:"grid",children:[o.jsx("div",{className:"col-12 mb-5",children:o.jsxs("div",{className:"p-inputgroup",children:[o.jsx(mn,{placeholder:"Keyword",onChange:v=>a(v.target.value)}),o.jsx(kt,{text:!0,icon:"pi pi-search",className:"p-button-info",onClick:()=>l()})]})}),o.jsx("div",{className:"col-12 mb-5",children:o.jsx("div",{className:"surface-section ",children:o.jsx("div",{className:"grid -mt-3 -ml-3 -mr-3"})})})]})}),o.jsx("div",{className:"col-4 card",children:s!==null&&o.jsxs("div",{className:"surface-card p-4 shadow-2 border-round",children:[o.jsx("img",{style:{height:"150px",width:"150px",objectFit:"contain"},src:s==null?void 0:s.url,className:"w-full mb-3 border-round-2xl",onError:v=>v.target.src="https://www.primefaces.org/wp-content/uploads/2020/05/placeholder.png",alt:"https://www.primefaces.org/wp-content/uploads/2020/05/placeholder.png"}),o.jsxs("ul",{className:"list-none p-0 m-0 border-top-1 surface-border",children:[o.jsxs("li",{className:"flex align-items-center py-1 px-2 flex-wrap surface-ground",children:[o.jsx("div",{className:"text-500 w-full md:w-4 font-medium",children:"Name"}),o.jsx("div",{className:"text-900 w-full md:w-8",children:s==null?void 0:s.name})]}),o.jsxs("li",{className:"flex align-items-center py-1 px-2 flex-wrap",children:[o.jsx("div",{className:"text-500 w-full md:w-4 font-medium",children:"Base URL:"}),o.jsx("div",{className:"text-900 w-full md:w-8 line-height-3",style:{wordWrap:"break-word"},children:o.jsx("a",{href:s==null?void 0:s.url,children:s==null?void 0:s.url})})]}),o.jsxs("li",{className:"flex align-items-center py-1 px-2 flex-wrap surface-ground",children:[o.jsx("div",{className:"text-500 w-full md:w-4 font-medium",children:"Base Name:"}),o.jsx("div",{className:"text-900 w-full md:w-8",children:s==null?void 0:s.basename})]}),o.jsxs("li",{className:"flex align-items-center py-1 px-2 flex-wrap",children:[o.jsx("div",{className:"text-500 w-full md:w-4 font-medium",children:"Dir Name:"}),o.jsx("div",{className:"text-900 w-full md:w-8",children:s==null?void 0:s.dirname})]}),o.jsxs("li",{className:"flex align-items-center py-1 px-2 flex-wrap surface-ground",children:[o.jsx("div",{className:"text-500 w-full md:w-4 font-medium",children:"Size:"}),o.jsx("div",{className:"text-900 w-full md:w-8",children:i.formatBytes(s==null?void 0:s.size)})]}),o.jsxs("li",{className:"flex align-items-center py-1 px-2 flex-wrap surface-ground",children:[o.jsx("div",{className:"text-500 w-full md:w-4 font-medium",children:"Creation Date:"}),o.jsx("div",{className:"text-900 w-full md:w-8",children:Nn(s==null?void 0:s.created_at).format("Do MMM YYYY - HH:mm")})]})]}),o.jsx(kt,{text:!0,className:"mt-3 w-full",label:"Set Image",onClick:()=>c(s),"aria-label":"Update"})]})})]})]})]})]})},FSe=t=>{const{stateRow:e,setStateRow:n}=t,[r,i]=F.useState(""),[a,s]=F.useState([""]),[l,c]=F.useState(!1),[u,d]=F.useState(0),[f,h]=F.useState(!1),{updateGlobalToast:m}=Zt(),g=()=>{h(!0)},v=()=>{var j;const z=((j=e==null?void 0:e.reviewerChecklist)==null?void 0:j.length)>=0?[...e.reviewerChecklist]:[];z.push({uuid:tt(),checklist:r,action:a,agree:null,selectAction:[],other:{isOther:!1,description:""},reviewerComments:""});const P={...e,reviewerChecklist:z};n(P),h(!1),i(""),s([""])},A=()=>{h(!1),i(""),s([""])},w=z=>{const P=[...e.reviewerChecklist];P.splice(z,1);const j={...e,reviewerChecklist:P};n(j)},x=(z,P)=>{c(!0);const{checklist:j,action:de}=z;h(!0),d(P),setTimeout(()=>{i(j),s(de)},1e3)},S=(z,P)=>o.jsxs(o.Fragment,{children:[o.jsx(kt,{text:!0,type:"button",className:"p-button-info",icon:"pi pi-pencil",onClick:()=>x(z,P==null?void 0:P.rowIndex),size:"small"}),o.jsx(kt,{text:!0,type:"button",className:"p-button-danger",icon:"pi pi-trash",onClick:()=>w(P==null?void 0:P.rowIndex),size:"small"})]}),E=z=>{var P;return o.jsx(o.Fragment,{children:(P=z==null?void 0:z.action)==null?void 0:P.length})},C=z=>{const P=[...a];P.splice(z,1),s(P)},_=()=>{const z=[...e.reviewerChecklist];z[u]={checklist:r,action:a};const P={...e,reviewerChecklist:z};n(P),h(!1),c(!1)},T=()=>o.jsx("div",{children:l?o.jsx(kt,{text:!0,className:"mb-5 p-button-success",label:"Edit Checklist",onClick:()=>{_()}}):o.jsx(kt,{text:!0,className:"mb-5 p-button-success",label:"Add Checklist",onClick:()=>{v()}})}),N=z=>{n(P=>Object.assign({},P,{reviewerChecklist:z==null?void 0:z.value}))},O=z=>{navigator.clipboard.writeText(JSON.stringify(z)),m({showToast:!0,toastMessage:"Copied to clipboard",toastDetail:"",toastType:"success"})};function B(z){try{JSON.parse(z)}catch{return!1}return!0}const M=async()=>{var j;const z=await navigator.clipboard.readText();let P="";if(B(z)){const de=JSON.parse(z);if((j=de[0])!=null&&j.checklist){const he={...Et.cloneDeep(e),reviewerChecklist:de};n(he),m({showToast:!0,toastMessage:"Checklist pasted",toastDetail:"",toastType:"success"});return}else P=" Empty or Invalid Schema"}else P="Invalid Schema";m({showToast:!0,toastMessage:P,toastDetail:"",toastType:"error"})};return o.jsxs("div",{children:[o.jsxs(ys,{maximizable:!0,header:"Add Checklist",visible:f,style:{width:"30vw"},onHide:()=>A(),footer:T(),children:[o.jsx("h5",{children:"Checklist"}),o.jsx(_s,{rows:2,cols:50,value:r,onChange:z=>{var P;i((P=z==null?void 0:z.target)==null?void 0:P.value)}}),o.jsx("h5",{children:"Actions when user selects No"}),a.map((z,P)=>o.jsxs("div",{children:[P+1,"."," ",o.jsx(_s,{value:z,onChange:j=>{var he;const de=[...a];de[P]=(he=j==null?void 0:j.target)==null?void 0:he.value,s(de)},rows:2,cols:50})," ",o.jsx(kt,{text:!0,type:"button",icon:"pi pi-trash",className:"p-button-danger",onClick:()=>C(P)}),o.jsx("br",{}),o.jsx("br",{})]},`actionIndex-${P}`)),o.jsx(kt,{text:!0,className:" p-button-info mr-2",onClick:()=>{s([...a,""])},children:"Add Action"})]})," ",o.jsx("h5",{children:"Reviewer Checklist"}),o.jsx(kt,{text:!0,className:"mb-5 mr-2 p-button-success",label:"Add Review Checklist",onClick:()=>{g()}}),o.jsx(kt,{text:!0,label:"Copy Schema ",onClick:()=>{O([...(e==null?void 0:e.reviewerChecklist)||[]])},className:"mb-5 mr-2"}),o.jsx(kt,{text:!0,label:"Paste Checklist ",onClick:()=>{M()},className:"mb-5 p-button-info"}),o.jsx("div",{className:"card",children:o.jsxs(Hs,{value:e==null?void 0:e.reviewerChecklist,reorderableRows:!0,onRowReorder:N,children:[o.jsx(fr,{rowReorder:!0,style:{width:"3em"}}),o.jsx(fr,{field:"checklist",header:"Checklist"}),o.jsx(fr,{field:"actions",header:"Actions",body:z=>E(z)}),o.jsx(fr,{header:"",body:(z,P)=>S(z,P)})]})})]})},Dg=t=>{var E;const{visibilty:e,setVisibility:n,row:r,pageIndex:i,sectionIndex:a,rowIndex:s}=t,{formBuilderSchemaLanguages:l,rowSettingUpdate:c,userSelectedLanguage:u,formBuilderPublishedStatus:d}=on(),[f,h]=F.useState(r),{updateGlobalToast:m,emitSocketData:g}=Zt(),v=(C,_,T)=>{h(N=>{const O=N[C];return Object.assign({},N,{[C]:Object.assign({},O,{[_==null?void 0:_.type]:T})})})},A=(C,_)=>{h(T=>({...T,[C]:_}))},w=()=>{const C={...f,children:r==null?void 0:r.children};c(i,a,s,C),g(),m({showToast:!0,toastMessage:"Updated",toastDetail:"Row Updated",toastType:"success"})},x=(C,_)=>{let T=f;T={...T,margin:{...T.margin,[C]:_}},h(T)},S=(C,_)=>{h(T=>({...T,[C]:_}))};return o.jsx(o.Fragment,{children:o.jsxs(Eo,{visible:e,position:"left",className:"p-sidebar-lg",onHide:()=>n(!1),children:[o.jsxs("div",{className:"flex justify-content-between flex-wrap card-container ",children:[o.jsxs("div",{className:"flex align-items-center justify-content-center ",children:[" ",o.jsxs("h5",{children:["Row Settings - ",(E=r==null?void 0:r.heading)==null?void 0:E[u==null?void 0:u.type]]})," "]}),!d&&o.jsx("div",{className:"flex align-items-center justify-content-center",children:o.jsx(kt,{className:"mt-3",label:"Update",onClick:()=>w(),"aria-label":"Update"})})]}),o.jsxs(Ya,{children:[o.jsx(hr,{header:"Text",children:o.jsx(ao,{activeIndex:0,children:l!=null&&l.length?l.map((C,_)=>o.jsx(io,{tabIndex:_,header:C==null?void 0:C.language,children:o.jsx(DSe,{language:C,stateRow:f,onHandleChange:v,...t})},_)):""})}),o.jsx(hr,{header:"Advance",children:o.jsx(OSe,{stateRow:f,onHandleChangeAdvanceSettings:A})}),o.jsx(hr,{header:"Layout",children:o.jsxs("div",{className:"p-fluid",children:[o.jsxs("div",{className:"field-checkbox",children:[o.jsx(Nr,{inputId:"showRowTitle",checked:f==null?void 0:f.showRowTitle,onChange:C=>A("showRowTitle",C==null?void 0:C.checked)}),o.jsx("label",{htmlFor:"showRowTitle",children:"Show Row Title?"})]}),o.jsxs("div",{className:"field-checkbox",children:[o.jsx(Nr,{inputId:"showRowSubTitle",checked:f==null?void 0:f.showRowSubTitle,onChange:C=>A("showRowSubTitle",C==null?void 0:C.checked)}),o.jsx("label",{htmlFor:"showRowSubTitle",children:"Show Row Sub Title?"})]})]})}),o.jsx(hr,{header:"Styling",children:o.jsx(NSe,{stateRow:f,onHandleChange:S,onHandleChangePageMargin:x,...t})}),(f==null?void 0:f.rowIsRepeatable)===!0&&o.jsx(hr,{header:"Admin",children:o.jsx(FSe,{stateRow:f,setStateRow:h})})]})]})})},kSe={},PSe=t=>{var be,Ce,Te,ye,Ae,re,U,Z,K,ue,Ee;const{data:e,path:n,pageIndex:r,sectionIndex:i,rowIndex:a,section:s,page:l}=t,c=F.useRef(null),{removeRow:u,addRow:d,cloneRow:f,formBuilderFormLayout:h,userSelectedLanguage:m,handleDrop:g}=on(),{userTaskSubmitFormData:v,taskRegisterData:A,updateTaskRegisterData:w,updateTaskProgressValue:x,addUserDataFormSectionRepeatableData:S,removeUserDataFormSectionRepeatableData:E,task_status:C,TASK_PUBLISHED:_}=br(),{isPreview:T,isRenderView:N,isAdvanceView:O,renderType:B,isAdmin:M,emitSocketData:z}=Zt(),[P,j]=F.useState(!1),[{isDragging:de},he]=Qi({type:bo,item:{type:bo,uuid:e.uuid,children:e.children,path:n,data:e},collect:ge=>({isDragging:ge.isDragging()})}),te=de?.25:1;he(c);const G=(ge,me,Le,Oe,ve,V)=>o.jsx(_Se,{page:l,row:e,section:s,data:ge,path:me,pageIndex:Le,sectionIndex:Oe,rowIndex:ve,columnIndex:V,isAdmin:M,emitSocketData:z},`column-${n}-${ge.uuid}`),ae=(ge,me,Le,Oe)=>{var X,oe,fe,we;const ve=ge.collapsed?"pi pi-chevron-down":"pi pi-chevron-up",V=`${ge.className} justify-content-space-between`,ne=`${ge.titleClassName} pl-1 text-primary`;return o.jsxs(o.Fragment,{children:[o.jsx(rn,{target:".clone-tool"}),o.jsx(rn,{target:".setting-tool"}),o.jsx(rn,{target:".add-row-tool"}),o.jsxs("div",{className:V,children:[o.jsxs("span",{ref:T===!1?c:null,children:[o.jsx("button",{className:ge.togglerClassName,children:o.jsx("span",{className:"pi pi-sliders-h dragabble"})}),o.jsxs("button",{className:ge.togglerClassName,onClick:ge.onTogglerClick,children:[o.jsx("span",{className:ve}),o.jsx(Qt,{})]}),o.jsxs("span",{className:ne,children:["Row:"," ",((X=e==null?void 0:e.heading)==null?void 0:X[m==null?void 0:m.type])!==""?(oe=e==null?void 0:e.heading)==null?void 0:oe[m==null?void 0:m.type]:"Untitled"]})]}),T===!1&&o.jsxs("div",{className:"p-panel-icons",children:[o.jsx("span",{className:"add-row-tool","data-pr-tooltip":"Add Row",children:o.jsxs("button",{className:ge.togglerClassName,onClick:()=>{d(me,Le),z()},children:[o.jsx("span",{className:"pi pi-plus"}),o.jsx(Qt,{})]})}),((we=(fe=h[me])==null?void 0:fe.children[Le])==null?void 0:we.children.length)>1&&o.jsxs("button",{className:ge.togglerClassName,onClick:()=>{u(me,Le,Oe),z()},children:[o.jsx("span",{className:"pi pi-trash"}),o.jsx(Qt,{})]}),o.jsx("span",{className:"clone-tool","data-pr-tooltip":"Clone",children:o.jsxs("button",{className:ge.togglerClassName,onClick:()=>{f(e,me,Le,Oe),z()},children:[o.jsx("span",{className:"pi pi-clone"}),o.jsx(Qt,{})]})}),o.jsx("span",{className:"setting-tool","data-pr-tooltip":"Settings",children:o.jsxs("button",{onClick:()=>j(!0),className:ge.togglerClassName,children:[o.jsx("span",{className:"pi pi-cog"}),o.jsx(Qt,{})]})})]})]})]})},Y=Et.findIndex(v,function(ge){return(ge==null?void 0:ge.rowId)===(e==null?void 0:e.uuid)}),pe=()=>{var Le,Oe,ve;const ge=Et.cloneDeep(A);((Oe=(Le=v[Y])==null?void 0:Le.repeatableFieldsData)==null?void 0:Oe.length)>=(e==null?void 0:e.minimumEntries)?ge[e==null?void 0:e.uuid]=(ve=v[Y])==null?void 0:ve.repeatableFields:delete ge[e==null?void 0:e.uuid];const me=Object.keys(ge).length;w(ge),x(me)},ie=(be=e==null?void 0:e.repeatableFields)==null?void 0:be.map(ge=>{var me;return{fieldUuid:ge==null?void 0:ge.uuid,field:ge==null?void 0:ge.uuid,header:(me=ge==null?void 0:ge.label)==null?void 0:me.english}}),J=ie==null?void 0:ie.map(ge=>o.jsx(fr,{field:ge.field,header:ge.header,body:me=>o.jsx(o.Fragment,{children:o.jsx("div",{className:"post__content_repetable",dangerouslySetInnerHTML:{__html:me[ge==null?void 0:ge.field]}})})},ge.field)),Q=()=>{var Oe;const ge=[...v],me=[];let Le=!0;e:for(const[,ve]of e.children.entries()){for(const[,V]of ve.children.entries())if(console.log("field.isValid",V.isValid),V!=null&&V.isPostField&&V.isValid!==1){const ne={fieldId:V.uuid,rowIndex:a};console.log("inValidData",ne),me.push(ne),Gt.emit("OnInvalidFieldCatch",ne),Le=!1;break e}Le=!0}Le&&(me==null?void 0:me.length)===0&&(S(e==null?void 0:e.uuid,(Oe=ge[Y])==null?void 0:Oe.repeatableFields),Gt.emit("clearRepeatableFields",e==null?void 0:e.uuid),pe())},se=ge=>o.jsx(o.Fragment,{children:o.jsx(kt,{text:!0,type:"button",className:"p-button-danger ",onClick:()=>{E(e==null?void 0:e.uuid,ge==null?void 0:ge.rowIndex),setTimeout(()=>{pe()},1e3)},icon:"pi pi-trash"})});return o.jsxs("div",{style:{...kSe,opacity:te,marginTop:`${(Ce=e==null?void 0:e.margin)==null?void 0:Ce.top}px`,marginBottom:`${(Te=e==null?void 0:e.margin)==null?void 0:Te.bottom}px`,marginLeft:`${(ye=e==null?void 0:e.margin)==null?void 0:ye.left}px`,marginRight:`${(Ae=e==null?void 0:e.margin)==null?void 0:Ae.right}px`},className:N?"row container-row":"draggable row container-row",children:[P&&o.jsx(Dg,{renderType:B,visibilty:P,setVisibility:j,row:e,pageIndex:r,sectionIndex:i,rowIndex:a,emitSocketData:z},"row_settings_"+r+i+a),T===!1?o.jsx(o.Fragment,{children:O===!0?o.jsx(li,{header:"Row",toggleable:!0,headerTemplate:ge=>ae(ge,r,i,a),children:o.jsxs("div",{className:"form-builder-columns",style:{overflowX:"auto"},children:[(re=e==null?void 0:e.children)==null?void 0:re.map((ge,me)=>{const Le=`${n}-${me}`;return o.jsxs(F.Fragment,{children:[o.jsx(Tr,{isAdvanceView:O,data:{path:Le,childrenCount:e.children.length},onDrop:g,className:"horizontalDrag"}),G(ge,Le,r,i,a,me)]},Le)}),o.jsx(Tr,{isAdvanceView:O,data:{path:`${n}-${e.children.length}`,childrenCount:e.children.length},onDrop:g,className:"horizontalDrag",isLast:!0})]})}):o.jsx(o.Fragment,{children:o.jsx("div",{className:O?"form-builder-columns":"",style:O?{overflowX:"auto"}:{},children:(U=e==null?void 0:e.children)==null?void 0:U.map((ge,me)=>{const Le=`${n}-${me}`;return o.jsx(F.Fragment,{children:G(ge,Le,r,i,a,me)},Le)})})})}):o.jsx(o.Fragment,{children:!(e!=null&&e.rowIsRepeatable&&C===_)&&o.jsxs(o.Fragment,{children:[o.jsx("h5",{children:(Z=e==null?void 0:e.heading)==null?void 0:Z[m==null?void 0:m.type]}),o.jsx("span",{children:(K=e==null?void 0:e.subHeadingText)==null?void 0:K[m==null?void 0:m.type]}),o.jsx("div",{className:"form-builder-columns",children:e.children.map((ge,me)=>{const Le=`${n}-${me}`;return o.jsx(F.Fragment,{children:G(ge,Le,r,i,a,me)},Le)})})]})}),(e==null?void 0:e.rowIsRepeatable)&&C!==_&&o.jsx(kt,{text:!0,type:"button",className:"p-button-success mb-3",onClick:()=>Q(),label:(ue=e.addToListButtonLabel)==null?void 0:ue[m==null?void 0:m.type]}),(e==null?void 0:e.rowIsRepeatable)&&o.jsxs("div",{className:"card",children:[o.jsxs(Hs,{value:(v==null?void 0:v.length)>0?(Ee=v[Y])==null?void 0:Ee.repeatableFieldsData:[],children:[J,C!==_&&o.jsx(fr,{style:{width:"10%"},headerStyle:{textAlign:"center"},bodyStyle:{textAlign:"left",overflow:"visible"},body:(ge,me)=>se(me)})]}),M&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(Ni,{field:e})]})]})]})},MSe=t=>{var i,a;const{language:e,onHandleChange:n,stateSection:r}=t;return o.jsxs("form",{className:"p-fluid",children:[o.jsxs("div",{className:"field",children:[o.jsx("label",{children:"Section Heading"}),o.jsx(mn,{value:(i=r.heading)==null?void 0:i[e==null?void 0:e.type],onChange:s=>n("heading",e,s.target.value)})]}),o.jsxs("div",{className:"field",children:[o.jsx("label",{children:"Section Description"}),o.jsx(_s,{value:(a=r.subHeadingText)==null?void 0:a[e==null?void 0:e.type],onChange:s=>n("subHeadingText",e,s.target.value)})]})]})},LSe={uuid:"",type:"",showSectionHeader:!0,isVisible:!1,isHidden:!1,isCollapsed:!0,isValid:!1,showSectionSubTitle:!1,showSectionTitle:!1,heading:{english:""},subHeadingText:{english:""},children:[]},Dh=t=>{const{visibilty:e,setVisibility:n,section:r,pageIndex:i,sectionIndex:a}=t,[s,l]=F.useState(r??LSe),{formBuilderSchemaLanguages:c,sectionSettingUpdate:u,userSelectedLanguage:d,formBuilderPublishedStatus:f}=on(),{emitSocketData:h}=Zt(),{updateGlobalToast:m}=Zt();console.log("StateSection",r);const g=(w,x,S)=>{l(E=>Object.assign({},E,{[w]:Object.assign({},E[w],{[x==null?void 0:x.type]:S})}))},v=(w,x)=>{l(S=>({...S,[w]:x}))},A=()=>{const w={...s,children:r==null?void 0:r.children};u(i,a,w),h(),m({showToast:!0,toastMessage:"Updated",toastDetail:"Section Updated",toastType:"success"})};return o.jsx(o.Fragment,{children:o.jsxs(Eo,{visible:e,position:"left",className:"p-sidebar-lg",onHide:()=>n(!1),children:[o.jsxs("div",{className:"flex justify-content-between flex-wrap card-container ",children:[o.jsxs("div",{className:"flex align-items-center justify-content-center ",children:[" ",o.jsxs("h5",{children:["Section Settings - ",r==null?void 0:r.heading[d==null?void 0:d.type]," "]})," "]}),!f&&o.jsx("div",{className:"flex align-items-center justify-content-center",children:o.jsx(kt,{className:"mt-3",label:"Update",onClick:()=>A(),"aria-label":"Update"})})]}),o.jsxs(Ya,{children:[o.jsx(hr,{header:"Text",children:o.jsx(ao,{activeIndex:0,children:c!=null&&c.length?c.map((w,x,S)=>o.jsx(io,{tabIndex:x,header:w==null?void 0:w.language,children:o.jsx(MSe,{language:w,stateSection:S,onHandleChange:g,...t})},x)):""})}),o.jsx(hr,{header:"Layout",children:o.jsxs("div",{className:"p-fluid",children:[o.jsxs("div",{className:"field-checkbox",children:[o.jsx(Nr,{inputId:"showSectionTitle",checked:s==null?void 0:s.showSectionHeader,onChange:w=>v("showSectionHeader",w==null?void 0:w.checked)}),o.jsx("label",{htmlFor:"showSectionTitle",children:"Show Section header?"})]}),o.jsxs("div",{className:"field-checkbox",children:[o.jsx(Nr,{inputId:"showSectionTitle",checked:s==null?void 0:s.showSectionTitle,onChange:w=>v("showSectionTitle",w==null?void 0:w.checked)}),o.jsx("label",{htmlFor:"showSectionTitle",children:"Show Section Title?"})]}),o.jsxs("div",{className:"field-checkbox",children:[o.jsx(Nr,{inputId:"showSectionSubTitle",checked:s==null?void 0:s.showSectionSubTitle,onChange:w=>v("showSectionSubTitle",w==null?void 0:w.checked)}),o.jsx("label",{htmlFor:"showSectionSubTitle",children:"Show Section Sub Title?"})]})]})})]})]})})},Oh=t=>{const{saveBuilderElementModalData:e,saveElementModal:n,setSaveElementModal:r}=t,{saveComponent:i}=Zt(),a=pb({initialValues:{builder_element_title:"",builder_element_description:""},validate:c=>{const u={};return c.builder_element_title||(u.builder_element_title="Title is required."),c.builder_element_description||(u.builder_element_description="Description is required."),u},onSubmit:c=>{const u={...c,reusable_template_schema:e==null?void 0:e.reusable_template_schema};i(u,a.resetForm),r(!1)}}),s=c=>!!(a.touched[c]&&a.errors[c]),l=()=>o.jsx("div",{children:o.jsx(kt,{text:!0,className:"p-button-success",label:"Save",icon:"pi pi-file",onClick:()=>{a.handleSubmit()},autoFocus:!0})});return o.jsxs(ys,{header:"Save Custom Element",visible:n,style:{width:"20vw"},footer:l(),onHide:()=>r(!1),children:[o.jsxs("div",{className:"p-field field",children:[o.jsxs("label",{htmlFor:"username",children:[o.jsx("span",{className:"must-required",children:"*"})," Builder element title"]}),o.jsx(mn,{id:"builder_element_title",name:"builder_element_title",value:a.values.builder_element_title,onChange:a.handleChange,className:`${j3({invalid:s("builder_element_title")})} w-full`})]}),o.jsxs("div",{className:"p-field field",children:[o.jsxs("label",{htmlFor:"username",children:[o.jsx("span",{className:"must-required",children:"*"})," Builder element description"]}),o.jsx(_s,{id:"builder_element_description",name:"builder_element_description",value:a.values.builder_element_description,onChange:a.handleChange,className:`${j3({invalid:s("builder_element_title")})} w-full`})]})]})},BSe=t=>{var he,te,G,ae,Y,pe,ie,J;const{data:e,path:n,pageIndex:r,sectionIndex:i,section:a,page:s}=t,{removeSection:l,addSection:c,cloneSection:u,formBuilderFormLayout:d,userSelectedLanguage:f,handleDrop:h}=on(),{isPreview:m,isAdvanceView:g,renderType:v,emitSocketData:A}=Zt(),[w,x]=F.useState(!1),[S,E]=F.useState(!1),[C,_]=F.useState(null),[T,N]=F.useState(!1),O=F.useRef(null),B=(Q,se)=>{_(be=>({...be,[Q]:se}))},[{isDragging:M},z]=Qi({type:ta,item:{type:ta,uuid:e.uuid,children:e.children,path:n},collect:Q=>({isDragging:Q.isDragging()})}),P=M?.25:1;z(O);const j=(Q,se,be,Ce,Te)=>o.jsx(PSe,{page:s,section:a,data:Q,path:se,pageIndex:be,sectionIndex:Ce,rowIndex:Te},`row-${n}-${Q.uuid}`),de=(Q,se,be)=>{var Ae,re;const Ce=Q.collapsed?"pi pi-chevron-down":"pi pi-chevron-up",Te=`${Q.className} justify-content-space-between panel-tab-section`,ye=`${Q.titleClassName} pl-1 text-primary`;return o.jsxs("div",{className:Te,children:[o.jsxs("span",{ref:m===!1?O:null,children:[o.jsx("button",{className:Q.togglerClassName,children:o.jsx("span",{className:"pi pi-sliders-h dragabble"})}),o.jsxs("button",{className:Q.togglerClassName,onClick:Q.onTogglerClick,children:[o.jsx("span",{className:Ce}),o.jsx(Qt,{})]}),o.jsxs("span",{className:ye,children:[be+1," ",(Ae=e==null?void 0:e.heading)==null?void 0:Ae[f==null?void 0:f.type]]})]}),m===!1&&o.jsxs(o.Fragment,{children:[o.jsx(rn,{target:".clone-tool"}),o.jsx(rn,{target:".del-tool"}),o.jsx(rn,{target:".setting-tool"}),o.jsx(rn,{target:".add-section-tool"}),o.jsx(rn,{target:".save-tool"}),o.jsx(rn,{target:".settings-tool"}),o.jsxs("div",{className:"p-panel-icons",children:[o.jsx("span",{className:"add-section-tool","data-pr-tooltip":"Add Section",children:o.jsxs("button",{className:Q.togglerClassName,onClick:()=>{c(se),A()},children:[o.jsx("span",{className:"pi pi-plus"}),o.jsx(Qt,{})]})}),((re=d[se])==null?void 0:re.children.length)>1&&o.jsx("span",{className:"del-tool","data-pr-tooltip":"Delete",children:o.jsxs("button",{className:Q.togglerClassName,onClick:()=>{l(se,be),A()},children:[o.jsx("span",{className:"pi pi-trash"}),o.jsx(Qt,{})]})}),o.jsx("span",{className:"save-tool","data-pr-tooltip":"Save",children:o.jsxs("button",{className:Q.togglerClassName,onClick:()=>{B("reusable_template_schema",e),E(!0)},children:[o.jsx("span",{className:"pi pi-save"}),o.jsx(Qt,{})]})}),o.jsx("span",{className:"clone-tool","data-pr-tooltip":"Clone",children:o.jsxs("button",{className:Q.togglerClassName,onClick:()=>{u(e,se,be),A()},children:[o.jsx("span",{className:"pi pi-clone"}),o.jsx(Qt,{})]})}),o.jsx("span",{className:"settings-tool","data-pr-tooltip":"Settings",children:o.jsxs("button",{className:Q.togglerClassName,onClick:()=>x(!0),children:[o.jsx("span",{className:"pi pi-cog"}),o.jsx(Qt,{})]})})]})]})]})};return o.jsxs("div",{style:{opacity:P,marginBottom:20},className:g?"draggable row":"",children:[m===!1&&o.jsx(Oh,{saveBuilderElementModalData:C,setSaveBuilderElementModalData:_,saveElementModal:S,setSaveElementModal:E}),w===!0&&o.jsx(Dh,{renderType:v,visibilty:w,setVisibility:x,section:e,pageIndex:r,sectionIndex:i,emitSocketData:A},"section_settings_"+r+i),m===!1?o.jsx(o.Fragment,{children:g===!0?o.jsxs(li,{header:(he=e==null?void 0:e.heading)==null?void 0:he.english,toggleable:!0,headerTemplate:Q=>de(Q,r,i),onMouseEnter:()=>N(!0),onMouseLeave:()=>N(!1),children:[((te=e==null?void 0:e.subHeadingText)==null?void 0:te[f==null?void 0:f.type])&&o.jsx("p",{children:(G=e==null?void 0:e.subHeadingText)==null?void 0:G[f==null?void 0:f.type]}),o.jsxs("div",{children:[e.children.map((Q,se)=>{const be=`${n}-${se}`;return o.jsxs(F.Fragment,{children:[o.jsx(Tr,{isAdvanceView:g,data:{path:be,childrenCount:e.children.length},onDrop:h}),j(Q,be,r,i,se)]},be)}),o.jsx(Tr,{isAdvanceView:g,data:{path:`${n}-${e.children.length}`,childrenCount:e.children.length,droppedField:e},onDrop:h,isLast:!0})]}),T&&o.jsxs("div",{className:"m-3 flex justify-content-end",children:[o.jsx("span",{className:"add-section-tool ","data-pr-tooltip":"Add Section",children:o.jsx("i",{className:"pi pi-plus",onClick:()=>{c(r),A()},children:o.jsx(Qt,{})})}),((ae=d[r])==null?void 0:ae.children.length)>1&&o.jsx("span",{className:"del-tool ml-2",children:o.jsx("i",{className:"pi pi-trash","data-pr-tooltip":"Delete",onClick:()=>{l(r,i),A()},children:o.jsx(Qt,{})})})]})]}):o.jsxs(o.Fragment,{children:[((Y=e==null?void 0:e.subHeadingText)==null?void 0:Y[f==null?void 0:f.type])&&o.jsx("p",{children:(pe=e==null?void 0:e.subHeadingText)==null?void 0:pe[f==null?void 0:f.type]}),o.jsx("div",{children:e.children.map((Q,se)=>{const be=`${n}-${se}`;return o.jsx(F.Fragment,{children:j(Q,be,r,i,se)},be)})})]})}):o.jsx(o.Fragment,{children:o.jsxs("div",{className:"",children:[(e==null?void 0:e.showSectionHeader)&&o.jsxs(o.Fragment,{children:[o.jsx("h4",{children:(ie=e==null?void 0:e.heading)==null?void 0:ie[f==null?void 0:f.type]}),o.jsx("p",{children:(J=e==null?void 0:e.subHeadingText)==null?void 0:J[f==null?void 0:f.type]}),o.jsx("hr",{})]}),e.children.map((Q,se)=>{const be=`${n}-${se}`;return o.jsx(F.Fragment,{children:o.jsx("div",{className:"",children:j(Q,be,r,i,se)},be)},be)})]})})]})},VSe={position:"relative"},USe=t=>{var E,C,_;const{data:e,data:n,path:r,pageIndex:i,sectionIndex:a,rowIndex:s,columnIndex:l,section:c,row:u,page:d}=t,f=F.useRef(null),{handleDrop:h}=on(),{isRenderView:m,isAdvanceView:g,isPreview:v}=Zt(),[{isDragging:A},w]=Qi({type:ms,item:{type:ms,uuid:e==null?void 0:e.uuid,children:e.children,path:r},collect:T=>({isDragging:T.isDragging()})}),x=A&&!m?.25:1;w(f);const S=(T,N,O,B,M,z,P)=>o.jsx(qc,{page:d,section:c,row:u,column:n,field:T,pageIndex:O,sectionIndex:B,rowIndex:M,columnIndex:z,fieldIndex:P,type:"field",data:T,path:N},`component-${r}-${T==null?void 0:T.uuid}`);return o.jsx("div",{style:g?{...VSe,opacity:x}:{},className:m?"":"draggable column container-column",children:v===!1?o.jsx(o.Fragment,{children:o.jsxs("div",{children:[((E=e==null?void 0:e.children)==null?void 0:E.length)>0?(C=e==null?void 0:e.children)==null?void 0:C.map((T,N)=>{const O=`${r}-${N}`;return o.jsxs(F.Fragment,{children:[o.jsx(Tr,{isAdvanceView:g,fieldDropArea:!0,data:{path:O,childrenCount:e.children.length,droppedField:e},onDrop:h}),S(T,O,i,a,s,l,N)]},O)}):o.jsx(o.Fragment,{}),o.jsx(Tr,{isAdvanceView:g,dropHereLastField:!0,fieldDropArea:!0,data:{path:`${r}-${e.children.length}`,childrenCount:e.children.length,droppedField:e},onDrop:h,isLast:!0})]})}):o.jsx(o.Fragment,{children:(_=e==null?void 0:e.children)==null?void 0:_.map((T,N)=>{const O=`${r}-${N}`;return o.jsx(F.Fragment,{children:S(T,O,i,a,s,l,N)},O)})})})},qSe=t=>{var l;const{isAdvanceView:e}=Zt(),{data:n,page:r,path:i,pageIndex:a}=t,s=(c,u,d,f,h,m,g,v)=>o.jsx(USe,{page:r,row:v,section:g,data:c,path:`${d}-${f}-${h}-${m}`,pageIndex:d,sectionIndex:f,rowIndex:h,columnIndex:m},`column-${i}-${c.uuid}`);return o.jsx(o.Fragment,{children:(l=n==null?void 0:n.children)==null?void 0:l.map((c,u)=>{var d;return(d=c==null?void 0:c.children)==null?void 0:d.map((f,h)=>{var m;return o.jsx(o.Fragment,{children:o.jsx("div",{className:e?"columns":"",style:e?{overflowX:"auto"}:{},children:(m=f==null?void 0:f.children)==null?void 0:m.map((g,v)=>{const A=`${i}-${u}-${h}-${v}`;return o.jsx(F.Fragment,{children:s(g,A,a,u,h,v,c,f)},A)})})})})})})},$Se=t=>{const{data:e,path:n,pageIndex:r}=t,{isPreview:i,isRenderView:a,isAdvanceView:s}=Zt(),{formBuilderFormSchema:l,handleDrop:c}=on(),u=F.useRef(null),[d,f]=Qi({type:ta,item:{type:ta,uuid:e.uuid,children:e.children,path:n},collect:m=>({isDragging:m.isDragging()})});f(u);const h=(m,g,v,A)=>o.jsx(BSe,{data:m,page:e,section:m,path:g,pageIndex:v,sectionIndex:A},`section_${v}_${A}`);return o.jsx("div",{style:{overflowX:"auto"},className:`${a?"":"draggable page-css p-3 pb-4"}`,"data-image-src":e==null?void 0:e.bgImage,"data-bg-color":`#${e==null?void 0:e.bgColor}`,children:i===!1?o.jsx(o.Fragment,{children:s?o.jsxs(o.Fragment,{children:[e.children.map((m,g)=>{const v=`${n}-${g}`;return o.jsxs(F.Fragment,{children:[s===!0&&o.jsx(Tr,{isAdvanceView:s,data:{path:v,childrenCount:e.children.length},onDrop:c}),h(m,v,r,g)]},`section-${g}-${m.uuid}`)}),s===!0&&o.jsx(Tr,{isAdvanceView:s,data:{path:`${n}-${e.children.length}`,childrenCount:e.children.length,droppedField:e},onDrop:c,isLast:!0})]}):o.jsx(o.Fragment,{children:o.jsx(qSe,{page:e,path:n,data:e,pageIndex:r})})}):o.jsx(o.Fragment,{children:o.jsx("div",{className:"p-1",children:e.children.map((m,g)=>{const v=`${n}-${g}`;return o.jsx(F.Fragment,{children:l!=null&&l.showConditionalFields?o.jsx(o.Fragment,{children:o.jsx("div",{children:h(m,v,r,g)})}):((m==null?void 0:m.isHidden)===!1||!i)&&h(m,v,r,g)},`section-${g}-${m.uuid}`)})})})})},jSe=()=>{const{isPreview:t,isAdvanceView:e}=Zt(),[n,r]=F.useState(!1),[i,a]=F.useState(!1),[s,l]=F.useState(0),{formBuilderFormLayout:c}=on(),{emitSocketData:u}=Zt(),d=(f,h,m)=>o.jsx($Se,{data:f,path:h,pageIndex:m},`page-${f.uuid}`);return o.jsx("div",{className:"page",children:(c==null?void 0:c.length)===F9&&t===!0?o.jsx(o.Fragment,{children:(c==null?void 0:c.length)&&c.map((f,h)=>{const m=`${h}`;return o.jsx("div",{children:d(f,m,h)},`${f.uuid}-${h}`)})}):o.jsx(o.Fragment,{children:e===!0||t===!0?o.jsx(Ya,{activeIndex:s,onTabChange:f=>l(f.index),children:(c==null?void 0:c.length)&&c.map((f,h)=>{const m=`${h}`;return o.jsxs(hr,{disabled:!((f==null?void 0:f.isHidden)===!1||!t),header:"Page",headerTemplate:g=>o.jsx(q7,{options:g,pageIndex:h,setTabSidebarSetting:r,setPageActiveIndex:l,page:f,pages:c}),children:[t===!1&&o.jsx(Tf,{reusableBuilderElementModalVisibility:i,setReusableBuilderElementModalVisibility:a,pageIndex:h}),o.jsx(R0,{setVisibility:r,visibilty:n,pageIndex:h,page:f,emitSocketData:u}),d(f,m,h)]},`${f.uuid}-${h}`)})}):o.jsx(o.Fragment,{children:(c==null?void 0:c.length)>0&&(c==null?void 0:c.map((f,h)=>{const m=`${h}`;return o.jsxs(F.Fragment,{children:[t===!1&&o.jsx(Tf,{reusableBuilderElementModalVisibility:i,setReusableBuilderElementModalVisibility:a,pageIndex:h}),o.jsx(R0,{setVisibility:r,visibilty:n,pageIndex:h,page:f,emitSocketData:u}),d(f,m,h)]},`${f.uuid}-${h}`)}))})})})},HSe={position:"relative"},zSe=t=>{var O,B,M,z,P;const{isAdvanceView:e,isPreview:n,emitSocketData:r,isRenderView:i}=Zt(),{data:a,path:s,pageIndex:l,sectionIndex:c,rowIndex:u,columnIndex:d,section:f,row:h,page:m}=t,g=F.useRef(null),{removeColumn:v,addColumn:A,cloneColumn:w,formBuilderFormLayout:x,handleDrop:S}=on(),[{isDragging:E},C]=Qi({type:ms,item:{type:ms,uuid:a==null?void 0:a.uuid,children:a.children,path:s},collect:j=>({isDragging:j.isDragging()})}),_=E&&!i?.25:1;C(g);const T=(j,de,he,te,G,ae,Y)=>o.jsx(qc,{page:m,column:a,type:"field",row:h,section:f,field:j,data:j,path:de,pageIndex:he,sectionIndex:te,rowIndex:G,columnIndex:ae,fieldIndex:Y},`component-${s}-${j==null?void 0:j.uuid}`),N=(j,de,he,te,G)=>{var ie,J,Q,se;const ae=j.collapsed?"pi pi-chevron-down":"pi pi-chevron-up",Y=`${j.className} justify-content-space-between`,pe=`${j.titleClassName} pl-1 text-primary`;return o.jsxs(o.Fragment,{children:[o.jsx(rn,{target:".clone-tool"}),o.jsx(rn,{target:".add-column-tool"}),o.jsxs("div",{className:Y,children:[o.jsxs("span",{ref:n===!1?g:null,children:[o.jsx("button",{className:j.togglerClassName,children:o.jsx("span",{className:"pi pi-sliders-h dragabble"})}),o.jsxs("button",{className:j.togglerClassName,onClick:j.onTogglerClick,children:[o.jsx("span",{className:ae}),o.jsx(Qt,{})]}),o.jsx("span",{className:pe,children:"Column"})]}),n===!1&&o.jsxs("div",{className:"p-panel-icons",children:[o.jsx("span",{className:"add-column-tool","data-pr-tooltip":"Add Column",children:o.jsxs("button",{className:j.togglerClassName,onClick:()=>{A(de,he,te),r()},children:[o.jsx("span",{className:"pi pi-plus"}),o.jsx(Qt,{})]})}),((se=(Q=(J=(ie=x[de])==null?void 0:ie.children[he])==null?void 0:J.children[te])==null?void 0:Q.children)==null?void 0:se.length)>1&&o.jsxs("button",{className:j.togglerClassName,onClick:()=>{v(de,he,te,G),r()},children:[o.jsx("span",{className:"pi pi-trash"}),o.jsx(Qt,{})]}),o.jsx("span",{className:"clone-tool","data-pr-tooltip":"Clone",children:o.jsxs("button",{className:j.togglerClassName,onClick:()=>{w(a,de,he,te,G),r()},children:[o.jsx("span",{className:"pi pi-clone"}),o.jsx(Qt,{})]})})]})]})]})};return o.jsx("div",{style:e?{...HSe,opacity:_}:{},className:i?"form-builder-column container-column":"draggable form-builder-column container-column",children:n===!1?o.jsx(o.Fragment,{children:e===!0?o.jsxs(li,{className:"builder-row-column",header:"Column",toggleable:!0,headerTemplate:j=>N(j,l,c,u,d),children:[((O=a==null?void 0:a.children)==null?void 0:O.length)>0?(B=a==null?void 0:a.children)==null?void 0:B.map((j,de)=>{const he=`${s}-${de}`;return o.jsxs(F.Fragment,{children:[o.jsx(Tr,{isAdvanceView:e,fieldDropArea:!0,data:{path:he,childrenCount:a.children.length,droppedField:a},onDrop:S}),T(j,he,l,c,u,d,de)]},he)}):o.jsxs("span",{className:"pt-4 text-center text-primary",style:{display:"block",zIndex:-1,width:"99%"},children:["Please drop the element from the sidebar below",o.jsx("p",{children:o.jsx("i",{className:"pi pi-arrow-down py-2",style:{fontSize:"2em"}})})]}),o.jsx(Tr,{isAdvanceView:e,fieldDropArea:!0,data:{path:`${s}-${a.children.length}`,childrenCount:a.children.length,droppedField:a},onDrop:S,isLast:!0})]}):o.jsx(o.Fragment,{children:o.jsxs("div",{children:[((M=a==null?void 0:a.children)==null?void 0:M.length)>0?(z=a==null?void 0:a.children)==null?void 0:z.map((j,de)=>{const he=`${s}-${de}`;return o.jsxs(F.Fragment,{children:[o.jsx(Tr,{isAdvanceView:e,fieldDropArea:!0,data:{path:he,childrenCount:a.children.length,droppedField:a},onDrop:S}),T(j,he,l,c,u,d,de)]},he)}):o.jsx(o.Fragment,{children:o.jsxs("span",{className:"pt-4 text-center text-primary",style:{display:"block",zIndex:-1,width:"99%"},children:["Please drop the element from the sidebar below",o.jsx("p",{children:o.jsx("i",{className:"pi pi-arrow-down py-2",style:{fontSize:"2em"}})})]})}),o.jsx(Tr,{isAdvanceView:e,dropHereLastField:!0,fieldDropArea:!0,data:{path:`${s}-${a.children.length}`,childrenCount:a.children.length,droppedField:a},onDrop:S,isLast:!0})]})})}):o.jsx(o.Fragment,{children:(P=a==null?void 0:a.children)==null?void 0:P.map((j,de)=>{const he=`${s}-${de}`;return o.jsx(F.Fragment,{children:T(j,he,l,c,u,d,de)},he)})})})},YSe={},KSe=t=>{var be,Ce,Te,ye,Ae,re,U,Z,K,ue,Ee,ge,me,Le,Oe,ve;const{data:e,path:n,pageIndex:r,sectionIndex:i,rowIndex:a,section:s,page:l}=t,{isRenderView:c,isAdvanceView:u,isAdmin:d,isPreview:f,emitSocketData:h,renderType:m}=Zt(),g=F.useRef(null),{removeRow:v,addRow:A,cloneRow:w,formBuilderFormLayout:x,userSelectedLanguage:S,handleDrop:E}=on(),{userTaskSubmitFormData:C,taskRegisterData:_,updateTaskRegisterData:T,updateTaskProgressValue:N,addUserDataFormSectionRepeatableData:O,removeUserDataFormSectionRepeatableData:B,task_status:M,TASK_PUBLISHED:z}=br(),[P,j]=F.useState(!1),[{isDragging:de},he]=Qi({type:bo,item:{type:bo,uuid:e.uuid,children:e.children,path:n,data:e},collect:V=>({isDragging:V.isDragging()})}),te=de?.25:1;he(g);const G=(V,ne,X,oe,fe,we)=>o.jsx(zSe,{page:l,row:e,section:s,data:V,path:ne,pageIndex:X,sectionIndex:oe,rowIndex:fe,columnIndex:we,isAdmin:d,emitSocketData:h},`column-${n}-${V.uuid}`),ae=(V,ne,X,oe)=>{var $e,ct,Nt,at;const fe=V.collapsed?"pi pi-chevron-down":"pi pi-chevron-up",we=`${V.className} justify-content-space-between`,De=`${V.titleClassName} pl-1 text-primary`;return o.jsxs(o.Fragment,{children:[o.jsx(rn,{target:".clone-tool"}),o.jsx(rn,{target:".setting-tool"}),o.jsx(rn,{target:".add-row-tool"}),o.jsxs("div",{className:we,children:[o.jsxs("span",{ref:f===!1?g:null,children:[o.jsx("button",{className:V.togglerClassName,children:o.jsx("span",{className:"pi pi-sliders-h dragabble"})}),o.jsxs("button",{className:V.togglerClassName,onClick:V.onTogglerClick,children:[o.jsx("span",{className:fe}),o.jsx(Qt,{})]}),o.jsxs("span",{className:De,children:["Row:"," ",(($e=e==null?void 0:e.heading)==null?void 0:$e[S==null?void 0:S.type])!==""?(ct=e==null?void 0:e.heading)==null?void 0:ct[S==null?void 0:S.type]:"Untitled"]})]}),f===!1&&o.jsxs("div",{className:"p-panel-icons",children:[o.jsx("span",{className:"add-row-tool","data-pr-tooltip":"Add Row",children:o.jsxs("button",{className:V.togglerClassName,onClick:()=>{A(ne,X),h()},children:[o.jsx("span",{className:"pi pi-plus"}),o.jsx(Qt,{})]})}),((at=(Nt=x[ne])==null?void 0:Nt.children[X])==null?void 0:at.children.length)>1&&o.jsxs("button",{className:V.togglerClassName,onClick:()=>{v(ne,X,oe),h()},children:[o.jsx("span",{className:"pi pi-trash"}),o.jsx(Qt,{})]}),o.jsx("span",{className:"clone-tool","data-pr-tooltip":"Clone",children:o.jsxs("button",{className:V.togglerClassName,onClick:()=>{w(e,ne,X,oe),h()},children:[o.jsx("span",{className:"pi pi-clone"}),o.jsx(Qt,{})]})}),o.jsx("span",{className:"setting-tool","data-pr-tooltip":"Settings",children:o.jsxs("button",{onClick:()=>j(!0),className:V.togglerClassName,children:[o.jsx("span",{className:"pi pi-cog"}),o.jsx(Qt,{})]})})]})]})]})},Y=Et.findIndex(C,function(V){return(V==null?void 0:V.rowId)===(e==null?void 0:e.uuid)}),pe=()=>{var X,oe,fe;const V=Et.cloneDeep(_);((oe=(X=C[Y])==null?void 0:X.repeatableFieldsData)==null?void 0:oe.length)>=(e==null?void 0:e.minimumEntries)?V[e==null?void 0:e.uuid]=(fe=C[Y])==null?void 0:fe.repeatableFields:delete V[e==null?void 0:e.uuid];const ne=Object.keys(V).length;T(V),N(ne)},ie=(be=e==null?void 0:e.repeatableFields)==null?void 0:be.map(V=>{var ne;return{fieldUuid:V==null?void 0:V.uuid,field:V==null?void 0:V.uuid,header:(ne=V==null?void 0:V.label)==null?void 0:ne.english}}),J=ie==null?void 0:ie.map(V=>o.jsx(fr,{field:V.field,header:V.header,body:ne=>o.jsx(o.Fragment,{children:o.jsx("div",{className:"post__content_repetable",dangerouslySetInnerHTML:{__html:ne[V==null?void 0:V.field]}})})},V.field)),Q=()=>{var oe;const V=[...C],ne=[];let X=!0;e:for(const[,fe]of e.children.entries()){for(const[,we]of fe.children.entries())if(console.log("field.isValid",we.isValid),we!=null&&we.isPostField&&we.isValid!==1){const De={fieldId:we.uuid,rowIndex:a};console.log("inValidData",De),ne.push(De),Gt.emit("OnInvalidFieldCatch",De),X=!1;break e}X=!0}X&&(ne==null?void 0:ne.length)===0&&(O(e==null?void 0:e.uuid,(oe=V[Y])==null?void 0:oe.repeatableFields),Gt.emit("clearRepeatableFields",e==null?void 0:e.uuid),pe())},se=V=>o.jsx(o.Fragment,{children:o.jsx(kt,{text:!0,type:"button",className:"p-button-danger ",onClick:()=>{B(e==null?void 0:e.uuid,V==null?void 0:V.rowIndex),setTimeout(()=>{pe()},1e3)},icon:"pi pi-trash"})});return o.jsxs("div",{style:{...YSe,opacity:te,marginTop:`${(Ce=e==null?void 0:e.margin)==null?void 0:Ce.top}px`,marginBottom:`${(Te=e==null?void 0:e.margin)==null?void 0:Te.bottom}px`,marginLeft:`${(ye=e==null?void 0:e.margin)==null?void 0:ye.left}px`,marginRight:`${(Ae=e==null?void 0:e.margin)==null?void 0:Ae.right}px`},className:c?"row container-row":"draggable row container-row",children:[P&&o.jsx(Dg,{renderType:m,visibilty:P,setVisibility:j,row:e,pageIndex:r,sectionIndex:i,rowIndex:a,emitSocketData:h},"row_settings_"+r+i+a),m===hm&&o.jsxs("div",{className:"form-builder-columns",children:[e.children.map((V,ne)=>{const X=`${n}-${ne}`;return o.jsxs(F.Fragment,{children:[m===Y1&&o.jsx(Tr,{isAdvanceView:u,data:{path:X,childrenCount:e.children.length},onDrop:E,className:"horizontalDrag"}),G(V,X,r,i,a,ne)]},X)}),o.jsx(Tr,{isAdvanceView:u,data:{path:`${n}-${e.children.length}`,childrenCount:e.children.length},onDrop:E,className:"horizontalDrag",isLast:!0})]}),(m===H1||m===F0||m===fm||m===N9||m===ep)&&(f===!1?o.jsx(o.Fragment,{children:u===!0?o.jsx(li,{header:"Row",toggleable:!0,headerTemplate:V=>ae(V,r,i,a),children:o.jsxs("div",{className:"form-builder-columns",style:{overflowX:"auto"},children:[(re=e==null?void 0:e.children)==null?void 0:re.map((V,ne)=>{const X=`${n}-${ne}`;return o.jsxs(F.Fragment,{children:[o.jsx(Tr,{isAdvanceView:u,data:{path:X,childrenCount:e.children.length},onDrop:E,className:"horizontalDrag"}),G(V,X,r,i,a,ne)]},X)}),o.jsx(Tr,{isAdvanceView:u,data:{path:`${n}-${e.children.length}`,childrenCount:e.children.length},onDrop:E,className:"horizontalDrag",isLast:!0})]})}):o.jsx(o.Fragment,{children:o.jsx("div",{className:u?"form-builder-columns":"",style:u?{overflowX:"auto"}:{},children:(U=e==null?void 0:e.children)==null?void 0:U.map((V,ne)=>{const X=`${n}-${ne}`;return o.jsx(F.Fragment,{children:G(V,X,r,i,a,ne)},X)})})})}):o.jsx(o.Fragment,{children:!(e!=null&&e.rowIsRepeatable&&M===z)&&o.jsxs(o.Fragment,{children:[o.jsx("h5",{children:(Z=e==null?void 0:e.heading)==null?void 0:Z[S==null?void 0:S.type]}),o.jsx("span",{children:(K=e==null?void 0:e.subHeadingText)==null?void 0:K[S==null?void 0:S.type]}),o.jsx("div",{className:"form-builder-columns",children:e.children.map((V,ne)=>{const X=`${n}-${ne}`;return o.jsx(F.Fragment,{children:G(V,X,r,i,a,ne)},X)})})]})})),m===z1&&(f===!1?o.jsxs("div",{children:[o.jsx("span",{className:"row-setting-block-pdf-editor",children:o.jsxs("div",{className:"pdf-setting-container",children:[o.jsxs("button",{onClick:()=>{A(r,i),h()},children:[o.jsx("span",{className:"pi pi-plus"}),o.jsx(Qt,{})]}),((Ee=(ue=x[r])==null?void 0:ue.children[i])==null?void 0:Ee.children.length)>1&&o.jsxs("button",{onClick:()=>{v(r,i,a),h()},children:[o.jsx("span",{className:"pi pi-trash"}),o.jsx(Qt,{})]}),o.jsxs("button",{onClick:()=>{w(e,r,i,a),h()},children:[o.jsx("span",{className:"pi pi-clone"}),o.jsx(Qt,{})]}),o.jsxs("button",{onClick:()=>j(!0),children:[o.jsx("span",{className:"pi pi-cog"}),o.jsx(Qt,{})]})]})}),o.jsx("div",{className:"form-builder-columns",children:(ge=e==null?void 0:e.children)==null?void 0:ge.map((V,ne)=>{const X=`${n}-${ne}`;return o.jsx(F.Fragment,{children:G(V,X,r,i,a,ne)},X)})})]}):o.jsx(o.Fragment,{children:!(e!=null&&e.rowIsRepeatable&&M===z)&&o.jsxs(o.Fragment,{children:[o.jsx("h5",{children:(me=e==null?void 0:e.heading)==null?void 0:me[S==null?void 0:S.type]}),o.jsx("span",{children:(Le=e==null?void 0:e.subHeadingText)==null?void 0:Le[S==null?void 0:S.type]}),o.jsx("div",{className:"form-builder-columns",children:e.children.map((V,ne)=>{const X=`${n}-${ne}`;return o.jsx(F.Fragment,{children:G(V,X,r,i,a,ne)},X)})})]})})),m===Y1&&o.jsx("div",{className:"form-builder-columns",children:e.children.map((V,ne)=>{const X=`${n}-${ne}`;return o.jsx(F.Fragment,{children:G(V,X,r,i,a,ne)},X)})}),(e==null?void 0:e.rowIsRepeatable)&&M!==z&&o.jsx(kt,{text:!0,type:"button",className:"p-button-success mb-3",onClick:()=>Q(),label:(Oe=e.addToListButtonLabel)==null?void 0:Oe[S==null?void 0:S.type]}),(e==null?void 0:e.rowIsRepeatable)&&o.jsxs("div",{className:"card",children:[o.jsxs(Hs,{value:(C==null?void 0:C.length)>0?(ve=C[Y])==null?void 0:ve.repeatableFieldsData:[],children:[J,M!==z&&o.jsx(fr,{style:{width:"10%"},headerStyle:{textAlign:"center"},bodyStyle:{textAlign:"left",overflow:"visible"},body:V=>se(V)})]}),d&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(Ni,{field:e})]})]})]})},XSe=t=>{var he,te,G,ae,Y,pe,ie,J;const{isAdvanceView:e,isPreview:n,renderType:r,emitSocketData:i}=Zt(),{handleDrop:a}=on(),{data:s,path:l,pageIndex:c,sectionIndex:u,section:d,page:f}=t,{removeSection:h,addSection:m,cloneSection:g,formBuilderFormLayout:v,userSelectedLanguage:A}=on(),[w,x]=F.useState(!1),[S,E]=F.useState(!1),[C,_]=F.useState({reusable_template_schema:""}),[T,N]=F.useState(!1),O=F.useRef(null),B=(Q,se)=>{_(be=>({...be,[Q]:se}))},[{isDragging:M},z]=Qi({type:ta,item:{type:ta,uuid:s.uuid,children:s.children,path:l},collect:Q=>({isDragging:Q.isDragging()})}),P=M?.25:1;z(O);const j=(Q,se,be,Ce,Te)=>o.jsx(KSe,{page:f,section:d,data:Q,path:se,pageIndex:be,sectionIndex:Ce,rowIndex:Te},`row-${l}-${Q.uuid}`),de=(Q,se,be)=>{var Ae,re;const Ce=Q.collapsed?"pi pi-chevron-down":"pi pi-chevron-up",Te=`${Q.className} justify-content-space-between panel-tab-section`,ye=`${Q.titleClassName} pl-1 text-primary`;return o.jsxs("div",{className:Te,children:[o.jsxs("span",{ref:n===!1?O:null,children:[o.jsx("button",{className:Q.togglerClassName,children:o.jsx("span",{className:"pi pi-sliders-h dragabble"})}),o.jsxs("button",{className:Q.togglerClassName,onClick:Q.onTogglerClick,children:[o.jsx("span",{className:Ce}),o.jsx(Qt,{})]}),o.jsxs("span",{className:ye,children:[be+1," ",(Ae=s==null?void 0:s.heading)==null?void 0:Ae[A==null?void 0:A.type]]})]}),n===!1&&o.jsxs(o.Fragment,{children:[o.jsx(rn,{target:".clone-tool"}),o.jsx(rn,{target:".del-tool"}),o.jsx(rn,{target:".setting-tool"}),o.jsx(rn,{target:".add-section-tool"}),o.jsx(rn,{target:".save-tool"}),o.jsx(rn,{target:".settings-tool"}),o.jsxs("div",{className:"p-panel-icons",children:[o.jsx("span",{className:"add-section-tool","data-pr-tooltip":"Add Section",children:o.jsxs("button",{className:Q.togglerClassName,onClick:()=>{m(se),i()},children:[o.jsx("span",{className:"pi pi-plus"}),o.jsx(Qt,{})]})}),((re=v[se])==null?void 0:re.children.length)>1&&o.jsx("span",{className:"del-tool","data-pr-tooltip":"Delete",children:o.jsxs("button",{className:Q.togglerClassName,onClick:()=>{h(se,be),i()},children:[o.jsx("span",{className:"pi pi-trash"}),o.jsx(Qt,{})]})}),o.jsx("span",{className:"save-tool","data-pr-tooltip":"Save",children:o.jsxs("button",{className:Q.togglerClassName,onClick:()=>{B("reusable_template_schema",s),E(!0)},children:[o.jsx("span",{className:"pi pi-save"}),o.jsx(Qt,{})]})}),o.jsx("span",{className:"clone-tool","data-pr-tooltip":"Clone",children:o.jsxs("button",{className:Q.togglerClassName,onClick:()=>{g(s,se,be),i()},children:[o.jsx("span",{className:"pi pi-clone"}),o.jsx(Qt,{})]})}),o.jsx("span",{className:"settings-tool","data-pr-tooltip":"Settings",children:o.jsxs("button",{className:Q.togglerClassName,onClick:()=>x(!0),children:[o.jsx("span",{className:"pi pi-cog"}),o.jsx(Qt,{})]})})]})]})]})};return o.jsxs("div",{style:{opacity:P,marginBottom:20},className:e?"draggable row":"",children:[n===!1&&o.jsx(Oh,{saveBuilderElementModalData:C,setSaveBuilderElementModalData:_,saveElementModal:S,setSaveElementModal:E}),w===!0&&o.jsx(Dh,{renderType:r,visibilty:w,setVisibility:x,section:s,pageIndex:c,sectionIndex:u,emitSocketData:i},"section_settings_"+c+u),n===!1?o.jsx(o.Fragment,{children:e===!0?o.jsxs(li,{header:(he=s==null?void 0:s.heading)==null?void 0:he.english,toggleable:!0,headerTemplate:Q=>de(Q,c,u),onMouseEnter:()=>N(!0),onMouseLeave:()=>N(!1),children:[((te=s==null?void 0:s.subHeadingText)==null?void 0:te[A==null?void 0:A.type])&&o.jsx("p",{children:(G=s==null?void 0:s.subHeadingText)==null?void 0:G[A==null?void 0:A.type]}),o.jsxs("div",{children:[s.children.map((Q,se)=>{const be=`${l}-${se}`;return o.jsxs(F.Fragment,{children:[o.jsx(Tr,{isAdvanceView:e,data:{path:be,childrenCount:s.children.length},onDrop:a}),j(Q,be,c,u,se)]},be)}),o.jsx(Tr,{isAdvanceView:e,data:{path:`${l}-${s.children.length}`,childrenCount:s.children.length,droppedField:s},onDrop:a,isLast:!0})]}),T&&o.jsxs("div",{className:"m-3 flex justify-content-end",children:[o.jsx("span",{className:"add-section-tool ","data-pr-tooltip":"Add Section",children:o.jsx("i",{className:"pi pi-plus",onClick:()=>{m(c),i()},children:o.jsx(Qt,{})})}),((ae=v[c])==null?void 0:ae.children.length)>1&&o.jsx("span",{className:"del-tool ml-2",children:o.jsx("i",{className:"pi pi-trash","data-pr-tooltip":"Delete",onClick:()=>{h(c,u),i()},children:o.jsx(Qt,{})})})]})]}):o.jsxs(o.Fragment,{children:[((Y=s==null?void 0:s.subHeadingText)==null?void 0:Y[A==null?void 0:A.type])&&o.jsx("p",{children:(pe=s==null?void 0:s.subHeadingText)==null?void 0:pe[A==null?void 0:A.type]}),o.jsx("div",{children:s.children.map((Q,se)=>{const be=`${l}-${se}`;return o.jsx(F.Fragment,{children:j(Q,be,c,u,se)},be)})})]})}):o.jsx(o.Fragment,{children:o.jsxs("div",{className:"",children:[(s==null?void 0:s.showSectionHeader)&&o.jsxs(o.Fragment,{children:[o.jsx("h4",{children:(ie=s==null?void 0:s.heading)==null?void 0:ie[A==null?void 0:A.type]}),o.jsx("p",{children:(J=s==null?void 0:s.subHeadingText)==null?void 0:J[A==null?void 0:A.type]}),o.jsx("hr",{})]}),s.children.map((Q,se)=>{const be=`${l}-${se}`;return o.jsx(F.Fragment,{children:o.jsx("div",{className:"",children:j(Q,be,c,u,se)},be)},be)})]})})]})},RSe=t=>{var s;const{data:e,currentPath:n,pageIndex:r,page:i}=t,a=F.useRef(null);return o.jsx(o.Fragment,{children:o.jsxs(sw,{ref:a,modules:[AV,Bve],spaceBetween:50,slidesPerView:1,navigation:{prevEl:".prev",nextEl:".next"},pagination:{clickable:!1},scrollbar:{el:".swiper-scrollbar",draggable:!1},onSwiper:l=>console.log(l),onSlideChange:()=>console.log("slide change"),children:[(s=e==null?void 0:e.children)==null?void 0:s.map((l,c)=>{var u;return(u=l==null?void 0:l.children)==null?void 0:u.map((d,f)=>{var h;return(h=d==null?void 0:d.children)==null?void 0:h.map((m,g)=>{var v;return(v=m==null?void 0:m.children)==null?void 0:v.map((A,w)=>{const x=`${n}-${c}-${f}-${g}-${w}`;return o.jsx(ow,{children:o.jsx("div",{className:"",children:o.jsx(qc,{page:i,column:m,type:"field",row:d,section:l,field:A,data:A,path:x,pageIndex:r,sectionIndex:c,rowIndex:f,columnIndex:g,fieldIndex:w},`component-${x}-${A==null?void 0:A.uuid}`)})},`swiper_slide_${x}`)})})})}),o.jsxs("div",{className:"flex justify-content-center",children:[o.jsx(kt,{className:"mr-2 p-button-info prev",size:"large",label:"Previous",icon:"pi pi-arrow-left",onClick:()=>{}}),o.jsx(kt,{size:"large",className:"p-button-info next",icon:"pi pi-arrow-right",label:"Next"})]})]})})},GSe=t=>{const{isAdvanceView:e,isRenderView:n,isPreview:r}=Zt(),{handleDrop:i}=on(),{data:a,path:s,pageIndex:l}=t,{formBuilderFormSchema:c}=on(),u=F.useRef(null),[{},d]=Qi({type:ta,item:{type:ta,uuid:a.uuid,children:a.children,path:s},collect:h=>({isDragging:h.isDragging()})});d(u);const f=(h,m,g,v)=>o.jsx(XSe,{data:h,section:h,path:m,page:a,pageIndex:g,sectionIndex:v},`section_${g}_${v}`);return o.jsx("div",{style:{overflowX:"auto"},className:`${n?"":"draggable page-css p-3 pb-4"}`,"data-image-src":a==null?void 0:a.bgImage,"data-bg-color":`#${a==null?void 0:a.bgColor}`,children:r===!1?o.jsxs(o.Fragment,{children:[a.children.map((h,m)=>{const g=`${s}-${m}`;return o.jsxs(F.Fragment,{children:[o.jsx(Tr,{isAdvanceView:e,data:{path:g,childrenCount:a.children.length},onDrop:i}),f(h,g,l,m)]},`section-${m}-${h.uuid}`)}),o.jsx(Tr,{isAdvanceView:e,data:{path:`${s}-${a.children.length}`,childrenCount:a.children.length,droppedField:a},onDrop:i,isLast:!0})]}):o.jsx(o.Fragment,{children:(c==null?void 0:c.surveyQuestionSlide)===!0?o.jsx(o.Fragment,{children:o.jsx(RSe,{page:a,data:a,currentPath:s,pageIndex:l})}):o.jsx("div",{className:"p-1",children:a.children.map((h,m)=>{const g=`${s}-${m}`;return o.jsx(F.Fragment,{children:((h==null?void 0:h.isHidden)===!1||!r)&&f(h,g,l,m)},`section-${m}-${h.uuid}`)})})})})},WSe=()=>{const[t,e]=F.useState(!1),{isAdvanceView:n,isPreview:r,emitSocketData:i}=Zt(),[a,s]=F.useState(!1),[l,c]=F.useState(0),{removePage:u,userSelectedLanguage:d,formBuilderFormLayout:f,formBuilderFormLayout:h,clonePage:m}=on(),g=(v,A,w)=>o.jsx(GSe,{data:v,path:A,pageIndex:w},`page-${v.uuid}`);return o.jsx(o.Fragment,{children:o.jsx("div",{className:"page",children:(h==null?void 0:h.length)===F9&&r===!0?o.jsx(o.Fragment,{children:(h==null?void 0:h.length)&&h.map((v,A)=>{const w=`${A}`;return o.jsx("div",{children:g(v,w,A)},`${v.uuid}-${A}`)})}):o.jsx(o.Fragment,{children:n===!0||r===!0?o.jsx(Ya,{activeIndex:l,onTabChange:v=>c(v.index),children:(h==null?void 0:h.length)&&h.map((v,A)=>{const w=`${A}`;return o.jsxs(hr,{disabled:!((v==null?void 0:v.isHidden)===!1||!r),header:"Page",headerTemplate:x=>o.jsx(q7,{options:x,pageIndex:A,page:v,isPreview:r,setTabSidebarSetting:s,clonePage:m,emitSocketData:i,formBuilderFormLayout:f,userSelectedLanguage:d,removePage:u,setPageActiveIndex:c,pages:h}),children:[r===!1&&o.jsx(Tf,{reusableBuilderElementModalVisibility:t,setReusableBuilderElementModalVisibility:e,pageIndex:A}),o.jsx(R0,{setVisibility:s,visibilty:a,pageIndex:A,page:v,emitSocketData:i}),g(v,w,A)]},`${v.uuid}-${A}`)})}):o.jsx(o.Fragment,{children:(h==null?void 0:h.length)>0&&(h==null?void 0:h.map((v,A)=>{const w=`${A}`;return o.jsxs(F.Fragment,{children:[r===!1&&o.jsx(Tf,{reusableBuilderElementModalVisibility:t,setReusableBuilderElementModalVisibility:e,pageIndex:A}),o.jsx(R0,{setVisibility:s,visibilty:a,pageIndex:A,page:v,emitSocketData:i}),g(v,w,A)]},`${v.uuid}-${A}`)}))})})})})},QSe={position:"relative"},JSe=t=>{var S,E,C;const{data:e,path:n,pageIndex:r,sectionIndex:i,rowIndex:a,columnIndex:s,section:l,row:c,page:u}=t,d=F.useRef(null),{handleDrop:f}=on(),{isPreview:h,isRenderView:m,isAdvanceView:g}=Zt(),[{isDragging:v},A]=Qi({type:ms,item:{type:ms,uuid:e==null?void 0:e.uuid,children:e.children,path:n},collect:_=>({isDragging:_.isDragging()})}),w=v&&!m?.25:1;A(d);const x=(_,T,N,O,B,M,z)=>o.jsx(qc,{page:u,type:"field",row:c,section:l,field:_,data:_,path:T,pageIndex:N,sectionIndex:O,rowIndex:B,columnIndex:M,fieldIndex:z},`component-${n}-${_==null?void 0:_.uuid}`);return o.jsx("div",{style:g?{...QSe,opacity:w}:{},className:m?"form-builder-column container-column":"draggable form-builder-column container-column",children:h===!1?o.jsxs("div",{className:"builder-row-column",children:[((S=e==null?void 0:e.children)==null?void 0:S.length)>0?(E=e==null?void 0:e.children)==null?void 0:E.map((_,T)=>{const N=`${n}-${T}`;return o.jsxs(F.Fragment,{children:[o.jsx(Tr,{isAdvanceView:g,data:{path:N,childrenCount:e.children.length,droppedField:e},onDrop:f}),x(_,N,r,i,a,s,T)]},N)}):o.jsxs("span",{className:"pt-4 text-center text-primary",style:{display:"block"},children:["Please drop the element from the sidebar below",o.jsx("p",{children:o.jsx("i",{className:"pi pi-arrow-down py-2",style:{fontSize:"2em"}})})]}),o.jsx(Tr,{isAdvanceView:!0,data:{path:`${n}-${e.children.length}`,childrenCount:e.children.length,droppedField:e},isLast:!0,onDrop:f})]}):o.jsx(o.Fragment,{children:(C=e==null?void 0:e.children)==null?void 0:C.map((_,T)=>{const N=`${n}-${T}`;return o.jsx(F.Fragment,{children:x(_,N,r,i,a,s,T)},N)})})})},ZSe={},exe=t=>{var N,O,B,M,z,P,j,de,he;const{data:e,path:n,pageIndex:r,sectionIndex:i,rowIndex:a,section:s,page:l}=t,c=F.useRef(null),{removeRow:u,addRow:d,cloneRow:f,formBuilderFormLayout:h,userSelectedLanguage:m}=on(),{isPreview:g,isRenderView:v}=Zt(),{task_status:A,TASK_PUBLISHED:w}=br(),[x,S]=F.useState(!1),[{isDragging:E},C]=Qi({type:bo,item:{type:bo,uuid:e.uuid,children:e.children,path:n,data:e},collect:te=>({isDragging:te.isDragging()})}),_=E?.25:1;C(c);const T=(te,G,ae,Y,pe,ie)=>o.jsx(JSe,{page:l,row:e,section:s,data:te,path:G,pageIndex:ae,sectionIndex:Y,rowIndex:pe,columnIndex:ie},`column-${n}-${te.uuid}`);return o.jsxs("div",{style:{...ZSe,opacity:_,marginTop:`${(N=e==null?void 0:e.margin)==null?void 0:N.top}px`,marginBottom:`${(O=e==null?void 0:e.margin)==null?void 0:O.bottom}px`,marginLeft:`${(B=e==null?void 0:e.margin)==null?void 0:B.left}px`,marginRight:`${(M=e==null?void 0:e.margin)==null?void 0:M.right}px`},className:v?"row container-row":"draggable row container-row",children:[x&&o.jsx(Dg,{visibilty:x,setVisibility:S,row:e,pageIndex:r,sectionIndex:i,rowIndex:a},"row_settings_"+r+i+a),g===!1?o.jsxs("div",{children:[o.jsx("span",{className:"row-setting-block-pdf-editor",children:o.jsxs("div",{className:"pdf-setting-container",children:[o.jsxs("button",{onClick:()=>{d(r,i)},children:[o.jsx("span",{className:"pi pi-plus"}),o.jsx(Qt,{})]}),((P=(z=h[r])==null?void 0:z.children[i])==null?void 0:P.children.length)>1&&o.jsxs("button",{onClick:()=>{u(r,i,a)},children:[o.jsx("span",{className:"pi pi-trash"}),o.jsx(Qt,{})]}),o.jsxs("button",{onClick:()=>{f(e,r,i,a)},children:[o.jsx("span",{className:"pi pi-clone"}),o.jsx(Qt,{})]}),o.jsxs("button",{onClick:()=>S(!0),children:[o.jsx("span",{className:"pi pi-cog"}),o.jsx(Qt,{})]})]})}),o.jsx("div",{className:"form-builder-columns",children:(j=e==null?void 0:e.children)==null?void 0:j.map((te,G)=>{const ae=`${n}-${G}`;return o.jsx(F.Fragment,{children:T(te,ae,r,i,a,G)},ae)})})]}):o.jsx(o.Fragment,{children:!(e!=null&&e.rowIsRepeatable&&A===w)&&o.jsxs(o.Fragment,{children:[o.jsx("h5",{children:(de=e==null?void 0:e.heading)==null?void 0:de[m==null?void 0:m.type]}),o.jsx("span",{children:(he=e==null?void 0:e.subHeadingText)==null?void 0:he[m==null?void 0:m.type]}),o.jsx("div",{className:"form-builder-columns",children:e.children.map((te,G)=>{const ae=`${n}-${G}`;return o.jsx(F.Fragment,{children:T(te,ae,r,i,a,G)},ae)})})]})})]})},txe=t=>{var C,_,T;const{data:e,path:n,pageIndex:r,sectionIndex:i,section:a,page:s}=t,{userSelectedLanguage:l}=on(),{isPreview:c,isAdvanceView:u}=Zt(),[d,f]=F.useState(!1),[h,m]=F.useState(!1),[g,v]=F.useState(null),A=F.useRef(null),[{isDragging:w},x]=Qi({type:ta,item:{type:ta,uuid:e.uuid,children:e.children,path:n},collect:N=>({isDragging:N.isDragging()})}),S=w?.25:1;x(A);const E=(N,O,B,M,z)=>o.jsx(exe,{page:s,section:a,data:N,path:O,pageIndex:B,sectionIndex:M,rowIndex:z},`row-${n}-${N.uuid}`);return o.jsxs("div",{style:{opacity:S,marginBottom:20},className:u?"draggable row":"",children:[c===!1&&o.jsx(Oh,{saveBuilderElementModalData:g,setSaveBuilderElementModalData:v,saveElementModal:h,setSaveElementModal:m}),d===!0&&o.jsx(Dh,{visibilty:d,setVisibility:f,section:e,pageIndex:r,sectionIndex:i},"section_settings_"+r+i),c===!1?o.jsx("div",{children:o.jsx("div",{children:e.children.map((N,O)=>{const B=`${n}-${O}`;return o.jsx(F.Fragment,{children:E(N,B,r,i,O)},B)})})}):o.jsx(o.Fragment,{children:o.jsxs("div",{children:[(e==null?void 0:e.showSectionHeader)&&o.jsxs(o.Fragment,{children:[o.jsx("h4",{children:(C=e==null?void 0:e.heading)==null?void 0:C[l==null?void 0:l.type]}),((_=e==null?void 0:e.subHeadingText)==null?void 0:_[l==null?void 0:l.type])&&o.jsx("p",{children:(T=e==null?void 0:e.subHeadingText)==null?void 0:T[l==null?void 0:l.type]}),o.jsx("hr",{})]}),e.children.map((N,O)=>{const B=`${n}-${O}`;return o.jsx(F.Fragment,{children:o.jsx("div",{className:"",children:E(N,B,r,i,O)},B)},B)})]})})]})},_5={},D5={height:"1280px",width:"100%"},nxe=t=>{var f,h,m,g;const{data:e,path:n,pageIndex:r}=t,{isPreview:i,isRenderView:a}=Zt(),s=F.useRef(null),[{isDragging:l},c]=Qi({type:ta,item:{type:ta,uuid:e.uuid,children:e.children,path:n},collect:v=>({isDragging:v.isDragging()})}),u=l?0:1;c(s);const d=(v,A,w,x)=>o.jsx(txe,{data:v,section:v,path:A,page:e,pageIndex:w,sectionIndex:x},`section_${w}_${x}`);return o.jsx("div",{style:{overflowX:"auto"},className:`${a?"":"draggable page-css p-3 pb-4"}`,"data-image-src":e==null?void 0:e.bgImage,"data-bg-color":`#${e==null?void 0:e.bgColor}`,children:o.jsx("div",{className:"pdf flex justify-content-center",children:i===!1?o.jsx("div",{id:e==null?void 0:e.uuid,className:"page-block ",style:(e==null?void 0:e.bgType)==="image"?{..._5,...D5,opacity:u,backgroundImage:`url("${e==null?void 0:e.bgImage}")`}:{..._5,...D5,opacity:u,backgroundColor:`#${e==null?void 0:e.bgColor}`},children:((e==null?void 0:e.isCoverPage)===!1||(e==null?void 0:e.isCoverPage)===void 0)&&o.jsx(o.Fragment,{children:e.children.map((v,A)=>{const w=`${n}-${A}`;return o.jsx(F.Fragment,{children:d(v,w,r,A)},`section-${A}-${v.uuid}`)})})}):o.jsx(o.Fragment,{children:o.jsx("div",{className:"page-block",style:(e==null?void 0:e.bgType)==="image"?{..._5,...D5,opacity:u,backgroundImage:`url("${e==null?void 0:e.bgImage}")`,backgroundSize:"cover"}:{..._5,...D5,opacity:u,backgroundColor:`#${e==null?void 0:e.bgColor}`},children:o.jsx("div",{style:{marginTop:`${(f=e==null?void 0:e.margin)==null?void 0:f.top}px`,marginBottom:`${(h=e==null?void 0:e.margin)==null?void 0:h.bottom}px`,marginLeft:`${(m=e==null?void 0:e.margin)==null?void 0:m.left}px`,marginRight:`${(g=e==null?void 0:e.margin)==null?void 0:g.right}px`},children:e.children.map((v,A)=>{const w=`${n}-${A}`;return o.jsx(F.Fragment,{children:((v==null?void 0:v.isHidden)===!1||!i)&&d(v,w,r,A)},`section-${A}-${v.uuid}`)})})})})})})},rxe=()=>{const{isPreview:t}=Zt(),[e,n]=F.useState(!1),[r,i]=F.useState(0),[a,s]=F.useState(!1),{formBuilderFormLayout:l}=on(),c=(u,d,f)=>o.jsx(nxe,{data:u,path:d,pageIndex:f},`page-${u.uuid}`);return o.jsx("div",{className:"page",children:(l==null?void 0:l.length)===F9&&t===!0?o.jsx(o.Fragment,{children:(l==null?void 0:l.length)&&l.map((u,d)=>{const f=`${d}`;return o.jsx("div",{className:"scroll-height-400",children:c(u,f,d)},`${u.uuid}-${d}`)})}):o.jsx(o.Fragment,{children:t===!1?o.jsx(Ya,{activeIndex:r,onTabChange:u=>i(u.index),children:(l==null?void 0:l.length)&&l.map((u,d)=>{const f=`${d}`;if((u==null?void 0:u.isHidden)===!1||!t)return o.jsxs(hr,{header:"Page",headerTemplate:h=>o.jsx(q7,{options:h,pageIndex:d,page:u,setTabSidebarSetting:n,setPageActiveIndex:i,pages:l}),children:[t===!1&&o.jsx(Tf,{reusableBuilderElementModalVisibility:a,setReusableBuilderElementModalVisibility:s,pageIndex:d}),o.jsxs("div",{className:"p-3",children:[o.jsx(R0,{setVisibility:n,visibilty:e,pageIndex:d,page:u}),o.jsx("div",{children:c(u,f,d)})]})]},`${u.uuid}-${d}`)})}):o.jsx("div",{className:"",children:(l==null?void 0:l.length)&&l.map((u,d)=>{var h;const f=`${d}`;if((u==null?void 0:u.isHidden)===!1||!t)return o.jsxs("section",{id:u==null?void 0:u.uuid,"data-nav-title":(h=u==null?void 0:u.title)==null?void 0:h.english,"data-scrollspy":!0,children:[t===!1&&o.jsx(Tf,{reusableBuilderElementModalVisibility:a,setReusableBuilderElementModalVisibility:s,pageIndex:d}),o.jsxs("div",{className:"p-3",children:[o.jsx(R0,{setVisibility:n,visibilty:e,pageIndex:d,page:u}),o.jsx("div",{children:c(u,f,d)})]})]},`${u.uuid}-${d}`)})})})})},ixe=t=>{var w,x,S,E;const e=F.useRef(null),{removeColumn:n,addColumn:r,cloneColumn:i,formBuilderFormLayout:a}=on(),{isPreview:s,emitSocketData:l}=Zt(),{options:c,pageIndex:u,sectionIndex:d,rowIndex:f,columnIndex:h,data:m}=t,g=c.collapsed?"pi pi-chevron-down":"pi pi-chevron-up",v=`${c.className} justify-content-space-between`,A=`${c.titleClassName} pl-1 text-primary`;return o.jsxs(o.Fragment,{children:[o.jsx(rn,{target:".clone-tool"}),o.jsx(rn,{target:".add-column-tool"}),o.jsxs("div",{className:v,children:[o.jsxs("span",{ref:s===!1?e:null,children:[o.jsx("button",{className:c.togglerClassName,children:o.jsx("span",{className:"pi pi-sliders-h dragabble"})}),o.jsxs("button",{className:c.togglerClassName,onClick:c.onTogglerClick,children:[o.jsx("span",{className:g}),o.jsx(Qt,{})]}),o.jsx("span",{className:A,children:"Column"})]}),s===!1&&o.jsxs("div",{className:"p-panel-icons",children:[o.jsx("span",{className:"add-column-tool","data-pr-tooltip":"Add Column",children:o.jsxs("button",{className:c.togglerClassName,onClick:()=>{r(u,d,f),l()},children:[o.jsx("span",{className:"pi pi-plus"}),o.jsx(Qt,{})]})}),((E=(S=(x=(w=a[u])==null?void 0:w.children[d])==null?void 0:x.children[f])==null?void 0:S.children)==null?void 0:E.length)>1&&o.jsxs("button",{className:c.togglerClassName,onClick:()=>{n(u,d,f,h),l()},children:[o.jsx("span",{className:"pi pi-trash"}),o.jsx(Qt,{})]}),o.jsx("span",{className:"clone-tool","data-pr-tooltip":"Clone",children:o.jsxs("button",{className:c.togglerClassName,onClick:()=>{i(m,u,d,f,h),l()},children:[o.jsx("span",{className:"pi pi-clone"}),o.jsx(Qt,{})]})})]})]})]})},axe={position:"relative"},sxe=t=>{var S,E,C,_,T;const{isAdvanceView:e,isRenderView:n,isPreview:r}=Zt(),{handleDrop:i}=on(),{data:a,path:s,pageIndex:l,sectionIndex:c,rowIndex:u,columnIndex:d,section:f,row:h,page:m}=t,g=F.useRef(null),[{isDragging:v},A]=Qi({type:ms,item:{type:ms,uuid:a==null?void 0:a.uuid,children:a.children,path:s},collect:N=>({isDragging:N.isDragging()})}),w=v&&!n?.25:1;A(g);const x=(N,O,B,M,z,P,j)=>o.jsx(qc,{page:m,column:a,type:"field",row:h,section:f,field:N,data:N,path:O,pageIndex:B,sectionIndex:M,rowIndex:z,columnIndex:P,fieldIndex:j},`component-${s}-${N==null?void 0:N.uuid}`);return o.jsx("div",{style:e?{...axe,opacity:w}:{},className:n?"form-builder-column container-column":"draggable form-builder-column container-column",children:r===!1?o.jsx(o.Fragment,{children:e===!0?o.jsxs(li,{className:"builder-row-column",header:"Column",toggleable:!0,headerTemplate:N=>o.jsx(ixe,{options:N,pageIndex:l,sectionIndex:c,rowIndex:u,data:a,columnIndex:d}),children:[((S=a==null?void 0:a.children)==null?void 0:S.length)>0?(E=a==null?void 0:a.children)==null?void 0:E.map((N,O)=>{const B=`${s}-${O}`;return o.jsxs(F.Fragment,{children:[o.jsx(Tr,{isAdvanceView:e,fieldDropArea:!0,data:{path:B,childrenCount:a.children.length,droppedField:a},onDrop:i}),x(N,B,l,c,u,d,O)]},B)}):o.jsxs("span",{className:"pt-4 text-center text-primary",style:{display:"block",zIndex:-1,width:"99%"},children:["Please drop the element from the sidebar below",o.jsx("p",{children:o.jsx("i",{className:"pi pi-arrow-down py-2",style:{fontSize:"2em"}})})]}),o.jsx(Tr,{isAdvanceView:e,fieldDropArea:!0,data:{path:`${s}-${a.children.length}`,childrenCount:a.children.length,droppedField:a},onDrop:i,isLast:!0})]}):o.jsx(o.Fragment,{children:o.jsxs("div",{children:[((C=a==null?void 0:a.children)==null?void 0:C.length)>0?(_=a==null?void 0:a.children)==null?void 0:_.map((N,O)=>{const B=`${s}-${O}`;return o.jsxs(F.Fragment,{children:[o.jsx(Tr,{isAdvanceView:e,fieldDropArea:!0,data:{path:B,childrenCount:a.children.length,droppedField:a},onDrop:i}),x(N,B,l,c,u,d,O)]},B)}):o.jsx(o.Fragment,{children:o.jsxs("span",{className:"pt-4 text-center text-primary",style:{display:"block",zIndex:-1,width:"99%"},children:["Please drop the element from the sidebar below",o.jsx("p",{children:o.jsx("i",{className:"pi pi-arrow-down py-2",style:{fontSize:"2em"}})})]})}),o.jsx(Tr,{isAdvanceView:e,dropHereLastField:!0,fieldDropArea:!0,data:{path:`${s}-${a.children.length}`,childrenCount:a.children.length,droppedField:a},onDrop:i,isLast:!0})]})})}):o.jsx(o.Fragment,{children:(T=a==null?void 0:a.children)==null?void 0:T.map((N,O)=>{const B=`${s}-${O}`;return o.jsx(F.Fragment,{children:x(N,B,l,c,u,d,O)},B)})})})},oxe=t=>{var x,S,E,C;const{options:e,pageIndex:n,sectionIndex:r,rowIndex:i,data:a}=t,[,s]=F.useState(!1),l=F.useRef(null),{isPreview:c,emitSocketData:u}=Zt(),{removeRow:d,addRow:f,cloneRow:h,formBuilderFormLayout:m,userSelectedLanguage:g}=on(),v=e!=null&&e.collapsed?"pi pi-chevron-down":"pi pi-chevron-up",A=`${e==null?void 0:e.className} justify-content-space-between`,w=`${e==null?void 0:e.titleClassName} pl-1 text-primary`;return o.jsxs(o.Fragment,{children:[o.jsx(rn,{target:".clone-tool"}),o.jsx(rn,{target:".setting-tool"}),o.jsx(rn,{target:".add-row-tool"}),o.jsxs("div",{className:A,children:[o.jsxs("span",{ref:c===!1?l:null,children:[o.jsx("button",{className:e==null?void 0:e.togglerClassName,children:o.jsx("span",{className:"pi pi-sliders-h dragabble"})}),o.jsxs("button",{className:e==null?void 0:e.togglerClassName,onClick:e==null?void 0:e.onTogglerClick,children:[o.jsx("span",{className:v}),o.jsx(Qt,{})]}),o.jsxs("span",{className:w,children:["Row:"," ",((x=a==null?void 0:a.heading)==null?void 0:x[g==null?void 0:g.type])!==""?(S=a==null?void 0:a.heading)==null?void 0:S[g==null?void 0:g.type]:"Untitled"]})]}),c===!1&&o.jsxs("div",{className:"p-panel-icons",children:[o.jsx("span",{className:"add-row-tool","data-pr-tooltip":"Add Row",children:o.jsxs("button",{className:e==null?void 0:e.togglerClassName,onClick:()=>{f(n,r),u()},children:[o.jsx("span",{className:"pi pi-plus"}),o.jsx(Qt,{})]})}),((C=(E=m[n])==null?void 0:E.children[r])==null?void 0:C.children.length)>1&&o.jsxs("button",{className:e==null?void 0:e.togglerClassName,onClick:()=>{d(n,r,i),u()},children:[o.jsx("span",{className:"pi pi-trash"}),o.jsx(Qt,{})]}),o.jsx("span",{className:"clone-tool","data-pr-tooltip":"Clone",children:o.jsxs("button",{className:e==null?void 0:e.togglerClassName,onClick:()=>{h(a,n,r,i),u()},children:[o.jsx("span",{className:"pi pi-clone"}),o.jsx(Qt,{})]})}),o.jsx("span",{className:"setting-tool","data-pr-tooltip":"Settings",children:o.jsxs("button",{onClick:()=>s(!0),className:e==null?void 0:e.togglerClassName,children:[o.jsx("span",{className:"pi pi-cog"}),o.jsx(Qt,{})]})})]})]})]})},lxe={},cxe=t=>{var pe,ie,J,Q,se,be,Ce,Te,ye,Ae,re;const{isAdvanceView:e,isRenderView:n,isPreview:r,isAdmin:i,renderType:a,emitSocketData:s}=Zt(),{handleDrop:l}=on(),{data:c,path:u,pageIndex:d,sectionIndex:f,rowIndex:h,section:m,page:g}=t,v=F.useRef(null),{userSelectedLanguage:A}=on(),{userTaskSubmitFormData:w,taskRegisterData:x,updateTaskRegisterData:S,updateTaskProgressValue:E,addUserDataFormSectionRepeatableData:C,removeUserDataFormSectionRepeatableData:_,task_status:T,TASK_PUBLISHED:N}=br(),[O,B]=F.useState(!1),[{isDragging:M},z]=Qi({type:bo,item:{type:bo,uuid:c.uuid,children:c.children,path:u,data:c},collect:U=>({isDragging:U.isDragging()})}),P=M?.25:1;z(v);const j=(U,Z,K,ue,Ee,ge)=>o.jsx(sxe,{page:g,row:c,section:m,data:U,path:Z,pageIndex:K,sectionIndex:ue,rowIndex:Ee,columnIndex:ge,emitSocketData:s},`column-${u}-${U.uuid}`),de=Et.findIndex(w,function(U){return(U==null?void 0:U.rowId)===(c==null?void 0:c.uuid)}),he=()=>{var K,ue,Ee;const U=Et.cloneDeep(x);((ue=(K=w[de])==null?void 0:K.repeatableFieldsData)==null?void 0:ue.length)>=(c==null?void 0:c.minimumEntries)?U[c==null?void 0:c.uuid]=(Ee=w[de])==null?void 0:Ee.repeatableFields:delete U[c==null?void 0:c.uuid];const Z=Object.keys(U).length;S(U),E(Z)},te=(pe=c==null?void 0:c.repeatableFields)==null?void 0:pe.map(U=>{var Z;return{fieldUuid:U==null?void 0:U.uuid,field:U==null?void 0:U.uuid,header:(Z=U==null?void 0:U.label)==null?void 0:Z.english}}),G=te==null?void 0:te.map(U=>o.jsx(fr,{field:U.field,header:U.header,body:Z=>o.jsx(o.Fragment,{children:o.jsx("div",{className:"post__content_repetable",dangerouslySetInnerHTML:{__html:Z[U==null?void 0:U.field]}})})},U.field)),ae=()=>{var ue;const U=[...w],Z=[];let K=!0;e:for(const[,Ee]of c.children.entries()){for(const[,ge]of Ee.children.entries())if(console.log("field.isValid",ge.isValid),ge!=null&&ge.isPostField&&ge.isValid!==1){const me={fieldId:ge.uuid,rowIndex:h};console.log("inValidData",me),Z.push(me),Gt.emit("OnInvalidFieldCatch",me),K=!1;break e}K=!0}K&&(Z==null?void 0:Z.length)===0&&(C(c==null?void 0:c.uuid,(ue=U[de])==null?void 0:ue.repeatableFields),Gt.emit("clearRepeatableFields",c==null?void 0:c.uuid),he())},Y=U=>o.jsx(o.Fragment,{children:o.jsx(kt,{text:!0,type:"button",className:"p-button-danger ",onClick:()=>{_(c==null?void 0:c.uuid,U==null?void 0:U.rowIndex),setTimeout(()=>{he()},1e3)},icon:"pi pi-trash"})});return o.jsxs("div",{style:{...lxe,opacity:P,marginTop:`${(ie=c==null?void 0:c.margin)==null?void 0:ie.top}px`,marginBottom:`${(J=c==null?void 0:c.margin)==null?void 0:J.bottom}px`,marginLeft:`${(Q=c==null?void 0:c.margin)==null?void 0:Q.left}px`,marginRight:`${(se=c==null?void 0:c.margin)==null?void 0:se.right}px`},className:n?"row container-row":"draggable row container-row",children:[O&&o.jsx(Dg,{renderType:a,visibilty:O,setVisibility:B,row:c,pageIndex:d,sectionIndex:f,rowIndex:h,emitSocketData:s},"row_settings_"+d+f+h),r===!1?o.jsx(o.Fragment,{children:e===!0?o.jsx(li,{header:"Row",toggleable:!0,headerTemplate:U=>o.jsx(oxe,{options:U,pageIndex:d,sectionIndex:f,rowIndex:h,data:c}),children:o.jsxs("div",{className:"form-builder-columns",style:{overflowX:"auto"},children:[(be=c==null?void 0:c.children)==null?void 0:be.map((U,Z)=>{const K=`${u}-${Z}`;return o.jsxs(F.Fragment,{children:[o.jsx(Tr,{isAdvanceView:e,data:{path:K,childrenCount:c.children.length},onDrop:l,className:"horizontalDrag"}),j(U,K,d,f,h,Z)]},K)}),o.jsx(Tr,{isAdvanceView:e,data:{path:`${u}-${c.children.length}`,childrenCount:c.children.length},onDrop:l,className:"horizontalDrag",isLast:!0})]})}):o.jsx(o.Fragment,{children:o.jsx("div",{className:e?"form-builder-columns":"",style:e?{overflowX:"auto"}:{},children:(Ce=c==null?void 0:c.children)==null?void 0:Ce.map((U,Z)=>{const K=`${u}-${Z}`;return o.jsx(F.Fragment,{children:j(U,K,d,f,h,Z)},K)})})})}):o.jsx(o.Fragment,{children:!(c!=null&&c.rowIsRepeatable&&T===N)&&o.jsxs(o.Fragment,{children:[o.jsx("h5",{children:(Te=c==null?void 0:c.heading)==null?void 0:Te[A==null?void 0:A.type]}),o.jsx("span",{children:(ye=c==null?void 0:c.subHeadingText)==null?void 0:ye[A==null?void 0:A.type]}),o.jsx("div",{className:"form-builder-columns",children:c.children.map((U,Z)=>{const K=`${u}-${Z}`;return o.jsx(F.Fragment,{children:j(U,K,d,f,h,Z)},K)})})]})}),(c==null?void 0:c.rowIsRepeatable)&&T!==N&&o.jsx(kt,{text:!0,type:"button",className:"p-button-success mb-3",onClick:()=>ae(),label:(Ae=c.addToListButtonLabel)==null?void 0:Ae[A==null?void 0:A.type]}),(c==null?void 0:c.rowIsRepeatable)&&o.jsxs("div",{className:"card",children:[o.jsxs(Hs,{value:(w==null?void 0:w.length)>0?(re=w[de])==null?void 0:re.repeatableFieldsData:[],children:[G,T!==N&&o.jsx(fr,{style:{width:"10%"},headerStyle:{textAlign:"center"},bodyStyle:{textAlign:"left",overflow:"visible"},body:U=>Y(U)})]}),i&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(Ni,{field:c})]})]})]})},uxe=t=>{var he,te,G,ae,Y,pe,ie,J;const{isAdvanceView:e,isPreview:n,renderType:r,emitSocketData:i}=Zt(),{handleDrop:a}=on(),{data:s,path:l,pageIndex:c,sectionIndex:u,section:d,page:f}=t,{removeSection:h,addSection:m,cloneSection:g,formBuilderFormLayout:v,userSelectedLanguage:A}=on(),[w,x]=F.useState(!1),[S,E]=F.useState(!1),[C,_]=F.useState({reusable_template_schema:""}),[T,N]=F.useState(!1),O=F.useRef(null),B=(Q,se)=>{_(be=>({...be,[Q]:se}))},[{isDragging:M},z]=Qi({type:ta,item:{type:ta,uuid:s.uuid,children:s.children,path:l},collect:Q=>({isDragging:Q.isDragging()})}),P=M?.25:1;z(O);const j=(Q,se,be,Ce,Te)=>o.jsx(cxe,{page:f,section:d,data:Q,path:se,pageIndex:be,sectionIndex:Ce,rowIndex:Te,emitSocketData:i},`row-${l}-${Q.uuid}`),de=(Q,se,be)=>{var Ae,re;const Ce=Q.collapsed?"pi pi-chevron-down":"pi pi-chevron-up",Te=`${Q.className} justify-content-space-between panel-tab-section`,ye=`${Q.titleClassName} pl-1 text-primary`;return o.jsxs("div",{className:Te,children:[o.jsxs("span",{ref:n===!1?O:null,children:[o.jsx("button",{className:Q.togglerClassName,children:o.jsx("span",{className:"pi pi-sliders-h dragabble"})}),o.jsxs("button",{className:Q.togglerClassName,onClick:Q.onTogglerClick,children:[o.jsx("span",{className:Ce}),o.jsx(Qt,{})]}),o.jsxs("span",{className:ye,children:[be+1," ",(Ae=s==null?void 0:s.heading)==null?void 0:Ae[A==null?void 0:A.type]]})]}),n===!1&&o.jsxs(o.Fragment,{children:[o.jsx(rn,{target:".clone-tool"}),o.jsx(rn,{target:".del-tool"}),o.jsx(rn,{target:".setting-tool"}),o.jsx(rn,{target:".add-section-tool"}),o.jsx(rn,{target:".save-tool"}),o.jsx(rn,{target:".settings-tool"}),o.jsxs("div",{className:"p-panel-icons",children:[o.jsx("span",{className:"add-section-tool","data-pr-tooltip":"Add Section",children:o.jsxs("button",{className:Q.togglerClassName,onClick:()=>{m(se),i()},children:[o.jsx("span",{className:"pi pi-plus"}),o.jsx(Qt,{})]})}),((re=v[se])==null?void 0:re.children.length)>1&&o.jsx("span",{className:"del-tool","data-pr-tooltip":"Delete",children:o.jsxs("button",{className:Q.togglerClassName,onClick:()=>{h(se,be),i()},children:[o.jsx("span",{className:"pi pi-trash"}),o.jsx(Qt,{})]})}),o.jsx("span",{className:"save-tool","data-pr-tooltip":"Save",children:o.jsxs("button",{className:Q.togglerClassName,onClick:()=>{B("reusable_template_schema",s),E(!0)},children:[o.jsx("span",{className:"pi pi-save"}),o.jsx(Qt,{})]})}),o.jsx("span",{className:"clone-tool","data-pr-tooltip":"Clone",children:o.jsxs("button",{className:Q.togglerClassName,onClick:()=>{g(s,se,be),i()},children:[o.jsx("span",{className:"pi pi-clone"}),o.jsx(Qt,{})]})}),o.jsx("span",{className:"settings-tool","data-pr-tooltip":"Settings",children:o.jsxs("button",{className:Q.togglerClassName,onClick:()=>x(!0),children:[o.jsx("span",{className:"pi pi-cog"}),o.jsx(Qt,{})]})})]})]})]})};return o.jsxs("div",{style:{opacity:P,marginBottom:20},className:e?"draggable row":"",children:[n===!1&&o.jsx(Oh,{saveBuilderElementModalData:C,setSaveBuilderElementModalData:_,saveElementModal:S,setSaveElementModal:E}),w===!0&&o.jsx(Dh,{renderType:r,visibilty:w,setVisibility:x,section:s,pageIndex:c,sectionIndex:u,emitSocketData:i},"section_settings_"+c+u),n===!1?o.jsx(o.Fragment,{children:e===!0?o.jsxs(li,{header:(he=s==null?void 0:s.heading)==null?void 0:he.english,toggleable:!0,headerTemplate:Q=>de(Q,c,u),onMouseEnter:()=>N(!0),onMouseLeave:()=>N(!1),children:[((te=s==null?void 0:s.subHeadingText)==null?void 0:te[A==null?void 0:A.type])&&o.jsx("p",{children:(G=s==null?void 0:s.subHeadingText)==null?void 0:G[A==null?void 0:A.type]}),o.jsxs("div",{children:[s.children.map((Q,se)=>{const be=`${l}-${se}`;return o.jsxs(F.Fragment,{children:[o.jsx(Tr,{isAdvanceView:e,data:{path:be,childrenCount:s.children.length},onDrop:a}),j(Q,be,c,u,se)]},be)}),o.jsx(Tr,{isAdvanceView:e,data:{path:`${l}-${s.children.length}`,childrenCount:s.children.length,droppedField:s},onDrop:a,isLast:!0})]}),T&&o.jsxs("div",{className:"m-3 flex justify-content-end",children:[o.jsx("span",{className:"add-section-tool ","data-pr-tooltip":"Add Section",children:o.jsx("i",{className:"pi pi-plus",onClick:()=>{m(c),i()},children:o.jsx(Qt,{})})}),((ae=v[c])==null?void 0:ae.children.length)>1&&o.jsx("span",{className:"del-tool ml-2",children:o.jsx("i",{className:"pi pi-trash","data-pr-tooltip":"Delete",onClick:()=>{h(c,u),i()},children:o.jsx(Qt,{})})})]})]}):o.jsxs(o.Fragment,{children:[((Y=s==null?void 0:s.subHeadingText)==null?void 0:Y[A==null?void 0:A.type])&&o.jsx("p",{children:(pe=s==null?void 0:s.subHeadingText)==null?void 0:pe[A==null?void 0:A.type]}),o.jsx("div",{children:s.children.map((Q,se)=>{const be=`${l}-${se}`;return o.jsx(F.Fragment,{children:j(Q,be,c,u,se)},be)})})]})}):o.jsx(o.Fragment,{children:o.jsxs("div",{className:"",children:[(s==null?void 0:s.showSectionHeader)&&o.jsxs(o.Fragment,{children:[o.jsx("h4",{children:(ie=s==null?void 0:s.heading)==null?void 0:ie[A==null?void 0:A.type]}),o.jsx("p",{children:(J=s==null?void 0:s.subHeadingText)==null?void 0:J[A==null?void 0:A.type]}),o.jsx("hr",{})]}),s.children.map((Q,se)=>{const be=`${l}-${se}`;return o.jsx(F.Fragment,{children:o.jsx("div",{className:"",children:j(Q,be,c,u,se)},be)},be)})]})})]})},dxe={position:"relative"},fxe=t=>{var S,E,C;const{isAdvanceView:e,isRenderView:n,isPreview:r}=Zt(),{handleDrop:i}=on(),{data:a,path:s,pageIndex:l,sectionIndex:c,rowIndex:u,columnIndex:d,section:f,row:h,page:m}=t,g=F.useRef(null),[{isDragging:v},A]=Qi({type:ms,item:{type:ms,uuid:a==null?void 0:a.uuid,children:a.children,path:s},collect:_=>({isDragging:_.isDragging()})}),w=v&&!n?.25:1;A(g);const x=(_,T,N,O,B,M,z)=>o.jsx(qc,{page:m,type:"field",row:h,column:a,section:f,field:_,data:_,path:T,pageIndex:N,sectionIndex:O,rowIndex:B,columnIndex:M,fieldIndex:z},`component-${s}-${_==null?void 0:_.uuid}`);return o.jsx("div",{style:e?{...dxe,opacity:w}:{},className:n?"":"draggable column container-column",children:r===!1?o.jsx(o.Fragment,{children:o.jsxs("div",{children:[((S=a==null?void 0:a.children)==null?void 0:S.length)>0?(E=a==null?void 0:a.children)==null?void 0:E.map((_,T)=>{const N=`${s}-${T}`;return o.jsxs(F.Fragment,{children:[o.jsx(Tr,{isAdvanceView:e,fieldDropArea:!0,data:{path:N,childrenCount:a.children.length,droppedField:a},onDrop:i}),x(_,N,l,c,u,d,T)]},N)}):o.jsx(o.Fragment,{}),o.jsx(Tr,{isAdvanceView:e,dropHereLastField:!0,fieldDropArea:!0,data:{path:`${s}-${a.children.length}`,childrenCount:a.children.length,droppedField:a},onDrop:i,isLast:!0})]})}):o.jsx(o.Fragment,{children:(C=a==null?void 0:a.children)==null?void 0:C.map((_,T)=>{const N=`${s}-${T}`;return o.jsx(F.Fragment,{children:x(_,N,l,c,u,d,T)},N)})})})},hxe=t=>{var l;const{isAdvanceView:e}=Zt(),{data:n,page:r,currentPath:i,pageIndex:a}=t,s=(c,u,d,f,h,m,g,v)=>o.jsx(fxe,{page:r,row:v,section:g,data:c,path:`${d}-${f}-${h}-${m}`,pageIndex:d,sectionIndex:f,rowIndex:h,columnIndex:m},`column-${i}-${c.uuid}`);return o.jsx(o.Fragment,{children:(l=n==null?void 0:n.children)==null?void 0:l.map((c,u)=>{var d;return(d=c==null?void 0:c.children)==null?void 0:d.map((f,h)=>{var m;return o.jsx(o.Fragment,{children:o.jsx("div",{className:e?"columns":"",style:e?{overflowX:"auto"}:{},children:(m=f==null?void 0:f.children)==null?void 0:m.map((g,v)=>{const A=`${i}-${u}-${h}-${v}`;return o.jsx(F.Fragment,{children:s(g,A,a,u,h,v,c,f)},A)})})})})})})},pxe=t=>{const{data:e,path:n,pageIndex:r}=t,{isAdvanceView:i,isRenderView:a,isPreview:s}=Zt(),{formBuilderFormSchema:l,handleDrop:c}=on(),u=F.useRef(null),[{},d]=Qi({type:ta,item:{type:ta,uuid:e.uuid,children:e.children,path:n},collect:h=>({isDragging:h.isDragging()})});d(u);const f=(h,m,g,v)=>o.jsx(uxe,{data:h,section:h,path:m,page:e,pageIndex:g,sectionIndex:v},`section_${g}_${v}`);return o.jsx("div",{style:{overflowX:"auto"},className:`${a?"":"draggable page-css p-3 pb-4"}`,"data-image-src":e==null?void 0:e.bgImage,"data-bg-color":`#${e==null?void 0:e.bgColor}`,children:s===!1?o.jsx(o.Fragment,{children:i?o.jsxs(o.Fragment,{children:[e.children.map((h,m)=>{const g=`${n}-${m}`;return o.jsxs(F.Fragment,{children:[i===!0&&o.jsx(Tr,{isAdvanceView:i,data:{path:g,childrenCount:e.children.length},onDrop:c}),f(h,g,r,m)]},`section-${m}-${h.uuid}`)}),i===!0&&o.jsx(Tr,{isAdvanceView:i,data:{path:`${n}-${e.children.length}`,childrenCount:e.children.length,droppedField:e},onDrop:c,isLast:!0})]}):o.jsx(o.Fragment,{children:o.jsx(hxe,{page:e,data:e,path:n,pageIndex:r})})}):o.jsx(o.Fragment,{children:o.jsx("div",{className:"p-1",children:e.children.map((h,m)=>{const g=`${n}-${m}`;return o.jsx(F.Fragment,{children:l!=null&&l.showConditionalFields?o.jsx(o.Fragment,{children:o.jsx("div",{children:f(h,g,r,m)})}):((h==null?void 0:h.isHidden)===!1||!s)&&f(h,g,r,m)},`section-${m}-${h.uuid}`)})})})})},gxe=()=>{const[t,e]=F.useState(!1),{formBuilderFormLayout:n}=on(),{isPreview:r}=Zt(),i=()=>{},a=(s,l,c)=>o.jsx(pxe,{data:s,path:l,pageIndex:c},`page-${s.uuid}`);return o.jsx(o.Fragment,{children:o.jsx("div",{className:"page",children:o.jsx("div",{children:(n==null?void 0:n.length)&&n.map((s,l)=>{const c=`${l}`;if((s==null?void 0:s.isHidden)===!1||!r)return o.jsxs("div",{children:[o.jsx(R0,{setVisibility:e,visibilty:t,pageIndex:l,page:s,emitSocketData:i}),a(s,c,l)]},`policie-page-${l}`)})})})})},mxe={position:"relative"},vxe=t=>{var S;const{isPreview:e,isRenderView:n,isAdvanceView:r}=Zt(),{data:i,path:a,pageIndex:s,sectionIndex:l,rowIndex:c,columnIndex:u,section:d,row:f,page:h}=t,m=F.useRef(null),{handleDrop:g}=on(),[{isDragging:v},A]=Qi({type:ms,item:{type:ms,uuid:i==null?void 0:i.uuid,children:i.children,path:a},collect:E=>({isDragging:E.isDragging()})}),w=v&&!n?.25:1;A(m);const x=(E,C,_,T,N,O,B)=>o.jsx(qc,{page:h,type:"field",row:f,section:d,field:E,data:E,path:C,pageIndex:_,sectionIndex:T,rowIndex:N,columnIndex:O,fieldIndex:B},`component-${a}-${E==null?void 0:E.uuid}`);return o.jsx("div",{style:r?{...mxe,opacity:w}:{},className:n?"form-builder-column container-column":"draggable form-builder-column container-column",children:!e&&o.jsxs("div",{children:[(S=i==null?void 0:i.children)==null?void 0:S.map((E,C)=>{const _=`${a}-${C}`;return o.jsxs(F.Fragment,{children:[o.jsx(Tr,{fieldDropArea:!0,isAdvanceView:r,data:{path:_,childrenCount:i.children.length,droppedField:i},onDrop:g}),x(E,_,s,l,c,u,C)]},_)}),i.children.length===0&&o.jsx("p",{className:"text-center",children:"Add element by dragging and dropping element from the sidebar into the dropzone area"}),o.jsx(Tr,{fieldDropArea:!0,isAdvanceView:r,data:{path:`${a}-${i.children.length}`,childrenCount:i.children.length,droppedField:i},onDrop:g,isLast:!0})]})})},bxe={},yxe=t=>{var Y,pe,ie,J,Q,se,be;const{data:e,path:n,pageIndex:r,sectionIndex:i,rowIndex:a,section:s,page:l}=t,c=F.useRef(null),{userSelectedLanguage:u,handleDrop:d}=on(),{userTaskSubmitFormData:f,taskRegisterData:h,updateTaskRegisterData:m,updateTaskProgressValue:g,addUserDataFormSectionRepeatableData:v,removeUserDataFormSectionRepeatableData:A,task_status:w,TASK_PUBLISHED:x}=br(),{isRenderView:S,isAdmin:E,isAdvanceView:C,emitSocketData:_,renderType:T}=Zt(),[N,O]=F.useState(!1),[{isDragging:B},M]=Qi({type:bo,item:{type:bo,uuid:e.uuid,children:e.children,path:n,data:e},collect:Ce=>({isDragging:Ce.isDragging()})}),z=B?.25:1;M(c);const P=(Ce,Te,ye,Ae,re,U)=>o.jsx(vxe,{page:l,row:e,section:s,data:Ce,path:Te,pageIndex:ye,sectionIndex:Ae,rowIndex:re,columnIndex:U},`column-${n}-${Ce.uuid}`),j=Et.findIndex(f,function(Ce){return(Ce==null?void 0:Ce.rowId)===(e==null?void 0:e.uuid)}),de=()=>{var ye,Ae,re;const Ce=Et.cloneDeep(h);((Ae=(ye=f[j])==null?void 0:ye.repeatableFieldsData)==null?void 0:Ae.length)>=(e==null?void 0:e.minimumEntries)?Ce[e==null?void 0:e.uuid]=(re=f[j])==null?void 0:re.repeatableFields:delete Ce[e==null?void 0:e.uuid];const Te=Object.keys(Ce).length;m(Ce),g(Te)},he=(Y=e==null?void 0:e.repeatableFields)==null?void 0:Y.map(Ce=>{var Te;return{fieldUuid:Ce==null?void 0:Ce.uuid,field:Ce==null?void 0:Ce.uuid,header:(Te=Ce==null?void 0:Ce.label)==null?void 0:Te.english}}),te=he==null?void 0:he.map(Ce=>o.jsx(fr,{field:Ce.field,header:Ce.header,body:Te=>o.jsx(o.Fragment,{children:o.jsx("div",{className:"post__content_repetable",dangerouslySetInnerHTML:{__html:Te[Ce==null?void 0:Ce.field]}})})},Ce.field)),G=()=>{var Ae;const Ce=[...f],Te=[];let ye=!0;e:for(const[,re]of e.children.entries()){for(const[,U]of re.children.entries())if(console.log("field.isValid",U.isValid),U!=null&&U.isPostField&&U.isValid!==1){const Z={fieldId:U.uuid,rowIndex:a};console.log("inValidData",Z),Te.push(Z),Gt.emit("OnInvalidFieldCatch",Z),ye=!1;break e}ye=!0}ye&&(Te==null?void 0:Te.length)===0&&(v(e==null?void 0:e.uuid,(Ae=Ce[j])==null?void 0:Ae.repeatableFields),Gt.emit("clearRepeatableFields",e==null?void 0:e.uuid),de())},ae=Ce=>o.jsx(o.Fragment,{children:o.jsx(kt,{text:!0,type:"button",className:"p-button-danger ",onClick:()=>{A(e==null?void 0:e.uuid,Ce==null?void 0:Ce.rowIndex),setTimeout(()=>{de()},1e3)},icon:"pi pi-trash"})});return o.jsxs("div",{style:{...bxe,opacity:z,marginTop:`${(pe=e==null?void 0:e.margin)==null?void 0:pe.top}px`,marginBottom:`${(ie=e==null?void 0:e.margin)==null?void 0:ie.bottom}px`,marginLeft:`${(J=e==null?void 0:e.margin)==null?void 0:J.left}px`,marginRight:`${(Q=e==null?void 0:e.margin)==null?void 0:Q.right}px`},className:S?"row container-row":"draggable row container-row",children:[N&&o.jsx(Dg,{renderType:T,visibilty:N,setVisibility:O,row:e,pageIndex:r,sectionIndex:i,rowIndex:a,emitSocketData:_},"row_settings_"+r+i+a),o.jsxs("div",{className:"form-builder-columns",children:[e.children.map((Ce,Te)=>{const ye=`${n}-${Te}`;return o.jsxs(F.Fragment,{children:[T===Y1&&o.jsx(Tr,{isAdvanceView:C,data:{path:ye,childrenCount:e.children.length},onDrop:d,className:"horizontalDrag"}),P(Ce,ye,r,i,a,Te)]},ye)}),o.jsx(Tr,{isAdvanceView:C,data:{path:`${n}-${e.children.length}`,childrenCount:e.children.length},onDrop:d,className:"horizontalDrag",isLast:!0})]}),(e==null?void 0:e.rowIsRepeatable)&&w!==x&&o.jsx(kt,{text:!0,type:"button",className:"p-button-success mb-3",onClick:()=>G(),label:(se=e.addToListButtonLabel)==null?void 0:se[u==null?void 0:u.type]}),(e==null?void 0:e.rowIsRepeatable)&&o.jsxs("div",{className:"card",children:[o.jsxs(Hs,{value:(f==null?void 0:f.length)>0?(be=f[j])==null?void 0:be.repeatableFieldsData:[],children:[te,w!==x&&o.jsx(fr,{style:{width:"10%"},headerStyle:{textAlign:"center"},bodyStyle:{textAlign:"left",overflow:"visible"},body:Ce=>ae(Ce)})]}),E&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(Ni,{field:e})]})]})]})},Axe=t=>{var j,de;const{data:e,path:n,pageIndex:r,sectionIndex:i,section:a,page:s}=t,{removeSection:l,addSection:c,cloneSection:u,formBuilderFormLayout:d,userSelectedLanguage:f,handleDrop:h}=on(),{isPreview:m,isAdvanceView:g,renderType:v,emitSocketData:A}=Zt(),[w,x]=F.useState(!1),[S,E]=F.useState(!1),[C,_]=F.useState({reusable_template_schema:""}),T=F.useRef(null),N=(he,te)=>{_(G=>({...G,[he]:te}))},[{isDragging:O},B]=Qi({type:ta,item:{type:ta,uuid:e.uuid,children:e.children,path:n},collect:he=>({isDragging:he.isDragging()})}),M=O?.25:1;B(T);const z=(he,te,G,ae,Y)=>o.jsx(yxe,{page:s,section:a,data:he,path:te,pageIndex:G,sectionIndex:ae,rowIndex:Y},`row-${n}-${he.uuid}`),P=(he,te,G)=>{var ie,J;const ae=he.collapsed?"pi pi-chevron-down":"pi pi-chevron-up",Y=`${he.className} justify-content-space-between panel-tab-section`,pe=`${he.titleClassName} pl-1 text-primary`;return o.jsxs("div",{className:Y,children:[o.jsxs("span",{ref:m===!1?T:null,children:[o.jsx("button",{className:he.togglerClassName,children:o.jsx("span",{className:"pi pi-sliders-h dragabble"})}),o.jsxs("button",{className:he.togglerClassName,onClick:he.onTogglerClick,children:[o.jsx("span",{className:ae}),o.jsx(Qt,{})]}),o.jsxs("span",{className:pe,children:[G+1," ",(ie=e==null?void 0:e.heading)==null?void 0:ie[f==null?void 0:f.type]]})]}),m===!1&&o.jsxs(o.Fragment,{children:[o.jsx(rn,{target:".clone-tool"}),o.jsx(rn,{target:".del-tool"}),o.jsx(rn,{target:".setting-tool"}),o.jsx(rn,{target:".add-section-tool"}),o.jsx(rn,{target:".save-tool"}),o.jsx(rn,{target:".settings-tool"}),o.jsxs("div",{className:"p-panel-icons",children:[o.jsx("span",{className:"add-section-tool","data-pr-tooltip":"Add Section",children:o.jsxs("button",{className:he.togglerClassName,onClick:()=>{c(te),A()},children:[o.jsx("span",{className:"pi pi-plus"}),o.jsx(Qt,{})]})}),((J=d[te])==null?void 0:J.children.length)>1&&o.jsx("span",{className:"del-tool","data-pr-tooltip":"Delete",children:o.jsxs("button",{className:he.togglerClassName,onClick:()=>{l(te,G),A()},children:[o.jsx("span",{className:"pi pi-trash"}),o.jsx(Qt,{})]})}),o.jsx("span",{className:"save-tool","data-pr-tooltip":"Save",children:o.jsxs("button",{className:he.togglerClassName,onClick:()=>{N("reusable_template_schema",e),E(!0)},children:[o.jsx("span",{className:"pi pi-save"}),o.jsx(Qt,{})]})}),o.jsx("span",{className:"clone-tool","data-pr-tooltip":"Clone",children:o.jsxs("button",{className:he.togglerClassName,onClick:()=>{u(e,te,G),A()},children:[o.jsx("span",{className:"pi pi-clone"}),o.jsx(Qt,{})]})}),o.jsx("span",{className:"settings-tool","data-pr-tooltip":"Settings",children:o.jsxs("button",{className:he.togglerClassName,onClick:()=>x(!0),children:[o.jsx("span",{className:"pi pi-cog"}),o.jsx(Qt,{})]})})]})]})]})};return o.jsxs("div",{style:{opacity:M,marginBottom:20},className:g?"draggable row":"",children:[m===!1&&o.jsx(Oh,{saveBuilderElementModalData:C,setSaveBuilderElementModalData:_,saveElementModal:S,setSaveElementModal:E}),w===!0&&o.jsx(Dh,{renderType:v,visibilty:w,setVisibility:x,section:e,pageIndex:r,sectionIndex:i,emitSocketData:A},"section_settings_"+r+i),m===!1?o.jsxs(li,{className:"mb-5",header:(j=e==null?void 0:e.heading)==null?void 0:j.english,toggleable:!0,headerTemplate:he=>P(he,r,i),children:[o.jsx("p",{children:(de=e==null?void 0:e.subHeadingText)==null?void 0:de[f==null?void 0:f.type]}),o.jsxs("div",{className:"",children:[e.children.map((he,te)=>{const G=`${n}-${te}`;return o.jsx(F.Fragment,{children:z(he,G,r,i,te)},G)}),o.jsx(Tr,{isAdvanceView:g,data:{path:`${n}-${e.children.length}`,childrenCount:e.children.length},onDrop:h,className:"horizontalDrag",isLast:!0})]})]}):o.jsx(o.Fragment,{})]})},wxe=t=>{const{isRenderView:e,isPreview:n}=Zt(),{data:r,path:i,pageIndex:a}=t,s=F.useRef(null),[,l]=Qi({type:ta,item:{type:ta,uuid:r.uuid,children:r.children,path:i},collect:u=>({isDragging:u.isDragging()})});l(s);const c=(u,d,f,h)=>o.jsx(Axe,{data:u,section:u,path:d,pageIndex:f,sectionIndex:h,page:r},`section_${f}_${h}`);return o.jsx("div",{style:{overflowX:"auto"},className:`${e?"":"draggable page-css p-3 pb-4"}`,"data-image-src":r==null?void 0:r.bgImage,"data-bg-color":`#${r==null?void 0:r.bgColor}`,children:n?o.jsx(o.Fragment,{}):o.jsx("div",{className:"p-1",children:r.children.map((u,d)=>{const f=`${i}-${d}`;return o.jsx(F.Fragment,{children:c(u,f,a,d)},`section-${d}-${u.uuid}`)})})})},Sxe=()=>{const{formBuilderFormLayout:t}=on(),e=(n,r,i)=>o.jsx(wxe,{data:n,path:r,pageIndex:i},`page-${n.uuid}`);return o.jsx(o.Fragment,{children:o.jsx("div",{className:"page",children:(t==null?void 0:t.length)&&t.map((n,r)=>{const i=`${r}`;return o.jsx("div",{children:e(n,i,r)},`exam-page-${r}`)})})})},xxe=t=>{var _,T,N,O,B;const{userSelectedLanguage:e,formBuilderConfigurationType:n,builderTemplateName:r,formBuilderFormSchema:i}=on(),a=[{label:{english:"List main maintenance safety tips? "},componentType:"question",questionText:{french:"Quels sont les principaux conseils de sécurité pour la maintenance?? ",english:"List main maintenance safety tips? "},answerOptions:[],isHidden:!1,uuid:"rtest",options:[],underLined:!1,isAllowMultipleAnswer:!1,resizableColumns:!1,reorderableColumns:!1,timeLimit:0,score:0,subject_id:0,course_category_id:0,TextEditorProps:!1}],{questions:s}=t,[l,c]=F.useState(),[u,d]=F.useState([]),{media:f}=Zt(),h=(_=f==null?void 0:f.image)!=null&&_.MediaImage?(T=f==null?void 0:f.image)==null?void 0:T.MediaImage:o.jsx(o.Fragment,{}),m={assessment_id:"abc123",name:`${n==null?void 0:n.name} - ${r}`,label:"Quiz 1",quizConfiguration:{quizPassMark:75,quizTimeLimit:2,quizMaxAttempts:99,quizSequentialAnswer:0,isAllCorrectMandatory:!0,quizRandomiseQuestions:1,quizUniqueAnswersPerAttempt:"1"},quizElements:(s==null?void 0:s.length)>0?s:a},[g,v]=F.useState(0),[A,w]=F.useState(!1);function x(M,z){return(M==null?void 0:M.length)<=z?M:(M==null?void 0:M.slice(0,z))+"..."}F.useEffect(()=>{w(!0)},[]);const S=()=>{g!==0&&v(g-1)},E=()=>{if(m!=null&&m.quizElements&&g+1!==(m==null?void 0:m.quizElements.length))v(g+1);else if((m==null?void 0:m.quizElements.length)===g+1)return},C=(M,z)=>{let P=[...u];M.checked?P.push(z):P=P.filter(j=>(j==null?void 0:j[e==null?void 0:e.type])!==(z==null?void 0:z[e==null?void 0:e.type])),d(P)};return o.jsxs("div",{className:"scroll-height-200 mb-2",children:[A&&o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"grid",children:o.jsxs("div",{className:"col-12",children:[o.jsxs("h3",{children:[m==null?void 0:m.name," "]}),(N=m==null?void 0:m.quizElements)==null?void 0:N.map((M,z)=>{var P,j,de,he,te,G,ae,Y,pe;return(M==null?void 0:M.answerInputType)==="radio"?o.jsxs("div",{className:g===z?"card":" flex align-items-center p-field-radiobutton",children:[((P=M==null?void 0:M.questionTextImage)==null?void 0:P[e==null?void 0:e.type])&&((j=M==null?void 0:M.questionTextImage)==null?void 0:j[e==null?void 0:e.type])!==""&&o.jsx("div",{className:"text-center assessment_image_container",children:o.jsx(h,{mediaId:(de=M==null?void 0:M.questionTextImage)==null?void 0:de[e==null?void 0:e.type],style:{height:"100px",width:"100px",objectFit:"cover",borderRadius:100},className:"text-center",alt:"questionImage"})}),o.jsx("h3",{className:"mb-5",children:g===z&&((he=M==null?void 0:M.questionText)==null?void 0:he[e==null?void 0:e.type])}),g===z&&((te=M==null?void 0:M.answerOptions)==null?void 0:te.map((ie,J)=>{var Q,se,be,Ce;return o.jsxs("div",{className:"field-radiobutton",children:[o.jsx(Ji,{inputId:`${J}-preview`,value:ie==null?void 0:ie.answersText,checked:l===J,onChange:()=>{c(J)}}),((Q=ie.answersTextImage)==null?void 0:Q[e==null?void 0:e.type])&&((se=ie.answersTextImage)==null?void 0:se[e==null?void 0:e.type])!==""&&o.jsx(h,{mediaId:(be=ie.answersTextImage)==null?void 0:be[e==null?void 0:e.type],className:"mx-3",alt:"questionImage",style:{width:"50px",height:"50px",borderRadius:50}}),o.jsx("label",{htmlFor:`${J}-preview`,children:(Ce=ie.answersText)==null?void 0:Ce[e==null?void 0:e.type]})]},J)}))]},z):(M==null?void 0:M.answerInputType)==="checkbox"?o.jsxs("div",{className:g===z?"card":" flex align-items-center p-field-radiobutton",children:[o.jsx("h3",{className:"mb-5",children:g===z&&((G=M==null?void 0:M.questionText)==null?void 0:G[e==null?void 0:e.type])}),g===z&&((ae=M==null?void 0:M.answerOptions)==null?void 0:ae.map((ie,J)=>{var Q,se,be,Ce;return o.jsxs("div",{className:"field-radiobutton",children:[o.jsx(Nr,{inputId:J,value:ie==null?void 0:ie.answersText,onChange:Te=>{C(Te,ie==null?void 0:ie.answersText)},checked:u.some(Te=>{var ye;return(Te==null?void 0:Te[e==null?void 0:e.type])===((ye=ie==null?void 0:ie.answersText)==null?void 0:ye[e==null?void 0:e.type])})}),((Q=ie.answersTextImage)==null?void 0:Q[e==null?void 0:e.type])&&((se=ie.answersTextImage)==null?void 0:se[e==null?void 0:e.type])!==""&&o.jsx(h,{mediaId:(be=ie.answersTextImage)==null?void 0:be[e==null?void 0:e.type],className:"mx-3",alt:"questionImage",style:{width:"50px",height:"50px",borderRadius:50}}),o.jsx("label",{htmlFor:J,children:(Ce=ie.answersText)==null?void 0:Ce[e==null?void 0:e.type]})]},J)}))]},z):o.jsxs("div",{className:g===z?"card":"",children:[o.jsx("h3",{className:"mb-5",children:g===z&&((Y=M==null?void 0:M.questionText)==null?void 0:Y[e==null?void 0:e.type])}),g===z&&((pe=M==null?void 0:M.answerOptions)==null?void 0:pe.map((ie,J)=>{var Q,se,be,Ce;return o.jsxs("div",{className:"field-radiobutton",children:[o.jsx(Ji,{inputId:J,value:ie==null?void 0:ie.answersText,onChange:()=>{}}),((Q=ie.answersTextImage)==null?void 0:Q[e==null?void 0:e.type])&&((se=ie.answersTextImage)==null?void 0:se[e==null?void 0:e.type])!==""&&o.jsx(h,{mediaId:(be=ie.answersTextImage)==null?void 0:be[e==null?void 0:e.type],className:"mx-3",alt:"questionImage",style:{width:"50px",height:"50px",borderRadius:50}}),o.jsx("label",{htmlFor:J,children:(Ce=ie.answersText)==null?void 0:Ce[e==null?void 0:e.type]})]},J)}))]},z)})]})}),o.jsxs("div",{className:"text-center my-5",children:[o.jsxs("div",{className:"mb-1",children:["Viewing:"," ",g+1+"/"+(m==null?void 0:m.quizElements.length)]}),o.jsx("br",{}),g>0&&o.jsx(kt,{text:!0,className:"mx-2",label:"Previous",onClick:()=>S()}),o.jsx(kt,{text:!0,label:(m==null?void 0:m.quizElements.length)===g+1?"Finish":"Next",onClick:()=>E()})]})]}),o.jsxs("div",{className:"surface-card p-4 shadow-2 border-round",children:[o.jsx("div",{className:"font-medium text-3xl text-900 mb-3",children:"Summary"}),o.jsx("div",{className:"text-500 mb-5",children:`${n==null?void 0:n.name} - ${r}`}),o.jsxs("ul",{className:"list-none p-0 m-0 border-top-1 surface-border",children:[o.jsxs("li",{className:"flex align-items-center py-3 px-2 flex-wrap surface-ground",children:[o.jsx("div",{className:"text-500 w-full md:w-3 font-medium",children:"Total Questions:"}),o.jsx("div",{className:"text-900 w-full md:w-9",children:(O=m==null?void 0:m.quizElements)==null?void 0:O.length})]}),o.jsxs("li",{className:"flex align-items-center py-3 px-2 flex-wrap",children:[o.jsx("div",{className:"text-500 w-full md:w-3 font-medium",children:"Has Maximum Number of questions:"}),o.jsxs("div",{className:"text-900 w-full md:w-9 line-height-3",children:[i==null?void 0:i.noOfAssessmentQuestions," "]})]}),o.jsxs("li",{className:"flex align-items-center py-3 px-2 flex-wrap",children:[o.jsx("div",{className:"text-500 w-full md:w-3 font-medium",children:"Show Answers Randomly"}),o.jsx("div",{className:"text-900 w-full md:w-9",children:i!=null&&i.randomiseAnswers?o.jsx(Ic,{className:"mr-2",severity:"success",value:"True"}):o.jsx(Ic,{className:"mr-2",severity:"warning",value:"False"})})]}),o.jsxs("li",{className:"flex align-items-center py-3 px-2 flex-wrap",children:[o.jsx("div",{className:"text-500 w-full md:w-3 font-medium",children:"Question Time Limit"}),o.jsx("div",{className:"text-900 w-full md:w-9",children:"0.45 seconds"})]}),o.jsxs("li",{className:"flex align-items-center py-3 px-2 flex-wrap",children:[o.jsx("div",{className:"text-500 w-full md:w-3 font-medium",children:"Exam Time Limit:"}),o.jsx("div",{className:"text-900 w-full md:w-9",children:"2 mins"})]}),o.jsxs("li",{className:"flex align-items-center py-3 px-2 flex-wrap surface-ground",children:[o.jsx("div",{className:"text-500 w-full md:w-3 font-medium",children:"Show Questions Randomly:"}),o.jsx("div",{className:"text-900 w-full md:w-9",children:o.jsx("div",{className:"grid mt-0 mr-0",children:(B=m==null?void 0:m.quizElements)==null?void 0:B.map((M,z)=>{var P;return o.jsx("div",{className:"col-12 md:col-6",children:o.jsx("div",{className:"p-3 border-1 surface-border border-round surface-card",children:o.jsx("div",{className:"text-700",children:x(((P=M==null?void 0:M.questionText)==null?void 0:P[e==null?void 0:e.type])||"",30)})})},`preview-question-${z}`)})})})]})]})]})]})},Cxe=t=>{var E;const{data:e,path:n,pageIndex:r,sectionIndex:i,rowIndex:a,columnIndex:s,section:l,row:c,page:u}=t,d=F.useRef(null),{handleDrop:f}=on(),{isRenderView:h,isAdvanceView:m,isPreview:g}=Zt(),[{isDragging:v},A]=Qi({type:ms,item:{type:ms,uuid:e==null?void 0:e.uuid,children:e.children,path:n},collect:C=>({isDragging:C.isDragging()})}),x={position:"relative",opacity:v&&!h?.25:1};A(d);const S=(C,_,T,N,O,B,M)=>o.jsx(qc,{page:u,type:"field",row:c,section:l,field:C,data:C,path:_,pageIndex:T,sectionIndex:N,rowIndex:O,columnIndex:B,fieldIndex:M},`component-${n}-${C==null?void 0:C.uuid}`);return o.jsx("div",{style:m?x:{},className:h?"form-builder-column container-column":"draggable form-builder-column container-column",children:g===!1?o.jsxs("div",{children:[e.children.length>0&&((E=e==null?void 0:e.children)==null?void 0:E.map((C,_)=>{const T=`${n}-${_}`;return o.jsxs(F.Fragment,{children:[o.jsx(Tr,{isAdvanceView:m,fieldDropArea:!0,data:{path:T,childrenCount:e.children.length,droppedField:e},onDrop:f}),S(C,T,r,i,a,s,_)]},T)})),e.children.length===0&&o.jsx("p",{className:"text-center",children:"Drag and drop from sidebar items"}),o.jsx(Tr,{isAdvanceView:m,dropHereLastField:!0,fieldDropArea:!0,data:{path:`${n}-${e.children.length}`,childrenCount:e.children.length,droppedField:e},onDrop:f,isLast:!0})]}):o.jsx(o.Fragment,{children:e.children.length>0?o.jsx(xxe,{questions:e.children}):o.jsx("p",{className:"text-center",children:"No items to show"})})})},Txe={},Exe=t=>{var g,v,A,w;const{data:e,path:n,pageIndex:r,sectionIndex:i,rowIndex:a,section:s,page:l}=t,c=F.useRef(null),{isRenderView:u}=Zt(),[{isDragging:d},f]=Qi({type:bo,item:{type:bo,uuid:e.uuid,children:e.children,path:n,data:e},collect:x=>({isDragging:x.isDragging()})}),h=d?.25:1;f(c);const m=(x,S,E,C,_,T)=>o.jsx(Cxe,{page:l,row:e,section:s,data:x,path:S,pageIndex:E,sectionIndex:C,rowIndex:_,columnIndex:T},`column-${n}-${x.uuid}`);return o.jsx("div",{style:{...Txe,opacity:h,marginTop:`${(g=e==null?void 0:e.margin)==null?void 0:g.top}px`,marginBottom:`${(v=e==null?void 0:e.margin)==null?void 0:v.bottom}px`,marginLeft:`${(A=e==null?void 0:e.margin)==null?void 0:A.left}px`,marginRight:`${(w=e==null?void 0:e.margin)==null?void 0:w.right}px`},className:u?"row container-row":"draggable row container-row",children:o.jsx("div",{className:"form-builder-columns",children:e.children.map((x,S)=>{const E=`${n}-${S}`;return o.jsx(F.Fragment,{children:m(x,E,r,i,a,S)},E)})})})},Ixe=t=>{const{data:e,path:n,pageIndex:r,sectionIndex:i,section:a,page:s}=t,{renderType:l,emitSocketData:c,isAdvanceView:u,isPreview:d}=Zt(),[f,h]=F.useState(!1),[m,g]=F.useState(!1),[v,A]=F.useState(null),w=F.useRef(null),[{isDragging:x},S]=Qi({type:ta,item:{type:ta,uuid:e.uuid,children:e.children,path:n},collect:_=>({isDragging:_.isDragging()})}),E=x?.25:1;S(w);const C=(_,T,N,O,B)=>o.jsx(Exe,{page:s,section:a,data:_,path:T,pageIndex:N,sectionIndex:O,rowIndex:B},`row-${n}-${_.uuid}`);return o.jsxs("div",{style:{opacity:E,marginBottom:20},className:u?"draggable row":"",children:[d===!1&&o.jsx(Oh,{saveBuilderElementModalData:v,setSaveBuilderElementModalData:A,saveElementModal:m,setSaveElementModal:g}),f===!0&&o.jsx(Dh,{renderType:l,visibilty:f,setVisibility:h,section:e,pageIndex:r,sectionIndex:i,emitSocketData:c},"section_settings_"+r+i),o.jsx("div",{className:"",children:e.children.map((_,T)=>{const N=`${n}-${T}`;return o.jsx(F.Fragment,{children:C(_,N,r,i,T)},N)})})]})},_xe=t=>{const{data:e,path:n,pageIndex:r}=t,{isRenderView:i}=Zt(),a=F.useRef(null),[{},s]=Qi({type:ta,item:{type:ta,uuid:e.uuid,children:e.children,path:n},collect:c=>({isDragging:c.isDragging()})});s(a);const l=(c,u,d,f)=>o.jsx(Ixe,{data:c,section:c,path:u,page:e,pageIndex:d,sectionIndex:f},`section_${d}_${f}`);return o.jsx("div",{style:{overflowX:"auto"},className:`${i?"":"draggable page-css p-3 pb-4"}`,"data-image-src":e==null?void 0:e.bgImage,"data-bg-color":`#${e==null?void 0:e.bgColor}`,children:o.jsx("div",{className:"",children:e.children.map((c,u)=>{const d=`${n}-${u}`;return o.jsx(F.Fragment,{children:l(c,d,r,u)},`section-${u}-${c.uuid}`)})})})},Dxe=()=>{const{formBuilderFormLayout:t}=on(),e=(n,r,i)=>o.jsx(_xe,{data:n,path:r,pageIndex:i},`page-${n.uuid}`);return o.jsx(o.Fragment,{children:o.jsx("div",{className:"page",children:(t==null?void 0:t.length)&&t.map((n,r)=>{const i=`${r}`;return o.jsx("div",{children:e(n,i,r)},`exam-page-${r}`)})})})},O5=()=>{const{renderType:t}=Zt();switch(t){case F0:return o.jsx(jSe,{});case H1:return o.jsx(WSe,{});case z1:return o.jsx(rxe,{});case fm:return o.jsx(gxe,{});case hm:return o.jsx(Sxe,{});case Y1:return o.jsx(Dxe,{})}},Oxe=t=>{var g,v,A,w,x,S,E,C,_,T;const{setSelectedOption:e,quiz:n,userSelectedLanguage:r,onSetAnswer:i,setIsOptionSelected:a,index:s,eleIndex:l,ele:c,setCorrectAnswerCheck:u,correctAnswerCheck:d,selectedOption:f}=t,{media:h}=Zt(),m=(g=h==null?void 0:h.image)!=null&&g.MediaImage?(v=h==null?void 0:h.image)==null?void 0:v.MediaImage:o.jsx(o.Fragment,{});return o.jsxs("div",{onClick:N=>{e(O=>{var B;return(B=n==null?void 0:n.answersText)==null?void 0:B[r==null?void 0:r.type]}),i(N,s,l,n,c),a(!0),u({isCorrect:null,text:null})},className:"field-radiobutton card",style:(d==null?void 0:d.text)===((A=n.answersText)==null?void 0:A[r==null?void 0:r.type])?(d==null?void 0:d.isCorrect)===!0?{borderColor:"green",borderWidth:1,borderStyle:"solid",position:"relative"}:{borderColor:"red",borderWidth:1,borderStyle:"solid",position:"relative"}:((w=n.answersText)==null?void 0:w[r==null?void 0:r.type])===f?{backgroundColor:"#0F8BFD"}:{},children:[o.jsx(Ji,{inputId:s,value:n.answersText,checked:((x=n.answersText)==null?void 0:x[r==null?void 0:r.type])===f,onChange:N=>{u({isCorrect:null,text:null}),e(O=>{var B;return(B=N.target.value)==null?void 0:B[r==null?void 0:r.type]}),i(N,s,l,n,c),a(!0)}}),((S=n.answersTextImage)==null?void 0:S[r==null?void 0:r.type])&&((E=n.answersTextImage)==null?void 0:E[r==null?void 0:r.type])!==""&&o.jsx(m,{mediaId:(C=n.answersTextImage)==null?void 0:C[r==null?void 0:r.type],className:"mx-3",alt:"questionImage",style:{width:"50px",height:"50px",borderRadius:50}}),o.jsx("label",{htmlFor:s,children:(_=n.answersText)==null?void 0:_[r==null?void 0:r.type]}),o.jsx("span",{style:{position:"absolute",right:10},children:(d==null?void 0:d.text)===((T=n.answersText)==null?void 0:T[r==null?void 0:r.type])?(d==null?void 0:d.isCorrect)===!0?o.jsxs("span",{style:{color:"green"},children:[" ","Correct Answer"]}):o.jsxs("span",{style:{color:"red"},children:[" ","Wrong Answer"]}):""})]},s)},Nxe=t=>{var m,g,v,A,w,x,S;const{media:e}=Zt(),n=(m=e==null?void 0:e.image)!=null&&m.MediaImage?(g=e==null?void 0:e.image)==null?void 0:g.MediaImage:o.jsx(o.Fragment,{}),{setSelectedOption:r,quiz:i,userSelectedLanguage:a,setIsOptionSelected:s,index:l,ele:c,setCorrectAnswerCheck:u,correctAnswerCheck:d,selectedOption:f,onChangeCheckbox:h}=t;return F.useEffect(()=>(Array.isArray(f)||r([]),()=>{}),[]),o.jsx(o.Fragment,{children:Array.isArray(f)&&o.jsxs("div",{onClick:()=>{var E;h(!(f!=null&&f.some(C=>{var _;return C===((_=i.answersText)==null?void 0:_[a==null?void 0:a.type])})),(E=i==null?void 0:i.answersText)==null?void 0:E[a==null?void 0:a.type]),s(!0),u({isCorrect:null,text:null})},className:"field-radiobutton card",style:d!=null&&d.length&&(d!=null&&d.some(E=>{var C;return(E==null?void 0:E.text)===((C=i.answersText)==null?void 0:C[a==null?void 0:a.type])}))?d!=null&&d.some(E=>{var C;return(E==null?void 0:E.text)===((C=i.answersText)==null?void 0:C[a==null?void 0:a.type])&&(E==null?void 0:E.isCorrect)===!0})?{borderColor:"green",borderWidth:1,borderStyle:"solid",position:"relative"}:{borderColor:"red",borderWidth:1,borderStyle:"solid",position:"relative"}:((v=i.answersText)==null?void 0:v[a==null?void 0:a.type])===f?{backgroundColor:"#0F8BFD"}:{},children:[o.jsx(Nr,{inputId:l,value:i.answersText,checked:f==null?void 0:f.some(E=>{var C;return E===((C=i.answersText)==null?void 0:C[a==null?void 0:a.type])}),onChange:E=>{var C;h(E.checked,(C=E.target.value)==null?void 0:C[a==null?void 0:a.type],i,c),s(!0)}}),((A=i.answersTextImage)==null?void 0:A[a==null?void 0:a.type])&&((w=i.answersTextImage)==null?void 0:w[a==null?void 0:a.type])!==""&&o.jsx(n,{mediaId:(x=i.answersTextImage)==null?void 0:x[a==null?void 0:a.type],className:"mx-3",alt:"questionImage",style:{width:"50px",height:"50px",borderRadius:50}}),o.jsx("label",{htmlFor:l,children:(S=i.answersText)==null?void 0:S[a==null?void 0:a.type]}),o.jsx("span",{style:{position:"absolute",right:10},children:d!=null&&d.length&&(d!=null&&d.some(E=>{var C;return(E==null?void 0:E.text)===((C=i.answersText)==null?void 0:C[a==null?void 0:a.type])}))?d!=null&&d.some(E=>{var C;return(E==null?void 0:E.text)===((C=i.answersText)==null?void 0:C[a==null?void 0:a.type])&&(E==null?void 0:E.isCorrect)===!0})?o.jsx("span",{style:{color:"green"},children:" Correct Answer"}):o.jsx("span",{style:{color:"red"},children:" Wrong Answer"}):""})]},l)})},Fxe=({assessmentData:t,setDisplaySummary:e})=>{var r,i,a,s;const n=l=>{if(l.seconds<10&&(l.seconds="0"+l.seconds),l.minutes===0&&(l.minutes="0"+l.minutes),l.completed)e(!0);else return o.jsxs("span",{children:["Time Remaining:"," ",o.jsxs("span",{style:l.minutes===0?{color:"black"}:{color:"black"},children:[l.minutes,":",l.seconds]})]})};return o.jsx(o.Fragment,{children:t&&((i=(r=t==null?void 0:t.time_limit)==null?void 0:r.type)==null?void 0:i.key)==="PerExam"&&o.jsx(kp,{renderer:n,date:Date.now()+parseInt((s=(a=t==null?void 0:t.time_limit)==null?void 0:a.time_limit_info)==null?void 0:s.num_of_mins)*60*1e3})})},kxe=F.memo(Fxe),Pxe=t=>{var c,u,d,f;const{assessmentData:e,onNextQuestion:n,currentQuestionIndex:r}=t,i=F.useRef(Date.now()),[a,s]=F.useState("");F.useEffect(()=>(i.current=Date.now(),s(i.current),()=>{}),[r]);const l=h=>(h.seconds<10&&(h.seconds="0"+h.seconds),h.minutes===0&&(h.minutes="0"+h.minutes),h.completed?(n(),o.jsx(o.Fragment,{})):o.jsxs("span",{children:["Time Remaining:"," ",o.jsxs("span",{style:h.minutes===0?{color:"black"}:{color:"black"},children:[h.minutes,":",h.seconds]})]}));return o.jsx(o.Fragment,{children:e&&((u=(c=e==null?void 0:e.time_limit)==null?void 0:c.type)==null?void 0:u.key)==="PerQuestion"&&o.jsx(kp,{renderer:l,date:i.current+parseInt((f=(d=e==null?void 0:e.time_limit)==null?void 0:d.time_limit_info)==null?void 0:f.time_per_question)*1e3,intervalDelay:0},a)})},Mxe=()=>{const t=()=>{const a=new Audio("https://api.goenterprise.io/assets/sounds/sound4.mp3");i(a)},e=()=>{const a=new Audio("https://api.goenterprise.io/assets/sounds/sound2.mp3");i(a)},n=()=>{const a=new Audio("https://api.goenterprise.io/assets/sounds/sound8.mp3");i(a)},r=()=>{const a=new Audio("https://api.goenterprise.io/assets/sounds/sound6.mp3");i(a)},i=a=>{a.play().then(()=>{console.info("Played")}).catch(s=>{console.info("Not Played,"+s.error+s.name)})};return{socketConnection:t,socketDisconnect:e,errorOcurred:n,quizStartAlert:r}},Lxe="1",fj=t=>{var Ee,ge,me,Le,Oe,ve,V,ne;const e=X=>{const[oe,fe]=F.useState(X),we=F.useRef(oe);return F.useEffect(()=>{we.current=oe},[oe]),[oe,we,fe]},{endQuiz:n,AddUserAssessmentAnswer:r,assessmentData:i,taskData:a}=br(),[s,l]=F.useState(new Date),{quizData:c,saveProgress:u,renderIn:d,onOpenQuiz:f,setQuizStart:h,setVisible:m,setAssessmentModal:g=()=>{}}=t,{quizStartAlert:v}=Mxe(),{userSelectedLanguage:A}=on(),{media:w}=Zt(),x=(Ee=w==null?void 0:w.image)!=null&&Ee.MediaImage?(ge=w==null?void 0:w.image)==null?void 0:ge.MediaImage:o.jsx(o.Fragment,{}),[S,,E]=e(0),[C,_,T]=e(null),[N,O]=F.useState(!1),[B,,M]=e([]),[z,P]=F.useState(!1),[j,de]=F.useState(!1),[he,te]=F.useState(0),[G,ae]=F.useState(0),[Y,pe]=F.useState(0),[ie,J]=F.useState(!1),[Q,se]=F.useState({isCorrect:null,text:null});window.onbeforeunload=function(){return!1},F.useEffect(()=>{z||P(!0)},[B,N,z]),F.useEffect(()=>{c!==null&&(v(),be())},[c]);const be=()=>{ae(c.quizConfiguration.quizPassMark)},Ce=F.useCallback((X,oe,fe,we,De)=>{const $e=[...B];if((De==null?void 0:De.answerInputType)!=="checkbox"){const ct={uuid:De==null?void 0:De.uuid,question:De==null?void 0:De.questionText,isCorrect:we.isCorrect,selectedAnswer:we.answersText,viewed:!0},Nt=B.findIndex(at=>(at==null?void 0:at.uuid)===De.uuid);Nt>=0?($e[Nt]={...$e[Nt],...ct},M($e)):M([...B,ct])}},[C]),Te=X=>{var oe;if(S!==0){const fe=[...B],we=S-1;T((oe=fe[we])==null?void 0:oe.selectedAnswer[A==null?void 0:A.type]),O(!0),E(we),ye(0)}},ye=X=>{for(const oe of B)if(oe.questionIndex===S+X){T(oe.selectedAnswerEnglish);break}},Ae=(X,oe,fe,we)=>{var ct;const De=[...C];if(X)De.push(oe);else{const Nt=De.findIndex(at=>at===oe);Nt>=0&&De.splice(Nt,1)}T(De);const $e=[...B];if((we==null?void 0:we.answerInputType)==="checkbox"){let Nt=!1;for(const[,st]of(we==null?void 0:we.answerOptions.entries())||[])if(st.isCorrect===!0)if(Et.includes(De,(ct=st==null?void 0:st.answersText)==null?void 0:ct[A==null?void 0:A.type]))Nt=!0;else{Nt=!1;break}const at={uuid:we==null?void 0:we.uuid,question:we==null?void 0:we.questionText,isCorrect:Nt,selectedAnswer:fe.answersText,viewed:!0},St=B.findIndex(st=>(st==null?void 0:st.uuid)===we.uuid);St>=0?($e[St]={...$e[St],...at},M($e)):M([...B,at])}},re=F.useCallback(()=>{var fe,we,De,$e,ct,Nt,at,St,st,bt,Ft,Qe,Ot,Pt,fn,yn,wn,Fn,Hn;const X=_.current,oe=Et.findIndex((fe=c==null?void 0:c.quizElements[S])==null?void 0:fe.answerOptions,function(Cn){return Cn.isCorrect===!0});if(c!=null&&c.quizElements&&S+1!==(c==null?void 0:c.quizElements.length)){const Cn={assessment_user_attempt_id:(De=i==null?void 0:i.assesment_user_attempts[((we=i==null?void 0:i.assesment_user_attempts)==null?void 0:we.length)-1])==null?void 0:De.assessment_user_attempt_id,session_id:(ct=i==null?void 0:i.assesment_user_attempts[(($e=i==null?void 0:i.assesment_user_attempts)==null?void 0:$e.length)-1])==null?void 0:ct.session_id,assessment_id:1,question:(Nt=c==null?void 0:c.quizElements[S].questionText)==null?void 0:Nt[A==null?void 0:A.type],start_time:s,finish_time:new Date,correct_answer:(st=(St=(at=c==null?void 0:c.quizElements[S])==null?void 0:at.answerOptions[oe])==null?void 0:St.answersText)!=null&&st[A==null?void 0:A.type]?(Qe=(Ft=(bt=c==null?void 0:c.quizElements[S])==null?void 0:bt.answerOptions[oe])==null?void 0:Ft.answersText)==null?void 0:Qe[A==null?void 0:A.type]:"",selected_answer:Array.isArray(X)?X.toString():X,is_correct_answer:(Ot=B[S])!=null&&Ot.isCorrect?1:0};r(Cn),T(null),E(S+1),l(new Date),ye(2)}else if((c==null?void 0:c.quizElements.length)===S+1){const Cn={assessment_user_attempt_id:(fn=i==null?void 0:i.assesment_user_attempts[((Pt=i==null?void 0:i.assesment_user_attempts)==null?void 0:Pt.length)-1])==null?void 0:fn.assessment_user_attempt_id,session_id:(wn=i==null?void 0:i.assesment_user_attempts[((yn=i==null?void 0:i.assesment_user_attempts)==null?void 0:yn.length)-1])==null?void 0:wn.session_id,assessment_id:1,question:(Fn=c==null?void 0:c.quizElements[S].questionText)==null?void 0:Fn[A==null?void 0:A.type],start_time:s,finish_time:new Date,correct_answer:Array.isArray(X)?X.toString():X,selected_answer:Array.isArray(X)?X.toString():X,is_correct_answer:(Hn=B[S])!=null&&Hn.isCorrect?1:0};r(Cn),U(),K()}O(!1)},[S,B]),U=()=>{de(!0)},Z=()=>{var X;(i==null?void 0:i.noOfAttempts)-((X=i==null?void 0:i.assesment_user_attempts)==null?void 0:X.length)>0&&!ie?(f(),P(!0),v(),be(),E(0),T(null),O(!1),M([]),de(!1),te(0),pe(0),J(!1),se({isCorrect:null,text:null})):(m(!1),g(!1))},K=()=>{var De,$e;let X=0,oe=0,fe=!1;for(const ct of B)ct!=null&&ct.isCorrect&&X++;te(X),oe=X/((De=c==null?void 0:c.quizElements)==null?void 0:De.length)*100,oe=Math.round(oe),pe(oe),fe=oe>=G,J(fe);const we={...c,...i,result:oe,status:fe,selectedAnswers:B};u(we),n({session_id:c==null?void 0:c.session_id,is_pass:fe?1:0,score:X,out_of:($e=c==null?void 0:c.quizElements)==null?void 0:$e.length,finish_time:new Date,status:1})},ue=()=>{var X,oe,fe,we,De,$e,ct;if(((X=c==null?void 0:c.quizElements[S])==null?void 0:X.answerInputType)==="radio"){const Nt=Et.findIndex((oe=c==null?void 0:c.quizElements[S])==null?void 0:oe.answerOptions,function(at){return at.isCorrect===!0});C===((De=(we=(fe=c==null?void 0:c.quizElements[S])==null?void 0:fe.answerOptions[Nt])==null?void 0:we.answersText)==null?void 0:De[A==null?void 0:A.type])?se({isCorrect:!0,text:C}):se({isCorrect:!1,text:C})}if((($e=c==null?void 0:c.quizElements[S])==null?void 0:$e.answerInputType)==="checkbox"){const Nt=(ct=c==null?void 0:c.quizElements[S])==null?void 0:ct.answerOptions.filter(at=>at.isCorrect===!0);if(C!=null&&C.length){const at=C==null?void 0:C.map(St=>({isCorrect:Nt==null?void 0:Nt.some(st=>{var bt;return((bt=st==null?void 0:st.answersText)==null?void 0:bt[A==null?void 0:A.type])===St}),text:St}));se(at)}}};return o.jsx(o.Fragment,{children:c!==null&&o.jsxs("div",{children:[j&&o.jsx("div",{className:"grid",children:o.jsx("div",{className:"col-6 col-offset-3",children:o.jsxs("div",{className:"card text-center",children:[o.jsxs("h5",{children:["Assessment Result for"," ",(me=a==null?void 0:a.assessment)==null?void 0:me.assessment_title]}),o.jsxs("div",{children:[o.jsxs("p",{children:["You answered ",he," out of"," ",(Le=c==null?void 0:c.quizElements)==null?void 0:Le.length," questions"]}),o.jsxs("p",{children:["Your assessment result: ",Y,"%"]}),o.jsxs("p",{children:["Score Needed To Pass: ",G,"%"]}),o.jsx("br",{}),o.jsxs("p",{children:["Status:"," ",ie?o.jsx(Ic,{severity:"success",value:"Passed"}):o.jsx(Ic,{severity:"danger",value:"Failed"})]}),ie&&o.jsx("p",{children:"Congratulations you have passed!"}),d!==L7?o.jsx(o.Fragment,{children:j&&o.jsx("div",{className:"text-center my-5",children:o.jsx(kt,{label:(i==null?void 0:i.noOfAttempts)-((Oe=i==null?void 0:i.assesment_user_attempts)==null?void 0:Oe.length)>0&&!ie?"Restart":"End",onClick:()=>Z()})})}):o.jsx("div",{className:"text-center my-5",children:o.jsx(kt,{label:"Restart",onClick:()=>{v(),be(),de(!1),E(0),P(!1)}})})]})]})})}),j&&((ve=i==null?void 0:i.assessment_type)==null?void 0:ve.key)===Lxe&&o.jsxs("div",{children:[o.jsx("h5",{className:"text-center",children:"Summary "}),o.jsx("div",{className:"grid",children:o.jsx("div",{className:"col-6 col-offset-3",children:B==null?void 0:B.map((X,oe)=>{var fe,we;return o.jsxs("div",{className:"card",children:[o.jsxs("span",{className:"text-strong",children:[o.jsx("b",{children:"Question:"})," ",o.jsx("br",{}),(fe=X==null?void 0:X.question)==null?void 0:fe[A==null?void 0:A.type]]}),o.jsx("br",{}),o.jsx("br",{}),o.jsxs("span",{children:[o.jsx("b",{children:"Selected Answer:"})," ",o.jsx("br",{}),(we=X==null?void 0:X.selectedAnswer)==null?void 0:we[A==null?void 0:A.type]]}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("p",{children:"In Correct:"}),X!=null&&X.isCorrect?o.jsxs(o.Fragment,{children:[o.jsx(m4,{value:"",severity:"success",className:"mr-2"})," ","Yes"]}):o.jsxs(o.Fragment,{children:[o.jsx(m4,{value:"",severity:"danger",className:"mr-2"})," ","No"]})]},oe)})})})]}),d!==L7?o.jsx(o.Fragment,{children:j&&o.jsx("div",{className:"text-center my-5",children:o.jsx(kt,{text:!0,className:"p-button-danger",icon:"pi pi-times",label:"Close",onClick:()=>{m(!1),h(!1)}})})}):o.jsx(o.Fragment,{}),z&&!j&&o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"grid",children:o.jsxs("div",{className:"col-6 col-offset-3",children:[o.jsx("h5",{className:"text-center",children:o.jsxs("span",{children:[o.jsx(kxe,{assessmentData:i,setDisplaySummary:de}),o.jsx(Pxe,{currentQuestionIndex:S,assessmentData:i,onNextQuestion:re})]})}),o.jsxs("h2",{className:"text-center pb-6",children:[c==null?void 0:c.name," "]}),(V=c==null?void 0:c.quizElements)==null?void 0:V.map((X,oe)=>{var fe,we,De,$e,ct;return o.jsxs("div",{className:"quiz-card-box",children:[S===oe&&((fe=X==null?void 0:X.questionTextImage)==null?void 0:fe[A==null?void 0:A.type])&&((we=X==null?void 0:X.questionTextImage)==null?void 0:we[A==null?void 0:A.type])!==""&&o.jsx("div",{className:"text-center assessment_image_container",children:o.jsx(x,{mediaId:(De=X==null?void 0:X.questionTextImage)==null?void 0:De[A==null?void 0:A.type],style:{height:"100px",width:"100px",objectFit:"cover",borderRadius:100},className:"text-center",alt:"questionImage"})}),o.jsx("h3",{className:"mb-5",children:S===oe&&(($e=X==null?void 0:X.questionText)==null?void 0:$e[A==null?void 0:A.type])}),S===oe&&((ct=X==null?void 0:X.answerOptions)==null?void 0:ct.map((Nt,at)=>(X==null?void 0:X.answerInputType)==="checkbox"?o.jsx(F.Fragment,{children:o.jsx(Nxe,{onChangeCheckbox:Ae,setSelectedOption:T,quiz:Nt,userSelectedLanguage:A,onSetAnswer:Ce,setIsOptionSelected:O,index:at,eleIndex:oe,ele:X,setCorrectAnswerCheck:se,correctAnswerCheck:Q,selectedOption:C})},`checkbox-question-${at}`):o.jsx(F.Fragment,{children:o.jsx(Oxe,{setSelectedOption:T,quiz:Nt,userSelectedLanguage:A,onSetAnswer:Ce,setIsOptionSelected:O,index:at,eleIndex:oe,ele:X,setCorrectAnswerCheck:se,correctAnswerCheck:Q,selectedOption:C})},`radio-question-${at}`)))]},oe)})]})}),o.jsxs("div",{className:"text-center my-5",children:[o.jsxs("div",{className:"mb-1",children:["Question :"," ",S+1+"/"+(c==null?void 0:c.quizElements.length)]}),o.jsx("br",{}),S>0&&o.jsx(kt,{size:"large",className:"mx-2",label:"Previous",onClick:X=>Te()}),((i==null?void 0:i.skippable)===!0||N===!0)&&o.jsx(kt,{size:"large",label:(c==null?void 0:c.quizElements.length)===S+1?"Finish":N===!0?"Next":"Skip",onClick:re}),N===!0&&((ne=i==null?void 0:i.assessment_type)==null?void 0:ne.key)==="1"&&o.jsx(kt,{size:"large",className:"ml-2 p-button-info",label:"Check Answer",onClick:()=>ue()})]})]})]})})},N5=t=>{const{handleSelectCourseItem:e,icon:n,currentItem:r,field:i,fieldIndex:a,title:s}=t,[l,c]=F.useState(!1),{userTrainingSaveData:u}=br(),d=h=>{var m,g;if(u!==null&&h){const v=u==null?void 0:u.findIndex(A=>(A==null?void 0:A.fieldId)===(h==null?void 0:h.uuid));return(m=u[v])!=null&&m.isSeen?(g=u[v])==null?void 0:g.isSeen:!1}else return!1},f=()=>{let h=[];if(u!==null){const g=u.findIndex(v=>(v==null?void 0:v.fieldId)===(i==null?void 0:i.uuid));h=u[g].logs}else h=[];return h==null?void 0:h.map((g,v)=>o.jsxs("li",{className:"flex flex-column md:flex-row md:align-items-center md:justify-content-between mb-4",children:[o.jsxs("div",{className:"mr-8 md:mr-8",children:[o.jsxs("span",{className:"inline-block text-900 font-medium mr-2 mb-1 md:mb-0",children:[g==null?void 0:g.action," on ",((g==null?void 0:g.videoTime)/60).toFixed(3)," seconds"]}),o.jsx("span",{className:"text-600",children:Nn(g==null?void 0:g.timeState).format("Do, MMMM, YYYY HH:ss")})]}),o.jsxs("div",{className:"mt-2 md:mt-0 ml-0 md:ml-8 flex align-items-center",children:[o.jsx("div",{className:"surface-300 border-round overflow-hidden",style:{height:"8px",width:"200px"},children:o.jsx("div",{className:(g==null?void 0:g.action)==="Play"?"bg-green-500 h-full":"bg-orange-500 h-full",style:{width:`${Math.floor((g==null?void 0:g.videoTime)/(g==null?void 0:g.totalTime)*100)}%`}})}),o.jsxs("span",{className:"text-orange-500 ml-3 font-medium",children:[Math.floor((g==null?void 0:g.videoTime)/(g==null?void 0:g.totalTime)*100),"%"]})]})]},`logs_${v}`))};return o.jsxs("ul",{className:"list-none p-0 m-0 cursor-pointer",onClick:()=>{e(i)},children:[o.jsxs("li",{className:" flex flex-column md:flex-row md:align-items-center md:justify-content-between mb-3",style:{borderRadius:"10px"},children:[o.jsx("div",{children:o.jsxs("div",{children:[d(i)?o.jsx(kt,{text:!0,icon:"pi pi-check",className:"p-button-rounded p-button-primary mr-2 p-button-outlined","aria-label":"Search"}):o.jsx(kt,{text:!0,icon:"pi pi-dot",className:"p-button-rounded p-button-secondary mr-2 p-button-outlined","aria-label":"Search"}),(i==null?void 0:i.uuid)===(r==null?void 0:r.uuid)?o.jsxs("span",{children:[o.jsx(kt,{text:!0,icon:n,className:"p-button-rounded p-button-primary mr-2 inline-flex justify-content-center align-items-center w-2rem h-2rem","aria-label":"Search"}),o.jsxs("span",{className:"inline-flex justify-content-center align-items-center h-2rem",style:{color:"#0f8bfd"},children:[a+1," - ",s]})]}):o.jsxs(o.Fragment,{children:[o.jsx("span",{className:"inline-flex justify-content-center align-items-center w-2rem h-2rem border-circle border-1",children:o.jsx("i",{className:n})}),o.jsxs("span",{className:"font-medium text-500 ml-2 hoverSelect",children:[a+1," - ",s]})]})]})}),o.jsxs("div",{className:"flex align-items-center justify-content-between md:justify-content-end mt-3 md:mt-0",children:[o.jsx("div",{className:"text-right mr-3",children:o.jsxs("span",{className:" font-bold",children:[" ",i==null?void 0:i.videoDuration]})}),o.jsx(kt,{text:!0,onClick:()=>c(!l),icon:"pi pi-eye",className:"p-button-rounded p-button-secondary mr-2 ","aria-label":"Search"})]})]}),l&&o.jsxs("div",{className:"surface-card shadow-2 border-round p-4",children:[o.jsx("div",{className:"flex justify-content-between align-items-center mb-5",children:o.jsx("span",{className:"text-xl text-900 font-medium",children:"Logs"})}),o.jsx("ul",{className:"list-none p-0 m-0",children:f()})]})]},`ul-list-${a}`)},Bxe=t=>{var S,E,C,_,T,N;const{field:e,fieldIndex:n,currentItem:r,setCurrentItem:i,setCurrentSection:a,setvideoJsOptions:s,section:l,setImage:c,setDocuments:u}=t,{taskOptions:d,userTrainingSaveData:f,updateUserTraining:h}=br(),m=(S=d==null?void 0:d.training)!=null&&S.getAssessmentSelectedQuiz?(E=d==null?void 0:d.training)==null?void 0:E.getAssessmentSelectedQuiz:()=>{},g=O=>{if(f!==null){const B=[...f],M=B.findIndex(z=>(z==null?void 0:z.fieldId)===(O==null?void 0:O.uuid));M>=0&&(B[M]={...B[M],isSeen:!0}),h([...B])}},v=O=>{var B;i(O),a(l),s({autoplay:!1,controls:!0,responsive:!0,fluid:!0,sources:[{src:(B=O==null?void 0:O.media_url)==null?void 0:B.english}]})},A=O=>{var B;g(O),i(O),c((B=O==null?void 0:O.media_url)==null?void 0:B.english),a(l)},w=O=>{g(O),i(O),u(O==null?void 0:O.documents),a(l)},x=O=>{var B,M;(B=O==null?void 0:O.quizSchema)!=null&&B.assessment_id&&(m((M=O==null?void 0:O.quizSchema)==null?void 0:M.assessment_id),a(l),i(O))};switch(e==null?void 0:e.componentType){case"video":return o.jsx(N5,{title:(C=e==null?void 0:e.title)==null?void 0:C.english,type:"video",icon:"pi pi-video",handleSelectCourseItem:v,field:e,fieldIndex:n,currentItem:r,userTrainingSaveData:f},`${e==null?void 0:e.uuid}-list`);case"image":return o.jsx(N5,{title:(_=e==null?void 0:e.title)==null?void 0:_.english,type:"image",icon:"pi pi-image",handleSelectCourseItem:A,field:e,fieldIndex:n,currentItem:r,userTrainingSaveData:f},`${e==null?void 0:e.uuid}-list`);case"document":return o.jsx(N5,{title:(T=e==null?void 0:e.title)==null?void 0:T.english,type:"document",icon:"pi pi-image",handleSelectCourseItem:w,field:e,fieldIndex:n,currentItem:r,userTrainingSaveData:f},`${e==null?void 0:e.uuid}-list`);case"quiz":return o.jsx(N5,{title:(N=e==null?void 0:e.quizSchema)==null?void 0:N.assessment_title,type:"quiz",icon:"pi pi-image",handleSelectCourseItem:x,field:e,fieldIndex:n,currentItem:r,userTrainingSaveData:f},`${e==null?void 0:e.uuid}-list`);default:return o.jsx(o.Fragment,{})}},Vxe=t=>{const{fields:e,setImage:n,setvideoJsOptions:r,setDocuments:i,setQuizSchema:a,setCurrentItem:s,currentItem:l,setCurrentSection:c,section:u,updateTrainingProgress:d}=t;return o.jsx(o.Fragment,{children:o.jsx("div",{className:"surface-card border-round p-4 ",children:e==null?void 0:e.map((f,h)=>o.jsxs("div",{children:[o.jsx(Bxe,{field:f,fieldIndex:h,currentItem:l,setCurrentItem:s,setCurrentSection:c,setvideoJsOptions:r,section:u,setImage:n,setDocuments:i,setQuizSchema:a,updateTrainingProgress:d},`${h}-list-sidebar`)," ",o.jsx("hr",{})," "]},`sidebar-item-card-${h}`))})})},Uxe=t=>{const{getAssessmentByIdFromStore:e,quizSchema:n,setQuizSchema:r,renderIn:i,updateTrainingProgress:a,currentItem:s}=t,{userTrainingSaveData:l}=br();F.useEffect(()=>(c(),()=>{}),[]);const c=()=>{var m,g,v,A;const d=JSON.parse(e.form_template_schema),f=JSON.parse(e.assessment_meta_data);let h=[...((A=(v=(g=(m=d==null?void 0:d.layout[0])==null?void 0:m.children[0])==null?void 0:g.children[0])==null?void 0:v.children[0])==null?void 0:A.children)||[]];f!=null&&f.randomiseQuestions&&(h=um.shuffle(h).map((w,x)=>({...w}))),f!=null&&f.randomiseAnswers&&(h=h.map((w,x)=>({...w,answerOptions:um.shuffle(w==null?void 0:w.answerOptions)}))),f!=null&&f.enableNoOfAssessmentQuestions&&(h=h.slice(0,parseInt(f==null?void 0:f.noOfAssessmentQuestions))),r({assessment_id:1,name:e==null?void 0:e.assessment_title,label:"assessment_title",quizConfiguration:d==null?void 0:d.quizConfiguration,quizElements:h})},u=d=>{if((d==null?void 0:d.status)===!0){if(l!==null){const h=l.findIndex(m=>(m==null?void 0:m.fieldId)===(s==null?void 0:s.uuid));h>=0&&(l[h]={...l[h],isSeen:!0})}a()}};return o.jsx("div",{children:n&&o.jsx(fj,{renderIn:i,quizData:n,taskSchema:e==null?void 0:e.form_template_schema,saveProgress:d=>{u(d)}})})},qxe=t=>{var v,A;const{currentItem:e,videoJsOptions:n}=t,r=F.useRef(null),{userTrainingSaveData:i,updateUserTraining:a,taskRegisterData:s}=br(),{media:l}=Zt(),c=(v=l==null?void 0:l.video)!=null&&v.MediaVideo?(A=l==null?void 0:l.video)==null?void 0:A.MediaVideo:()=>o.jsx(o.Fragment,{}),u=w=>{r.current=w,w.on("waiting",()=>{Dt.log("player is waiting")}),w.on("dispose",()=>{Dt.log("player will dispose")})},d=w=>{if(i!==null){const x=[...i],S=x==null?void 0:x.findIndex(E=>(E==null?void 0:E.fieldId)===(e==null?void 0:e.uuid));S>=0&&(x[S].seenTime=w==null?void 0:w.target.currentTime)}},f=w=>{const x=[...i],S=x==null?void 0:x.findIndex(E=>(E==null?void 0:E.fieldId)===(w==null?void 0:w.uuid));S>=0&&(i[S]={...i[S],isSeen:!0},a(x),h("Ended"))},h=w=>{const x=r.current,S=i!==null?i==null?void 0:i.findIndex(E=>(E==null?void 0:E.fieldId)===(e==null?void 0:e.uuid)):-1;S>=0&&i[S].logs.push({action:w,videoTime:i[S].seenTime,totalTime:x.duration,timeState:new Date})},m=w=>{const{mediaId:x}=w,[S,E]=F.useState(!1);return F.useEffect(()=>{if(!S&&i!==null){const C=i.findIndex(_=>(_==null?void 0:_.fieldId)===(e==null?void 0:e.uuid));if(C>=0){E(!0);const _=r.current;_.currentTime=i[C].seenTime}E(!0)}return()=>{}},[i]),o.jsx(c,{mediaId:x,ref:r,className:"my-video",style:{borderRadius:"10px"},onPlay:()=>h("Play"),onPause:()=>h("Pause"),onEnded:()=>f(e),onTimeUpdate:d,controls:!0})},g=F.useCallback(w=>o.jsx(m,{mediaId:w}),[e==null?void 0:e.media_file_id]);return o.jsx("div",{children:(e==null?void 0:e.isExternalSource)===!1&&(e==null?void 0:e.media_file_id)!==void 0&&(e==null?void 0:e.media_file_id)!==null?o.jsx(o.Fragment,{children:g(e==null?void 0:e.media_file_id)}):o.jsx(o.Fragment,{children:o.jsx(zB,{options:n,onReady:u,currentItem:e},e==null?void 0:e.uuid)})})},ES=t=>{var N,O,B,M,z,P;const{sections:e,showInfoPanel:n,updateTrainingProgress:r}=t,{taskOptions:i,taskSchema:a,taskData:s}=br(),[l]=F.useState(!1),[,c]=F.useState(Ub),[u,d]=F.useState([]),[f,h]=F.useState(null),{userSelectedLanguage:m}=on(),[g,v]=F.useState(null),[A,w]=F.useState(null),x=(N=i==null?void 0:i.training)!=null&&N.getAssessmentByIdFromStore?(O=i==null?void 0:i.training)==null?void 0:O.getAssessmentByIdFromStore:()=>{},S=(B=i==null?void 0:i.training)!=null&&B.TrainingOverView?(M=i==null?void 0:i.training)==null?void 0:M.TrainingOverView:()=>o.jsx(o.Fragment,{}),[E,C]=F.useState({autoplay:!1,controls:!0,responsive:!0,fluid:!0,sources:[{src:"http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4"}]});F.useEffect(()=>{l||_()},[l]);const _=()=>{var j,de,he,te,G,ae,Y,pe,ie,J,Q,se,be,Ce,Te,ye,Ae,re,U,Z,K;switch(v((he=(de=(j=e[0])==null?void 0:j.children[0])==null?void 0:de.children[0])==null?void 0:he.children[0]),w(e[0]),(Y=(ae=(G=(te=e[0])==null?void 0:te.children[0])==null?void 0:G.children[0])==null?void 0:ae.children[0])==null?void 0:Y.componentType){case"video":C({autoplay:!1,controls:!0,responsive:!0,fluid:!0,sources:[{src:(se=(Q=(J=(ie=(pe=e[0])==null?void 0:pe.children[0])==null?void 0:ie.children[0])==null?void 0:J.children[0])==null?void 0:Q.media_url)==null?void 0:se.english}]});break;case"image":c((Ae=(ye=(Te=(Ce=(be=e[0])==null?void 0:be.children[0])==null?void 0:Ce.children[0])==null?void 0:Te.children[0])==null?void 0:ye.media_url)==null?void 0:Ae.english);break;case"document":d((K=(Z=(U=(re=e[0])==null?void 0:re.children[0])==null?void 0:U.children[0])==null?void 0:Z.children[0])==null?void 0:K.documents);break}},T=j=>{switch(j==null?void 0:j.componentType){case"video":return o.jsx("div",{children:o.jsx(qxe,{videoJsOptions:E,currentItem:j},j==null?void 0:j.uuid)});case"image":return o.jsx(tk,{field:j,isPreview:!0});case"document":return o.jsxs("div",{children:[o.jsx("h6",{children:"Documents"}),o.jsx("ul",{children:(u==null?void 0:u.length)>0&&u.map((de,he)=>o.jsx("li",{children:o.jsx("a",{href:de==null?void 0:de.url,children:de==null?void 0:de.url})},`document-item-${he}`))})]});case"quiz":return x!=null&&x.form_template_schema?o.jsx(Uxe,{renderIn:L7,getAssessmentByIdFromStore:x,quizSchema:f,setQuizSchema:h,updateTrainingProgress:r,currentItem:j}):o.jsx("div",{});case"slides":return o.jsx("div",{children:"Show slides"});case"html":return o.jsx("div",{children:"Show custom HTML Here"});default:return o.jsx("div",{})}};return o.jsxs("div",{className:"grid",children:[o.jsxs("div",{className:"col-8 scroll-height-100",children:[o.jsxs("h3",{children:[(z=A==null?void 0:A.heading)==null?void 0:z[m==null?void 0:m.type]," -"," ",(P=g==null?void 0:g.title)==null?void 0:P[m==null?void 0:m.type]," "]}),T(g),n&&o.jsx(S,{})]}),o.jsx("div",{className:"col-4 scroll-height-100",children:e.map((j,de)=>{var he,te;return o.jsxs(li,{className:"mb-5",header:(he=j==null?void 0:j.heading)==null?void 0:he.english,toggleable:!0,children:[o.jsx("p",{children:(te=j==null?void 0:j.subHeadingText)==null?void 0:te[m==null?void 0:m.type]}),j.children.map((G,ae)=>{const Y=`${ae}`;return o.jsx("div",{children:G.children.map((pe,ie)=>{const J=`${ae}-${Y}`;return o.jsx(Vxe,{setCurrentSection:w,section:j,setCurrentItem:v,currentItem:g,path:J,fields:pe.children,setvideoJsOptions:C,setImage:c,setDocuments:d,setQuizSchema:h,updateTrainingProgress:r},`training-sidebar-${ie}`)})},`training-sidebar-container-${ae}`)})]},`train-sidebar-panel-${de}`)})})]})};ES.defaultProps={showInfoPanel:!0,sections:{},updateTrainingProgress:()=>{}},ES.propTypes={showInfoPanel:bn.bool,sections:bn.array,updateTrainingProgress:bn.func};const $xe=t=>{var l;const{taskSchema:e,taskId:n,endPoints:r}=t,{userTrainingSaveData:i,saveProgressDataHook:a,updateTaskProgressValue:s}=br();return F.useEffect(()=>{const c=setTimeout(()=>{const u=i==null?void 0:i.filter(d=>(d==null?void 0:d.isSeen)===!0).length;s(u),a(i,n,r==null?void 0:r.submitFormData)},1e3);return()=>clearTimeout(c)},[i]),o.jsx("div",{children:e!==null&&o.jsx(ES,{updateTrainingProgress:()=>{},sections:(l=e==null?void 0:e.layout[0])==null?void 0:l.children})})},jxe=t=>{var Z,K,ue,Ee,ge,me,Le,Oe,ve,V,ne,X,oe,fe,we,De,$e,ct,Nt,at,St,st,bt,Ft,Qe,Ot;const[e,n]=F.useState(!1),r=F.useRef(!1),{taskId:i,endPoints:a,isRenderView:s,showFieldsAfterSubmit:l,messageWhileSubmittingForm:c,enableFormScroll:u,formScrollHeight:d="scroll-height-225",onStart:f,setAssessmentModal:h=()=>{}}=t,{setLayout:m}=on(),[g,v]=F.useState(!1),[A,w]=F.useState(null),[x,S]=F.useState(!1),{taskProgressValue:E,taskRegisterData:C,task_status:_,assessmentData:T,taskProgressLoading:N,taskSchema:O,taskData:B,updateTaskFormData:M,submitTaskFormData:z,TasksLoading:P,userTaskSubmitFormData:j,TasksHTTPRequest:de,TasksSubmitLoading:he,clearTaskSchema:te,startQuiz:G,TASK_PUBLISHED:ae,saveProgressDataHook:Y}=br();F.useEffect(()=>{if(O!==null&&m((O==null?void 0:O.layout)||[]),i){const fn={viewed_at:new Date().toISOString()};M(j,i,a==null?void 0:a.updateFormData,L8,()=>{},fn)}return()=>{te()}},[i]),F.useEffect(()=>{var Pt,fn,yn,wn,Fn;if(((Pt=O==null?void 0:O.formType)==null?void 0:Pt.key)==="exam"){let Hn=[...((wn=(yn=(fn=O==null?void 0:O.layout[0])==null?void 0:fn.children[0])==null?void 0:yn.children[0])==null?void 0:wn.children[0].children)||[]];T!=null&&T.randomiseQuestions&&(Hn=um.shuffle(Hn).map((Cn,zt)=>({...Cn}))),T!=null&&T.randomiseAnswers&&(Hn=Hn.map((Cn,zt)=>({...Cn,answerOptions:um.shuffle(Cn==null?void 0:Cn.answerOptions)}))),T!=null&&T.enableNoOfAssessmentQuestions&&(Hn=Hn.slice(0,parseInt(T==null?void 0:T.noOfAssessmentQuestions))),w({assessment_id:1,name:(Fn=B==null?void 0:B.assessment)==null?void 0:Fn.assessment_title,label:"assessment_title",quizConfiguration:O==null?void 0:O.quizConfiguration,quizElements:Hn})}},[O]);const pe=(Pt="One or more field is required")=>{r.current.show({severity:"error",summary:"Alert",detail:Pt,life:3e3})},ie=()=>{Gt.emit("onSubmitUserForm","complete"),Ce()},J=()=>{z(j,i,a==null?void 0:a.submitFormData),n(!1)},Q=Pt=>{M(Pt,i,a==null?void 0:a.updateFormData,L8,()=>{r.current.show({severity:"success",summary:"Progress Saved",detail:"",life:3e3})})},se=Pt=>{M(Pt,i,a==null?void 0:a.updateFormData,cD,()=>{Gt.emit("onCompleteAssessment","complete")})};F.useEffect(()=>{const Pt=setTimeout(()=>{var fn;j!==null&&((O==null?void 0:O.enableAutoSave)===!0||((fn=O==null?void 0:O.formType)==null?void 0:fn.key)===M7)&&Y(j,i,a==null?void 0:a.updateFormData)},2e3);return()=>clearTimeout(Pt)},[C,E]);const be=(Pt,fn,yn,wn)=>{var Cn,zt;let Fn=wn;const Hn={fieldId:Pt.uuid};if(yn!=null&&yn[Pt==null?void 0:Pt.uuid]){if((fn==null?void 0:fn.length)>0){e:for(const[,rt]of fn.entries())if(((Cn=rt==null?void 0:rt.children)==null?void 0:Cn.length)>0&&(rt==null?void 0:rt.enableConditionalField)===!0){for(const[,Je]of(rt==null?void 0:rt.children.entries())||[])if((zt=Je==null?void 0:Je.attributes)!=null&&zt.required&&(Fn=be(Je,Je==null?void 0:Je.options,yn,Fn),Fn===!1))break e}}}else Gt.emit("OnInvalidFieldCatch",Hn),Fn=!1,pe();return Fn},Ce=F.useCallback(()=>{var fn,yn,wn,Fn,Hn,Cn,zt,rt,Je,dt,Yt,Tn,kn,Gn,cr,Zn,vr,_r,dn,lt,ot;let Pt=!1;e:for(const[At,Vt]of O.layout.entries())if((Vt==null?void 0:Vt.isHidden)===!1)for(const[Ut,Ye]of Vt.children.entries())for(const[,Fe]of Ye.children.entries())if(Fe!=null&&Fe.rowIsRepeatable){const nt=j.findIndex(Ze=>(Ze==null?void 0:Ze.rowId)===Fe.uuid);if(nt>=0){if(((fn=j[nt].repeatableFieldsData)==null?void 0:fn.length)<(Fe==null?void 0:Fe.minimumEntries)){pe(`Need minimun ${Fe==null?void 0:Fe.minimumEntries} entries`),Pt=!1;break e}Pt=!0}}else for(const[,nt]of Fe.children.entries())for(const[,Ze]of nt.children.entries()){if(Ze.isValid===0&&Ze.isPostField===!0&&(Ze==null?void 0:Ze.componentType)!=="hidden-field"){console.log("here cming");const Mt={pageIndex:At,fieldId:Ze.uuid,sectionIndex:Ut},qt=j.findIndex(ft=>(ft==null?void 0:ft.fieldId)===Ze.uuid);if(!(qt===-1||(yn=j[qt])!=null&&yn.postData[0]&&(((Fn=(wn=j[qt])==null?void 0:wn.postData[0].postValue)==null?void 0:Fn.length)>0||((Hn=j[qt])==null?void 0:Hn.postData[0].postValue)>0))){console.log("inValidData",Mt),Gt.emit("OnInvalidFieldCatch",Mt),Pt=!1,pe();break e}}if((Ze==null?void 0:Ze.componentType)==="radio-hierarchal"){const Mt=j.findIndex(qt=>(qt==null?void 0:qt.fieldId)===Ze.uuid);if(Mt>=0&&(Pt=be(Ze,Ze==null?void 0:Ze.options,(Cn=j[Mt])==null?void 0:Cn.postData[0].postValue,!0),!Pt))break e}if(((zt=Ze==null?void 0:Ze.children)==null?void 0:zt.length)>0)for(const[,Mt]of Ze.children.entries()){const qt=Object.keys(Mt);if(qt[0]){const ft=Mt[qt[0]],Me={fieldId:ft.uuid,sectionIndex:Ut},Ke=j.findIndex(xt=>(xt==null?void 0:xt.fieldId)===ft.uuid);if(!((rt=j[Ke])!=null&&rt.postData[0]&&(((dt=(Je=j[Ke])==null?void 0:Je.postData[0].postValue)==null?void 0:dt.length)>0||((Yt=j[Ke])==null?void 0:Yt.postData[0].postValue)>0||((Gn=(kn=(Tn=j[Ke])==null?void 0:Tn.postData[0])==null?void 0:kn.postValue)==null?void 0:Gn.addressOne)!==""))){Gt.emit("OnInvalidFieldCatch",Me),Pt=!1,pe();break e}}}if(Ze!=null&&Ze.inlineConditionalRules&&((Zn=(cr=Ze==null?void 0:Ze.inlineConditionalRules)==null?void 0:cr.rules)==null?void 0:Zn.length)>0){for(const[,Mt]of((vr=Ze==null?void 0:Ze.inlineConditionalRules)==null?void 0:vr.rules.entries())||[])for(const[,qt]of(Mt==null?void 0:Mt.conditions.entries())||[])for(const[,ft]of(qt==null?void 0:qt.children.entries())||[])if(ft.isValid===0){const Me={fieldId:ft.uuid,sectionIndex:Ut},Ke=j.findIndex(xt=>(xt==null?void 0:xt.fieldId)===ft.uuid);if(Ke>=0&&!((_r=j[Ke])!=null&&_r.postData[0]&&(((lt=(dn=j[Ke])==null?void 0:dn.postData[0].postValue)==null?void 0:lt.length)>0||((ot=j[Ke])==null?void 0:ot.postData[0].postValue)>0))){Gt.emit("OnInvalidFieldCatch",Me),Pt=!1,pe();break e}}}Pt=!0}Pt&&n(!0)},[j]),Te=()=>o.jsx(o.Fragment,{children:o.jsxs("div",{className:"w-full",children:[o.jsx("p",{children:"Loading form data....."}),o.jsx(ua,{className:"mb-2"}),o.jsx(ua,{className:"mb-2"}),o.jsx(ua,{className:"mb-2"}),o.jsx(ua,{className:"mb-5"}),o.jsx(ua,{className:"mb-2"}),o.jsx(ua,{className:"mb-2"}),o.jsx(ua,{className:"mb-2"}),o.jsx(ua,{className:"mb-2"}),o.jsx(ua,{className:"mb-2"}),o.jsx(ua,{className:"mb-2"}),o.jsx(ua,{className:"mb-2"})]})}),ye=()=>{v(!0);const Pt={task_id:i,session_id:tt(),start_time:new Date,finish_time:new Date};w(fn=>({...fn,...Pt})),G(Pt,w)},Ae=o.jsxs("div",{children:[o.jsx(kt,{text:!0,label:"Cancel",icon:"pi pi-times",className:"mx-2 p-button-danger",onClick:()=>v(!1)}),o.jsx(kt,{label:"Start Immediately",onClick:()=>{v(!1),S(!0);const Pt={task_id:i,session_id:tt(),start_time:new Date,finish_time:new Date};w(fn=>({...fn,...Pt}))}})]}),re=Pt=>Pt.completed?(v(!1),S(!0),o.jsx(o.Fragment,{})):o.jsxs("span",{children:["Your Quiz is about to start in ",Pt.seconds," seconds"]}),U=()=>o.jsxs("div",{children:[o.jsx(kt,{text:!0,label:"No",icon:"pi pi-times",onClick:()=>n(!1),className:"p-button-danger"}),o.jsx(kt,{label:"Yes",icon:"pi pi-check",onClick:()=>J(),autoFocus:!0})]});return o.jsxs("div",{children:[o.jsx(ys,{header:()=>o.jsx(o.Fragment,{}),visible:e,style:{width:"30vw"},footer:U,onHide:()=>n(!1),children:o.jsx("p",{className:"text-center",children:c})}),P||he||de?o.jsx("div",{className:"w-full",children:o.jsx(Te,{})}):o.jsxs(o.Fragment,{children:[(((Z=O==null?void 0:O.formType)==null?void 0:Z.key)===P7||((K=O==null?void 0:O.formType)==null?void 0:K.key)==="survey")&&o.jsx(o.Fragment,{children:o.jsxs("div",{className:`px-0 ${s===!1?"builder_container":""}`,children:[o.jsxs("div",{className:"flex justify-content-center mb-2 align-items-center",children:[o.jsx("div",{className:"text-center text-900 text-3xl font-medium",children:B==null?void 0:B.task_title}),o.jsx("div",{className:"ml-4 ",children:(B==null?void 0:B.task_status)===cD&&o.jsx(HO,{classes:"",value:"COMPLETED",level:"success"})})]}),l===!1&&_===ae?o.jsx(o.Fragment,{children:o.jsx("h3",{className:"text-center mt-5",children:"Thank you for completing the survey"})}):o.jsx("div",{className:"grid",children:o.jsxs("div",{className:"col-12",children:[P&&o.jsx(Te,{}),!P&&o.jsxs(o.Fragment,{children:[o.jsx(cse,{}),o.jsx("div",{className:`${u===!0?d:" "} mt-2 mb-2`,children:o.jsx(lf,{backend:uf,children:O!==null&&((ue=O==null?void 0:O.layout)==null?void 0:ue.length)&&o.jsx(O5,{})})}),o.jsx(s3,{ref:r}),((Ee=O==null?void 0:O.formType)==null?void 0:Ee.key)!==""&&(_===L8||_===null)&&o.jsx("span",{children:ll.createPortal(o.jsx("div",{className:"card surface-card shadow-1 border-round py-2 render-form-footer",children:o.jsxs("div",{className:" flex justify-content-center",children:[o.jsx(kt,{text:!0,className:"mr-2 p-button-info",label:"Save Progress",onClick:()=>Q(j),loading:N,disabled:he}),o.jsx(kt,{label:"Submit",onClick:()=>ie(),disabled:N,loading:he})]})}),document.body)})]})]})})]})}),((ge=O==null?void 0:O.formType)==null?void 0:ge.key)==="policies"&&o.jsx("div",{className:"layout-invoice-page",children:o.jsx("div",{className:"grid",children:o.jsx("div",{className:"col-12",children:o.jsx("div",{className:"card",children:o.jsx("div",{id:"invoice-content",children:o.jsxs("div",{className:"invoice",children:[o.jsxs("div",{className:"invoice-header",children:[o.jsx("div",{className:"invoice-company flex align-items-center",children:o.jsxs("h3",{children:[B==null?void 0:B.task_title," "]})}),o.jsxs("div",{className:"ml-2",children:[o.jsx("div",{className:"customer-id",children:"Customer ID: C1613"}),o.jsx("div",{className:"invoice-address",children:"9137 3rd Lane California City CA 93504, U.S.A."})]})]}),o.jsx("div",{className:"scroll-height-300 mt-2 mb-2",children:o.jsx(lf,{backend:uf,children:O!==null&&((me=O==null?void 0:O.layout)==null?void 0:me.length)&&o.jsx(O5,{})})}),((Le=O==null?void 0:O.formType)==null?void 0:Le.key)!==""&&(_===1||_===null)&&o.jsx(o.Fragment,{children:o.jsx("div",{className:"flex justify-content-center",children:o.jsx(kt,{className:"p-button-primary",label:"Accept",onClick:()=>ie(),loading:N})})})]})})})})})}),(((Oe=O==null?void 0:O.formType)==null?void 0:Oe.key)==="page"||((ve=O==null?void 0:O.formType)==null?void 0:ve.key)==="pdf")&&o.jsx("div",{className:"layout-invoice-page",children:o.jsx("div",{className:"grid",children:o.jsx("div",{className:"col-12",children:o.jsx("div",{className:"card",children:o.jsx(lf,{backend:uf,children:O!==null&&((V=O==null?void 0:O.layout)==null?void 0:V.length)&&o.jsx(O5,{})})})})})}),((ne=O==null?void 0:O.formType)==null?void 0:ne.key)==="training"&&o.jsx($xe,{renderIn:tse,taskSchema:O,taskId:i,endPoints:a}),((X=O==null?void 0:O.formType)==null?void 0:X.key)==="exam"&&o.jsxs("div",{children:[x===!1&&o.jsx("div",{className:"surface-section px-4 py-5 md:px-6 lg:px-8 scroll-height-150",children:o.jsx("div",{className:"grid",children:o.jsx("div",{className:"col-6 col-offset-3",children:o.jsxs("div",{className:"text-center",children:[o.jsx(VD,{closable:!1,closeOnEscape:!1,visible:g,onHide:()=>v(!1),message:o.jsx(kp,{date:Date.now()+15e3,renderer:re}),footer:Ae}),o.jsxs("div",{children:[o.jsx("h3",{children:(oe=B==null?void 0:B.assessment)==null?void 0:oe.assessment_title}),o.jsxs("div",{className:"card",children:[o.jsx("h3",{children:"Overview"}),o.jsx("div",{dangerouslySetInnerHTML:{__html:O==null?void 0:O.intro}})]}),o.jsxs("div",{className:"surface-card p-4 shadow-2 border-round",children:[o.jsx("div",{className:"font-medium text-3xl text-900 mb-3",children:"Guidance"}),o.jsxs("div",{className:"text-500 mb-5",children:["You have a total of ",T==null?void 0:T.noOfAttempts," ","attempts for the entire Quiz"," "]}),o.jsxs("ul",{className:"list-none p-0 m-0 border-top-1 surface-border",children:[o.jsxs("li",{className:"flex align-items-center py-3 px-2 flex-wrap surface-ground",children:[o.jsx("div",{className:"text-500 w-full md:w-3 font-medium",children:"Expires on:"}),o.jsx("div",{className:"text-900 w-full md:w-9",children:Nn(B==null?void 0:B.task_due_date).format("Do MMM YYYY ")})]}),o.jsxs("li",{className:"flex align-items-center py-3 px-2 flex-wrap surface-ground",children:[o.jsx("div",{className:"text-500 w-full md:w-3 font-medium",children:"Total Attempts:"}),o.jsx("div",{className:"text-900 w-full md:w-9",children:T==null?void 0:T.noOfAttempts})]}),o.jsxs("li",{className:"flex align-items-center py-3 px-2 flex-wrap",children:[o.jsx("div",{className:"text-500 w-full md:w-3 font-bold",children:"Attempts Made:"}),o.jsx("div",{className:"text-900 w-full md:w-9 line-height-3",children:(fe=T==null?void 0:T.assesment_user_attempts)==null?void 0:fe.length})]}),o.jsxs("li",{className:"flex align-items-center py-3 px-2 flex-wrap",children:[o.jsx("div",{className:"text-500 w-full md:w-3 font-bold",children:"Remaining Attempts:"}),o.jsx("div",{className:"text-900 w-full md:w-9 line-height-3",children:(T==null?void 0:T.noOfAttempts)-((we=T==null?void 0:T.assesment_user_attempts)==null?void 0:we.length)})]}),o.jsxs("li",{className:"flex align-items-center py-3 px-2 flex-wrap",children:[o.jsx("div",{className:"text-500 w-full md:w-3 font-bold",children:"Number of Questions:"}),o.jsx("div",{className:"text-900 w-full md:w-9",children:(De=A==null?void 0:A.quizElements)==null?void 0:De.length})]}),o.jsxs("li",{className:"flex align-items-center py-3 px-2 flex-wrap",children:[o.jsx("div",{className:"text-500 w-full md:w-3 font-bold",children:"Exam Time:"}),o.jsxs("div",{className:"text-900 w-full md:w-9",children:[" ",T&&((ct=($e=T==null?void 0:T.time_limit)==null?void 0:$e.type)==null?void 0:ct.key)==="PerExam"&&o.jsxs(o.Fragment,{children:[Math.floor((at=(Nt=T==null?void 0:T.time_limit)==null?void 0:Nt.time_limit_info)==null?void 0:at.num_of_mins)," ","mins"]}),T&&((st=(St=T==null?void 0:T.time_limit)==null?void 0:St.type)==null?void 0:st.key)==="PerQuestion"&&o.jsxs(o.Fragment,{children:[Math.floor(((Ft=(bt=T==null?void 0:T.time_limit)==null?void 0:bt.time_limit_info)==null?void 0:Ft.time_per_question)*((Qe=A==null?void 0:A.quizElements)==null?void 0:Qe.length)/60)," ","mins"]})]})]})]})]})]}),o.jsx("div",{className:"my-5",children:(T==null?void 0:T.noOfAttempts)-((Ot=T==null?void 0:T.assesment_user_attempts)==null?void 0:Ot.length)>0?o.jsx(kt,{size:"large",label:"Start Now",className:"p-button-info",onClick:()=>{ye(),f&&f()}}):o.jsx(kt,{text:!0,label:"No Attempts Remaining",className:"p-button-info"})})]})})})}),x===!0&&A!==null&&o.jsx(ys,{header:"Assessment",visible:x,maximized:!0,style:{width:"50vw"},onHide:()=>{S(!1),v(!1)},children:o.jsx(fj,{setVisible:v,setQuizStart:S,onOpenQuiz:ye,quizData:A,taskSchema:O,saveProgress:se,setAssessmentModal:h})})]})]})]})};/**
|
|
4164
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Gwe(t,e){if(t){if(typeof t=="string")return aj(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return aj(t,e)}}function aj(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Wwe(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 Qwe(t){if(Array.isArray(t))return t}function Jwe(t,e){if(t==null)return{};var n=Zwe(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 Zwe(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}function I5(t,e){var n=t.Component,r=t.country,i=t.defaultCountry,a=t.useNationalFormatForDefaultCountryValue,s=a===void 0?!0:a,l=t.value,c=t.onChange,u=t.metadata,d=t.international,f=t.withCountryCallingCode,h=Jwe(t,Kwe),m=zwe({value:l,onChange:c,country:r,defaultCountry:i,international:d,withCountryCallingCode:f,useNationalFormatForDefaultCountryValue:s,metadata:u}),g=Xwe(m,2),v=g[0],A=g[1];return F.createElement(n,CS({},h,{ref:e,metadata:u,international:d,withCountryCallingCode:f,country:r||i,value:v,onChange:A}))}I5=F.forwardRef(I5),I5.propTypes={value:bn.string,onChange:bn.func.isRequired,country:bn.string,defaultCountry:bn.string,international:bn.bool,withCountryCallingCode:bn.bool,Component:bn.elementType.isRequired,useNationalFormatForDefaultCountryValue:bn.bool,metadata:Uwe};const eSe=I5;var tSe=["type","autoComplete","smartCaret","metadata"];function TS(){return TS=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},TS.apply(this,arguments)}function nSe(t,e){if(t==null)return{};var n=rSe(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 rSe(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}function sj(t){function e(n,r){var i=n.type,a=i===void 0?"tel":i,s=n.autoComplete,l=s===void 0?"tel":s,c=n.smartCaret,u=c===void 0?!0:c,d=n.metadata,f=d===void 0?t:d,h=nSe(n,tSe);return F.createElement(eSe,TS({},h,{type:a,autoComplete:l,metadata:f,ref:r,Component:u?kwe:Vwe}))}return e=F.forwardRef(e),e.propTypes={type:bn.string,autoComplete:bn.string,smartCaret:bn.bool,metadata:bn.object},e}sj();const iSe=sj(Jbe),aSe=t=>{var J,Q,se,be,Ce,Te,ye,Ae,re,U,Z;const{taskRegisterData:e,updateTaskRegisterData:n,updateTaskProgressValue:r,updateUserFormDataSubmit:i,userTaskSubmitFormData:a,TASK_PUBLISHED:s,task_status:l}=br(),{userSelectedLanguage:c,fieldSettingUpdate:u}=on(),{field:d,fieldIndex:f,sectionIndex:h,pageIndex:m,row:g,rowIndex:v,columnIndex:A}=t,{isAdmin:w,isRenderView:x,isPreview:S}=Zt(),[E,C]=F.useState(!1),[_,T]=F.useState(""),[N,O]=F.useState(0),[B,M]=F.useState(!1),[z,P]=F.useState(!1),j=()=>{P(!0)},de=()=>{P(!1)},he=()=>{var K,ue,Ee;if(g!=null&&g.rowIsRepeatable){if(g!=null&&g.repeatableFields){const ge=[...g.repeatableFields],me=Et.findIndex(ge,function(Le){return Le.uuid===(d==null?void 0:d.uuid)});me>=0&&ge[me].fieldData?T(ge[me].fieldData):T("")}}else{const ge=a;if(ge!=null&&ge.length){for(const me of ge)if(me.fieldId===t.field.uuid&&((K=me==null?void 0:me.postData[0])==null?void 0:K.postValue)!==""&&((ue=me==null?void 0:me.postData[0])!=null&&ue.postValue)){T((Ee=me==null?void 0:me.postData[0])==null?void 0:Ee.postValue);break}}}M(!0)};F.useEffect(()=>{B||he();const K=Gt.addListener("clearRepeatableFields",me=>{me===(g==null?void 0:g.uuid)&&(T(""),O(0),d.isValid=0,u(m,h,v,A,f,d))}),ue=Gt.addListener("onSubmitUserForm",()=>{var me;(me=d==null?void 0:d.attributes)!=null&&me.required?_?d.isValid=1:d.isValid=0:d.isValid=1}),Ee=Gt.addListener("OnInvalidFieldCatch",me=>{d.uuid===(me==null?void 0:me.fieldId)?O(1):O(0)}),ge=Gt.addListener("OnGetFieldValue",me=>{var Oe;const Le=(Oe=me==null?void 0:me.repeatableColumn)==null?void 0:Oe.filter(ve=>(ve==null?void 0:ve.fieldUuid)===(d==null?void 0:d.uuid));Le!=null&&Le.length});return()=>{ue.remove(),Ee.remove(),ge.remove(),K.remove()}});const te=K=>{C(K)},G=()=>{C(!1)},ae=(K,ue)=>{const Ee=a,ge=Et.cloneDeep(e);if(ue){if(ge[d==null?void 0:d.uuid]=K,(Ee==null?void 0:Ee.length)>0)for(const me of Ee)me.fieldId===t.field.uuid&&(me.postData[0]={postValue:K})}else if(delete ge[d==null?void 0:d.uuid],(Ee==null?void 0:Ee.length)>0)for(const me of Ee)me.fieldId===t.field.uuid&&(me.postData[0]={postValue:K});if(!(g!=null&&g.rowIsRepeatable)){n(ge);const me=Object.keys(ge).length;r(me)}},Y=(K,ue)=>{var Ee;if(a){const ge=[...a],me=Et.findIndex(ge,function(Oe){return Oe.rowId===(g==null?void 0:g.uuid)});let Le=(Ee=a[me])==null?void 0:Ee.repeatableFields;Le={...Le,[K==null?void 0:K.uuid]:ue},ge[me]={...ge[me],repeatableFields:Le},i(ge)}T(ue),ue!==""?K.isValid=1:K.isValid=0},pe=K=>{g!=null&&g.rowIsRepeatable?Y(d,K):ae(K,!0)},ie=o.jsxs("div",{onMouseOver:j,onMouseOut:de,children:[!x&&!S&&z&&o.jsx(Hr,{handleFieldSettingsSidebar:te,...t}),o.jsxs("div",{className:`field ${S?" ":" builder-element-wrapper "}${(d==null?void 0:d.isFluid)===!0?" card py-3 px-4 p-fluid":"card py-3 px-4"}`,children:[o.jsx("div",{className:"grid",children:o.jsxs("div",{className:S?"col-12 ":"col-12 p-fluid",children:[(d==null?void 0:d.showHeaderText)&&o.jsx("h6",{children:(J=d==null?void 0:d.headerText)==null?void 0:J[c==null?void 0:c.type]}),(d==null?void 0:d.showLabel)&&o.jsxs("label",{htmlFor:f,className:"flex font-medium mb-3 text-700 text-2xl",children:[o.jsx(aa,{...t}),((Q=d==null?void 0:d.attributes)==null?void 0:Q.required)&&o.jsx("span",{className:"must-required mr-1",children:"*"})," ",S?o.jsx(o.Fragment,{children:(se=d==null?void 0:d.label)==null?void 0:se[c==null?void 0:c.type]}):o.jsx(Zi,{...t}),o.jsx("span",{className:"ml-3",children:(d==null?void 0:d.showToolTip)&&o.jsx(Bi,{message:(be=d==null?void 0:d.toolTip)==null?void 0:be[c==null?void 0:c.type],position:"right"})})]}),o.jsxs("div",{className:"mt-3",children:[o.jsxs("span",{className:"p-input-icon-"+(d==null?void 0:d.iconAlignment),children:[(d==null?void 0:d.showIcon)&&o.jsx("i",{className:"pi pi-"+((Te=(Ce=d==null?void 0:d.icon)==null?void 0:Ce.properties)==null?void 0:Te.name)}),o.jsx(iSe,{id:d==null?void 0:d.uuid,placeholder:(ye=d==null?void 0:d.placeholder)==null?void 0:ye[c==null?void 0:c.type],value:_,onFocus:()=>O(1),onChange:pe,international:!0,className:`${N===1&&((Ae=d==null?void 0:d.attributes)!=null&&Ae.required)?_?"valid":"invalid":"valid'"} p-inputtext`,readOnly:l===s})]}),o.jsx("div",{children:((re=d==null?void 0:d.attributes)==null?void 0:re.required)&&o.jsx("small",{className:"error",children:N===1&&!_?(U=d==null?void 0:d.validationMesssage)==null?void 0:U.english:""})}),o.jsx("div",{children:(d==null?void 0:d.showHelperText)&&o.jsx("small",{children:(Z=d==null?void 0:d.helperText)==null?void 0:Z[c==null?void 0:c.type]})})]})]})}),w&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(Ni,{...t})]})]})]});return o.jsxs(o.Fragment,{children:[E===!0&&o.jsx(Xi,{visibilty:E,closeSettingFieldSidebar:G,...t}),o.jsx(wi,{...t,fieldWrap:ie})]})},sSe=t=>{var ae,Y,pe,ie,J,Q,se,be,Ce,Te,ye;const{field:e,fieldIndex:n,pageIndex:r,sectionIndex:i,row:a}=t,{isPreview:s,isAdmin:l,isRenderView:c}=Zt(),{task_status:u,taskRegisterData:d,updateTaskRegisterData:f,updateTaskProgressValue:h,updateUserFormDataSubmit:m,userTaskSubmitFormData:g,TASK_PUBLISHED:v}=br(),{userSelectedLanguage:A}=on(),[w,x]=F.useState(!1),[S,E]=F.useState(""),[C,_]=F.useState(0),[T,N]=F.useState(!1),O=()=>{N(!0)},B=()=>{N(!1)};F.useEffect(()=>{w||de();const Ae=Gt.addListener("clearRepeatableFields",U=>{U===(a==null?void 0:a.uuid)&&(E(""),_(0),e.isValid=0)}),re=Gt.addListener("onSubmitUserForm",()=>{var U;(U=e==null?void 0:e.attributes)!=null&&U.required?S!==""&&fu.test(S)===!0?e.isValid=1:e.isValid=0:e.isValid=1});return()=>{re.remove(),Ae.remove()}});const[M,z]=F.useState(!1),P=Ae=>{z(Ae)},j=()=>{z(!1)},de=()=>{var Ae,re,U;if(a!=null&&a.rowIsRepeatable){if(a!=null&&a.repeatableFields){const Z=[...a.repeatableFields],K=Et.findIndex(Z,function(ue){return ue.uuid===(e==null?void 0:e.uuid)});K>=0&&Z[K].fieldData?E(Z[K].fieldData):E("")}}else{const Z=g;if(Z!=null&&Z.length){for(const K of Z)if(K.fieldId===t.field.uuid&&((Ae=K==null?void 0:K.postData[0])==null?void 0:Ae.postValue)!==""&&((re=K==null?void 0:K.postData[0])!=null&&re.postValue)){E((U=K==null?void 0:K.postData[0])==null?void 0:U.postValue),x(!0);break}}}x(!0)},he=Ae=>{E(Ae);const re=g,U=Et.cloneDeep(d);if(Ae!==""&&fu.test(Ae)===!0){if(U[e==null?void 0:e.uuid]=Ae,(re==null?void 0:re.length)>0)for(const Z of re)Z.fieldId===t.field.uuid&&(Z.postData[0]={postValue:Ae})}else if(delete U[e==null?void 0:e.uuid],(re==null?void 0:re.length)>0)for(const Z of re)Z.fieldId===t.field.uuid&&(Z.postData[0]={postValue:""});if(!(a!=null&&a.rowIsRepeatable)){f(U);const Z=Object.keys(U).length;h(Z)}},te=(Ae,re)=>{var ge;const U=[...g],Z=Et.findIndex(U,function(me){return me.rowId===(a==null?void 0:a.uuid)});let K=(ge=g[Z])==null?void 0:ge.repeatableFields;const ue=Ae,Ee=ue==null?void 0:ue.uuid;K={...K,[Ee]:re},U[Z]={...U[Z],repeatableFields:K},m(U),E(re),re!==""&&fu.test(re)===!0?e.isValid=1:e.isValid=0},G=o.jsxs("div",{onMouseOver:O,onMouseOut:B,children:[!c&&!s&&T&&o.jsx(Hr,{handleFieldSettingsSidebar:P,...t}),o.jsxs("div",{className:`field ${s?" ":" builder-element-wrapper "}${(e==null?void 0:e.isFluid)===!0?" card py-3 px-4 p-fluid":"card py-3 px-4"}`,children:[o.jsx("div",{className:"grid"}),(e==null?void 0:e.showHeaderText)&&o.jsx("h6",{children:(ae=e==null?void 0:e.headerText)==null?void 0:ae[A==null?void 0:A.type]}),(e==null?void 0:e.showLabel)&&o.jsxs("label",{htmlFor:n,className:"flex font-medium mb-3 text-700 text-2xl",children:[o.jsx(aa,{...t}),((Y=e==null?void 0:e.attributes)==null?void 0:Y.required)&&o.jsx("span",{className:"must-required mr-1",children:"*"})," ",s?o.jsx(o.Fragment,{children:(pe=e==null?void 0:e.label)==null?void 0:pe[A==null?void 0:A.type]}):o.jsx(Zi,{...t}),o.jsx("span",{className:"ml-3",children:(e==null?void 0:e.showToolTip)&&o.jsx(Bi,{message:(ie=e==null?void 0:e.toolTip)==null?void 0:ie[A==null?void 0:A.type],position:"right"})})]}),o.jsxs("span",{className:"p-input-icon-"+(e==null?void 0:e.iconAlignment),children:[(e==null?void 0:e.showIcon)&&o.jsx("i",{className:"pi pi-"+((Q=(J=e==null?void 0:e.icon)==null?void 0:J.properties)==null?void 0:Q.name)}),o.jsx(mn,{id:e==null?void 0:e.uuid,placeholder:(se=e==null?void 0:e.placeholder)==null?void 0:se[A==null?void 0:A.type],value:S,onFocus:()=>_(1),onChange:Ae=>{a!=null&&a.rowIsRepeatable?te(r,i):he(Ae.target.value)},className:C===1&&((be=e==null?void 0:e.attributes)!=null&&be.required)?S?"valid":"invalid":"valid'",readOnly:u===v})]}),((Ce=e==null?void 0:e.attributes)==null?void 0:Ce.required)&&o.jsx("div",{children:o.jsx("small",{className:"error",children:C===1&&!S?(Te=e==null?void 0:e.validationMesssage)==null?void 0:Te[A==null?void 0:A.type]:""})}),S!==""&&C===1&&fu.test(S)===!1&&o.jsx("small",{className:"error",children:"Please enter correct url"}),(e==null?void 0:e.showHelperText)&&o.jsx("div",{children:o.jsx("small",{children:(ye=e==null?void 0:e.helperText)==null?void 0:ye[A==null?void 0:A.type]})})]}),l&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(Ni,{...t})]})]});return o.jsxs(o.Fragment,{children:[M===!0&&o.jsx(Xi,{visibilty:M,closeSettingFieldSidebar:j,...t},e==null?void 0:e.uuid),o.jsx(wi,{...t,fieldWrap:G})]})},oSe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAwAAAAMACAYAAACTgQCOAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAABmJLR0QA/wD/AP+gvaeTAACAAElEQVR42u3deXxcdb3/8ffnTLaWthSUVVuaTMIWKc2cpLWi/oqIeK+4XisuoKDodUNx38H9Ku67IhdwB6NeF1xBqQrWNjOTUgxbM0kLyKp0b7PMnM/vj1ZFtiazZc7M6/l4+LhXxTZ5nzPnfN9zvt/vMQEAakI6DJv3j6L5gft8NTfPN/f5cp8fuR+gIJhv7vNdag7M5sm91aXZkvaTe4uk/c2sSdL+kuRSQtK8h/hr5khqfsB/Nilpx0P8s9tMKuz9/7e6e17SVplNSNpp0i6ZjUfu20yadLMtiqItgdlmmW1xsy2anNwSmW3ZGgRbejOZSY4yAMw8IwIAqAxfuTKxcePGg6IoOsjMDlUUHeJBcJBJh8n9YHc/2MwOdelgSfMl7VfnkeyUtMWke1y606R73f1uBcFdFkX3Kgjudve7giC4d9GiRfdaf3+BswgAKAAAUDM2HXfcARNtbYcH0mFeKHRYEBxu0mEeRR1m1uHSQklNJFW0zZJGJI2YdKdLd5g04tKdhSC4o2tgYKNJETEBAAUAAMoiHYbN892PkNQZSEkPgk65d7qUNKldUhspzagxl0bNbFhRNGxSzqThgpTbYraJKUcAQAEAgIc0vHjxwWpu7jbpGEndkjolJSUdIb7Bj6u8pE0uDZvZsNyHXLrJo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u4NNDghWlwRR7MtUwZJBRJtxqa2BY5j8m6B/kvZxsRa8zkAGaSb2Ys9uIfEvn265N0kPhdtbuzT9SSVVBrirKmnCR7Zp0s+zhZeF2t4qk/X0xRXADKINTxF4j/24VJbCa5iGyc6+UuajmhzI9s4keAqYGvvL8h/cPLPwxWATNJNDLKY7wPtHl3iW8Al0eIXPfp8SRWXhnk98AfAO3p0iVsZZfXU2Sj1mQUgozTC4cAPSRzQxY99kOB3osk1XfxMSTWWhjmHySJweBc/9iGCVb4GOB+3ADKKJr8isRa6chveGME6tnCck7+kbooW15M4AbgSunKA+CESb3Pyz8sVgAJIP+YQxvkz4PRZfsRNwGejxb90MZYkvUIa5njgi8DaWX7EdxjgQz5/JD8LQEFMvbnrIyR+l+kvs/0UuDxa/GUPo0nSK6Rh3kPiKoKl0/wt9xD8O1bwxxF0ehpO02IBKJipw4HvBN4NrAZez4tvDxwD/pnE90n8T9p8128kSbmkRINh3gScT3AqcAIwb+qXJ4C7gO8Df8kG/tqH/RSLBaDg0nUMcByLATiJzU74kooqJRr8hL0B+BmjTviSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJKnG/n/K52f+BC6LdAAAAABJRU5ErkJggg==",uSe=t=>{var G,ae,Y,pe,ie,J,Q,se,be;const{field:e,pageIndex:n,sectionIndex:r,row:i}=t,{isAdmin:a,isPreview:s,isRenderView:l}=Zt(),{task_status:c,taskRegisterData:u,updateTaskRegisterData:d,updateTaskProgressValue:f,updateUserFormDataSubmit:h,userTaskSubmitFormData:m,TASK_PUBLISHED:g}=br(),{userSelectedLanguage:v}=on(),[A,w]=F.useState(!1),[x,S]=F.useState(""),[E,C]=F.useState(0),[_,T]=F.useState(!1),N=()=>{T(!0)},O=()=>{T(!1)};F.useEffect(()=>{A||j();const Ce=Gt.addListener("clearRepeatableFields",ye=>{ye===(i==null?void 0:i.uuid)&&(S(""),C(0),e.isValid=0)}),Te=Gt.addListener("onSubmitUserForm",()=>{var ye;(ye=e==null?void 0:e.attributes)!=null&&ye.required?x!==""&&fu.test(x)===!0?e.isValid=1:e.isValid=0:e.isValid=1});return()=>{Te.remove(),Ce.remove()}});const[B,M]=F.useState(!1),z=Ce=>{M(Ce)},P=()=>{M(!1)},j=()=>{var Ce,Te,ye;if(i!=null&&i.rowIsRepeatable){const Ae=[...(i==null?void 0:i.repeatableFields)||[]],re=Et.findIndex(Ae,function(U){return U.uuid===(e==null?void 0:e.uuid)});re>=0&&Ae[re].fieldData?S(Ae[re].fieldData):S("")}else{const Ae=m;if(Ae!=null&&Ae.length){for(const re of Ae)if(re.fieldId===t.field.uuid&&((Ce=re==null?void 0:re.postData[0])==null?void 0:Ce.postValue)!==""&&((Te=re==null?void 0:re.postData[0])!=null&&Te.postValue)){S((ye=re==null?void 0:re.postData[0])==null?void 0:ye.postValue),w(!0);break}}}w(!0)},de=(Ce,Te)=>{S(Te);const ye=m,Ae=Et.cloneDeep(u);if(ye!==null){if(Te){if(Ae[e==null?void 0:e.uuid]=Te,(ye==null?void 0:ye.length)>0)for(const re of ye)re.fieldId===t.field.uuid&&(re.postData[0]={postValue:Te})}else if(delete Ae[e==null?void 0:e.uuid],(ye==null?void 0:ye.length)>0)for(const re of ye)re.fieldId===t.field.uuid&&(re.postData[0]={postValue:""})}if(!(i!=null&&i.rowIsRepeatable)){d(Ae);const re=Object.keys(Ae).length;f(re)}},he=(Ce,Te,ye,Ae)=>{var K;const re=[...m],U=Et.findIndex(re,function(ue){return ue.rowId===(i==null?void 0:i.uuid)});let Z=(K=m[U])==null?void 0:K.repeatableFields;Z={...Z,[ye==null?void 0:ye.uuid]:Ae},re[U]={...re[U],repeatableFields:Z},h(re),S(Ae),Ae!==""&&fu.test(Ae)===!0?e.isValid=1:e.isValid=0},te=o.jsxs("div",{onMouseOver:N,onMouseOut:O,children:[!l&&!s&&_&&o.jsx(Hr,{handleFieldSettingsSidebar:z,...t}),o.jsxs("div",{className:`field ${s?" ":" builder-element-wrapper "}${(e==null?void 0:e.isFluid)===!0?" card py-3 px-4 p-fluid":"card py-3 px-4"}`,children:[o.jsx("div",{className:"grid",children:o.jsxs("div",{className:a?"col-6 ":"col-12 p-fluid",children:[(e==null?void 0:e.showHeaderText)&&o.jsx("h6",{children:(G=e==null?void 0:e.headerText)==null?void 0:G[v==null?void 0:v.type]}),(e==null?void 0:e.showLabel)&&o.jsxs("label",{htmlFor:e.uuid,className:"flex font-medium mb-3 text-700 text-2xl",children:[o.jsx(aa,{...t}),((ae=e==null?void 0:e.attributes)==null?void 0:ae.required)&&o.jsx("span",{className:"must-required mr-1",children:"*"})," ",s?o.jsx(o.Fragment,{children:(Y=e==null?void 0:e.label)==null?void 0:Y[v==null?void 0:v.type]}):o.jsx(Zi,{...t}),(e==null?void 0:e.showToolTip)&&o.jsx("span",{className:"ml-3",children:o.jsx(Bi,{message:(pe=e==null?void 0:e.toolTip)==null?void 0:pe[v==null?void 0:v.type],position:"right"})})]}),o.jsx("div",{children:o.jsx(D6,{cancelIcon:o.jsx("img",{src:oSe,alt:"custom-cancel-image",width:"25px",height:"25px"}),offIcon:o.jsx("img",{src:lSe,alt:"custom-image-active",width:"25px",height:"25px"}),onIcon:o.jsx("img",{src:cSe,alt:"custom-image",width:"25px",height:"25px"}),id:e==null?void 0:e.uuid,placeholder:(ie=e==null?void 0:e.placeholder)==null?void 0:ie[v==null?void 0:v.type],value:x,onFocus:()=>C(1),onChange:Ce=>{i!=null&&i.rowIsRepeatable?he(n,r,e,Ce.value):de(Ce,Ce.value)},className:E===1&&((J=e==null?void 0:e.attributes)!=null&&J.required)?x?"valid":"invalid":"valid'",readOnly:c===g})}),((Q=e==null?void 0:e.attributes)==null?void 0:Q.required)&&o.jsx("div",{children:o.jsx("small",{className:"error",children:E===1&&!x?(se=e==null?void 0:e.validationMesssage)==null?void 0:se[v==null?void 0:v.type]:""})}),(e==null?void 0:e.showHelperText)&&o.jsx("div",{children:o.jsx("small",{children:(be=e==null?void 0:e.helperText)==null?void 0:be[v==null?void 0:v.type]})})]})}),a&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(Ni,{...t})]})]})]});return o.jsxs(o.Fragment,{children:[B===!0&&o.jsx(Xi,{visibilty:B,closeSettingFieldSidebar:P,...t},e==null?void 0:e.uuid),o.jsx(wi,{...t,fieldWrap:te})]})},dSe=t=>{var G,ae,Y,pe,ie,J,Q,se,be;const{field:e,pageIndex:n,sectionIndex:r,row:i}=t,{isPreview:a,isAdmin:s,isRenderView:l}=Zt(),{task_status:c,taskRegisterData:u,updateTaskRegisterData:d,updateTaskProgressValue:f,updateUserFormDataSubmit:h,userTaskSubmitFormData:m,TASK_PUBLISHED:g}=br(),{userSelectedLanguage:v}=on(),[A,w]=F.useState(!1),[x,S]=F.useState(""),[E,C]=F.useState(0),[_,T]=F.useState(!1),N=()=>{T(!0)},O=()=>{T(!1)};F.useEffect(()=>{A||j();const Ce=Gt.addListener("clearRepeatableFields",ye=>{ye===(i==null?void 0:i.uuid)&&(S(""),C(0),e.isValid=0)}),Te=Gt.addListener("onSubmitUserForm",()=>{var ye;(ye=e==null?void 0:e.attributes)!=null&&ye.required?x!==""&&fu.test(x)===!0?e.isValid=1:e.isValid=0:e.isValid=1});return()=>{Te.remove(),Ce.remove()}});const[B,M]=F.useState(!1),z=Ce=>{M(Ce)},P=()=>{M(!1)},j=()=>{var Ce,Te,ye;if(i!=null&&i.rowIsRepeatable){if(i!=null&&i.repeatableFields){const Ae=[...i.repeatableFields],re=Et.findIndex(Ae,function(U){return U.uuid===(e==null?void 0:e.uuid)});re>=0&&Ae[re].fieldData?S(Ae[re].fieldData):S("")}}else{const Ae=m;if(Ae!=null&&Ae.length){for(const re of Ae)if(re.fieldId===t.field.uuid&&((Ce=re==null?void 0:re.postData[0])==null?void 0:Ce.postValue)!==""&&((Te=re==null?void 0:re.postData[0])!=null&&Te.postValue)){S((ye=re==null?void 0:re.postData[0])==null?void 0:ye.postValue),w(!0);break}}}w(!0)},de=(Ce,Te)=>{S(Te);const ye=m,Ae=Et.cloneDeep(u);if(ye!==null){if(Te){if(Ae[e==null?void 0:e.uuid]=Te,(ye==null?void 0:ye.length)>0)for(const re of ye)re.fieldId===t.field.uuid&&(re.postData[0]={postValue:Te})}else if(delete Ae[e==null?void 0:e.uuid],(ye==null?void 0:ye.length)>0)for(const re of ye)re.fieldId===t.field.uuid&&(re.postData[0]={postValue:""})}if(!(i!=null&&i.rowIsRepeatable)){d(Ae);const re=Object.keys(Ae).length;f(re)}},he=(Ce,Te,ye,Ae)=>{var K;const re=[...m],U=Et.findIndex(re,function(ue){return ue.rowId===(i==null?void 0:i.uuid)});let Z=(K=m[U])==null?void 0:K.repeatableFields;Z={...Z,[ye==null?void 0:ye.uuid]:Ae},re[U]={...re[U],repeatableFields:Z},h(re),S(Ae),Ae!==""&&fu.test(Ae)===!0?e.isValid=1:e.isValid=0},te=o.jsxs("div",{onMouseOver:N,onMouseOut:O,children:[!l&&!a&&_&&o.jsx(Hr,{handleFieldSettingsSidebar:z,...t}),o.jsx("div",{className:`field ${a?" ":" builder-element-wrapper "}${(e==null?void 0:e.isFluid)===!0?" card py-3 px-4 p-fluid":"card py-3 px-4"}`,children:o.jsxs("div",{className:"grid",children:[o.jsxs("div",{className:a?"col-12 p-fluid":"col-12 p-fluid field-form-builder",children:[(e==null?void 0:e.showHeaderText)&&o.jsx("h6",{children:(G=e==null?void 0:e.headerText)==null?void 0:G[v==null?void 0:v.type]}),(e==null?void 0:e.showLabel)&&o.jsxs("label",{htmlFor:e.uuid,className:"flex font-medium mb-3 text-700 text-2xl",children:[o.jsx(aa,{...t}),((ae=e==null?void 0:e.attributes)==null?void 0:ae.required)&&o.jsx("span",{className:"must-required mr-1",children:"*"})," ",a?o.jsx(o.Fragment,{children:(Y=e==null?void 0:e.label)==null?void 0:Y[v==null?void 0:v.type]}):o.jsx(Zi,{...t}),o.jsx("span",{className:"ml-3",children:(e==null?void 0:e.showToolTip)&&o.jsx(Bi,{message:(pe=e==null?void 0:e.toolTip)==null?void 0:pe[v==null?void 0:v.type],position:"right"})})]}),o.jsx(F6,{id:e==null?void 0:e.uuid,placeholder:(ie=e==null?void 0:e.placeholder)==null?void 0:ie[v==null?void 0:v.type],value:x,onFocus:()=>C(1),onChange:Ce=>{i!=null&&i.rowIsRepeatable?he(n,r,e,Ce.value):de(Ce,Ce.value)},className:E===1&&((J=e==null?void 0:e.attributes)!=null&&J.required)?x?"valid":"invalid":"valid'",readOnly:c===g}),((Q=e==null?void 0:e.attributes)==null?void 0:Q.required)&&o.jsx("div",{children:o.jsx("small",{className:"error",children:E===1&&!x?(se=e==null?void 0:e.validationMesssage)==null?void 0:se[v==null?void 0:v.type]:""})}),(e==null?void 0:e.showHelperText)&&o.jsx("div",{children:o.jsx("small",{children:(be=e==null?void 0:e.helperText)==null?void 0:be[v==null?void 0:v.type]})})]}),s&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(Ni,{...t})]})]})})]});return o.jsxs(o.Fragment,{children:[B===!0&&o.jsx(Xi,{visibilty:B,closeSettingFieldSidebar:P,...t},e==null?void 0:e.uuid),o.jsx(wi,{...t,fieldWrap:te})]})},fSe=t=>{var G,ae,Y,pe,ie,J;const{field:e,pageIndex:n,sectionIndex:r,row:i}=t,{isPreview:a,isAdmin:s,isRenderView:l}=Zt(),{task_status:c,taskRegisterData:u,updateTaskRegisterData:d,updateTaskProgressValue:f,updateUserFormDataSubmit:h,userTaskSubmitFormData:m,TASK_PUBLISHED:g}=br(),{userSelectedLanguage:v}=on(),[A,w]=F.useState(!1),[x,S]=F.useState(""),[E,C]=F.useState(0),[_,T]=F.useState(!1),N=()=>{T(!0)},O=()=>{T(!1)};F.useEffect(()=>{A||j();const Q=Gt.addListener("clearRepeatableFields",be=>{be===(i==null?void 0:i.uuid)&&(S(""),C(0),e.isValid=0)}),se=Gt.addListener("onSubmitUserForm",()=>{var be;(be=e==null?void 0:e.attributes)!=null&&be.required&&(x!==""&&fu.test(x)===!0?e.isValid=1:e.isValid=0)});return()=>{se.remove(),Q.remove()}});const[B,M]=F.useState(!1),z=Q=>{M(Q)},P=()=>{M(!1)},j=()=>{var Q,se,be;if(i!=null&&i.rowIsRepeatable){if(i!=null&&i.repeatableFields){const Ce=[...i.repeatableFields],Te=Et.findIndex(Ce,function(ye){return ye.uuid===(e==null?void 0:e.uuid)});Te>=0&&Ce[Te].fieldData?S(Ce[Te].fieldData):S("")}}else{const Ce=m;if(Ce!=null&&Ce.length){for(const Te of Ce)if(Te.fieldId===t.field.uuid&&((Q=Te==null?void 0:Te.postData[0])==null?void 0:Q.postValue)!==""&&((se=Te==null?void 0:Te.postData[0])!=null&&se.postValue)){S((be=Te==null?void 0:Te.postData[0])==null?void 0:be.postValue),w(!0);break}}}w(!0)},de=(Q,se)=>{S(se);const be=m,Ce=Et.cloneDeep(u);if(se){if(Ce[e==null?void 0:e.uuid]=se,(be==null?void 0:be.length)>0)for(const Te of be)Te.fieldId===t.field.uuid&&(Te.postData[0]={postValue:se})}else if(delete Ce[e==null?void 0:e.uuid],(be==null?void 0:be.length)>0)for(const Te of be)Te.fieldId===t.field.uuid&&(Te.postData[0]={postValue:""});if(!(i!=null&&i.rowIsRepeatable)){d(Ce);const Te=Object.keys(Ce).length;f(Te)}},he=(Q,se,be,Ce)=>{var re;const Te=[...m],ye=Et.findIndex(Te,function(U){return U.rowId===(i==null?void 0:i.uuid)});let Ae=(re=m[ye])==null?void 0:re.repeatableFields;Ae={...Ae,[be==null?void 0:be.uuid]:Ce},Te[ye]={...Te[ye],repeatableFields:Ae},h(Te),S(Ce),Ce!==""&&fu.test(Ce)===!0?e.isValid=1:e.isValid=0},te=o.jsxs("div",{onMouseOver:N,onMouseOut:O,children:[!l&&!a&&_&&o.jsx(Hr,{handleFieldSettingsSidebar:z,...t}),o.jsxs("div",{className:`field ${a?" ":" builder-element-wrapper "}${(e==null?void 0:e.isFluid)===!0?" p-fluid ":" "} ${l?" ":" py-6 px-4 card"}`,children:[o.jsxs("div",{className:a?"p-fluid":"card p-fluid field-form-builder",children:[!a&&o.jsx("label",{className:"block font-medium mb-3 text-700 text-2xl",children:"Hidden field"}),o.jsx(mn,{type:a===!0?"hidden":"text",id:e==null?void 0:e.uuid,placeholder:(G=e==null?void 0:e.placeholder)==null?void 0:G[v==null?void 0:v.type],value:(ae=e==null?void 0:e.defaultValue)==null?void 0:ae[v==null?void 0:v.type],onFocus:()=>C(1),onLoad:()=>{i!=null&&i.rowIsRepeatable?he(n,r,e,e==null?void 0:e.defaultValue):de("",e==null?void 0:e.defaultValue)},className:E===1&&((Y=e==null?void 0:e.attributes)!=null&&Y.required)?x?"valid":"invalid":"valid'",readOnly:c===g}),((pe=e==null?void 0:e.attributes)==null?void 0:pe.required)&&o.jsx("div",{children:o.jsx("small",{className:"error",children:E===1&&!x?(ie=e==null?void 0:e.validationMesssage)==null?void 0:ie[v==null?void 0:v.type]:""})}),(e==null?void 0:e.showHelperText)&&o.jsx("div",{children:o.jsx("small",{children:(J=e==null?void 0:e.helperText)==null?void 0:J[v==null?void 0:v.type]})})]}),s&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(Ni,{...t})]})]})]});return o.jsxs(o.Fragment,{children:[B===!0&&o.jsx(Xi,{visibilty:B,closeSettingFieldSidebar:P,...t}),o.jsx(wi,{...t,fieldWrap:te})]})},oj=t=>{var E;const{field:e,fieldIndex:n,pageIndex:r,sectionIndex:i,rowIndex:a,columnIndex:s,path:l,labelType:c}=t,[u,d]=F.useState(e),{isPreview:f}=Zt();F.useEffect(()=>{var C;return x((C=e[c])==null?void 0:C[h==null?void 0:h.type]),()=>{}},[e]);const{userSelectedLanguage:h,fieldSettingUpdate:m,fieldSettingUpdateInlineConditional:g,gridComponentFieldSettingUpdate:v}=on(),A=(C,_,T)=>{d(N=>({...N,[C]:{...N[C],[_==null?void 0:_.type]:T}}))},[w,x]=F.useState((E=e[c])==null?void 0:E[h==null?void 0:h.type]);F.useEffect(()=>(S(),()=>{}),[u]);const S=()=>{const C=l.split("-").map(Number);(t==null?void 0:t.fieldContainer)==="inline-condition-container"?g(C[oa],C[la],C[fa],C[ha],C[pa],C[wa],C[$o],C[yo],u):(C==null?void 0:C.length)>wa&&(C==null?void 0:C.length)===Bl+1&&(e!=null&&e.componentType)&&(t==null?void 0:t.fieldContainer)==="grid-container"?v(C[oa],C[la],C[fa],C[ha],C[pa],C[5],C[6],C[7],u):m(r,i,a,s,n,{...e,[c]:u[c]})};return o.jsx(o.Fragment,{children:o.jsx(r4,{style:{display:"inline-block"},className:"builder-input-label-edit",html:w,disabled:f,onChange:C=>{var _;x(l4.sanitize((_=C==null?void 0:C.target)==null?void 0:_.value))},onBlur:C=>{var T;const _=l4.sanitize((T=C==null?void 0:C.target)==null?void 0:T.innerText);x(_),A(c,h,_)},tagName:"article"})})},hSe=t=>{var ie,J,Q,se,be,Ce,Te;const{taskRegisterData:e,updateTaskRegisterData:n,updateTaskProgressValue:r,updateUserFormDataSubmit:i,userTaskSubmitFormData:a}=br(),{userSelectedLanguage:s,fieldSettingUpdate:l}=on(),{field:c,fieldIndex:u,sectionIndex:d,pageIndex:f,row:h,rowIndex:m,columnIndex:g}=t,{isPreview:v,isAdmin:A,isRenderView:w}=Zt(),[x,S]=F.useState(!1),[E,C]=F.useState(""),[_,T]=F.useState(0),[N,O]=F.useState(!1),[B,M]=F.useState(!1),z=()=>{M(!0)},P=()=>{M(!1)},j=()=>{var ye,Ae,re;if(h!=null&&h.rowIsRepeatable){if(h!=null&&h.repeatableFields){const U=[...h.repeatableFields],Z=Et.findIndex(U,function(K){return K.uuid===(c==null?void 0:c.uuid)});Z>=0&&U[Z].fieldData?C(U[Z].fieldData):C("")}}else{const U=a;if(U!=null&&U.length){for(const Z of U)if(Z.fieldId===t.field.uuid&&((ye=Z==null?void 0:Z.postData[0])==null?void 0:ye.postValue)!==""&&((Ae=Z==null?void 0:Z.postData[0])!=null&&Ae.postValue)){C((re=Z==null?void 0:Z.postData[0])==null?void 0:re.postValue);break}}}O(!0)};F.useEffect(()=>{N||j();const ye=Gt.addListener("clearRepeatableFields",Z=>{Z===(h==null?void 0:h.uuid)&&(C(""),T(0),c.isValid=0,l(f,d,m,g,u,c))}),Ae=Gt.addListener("onSubmitUserForm",()=>{var Z;(Z=c==null?void 0:c.attributes)!=null&&Z.required?E?c.isValid=1:c.isValid=0:c.isValid=1}),re=Gt.addListener("OnInvalidFieldCatch",Z=>{c.uuid===(Z==null?void 0:Z.fieldId)?T(1):T(0)}),U=Gt.addListener("OnGetFieldValue",Z=>{var ue;const K=(ue=Z==null?void 0:Z.repeatableColumn)==null?void 0:ue.filter(Ee=>(Ee==null?void 0:Ee.fieldUuid)===(c==null?void 0:c.uuid));K!=null&&K.length});return()=>{Ae.remove(),re.remove(),U.remove(),ye.remove()}});const de=ye=>{S(ye)},he=()=>{S(!1)},te=ye=>{var U,Z;C(ye.target.value);const Ae=a,re=Et.cloneDeep(e);if(Ae!==null){if((U=ye==null?void 0:ye.target)!=null&&U.value){if(re[c==null?void 0:c.uuid]=(Z=ye==null?void 0:ye.target)==null?void 0:Z.value,(Ae==null?void 0:Ae.length)>0)for(const K of Ae)K.fieldId===t.field.uuid&&(K.postData[0]={postValue:ye.target.value})}else if(delete re[c==null?void 0:c.uuid],(Ae==null?void 0:Ae.length)>0)for(const K of Ae)K.fieldId===t.field.uuid&&(K.postData[0]={postValue:""})}if(!(h!=null&&h.rowIsRepeatable)){n(re);const K=Object.keys(re).length;r(K)}},G=(ye,Ae,re,U)=>{var Z;if(a){const K=[...a],ue=Et.findIndex(K,function(ge){return ge.rowId===(h==null?void 0:h.uuid)});let Ee=(Z=a[ue])==null?void 0:Z.repeatableFields;Ee={...Ee,[re==null?void 0:re.uuid]:U},K[ue]={...K[ue],repeatableFields:Ee},i(K)}C(U),U!==""?re.isValid=1:re.isValid=0},ae=10,Y=()=>{const ye=[];for(let Ae=0;Ae<=ae;Ae++)ye.push(o.jsxs("label",{children:[o.jsx("input",{onChange:re=>{h!=null&&h.rowIsRepeatable?G(f,d,c,re.target.value):te(re)},checked:parseInt(E)===Ae,name:"liker-scale"+(c==null?void 0:c.uuid),type:"radio",value:Ae}),o.jsx("span",{children:Ae})]},`field-${c==null?void 0:c.uuid}-likertScale-${Ae} ${parseInt(E)===Ae?"scale-selected":""}`));return ye},pe=o.jsxs("div",{onMouseOver:z,onMouseOut:P,children:[!w&&!v&&B&&o.jsx(Hr,{handleFieldSettingsSidebar:de,...t}),o.jsxs("div",{className:`field ${v?" ":" builder-element-wrapper "}${(c==null?void 0:c.isFluid)===!0?" card py-3 px-4 p-fluid":"card py-3 px-4"}`,children:[o.jsxs("div",{className:"",children:[(c==null?void 0:c.showHeaderText)&&o.jsx("h6",{children:(ie=c==null?void 0:c.headerText)==null?void 0:ie[s==null?void 0:s.type]}),(c==null?void 0:c.showLabel)&&o.jsxs("label",{htmlFor:u,className:"flex font-medium mb-3 text-700 text-2xl",children:[o.jsx(aa,{...t}),((J=c==null?void 0:c.attributes)==null?void 0:J.required)&&o.jsx("span",{className:"must-required mr-1",children:"*"})," ",v?o.jsx(o.Fragment,{children:(Q=c==null?void 0:c.label)==null?void 0:Q[s==null?void 0:s.type]}):o.jsx(Zi,{...t}),o.jsx("span",{className:"ml-3",children:(c==null?void 0:c.showToolTip)&&o.jsx(Bi,{message:(se=c==null?void 0:c.toolTip)==null?void 0:se[s==null?void 0:s.type],position:"right"})})]}),o.jsx("div",{children:o.jsxs("div",{className:"mt-4",children:[o.jsxs("div",{className:"flex justify-content-between mb-3",children:[o.jsx("div",{className:"font-medium text-900 ",children:o.jsx(oj,{...t,labelType:"startingMessage"})}),o.jsx("div",{className:"font-medium text-900",children:o.jsx(oj,{...t,labelType:"endingMessage"})})]}),o.jsx("div",{className:"likert",children:Y()})]})}),o.jsx("div",{children:((be=c==null?void 0:c.attributes)==null?void 0:be.required)&&o.jsx("small",{className:"error",children:_===1&&!E?(Ce=c==null?void 0:c.validationMesssage)==null?void 0:Ce.language:""})}),o.jsx("div",{children:(c==null?void 0:c.showHelperText)&&o.jsx("small",{children:(Te=c==null?void 0:c.helperText)==null?void 0:Te[s==null?void 0:s.type]})})]}),A&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(Ni,{...t})]})]})]});return o.jsxs(o.Fragment,{children:[x===!0&&o.jsx(Xi,{visibilty:x,closeSettingFieldSidebar:he,...t}),o.jsx(wi,{...t,fieldWrap:pe})]})},pSe=t=>{var ie,J,Q,se,be,Ce,Te,ye,Ae,re,U,Z;const{taskRegisterData:e,updateTaskRegisterData:n,updateTaskProgressValue:r,updateUserFormDataSubmit:i,userTaskSubmitFormData:a,task_status:s,TASK_PUBLISHED:l}=br(),{userSelectedLanguage:c,fieldSettingUpdate:u}=on(),{field:d,fieldIndex:f,sectionIndex:h,pageIndex:m,row:g,rowIndex:v,columnIndex:A}=t,{isPreview:w,isAdmin:x,isRenderView:S}=Zt(),[E,C]=F.useState(!1),[_,T]=F.useState(""),[N,O]=F.useState(0),[B,M]=F.useState(!1),[z,P]=F.useState(!1),j=()=>{P(!0)},de=()=>{P(!1)},he=()=>{var K,ue,Ee;if(g!=null&&g.rowIsRepeatable){if(g!=null&&g.repeatableFields){const ge=[...g.repeatableFields],me=Et.findIndex(ge,function(Le){return Le.uuid===(d==null?void 0:d.uuid)});me>=0&&ge[me].fieldData?T(ge[me].fieldData):T("")}}else{const ge=a;if(ge!=null&&ge.length){for(const me of ge)if(me.fieldId===t.field.uuid&&((K=me==null?void 0:me.postData[0])==null?void 0:K.postValue)!==""&&((ue=me==null?void 0:me.postData[0])!=null&&ue.postValue)){T((Ee=me==null?void 0:me.postData[0])==null?void 0:Ee.postValue);break}}}M(!0)};F.useEffect(()=>{B||he();const K=Gt.addListener("clearRepeatableFields",me=>{me===(g==null?void 0:g.uuid)&&(T(""),O(0),d.isValid=0,u(m,h,v,A,f,d))}),ue=Gt.addListener("onSubmitUserForm",()=>{var me;(me=d==null?void 0:d.attributes)!=null&&me.required?_?d.isValid=1:d.isValid=0:d.isValid=1}),Ee=Gt.addListener("OnInvalidFieldCatch",me=>{d.uuid===(me==null?void 0:me.fieldId)?O(1):O(0)}),ge=Gt.addListener("OnGetFieldValue",me=>{var Oe;const Le=(Oe=me==null?void 0:me.repeatableColumn)==null?void 0:Oe.filter(ve=>(ve==null?void 0:ve.fieldUuid)===(d==null?void 0:d.uuid));Le!=null&&Le.length});return()=>{ue.remove(),Ee.remove(),ge.remove(),K.remove()}});const te=K=>{C(K)},G=()=>{C(!1)},ae=K=>{var ge,me;T(K.target.value);const ue=a,Ee=Et.cloneDeep(e);if(ue!==null){if((ge=K==null?void 0:K.target)!=null&&ge.value){if(Ee[d==null?void 0:d.uuid]=(me=K==null?void 0:K.target)==null?void 0:me.value,(ue==null?void 0:ue.length)>0)for(const Le of ue)Le.fieldId===t.field.uuid&&(Le.postData[0]={postValue:K.target.value})}else if(delete Ee[d==null?void 0:d.uuid],(ue==null?void 0:ue.length)>0)for(const Le of ue)Le.fieldId===t.field.uuid&&(Le.postData[0]={postValue:""})}if(!(g!=null&&g.rowIsRepeatable)){n(Ee);const Le=Object.keys(Ee).length;r(Le)}},Y=(K,ue)=>{var Ee;if(a){const ge=[...a],me=Et.findIndex(ge,function(Oe){return Oe.rowId===(g==null?void 0:g.uuid)});let Le=(Ee=a[me])==null?void 0:Ee.repeatableFields;Le={...Le,[K==null?void 0:K.uuid]:ue},ge[me]={...ge[me],repeatableFields:Le},i(ge)}T(ue),ue!==""?K.isValid=1:K.isValid=0},pe=o.jsxs("div",{onMouseOver:j,onMouseOut:de,children:[!S&&!w&&z&&o.jsx(Hr,{handleFieldSettingsSidebar:te,...t}),o.jsxs("div",{className:`field ${w?" ":" builder-element-wrapper "}${(d==null?void 0:d.isFluid)===!0?" card py-3 px-4 p-fluid":"card py-3 px-4"}`,children:[o.jsx("div",{className:"grid",children:o.jsxs("div",{className:w?"col-12 ":"col-12 p-fluid",children:[(d==null?void 0:d.showHeaderText)&&o.jsx("h6",{children:(ie=d==null?void 0:d.headerText)==null?void 0:ie[c==null?void 0:c.type]}),(d==null?void 0:d.showLabel)&&o.jsxs("label",{htmlFor:f,className:"flex font-medium mb-3 text-700 text-2xl",children:[o.jsx(aa,{...t}),((J=d==null?void 0:d.attributes)==null?void 0:J.required)&&o.jsx("span",{className:"must-required mr-1",children:"*"})," ",w?o.jsx(o.Fragment,{children:(Q=d==null?void 0:d.label)==null?void 0:Q[c==null?void 0:c.type]}):o.jsx(Zi,{...t}),o.jsx("span",{className:"ml-3",children:(d==null?void 0:d.showToolTip)&&o.jsx(Bi,{message:(se=d==null?void 0:d.toolTip)==null?void 0:se[c==null?void 0:c.type],position:"right"})})]}),o.jsxs("div",{className:"mt-3",children:[o.jsxs("span",{className:"p-input-icon-"+(d==null?void 0:d.iconAlignment),children:[(d==null?void 0:d.showIcon)&&o.jsx("i",{className:"pi pi-"+((Ce=(be=d==null?void 0:d.icon)==null?void 0:be.properties)==null?void 0:Ce.name)}),o.jsx(mn,{id:d==null?void 0:d.uuid,placeholder:(Te=d==null?void 0:d.placeholder)==null?void 0:Te[c==null?void 0:c.type],value:_,onFocus:()=>O(1),onChange:K=>{g!=null&&g.rowIsRepeatable?Y(d,K.target.value):ae(K)},className:N===1&&((ye=d==null?void 0:d.attributes)!=null&&ye.required)?_?"valid mt-2 mr-2":"invalid mt-2":"valid mt-2",readOnly:s===l})]}),o.jsx("div",{children:((Ae=d==null?void 0:d.attributes)==null?void 0:Ae.required)&&o.jsx("small",{className:"error",children:N===1&&!_?(re=d==null?void 0:d.validationMesssage)==null?void 0:re.english:""})}),o.jsx("div",{children:(d==null?void 0:d.showHelperText)&&o.jsx("small",{children:(U=d==null?void 0:d.helperText)==null?void 0:U[c==null?void 0:c.type]})})]})]})}),o.jsx("p",{className:"text-center",children:o.jsx("span",{className:`${(Z=d==null?void 0:d.fontStyle)==null?void 0:Z.font} text-center`,style:{fontSize:d==null?void 0:d.fontSize},children:_})}),x&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(Ni,{...t})]})]})]});return o.jsxs(o.Fragment,{children:[E===!0&&o.jsx(Xi,{visibilty:E,closeSettingFieldSidebar:G,...t}),o.jsx(wi,{...t,fieldWrap:pe})]})},gSe=t=>{var ye,Ae,re,U,Z,K,ue,Ee,ge,me,Le,Oe,ve,V,ne,X,oe;const{taskRegisterData:e,updateTaskRegisterData:n,updateTaskProgressValue:r,userTaskSubmitFormData:i,TASK_PUBLISHED:a,task_status:s}=br(),{globalAlignment:l}=Zt(),{userSelectedLanguage:c,fieldSettingUpdate:u}=on(),{isRenderView:d,isAdmin:f,isPreview:h}=Zt(),m=fe=>{const we=fe.collapsed?"pi pi-chevron-down":"pi pi-chevron-up",De=`${fe.className} justify-content-start`,$e=`${fe.titleClassName} pl-1`;return o.jsxs("div",{className:De,children:[o.jsxs("button",{className:fe.togglerClassName,onClick:fe.onTogglerClick,children:[o.jsx("span",{className:we}),o.jsx(Qt,{})]}),o.jsx("span",{className:$e,children:he})]})},{field:g,fieldIndex:v,sectionIndex:A,pageIndex:w,row:x,rowIndex:S,columnIndex:E}=t,[C,_]=F.useState(!1),[T,N]=F.useState(null),[O,B]=F.useState({country:null,city:null,state:null,addressOne:null,addressTwo:null,zipcode:null,isBillingAddressSame:!1,billingCountry:null,billingCity:null,billingState:null,billingAddressOne:null,billingAddressTwo:null,billingZipcode:null}),[M,z]=F.useState(!1),P=()=>{z(!0)},j=()=>{z(!1)},de=(fe,we)=>{let De={...O};De={...De,[fe]:we},B(De),(De==null?void 0:De.addressOne)!==""&&(De!=null&&De.addressTwo)&&(De!=null&&De.zipcode)&&Ce(De==null?void 0:De.zipcode)?(g.isValid=1,Q(De,!0)):(g.isValid=0,Q(null,!1))},[he]=F.useState((ye=g==null?void 0:g.label)==null?void 0:ye[c==null?void 0:c.type]),[te,G]=F.useState(0),[ae,Y]=F.useState(!1),pe=()=>{var fe,we;if(!(x!=null&&x.rowIsRepeatable)){const De=i;if(De!=null&&De.length){for(const $e of De)if($e.fieldId===t.field.uuid&&((fe=$e==null?void 0:$e.postData[0])!=null&&fe.postValue)){B((we=$e==null?void 0:$e.postData[0])==null?void 0:we.postValue);break}}}Y(!0)};F.useEffect(()=>{ae||pe();const fe=Gt.addListener("clearRepeatableFields",Nt=>{Nt===(x==null?void 0:x.uuid)&&(G(0),g.isValid=0,u(w,A,S,E,v,g))}),we=Gt.addListener("onSubmitUserForm",()=>{var Nt;(Nt=g==null?void 0:g.attributes)!=null&&Nt.required?(O==null?void 0:O.addressOne)!==""&&(O==null?void 0:O.zipcode)!==""&&Ce(O==null?void 0:O.zipcode)?g.isValid=1:g.isValid=0:g.isValid=1}),De=Gt.addListener("OnInvalidFieldCatch",Nt=>{g.uuid===(Nt==null?void 0:Nt.fieldId)?G(1):G(0)}),$e=Gt.addListener("OnGetFieldValue",Nt=>{var St;const at=(St=Nt==null?void 0:Nt.repeatableColumn)==null?void 0:St.filter(st=>(st==null?void 0:st.fieldUuid)===(g==null?void 0:g.uuid));at!=null&&at.length}),ct=Gt.addListener("formFieldAdded",Nt=>{T===null&&N(Nt.uuid)});return()=>{we.remove(),De.remove(),$e.remove(),fe.remove(),ct.remove()}});const ie=fe=>{_(fe)},J=()=>{_(!1)},Q=(fe,we)=>{const De=i,$e=Et.cloneDeep(e);if(we){if($e[g==null?void 0:g.uuid]=fe,(De==null?void 0:De.length)>0)for(const ct of De)ct.fieldId===t.field.uuid&&(ct.postData[0]={postValue:fe})}else if(delete $e[g==null?void 0:g.uuid],(De==null?void 0:De.length)>0)for(const ct of De)ct.fieldId===t.field.uuid&&(ct.postData[0]={postValue:fe});if(!(x!=null&&x.rowIsRepeatable)){n($e);const ct=Object.keys($e).length;r(ct)}},se=()=>{let fe="";return h||(fe=fe+" field-form-builder"),s===a&&f===!0&&(fe=fe+" card"),fe},be=()=>{let fe=!1;return O.addressOne!==""&&O.zipcode!==""&&Ce(O.zipcode)&&(fe=!0),fe};function Ce(fe){const we=/\d/.test(fe),De=/[a-zA-Z]/.test(fe);return we&&De?!0:!!we}F.useEffect(()=>(T!==null&&setTimeout(()=>{N(null)},1e3),()=>{}),[T]);const Te=o.jsxs("div",{onMouseOver:P,onMouseOut:j,children:[!d&&!h&&M&&o.jsx(Hr,{handleFieldSettingsSidebar:ie,...t}),o.jsxs("div",{className:`field ${h?" ":" builder-element-wrapper "} ${(g==null?void 0:g.isFluid)===!0?" card py-3 px-4 p-fluid":"card p-4"} ${T===(g==null?void 0:g.uuid)?" new-field ":" card "}`,children:[o.jsx("div",{className:"grid",children:o.jsxs("div",{className:h?"col-12 ":"col-11 p-fluid",children:[(g==null?void 0:g.showHeaderText)&&o.jsx("h6",{children:(Ae=g==null?void 0:g.headerText)==null?void 0:Ae[c==null?void 0:c.type]}),(g==null?void 0:g.showLabel)&&o.jsxs("label",{htmlFor:v,className:"flex font-medium mb-3 text-700 text-2xl",children:[o.jsx(aa,{...t}),((re=g==null?void 0:g.attributes)==null?void 0:re.required)&&o.jsx("span",{className:"must-required mr-1",children:"*"})," ",h?o.jsx(o.Fragment,{children:(U=g==null?void 0:g.label)==null?void 0:U[c==null?void 0:c.type]}):o.jsx(Zi,{...t}),o.jsx("span",{className:"ml-3",children:(g==null?void 0:g.showToolTip)&&o.jsx(Bi,{message:(Z=g==null?void 0:g.toolTip)==null?void 0:Z[c==null?void 0:c.type],position:"right"})})]}),o.jsxs("div",{className:"mt-3 p-fluid",children:[o.jsx("div",{children:o.jsx("label",{className:"w-full",htmlFor:"",children:(K=g==null?void 0:g.addresslineFirstLabel)==null?void 0:K[c==null?void 0:c.type]})}),o.jsx(mn,{value:O.addressOne||"",onChange:fe=>de("addressOne",fe.target.value),className:"my-2 ",readOnly:s===a}),o.jsx("div",{children:o.jsx("label",{htmlFor:"",children:(ue=g==null?void 0:g.addresslineSecondLabel)==null?void 0:ue[c==null?void 0:c.type]})}),o.jsx(mn,{value:O.addressTwo||"",onChange:fe=>de("addressTwo",fe.target.value),className:"my-2",readOnly:s===a}),o.jsx("div",{children:o.jsx("label",{htmlFor:"",children:(Ee=g==null?void 0:g.postalcodeLabel)==null?void 0:Ee[c==null?void 0:c.type]})}),o.jsx(mn,{value:O.zipcode||"",onChange:fe=>de("zipcode",fe.target.value),className:"my-2",readOnly:s===a}),o.jsx("p",{children:!Ce(O.zipcode)&&o.jsx("small",{children:"Cannot be alphabetical only."})}),((ge=g==null?void 0:g.attributes)==null?void 0:ge.required)&&!be()&&o.jsx("small",{className:"error",children:te===1?(me=g==null?void 0:g.validationMesssage)==null?void 0:me.language:""}),(g==null?void 0:g.showBillingAddress)===!0&&o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:"field-checkbox",children:[o.jsx(Nr,{inputId:"binary",checked:O.isBillingAddressSame,onChange:fe=>{de("isBillingAddressSame",fe.checked),fe.checked?B(we=>({...we,billingCountry:O.country,billingCity:O.city,billingState:O.state,billingAddressOne:O.addressOne,billingAddressTwo:O.addressTwo,billingZipcode:O.zipcode})):B(we=>({...we,billingCountry:null,billingCity:null,billingState:null,billingAddressOne:null,billingAddressTwo:null,billingZipcode:null}))},disabled:s===a}),o.jsx("label",{htmlFor:"binary",children:"Is Billing Address Same"})]}),O.isBillingAddressSame===!1&&o.jsxs(o.Fragment,{children:[(g==null?void 0:g.showLabel)&&o.jsxs("label",{htmlFor:v,className:"flex font-medium mb-3 text-700 text-2xl",children:[((Le=g==null?void 0:g.attributes)==null?void 0:Le.required)&&o.jsx("span",{className:"must-required",children:"*"})," ",(Oe=g==null?void 0:g.billingLabel)==null?void 0:Oe[c==null?void 0:c.type],o.jsx("span",{className:"ml-3",children:(g==null?void 0:g.showToolTip)&&o.jsx(Bi,{message:(ve=g==null?void 0:g.toolTip)==null?void 0:ve[c==null?void 0:c.type],position:"right"})})]}),o.jsx("label",{htmlFor:"",children:(V=g==null?void 0:g.addresslineFirstLabel)==null?void 0:V[c==null?void 0:c.type]}),o.jsx(mn,{value:O.billingAddressOne||"",onChange:fe=>de("billingAddressOne",fe.target.value),className:"my-2",readOnly:s===a}),o.jsx("label",{htmlFor:"",children:(ne=g==null?void 0:g.addresslineSecondLabel)==null?void 0:ne[c==null?void 0:c.type]}),o.jsx(mn,{value:O.billingAddressTwo||"",onChange:fe=>de("billingAddressTwo",fe.target.value),className:"my-2",readOnly:s===a}),o.jsx("label",{htmlFor:"",children:(X=g==null?void 0:g.postalcodeLabel)==null?void 0:X[c==null?void 0:c.type]}),o.jsx(mn,{value:O.billingZipcode||"",onChange:fe=>de("billingZipcode",fe.target.value),className:"my-2",readOnly:s===a}),!Ce(O.billingZipcode)&&o.jsx("small",{children:"Cannot be alphabetical only."})]})]}),o.jsx("div",{}),o.jsx("div",{children:(g==null?void 0:g.showHelperText)&&o.jsx("small",{children:(oe=g==null?void 0:g.helperText)==null?void 0:oe[c==null?void 0:c.type]})})]})]})}),f&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(Ni,{...t})]})]})]});return o.jsxs(o.Fragment,{children:[C===!0&&o.jsx(Xi,{visibilty:C,closeSettingFieldSidebar:J,...t}),o.jsx("div",{dir:l?"rtl":"ltr",className:se(),children:s===a&&f===!0?o.jsx(li,{headerTemplate:m,toggleable:!0,children:Te}):Te})]})},mSe=t=>{var S;const{customColumn:e,indexes:n,customColumnIndex:r,path:i,field:a,onSetValuetoPostData:s,sectionIndex:l,page:c,row:u,column:d,section:f,pageIndex:h,rowIndex:m,columnIndex:g}=t,{handleDrop:v}=on(),{isPreview:A,isAdvanceView:w}=Zt(),x=(E,C)=>{s(E,C)};return o.jsxs("div",{className:"p-2 py-4",children:[n&&((S=a.children)==null?void 0:S.length)>0&&a.children.map((E,C)=>{const _=E[`${n.rowIndex}-${n.columnIndex}`];return _?o.jsx("div",{children:o.jsx(qc,{type:"grid",showFieldIcons:!1,onChange:x,data:_,field:_,path:`${i}-${n.rowIndex}-${n.columnIndex}-${C}`,sectionIndex:l,page:c,column:d,row:u,section:f,pageIndex:h,rowIndex:m,columnIndex:g,fieldIndex:C,fieldContainer:"grid-container"})},`${n.rowIndex}-${n.columnIndex}-${C}`):null}),n&&A===!1&&o.jsx("div",{className:"py-5",children:o.jsx(Tr,{isAdvanceView:w,fieldDropArea:!0,data:{path:`${i}-${n.rowIndex}-${r}`,childrenCount:1,droppedField:e},onDrop:v})})]})},lj=t=>{var M,z,P,j,de,he,te;const{field:e,column:n,section:r,row:i,rowIndex:a,columnIndex:s,sectionIndex:l,isPreview:c,userSelectedLanguage:u,fieldIndex:d,customColumnHeaderTemplate:f,onSetValuetoPostData:h,setAllFields:m,allFields:g,actionHeaderTemplate:v,actionBodyTemplate:A,isFocus:w,inputValue:x,handleFieldSettingsSidebar:S,isAdmin:E,emitSocketData:C,isRenderView:_}=t,[T,N]=F.useState(!1),O=()=>{N(!0)},B=()=>{N(!1)};return o.jsxs("div",{onMouseOver:O,onMouseOut:B,children:[!_&&!c&&T&&o.jsx(Hr,{handleFieldSettingsSidebar:S,...t}),o.jsxs("div",{className:`field ${c?" ":" builder-element-wrapper "}${(e==null?void 0:e.isFluid)===!0?" card py-3 px-4 ":"card py-3 px-4"}`,children:[o.jsx("div",{className:"grid",children:o.jsxs("div",{className:"col-12 ",children:[(e==null?void 0:e.showHeaderText)&&o.jsx("h6",{children:(M=e==null?void 0:e.headerText)==null?void 0:M[u==null?void 0:u.type]}),(e==null?void 0:e.showLabel)&&o.jsxs("label",{htmlFor:d,className:"flex font-medium mb-3 text-700 text-2xl",children:[o.jsx(aa,{...t}),((z=e==null?void 0:e.attributes)==null?void 0:z.required)&&o.jsx("span",{className:"must-required mr-1",children:"*"})," ",c?o.jsx(o.Fragment,{children:(P=e==null?void 0:e.label)==null?void 0:P[u==null?void 0:u.type]}):o.jsx(Zi,{...t}),o.jsx("span",{className:"ml-3",children:(e==null?void 0:e.showToolTip)&&o.jsx(Bi,{message:(j=e==null?void 0:e.toolTip)==null?void 0:j[u==null?void 0:u.type],position:"right"})})]}),o.jsxs("div",{className:"mt-3",children:[o.jsxs(Hs,{scrollable:!0,showGridlines:!0,columnResizeMode:"expand",resizableColumns:!0,value:e==null?void 0:e.options,tableStyle:{minWidth:"50rem"},children:[e==null?void 0:e.customColumnsForOptions.map((G,ae)=>o.jsx(fr,{style:{minWidth:350},header:f(G,ae),body:(Y,pe)=>o.jsx(mSe,{customColumn:G,section:r,column:n,columnIndex:s,row:i,rowIndex:a,sectionIndex:l,e:Y,indexes:pe,customColumnIndex:ae,onSetValuetoPostData:h,setAllFields:m,allFields:g,emitSocketData:C,field:e,...t})},G==null?void 0:G.uuid)),!c&&o.jsx(fr,{frozen:!0,header:G=>v(G),body:(G,ae)=>A(G,ae),headerStyle:{textAlign:"left"},bodyStyle:{textAlign:"left",overflow:"visible"}})]}),o.jsx("div",{children:((de=e==null?void 0:e.attributes)==null?void 0:de.required)&&o.jsx("small",{className:"error",children:w===1&&!x?(he=e==null?void 0:e.validationMesssage)==null?void 0:he.english:""})}),o.jsx("div",{children:(e==null?void 0:e.showHelperText)&&o.jsx("small",{children:(te=e==null?void 0:e.helperText)==null?void 0:te[u==null?void 0:u.type]})})]})]})}),E&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(Ni,{...t})]})]})]})},cj=t=>{var Ae;const{globalAlignment:e}=Zt(),n=re=>{const U=re.collapsed?"pi pi-chevron-down":"pi pi-chevron-up",Z=`${re.className} justify-content-start`,K=`${re.titleClassName} pl-1`;return o.jsxs("div",{className:Z,children:[o.jsxs("button",{className:re.togglerClassName,onClick:re.onTogglerClick,children:[o.jsx("span",{className:U}),o.jsx(Qt,{})]}),o.jsx("span",{className:K,children:C})]})},{userTaskSubmitFormData:r,TASK_PUBLISHED:i,task_status:a}=br(),{userSelectedLanguage:s,fieldSettingUpdate:l}=on(),{isPreview:c,field:u,fieldIndex:d,sectionIndex:f,pageIndex:h,row:m,rowIndex:g,columnIndex:v,isAdmin:A}=t,[w,x]=F.useState(!1),[S,E]=F.useState(""),[C]=F.useState((Ae=u==null?void 0:u.label)==null?void 0:Ae[s==null?void 0:s.type]),[_,T]=F.useState(0),[N,O]=F.useState(!1),[B,M]=F.useState(null),[z,P]=F.useState([]),j=()=>{var re,U,Z;if(m!=null&&m.rowIsRepeatable){if(m!=null&&m.repeatableFields){const K=[...m.repeatableFields],ue=Et.findIndex(K,function(Ee){return Ee.uuid===(u==null?void 0:u.uuid)});ue>=0&&K[ue].fieldData?E(K[ue].fieldData):E("")}}else{const K=r;if(K!=null&&K.length){for(const ue of K)if(ue.fieldId===t.field.uuid&&((re=ue==null?void 0:ue.postData[0])==null?void 0:re.postValue)!==""&&((U=ue==null?void 0:ue.postData[0])!=null&&U.postValue)){E((Z=ue==null?void 0:ue.postData[0])==null?void 0:Z.postValue);break}}}O(!0)},de=()=>{const re=u;re.customColumnsForOptions=[...re.customColumnsForOptions,{customKey:"Column",uuid:tt()}],ye(re)},[he,te]=F.useState(!1),G=(re,U)=>{var Z;return o.jsxs(o.Fragment,{children:[((Z=u==null?void 0:u.options)==null?void 0:Z.length)>1&&o.jsx(kt,{text:!0,type:"button",className:"p-button-danger left-space ",icon:"pi pi-trash",onClick:()=>pe(re==null?void 0:re.uuid,U==null?void 0:U.rowIndex),rounded:!0,severity:"secondary","aria-label":"Bookmark",size:"small"}),o.jsx(kt,{text:!0,type:"button",icon:"pi pi-plus",rounded:!0,severity:"secondary",onClick:()=>Ce(),"aria-label":"Add Row",size:"small"})]})},ae=(re,U)=>{var Z;return o.jsxs(o.Fragment,{children:[re==null?void 0:re.customKey,c===!1&&o.jsxs(o.Fragment,{children:[((Z=u==null?void 0:u.customColumnsForOptions)==null?void 0:Z.length)>1&&o.jsx("i",{className:"pi pi-trash ml-3",onClick:()=>ie(re==null?void 0:re.uuid,U)}),o.jsx("i",{className:"pi pi-cog ml-3",onClick:()=>{M(re),te(!0)}})]})]})},Y=()=>o.jsx(o.Fragment,{children:o.jsx(kt,{text:!0,icon:"pi pi-plus",onClick:()=>de(),rounded:!0,severity:"secondary","aria-label":"Cancel"})}),pe=(re,U)=>{var ge,me;const Z=(ge=u==null?void 0:u.customColumnsForOptions)==null?void 0:ge.length,K=[...(u==null?void 0:u.children)||[]];(me=u==null?void 0:u.children)==null||me.map(Le=>{for(let Oe=0;Oe<Z;Oe++)if(Le[`${U}-${Oe}`]!==void 0){const ve=Et.findIndex(K,function(V){return V[`${U}-${Oe}`]!==void 0});K.splice(ve,1)}});for(let Le=0;Le<(K==null?void 0:K.length);Le++){const Oe=K[Le],V=Object.keys(Oe)[0].split("-");parseInt(V[0])>U&&(K[Le]={[`${parseInt(V[0])-1}-${V[1]}`]:K[Le][`${parseInt(V[0])}-${V[1]}`]})}const ue=u==null?void 0:u.options.filter(function(Le){return(Le==null?void 0:Le.uuid)!==re}),Ee={...u,children:[...K]};Ee.options=ue,ye(Ee)},ie=(re,U)=>{var me,Le;const Z=Et.findIndex(u==null?void 0:u.customColumnsForOptions,Oe=>Oe.uuid===re),K=u==null?void 0:u.customColumnsForOptions.filter(function(Oe,ve){return ve!==Z}),ue=(me=u==null?void 0:u.options)==null?void 0:me.length,Ee=[...(u==null?void 0:u.children)||[]];(Le=u==null?void 0:u.children)==null||Le.map(Oe=>{for(let ve=0;ve<ue;ve++)if(Oe[`${ve}-${U}`]!==void 0){const V=Et.findIndex(Ee,function(ne){return ne[`${ve}-${U}`]!==void 0});Ee.splice(V,1)}});for(let Oe=0;Oe<(Ee==null?void 0:Ee.length);Oe++){const ve=Ee[Oe],ne=Object.keys(ve)[0].split("-");parseInt(ne[1])>U&&(Ee[Oe]={[`${parseInt(ne[0])}-${parseInt(ne[1])-1}`]:Ee[Oe][`${parseInt(ne[0])}-${ne[1]}`]})}const ge={...u,children:[...Ee]};ge.customColumnsForOptions=K,ye(ge)};F.useEffect(()=>{N||j();const re=Gt.addListener("clearRepeatableFields",ue=>{ue===(m==null?void 0:m.uuid)&&(E(""),T(0),u.isValid=0,l(h,f,g,v,d,u))}),U=Gt.addListener("onSubmitUserForm",()=>{var ue;(ue=u==null?void 0:u.attributes)!=null&&ue.required&&(u.isValid=1)}),Z=Gt.addListener("OnInvalidFieldCatch",ue=>{u.uuid===(ue==null?void 0:ue.fieldId)?T(1):T(0)}),K=Gt.addListener("OnGetFieldValue",ue=>{var ge;const Ee=(ge=ue==null?void 0:ue.repeatableColumn)==null?void 0:ge.filter(me=>(me==null?void 0:me.fieldUuid)===(u==null?void 0:u.uuid));Ee!=null&&Ee.length});return()=>{U.remove(),Z.remove(),K.remove(),re.remove()}});const J=re=>{x(re)},Q=()=>{x(!1)},se=(re,U)=>{var K;const Z=r;if((Z==null?void 0:Z.length)>0)for(const ue of Z)ue.fieldId===t.field.uuid&&(ue.postData[0]={postValue:{...(K=ue.postData[0])==null?void 0:K.postValue,[re]:U}})},be=()=>{let re="";return c||(re=re+" field-form-builder"),a===i&&A===!0&&(re=re+" card"),re},Ce=()=>{const re=u;re.options=[...re.options,{uuid:tt(),custom_values:{}}],ye(re)},Te=(re,U)=>{M(Ee=>Ee===null?{customKey:U,uuid:""}:{...Ee,customKey:U});const Z=u.customColumnsForOptions,K=Z.findIndex(Ee=>Ee.uuid===re.uuid);Z[K]={...Z[K],customKey:U};const ue=u;ue.customColumnsForOptions=Z,ye(ue)},ye=re=>{l(h,f,g,v,d,re)};return o.jsxs(o.Fragment,{children:[o.jsx(ys,{maximizable:!0,header:"Update Column Title",visible:he,style:{width:"20vw"},footer:()=>o.jsx(kt,{text:!0,label:"Save",onClick:()=>te(!1)}),onHide:()=>te(!1),children:o.jsx("div",{className:"p-fluid",children:o.jsx(mn,{value:(B==null?void 0:B.customKey)||"",onChange:re=>Te(B,re.target.value)})})}),o.jsx(Xi,{visibilty:w,closeSettingFieldSidebar:Q,...t}),o.jsx("div",{dir:e,className:be(),children:a===i&&A===!0?o.jsx(li,{headerTemplate:n,toggleable:!0,children:o.jsx(lj,{...t,field:u,isPreview:c,userSelectedLanguage:s,fieldIndex:d,pageIndex:h,columnIndex:v,customColumnHeaderTemplate:ae,onSetValuetoPostData:se,setAllFields:re=>P(re),allFields:z,actionHeaderTemplate:Y,actionBodyTemplate:G,addOption:Ce,isFocus:_,inputValue:S,handleFieldSettingsSidebar:J,isAdmin:A})}):o.jsx(lj,{...t,field:u,isPreview:c,userSelectedLanguage:s,fieldIndex:d,pageIndex:h,columnIndex:v,customColumnHeaderTemplate:ae,onSetValuetoPostData:se,setAllFields:re=>P(re),allFields:z,actionHeaderTemplate:Y,actionBodyTemplate:G,addOption:Ce,isFocus:_,inputValue:S,handleFieldSettingsSidebar:J,isAdmin:A})})]})},vSe=t=>{const{customColumn:e,indexes:n,customColumnIndex:r,setAllFields:i,allFields:a}=t,s=l=>{const c={...a};c[`${n==null?void 0:n.rowIndex}-${r}`]=l,i(c)};return o.jsx("div",{children:o.jsx(Sa,{value:a[`${n==null?void 0:n.rowIndex}-${r}`],options:e.options,onChange:l=>s(l.value),optionLabel:"label",placeholder:"Select"})})},uj=t=>{var E,C,_,T,N,O,B;const{field:e,isPreview:n,userSelectedLanguage:r,fieldIndex:i,customColumnHeaderTemplate:a,customColumnRowBodyTemplate:s,setAllFields:l,allFields:c,actionHeaderTemplate:u,actionBodyTemplate:d,isFocus:f,inputValue:h,handleFieldSettingsSidebar:m,isAdmin:g,isRenderView:v}=t,[A,w]=F.useState(!1),x=()=>{w(!0)},S=()=>{w(!1)};return o.jsxs("div",{onMouseOver:x,onMouseOut:S,children:[!v&&!n&&A&&o.jsx(Hr,{handleFieldSettingsSidebar:m,...t}),o.jsxs("div",{className:`field ${n?" ":" builder-element-wrapper "}${(e==null?void 0:e.isFluid)===!0?" card py-3 px-4 p-fluid":"card py-3 px-4"}`,children:[o.jsx("div",{className:"grid",children:o.jsxs("div",{className:n?"col-12 ":"col-11 p-fluid",children:[(e==null?void 0:e.showHeaderText)&&o.jsx("h6",{children:(E=e==null?void 0:e.headerText)==null?void 0:E[r==null?void 0:r.type]}),(e==null?void 0:e.showLabel)&&o.jsxs("label",{htmlFor:i,className:"flex font-medium mb-3 text-700 text-2xl",children:[o.jsx(aa,{...t}),((C=e==null?void 0:e.attributes)==null?void 0:C.required)&&o.jsx("span",{className:"must-required",children:"*"})," ",n?o.jsx(o.Fragment,{children:(_=e==null?void 0:e.label)==null?void 0:_[r==null?void 0:r.type]}):o.jsx(Zi,{...t}),o.jsx("span",{className:"ml-3",children:(e==null?void 0:e.showToolTip)&&o.jsx(Bi,{message:(T=e==null?void 0:e.toolTip)==null?void 0:T[r==null?void 0:r.type],position:"right"})})]}),o.jsxs("div",{className:"mt-3",children:[o.jsxs(Hs,{showGridlines:!0,value:e==null?void 0:e.rows,children:[o.jsx(fr,{frozen:!0,header:"",headerStyle:{textAlign:"left"},bodyStyle:{textAlign:"left",overflow:"visible"},body:M=>s(M)}),e==null?void 0:e.customColumns.map((M,z)=>o.jsx(fr,{header:a(M),headerStyle:{textAlign:"left"},bodyStyle:{textAlign:"left",overflow:"visible"},body:(P,j)=>o.jsx(vSe,{customColumn:M,e:P,indexes:j,customColumnIndex:z,setAllFields:l,allFields:c,...t})},M==null?void 0:M.uuid)),n===!1&&o.jsx(fr,{frozen:!0,header:M=>u(M),body:M=>d(M),headerStyle:{textAlign:"left"},bodyStyle:{textAlign:"left",overflow:"visible"}})]}),o.jsx("div",{children:((N=e==null?void 0:e.attributes)==null?void 0:N.required)&&o.jsx("small",{className:"error",children:f===1&&!h?(O=e==null?void 0:e.validationMesssage)==null?void 0:O.english:""})}),o.jsx("div",{children:(e==null?void 0:e.showHelperText)&&o.jsx("small",{children:(B=e==null?void 0:e.helperText)==null?void 0:B[r==null?void 0:r.type]})})]})]})}),g&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(Ni,{...t})]})]})]})},bSe=(t,e)=>{var Le,Oe;const n=ve=>{const V=ve.collapsed?"pi pi-chevron-down":"pi pi-chevron-up",ne=`${ve.className} justify-content-start`,X=`${ve.titleClassName} pl-1`;return o.jsxs("div",{className:ne,children:[o.jsxs("button",{className:ve.togglerClassName,onClick:ve.onTogglerClick,children:[o.jsx("span",{className:V}),o.jsx(Qt,{})]}),o.jsx("span",{className:X,children:_})]})},{userTaskSubmitFormData:r,TASK_PUBLISHED:i,task_status:a}=br(),{globalAlignment:s,isPreview:l,isAdmin:c}=Zt(),{userSelectedLanguage:u,fieldSettingUpdate:d}=on(),{field:f,fieldIndex:h,sectionIndex:m,pageIndex:g,row:v,rowIndex:A,columnIndex:w}=t,[x,S]=F.useState(!1),[E,C]=F.useState(""),[_]=F.useState((Le=f==null?void 0:f.label)==null?void 0:Le[u==null?void 0:u.type]),[T,N]=F.useState(0),[O,B]=F.useState(!1),[M,z]=F.useState(null),[P,j]=F.useState(null),[de,he]=F.useState({}),te=()=>{var ve,V,ne;if(v!=null&&v.rowIsRepeatable){if(v!=null&&v.repeatableFields){const X=[...v.repeatableFields],oe=Et.findIndex(X,function(fe){return fe.uuid===(f==null?void 0:f.uuid)});oe>=0&&X[oe].fieldData?C(X[oe].fieldData):C("")}}else{const X=r;if(X!=null&&X.length){for(const oe of X)if(oe.fieldId===t.field.uuid&&((ve=oe==null?void 0:oe.postData[0])==null?void 0:ve.postValue)!==""&&((V=oe==null?void 0:oe.postData[0])!=null&&V.postValue)){C((ne=oe==null?void 0:oe.postData[0])==null?void 0:ne.postValue);break}}}B(!0)},G=()=>{const ve=f;ve.customColumns=[...ve.customColumns,{customKey:"Column",uuid:tt(),options:[]}],ue(ve)},[ae,Y]=F.useState(!1),[pe,ie]=F.useState(!1),J=ve=>{var V;return o.jsxs(o.Fragment,{children:[((V=f==null?void 0:f.options)==null?void 0:V.length)>1&&o.jsx(kt,{text:!0,type:"button",icon:"pi pi-trash",rounded:!0,severity:"secondary",onClick:()=>Ce(ve==null?void 0:ve.uuid),"aria-label":"Add Row"}),o.jsx(kt,{text:!0,type:"button",icon:"pi pi-plus",rounded:!0,severity:"secondary",onClick:()=>U(),"aria-label":"Add Row"})]})},Q=ve=>{var V;return o.jsxs(o.Fragment,{children:[ve==null?void 0:ve.customKey,l===!1&&o.jsxs(o.Fragment,{children:[((V=f==null?void 0:f.customColumns)==null?void 0:V.length)>1&&o.jsx("i",{className:"pi pi-trash ml-3",onClick:()=>Te(ve==null?void 0:ve.uuid)}),o.jsx("i",{className:"pi pi-cog ml-3",onClick:()=>{z(ve),Y(!0)}})]})]})},se=()=>o.jsx(o.Fragment,{children:o.jsx(kt,{text:!0,type:"button",icon:"pi pi-plus",rounded:!0,severity:"secondary",onClick:()=>G(),"aria-label":"Add Column"})}),be=ve=>o.jsxs(o.Fragment,{children:[ve==null?void 0:ve.rowHeading,l===!1&&o.jsx(o.Fragment,{children:o.jsx("i",{className:"pi pi-cog ml-3",onClick:()=>{j(ve),ie(!0)}})})]}),Ce=ve=>{const V=f==null?void 0:f.rows.filter(function(X){return(X==null?void 0:X.uuid)!==ve}),ne=f;ne.rows=V,ue(ne)},Te=ve=>{const V=Et.findIndex(f==null?void 0:f.customColumns,oe=>oe.uuid===ve),ne=f==null?void 0:f.customColumns.filter(function(oe,fe){return fe!==V}),X=f;X.customColumns=ne,ue(X)};F.useEffect(()=>{O||te();const ve=Gt.addListener("clearRepeatableFields",X=>{X===(v==null?void 0:v.uuid)&&(C(""),N(0),f.isValid=0,d(g,m,A,w,h,f))}),V=Gt.addListener("OnInvalidFieldCatch",X=>{f.uuid===(X==null?void 0:X.fieldId)?N(1):N(0)}),ne=Gt.addListener("OnGetFieldValue",X=>{var fe;const oe=(fe=X==null?void 0:X.repeatableColumn)==null?void 0:fe.filter(we=>(we==null?void 0:we.fieldUuid)===(f==null?void 0:f.uuid));oe!=null&&oe.length});return()=>{V.remove(),ne.remove(),ve.remove()}});const ye=ve=>{S(ve)},Ae=()=>{S(!1)},re=()=>{let ve="";return l||(ve=ve+" field-form-builder"),a===i&&c===!0&&(ve=ve+" card"),ve},U=()=>{const ve=f;ve.rows=[...ve.rows,{rowHeading:"Row",uuid:tt(),custom_values:{}}],ue(ve)},Z=(ve,V)=>{z(fe=>fe===null?{customKey:V,uuid:""}:{...fe,customKey:V});const ne=f.customColumns,X=ne.findIndex(fe=>fe.uuid===ve.uuid);ne[X]={...ne[X],customKey:V};const oe=f;oe.customColumns=ne,ue(oe)},K=(ve,V)=>{j(fe=>fe===null?{uuid:"",rowHeading:V}:{...fe,rowHeading:V});const ne=f.rows,X=ne.findIndex(fe=>fe.uuid===ve.uuid);ne[X]={...ne[X],rowHeading:V};const oe=f;oe.rows=ne,ue(oe)},ue=ve=>{d(g,m,A,w,h,ve)};function Ee(ve){return ve.toLowerCase().replace(/ /g,"-").replace(/[^\w-]+/g,"")}const ge=(ve,V,ne)=>{const X=f.customColumns,oe=X.findIndex(we=>M&&we.uuid===M.uuid);X[oe].options[ne][V]=ve,X[oe].options[ne].value=Ee(ve);const fe=f;fe.customColumns=X,ue(fe)},me=()=>{const ve=f.customColumns,V=ve.findIndex(X=>M&&X.uuid===M.uuid);ve[V].options.push({label:"",value:"",uuid:tt()});const ne=f;ne.customColumns=ve,ue(ne)};return o.jsxs(o.Fragment,{children:[o.jsxs(ys,{maximizable:!0,header:"Update Column Title",visible:ae,style:{width:"20vw"},footer:()=>o.jsxs(o.Fragment,{children:[" ",o.jsx(kt,{text:!0,label:"Add Option",icon:"pi pi-plus",onClick:()=>me()}),o.jsx(kt,{text:!0,label:"Save",onClick:()=>Y(!1)})]}),onHide:()=>Y(!1),children:[o.jsx("div",{className:"p-fluid",children:o.jsx(mn,{value:(M==null?void 0:M.customKey)||"",onChange:ve=>Z(M,ve.target.value)})}),o.jsx("hr",{}),o.jsx("h5",{children:"Options"}),(M==null?void 0:M.options)&&((Oe=M==null?void 0:M.options)==null?void 0:Oe.length)>0&&(M==null?void 0:M.options.map((ve,V)=>o.jsxs("div",{className:"my-2 flex p-fluid",children:[o.jsx("span",{children:V+1}),o.jsx(mn,{value:(ve==null?void 0:ve.label)||"",className:"ml-2",onChange:ne=>ge(ne.target.value,"label",V)})]},`custom_column_option_${V}`)))]}),o.jsx(ys,{maximizable:!0,header:"Update Row Title",visible:pe,style:{width:"20vw"},footer:()=>o.jsx(kt,{text:!0,label:"Save",onClick:()=>ie(!1)}),onHide:()=>ie(!1),children:o.jsx("div",{className:"p-fluid",children:o.jsx(mn,{value:(P==null?void 0:P.rowHeading)||"",onChange:ve=>K(P,ve.target.value)})})}),o.jsx(Xi,{visibilty:x,closeSettingFieldSidebar:Ae,...t}),o.jsx("div",{dir:s,className:re(),children:a===i&&c===!0?o.jsx(li,{headerTemplate:n,toggleable:!0,children:o.jsx(uj,{ref:e,...t,field:f,isPreview:l,userSelectedLanguage:u,fieldIndex:h,customColumnHeaderTemplate:Q,customColumnRowBodyTemplate:be,setAllFields:he,allFields:de,actionHeaderTemplate:se,actionBodyTemplate:J,isFocus:T,inputValue:E,handleFieldSettingsSidebar:ye,isAdmin:c})}):o.jsx(uj,{ref:e,...t,field:f,isPreview:l,userSelectedLanguage:u,fieldIndex:h,customColumnHeaderTemplate:Q,customColumnRowBodyTemplate:be,setAllFields:he,allFields:de,actionHeaderTemplate:se,actionBodyTemplate:J,isFocus:T,inputValue:E,handleFieldSettingsSidebar:ye,isAdmin:c})})]})},ySe=t=>{const{indexes:e,customColumnIndex:n,allFields:r}=t;return o.jsx("div",{children:o.jsx(mn,{value:r[`${e==null?void 0:e.rowIndex}-${n}`]})})},dj=t=>{var m,g,v,A,w,x,S;const{field:e,isPreview:n,userSelectedLanguage:r,fieldIndex:i,customColumnHeaderTemplate:a,setAllFields:s,allFields:l,actionHeaderTemplate:c,actionBodyTemplate:u,isFocus:d,inputValue:f,isAdmin:h}=t;return o.jsxs("div",{className:`field ${n?" ":" builder-element-wrapper "}${(e==null?void 0:e.isFluid)===!0?" card p-fluid py-6 px-4":"card py-3 px-4"}`,children:[" ",o.jsx("div",{className:"grid",children:o.jsxs("div",{className:"col-12 p-fluid",children:[(e==null?void 0:e.showHeaderText)&&o.jsx("h6",{children:(m=e==null?void 0:e.headerText)==null?void 0:m[r==null?void 0:r.type]}),(e==null?void 0:e.showLabel)&&o.jsxs("label",{htmlFor:i,className:"flex font-medium mb-3 text-700 text-2xl",children:[o.jsx(aa,{...t}),((g=e==null?void 0:e.attributes)==null?void 0:g.required)&&o.jsx("span",{className:"must-required",children:"*"})," ",n?o.jsx(o.Fragment,{children:(v=e==null?void 0:e.label)==null?void 0:v[r==null?void 0:r.type]}):o.jsx(Zi,{path:"",...t}),o.jsx("span",{className:"ml-3",children:(e==null?void 0:e.showToolTip)&&o.jsx(Bi,{message:(A=e==null?void 0:e.toolTip)==null?void 0:A[r==null?void 0:r.type],position:"right"})})]}),o.jsxs("div",{className:"mt-3",style:{backgroundColor:"#0a061a"},children:[o.jsxs(Hs,{scrollable:!0,showGridlines:!0,value:e==null?void 0:e.rows,children:[e==null?void 0:e.customColumns.map((E,C)=>o.jsx(fr,{header:a(E),headerStyle:{textAlign:"left"},bodyStyle:{textAlign:"left",overflow:"visible"},body:(_,T)=>o.jsx(ySe,{customColumn:E,e:_,indexes:T,customColumnIndex:C,setAllFields:s,allFields:l,...t})},E==null?void 0:E.uuid)),n===!1&&o.jsx(fr,{frozen:!0,header:E=>c(E),body:E=>u(E),headerStyle:{textAlign:"left"},bodyStyle:{textAlign:"left",overflow:"visible"}})]}),o.jsx("div",{children:((w=e==null?void 0:e.attributes)==null?void 0:w.required)&&o.jsx("small",{className:"error",children:d===1&&!f?(x=e==null?void 0:e.validationMesssage)==null?void 0:x.english:""})}),o.jsx("div",{children:(e==null?void 0:e.showHelperText)&&o.jsx("small",{children:(S=e==null?void 0:e.helperText)==null?void 0:S[r==null?void 0:r.type]})})]})]})}),h&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(Ni,{...t})]})]})},ASe=t=>{var Oe;const e=ve=>{const V=ve.collapsed?"pi pi-chevron-down":"pi pi-chevron-up",ne=`${ve.className} justify-content-start`,X=`${ve.titleClassName} pl-1`;return o.jsxs("div",{className:ne,children:[o.jsxs("button",{className:ve.togglerClassName,onClick:ve.onTogglerClick,children:[o.jsx("span",{className:V}),o.jsx(Qt,{})]}),o.jsx("span",{className:X,children:_})]})},{userTaskSubmitFormData:n,TASK_PUBLISHED:r,task_status:i}=br(),{userSelectedLanguage:a,fieldSettingUpdate:s}=on(),{globalAlignment:l,isPreview:c,isAdmin:u,isRenderView:d}=Zt(),{field:f,fieldIndex:h,sectionIndex:m,pageIndex:g,row:v,rowIndex:A,columnIndex:w}=t,[x,S]=F.useState(!1),[E,C]=F.useState(""),[_]=F.useState((Oe=f==null?void 0:f.label)==null?void 0:Oe[a==null?void 0:a.type]),[T,N]=F.useState(0),[O,B]=F.useState(!1),[M,z]=F.useState(null),[P,j]=F.useState(null),[de,he]=F.useState({}),[te,G]=F.useState(!1),ae=()=>{var ve,V,ne;if(v!=null&&v.rowIsRepeatable){if(v!=null&&v.repeatableFields){const X=[...v.repeatableFields],oe=Et.findIndex(X,function(fe){return fe.uuid===(f==null?void 0:f.uuid)});oe>=0&&X[oe].fieldData?C(X[oe].fieldData):C("")}}else{const X=n;if(X!=null&&X.length){for(const oe of X)if(oe.fieldId===t.field.uuid&&((ve=oe==null?void 0:oe.postData[0])==null?void 0:ve.postValue)!==""&&((V=oe==null?void 0:oe.postData[0])!=null&&V.postValue)){C((ne=oe==null?void 0:oe.postData[0])==null?void 0:ne.postValue);break}}}B(!0)},Y=()=>{const ve=f;ve.customColumns=[...ve.customColumns,{customKey:"Column",uuid:tt(),options:[]}],ge(ve)},[pe,ie]=F.useState(!1),[J,Q]=F.useState(!1),se=ve=>{var V;return o.jsxs(o.Fragment,{children:[((V=f==null?void 0:f.options)==null?void 0:V.length)>1&&o.jsx(kt,{text:!0,type:"button",icon:"pi pi-trash",rounded:!0,severity:"secondary",onClick:()=>ye(ve==null?void 0:ve.uuid),"aria-label":"Add Row",size:"small"}),o.jsx(kt,{text:!0,type:"button",icon:"pi pi-plus",rounded:!0,severity:"secondary",onClick:()=>K(),"aria-label":"Add Row",size:"small"})]})},be=ve=>{var V;return o.jsxs(o.Fragment,{children:[ve==null?void 0:ve.customKey,c===!1&&o.jsxs(o.Fragment,{children:[((V=f==null?void 0:f.customColumns)==null?void 0:V.length)>1&&o.jsx("i",{className:"pi pi-trash ml-3",onClick:()=>Ae(ve==null?void 0:ve.uuid)}),o.jsx("i",{className:"pi pi-cog ml-3",onClick:()=>{z(ve),ie(!0)}})]})]})},Ce=()=>o.jsx(o.Fragment,{children:o.jsx(kt,{text:!0,type:"button",icon:"pi pi-plus",rounded:!0,severity:"secondary",onClick:()=>Y(),"aria-label":"Add Column"})}),Te=ve=>o.jsxs(o.Fragment,{children:[ve==null?void 0:ve.rowHeading,c===!1&&o.jsx(o.Fragment,{children:o.jsx("i",{className:"pi pi-cog ml-3",onClick:()=>{j(ve),Q(!0)}})})]}),ye=ve=>{const V=f==null?void 0:f.rows.filter(function(X){return(X==null?void 0:X.uuid)!==ve}),ne=f;ne.rows=V,ge(ne)},Ae=ve=>{const V=Et.findIndex(f==null?void 0:f.customColumns,oe=>oe.uuid===ve),ne=f==null?void 0:f.customColumns.filter(function(oe,fe){return fe!==V}),X=f;X.customColumns=ne,ge(X)};F.useEffect(()=>{O||ae();const ve=Gt.addListener("clearRepeatableFields",oe=>{oe===(v==null?void 0:v.uuid)&&(C(""),N(0),f.isValid=0,s(g,m,A,w,h,f))}),V=Gt.addListener("onSubmitUserForm",()=>{}),ne=Gt.addListener("OnInvalidFieldCatch",oe=>{f.uuid===(oe==null?void 0:oe.fieldId)?N(1):N(0)}),X=Gt.addListener("OnGetFieldValue",oe=>{var we;const fe=(we=oe==null?void 0:oe.repeatableColumn)==null?void 0:we.filter(De=>(De==null?void 0:De.fieldUuid)===(f==null?void 0:f.uuid));fe!=null&&fe.length});return()=>{V.remove(),ne.remove(),X.remove(),ve.remove()}});const re=ve=>{S(ve)},U=()=>{S(!1)},Z=()=>{let ve="";return c||(ve=ve+" field-form-builder"),i===r&&u===!0&&(ve=ve+" card"),ve},K=()=>{const ve=f;ve.rows=[...ve.rows,{rowHeading:"Row",uuid:tt(),custom_values:{}}],ge(ve)},ue=(ve,V)=>{z(fe=>fe===null?{customKey:V,uuid:""}:{...fe,customKey:V});const ne=f.customColumns,X=ne.findIndex(fe=>fe.uuid===ve.uuid);ne[X]={...ne[X],customKey:V};const oe=f;oe.customColumns=ne,ge(oe)},Ee=(ve,V)=>{j(fe=>fe===null?{uuid:"",rowHeading:V}:{...fe,rowHeading:V});const ne=f.rows,X=ne.findIndex(fe=>fe.uuid===ve.uuid);ne[X]={...ne[X],rowHeading:V};const oe=f;oe.rows=ne,ge(oe)},ge=ve=>{s(g,m,A,w,h,ve)},me=()=>{G(!0)},Le=()=>{G(!1)};return o.jsxs(o.Fragment,{children:[o.jsx(ys,{maximizable:!0,header:"Update Column Title",visible:pe,style:{width:"20vw"},footer:()=>o.jsx(o.Fragment,{children:o.jsx(kt,{text:!0,label:"Save",onClick:()=>ie(!1)})}),onHide:()=>ie(!1),children:o.jsx("div",{className:"p-fluid",children:o.jsx(mn,{value:(M==null?void 0:M.customKey)||"",onChange:ve=>ue(M,ve.target.value)})})}),o.jsx(ys,{maximizable:!0,header:"Update Row Title",visible:J,style:{width:"20vw"},footer:()=>o.jsx(kt,{text:!0,label:"Save",onClick:()=>Q(!1)}),onHide:()=>Q(!1),children:o.jsx("div",{className:"p-fluid",children:o.jsx(mn,{value:(P==null?void 0:P.rowHeading)||"",onChange:ve=>Ee(P,ve.target.value)})})}),o.jsx(Xi,{visibilty:x,closeSettingFieldSidebar:U,...t}),o.jsx("div",{className:"field-form-builder",children:o.jsxs("div",{onMouseOver:me,onMouseOut:Le,children:[!d&&!c&&te&&o.jsx(Hr,{handleFieldSettingsSidebar:re,...t}),o.jsx("div",{dir:l,className:Z(),children:i===r&&u===!0?o.jsx(li,{headerTemplate:e,toggleable:!0,children:o.jsx(dj,{...t,field:f,isPreview:c,userSelectedLanguage:a,fieldIndex:h,customColumnHeaderTemplate:be,customColumnRowBodyTemplate:Te,setAllFields:he,allFields:de,actionHeaderTemplate:Ce,actionBodyTemplate:se,isFocus:T,inputValue:E,handleFieldSettingsSidebar:re,isAdmin:u})}):o.jsx(dj,{...t,field:f,isPreview:c,userSelectedLanguage:a,fieldIndex:h,customColumnHeaderTemplate:be,customColumnRowBodyTemplate:Te,setAllFields:he,allFields:de,actionHeaderTemplate:Ce,actionBodyTemplate:se,isFocus:T,inputValue:E,handleFieldSettingsSidebar:re,isAdmin:u})})]})})]})},wSe=t=>{var U,Z,K,ue,Ee,ge,me,Le,Oe,ve,V;const{task_status:e,taskRegisterData:n,updateTaskRegisterData:r,updateTaskProgressValue:i,userTaskSubmitFormData:a,updateUserFormDataSubmit:s,TASK_PUBLISHED:l}=br(),[c,u]=F.useState([]),{field:d,fieldIndex:f,row:h,pageIndex:m,sectionIndex:g,section:v,page:A,rowIndex:w,columnIndex:x,path:S,update:E,value:C}=t,{isRenderView:_,isAdmin:T,isPreview:N}=Zt(),{userSelectedLanguage:O}=on(),[B,M]=F.useState(!1),[z,P]=F.useState(""),[j,de]=F.useState(0),[he,te]=F.useState(!1),[G,ae]=F.useState(!1),Y=()=>{ae(!0)},pe=()=>{ae(!1)},ie=ne=>{M(ne)},J=()=>{M(!1)};F.useEffect(()=>((d==null?void 0:d.dataSourceType)==="custom"&&u(d==null?void 0:d.options),d==null||d.dataSourceType,()=>{}));const Q=()=>{var X,oe,fe,we;let ne=null;if(h!=null&&h.rowIsRepeatable){if(h!=null&&h.repeatableFields){const De=[...h.repeatableFields],$e=Et.findIndex(De,function(ct){return ct.uuid===(d==null?void 0:d.uuid)});$e>=0&&De[$e].fieldData?(ne=De[$e].fieldData,P(De[$e].fieldData)):(d.isValid=0,P(""))}}else{const De=a,$e=Et.cloneDeep(n);if(De!=null&&De.length){for(const ct of De)if(ct.fieldId===t.field.uuid&&((X=ct==null?void 0:ct.postData)!=null&&X.length)){ne=(oe=ct==null?void 0:ct.postData[0])==null?void 0:oe.postValue,P((fe=ct==null?void 0:ct.postData[0])==null?void 0:fe.postValue),$e[d==null?void 0:d.uuid]=(we=ct==null?void 0:ct.postData[0])==null?void 0:we.postValue;const Nt=Object.keys($e).length;i(Nt);break}}}P(ne),setTimeout(()=>{te(!0)},2e3)};F.useEffect(()=>{!he&&(a==null?void 0:a.length)>0&&Q();const ne=Gt.addListener("clearRepeatableFields",fe=>{fe===(h==null?void 0:h.uuid)&&(P(""),de(0),d.isValid=1)}),X=Gt.addListener("onSubmitUserForm",()=>{var fe;(fe=d==null?void 0:d.attributes)!=null&&fe.required?z?d.isValid=1:d.isValid=0:d.isValid=1}),oe=Gt.addListener("OnInvalidFieldCatch",fe=>{d.uuid===(fe==null?void 0:fe.fieldId)?de(1):de(0)});return()=>{X.remove(),oe.remove(),ne.remove()}});const se=(ne,X)=>{var oe;if(a){const fe=[...a],we=Et.findIndex(fe,function($e){return $e.rowId===(h==null?void 0:h.uuid)});let De=(oe=a[we])==null?void 0:oe.repeatableFields;De={...De,[ne==null?void 0:ne.uuid]:X},fe[we]={...fe[we],repeatableFields:De},s(fe)}P(X),X?ne.isValid=1:ne.isValid=0},be=ne=>{var X;P(ne.target.value),h!=null&&h.rowIsRepeatable?se(d,(X=ne==null?void 0:ne.target)==null?void 0:X.value):Ae(ne.target.value)},Ce=()=>(d==null?void 0:d.dataSourceType)==="custom"?`optionText.${O.type}`:(d==null?void 0:d.dataSourceType)==="database"?`${d==null?void 0:d.optionLabel}`:"",Te=()=>(d==null?void 0:d.dataSourceType)==="custom"?`optionText.${O.type}`:(d==null?void 0:d.dataSourceType)==="database"?`${d==null?void 0:d.optionLabel}`:"",ye=()=>{var ne,X,oe;if(((ne=d==null?void 0:d.fieldType)==null?void 0:ne.type)==="radio"){const fe=[];return c.map((we,De)=>{var ct,Nt,at,St;const $e=z;fe.push(o.jsxs("div",{className:"field-radiobutton field-radiobutton-builder",onClick:()=>{be({value:we,target:{value:we}})},style:($e==null?void 0:$e.uuid)===(we==null?void 0:we.uuid)?{backgroundColor:"#0F8BFD",padding:15,borderRadius:8}:{padding:15},children:[o.jsx(Ji,{onFocus:()=>de(1),inputId:`radio-option-${De}-${we==null?void 0:we.uuid}-${N?"preview":"builder-radio"}`,onChange:st=>{be(st)},value:we,name:`radio-option-${De}-${we==null?void 0:we.uuid}-${N?"preview":"builder"}`,checked:($e==null?void 0:$e.uuid)===(we==null?void 0:we.uuid),disabled:e===l}),((ct=we==null?void 0:we.hyperlinkText)==null?void 0:ct[O==null?void 0:O.type])===""?o.jsx("label",{htmlFor:`radio-option-${De}-${we==null?void 0:we.uuid}-${N?"preview":"builder"}`,children:(Nt=we==null?void 0:we.optionText)==null?void 0:Nt[O==null?void 0:O.type]}):o.jsx("label",{children:o.jsx("a",{href:(at=we==null?void 0:we.hyperlinkText)==null?void 0:at[O==null?void 0:O.type],target:"_blank",rel:"noreferrer",children:(St=we==null?void 0:we.optionText)==null?void 0:St[O==null?void 0:O.type]})})]},De))}),fe}if(((X=d==null?void 0:d.fieldType)==null?void 0:X.type)==="dropdown")return o.jsx(Sa,{onFocus:()=>de(1),onChange:fe=>{h!=null&&h.rowIsRepeatable?se(d,fe.target.value):Ae(fe.target.value)},options:c,optionLabel:Te(),optionValue:Ce(),value:z,placeholder:(oe=d==null?void 0:d.placeholder)==null?void 0:oe[O==null?void 0:O.type],disabled:e===l})},Ae=ne=>{var fe,we;P(ne.target.value);const X=a,oe=Et.cloneDeep(n);if(X!==null){if((fe=ne==null?void 0:ne.target)!=null&&fe.value){if(oe[d==null?void 0:d.uuid]=(we=ne==null?void 0:ne.target)==null?void 0:we.value,(X==null?void 0:X.length)>0)for(const De of X)De.fieldId===t.field.uuid&&(De.postData[0]={postValue:ne.target.value})}else if(delete oe[d==null?void 0:d.uuid],(X==null?void 0:X.length)>0)for(const De of X)De.fieldId===t.field.uuid&&(De.postData[0]={postValue:""})}if(!(h!=null&&h.rowIsRepeatable)){r(oe);const De=Object.keys(oe).length;i(De)}},re=o.jsxs("div",{onMouseOver:Y,onMouseOut:pe,children:[!_&&!N&&G&&o.jsx(Hr,{handleFieldSettingsSidebar:ie,...t}),o.jsx("div",{className:`field-${(d==null?void 0:d.isFluid)===!0?" card py-3 px-4 p-fluid":"card py-3 px-4"}`,children:o.jsxs("div",{className:"grid",children:[o.jsxs("div",{className:"col-12",children:[(d==null?void 0:d.showHeaderText)&&o.jsx("h6",{children:(U=d==null?void 0:d.headerText)==null?void 0:U[O==null?void 0:O.type]}),(d==null?void 0:d.showLabel)&&o.jsxs("label",{htmlFor:f,className:"flex font-medium mb-5 text-700 text-2xl",children:[o.jsx(aa,{sectionIndex:g,fieldIndex:f,field:d,update:E,value:C}),((Z=d==null?void 0:d.attributes)==null?void 0:Z.required)&&o.jsx("span",{className:"must-required mr-1",children:"*"})," ",N?o.jsx(o.Fragment,{children:(K=d==null?void 0:d.label)==null?void 0:K[O==null?void 0:O.type]}):o.jsx(Zi,{...t}),o.jsx("span",{className:"ml-3",children:d!=null&&d.showToolTip?o.jsx(o.Fragment,{children:o.jsx(Bi,{message:(ue=d==null?void 0:d.toolTip)==null?void 0:ue[O==null?void 0:O.type],position:"right"})}):""})]}),ye(),o.jsx("div",{children:((Ee=d==null?void 0:d.attributes)==null?void 0:Ee.required)&&o.jsx("small",{className:"error",children:j===1&&!z?(ge=d==null?void 0:d.validationMesssage)==null?void 0:ge.language:""})}),o.jsx("div",{children:(d==null?void 0:d.showHelperText)&&o.jsx("small",{children:(me=d==null?void 0:d.helperText)==null?void 0:me[O==null?void 0:O.type]})}),((Le=d==null?void 0:d.inlineConditionalRules)==null?void 0:Le.rules.length)>0&&N===!1&&o.jsx("p",{children:"Inline conditional rules"}),he===!0&&((ve=(Oe=d==null?void 0:d.inlineConditionalRules)==null?void 0:Oe.rules)==null?void 0:ve.length)>0&&((V=d==null?void 0:d.inlineConditionalRules)==null?void 0:V.rules.map((ne,X)=>{const oe=z;return N===!0?o.jsx("div",{children:ne==null?void 0:ne.conditions.map((fe,we)=>o.jsx(F.Fragment,{children:o.jsx(e0,{isConditionTrue:(oe==null?void 0:oe.value)==fe.value||!N,inputValue:z,condition:fe,ruleIndex:X,conditionIndex:we,field:d,section:v,page:A,row:h,pageIndex:m,sectionIndex:g,rowIndex:w,columnIndex:x,path:S,...t})},`select-rule-${X}-`+we))},`rule-${X}`):o.jsx(li,{className:"mt-4",header:`Rule ${X+1}`,children:o.jsx("div",{children:ne==null?void 0:ne.conditions.map((fe,we)=>o.jsx(F.Fragment,{children:o.jsx(e0,{isConditionTrue:(oe==null?void 0:oe.value)===fe.value||!N,inputValue:z,condition:fe,ruleIndex:X,conditionIndex:we,isPreview:N,field:d,section:v,page:A,row:h,pageIndex:m,sectionIndex:g,rowIndex:w,columnIndex:x,path:S,...t})},`select-rule-${X}-`+we))},`rule-${X}`)},X)}))]}),T&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(Ni,{...t})]})]})})]});return o.jsxs(o.Fragment,{children:[B===!0&&o.jsx(Xi,{visibilty:B,closeSettingFieldSidebar:J,...t},d==null?void 0:d.uuid),o.jsx(wi,{...t,fieldWrap:re})]})},SSe=t=>{var j,de,he,te;const{taskRegisterData:e,updateTaskRegisterData:n,updateTaskProgressValue:r,userTaskSubmitFormData:i}=br(),{field:a,row:s}=t,{isPreview:l,isRenderView:c,isAdmin:u}=Zt(),{userSelectedLanguage:d}=on(),[f,h]=F.useState(!1),[m,g]=F.useState(""),[v,A]=F.useState(0),[w,x]=F.useState(!1),[S,E]=F.useState(!1),C=()=>{E(!0)},_=()=>{E(!1)},T=G=>{h(G)},N=()=>{h(!1)},O=()=>{var ae,Y,pe,ie;let G=null;if(s!=null&&s.rowIsRepeatable){if(s!=null&&s.repeatableFields){const J=[...s.repeatableFields],Q=Et.findIndex(J,function(se){return se.uuid===(a==null?void 0:a.uuid)});Q>=0&&J[Q].fieldData?(G=J[Q].fieldData,g(J[Q].fieldData)):(a.isValid=0,g(""))}}else{const J=i,Q=Et.cloneDeep(e);if(J!=null&&J.length){for(const se of J)if(se.fieldId===t.field.uuid&&((ae=se==null?void 0:se.postData)!=null&&ae.length)){G=(Y=se==null?void 0:se.postData[0])==null?void 0:Y.postValue,g((pe=se==null?void 0:se.postData[0])==null?void 0:pe.postValue),Q[a==null?void 0:a.uuid]=(ie=se==null?void 0:se.postData[0])==null?void 0:ie.postValue;const be=Object.keys(Q).length;r(be);break}}}g(G),setTimeout(()=>{x(!0)},2e3)};F.useEffect(()=>{w||O();const G=Gt.addListener("clearRepeatableFields",pe=>{pe===(s==null?void 0:s.uuid)&&(g(""),A(0),a.isValid=1)}),ae=Gt.addListener("onSubmitUserForm",()=>{var pe;if((pe=a==null?void 0:a.attributes)!=null&&pe.required){const ie=m;ie!=null&&ie[a.uuid]?a.isValid=1:a.isValid=0}else a.isValid=1}),Y=Gt.addListener("OnInvalidFieldCatch",pe=>{a.uuid===(pe==null?void 0:pe.fieldId)?A(1):A(0)});return()=>{ae.remove(),Y.remove(),G.remove()}});const B=(G,ae,Y,pe,ie)=>pe==null?void 0:pe.map(J=>{var Q,se;return{...J,children:J!=null&&J.children&&((Q=J==null?void 0:J.children)==null?void 0:Q.length)>0?[...((se=J==null?void 0:J.children)==null?void 0:se.map(be=>ae===(J==null?void 0:J.uuid)||ie===!0?(Y!=null&&Y[be==null?void 0:be.uuid]&&delete Y[be==null?void 0:be.uuid],{...be,options:B(G,ae,Y,(be==null?void 0:be.options)||[],!0)}):{...be,options:B(G,ae,Y,(be==null?void 0:be.options)||[],!1)}))||[]]:[]}}),M=(G,ae)=>{const Y={...m};B(G,ae,Y,a==null?void 0:a.options,!1),Y[G]=ae,g(Y),s!=null&&s.rowIsRepeatable||z(Y)},z=G=>{const ae=i,Y=Et.cloneDeep(e);if(ae!==null){if(G){if(Y[a==null?void 0:a.uuid]=G,(ae==null?void 0:ae.length)>0)for(const pe of ae)pe.fieldId===t.field.uuid&&(pe.postData[0]={postValue:G})}else if(delete Y[a==null?void 0:a.uuid],(ae==null?void 0:ae.length)>0)for(const pe of ae)pe.fieldId===t.field.uuid&&(pe.postData[0]={postValue:""})}if(!(s!=null&&s.rowIsRepeatable)){n(Y);const pe=Object.keys(Y).length;r(pe)}},P=o.jsxs("div",{onMouseOver:C,onMouseOut:_,children:[!c&&!l&&S&&o.jsx(Hr,{handleFieldSettingsSidebar:T,...t}),o.jsx("div",{className:`field-${(a==null?void 0:a.isFluid)===!0?" card py-3 px-4 p-fluid":"card py-3 px-4"}`,children:o.jsxs("div",{className:"grid",children:[o.jsxs("div",{className:"col-12",children:[(a==null?void 0:a.showHeaderText)&&o.jsx("h6",{children:(j=a==null?void 0:a.headerText)==null?void 0:j[d==null?void 0:d.type]}),o.jsx(yb,{...t,isFirst:!0,isPreview:l,schema:a,field:a,value:m,update:(G,ae)=>{M(G,ae)}}),o.jsx("div",{children:((de=a==null?void 0:a.attributes)==null?void 0:de.required)&&o.jsx("small",{className:"error",children:v===1&&!m?(he=a==null?void 0:a.validationMesssage)==null?void 0:he.english:""})}),o.jsx("div",{children:(a==null?void 0:a.showHelperText)&&o.jsx("small",{children:(te=a==null?void 0:a.helperText)==null?void 0:te[d==null?void 0:d.type]})})]}),u&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(Ni,{...t})]})]})})]});return o.jsxs(o.Fragment,{children:[o.jsx(Xi,{visibilty:f,closeSettingFieldSidebar:N,...t},a==null?void 0:a.uuid),o.jsx(wi,{...t,fieldWrap:P})]})},xSe=t=>{var Q,se,be,Ce,Te,ye,Ae,re,U,Z;const{field:e,fieldIndex:n,sectionIndex:r,pageIndex:i,row:a,rowIndex:s,columnIndex:l}=t,{isRenderView:c,isAdmin:u,isPreview:d}=Zt(),{taskRegisterData:f,updateTaskRegisterData:h,updateTaskProgressValue:m,updateUserFormDataSubmit:g,userTaskSubmitFormData:v,task_status:A,TASK_PUBLISHED:w}=br(),[x,S]=F.useState(!1),{userSelectedLanguage:E,fieldSettingUpdate:C}=on(),[_,T]=F.useState(!1),[N,O]=F.useState(0),[B,M]=F.useState(),[z,P]=F.useState(!1),j=()=>{P(!0)},de=()=>{P(!1)},he=[{icon:"pi pi-thumbs-up",thumbValue:"up"},{icon:"pi pi-thumbs-down",thumbValue:"down"}],te=K=>o.jsx("span",{className:"m-2",children:o.jsx("i",{style:{fontSize:30},className:K.icon})}),G=()=>{var K,ue,Ee;if(a!=null&&a.rowIsRepeatable){if(a!=null&&a.repeatableFields){const ge=[...a.repeatableFields],me=Et.findIndex(ge,function(Le){return Le.uuid===(e==null?void 0:e.uuid)});me>=0&&ge[me].fieldData?M(ge[me].fieldData):M("")}}else{const ge=v;if(ge!=null&&ge.length){for(const me of ge)if(me.fieldId===t.field.uuid&&((K=me==null?void 0:me.postData[0])==null?void 0:K.postValue)!==""&&((ue=me==null?void 0:me.postData[0])!=null&&ue.postValue)){M((Ee=me==null?void 0:me.postData[0])==null?void 0:Ee.postValue);break}}}T(!0)};F.useEffect(()=>{_||G();const K=Gt.addListener("clearRepeatableFields",me=>{me===(a==null?void 0:a.uuid)&&(M(""),O(0),e.isValid=0,C(i,r,s,l,n,e))}),ue=Gt.addListener("onSubmitUserForm",()=>{var me;(me=e==null?void 0:e.attributes)!=null&&me.required?B?e.isValid=1:e.isValid=0:e.isValid=1}),Ee=Gt.addListener("OnInvalidFieldCatch",me=>{e.uuid===(me==null?void 0:me.fieldId)?O(1):O(0)}),ge=Gt.addListener("OnGetFieldValue",me=>{var Oe;const Le=(Oe=me==null?void 0:me.repeatableColumn)==null?void 0:Oe.filter((ve,V)=>(ve==null?void 0:ve.fieldUuid)===(e==null?void 0:e.uuid));Le!=null&&Le.length});return()=>{ue.remove(),Ee.remove(),ge.remove(),K.remove()}});const ae=K=>{M(K.value);const ue=v,Ee=Et.cloneDeep(f);if(ue!==null){if(K!=null&&K.value){if(Ee[e==null?void 0:e.uuid]=K==null?void 0:K.value,(ue==null?void 0:ue.length)>0)for(const ge of ue)ge.fieldId===t.field.uuid&&(ge.postData[0]={postValue:K.value})}else if(delete Ee[e==null?void 0:e.uuid],(ue==null?void 0:ue.length)>0)for(const ge of ue)ge.fieldId===t.field.uuid&&(ge.postData[0]={postValue:""})}if(!(a!=null&&a.rowIsRepeatable)){h(Ee);const ge=Object.keys(Ee).length;m(ge)}},Y=(K,ue)=>{var Ee;if(v){const ge=[...v],me=Et.findIndex(ge,function(Oe){return Oe.rowId===(a==null?void 0:a.uuid)});let Le=(Ee=v[me])==null?void 0:Ee.repeatableFields;Le={...Le,[K==null?void 0:K.uuid]:ue},ge[me]={...ge[me],repeatableFields:Le},g(ge)}M(ue),ue!==""?K.isValid=1:K.isValid=0},pe=K=>{S(K)},ie=()=>{S(!1)},J=o.jsxs("div",{onMouseOver:j,onMouseOut:de,children:[!c&&!d&&z&&o.jsx(Hr,{handleFieldSettingsSidebar:pe,...t}),o.jsx("div",{className:`field ${d?" ":" builder-element-wrapper "}${(e==null?void 0:e.isFluid)===!0?" card py-3 px-4 p-fluid":"card py-3 px-4"}`,children:o.jsxs("div",{className:"grid",children:[o.jsxs("div",{className:u?"col-6 ":"col-12 p-fluid",children:[(e==null?void 0:e.showHeaderText)&&o.jsx("h6",{children:(Q=e==null?void 0:e.headerText)==null?void 0:Q[E==null?void 0:E.type]}),(e==null?void 0:e.showLabel)&&o.jsxs("label",{htmlFor:n,className:"flex font-medium mb-3 text-700 text-2xl",children:[o.jsx(aa,{...t}),((se=e==null?void 0:e.attributes)==null?void 0:se.required)&&o.jsx("span",{className:"must-required mr-1",children:"*"})," ",d?o.jsx(o.Fragment,{children:(be=e==null?void 0:e.label)==null?void 0:be[E==null?void 0:E.type]}):o.jsx(Zi,{...t}),o.jsx("span",{className:"ml-3",children:(e==null?void 0:e.showToolTip)&&o.jsx(Bi,{message:(Ce=e==null?void 0:e.toolTip)==null?void 0:Ce[E==null?void 0:E.type],position:"right"})})]}),o.jsxs("span",{className:"p-input-icon-"+(e==null?void 0:e.iconAlignment),children:[(e==null?void 0:e.showIcon)&&o.jsx("i",{className:"pi pi-"+((ye=(Te=e==null?void 0:e.icon)==null?void 0:Te.properties)==null?void 0:ye.name)}),o.jsx("div",{className:"card flex justify-content-start",children:o.jsx(q0,{value:B,onChange:K=>{M(K.value),a!=null&&a.rowIsRepeatable?Y(e,K.value):ae(K)},itemTemplate:te,optionLabel:"value",onFocus:()=>O(1),options:he,readOnly:A===w,className:N===1&&((Ae=e==null?void 0:e.attributes)!=null&&Ae.required)?B?"valid":"invalid":"valid'"})})]}),o.jsx("div",{children:((re=e==null?void 0:e.attributes)==null?void 0:re.required)&&o.jsx(o.Fragment,{children:o.jsx("small",{className:"error",children:N===1&&!B?(U=e==null?void 0:e.validationMesssage)==null?void 0:U.english:""})})}),o.jsx("div",{children:(e==null?void 0:e.showHelperText)&&o.jsx("small",{children:(Z=e==null?void 0:e.helperText)==null?void 0:Z[E==null?void 0:E.type]})})]}),u&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(Ni,{...t})]})]})})]});return o.jsxs(o.Fragment,{children:[o.jsx(Xi,{visibilty:x,closeSettingFieldSidebar:ie,...t}),o.jsx(wi,{...t,fieldWrap:J})]})},CSe=t=>{var ie,J,Q,se,be,Ce,Te;const{taskRegisterData:e,updateTaskRegisterData:n,updateTaskProgressValue:r,updateUserFormDataSubmit:i,userTaskSubmitFormData:a}=br(),{userSelectedLanguage:s,fieldSettingUpdate:l}=on(),{field:c,fieldIndex:u,sectionIndex:d,pageIndex:f,row:h,rowIndex:m,columnIndex:g}=t,{isRenderView:v,isAdmin:A,isPreview:w}=Zt(),[x,S]=F.useState(!1),[E,C]=F.useState(""),[_,T]=F.useState(0),[N,O]=F.useState(!1),[B,M]=F.useState(!1),z=()=>{M(!0)},P=()=>{M(!1)},j=()=>{var ye,Ae,re;if(h!=null&&h.rowIsRepeatable){if(h!=null&&h.repeatableFields){const U=[...h.repeatableFields],Z=Et.findIndex(U,function(K){return K.uuid===(c==null?void 0:c.uuid)});Z>=0&&U[Z].fieldData?C(U[Z].fieldData):C("")}}else{const U=a;if(U!=null&&U.length){for(const Z of U)if(Z.fieldId===t.field.uuid&&((ye=Z==null?void 0:Z.postData[0])==null?void 0:ye.postValue)!==""&&((Ae=Z==null?void 0:Z.postData[0])!=null&&Ae.postValue)){C((re=Z==null?void 0:Z.postData[0])==null?void 0:re.postValue);break}}}O(!0)};F.useEffect(()=>{N||j();const ye=Gt.addListener("clearRepeatableFields",Z=>{Z===(h==null?void 0:h.uuid)&&(C(""),T(0),c.isValid=0,l(f,d,m,g,u,c))}),Ae=Gt.addListener("onSubmitUserForm",()=>{var Z;(Z=c==null?void 0:c.attributes)!=null&&Z.required?E?c.isValid=1:c.isValid=0:c.isValid=1}),re=Gt.addListener("OnInvalidFieldCatch",Z=>{c.uuid===(Z==null?void 0:Z.fieldId)?T(1):T(0)}),U=Gt.addListener("OnGetFieldValue",Z=>{var ue;const K=(ue=Z==null?void 0:Z.repeatableColumn)==null?void 0:ue.filter(Ee=>(Ee==null?void 0:Ee.fieldUuid)===(c==null?void 0:c.uuid));K!=null&&K.length});return()=>{Ae.remove(),re.remove(),U.remove(),ye.remove()}});const de=ye=>{S(ye)},he=()=>{S(!1)},te=ye=>{var U,Z;C(ye.target.value);const Ae=a,re=Et.cloneDeep(e);if(Ae!==null){if((U=ye==null?void 0:ye.target)!=null&&U.value){if(re[c==null?void 0:c.uuid]=(Z=ye==null?void 0:ye.target)==null?void 0:Z.value,(Ae==null?void 0:Ae.length)>0)for(const K of Ae)K.fieldId===t.field.uuid&&(K.postData[0]={postValue:ye.target.value})}else if(delete re[c==null?void 0:c.uuid],(Ae==null?void 0:Ae.length)>0)for(const K of Ae)K.fieldId===t.field.uuid&&(K.postData[0]={postValue:""})}if(!(h!=null&&h.rowIsRepeatable)){n(re);const K=Object.keys(re).length;r(K)}},G=(ye,Ae,re,U)=>{var Z;if(a){const K=[...a],ue=Et.findIndex(K,function(ge){return ge.rowId===(h==null?void 0:h.uuid)});let Ee=(Z=a[ue])==null?void 0:Z.repeatableFields;Ee={...Ee,[re==null?void 0:re.uuid]:U},K[ue]={...K[ue],repeatableFields:Ee},i(K)}C(U),U!==""?re.isValid=1:re.isValid=0},ae=5,Y=()=>{const ye=[],Ae=[PE,kE,ME,NE,FE],re=["Awful","Not Very Good","Okay","Really Good","Fantastic"];for(let U=0;U<ae;U++)ye.push(o.jsxs("label",{children:[o.jsx("input",{onChange:Z=>{h!=null&&h.rowIsRepeatable?G(f,d,c,Z.target.value):te(Z)},checked:parseInt(E)===U,name:"liker-Emoji-scale"+(c==null?void 0:c.uuid),type:"radio",value:U}),o.jsxs("span",{className:"grid m-0",children:[o.jsx("div",{className:"col-12 flex justify-content-center",children:o.jsx("img",{src:Ae[U]})}),o.jsx("div",{children:re[U]})]})]},`field-${c==null?void 0:c.uuid}-likertEmojiScale-${U} ${parseInt(E)===U?"scale-selected":""}`));return ye},pe=o.jsxs("div",{onMouseOver:z,onMouseOut:P,children:[!v&&!w&&B&&o.jsx(Hr,{handleFieldSettingsSidebar:de,...t}),o.jsxs("div",{className:`field ${w?" ":" builder-element-wrapper "}${(c==null?void 0:c.isFluid)===!0?" card py-3 px-4 p-fluid":"card py-3 px-4"}`,children:[o.jsx("div",{className:"grid",children:o.jsxs("div",{className:"col-12 ",children:[(c==null?void 0:c.showHeaderText)&&o.jsx("h6",{children:(ie=c==null?void 0:c.headerText)==null?void 0:ie[s==null?void 0:s.type]}),(c==null?void 0:c.showLabel)&&o.jsxs("label",{htmlFor:`label${u}`,className:"flex font-medium mb-3 text-700 text-2xl",children:[o.jsx(aa,{...t}),((J=c==null?void 0:c.attributes)==null?void 0:J.required)&&o.jsx("span",{className:"must-required mr-1",children:"*"})," ",w?o.jsx(o.Fragment,{children:(Q=c==null?void 0:c.label)==null?void 0:Q[s==null?void 0:s.type]}):o.jsx(Zi,{...t}),o.jsx("span",{className:"ml-3",children:(c==null?void 0:c.showToolTip)&&o.jsx(Bi,{message:(se=c==null?void 0:c.toolTip)==null?void 0:se[s==null?void 0:s.type],position:"right"})})]}),o.jsxs("div",{className:"mt-3",children:[o.jsx("div",{children:o.jsx("div",{className:"emoji",children:Y()})}),o.jsx("div",{children:((be=c==null?void 0:c.attributes)==null?void 0:be.required)&&o.jsx("small",{className:"error",children:_===1&&!E?(Ce=c==null?void 0:c.validationMesssage)==null?void 0:Ce.english:""})}),o.jsx("div",{children:(c==null?void 0:c.showHelperText)&&o.jsx("small",{children:(Te=c==null?void 0:c.helperText)==null?void 0:Te[s==null?void 0:s.type]})})]})]})}),A&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(Ni,{...t})]})]})]});return o.jsxs(o.Fragment,{children:[o.jsx(Xi,{visibilty:x,closeSettingFieldSidebar:he,...t}),o.jsx(wi,{...t,fieldWrap:pe})]})},TSe=t=>{var j,de,he,te,G,ae,Y,pe,ie,J,Q;const{userTaskSubmitFormData:e}=br(),{userSelectedLanguage:n,fieldSettingUpdate:r}=on(),{isPreview:i,isAdmin:a,isRenderView:s}=Zt(),{field:l,fieldIndex:c,sectionIndex:u,pageIndex:d,row:f,rowIndex:h,columnIndex:m}=t,[g,v]=F.useState(!1),[A,w]=F.useState(""),[x,S]=F.useState(0),[E,C]=F.useState(!1),[_,T]=F.useState(!1),N=()=>{T(!0)},O=()=>{T(!1)},B=()=>{var se,be,Ce;if(f!=null&&f.rowIsRepeatable){if(f!=null&&f.repeatableFields){const Te=[...f.repeatableFields],ye=Et.findIndex(Te,function(Ae){return Ae.uuid===(l==null?void 0:l.uuid)});ye>=0&&Te[ye].fieldData?w(Te[ye].fieldData):w("")}}else{const Te=e;if(Te!=null&&Te.length){for(const ye of Te)if(ye.fieldId===t.field.uuid&&((se=ye==null?void 0:ye.postData[0])==null?void 0:se.postValue)!==""&&((be=ye==null?void 0:ye.postData[0])!=null&&be.postValue)){w((Ce=ye==null?void 0:ye.postData[0])==null?void 0:Ce.postValue);break}}}C(!0)};F.useEffect(()=>{E||B();const se=Gt.addListener("clearRepeatableFields",ye=>{ye===(f==null?void 0:f.uuid)&&(w(""),S(0),l.isValid=0,r(d,u,h,m,c,l))}),be=Gt.addListener("onSubmitUserForm",()=>{var ye,Ae;(ye=l==null?void 0:l.attributes)!=null&&ye.required?A&&(A==null?void 0:A.length)<((Ae=l==null?void 0:l.attributes)==null?void 0:Ae.minLength)?l.isValid=1:l.isValid=0:l.isValid=1}),Ce=Gt.addListener("OnInvalidFieldCatch",ye=>{l.uuid===(ye==null?void 0:ye.fieldId)?S(1):S(0)}),Te=Gt.addListener("OnGetFieldValue",ye=>{var re;const Ae=(re=ye==null?void 0:ye.repeatableColumn)==null?void 0:re.filter(U=>(U==null?void 0:U.fieldUuid)===(l==null?void 0:l.uuid));Ae!=null&&Ae.length});return()=>{be.remove(),Ce.remove(),Te.remove(),se.remove()}});const M=se=>{v(se)},z=()=>{v(!1)},P=o.jsxs("div",{onMouseOver:N,onMouseOut:O,children:[!s&&!i&&_&&o.jsx(Hr,{handleFieldSettingsSidebar:M,...t}),o.jsxs("div",{className:`field ${i?" ":" builder-element-wrapper "}${(l==null?void 0:l.isFluid)===!0?" card p-fluid ":"card"} ${s?" ":" py-6 px-4 "}`,children:[o.jsx("div",{className:"grid",children:o.jsxs("div",{className:a?"col-6 ":"col-12 p-fluid",children:[(l==null?void 0:l.showHeaderText)&&o.jsx("h6",{children:(j=l==null?void 0:l.headerText)==null?void 0:j[n==null?void 0:n.type]}),(l==null?void 0:l.showLabel)&&o.jsxs("label",{htmlFor:c,className:"flex font-medium mb-3 text-700 text-2xl",children:[o.jsx(aa,{...t}),((de=l==null?void 0:l.attributes)==null?void 0:de.required)&&o.jsx("span",{className:"must-required mr-1",children:"*"})," ",i?o.jsx(o.Fragment,{children:(he=l==null?void 0:l.label)==null?void 0:he[n==null?void 0:n.type]}):o.jsx(Zi,{...t}),(l==null?void 0:l.showToolTip)&&o.jsx("span",{className:"ml-3",children:o.jsx(Bi,{message:(te=l==null?void 0:l.toolTip)==null?void 0:te[n==null?void 0:n.type],position:"right"})})]}),o.jsxs("div",{className:"mt-3",children:[o.jsx("span",{className:"p-input-icon-"+(l==null?void 0:l.iconAlignment),children:(l==null?void 0:l.showIcon)&&o.jsx("i",{className:"pi pi-"+((ae=(G=l==null?void 0:l.icon)==null?void 0:G.properties)==null?void 0:ae.name)})}),o.jsx("div",{children:((Y=l==null?void 0:l.attributes)==null?void 0:Y.required)&&o.jsxs(o.Fragment,{children:[o.jsx("small",{className:"error",children:x===1&&!A?(pe=l==null?void 0:l.validationMesssage)==null?void 0:pe.english:""}),o.jsx("small",{className:"error",children:x===1&&(A==null?void 0:A.length)<((ie=l==null?void 0:l.attributes)==null?void 0:ie.minLength)?`Mini length ${(J=l==null?void 0:l.attributes)==null?void 0:J.minLength}`:""})]})}),o.jsx("div",{children:(l==null?void 0:l.showHelperText)&&o.jsx("small",{children:(Q=l==null?void 0:l.helperText)==null?void 0:Q[n==null?void 0:n.type]})})]})]})}),a&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(Ni,{...t})]})]})]});return o.jsxs(o.Fragment,{children:[o.jsx(Xi,{visibilty:g,closeSettingFieldSidebar:z,...t}),o.jsx(wi,{...t,fieldWrap:P})]})},ESe=t=>{var z,P,j,de,he,te,G;const{field:e,fieldIndex:n,columnIndex:r,sectionIndex:i,rowIndex:a,pageIndex:s,ref:l}=t,{isPreview:c}=Zt(),{userSelectedLanguage:u,fieldSettingUpdate:d}=on(),{userTaskSubmitFormData:f}=br(),[h,m]=F.useState(!1),[g,v]=F.useState(""),[A,w]=F.useState(0),[x,S]=F.useState(!1),[E,C]=F.useState(!1),_=()=>{C(!0)},T=()=>{C(!1)},N=()=>{var Y;const ae=f;if(ae.length){for(const pe of ae)if(pe.fieldId===t.field.uuid){v((Y=pe==null?void 0:pe.postData[0])==null?void 0:Y.postValue),S(!0);break}}};F.useEffect(()=>{x||N();const ae=Gt.addListener("onSubmitUserForm",()=>{var pe;(pe=e==null?void 0:e.attributes)!=null&&pe.required&&(g?e.isValid=1:e.isValid=0,d(s,i,a,r,n,e))}),Y=Gt.addListener("OnInvalidFieldCatch",pe=>{e.uuid===(pe==null?void 0:pe.fieldId)?w(1):w(0)});return()=>{ae.remove(),Y.remove()}});const O=ae=>{m(ae)},B=()=>{m(!1)},M=o.jsxs("div",{onMouseOver:_,onMouseOut:T,children:[!c&&E&&o.jsx(Hr,{handleFieldSettingsSidebar:O,...t}),o.jsx("div",{className:c?"":"field-form-builder",ref:l,children:o.jsx("div",{className:"field",children:o.jsx("div",{className:"grid",children:o.jsxs("div",{className:c?"col-12":"col-11",children:[(e==null?void 0:e.showHeaderText)&&o.jsx("h6",{children:(z=e==null?void 0:e.headerText)==null?void 0:z[u==null?void 0:u.type]}),(e==null?void 0:e.showLabel)&&o.jsxs("label",{htmlFor:`${n}`,className:"flex font-medium mb-3 text-700 text-2xl",children:[((P=e==null?void 0:e.attributes)==null?void 0:P.required)&&o.jsx("span",{className:"must-required",children:"*"})," ",i+1,".",r+1,".",n+1," ",(j=e==null?void 0:e.label)==null?void 0:j[u==null?void 0:u.type],o.jsx("span",{className:"ml-3",children:(e==null?void 0:e.showToolTip)&&o.jsx(Bi,{message:(de=e==null?void 0:e.toolTip)==null?void 0:de[u==null?void 0:u.type],position:"right"})})]}),o.jsxs("div",{className:"mt-3",children:[o.jsx("p",{children:"Anchor Tag"}),o.jsx("div",{children:((he=e==null?void 0:e.attributes)==null?void 0:he.required)&&o.jsx("small",{className:"error",children:A===1&&!g?(te=e==null?void 0:e.validationMesssage)==null?void 0:te.language:""})}),o.jsx("div",{children:(e==null?void 0:e.showHelperText)&&o.jsx("small",{children:(G=e==null?void 0:e.helperText)==null?void 0:G[u==null?void 0:u.type]})})]})]})})})})]});return o.jsxs(o.Fragment,{children:[h===!0&&o.jsx(Xi,{visibilty:h,closeSettingFieldSidebar:B,...t}),o.jsx(wi,{...t,fieldWrap:M})]})},qc=t=>{const{data:e,path:n,field:r}=t,{renderType:i,isPreview:a}=Zt(),s=F.useRef(null),[l,c]=F.useState(!1),[{isDragging:u},d]=Qi({item:{...e,type:j1,uuid:e==null?void 0:e.uuid,path:n},type:j1,collect:A=>({isDragging:A.isDragging()})}),f=u?.25:1;d(s);const h=A=>{switch(r==null?void 0:r.componentType){case"text":return o.jsx(B0e,{typeName:"Text",field:r,...A});case"number":return o.jsx(j0e,{typeName:"Number",field:r,...A});case"email":return o.jsx(H0e,{typeName:"Email",field:r,...A});case"textarea":return o.jsx(z0e,{typeName:"Text Area",field:r,...A});case"editor":return o.jsx(c1e,{typeName:"Editor",field:r,...A});case"question":return o.jsx(U1e,{typeName:"Exam",field:r,...A});case"select":return o.jsx(Q0e,{typeName:"Select",field:r,...A});case"multi-select":return o.jsx(T1e,{typeName:"Multi Select",field:r,...A});case"checkbox":return o.jsx(E1e,{typeName:"Checkbox",field:r,...A});case"radio":return o.jsx(_1e,{typeName:"Radio",field:r,...A});case"radio-hierarchal":return o.jsx(SSe,{typeName:"Radio Progressive",field:r,...A});case"href":return o.jsx($0e,{typeName:"Href",field:r,...A});case"heading":return o.jsx(F1e,{typeName:"Heading",field:r,...A});case"paragraph":return o.jsx(Hve,{typeName:"Paragraph",field:r,...A});case"image":return o.jsx(tk,{typeName:"Image",field:r,...A});case"video":return o.jsx(Y3e,{typeName:"Video",field:r,...A});case"hr":return o.jsx(K3e,{typeName:"Hr",field:r,...A});case"date-picker":return o.jsx(X3e,{typeName:"Date Picker",field:r,...A});case"signature":return o.jsx(R3e,{typeName:"Signature",field:r,...A});case"file-upload":return o.jsx(Ybe,{typeName:"File Upload",field:r,...A});case"facebook-login":return o.jsx(TSe,{typeName:"Facebook Login",field:r,...A});case"anchor":return o.jsx(ESe,{ref:s,typeName:"Anchor Tag",field:r,...A});case"image-gallery":return o.jsx(qve,{typeName:"Image Gallery",field:r,...A});case"quiz":return o.jsx(Rbe,{typeName:"Quiz",field:r,...A});case"document":return o.jsx(Kbe,{typeName:"Document",field:r,...A});case"list":return o.jsx(Qbe,{typeName:"List",field:r,...A});case"country":return o.jsx(L0e,{typeName:"Country",field:r,...A});case"phone":return o.jsx(aSe,{typeName:"Phone",field:r,...A});case"web-url":return o.jsx(sSe,{typeName:"Website Url",field:r,...A});case"rating":return o.jsx(uSe,{typeName:"Rating",field:r,...A});case"slider":return o.jsx(dSe,{typeName:"Rating",field:r,...A});case"hidden-field":return o.jsx(fSe,{typeName:"Hidden Field",field:r,...A});case"likert-scale":return o.jsx(hSe,{typeName:"Likert Scale Field",field:r,...A});case"type-signature":return o.jsx(pSe,{typeName:"Likert Scale Field",field:r,...A});case"address":return o.jsx(gSe,{typeName:"Address",field:r,...A});case"grid-component":return o.jsx(cj,{typeName:"Grid",field:r,...A});case"matrix-scale":return o.jsx(cj,{typeName:"Grid",field:r,...A});case"matrix-dropdown":return o.jsx(bSe,{typeName:"Grid",field:r,...A});case"thumbs":return o.jsx(xSe,{typeName:"Thumbs Up and Down",field:r,...A});case"likert-emoji-scale":return o.jsx(CSe,{typeName:"Thumbs Up and Down",field:r,...A});case"table":return o.jsx(ASe,{typeName:"Grid",field:r,...A});case"dynamic-listing":return o.jsx(wSe,{typeName:"Grid",field:r,...A});default:return o.jsx(o.Fragment,{children:"Empty"})}},m=()=>{c(!0)},g=()=>{c(!1)},v=()=>{let A="";return a?(A=A+" component ",i===z1?A=A+" ":A=A+" px-2 "):(A=A+" component draggable field-form-builder-not-preview",i===z1?A=A+" pdf-component":A=A+" px-2 pdf-component"),A};return o.jsx(o.Fragment,{children:o.jsxs("div",{style:{opacity:f},className:v(),onMouseOver:m,onMouseOut:g,children:[!a&&l&&o.jsx("i",{ref:a===!1?s:null,className:"elementDrag-icon pi pi-arrows-alt cursor-move",style:{fontSize:"1em"}}),h(t)]})})},ISe={position:"relative"},_Se=t=>{var O,B,M,z,P;const{data:e,path:n,pageIndex:r,sectionIndex:i,rowIndex:a,columnIndex:s,section:l,row:c,page:u}=t,d=F.useRef(null),{removeColumn:f,addColumn:h,cloneColumn:m,formBuilderFormLayout:g,handleDrop:v}=on(),{isPreview:A,isRenderView:w,isAdvanceView:x,emitSocketData:S}=Zt(),[{isDragging:E},C]=Qi({type:ms,item:{type:ms,uuid:e==null?void 0:e.uuid,children:e.children,path:n},collect:j=>({isDragging:j.isDragging()})}),_=E&&!w?.25:1;C(d);const T=(j,de,he,te,G,ae,Y)=>o.jsx(qc,{page:u,type:"field",row:c,column:e,section:l,field:j,data:j,path:de,pageIndex:he,sectionIndex:te,rowIndex:G,columnIndex:ae,fieldIndex:Y},`component-${n}-${j==null?void 0:j.uuid}`),N=(j,de,he,te,G)=>{var ie,J,Q,se;const ae=j.collapsed?"pi pi-chevron-down":"pi pi-chevron-up",Y=`${j.className} justify-content-space-between`,pe=`${j.titleClassName} pl-1 text-primary`;return o.jsxs(o.Fragment,{children:[o.jsx(rn,{target:".clone-tool"}),o.jsx(rn,{target:".add-column-tool"}),o.jsxs("div",{className:Y,children:[o.jsxs("span",{ref:A===!1?d:null,children:[o.jsx("button",{className:j.togglerClassName,children:o.jsx("span",{className:"pi pi-sliders-h dragabble"})}),o.jsxs("button",{className:j.togglerClassName,onClick:j.onTogglerClick,children:[o.jsx("span",{className:ae}),o.jsx(Qt,{})]}),o.jsx("span",{className:pe,children:"Column"})]}),A===!1&&o.jsxs("div",{className:"p-panel-icons",children:[o.jsx("span",{className:"add-column-tool","data-pr-tooltip":"Add Column",children:o.jsxs("button",{className:j.togglerClassName,onClick:()=>{h(de,he,te),S()},children:[o.jsx("span",{className:"pi pi-plus"}),o.jsx(Qt,{})]})}),((se=(Q=(J=(ie=g[de])==null?void 0:ie.children[he])==null?void 0:J.children[te])==null?void 0:Q.children)==null?void 0:se.length)>1&&o.jsxs("button",{className:j.togglerClassName,onClick:()=>{f(de,he,te,G),S()},children:[o.jsx("span",{className:"pi pi-trash"}),o.jsx(Qt,{})]}),o.jsx("span",{className:"clone-tool","data-pr-tooltip":"Clone",children:o.jsxs("button",{className:j.togglerClassName,onClick:()=>{m(e,de,he,te,G),S()},children:[o.jsx("span",{className:"pi pi-clone"}),o.jsx(Qt,{})]})})]})]})]})};return o.jsx("div",{style:x?{...ISe,opacity:_}:{},className:w?"form-builder-column container-column":"draggable form-builder-column container-column",children:A===!1?o.jsx(o.Fragment,{children:x===!0?o.jsxs(li,{className:"builder-row-column",header:"Column",toggleable:!0,headerTemplate:j=>N(j,r,i,a,s),children:[((O=e==null?void 0:e.children)==null?void 0:O.length)>0?(B=e==null?void 0:e.children)==null?void 0:B.map((j,de)=>{const he=`${n}-${de}`;return o.jsxs(F.Fragment,{children:[o.jsx(Tr,{isAdvanceView:x,fieldDropArea:!0,data:{path:he,childrenCount:e.children.length,droppedField:e},onDrop:v}),T(j,he,r,i,a,s,de)]},he)}):o.jsxs("span",{className:"pt-4 text-center text-primary",style:{display:"block",zIndex:-1,width:"99%"},children:["Please drop the element from the sidebar below",o.jsx("p",{children:o.jsx("i",{className:"pi pi-arrow-down py-2",style:{fontSize:"2em"}})})]}),o.jsx(Tr,{isAdvanceView:x,fieldDropArea:!0,data:{path:`${n}-${e.children.length}`,childrenCount:e.children.length,droppedField:e},onDrop:v,isLast:!0})]}):o.jsx(o.Fragment,{children:o.jsxs("div",{children:[((M=e==null?void 0:e.children)==null?void 0:M.length)>0?(z=e==null?void 0:e.children)==null?void 0:z.map((j,de)=>{const he=`${n}-${de}`;return o.jsxs(F.Fragment,{children:[o.jsx(Tr,{isAdvanceView:x,fieldDropArea:!0,data:{path:he,childrenCount:e.children.length,droppedField:e},onDrop:v}),T(j,he,r,i,a,s,de)]},he)}):o.jsx(o.Fragment,{children:o.jsxs("span",{className:"pt-4 text-center text-primary",style:{display:"block",zIndex:-1,width:"99%"},children:["Please drop the element from the sidebar below",o.jsx("p",{children:o.jsx("i",{className:"pi pi-arrow-down py-2",style:{fontSize:"2em"}})})]})}),o.jsx(Tr,{isAdvanceView:x,dropHereLastField:!0,fieldDropArea:!0,data:{path:`${n}-${e.children.length}`,childrenCount:e.children.length,droppedField:e},onDrop:v,isLast:!0})]})})}):o.jsx(o.Fragment,{children:(P=e==null?void 0:e.children)==null?void 0:P.map((j,de)=>{const he=`${n}-${de}`;return o.jsx(F.Fragment,{children:T(j,he,r,i,a,s,de)},he)})})})},DSe=t=>{var i,a,s;const{language:e,onHandleChange:n,stateRow:r}=t;return o.jsxs("form",{className:"p-fluid",children:[o.jsxs("div",{className:"field",children:[o.jsx("label",{children:"Row Heading"}),o.jsx(mn,{value:(i=r==null?void 0:r.heading)==null?void 0:i[e==null?void 0:e.type],onChange:l=>n("heading",e,l.target.value)})]}),o.jsxs("div",{className:"field",children:[o.jsx("label",{children:"Row Description"}),o.jsx(_s,{value:(a=r==null?void 0:r.subHeadingText)==null?void 0:a[e==null?void 0:e.type],onChange:l=>n("subHeadingText",e,l.target.value)})]}),(r==null?void 0:r.rowIsRepeatable)===!0&&o.jsxs("div",{className:"field",children:[o.jsx("span",{className:"must-required",children:"*"})," ",o.jsx("label",{children:"Add To List Button Label"}),o.jsx(mn,{value:(s=r.addToListButtonLabel)==null?void 0:s[e==null?void 0:e.type],onChange:l=>n("addToListButtonLabel",e,l.target.value)})]})]})},OSe=t=>{const{stateRow:e,onHandleChangeAdvanceSettings:n}=t,{renderType:r}=Zt();return o.jsxs("div",{className:"p-fluid",children:[r===F0&&o.jsxs("div",{className:"field-checkbox",children:[o.jsx(Nr,{inputId:"rowIsRepeatable",checked:e==null?void 0:e.rowIsRepeatable,onChange:i=>n("rowIsRepeatable",i==null?void 0:i.checked)}),o.jsx("label",{htmlFor:"isRepeatable",children:"Row is repeatable ?"})]}),(e==null?void 0:e.rowIsRepeatable)&&o.jsxs("div",{className:"field",children:[o.jsx("span",{className:"must-required",children:"*"})," ",o.jsx("label",{children:"Row Minimum Entries"}),o.jsx(Oa,{value:e==null?void 0:e.minimumEntries,onChange:i=>n("minimumEntries",i.value)})]}),o.jsxs("div",{className:"field-checkbox",children:[o.jsx(Nr,{inputId:"isManualEnumerationEnabled",checked:(e==null?void 0:e.isManualEnumerationEnabled)||!1,onChange:i=>n("isManualEnumerationEnabled",i==null?void 0:i.checked)}),o.jsx("label",{htmlFor:"isManualEnumerationEnabled",children:"Enable manual enumeration for row components?"}),o.jsxs("small",{children:[" ","You need to set mannual enumeration for every component from its settings."," "]})]})]})},NSe=t=>{var f,h,m,g;const{onHandleChange:e,stateRow:n,onHandleChangePageMargin:r}=t,i=new Vb,[,a]=F.useState("");F.useEffect(()=>{},[]);const[s]=F.useState(null),l=()=>{},c=v=>{e("bgImage",v==null?void 0:v.url)},u=[{icon:"pi pi-image",value:"image"},{icon:"pi pi-palette ",value:"color"},{icon:"pi pi-microsoft ",value:"gradient"}],d=v=>o.jsx("i",{className:v.icon});return o.jsxs("div",{className:"",children:[o.jsxs("div",{className:" field",children:[o.jsxs("div",{className:"grid",children:[o.jsxs("div",{className:"field col-2 md:col-3",children:[o.jsx("label",{children:"Left"}),o.jsx(Oa,{value:(f=n==null?void 0:n.margin)==null?void 0:f.left,onChange:v=>{r("left",v.value)},mode:"decimal",showButtons:!0,min:0,max:100})]}),o.jsxs("div",{className:"field col-2 md:col-3",children:[o.jsx("label",{children:"Right"}),o.jsx(Oa,{value:(h=n==null?void 0:n.margin)==null?void 0:h.right,onChange:v=>{r("right",v.value)},mode:"decimal",showButtons:!0,min:0,max:100})]}),o.jsxs("div",{className:"field col-2 md:col-3",children:[o.jsx("label",{children:"Top"}),o.jsx(Oa,{value:(m=n==null?void 0:n.margin)==null?void 0:m.top,onChange:v=>{r("top",v.value)},mode:"decimal",showButtons:!0,min:0,max:100})]}),o.jsxs("div",{className:"field col-2 md:col-3",children:[o.jsx("label",{children:"Bottom"}),o.jsx(Oa,{value:(g=n==null?void 0:n.margin)==null?void 0:g.bottom,onChange:v=>{r("bottom",v.value)},mode:"decimal",showButtons:!0,min:0,max:100})]})]}),o.jsx("label",{children:"Background Type"}),o.jsx(q0,{value:n==null?void 0:n.bgType,options:u,onChange:v=>e("bgType",v.value),itemTemplate:d,optionLabel:"value"})]}),(n==null?void 0:n.bgType)==="color"&&o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"p-fluid field",children:o.jsx(Jd,{value:(n==null?void 0:n.bgColor)||"",onChange:v=>e("bgColor",v.value)})}),o.jsx(Jd,{value:(n==null?void 0:n.bgColor)||"",onChange:v=>e("bgColor",v.value),inline:!0})]}),(n==null?void 0:n.bgType)==="image"&&o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:"p-fluid field",children:[o.jsx("span",{className:"must-required",children:"*"}),o.jsx("label",{children:"Background image"}),o.jsx(mn,{value:(n==null?void 0:n.bgImage)||"",onChange:v=>e("bgImage",v.target.value),placeholder:"enter page title",id:"page_title",name:"page_title"})]}),o.jsxs("div",{className:"shadow-2 border-round surface-card p-4",children:[o.jsx("div",{className:"flex align-items-center justify-content-between mb-4",children:o.jsx("span",{className:"text-xl font-medium text-900",children:"Selected Files"})}),o.jsx("h5",{children:"Media Library"}),o.jsxs("div",{className:"grid",children:[o.jsx("div",{className:"col-8",children:o.jsxs("div",{className:"grid",children:[o.jsx("div",{className:"col-12 mb-5",children:o.jsxs("div",{className:"p-inputgroup",children:[o.jsx(mn,{placeholder:"Keyword",onChange:v=>a(v.target.value)}),o.jsx(kt,{text:!0,icon:"pi pi-search",className:"p-button-info",onClick:()=>l()})]})}),o.jsx("div",{className:"col-12 mb-5",children:o.jsx("div",{className:"surface-section ",children:o.jsx("div",{className:"grid -mt-3 -ml-3 -mr-3"})})})]})}),o.jsx("div",{className:"col-4 card",children:s!==null&&o.jsxs("div",{className:"surface-card p-4 shadow-2 border-round",children:[o.jsx("img",{style:{height:"150px",width:"150px",objectFit:"contain"},src:s==null?void 0:s.url,className:"w-full mb-3 border-round-2xl",onError:v=>v.target.src="https://www.primefaces.org/wp-content/uploads/2020/05/placeholder.png",alt:"https://www.primefaces.org/wp-content/uploads/2020/05/placeholder.png"}),o.jsxs("ul",{className:"list-none p-0 m-0 border-top-1 surface-border",children:[o.jsxs("li",{className:"flex align-items-center py-1 px-2 flex-wrap surface-ground",children:[o.jsx("div",{className:"text-500 w-full md:w-4 font-medium",children:"Name"}),o.jsx("div",{className:"text-900 w-full md:w-8",children:s==null?void 0:s.name})]}),o.jsxs("li",{className:"flex align-items-center py-1 px-2 flex-wrap",children:[o.jsx("div",{className:"text-500 w-full md:w-4 font-medium",children:"Base URL:"}),o.jsx("div",{className:"text-900 w-full md:w-8 line-height-3",style:{wordWrap:"break-word"},children:o.jsx("a",{href:s==null?void 0:s.url,children:s==null?void 0:s.url})})]}),o.jsxs("li",{className:"flex align-items-center py-1 px-2 flex-wrap surface-ground",children:[o.jsx("div",{className:"text-500 w-full md:w-4 font-medium",children:"Base Name:"}),o.jsx("div",{className:"text-900 w-full md:w-8",children:s==null?void 0:s.basename})]}),o.jsxs("li",{className:"flex align-items-center py-1 px-2 flex-wrap",children:[o.jsx("div",{className:"text-500 w-full md:w-4 font-medium",children:"Dir Name:"}),o.jsx("div",{className:"text-900 w-full md:w-8",children:s==null?void 0:s.dirname})]}),o.jsxs("li",{className:"flex align-items-center py-1 px-2 flex-wrap surface-ground",children:[o.jsx("div",{className:"text-500 w-full md:w-4 font-medium",children:"Size:"}),o.jsx("div",{className:"text-900 w-full md:w-8",children:i.formatBytes(s==null?void 0:s.size)})]}),o.jsxs("li",{className:"flex align-items-center py-1 px-2 flex-wrap surface-ground",children:[o.jsx("div",{className:"text-500 w-full md:w-4 font-medium",children:"Creation Date:"}),o.jsx("div",{className:"text-900 w-full md:w-8",children:Nn(s==null?void 0:s.created_at).format("Do MMM YYYY - HH:mm")})]})]}),o.jsx(kt,{text:!0,className:"mt-3 w-full",label:"Set Image",onClick:()=>c(s),"aria-label":"Update"})]})})]})]})]})]})},FSe=t=>{const{stateRow:e,setStateRow:n}=t,[r,i]=F.useState(""),[a,s]=F.useState([""]),[l,c]=F.useState(!1),[u,d]=F.useState(0),[f,h]=F.useState(!1),{updateGlobalToast:m}=Zt(),g=()=>{h(!0)},v=()=>{var j;const z=((j=e==null?void 0:e.reviewerChecklist)==null?void 0:j.length)>=0?[...e.reviewerChecklist]:[];z.push({uuid:tt(),checklist:r,action:a,agree:null,selectAction:[],other:{isOther:!1,description:""},reviewerComments:""});const P={...e,reviewerChecklist:z};n(P),h(!1),i(""),s([""])},A=()=>{h(!1),i(""),s([""])},w=z=>{const P=[...e.reviewerChecklist];P.splice(z,1);const j={...e,reviewerChecklist:P};n(j)},x=(z,P)=>{c(!0);const{checklist:j,action:de}=z;h(!0),d(P),setTimeout(()=>{i(j),s(de)},1e3)},S=(z,P)=>o.jsxs(o.Fragment,{children:[o.jsx(kt,{text:!0,type:"button",className:"p-button-info",icon:"pi pi-pencil",onClick:()=>x(z,P==null?void 0:P.rowIndex),size:"small"}),o.jsx(kt,{text:!0,type:"button",className:"p-button-danger",icon:"pi pi-trash",onClick:()=>w(P==null?void 0:P.rowIndex),size:"small"})]}),E=z=>{var P;return o.jsx(o.Fragment,{children:(P=z==null?void 0:z.action)==null?void 0:P.length})},C=z=>{const P=[...a];P.splice(z,1),s(P)},_=()=>{const z=[...e.reviewerChecklist];z[u]={checklist:r,action:a};const P={...e,reviewerChecklist:z};n(P),h(!1),c(!1)},T=()=>o.jsx("div",{children:l?o.jsx(kt,{text:!0,className:"mb-5 p-button-success",label:"Edit Checklist",onClick:()=>{_()}}):o.jsx(kt,{text:!0,className:"mb-5 p-button-success",label:"Add Checklist",onClick:()=>{v()}})}),N=z=>{n(P=>Object.assign({},P,{reviewerChecklist:z==null?void 0:z.value}))},O=z=>{navigator.clipboard.writeText(JSON.stringify(z)),m({showToast:!0,toastMessage:"Copied to clipboard",toastDetail:"",toastType:"success"})};function B(z){try{JSON.parse(z)}catch{return!1}return!0}const M=async()=>{var j;const z=await navigator.clipboard.readText();let P="";if(B(z)){const de=JSON.parse(z);if((j=de[0])!=null&&j.checklist){const he={...Et.cloneDeep(e),reviewerChecklist:de};n(he),m({showToast:!0,toastMessage:"Checklist pasted",toastDetail:"",toastType:"success"});return}else P=" Empty or Invalid Schema"}else P="Invalid Schema";m({showToast:!0,toastMessage:P,toastDetail:"",toastType:"error"})};return o.jsxs("div",{children:[o.jsxs(ys,{maximizable:!0,header:"Add Checklist",visible:f,style:{width:"30vw"},onHide:()=>A(),footer:T(),children:[o.jsx("h5",{children:"Checklist"}),o.jsx(_s,{rows:2,cols:50,value:r,onChange:z=>{var P;i((P=z==null?void 0:z.target)==null?void 0:P.value)}}),o.jsx("h5",{children:"Actions when user selects No"}),a.map((z,P)=>o.jsxs("div",{children:[P+1,"."," ",o.jsx(_s,{value:z,onChange:j=>{var he;const de=[...a];de[P]=(he=j==null?void 0:j.target)==null?void 0:he.value,s(de)},rows:2,cols:50})," ",o.jsx(kt,{text:!0,type:"button",icon:"pi pi-trash",className:"p-button-danger",onClick:()=>C(P)}),o.jsx("br",{}),o.jsx("br",{})]},`actionIndex-${P}`)),o.jsx(kt,{text:!0,className:" p-button-info mr-2",onClick:()=>{s([...a,""])},children:"Add Action"})]})," ",o.jsx("h5",{children:"Reviewer Checklist"}),o.jsx(kt,{text:!0,className:"mb-5 mr-2 p-button-success",label:"Add Review Checklist",onClick:()=>{g()}}),o.jsx(kt,{text:!0,label:"Copy Schema ",onClick:()=>{O([...(e==null?void 0:e.reviewerChecklist)||[]])},className:"mb-5 mr-2"}),o.jsx(kt,{text:!0,label:"Paste Checklist ",onClick:()=>{M()},className:"mb-5 p-button-info"}),o.jsx("div",{className:"card",children:o.jsxs(Hs,{value:e==null?void 0:e.reviewerChecklist,reorderableRows:!0,onRowReorder:N,children:[o.jsx(fr,{rowReorder:!0,style:{width:"3em"}}),o.jsx(fr,{field:"checklist",header:"Checklist"}),o.jsx(fr,{field:"actions",header:"Actions",body:z=>E(z)}),o.jsx(fr,{header:"",body:(z,P)=>S(z,P)})]})})]})},Dg=t=>{var E;const{visibilty:e,setVisibility:n,row:r,pageIndex:i,sectionIndex:a,rowIndex:s}=t,{formBuilderSchemaLanguages:l,rowSettingUpdate:c,userSelectedLanguage:u,formBuilderPublishedStatus:d}=on(),[f,h]=F.useState(r),{updateGlobalToast:m,emitSocketData:g}=Zt(),v=(C,_,T)=>{h(N=>{const O=N[C];return Object.assign({},N,{[C]:Object.assign({},O,{[_==null?void 0:_.type]:T})})})},A=(C,_)=>{h(T=>({...T,[C]:_}))},w=()=>{const C={...f,children:r==null?void 0:r.children};c(i,a,s,C),g(),m({showToast:!0,toastMessage:"Updated",toastDetail:"Row Updated",toastType:"success"})},x=(C,_)=>{let T=f;T={...T,margin:{...T.margin,[C]:_}},h(T)},S=(C,_)=>{h(T=>({...T,[C]:_}))};return o.jsx(o.Fragment,{children:o.jsxs(Eo,{visible:e,position:"left",className:"p-sidebar-lg",onHide:()=>n(!1),children:[o.jsxs("div",{className:"flex justify-content-between flex-wrap card-container ",children:[o.jsxs("div",{className:"flex align-items-center justify-content-center ",children:[" ",o.jsxs("h5",{children:["Row Settings - ",(E=r==null?void 0:r.heading)==null?void 0:E[u==null?void 0:u.type]]})," "]}),!d&&o.jsx("div",{className:"flex align-items-center justify-content-center",children:o.jsx(kt,{className:"mt-3",label:"Update",onClick:()=>w(),"aria-label":"Update"})})]}),o.jsxs(Ya,{children:[o.jsx(hr,{header:"Text",children:o.jsx(ao,{activeIndex:0,children:l!=null&&l.length?l.map((C,_)=>o.jsx(io,{tabIndex:_,header:C==null?void 0:C.language,children:o.jsx(DSe,{language:C,stateRow:f,onHandleChange:v,...t})},_)):""})}),o.jsx(hr,{header:"Advance",children:o.jsx(OSe,{stateRow:f,onHandleChangeAdvanceSettings:A})}),o.jsx(hr,{header:"Layout",children:o.jsxs("div",{className:"p-fluid",children:[o.jsxs("div",{className:"field-checkbox",children:[o.jsx(Nr,{inputId:"showRowTitle",checked:f==null?void 0:f.showRowTitle,onChange:C=>A("showRowTitle",C==null?void 0:C.checked)}),o.jsx("label",{htmlFor:"showRowTitle",children:"Show Row Title?"})]}),o.jsxs("div",{className:"field-checkbox",children:[o.jsx(Nr,{inputId:"showRowSubTitle",checked:f==null?void 0:f.showRowSubTitle,onChange:C=>A("showRowSubTitle",C==null?void 0:C.checked)}),o.jsx("label",{htmlFor:"showRowSubTitle",children:"Show Row Sub Title?"})]})]})}),o.jsx(hr,{header:"Styling",children:o.jsx(NSe,{stateRow:f,onHandleChange:S,onHandleChangePageMargin:x,...t})}),(f==null?void 0:f.rowIsRepeatable)===!0&&o.jsx(hr,{header:"Admin",children:o.jsx(FSe,{stateRow:f,setStateRow:h})})]})]})})},kSe={},PSe=t=>{var be,Ce,Te,ye,Ae,re,U,Z,K,ue,Ee;const{data:e,path:n,pageIndex:r,sectionIndex:i,rowIndex:a,section:s,page:l}=t,c=F.useRef(null),{removeRow:u,addRow:d,cloneRow:f,formBuilderFormLayout:h,userSelectedLanguage:m,handleDrop:g}=on(),{userTaskSubmitFormData:v,taskRegisterData:A,updateTaskRegisterData:w,updateTaskProgressValue:x,addUserDataFormSectionRepeatableData:S,removeUserDataFormSectionRepeatableData:E,task_status:C,TASK_PUBLISHED:_}=br(),{isPreview:T,isRenderView:N,isAdvanceView:O,renderType:B,isAdmin:M,emitSocketData:z}=Zt(),[P,j]=F.useState(!1),[{isDragging:de},he]=Qi({type:bo,item:{type:bo,uuid:e.uuid,children:e.children,path:n,data:e},collect:ge=>({isDragging:ge.isDragging()})}),te=de?.25:1;he(c);const G=(ge,me,Le,Oe,ve,V)=>o.jsx(_Se,{page:l,row:e,section:s,data:ge,path:me,pageIndex:Le,sectionIndex:Oe,rowIndex:ve,columnIndex:V,isAdmin:M,emitSocketData:z},`column-${n}-${ge.uuid}`),ae=(ge,me,Le,Oe)=>{var X,oe,fe,we;const ve=ge.collapsed?"pi pi-chevron-down":"pi pi-chevron-up",V=`${ge.className} justify-content-space-between`,ne=`${ge.titleClassName} pl-1 text-primary`;return o.jsxs(o.Fragment,{children:[o.jsx(rn,{target:".clone-tool"}),o.jsx(rn,{target:".setting-tool"}),o.jsx(rn,{target:".add-row-tool"}),o.jsxs("div",{className:V,children:[o.jsxs("span",{ref:T===!1?c:null,children:[o.jsx("button",{className:ge.togglerClassName,children:o.jsx("span",{className:"pi pi-sliders-h dragabble"})}),o.jsxs("button",{className:ge.togglerClassName,onClick:ge.onTogglerClick,children:[o.jsx("span",{className:ve}),o.jsx(Qt,{})]}),o.jsxs("span",{className:ne,children:["Row:"," ",((X=e==null?void 0:e.heading)==null?void 0:X[m==null?void 0:m.type])!==""?(oe=e==null?void 0:e.heading)==null?void 0:oe[m==null?void 0:m.type]:"Untitled"]})]}),T===!1&&o.jsxs("div",{className:"p-panel-icons",children:[o.jsx("span",{className:"add-row-tool","data-pr-tooltip":"Add Row",children:o.jsxs("button",{className:ge.togglerClassName,onClick:()=>{d(me,Le),z()},children:[o.jsx("span",{className:"pi pi-plus"}),o.jsx(Qt,{})]})}),((we=(fe=h[me])==null?void 0:fe.children[Le])==null?void 0:we.children.length)>1&&o.jsxs("button",{className:ge.togglerClassName,onClick:()=>{u(me,Le,Oe),z()},children:[o.jsx("span",{className:"pi pi-trash"}),o.jsx(Qt,{})]}),o.jsx("span",{className:"clone-tool","data-pr-tooltip":"Clone",children:o.jsxs("button",{className:ge.togglerClassName,onClick:()=>{f(e,me,Le,Oe),z()},children:[o.jsx("span",{className:"pi pi-clone"}),o.jsx(Qt,{})]})}),o.jsx("span",{className:"setting-tool","data-pr-tooltip":"Settings",children:o.jsxs("button",{onClick:()=>j(!0),className:ge.togglerClassName,children:[o.jsx("span",{className:"pi pi-cog"}),o.jsx(Qt,{})]})})]})]})]})},Y=Et.findIndex(v,function(ge){return(ge==null?void 0:ge.rowId)===(e==null?void 0:e.uuid)}),pe=()=>{var Le,Oe,ve;const ge=Et.cloneDeep(A);((Oe=(Le=v[Y])==null?void 0:Le.repeatableFieldsData)==null?void 0:Oe.length)>=(e==null?void 0:e.minimumEntries)?ge[e==null?void 0:e.uuid]=(ve=v[Y])==null?void 0:ve.repeatableFields:delete ge[e==null?void 0:e.uuid];const me=Object.keys(ge).length;w(ge),x(me)},ie=(be=e==null?void 0:e.repeatableFields)==null?void 0:be.map(ge=>{var me;return{fieldUuid:ge==null?void 0:ge.uuid,field:ge==null?void 0:ge.uuid,header:(me=ge==null?void 0:ge.label)==null?void 0:me.english}}),J=ie==null?void 0:ie.map(ge=>o.jsx(fr,{field:ge.field,header:ge.header,body:me=>o.jsx(o.Fragment,{children:o.jsx("div",{className:"post__content_repetable",dangerouslySetInnerHTML:{__html:me[ge==null?void 0:ge.field]}})})},ge.field)),Q=()=>{var Oe;const ge=[...v],me=[];let Le=!0;e:for(const[,ve]of e.children.entries()){for(const[,V]of ve.children.entries())if(console.log("field.isValid",V.isValid),V!=null&&V.isPostField&&V.isValid!==1){const ne={fieldId:V.uuid,rowIndex:a};console.log("inValidData",ne),me.push(ne),Gt.emit("OnInvalidFieldCatch",ne),Le=!1;break e}Le=!0}Le&&(me==null?void 0:me.length)===0&&(S(e==null?void 0:e.uuid,(Oe=ge[Y])==null?void 0:Oe.repeatableFields),Gt.emit("clearRepeatableFields",e==null?void 0:e.uuid),pe())},se=ge=>o.jsx(o.Fragment,{children:o.jsx(kt,{text:!0,type:"button",className:"p-button-danger ",onClick:()=>{E(e==null?void 0:e.uuid,ge==null?void 0:ge.rowIndex),setTimeout(()=>{pe()},1e3)},icon:"pi pi-trash"})});return o.jsxs("div",{style:{...kSe,opacity:te,marginTop:`${(Ce=e==null?void 0:e.margin)==null?void 0:Ce.top}px`,marginBottom:`${(Te=e==null?void 0:e.margin)==null?void 0:Te.bottom}px`,marginLeft:`${(ye=e==null?void 0:e.margin)==null?void 0:ye.left}px`,marginRight:`${(Ae=e==null?void 0:e.margin)==null?void 0:Ae.right}px`},className:N?"row container-row":"draggable row container-row",children:[P&&o.jsx(Dg,{renderType:B,visibilty:P,setVisibility:j,row:e,pageIndex:r,sectionIndex:i,rowIndex:a,emitSocketData:z},"row_settings_"+r+i+a),T===!1?o.jsx(o.Fragment,{children:O===!0?o.jsx(li,{header:"Row",toggleable:!0,headerTemplate:ge=>ae(ge,r,i,a),children:o.jsxs("div",{className:"form-builder-columns",style:{overflowX:"auto"},children:[(re=e==null?void 0:e.children)==null?void 0:re.map((ge,me)=>{const Le=`${n}-${me}`;return o.jsxs(F.Fragment,{children:[o.jsx(Tr,{isAdvanceView:O,data:{path:Le,childrenCount:e.children.length},onDrop:g,className:"horizontalDrag"}),G(ge,Le,r,i,a,me)]},Le)}),o.jsx(Tr,{isAdvanceView:O,data:{path:`${n}-${e.children.length}`,childrenCount:e.children.length},onDrop:g,className:"horizontalDrag",isLast:!0})]})}):o.jsx(o.Fragment,{children:o.jsx("div",{className:O?"form-builder-columns":"",style:O?{overflowX:"auto"}:{},children:(U=e==null?void 0:e.children)==null?void 0:U.map((ge,me)=>{const Le=`${n}-${me}`;return o.jsx(F.Fragment,{children:G(ge,Le,r,i,a,me)},Le)})})})}):o.jsx(o.Fragment,{children:!(e!=null&&e.rowIsRepeatable&&C===_)&&o.jsxs(o.Fragment,{children:[o.jsx("h5",{children:(Z=e==null?void 0:e.heading)==null?void 0:Z[m==null?void 0:m.type]}),o.jsx("span",{children:(K=e==null?void 0:e.subHeadingText)==null?void 0:K[m==null?void 0:m.type]}),o.jsx("div",{className:"form-builder-columns",children:e.children.map((ge,me)=>{const Le=`${n}-${me}`;return o.jsx(F.Fragment,{children:G(ge,Le,r,i,a,me)},Le)})})]})}),(e==null?void 0:e.rowIsRepeatable)&&C!==_&&o.jsx(kt,{text:!0,type:"button",className:"p-button-success mb-3",onClick:()=>Q(),label:(ue=e.addToListButtonLabel)==null?void 0:ue[m==null?void 0:m.type]}),(e==null?void 0:e.rowIsRepeatable)&&o.jsxs("div",{className:"card",children:[o.jsxs(Hs,{value:(v==null?void 0:v.length)>0?(Ee=v[Y])==null?void 0:Ee.repeatableFieldsData:[],children:[J,C!==_&&o.jsx(fr,{style:{width:"10%"},headerStyle:{textAlign:"center"},bodyStyle:{textAlign:"left",overflow:"visible"},body:(ge,me)=>se(me)})]}),M&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(Ni,{field:e})]})]})]})},MSe=t=>{var i,a;const{language:e,onHandleChange:n,stateSection:r}=t;return o.jsxs("form",{className:"p-fluid",children:[o.jsxs("div",{className:"field",children:[o.jsx("label",{children:"Section Heading"}),o.jsx(mn,{value:(i=r.heading)==null?void 0:i[e==null?void 0:e.type],onChange:s=>n("heading",e,s.target.value)})]}),o.jsxs("div",{className:"field",children:[o.jsx("label",{children:"Section Description"}),o.jsx(_s,{value:(a=r.subHeadingText)==null?void 0:a[e==null?void 0:e.type],onChange:s=>n("subHeadingText",e,s.target.value)})]})]})},LSe={uuid:"",type:"",showSectionHeader:!0,isVisible:!1,isHidden:!1,isCollapsed:!0,isValid:!1,showSectionSubTitle:!1,showSectionTitle:!1,heading:{english:""},subHeadingText:{english:""},children:[]},Dh=t=>{const{visibilty:e,setVisibility:n,section:r,pageIndex:i,sectionIndex:a}=t,[s,l]=F.useState(r??LSe),{formBuilderSchemaLanguages:c,sectionSettingUpdate:u,userSelectedLanguage:d,formBuilderPublishedStatus:f}=on(),{emitSocketData:h}=Zt(),{updateGlobalToast:m}=Zt();console.log("StateSection",r);const g=(w,x,S)=>{l(E=>Object.assign({},E,{[w]:Object.assign({},E[w],{[x==null?void 0:x.type]:S})}))},v=(w,x)=>{l(S=>({...S,[w]:x}))},A=()=>{const w={...s,children:r==null?void 0:r.children};u(i,a,w),h(),m({showToast:!0,toastMessage:"Updated",toastDetail:"Section Updated",toastType:"success"})};return o.jsx(o.Fragment,{children:o.jsxs(Eo,{visible:e,position:"left",className:"p-sidebar-lg",onHide:()=>n(!1),children:[o.jsxs("div",{className:"flex justify-content-between flex-wrap card-container ",children:[o.jsxs("div",{className:"flex align-items-center justify-content-center ",children:[" ",o.jsxs("h5",{children:["Section Settings - ",r==null?void 0:r.heading[d==null?void 0:d.type]," "]})," "]}),!f&&o.jsx("div",{className:"flex align-items-center justify-content-center",children:o.jsx(kt,{className:"mt-3",label:"Update",onClick:()=>A(),"aria-label":"Update"})})]}),o.jsxs(Ya,{children:[o.jsx(hr,{header:"Text",children:o.jsx(ao,{activeIndex:0,children:c!=null&&c.length?c.map((w,x,S)=>o.jsx(io,{tabIndex:x,header:w==null?void 0:w.language,children:o.jsx(MSe,{language:w,stateSection:S,onHandleChange:g,...t})},x)):""})}),o.jsx(hr,{header:"Layout",children:o.jsxs("div",{className:"p-fluid",children:[o.jsxs("div",{className:"field-checkbox",children:[o.jsx(Nr,{inputId:"showSectionTitle",checked:s==null?void 0:s.showSectionHeader,onChange:w=>v("showSectionHeader",w==null?void 0:w.checked)}),o.jsx("label",{htmlFor:"showSectionTitle",children:"Show Section header?"})]}),o.jsxs("div",{className:"field-checkbox",children:[o.jsx(Nr,{inputId:"showSectionTitle",checked:s==null?void 0:s.showSectionTitle,onChange:w=>v("showSectionTitle",w==null?void 0:w.checked)}),o.jsx("label",{htmlFor:"showSectionTitle",children:"Show Section Title?"})]}),o.jsxs("div",{className:"field-checkbox",children:[o.jsx(Nr,{inputId:"showSectionSubTitle",checked:s==null?void 0:s.showSectionSubTitle,onChange:w=>v("showSectionSubTitle",w==null?void 0:w.checked)}),o.jsx("label",{htmlFor:"showSectionSubTitle",children:"Show Section Sub Title?"})]})]})})]})]})})},Oh=t=>{const{saveBuilderElementModalData:e,saveElementModal:n,setSaveElementModal:r}=t,{saveComponent:i}=Zt(),a=pb({initialValues:{builder_element_title:"",builder_element_description:""},validate:c=>{const u={};return c.builder_element_title||(u.builder_element_title="Title is required."),c.builder_element_description||(u.builder_element_description="Description is required."),u},onSubmit:c=>{const u={...c,reusable_template_schema:e==null?void 0:e.reusable_template_schema};i(u,a.resetForm),r(!1)}}),s=c=>!!(a.touched[c]&&a.errors[c]),l=()=>o.jsx("div",{children:o.jsx(kt,{text:!0,className:"p-button-success",label:"Save",icon:"pi pi-file",onClick:()=>{a.handleSubmit()},autoFocus:!0})});return o.jsxs(ys,{header:"Save Custom Element",visible:n,style:{width:"20vw"},footer:l(),onHide:()=>r(!1),children:[o.jsxs("div",{className:"p-field field",children:[o.jsxs("label",{htmlFor:"username",children:[o.jsx("span",{className:"must-required",children:"*"})," Builder element title"]}),o.jsx(mn,{id:"builder_element_title",name:"builder_element_title",value:a.values.builder_element_title,onChange:a.handleChange,className:`${j3({invalid:s("builder_element_title")})} w-full`})]}),o.jsxs("div",{className:"p-field field",children:[o.jsxs("label",{htmlFor:"username",children:[o.jsx("span",{className:"must-required",children:"*"})," Builder element description"]}),o.jsx(_s,{id:"builder_element_description",name:"builder_element_description",value:a.values.builder_element_description,onChange:a.handleChange,className:`${j3({invalid:s("builder_element_title")})} w-full`})]})]})},BSe=t=>{var he,te,G,ae,Y,pe,ie,J;const{data:e,path:n,pageIndex:r,sectionIndex:i,section:a,page:s}=t,{removeSection:l,addSection:c,cloneSection:u,formBuilderFormLayout:d,userSelectedLanguage:f,handleDrop:h}=on(),{isPreview:m,isAdvanceView:g,renderType:v,emitSocketData:A}=Zt(),[w,x]=F.useState(!1),[S,E]=F.useState(!1),[C,_]=F.useState(null),[T,N]=F.useState(!1),O=F.useRef(null),B=(Q,se)=>{_(be=>({...be,[Q]:se}))},[{isDragging:M},z]=Qi({type:ta,item:{type:ta,uuid:e.uuid,children:e.children,path:n},collect:Q=>({isDragging:Q.isDragging()})}),P=M?.25:1;z(O);const j=(Q,se,be,Ce,Te)=>o.jsx(PSe,{page:s,section:a,data:Q,path:se,pageIndex:be,sectionIndex:Ce,rowIndex:Te},`row-${n}-${Q.uuid}`),de=(Q,se,be)=>{var Ae,re;const Ce=Q.collapsed?"pi pi-chevron-down":"pi pi-chevron-up",Te=`${Q.className} justify-content-space-between panel-tab-section`,ye=`${Q.titleClassName} pl-1 text-primary`;return o.jsxs("div",{className:Te,children:[o.jsxs("span",{ref:m===!1?O:null,children:[o.jsx("button",{className:Q.togglerClassName,children:o.jsx("span",{className:"pi pi-sliders-h dragabble"})}),o.jsxs("button",{className:Q.togglerClassName,onClick:Q.onTogglerClick,children:[o.jsx("span",{className:Ce}),o.jsx(Qt,{})]}),o.jsxs("span",{className:ye,children:[be+1," ",(Ae=e==null?void 0:e.heading)==null?void 0:Ae[f==null?void 0:f.type]]})]}),m===!1&&o.jsxs(o.Fragment,{children:[o.jsx(rn,{target:".clone-tool"}),o.jsx(rn,{target:".del-tool"}),o.jsx(rn,{target:".setting-tool"}),o.jsx(rn,{target:".add-section-tool"}),o.jsx(rn,{target:".save-tool"}),o.jsx(rn,{target:".settings-tool"}),o.jsxs("div",{className:"p-panel-icons",children:[o.jsx("span",{className:"add-section-tool","data-pr-tooltip":"Add Section",children:o.jsxs("button",{className:Q.togglerClassName,onClick:()=>{c(se),A()},children:[o.jsx("span",{className:"pi pi-plus"}),o.jsx(Qt,{})]})}),((re=d[se])==null?void 0:re.children.length)>1&&o.jsx("span",{className:"del-tool","data-pr-tooltip":"Delete",children:o.jsxs("button",{className:Q.togglerClassName,onClick:()=>{l(se,be),A()},children:[o.jsx("span",{className:"pi pi-trash"}),o.jsx(Qt,{})]})}),o.jsx("span",{className:"save-tool","data-pr-tooltip":"Save",children:o.jsxs("button",{className:Q.togglerClassName,onClick:()=>{B("reusable_template_schema",e),E(!0)},children:[o.jsx("span",{className:"pi pi-save"}),o.jsx(Qt,{})]})}),o.jsx("span",{className:"clone-tool","data-pr-tooltip":"Clone",children:o.jsxs("button",{className:Q.togglerClassName,onClick:()=>{u(e,se,be),A()},children:[o.jsx("span",{className:"pi pi-clone"}),o.jsx(Qt,{})]})}),o.jsx("span",{className:"settings-tool","data-pr-tooltip":"Settings",children:o.jsxs("button",{className:Q.togglerClassName,onClick:()=>x(!0),children:[o.jsx("span",{className:"pi pi-cog"}),o.jsx(Qt,{})]})})]})]})]})};return o.jsxs("div",{style:{opacity:P,marginBottom:20},className:g?"draggable row":"",children:[m===!1&&o.jsx(Oh,{saveBuilderElementModalData:C,setSaveBuilderElementModalData:_,saveElementModal:S,setSaveElementModal:E}),w===!0&&o.jsx(Dh,{renderType:v,visibilty:w,setVisibility:x,section:e,pageIndex:r,sectionIndex:i,emitSocketData:A},"section_settings_"+r+i),m===!1?o.jsx(o.Fragment,{children:g===!0?o.jsxs(li,{header:(he=e==null?void 0:e.heading)==null?void 0:he.english,toggleable:!0,headerTemplate:Q=>de(Q,r,i),onMouseEnter:()=>N(!0),onMouseLeave:()=>N(!1),children:[((te=e==null?void 0:e.subHeadingText)==null?void 0:te[f==null?void 0:f.type])&&o.jsx("p",{children:(G=e==null?void 0:e.subHeadingText)==null?void 0:G[f==null?void 0:f.type]}),o.jsxs("div",{children:[e.children.map((Q,se)=>{const be=`${n}-${se}`;return o.jsxs(F.Fragment,{children:[o.jsx(Tr,{isAdvanceView:g,data:{path:be,childrenCount:e.children.length},onDrop:h}),j(Q,be,r,i,se)]},be)}),o.jsx(Tr,{isAdvanceView:g,data:{path:`${n}-${e.children.length}`,childrenCount:e.children.length,droppedField:e},onDrop:h,isLast:!0})]}),T&&o.jsxs("div",{className:"m-3 flex justify-content-end",children:[o.jsx("span",{className:"add-section-tool ","data-pr-tooltip":"Add Section",children:o.jsx("i",{className:"pi pi-plus",onClick:()=>{c(r),A()},children:o.jsx(Qt,{})})}),((ae=d[r])==null?void 0:ae.children.length)>1&&o.jsx("span",{className:"del-tool ml-2",children:o.jsx("i",{className:"pi pi-trash","data-pr-tooltip":"Delete",onClick:()=>{l(r,i),A()},children:o.jsx(Qt,{})})})]})]}):o.jsxs(o.Fragment,{children:[((Y=e==null?void 0:e.subHeadingText)==null?void 0:Y[f==null?void 0:f.type])&&o.jsx("p",{children:(pe=e==null?void 0:e.subHeadingText)==null?void 0:pe[f==null?void 0:f.type]}),o.jsx("div",{children:e.children.map((Q,se)=>{const be=`${n}-${se}`;return o.jsx(F.Fragment,{children:j(Q,be,r,i,se)},be)})})]})}):o.jsx(o.Fragment,{children:o.jsxs("div",{className:"",children:[(e==null?void 0:e.showSectionHeader)&&o.jsxs(o.Fragment,{children:[o.jsx("h4",{children:(ie=e==null?void 0:e.heading)==null?void 0:ie[f==null?void 0:f.type]}),o.jsx("p",{children:(J=e==null?void 0:e.subHeadingText)==null?void 0:J[f==null?void 0:f.type]}),o.jsx("hr",{})]}),e.children.map((Q,se)=>{const be=`${n}-${se}`;return o.jsx(F.Fragment,{children:o.jsx("div",{className:"",children:j(Q,be,r,i,se)},be)},be)})]})})]})},VSe={position:"relative"},USe=t=>{var E,C,_;const{data:e,data:n,path:r,pageIndex:i,sectionIndex:a,rowIndex:s,columnIndex:l,section:c,row:u,page:d}=t,f=F.useRef(null),{handleDrop:h}=on(),{isRenderView:m,isAdvanceView:g,isPreview:v}=Zt(),[{isDragging:A},w]=Qi({type:ms,item:{type:ms,uuid:e==null?void 0:e.uuid,children:e.children,path:r},collect:T=>({isDragging:T.isDragging()})}),x=A&&!m?.25:1;w(f);const S=(T,N,O,B,M,z,P)=>o.jsx(qc,{page:d,section:c,row:u,column:n,field:T,pageIndex:O,sectionIndex:B,rowIndex:M,columnIndex:z,fieldIndex:P,type:"field",data:T,path:N},`component-${r}-${T==null?void 0:T.uuid}`);return o.jsx("div",{style:g?{...VSe,opacity:x}:{},className:m?"":"draggable column container-column",children:v===!1?o.jsx(o.Fragment,{children:o.jsxs("div",{children:[((E=e==null?void 0:e.children)==null?void 0:E.length)>0?(C=e==null?void 0:e.children)==null?void 0:C.map((T,N)=>{const O=`${r}-${N}`;return o.jsxs(F.Fragment,{children:[o.jsx(Tr,{isAdvanceView:g,fieldDropArea:!0,data:{path:O,childrenCount:e.children.length,droppedField:e},onDrop:h}),S(T,O,i,a,s,l,N)]},O)}):o.jsx(o.Fragment,{}),o.jsx(Tr,{isAdvanceView:g,dropHereLastField:!0,fieldDropArea:!0,data:{path:`${r}-${e.children.length}`,childrenCount:e.children.length,droppedField:e},onDrop:h,isLast:!0})]})}):o.jsx(o.Fragment,{children:(_=e==null?void 0:e.children)==null?void 0:_.map((T,N)=>{const O=`${r}-${N}`;return o.jsx(F.Fragment,{children:S(T,O,i,a,s,l,N)},O)})})})},qSe=t=>{var l;const{isAdvanceView:e}=Zt(),{data:n,page:r,path:i,pageIndex:a}=t,s=(c,u,d,f,h,m,g,v)=>o.jsx(USe,{page:r,row:v,section:g,data:c,path:`${d}-${f}-${h}-${m}`,pageIndex:d,sectionIndex:f,rowIndex:h,columnIndex:m},`column-${i}-${c.uuid}`);return o.jsx(o.Fragment,{children:(l=n==null?void 0:n.children)==null?void 0:l.map((c,u)=>{var d;return(d=c==null?void 0:c.children)==null?void 0:d.map((f,h)=>{var m;return o.jsx(o.Fragment,{children:o.jsx("div",{className:e?"columns":"",style:e?{overflowX:"auto"}:{},children:(m=f==null?void 0:f.children)==null?void 0:m.map((g,v)=>{const A=`${i}-${u}-${h}-${v}`;return o.jsx(F.Fragment,{children:s(g,A,a,u,h,v,c,f)},A)})})})})})})},$Se=t=>{const{data:e,path:n,pageIndex:r}=t,{isPreview:i,isRenderView:a,isAdvanceView:s}=Zt(),{formBuilderFormSchema:l,handleDrop:c}=on(),u=F.useRef(null),[d,f]=Qi({type:ta,item:{type:ta,uuid:e.uuid,children:e.children,path:n},collect:m=>({isDragging:m.isDragging()})});f(u);const h=(m,g,v,A)=>o.jsx(BSe,{data:m,page:e,section:m,path:g,pageIndex:v,sectionIndex:A},`section_${v}_${A}`);return o.jsx("div",{style:{overflowX:"auto"},className:`${a?"":"draggable page-css p-3 pb-4"}`,"data-image-src":e==null?void 0:e.bgImage,"data-bg-color":`#${e==null?void 0:e.bgColor}`,children:i===!1?o.jsx(o.Fragment,{children:s?o.jsxs(o.Fragment,{children:[e.children.map((m,g)=>{const v=`${n}-${g}`;return o.jsxs(F.Fragment,{children:[s===!0&&o.jsx(Tr,{isAdvanceView:s,data:{path:v,childrenCount:e.children.length},onDrop:c}),h(m,v,r,g)]},`section-${g}-${m.uuid}`)}),s===!0&&o.jsx(Tr,{isAdvanceView:s,data:{path:`${n}-${e.children.length}`,childrenCount:e.children.length,droppedField:e},onDrop:c,isLast:!0})]}):o.jsx(o.Fragment,{children:o.jsx(qSe,{page:e,path:n,data:e,pageIndex:r})})}):o.jsx(o.Fragment,{children:o.jsx("div",{className:"p-1",children:e.children.map((m,g)=>{const v=`${n}-${g}`;return o.jsx(F.Fragment,{children:l!=null&&l.showConditionalFields?o.jsx(o.Fragment,{children:o.jsx("div",{children:h(m,v,r,g)})}):((m==null?void 0:m.isHidden)===!1||!i)&&h(m,v,r,g)},`section-${g}-${m.uuid}`)})})})})},jSe=()=>{const{isPreview:t,isAdvanceView:e}=Zt(),[n,r]=F.useState(!1),[i,a]=F.useState(!1),[s,l]=F.useState(0),{formBuilderFormLayout:c}=on(),{emitSocketData:u}=Zt(),d=(f,h,m)=>o.jsx($Se,{data:f,path:h,pageIndex:m},`page-${f.uuid}`);return o.jsx("div",{className:"page",children:(c==null?void 0:c.length)===F9&&t===!0?o.jsx(o.Fragment,{children:(c==null?void 0:c.length)&&c.map((f,h)=>{const m=`${h}`;return o.jsx("div",{children:d(f,m,h)},`${f.uuid}-${h}`)})}):o.jsx(o.Fragment,{children:e===!0||t===!0?o.jsx(Ya,{activeIndex:s,onTabChange:f=>l(f.index),children:(c==null?void 0:c.length)&&c.map((f,h)=>{const m=`${h}`;return o.jsxs(hr,{disabled:!((f==null?void 0:f.isHidden)===!1||!t),header:"Page",headerTemplate:g=>o.jsx(q7,{options:g,pageIndex:h,setTabSidebarSetting:r,setPageActiveIndex:l,page:f,pages:c}),children:[t===!1&&o.jsx(Tf,{reusableBuilderElementModalVisibility:i,setReusableBuilderElementModalVisibility:a,pageIndex:h}),o.jsx(R0,{setVisibility:r,visibilty:n,pageIndex:h,page:f,emitSocketData:u}),d(f,m,h)]},`${f.uuid}-${h}`)})}):o.jsx(o.Fragment,{children:(c==null?void 0:c.length)>0&&(c==null?void 0:c.map((f,h)=>{const m=`${h}`;return o.jsxs(F.Fragment,{children:[t===!1&&o.jsx(Tf,{reusableBuilderElementModalVisibility:i,setReusableBuilderElementModalVisibility:a,pageIndex:h}),o.jsx(R0,{setVisibility:r,visibilty:n,pageIndex:h,page:f,emitSocketData:u}),d(f,m,h)]},`${f.uuid}-${h}`)}))})})})},HSe={position:"relative"},zSe=t=>{var O,B,M,z,P;const{isAdvanceView:e,isPreview:n,emitSocketData:r,isRenderView:i}=Zt(),{data:a,path:s,pageIndex:l,sectionIndex:c,rowIndex:u,columnIndex:d,section:f,row:h,page:m}=t,g=F.useRef(null),{removeColumn:v,addColumn:A,cloneColumn:w,formBuilderFormLayout:x,handleDrop:S}=on(),[{isDragging:E},C]=Qi({type:ms,item:{type:ms,uuid:a==null?void 0:a.uuid,children:a.children,path:s},collect:j=>({isDragging:j.isDragging()})}),_=E&&!i?.25:1;C(g);const T=(j,de,he,te,G,ae,Y)=>o.jsx(qc,{page:m,column:a,type:"field",row:h,section:f,field:j,data:j,path:de,pageIndex:he,sectionIndex:te,rowIndex:G,columnIndex:ae,fieldIndex:Y},`component-${s}-${j==null?void 0:j.uuid}`),N=(j,de,he,te,G)=>{var ie,J,Q,se;const ae=j.collapsed?"pi pi-chevron-down":"pi pi-chevron-up",Y=`${j.className} justify-content-space-between`,pe=`${j.titleClassName} pl-1 text-primary`;return o.jsxs(o.Fragment,{children:[o.jsx(rn,{target:".clone-tool"}),o.jsx(rn,{target:".add-column-tool"}),o.jsxs("div",{className:Y,children:[o.jsxs("span",{ref:n===!1?g:null,children:[o.jsx("button",{className:j.togglerClassName,children:o.jsx("span",{className:"pi pi-sliders-h dragabble"})}),o.jsxs("button",{className:j.togglerClassName,onClick:j.onTogglerClick,children:[o.jsx("span",{className:ae}),o.jsx(Qt,{})]}),o.jsx("span",{className:pe,children:"Column"})]}),n===!1&&o.jsxs("div",{className:"p-panel-icons",children:[o.jsx("span",{className:"add-column-tool","data-pr-tooltip":"Add Column",children:o.jsxs("button",{className:j.togglerClassName,onClick:()=>{A(de,he,te),r()},children:[o.jsx("span",{className:"pi pi-plus"}),o.jsx(Qt,{})]})}),((se=(Q=(J=(ie=x[de])==null?void 0:ie.children[he])==null?void 0:J.children[te])==null?void 0:Q.children)==null?void 0:se.length)>1&&o.jsxs("button",{className:j.togglerClassName,onClick:()=>{v(de,he,te,G),r()},children:[o.jsx("span",{className:"pi pi-trash"}),o.jsx(Qt,{})]}),o.jsx("span",{className:"clone-tool","data-pr-tooltip":"Clone",children:o.jsxs("button",{className:j.togglerClassName,onClick:()=>{w(a,de,he,te,G),r()},children:[o.jsx("span",{className:"pi pi-clone"}),o.jsx(Qt,{})]})})]})]})]})};return o.jsx("div",{style:e?{...HSe,opacity:_}:{},className:i?"form-builder-column container-column":"draggable form-builder-column container-column",children:n===!1?o.jsx(o.Fragment,{children:e===!0?o.jsxs(li,{className:"builder-row-column",header:"Column",toggleable:!0,headerTemplate:j=>N(j,l,c,u,d),children:[((O=a==null?void 0:a.children)==null?void 0:O.length)>0?(B=a==null?void 0:a.children)==null?void 0:B.map((j,de)=>{const he=`${s}-${de}`;return o.jsxs(F.Fragment,{children:[o.jsx(Tr,{isAdvanceView:e,fieldDropArea:!0,data:{path:he,childrenCount:a.children.length,droppedField:a},onDrop:S}),T(j,he,l,c,u,d,de)]},he)}):o.jsxs("span",{className:"pt-4 text-center text-primary",style:{display:"block",zIndex:-1,width:"99%"},children:["Please drop the element from the sidebar below",o.jsx("p",{children:o.jsx("i",{className:"pi pi-arrow-down py-2",style:{fontSize:"2em"}})})]}),o.jsx(Tr,{isAdvanceView:e,fieldDropArea:!0,data:{path:`${s}-${a.children.length}`,childrenCount:a.children.length,droppedField:a},onDrop:S,isLast:!0})]}):o.jsx(o.Fragment,{children:o.jsxs("div",{children:[((M=a==null?void 0:a.children)==null?void 0:M.length)>0?(z=a==null?void 0:a.children)==null?void 0:z.map((j,de)=>{const he=`${s}-${de}`;return o.jsxs(F.Fragment,{children:[o.jsx(Tr,{isAdvanceView:e,fieldDropArea:!0,data:{path:he,childrenCount:a.children.length,droppedField:a},onDrop:S}),T(j,he,l,c,u,d,de)]},he)}):o.jsx(o.Fragment,{children:o.jsxs("span",{className:"pt-4 text-center text-primary",style:{display:"block",zIndex:-1,width:"99%"},children:["Please drop the element from the sidebar below",o.jsx("p",{children:o.jsx("i",{className:"pi pi-arrow-down py-2",style:{fontSize:"2em"}})})]})}),o.jsx(Tr,{isAdvanceView:e,dropHereLastField:!0,fieldDropArea:!0,data:{path:`${s}-${a.children.length}`,childrenCount:a.children.length,droppedField:a},onDrop:S,isLast:!0})]})})}):o.jsx(o.Fragment,{children:(P=a==null?void 0:a.children)==null?void 0:P.map((j,de)=>{const he=`${s}-${de}`;return o.jsx(F.Fragment,{children:T(j,he,l,c,u,d,de)},he)})})})},YSe={},KSe=t=>{var be,Ce,Te,ye,Ae,re,U,Z,K,ue,Ee,ge,me,Le,Oe,ve;const{data:e,path:n,pageIndex:r,sectionIndex:i,rowIndex:a,section:s,page:l}=t,{isRenderView:c,isAdvanceView:u,isAdmin:d,isPreview:f,emitSocketData:h,renderType:m}=Zt(),g=F.useRef(null),{removeRow:v,addRow:A,cloneRow:w,formBuilderFormLayout:x,userSelectedLanguage:S,handleDrop:E}=on(),{userTaskSubmitFormData:C,taskRegisterData:_,updateTaskRegisterData:T,updateTaskProgressValue:N,addUserDataFormSectionRepeatableData:O,removeUserDataFormSectionRepeatableData:B,task_status:M,TASK_PUBLISHED:z}=br(),[P,j]=F.useState(!1),[{isDragging:de},he]=Qi({type:bo,item:{type:bo,uuid:e.uuid,children:e.children,path:n,data:e},collect:V=>({isDragging:V.isDragging()})}),te=de?.25:1;he(g);const G=(V,ne,X,oe,fe,we)=>o.jsx(zSe,{page:l,row:e,section:s,data:V,path:ne,pageIndex:X,sectionIndex:oe,rowIndex:fe,columnIndex:we,isAdmin:d,emitSocketData:h},`column-${n}-${V.uuid}`),ae=(V,ne,X,oe)=>{var $e,ct,Nt,at;const fe=V.collapsed?"pi pi-chevron-down":"pi pi-chevron-up",we=`${V.className} justify-content-space-between`,De=`${V.titleClassName} pl-1 text-primary`;return o.jsxs(o.Fragment,{children:[o.jsx(rn,{target:".clone-tool"}),o.jsx(rn,{target:".setting-tool"}),o.jsx(rn,{target:".add-row-tool"}),o.jsxs("div",{className:we,children:[o.jsxs("span",{ref:f===!1?g:null,children:[o.jsx("button",{className:V.togglerClassName,children:o.jsx("span",{className:"pi pi-sliders-h dragabble"})}),o.jsxs("button",{className:V.togglerClassName,onClick:V.onTogglerClick,children:[o.jsx("span",{className:fe}),o.jsx(Qt,{})]}),o.jsxs("span",{className:De,children:["Row:"," ",(($e=e==null?void 0:e.heading)==null?void 0:$e[S==null?void 0:S.type])!==""?(ct=e==null?void 0:e.heading)==null?void 0:ct[S==null?void 0:S.type]:"Untitled"]})]}),f===!1&&o.jsxs("div",{className:"p-panel-icons",children:[o.jsx("span",{className:"add-row-tool","data-pr-tooltip":"Add Row",children:o.jsxs("button",{className:V.togglerClassName,onClick:()=>{A(ne,X),h()},children:[o.jsx("span",{className:"pi pi-plus"}),o.jsx(Qt,{})]})}),((at=(Nt=x[ne])==null?void 0:Nt.children[X])==null?void 0:at.children.length)>1&&o.jsxs("button",{className:V.togglerClassName,onClick:()=>{v(ne,X,oe),h()},children:[o.jsx("span",{className:"pi pi-trash"}),o.jsx(Qt,{})]}),o.jsx("span",{className:"clone-tool","data-pr-tooltip":"Clone",children:o.jsxs("button",{className:V.togglerClassName,onClick:()=>{w(e,ne,X,oe),h()},children:[o.jsx("span",{className:"pi pi-clone"}),o.jsx(Qt,{})]})}),o.jsx("span",{className:"setting-tool","data-pr-tooltip":"Settings",children:o.jsxs("button",{onClick:()=>j(!0),className:V.togglerClassName,children:[o.jsx("span",{className:"pi pi-cog"}),o.jsx(Qt,{})]})})]})]})]})},Y=Et.findIndex(C,function(V){return(V==null?void 0:V.rowId)===(e==null?void 0:e.uuid)}),pe=()=>{var X,oe,fe;const V=Et.cloneDeep(_);((oe=(X=C[Y])==null?void 0:X.repeatableFieldsData)==null?void 0:oe.length)>=(e==null?void 0:e.minimumEntries)?V[e==null?void 0:e.uuid]=(fe=C[Y])==null?void 0:fe.repeatableFields:delete V[e==null?void 0:e.uuid];const ne=Object.keys(V).length;T(V),N(ne)},ie=(be=e==null?void 0:e.repeatableFields)==null?void 0:be.map(V=>{var ne;return{fieldUuid:V==null?void 0:V.uuid,field:V==null?void 0:V.uuid,header:(ne=V==null?void 0:V.label)==null?void 0:ne.english}}),J=ie==null?void 0:ie.map(V=>o.jsx(fr,{field:V.field,header:V.header,body:ne=>o.jsx(o.Fragment,{children:o.jsx("div",{className:"post__content_repetable",dangerouslySetInnerHTML:{__html:ne[V==null?void 0:V.field]}})})},V.field)),Q=()=>{var oe;const V=[...C],ne=[];let X=!0;e:for(const[,fe]of e.children.entries()){for(const[,we]of fe.children.entries())if(console.log("field.isValid",we.isValid),we!=null&&we.isPostField&&we.isValid!==1){const De={fieldId:we.uuid,rowIndex:a};console.log("inValidData",De),ne.push(De),Gt.emit("OnInvalidFieldCatch",De),X=!1;break e}X=!0}X&&(ne==null?void 0:ne.length)===0&&(O(e==null?void 0:e.uuid,(oe=V[Y])==null?void 0:oe.repeatableFields),Gt.emit("clearRepeatableFields",e==null?void 0:e.uuid),pe())},se=V=>o.jsx(o.Fragment,{children:o.jsx(kt,{text:!0,type:"button",className:"p-button-danger ",onClick:()=>{B(e==null?void 0:e.uuid,V==null?void 0:V.rowIndex),setTimeout(()=>{pe()},1e3)},icon:"pi pi-trash"})});return o.jsxs("div",{style:{...YSe,opacity:te,marginTop:`${(Ce=e==null?void 0:e.margin)==null?void 0:Ce.top}px`,marginBottom:`${(Te=e==null?void 0:e.margin)==null?void 0:Te.bottom}px`,marginLeft:`${(ye=e==null?void 0:e.margin)==null?void 0:ye.left}px`,marginRight:`${(Ae=e==null?void 0:e.margin)==null?void 0:Ae.right}px`},className:c?"row container-row":"draggable row container-row",children:[P&&o.jsx(Dg,{renderType:m,visibilty:P,setVisibility:j,row:e,pageIndex:r,sectionIndex:i,rowIndex:a,emitSocketData:h},"row_settings_"+r+i+a),m===hm&&o.jsxs("div",{className:"form-builder-columns",children:[e.children.map((V,ne)=>{const X=`${n}-${ne}`;return o.jsxs(F.Fragment,{children:[m===Y1&&o.jsx(Tr,{isAdvanceView:u,data:{path:X,childrenCount:e.children.length},onDrop:E,className:"horizontalDrag"}),G(V,X,r,i,a,ne)]},X)}),o.jsx(Tr,{isAdvanceView:u,data:{path:`${n}-${e.children.length}`,childrenCount:e.children.length},onDrop:E,className:"horizontalDrag",isLast:!0})]}),(m===H1||m===F0||m===fm||m===N9||m===ep)&&(f===!1?o.jsx(o.Fragment,{children:u===!0?o.jsx(li,{header:"Row",toggleable:!0,headerTemplate:V=>ae(V,r,i,a),children:o.jsxs("div",{className:"form-builder-columns",style:{overflowX:"auto"},children:[(re=e==null?void 0:e.children)==null?void 0:re.map((V,ne)=>{const X=`${n}-${ne}`;return o.jsxs(F.Fragment,{children:[o.jsx(Tr,{isAdvanceView:u,data:{path:X,childrenCount:e.children.length},onDrop:E,className:"horizontalDrag"}),G(V,X,r,i,a,ne)]},X)}),o.jsx(Tr,{isAdvanceView:u,data:{path:`${n}-${e.children.length}`,childrenCount:e.children.length},onDrop:E,className:"horizontalDrag",isLast:!0})]})}):o.jsx(o.Fragment,{children:o.jsx("div",{className:u?"form-builder-columns":"",style:u?{overflowX:"auto"}:{},children:(U=e==null?void 0:e.children)==null?void 0:U.map((V,ne)=>{const X=`${n}-${ne}`;return o.jsx(F.Fragment,{children:G(V,X,r,i,a,ne)},X)})})})}):o.jsx(o.Fragment,{children:!(e!=null&&e.rowIsRepeatable&&M===z)&&o.jsxs(o.Fragment,{children:[o.jsx("h5",{children:(Z=e==null?void 0:e.heading)==null?void 0:Z[S==null?void 0:S.type]}),o.jsx("span",{children:(K=e==null?void 0:e.subHeadingText)==null?void 0:K[S==null?void 0:S.type]}),o.jsx("div",{className:"form-builder-columns",children:e.children.map((V,ne)=>{const X=`${n}-${ne}`;return o.jsx(F.Fragment,{children:G(V,X,r,i,a,ne)},X)})})]})})),m===z1&&(f===!1?o.jsxs("div",{children:[o.jsx("span",{className:"row-setting-block-pdf-editor",children:o.jsxs("div",{className:"pdf-setting-container",children:[o.jsxs("button",{onClick:()=>{A(r,i),h()},children:[o.jsx("span",{className:"pi pi-plus"}),o.jsx(Qt,{})]}),((Ee=(ue=x[r])==null?void 0:ue.children[i])==null?void 0:Ee.children.length)>1&&o.jsxs("button",{onClick:()=>{v(r,i,a),h()},children:[o.jsx("span",{className:"pi pi-trash"}),o.jsx(Qt,{})]}),o.jsxs("button",{onClick:()=>{w(e,r,i,a),h()},children:[o.jsx("span",{className:"pi pi-clone"}),o.jsx(Qt,{})]}),o.jsxs("button",{onClick:()=>j(!0),children:[o.jsx("span",{className:"pi pi-cog"}),o.jsx(Qt,{})]})]})}),o.jsx("div",{className:"form-builder-columns",children:(ge=e==null?void 0:e.children)==null?void 0:ge.map((V,ne)=>{const X=`${n}-${ne}`;return o.jsx(F.Fragment,{children:G(V,X,r,i,a,ne)},X)})})]}):o.jsx(o.Fragment,{children:!(e!=null&&e.rowIsRepeatable&&M===z)&&o.jsxs(o.Fragment,{children:[o.jsx("h5",{children:(me=e==null?void 0:e.heading)==null?void 0:me[S==null?void 0:S.type]}),o.jsx("span",{children:(Le=e==null?void 0:e.subHeadingText)==null?void 0:Le[S==null?void 0:S.type]}),o.jsx("div",{className:"form-builder-columns",children:e.children.map((V,ne)=>{const X=`${n}-${ne}`;return o.jsx(F.Fragment,{children:G(V,X,r,i,a,ne)},X)})})]})})),m===Y1&&o.jsx("div",{className:"form-builder-columns",children:e.children.map((V,ne)=>{const X=`${n}-${ne}`;return o.jsx(F.Fragment,{children:G(V,X,r,i,a,ne)},X)})}),(e==null?void 0:e.rowIsRepeatable)&&M!==z&&o.jsx(kt,{text:!0,type:"button",className:"p-button-success mb-3",onClick:()=>Q(),label:(Oe=e.addToListButtonLabel)==null?void 0:Oe[S==null?void 0:S.type]}),(e==null?void 0:e.rowIsRepeatable)&&o.jsxs("div",{className:"card",children:[o.jsxs(Hs,{value:(C==null?void 0:C.length)>0?(ve=C[Y])==null?void 0:ve.repeatableFieldsData:[],children:[J,M!==z&&o.jsx(fr,{style:{width:"10%"},headerStyle:{textAlign:"center"},bodyStyle:{textAlign:"left",overflow:"visible"},body:V=>se(V)})]}),d&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(Ni,{field:e})]})]})]})},XSe=t=>{var he,te,G,ae,Y,pe,ie,J;const{isAdvanceView:e,isPreview:n,renderType:r,emitSocketData:i}=Zt(),{handleDrop:a}=on(),{data:s,path:l,pageIndex:c,sectionIndex:u,section:d,page:f}=t,{removeSection:h,addSection:m,cloneSection:g,formBuilderFormLayout:v,userSelectedLanguage:A}=on(),[w,x]=F.useState(!1),[S,E]=F.useState(!1),[C,_]=F.useState({reusable_template_schema:""}),[T,N]=F.useState(!1),O=F.useRef(null),B=(Q,se)=>{_(be=>({...be,[Q]:se}))},[{isDragging:M},z]=Qi({type:ta,item:{type:ta,uuid:s.uuid,children:s.children,path:l},collect:Q=>({isDragging:Q.isDragging()})}),P=M?.25:1;z(O);const j=(Q,se,be,Ce,Te)=>o.jsx(KSe,{page:f,section:d,data:Q,path:se,pageIndex:be,sectionIndex:Ce,rowIndex:Te},`row-${l}-${Q.uuid}`),de=(Q,se,be)=>{var Ae,re;const Ce=Q.collapsed?"pi pi-chevron-down":"pi pi-chevron-up",Te=`${Q.className} justify-content-space-between panel-tab-section`,ye=`${Q.titleClassName} pl-1 text-primary`;return o.jsxs("div",{className:Te,children:[o.jsxs("span",{ref:n===!1?O:null,children:[o.jsx("button",{className:Q.togglerClassName,children:o.jsx("span",{className:"pi pi-sliders-h dragabble"})}),o.jsxs("button",{className:Q.togglerClassName,onClick:Q.onTogglerClick,children:[o.jsx("span",{className:Ce}),o.jsx(Qt,{})]}),o.jsxs("span",{className:ye,children:[be+1," ",(Ae=s==null?void 0:s.heading)==null?void 0:Ae[A==null?void 0:A.type]]})]}),n===!1&&o.jsxs(o.Fragment,{children:[o.jsx(rn,{target:".clone-tool"}),o.jsx(rn,{target:".del-tool"}),o.jsx(rn,{target:".setting-tool"}),o.jsx(rn,{target:".add-section-tool"}),o.jsx(rn,{target:".save-tool"}),o.jsx(rn,{target:".settings-tool"}),o.jsxs("div",{className:"p-panel-icons",children:[o.jsx("span",{className:"add-section-tool","data-pr-tooltip":"Add Section",children:o.jsxs("button",{className:Q.togglerClassName,onClick:()=>{m(se),i()},children:[o.jsx("span",{className:"pi pi-plus"}),o.jsx(Qt,{})]})}),((re=v[se])==null?void 0:re.children.length)>1&&o.jsx("span",{className:"del-tool","data-pr-tooltip":"Delete",children:o.jsxs("button",{className:Q.togglerClassName,onClick:()=>{h(se,be),i()},children:[o.jsx("span",{className:"pi pi-trash"}),o.jsx(Qt,{})]})}),o.jsx("span",{className:"save-tool","data-pr-tooltip":"Save",children:o.jsxs("button",{className:Q.togglerClassName,onClick:()=>{B("reusable_template_schema",s),E(!0)},children:[o.jsx("span",{className:"pi pi-save"}),o.jsx(Qt,{})]})}),o.jsx("span",{className:"clone-tool","data-pr-tooltip":"Clone",children:o.jsxs("button",{className:Q.togglerClassName,onClick:()=>{g(s,se,be),i()},children:[o.jsx("span",{className:"pi pi-clone"}),o.jsx(Qt,{})]})}),o.jsx("span",{className:"settings-tool","data-pr-tooltip":"Settings",children:o.jsxs("button",{className:Q.togglerClassName,onClick:()=>x(!0),children:[o.jsx("span",{className:"pi pi-cog"}),o.jsx(Qt,{})]})})]})]})]})};return o.jsxs("div",{style:{opacity:P,marginBottom:20},className:e?"draggable row":"",children:[n===!1&&o.jsx(Oh,{saveBuilderElementModalData:C,setSaveBuilderElementModalData:_,saveElementModal:S,setSaveElementModal:E}),w===!0&&o.jsx(Dh,{renderType:r,visibilty:w,setVisibility:x,section:s,pageIndex:c,sectionIndex:u,emitSocketData:i},"section_settings_"+c+u),n===!1?o.jsx(o.Fragment,{children:e===!0?o.jsxs(li,{header:(he=s==null?void 0:s.heading)==null?void 0:he.english,toggleable:!0,headerTemplate:Q=>de(Q,c,u),onMouseEnter:()=>N(!0),onMouseLeave:()=>N(!1),children:[((te=s==null?void 0:s.subHeadingText)==null?void 0:te[A==null?void 0:A.type])&&o.jsx("p",{children:(G=s==null?void 0:s.subHeadingText)==null?void 0:G[A==null?void 0:A.type]}),o.jsxs("div",{children:[s.children.map((Q,se)=>{const be=`${l}-${se}`;return o.jsxs(F.Fragment,{children:[o.jsx(Tr,{isAdvanceView:e,data:{path:be,childrenCount:s.children.length},onDrop:a}),j(Q,be,c,u,se)]},be)}),o.jsx(Tr,{isAdvanceView:e,data:{path:`${l}-${s.children.length}`,childrenCount:s.children.length,droppedField:s},onDrop:a,isLast:!0})]}),T&&o.jsxs("div",{className:"m-3 flex justify-content-end",children:[o.jsx("span",{className:"add-section-tool ","data-pr-tooltip":"Add Section",children:o.jsx("i",{className:"pi pi-plus",onClick:()=>{m(c),i()},children:o.jsx(Qt,{})})}),((ae=v[c])==null?void 0:ae.children.length)>1&&o.jsx("span",{className:"del-tool ml-2",children:o.jsx("i",{className:"pi pi-trash","data-pr-tooltip":"Delete",onClick:()=>{h(c,u),i()},children:o.jsx(Qt,{})})})]})]}):o.jsxs(o.Fragment,{children:[((Y=s==null?void 0:s.subHeadingText)==null?void 0:Y[A==null?void 0:A.type])&&o.jsx("p",{children:(pe=s==null?void 0:s.subHeadingText)==null?void 0:pe[A==null?void 0:A.type]}),o.jsx("div",{children:s.children.map((Q,se)=>{const be=`${l}-${se}`;return o.jsx(F.Fragment,{children:j(Q,be,c,u,se)},be)})})]})}):o.jsx(o.Fragment,{children:o.jsxs("div",{className:"",children:[(s==null?void 0:s.showSectionHeader)&&o.jsxs(o.Fragment,{children:[o.jsx("h4",{children:(ie=s==null?void 0:s.heading)==null?void 0:ie[A==null?void 0:A.type]}),o.jsx("p",{children:(J=s==null?void 0:s.subHeadingText)==null?void 0:J[A==null?void 0:A.type]}),o.jsx("hr",{})]}),s.children.map((Q,se)=>{const be=`${l}-${se}`;return o.jsx(F.Fragment,{children:o.jsx("div",{className:"",children:j(Q,be,c,u,se)},be)},be)})]})})]})},RSe=t=>{var s;const{data:e,currentPath:n,pageIndex:r,page:i}=t,a=F.useRef(null);return o.jsx(o.Fragment,{children:o.jsxs(sw,{ref:a,modules:[AV,Bve],spaceBetween:50,slidesPerView:1,navigation:{prevEl:".prev",nextEl:".next"},pagination:{clickable:!1},scrollbar:{el:".swiper-scrollbar",draggable:!1},onSwiper:l=>console.log(l),onSlideChange:()=>console.log("slide change"),children:[(s=e==null?void 0:e.children)==null?void 0:s.map((l,c)=>{var u;return(u=l==null?void 0:l.children)==null?void 0:u.map((d,f)=>{var h;return(h=d==null?void 0:d.children)==null?void 0:h.map((m,g)=>{var v;return(v=m==null?void 0:m.children)==null?void 0:v.map((A,w)=>{const x=`${n}-${c}-${f}-${g}-${w}`;return o.jsx(ow,{children:o.jsx("div",{className:"",children:o.jsx(qc,{page:i,column:m,type:"field",row:d,section:l,field:A,data:A,path:x,pageIndex:r,sectionIndex:c,rowIndex:f,columnIndex:g,fieldIndex:w},`component-${x}-${A==null?void 0:A.uuid}`)})},`swiper_slide_${x}`)})})})}),o.jsxs("div",{className:"flex justify-content-center",children:[o.jsx(kt,{className:"mr-2 p-button-info prev",size:"large",label:"Previous",icon:"pi pi-arrow-left",onClick:()=>{}}),o.jsx(kt,{size:"large",className:"p-button-info next",icon:"pi pi-arrow-right",label:"Next"})]})]})})},GSe=t=>{const{isAdvanceView:e,isRenderView:n,isPreview:r}=Zt(),{handleDrop:i}=on(),{data:a,path:s,pageIndex:l}=t,{formBuilderFormSchema:c}=on(),u=F.useRef(null),[{},d]=Qi({type:ta,item:{type:ta,uuid:a.uuid,children:a.children,path:s},collect:h=>({isDragging:h.isDragging()})});d(u);const f=(h,m,g,v)=>o.jsx(XSe,{data:h,section:h,path:m,page:a,pageIndex:g,sectionIndex:v},`section_${g}_${v}`);return o.jsx("div",{style:{overflowX:"auto"},className:`${n?"":"draggable page-css p-3 pb-4"}`,"data-image-src":a==null?void 0:a.bgImage,"data-bg-color":`#${a==null?void 0:a.bgColor}`,children:r===!1?o.jsxs(o.Fragment,{children:[a.children.map((h,m)=>{const g=`${s}-${m}`;return o.jsxs(F.Fragment,{children:[o.jsx(Tr,{isAdvanceView:e,data:{path:g,childrenCount:a.children.length},onDrop:i}),f(h,g,l,m)]},`section-${m}-${h.uuid}`)}),o.jsx(Tr,{isAdvanceView:e,data:{path:`${s}-${a.children.length}`,childrenCount:a.children.length,droppedField:a},onDrop:i,isLast:!0})]}):o.jsx(o.Fragment,{children:(c==null?void 0:c.surveyQuestionSlide)===!0?o.jsx(o.Fragment,{children:o.jsx(RSe,{page:a,data:a,currentPath:s,pageIndex:l})}):o.jsx("div",{className:"p-1",children:a.children.map((h,m)=>{const g=`${s}-${m}`;return o.jsx(F.Fragment,{children:((h==null?void 0:h.isHidden)===!1||!r)&&f(h,g,l,m)},`section-${m}-${h.uuid}`)})})})})},WSe=()=>{const[t,e]=F.useState(!1),{isAdvanceView:n,isPreview:r,emitSocketData:i}=Zt(),[a,s]=F.useState(!1),[l,c]=F.useState(0),{removePage:u,userSelectedLanguage:d,formBuilderFormLayout:f,formBuilderFormLayout:h,clonePage:m}=on(),g=(v,A,w)=>o.jsx(GSe,{data:v,path:A,pageIndex:w},`page-${v.uuid}`);return o.jsx(o.Fragment,{children:o.jsx("div",{className:"page",children:(h==null?void 0:h.length)===F9&&r===!0?o.jsx(o.Fragment,{children:(h==null?void 0:h.length)&&h.map((v,A)=>{const w=`${A}`;return o.jsx("div",{children:g(v,w,A)},`${v.uuid}-${A}`)})}):o.jsx(o.Fragment,{children:n===!0||r===!0?o.jsx(Ya,{activeIndex:l,onTabChange:v=>c(v.index),children:(h==null?void 0:h.length)&&h.map((v,A)=>{const w=`${A}`;return o.jsxs(hr,{disabled:!((v==null?void 0:v.isHidden)===!1||!r),header:"Page",headerTemplate:x=>o.jsx(q7,{options:x,pageIndex:A,page:v,isPreview:r,setTabSidebarSetting:s,clonePage:m,emitSocketData:i,formBuilderFormLayout:f,userSelectedLanguage:d,removePage:u,setPageActiveIndex:c,pages:h}),children:[r===!1&&o.jsx(Tf,{reusableBuilderElementModalVisibility:t,setReusableBuilderElementModalVisibility:e,pageIndex:A}),o.jsx(R0,{setVisibility:s,visibilty:a,pageIndex:A,page:v,emitSocketData:i}),g(v,w,A)]},`${v.uuid}-${A}`)})}):o.jsx(o.Fragment,{children:(h==null?void 0:h.length)>0&&(h==null?void 0:h.map((v,A)=>{const w=`${A}`;return o.jsxs(F.Fragment,{children:[r===!1&&o.jsx(Tf,{reusableBuilderElementModalVisibility:t,setReusableBuilderElementModalVisibility:e,pageIndex:A}),o.jsx(R0,{setVisibility:s,visibilty:a,pageIndex:A,page:v,emitSocketData:i}),g(v,w,A)]},`${v.uuid}-${A}`)}))})})})})},QSe={position:"relative"},JSe=t=>{var S,E,C;const{data:e,path:n,pageIndex:r,sectionIndex:i,rowIndex:a,columnIndex:s,section:l,row:c,page:u}=t,d=F.useRef(null),{handleDrop:f}=on(),{isPreview:h,isRenderView:m,isAdvanceView:g}=Zt(),[{isDragging:v},A]=Qi({type:ms,item:{type:ms,uuid:e==null?void 0:e.uuid,children:e.children,path:n},collect:_=>({isDragging:_.isDragging()})}),w=v&&!m?.25:1;A(d);const x=(_,T,N,O,B,M,z)=>o.jsx(qc,{page:u,type:"field",row:c,section:l,field:_,data:_,path:T,pageIndex:N,sectionIndex:O,rowIndex:B,columnIndex:M,fieldIndex:z},`component-${n}-${_==null?void 0:_.uuid}`);return o.jsx("div",{style:g?{...QSe,opacity:w}:{},className:m?"form-builder-column container-column":"draggable form-builder-column container-column",children:h===!1?o.jsxs("div",{className:"builder-row-column",children:[((S=e==null?void 0:e.children)==null?void 0:S.length)>0?(E=e==null?void 0:e.children)==null?void 0:E.map((_,T)=>{const N=`${n}-${T}`;return o.jsxs(F.Fragment,{children:[o.jsx(Tr,{isAdvanceView:g,data:{path:N,childrenCount:e.children.length,droppedField:e},onDrop:f}),x(_,N,r,i,a,s,T)]},N)}):o.jsxs("span",{className:"pt-4 text-center text-primary",style:{display:"block"},children:["Please drop the element from the sidebar below",o.jsx("p",{children:o.jsx("i",{className:"pi pi-arrow-down py-2",style:{fontSize:"2em"}})})]}),o.jsx(Tr,{isAdvanceView:!0,data:{path:`${n}-${e.children.length}`,childrenCount:e.children.length,droppedField:e},isLast:!0,onDrop:f})]}):o.jsx(o.Fragment,{children:(C=e==null?void 0:e.children)==null?void 0:C.map((_,T)=>{const N=`${n}-${T}`;return o.jsx(F.Fragment,{children:x(_,N,r,i,a,s,T)},N)})})})},ZSe={},exe=t=>{var N,O,B,M,z,P,j,de,he;const{data:e,path:n,pageIndex:r,sectionIndex:i,rowIndex:a,section:s,page:l}=t,c=F.useRef(null),{removeRow:u,addRow:d,cloneRow:f,formBuilderFormLayout:h,userSelectedLanguage:m}=on(),{isPreview:g,isRenderView:v}=Zt(),{task_status:A,TASK_PUBLISHED:w}=br(),[x,S]=F.useState(!1),[{isDragging:E},C]=Qi({type:bo,item:{type:bo,uuid:e.uuid,children:e.children,path:n,data:e},collect:te=>({isDragging:te.isDragging()})}),_=E?.25:1;C(c);const T=(te,G,ae,Y,pe,ie)=>o.jsx(JSe,{page:l,row:e,section:s,data:te,path:G,pageIndex:ae,sectionIndex:Y,rowIndex:pe,columnIndex:ie},`column-${n}-${te.uuid}`);return o.jsxs("div",{style:{...ZSe,opacity:_,marginTop:`${(N=e==null?void 0:e.margin)==null?void 0:N.top}px`,marginBottom:`${(O=e==null?void 0:e.margin)==null?void 0:O.bottom}px`,marginLeft:`${(B=e==null?void 0:e.margin)==null?void 0:B.left}px`,marginRight:`${(M=e==null?void 0:e.margin)==null?void 0:M.right}px`},className:v?"row container-row":"draggable row container-row",children:[x&&o.jsx(Dg,{visibilty:x,setVisibility:S,row:e,pageIndex:r,sectionIndex:i,rowIndex:a},"row_settings_"+r+i+a),g===!1?o.jsxs("div",{children:[o.jsx("span",{className:"row-setting-block-pdf-editor",children:o.jsxs("div",{className:"pdf-setting-container",children:[o.jsxs("button",{onClick:()=>{d(r,i)},children:[o.jsx("span",{className:"pi pi-plus"}),o.jsx(Qt,{})]}),((P=(z=h[r])==null?void 0:z.children[i])==null?void 0:P.children.length)>1&&o.jsxs("button",{onClick:()=>{u(r,i,a)},children:[o.jsx("span",{className:"pi pi-trash"}),o.jsx(Qt,{})]}),o.jsxs("button",{onClick:()=>{f(e,r,i,a)},children:[o.jsx("span",{className:"pi pi-clone"}),o.jsx(Qt,{})]}),o.jsxs("button",{onClick:()=>S(!0),children:[o.jsx("span",{className:"pi pi-cog"}),o.jsx(Qt,{})]})]})}),o.jsx("div",{className:"form-builder-columns",children:(j=e==null?void 0:e.children)==null?void 0:j.map((te,G)=>{const ae=`${n}-${G}`;return o.jsx(F.Fragment,{children:T(te,ae,r,i,a,G)},ae)})})]}):o.jsx(o.Fragment,{children:!(e!=null&&e.rowIsRepeatable&&A===w)&&o.jsxs(o.Fragment,{children:[o.jsx("h5",{children:(de=e==null?void 0:e.heading)==null?void 0:de[m==null?void 0:m.type]}),o.jsx("span",{children:(he=e==null?void 0:e.subHeadingText)==null?void 0:he[m==null?void 0:m.type]}),o.jsx("div",{className:"form-builder-columns",children:e.children.map((te,G)=>{const ae=`${n}-${G}`;return o.jsx(F.Fragment,{children:T(te,ae,r,i,a,G)},ae)})})]})})]})},txe=t=>{var C,_,T;const{data:e,path:n,pageIndex:r,sectionIndex:i,section:a,page:s}=t,{userSelectedLanguage:l}=on(),{isPreview:c,isAdvanceView:u}=Zt(),[d,f]=F.useState(!1),[h,m]=F.useState(!1),[g,v]=F.useState(null),A=F.useRef(null),[{isDragging:w},x]=Qi({type:ta,item:{type:ta,uuid:e.uuid,children:e.children,path:n},collect:N=>({isDragging:N.isDragging()})}),S=w?.25:1;x(A);const E=(N,O,B,M,z)=>o.jsx(exe,{page:s,section:a,data:N,path:O,pageIndex:B,sectionIndex:M,rowIndex:z},`row-${n}-${N.uuid}`);return o.jsxs("div",{style:{opacity:S,marginBottom:20},className:u?"draggable row":"",children:[c===!1&&o.jsx(Oh,{saveBuilderElementModalData:g,setSaveBuilderElementModalData:v,saveElementModal:h,setSaveElementModal:m}),d===!0&&o.jsx(Dh,{visibilty:d,setVisibility:f,section:e,pageIndex:r,sectionIndex:i},"section_settings_"+r+i),c===!1?o.jsx("div",{children:o.jsx("div",{children:e.children.map((N,O)=>{const B=`${n}-${O}`;return o.jsx(F.Fragment,{children:E(N,B,r,i,O)},B)})})}):o.jsx(o.Fragment,{children:o.jsxs("div",{children:[(e==null?void 0:e.showSectionHeader)&&o.jsxs(o.Fragment,{children:[o.jsx("h4",{children:(C=e==null?void 0:e.heading)==null?void 0:C[l==null?void 0:l.type]}),((_=e==null?void 0:e.subHeadingText)==null?void 0:_[l==null?void 0:l.type])&&o.jsx("p",{children:(T=e==null?void 0:e.subHeadingText)==null?void 0:T[l==null?void 0:l.type]}),o.jsx("hr",{})]}),e.children.map((N,O)=>{const B=`${n}-${O}`;return o.jsx(F.Fragment,{children:o.jsx("div",{className:"",children:E(N,B,r,i,O)},B)},B)})]})})]})},_5={},D5={height:"1280px",width:"100%"},nxe=t=>{var f,h,m,g;const{data:e,path:n,pageIndex:r}=t,{isPreview:i,isRenderView:a}=Zt(),s=F.useRef(null),[{isDragging:l},c]=Qi({type:ta,item:{type:ta,uuid:e.uuid,children:e.children,path:n},collect:v=>({isDragging:v.isDragging()})}),u=l?0:1;c(s);const d=(v,A,w,x)=>o.jsx(txe,{data:v,section:v,path:A,page:e,pageIndex:w,sectionIndex:x},`section_${w}_${x}`);return o.jsx("div",{style:{overflowX:"auto"},className:`${a?"":"draggable page-css p-3 pb-4"}`,"data-image-src":e==null?void 0:e.bgImage,"data-bg-color":`#${e==null?void 0:e.bgColor}`,children:o.jsx("div",{className:"pdf flex justify-content-center",children:i===!1?o.jsx("div",{id:e==null?void 0:e.uuid,className:"page-block ",style:(e==null?void 0:e.bgType)==="image"?{..._5,...D5,opacity:u,backgroundImage:`url("${e==null?void 0:e.bgImage}")`}:{..._5,...D5,opacity:u,backgroundColor:`#${e==null?void 0:e.bgColor}`},children:((e==null?void 0:e.isCoverPage)===!1||(e==null?void 0:e.isCoverPage)===void 0)&&o.jsx(o.Fragment,{children:e.children.map((v,A)=>{const w=`${n}-${A}`;return o.jsx(F.Fragment,{children:d(v,w,r,A)},`section-${A}-${v.uuid}`)})})}):o.jsx(o.Fragment,{children:o.jsx("div",{className:"page-block",style:(e==null?void 0:e.bgType)==="image"?{..._5,...D5,opacity:u,backgroundImage:`url("${e==null?void 0:e.bgImage}")`,backgroundSize:"cover"}:{..._5,...D5,opacity:u,backgroundColor:`#${e==null?void 0:e.bgColor}`},children:o.jsx("div",{style:{marginTop:`${(f=e==null?void 0:e.margin)==null?void 0:f.top}px`,marginBottom:`${(h=e==null?void 0:e.margin)==null?void 0:h.bottom}px`,marginLeft:`${(m=e==null?void 0:e.margin)==null?void 0:m.left}px`,marginRight:`${(g=e==null?void 0:e.margin)==null?void 0:g.right}px`},children:e.children.map((v,A)=>{const w=`${n}-${A}`;return o.jsx(F.Fragment,{children:((v==null?void 0:v.isHidden)===!1||!i)&&d(v,w,r,A)},`section-${A}-${v.uuid}`)})})})})})})},rxe=()=>{const{isPreview:t}=Zt(),[e,n]=F.useState(!1),[r,i]=F.useState(0),[a,s]=F.useState(!1),{formBuilderFormLayout:l}=on(),c=(u,d,f)=>o.jsx(nxe,{data:u,path:d,pageIndex:f},`page-${u.uuid}`);return o.jsx("div",{className:"page",children:(l==null?void 0:l.length)===F9&&t===!0?o.jsx(o.Fragment,{children:(l==null?void 0:l.length)&&l.map((u,d)=>{const f=`${d}`;return o.jsx("div",{className:"scroll-height-400",children:c(u,f,d)},`${u.uuid}-${d}`)})}):o.jsx(o.Fragment,{children:t===!1?o.jsx(Ya,{activeIndex:r,onTabChange:u=>i(u.index),children:(l==null?void 0:l.length)&&l.map((u,d)=>{const f=`${d}`;if((u==null?void 0:u.isHidden)===!1||!t)return o.jsxs(hr,{header:"Page",headerTemplate:h=>o.jsx(q7,{options:h,pageIndex:d,page:u,setTabSidebarSetting:n,setPageActiveIndex:i,pages:l}),children:[t===!1&&o.jsx(Tf,{reusableBuilderElementModalVisibility:a,setReusableBuilderElementModalVisibility:s,pageIndex:d}),o.jsxs("div",{className:"p-3",children:[o.jsx(R0,{setVisibility:n,visibilty:e,pageIndex:d,page:u}),o.jsx("div",{children:c(u,f,d)})]})]},`${u.uuid}-${d}`)})}):o.jsx("div",{className:"",children:(l==null?void 0:l.length)&&l.map((u,d)=>{var h;const f=`${d}`;if((u==null?void 0:u.isHidden)===!1||!t)return o.jsxs("section",{id:u==null?void 0:u.uuid,"data-nav-title":(h=u==null?void 0:u.title)==null?void 0:h.english,"data-scrollspy":!0,children:[t===!1&&o.jsx(Tf,{reusableBuilderElementModalVisibility:a,setReusableBuilderElementModalVisibility:s,pageIndex:d}),o.jsxs("div",{className:"p-3",children:[o.jsx(R0,{setVisibility:n,visibilty:e,pageIndex:d,page:u}),o.jsx("div",{children:c(u,f,d)})]})]},`${u.uuid}-${d}`)})})})})},ixe=t=>{var w,x,S,E;const e=F.useRef(null),{removeColumn:n,addColumn:r,cloneColumn:i,formBuilderFormLayout:a}=on(),{isPreview:s,emitSocketData:l}=Zt(),{options:c,pageIndex:u,sectionIndex:d,rowIndex:f,columnIndex:h,data:m}=t,g=c.collapsed?"pi pi-chevron-down":"pi pi-chevron-up",v=`${c.className} justify-content-space-between`,A=`${c.titleClassName} pl-1 text-primary`;return o.jsxs(o.Fragment,{children:[o.jsx(rn,{target:".clone-tool"}),o.jsx(rn,{target:".add-column-tool"}),o.jsxs("div",{className:v,children:[o.jsxs("span",{ref:s===!1?e:null,children:[o.jsx("button",{className:c.togglerClassName,children:o.jsx("span",{className:"pi pi-sliders-h dragabble"})}),o.jsxs("button",{className:c.togglerClassName,onClick:c.onTogglerClick,children:[o.jsx("span",{className:g}),o.jsx(Qt,{})]}),o.jsx("span",{className:A,children:"Column"})]}),s===!1&&o.jsxs("div",{className:"p-panel-icons",children:[o.jsx("span",{className:"add-column-tool","data-pr-tooltip":"Add Column",children:o.jsxs("button",{className:c.togglerClassName,onClick:()=>{r(u,d,f),l()},children:[o.jsx("span",{className:"pi pi-plus"}),o.jsx(Qt,{})]})}),((E=(S=(x=(w=a[u])==null?void 0:w.children[d])==null?void 0:x.children[f])==null?void 0:S.children)==null?void 0:E.length)>1&&o.jsxs("button",{className:c.togglerClassName,onClick:()=>{n(u,d,f,h),l()},children:[o.jsx("span",{className:"pi pi-trash"}),o.jsx(Qt,{})]}),o.jsx("span",{className:"clone-tool","data-pr-tooltip":"Clone",children:o.jsxs("button",{className:c.togglerClassName,onClick:()=>{i(m,u,d,f,h),l()},children:[o.jsx("span",{className:"pi pi-clone"}),o.jsx(Qt,{})]})})]})]})]})},axe={position:"relative"},sxe=t=>{var S,E,C,_,T;const{isAdvanceView:e,isRenderView:n,isPreview:r}=Zt(),{handleDrop:i}=on(),{data:a,path:s,pageIndex:l,sectionIndex:c,rowIndex:u,columnIndex:d,section:f,row:h,page:m}=t,g=F.useRef(null),[{isDragging:v},A]=Qi({type:ms,item:{type:ms,uuid:a==null?void 0:a.uuid,children:a.children,path:s},collect:N=>({isDragging:N.isDragging()})}),w=v&&!n?.25:1;A(g);const x=(N,O,B,M,z,P,j)=>o.jsx(qc,{page:m,column:a,type:"field",row:h,section:f,field:N,data:N,path:O,pageIndex:B,sectionIndex:M,rowIndex:z,columnIndex:P,fieldIndex:j},`component-${s}-${N==null?void 0:N.uuid}`);return o.jsx("div",{style:e?{...axe,opacity:w}:{},className:n?"form-builder-column container-column":"draggable form-builder-column container-column",children:r===!1?o.jsx(o.Fragment,{children:e===!0?o.jsxs(li,{className:"builder-row-column",header:"Column",toggleable:!0,headerTemplate:N=>o.jsx(ixe,{options:N,pageIndex:l,sectionIndex:c,rowIndex:u,data:a,columnIndex:d}),children:[((S=a==null?void 0:a.children)==null?void 0:S.length)>0?(E=a==null?void 0:a.children)==null?void 0:E.map((N,O)=>{const B=`${s}-${O}`;return o.jsxs(F.Fragment,{children:[o.jsx(Tr,{isAdvanceView:e,fieldDropArea:!0,data:{path:B,childrenCount:a.children.length,droppedField:a},onDrop:i}),x(N,B,l,c,u,d,O)]},B)}):o.jsxs("span",{className:"pt-4 text-center text-primary",style:{display:"block",zIndex:-1,width:"99%"},children:["Please drop the element from the sidebar below",o.jsx("p",{children:o.jsx("i",{className:"pi pi-arrow-down py-2",style:{fontSize:"2em"}})})]}),o.jsx(Tr,{isAdvanceView:e,fieldDropArea:!0,data:{path:`${s}-${a.children.length}`,childrenCount:a.children.length,droppedField:a},onDrop:i,isLast:!0})]}):o.jsx(o.Fragment,{children:o.jsxs("div",{children:[((C=a==null?void 0:a.children)==null?void 0:C.length)>0?(_=a==null?void 0:a.children)==null?void 0:_.map((N,O)=>{const B=`${s}-${O}`;return o.jsxs(F.Fragment,{children:[o.jsx(Tr,{isAdvanceView:e,fieldDropArea:!0,data:{path:B,childrenCount:a.children.length,droppedField:a},onDrop:i}),x(N,B,l,c,u,d,O)]},B)}):o.jsx(o.Fragment,{children:o.jsxs("span",{className:"pt-4 text-center text-primary",style:{display:"block",zIndex:-1,width:"99%"},children:["Please drop the element from the sidebar below",o.jsx("p",{children:o.jsx("i",{className:"pi pi-arrow-down py-2",style:{fontSize:"2em"}})})]})}),o.jsx(Tr,{isAdvanceView:e,dropHereLastField:!0,fieldDropArea:!0,data:{path:`${s}-${a.children.length}`,childrenCount:a.children.length,droppedField:a},onDrop:i,isLast:!0})]})})}):o.jsx(o.Fragment,{children:(T=a==null?void 0:a.children)==null?void 0:T.map((N,O)=>{const B=`${s}-${O}`;return o.jsx(F.Fragment,{children:x(N,B,l,c,u,d,O)},B)})})})},oxe=t=>{var x,S,E,C;const{options:e,pageIndex:n,sectionIndex:r,rowIndex:i,data:a}=t,[,s]=F.useState(!1),l=F.useRef(null),{isPreview:c,emitSocketData:u}=Zt(),{removeRow:d,addRow:f,cloneRow:h,formBuilderFormLayout:m,userSelectedLanguage:g}=on(),v=e!=null&&e.collapsed?"pi pi-chevron-down":"pi pi-chevron-up",A=`${e==null?void 0:e.className} justify-content-space-between`,w=`${e==null?void 0:e.titleClassName} pl-1 text-primary`;return o.jsxs(o.Fragment,{children:[o.jsx(rn,{target:".clone-tool"}),o.jsx(rn,{target:".setting-tool"}),o.jsx(rn,{target:".add-row-tool"}),o.jsxs("div",{className:A,children:[o.jsxs("span",{ref:c===!1?l:null,children:[o.jsx("button",{className:e==null?void 0:e.togglerClassName,children:o.jsx("span",{className:"pi pi-sliders-h dragabble"})}),o.jsxs("button",{className:e==null?void 0:e.togglerClassName,onClick:e==null?void 0:e.onTogglerClick,children:[o.jsx("span",{className:v}),o.jsx(Qt,{})]}),o.jsxs("span",{className:w,children:["Row:"," ",((x=a==null?void 0:a.heading)==null?void 0:x[g==null?void 0:g.type])!==""?(S=a==null?void 0:a.heading)==null?void 0:S[g==null?void 0:g.type]:"Untitled"]})]}),c===!1&&o.jsxs("div",{className:"p-panel-icons",children:[o.jsx("span",{className:"add-row-tool","data-pr-tooltip":"Add Row",children:o.jsxs("button",{className:e==null?void 0:e.togglerClassName,onClick:()=>{f(n,r),u()},children:[o.jsx("span",{className:"pi pi-plus"}),o.jsx(Qt,{})]})}),((C=(E=m[n])==null?void 0:E.children[r])==null?void 0:C.children.length)>1&&o.jsxs("button",{className:e==null?void 0:e.togglerClassName,onClick:()=>{d(n,r,i),u()},children:[o.jsx("span",{className:"pi pi-trash"}),o.jsx(Qt,{})]}),o.jsx("span",{className:"clone-tool","data-pr-tooltip":"Clone",children:o.jsxs("button",{className:e==null?void 0:e.togglerClassName,onClick:()=>{h(a,n,r,i),u()},children:[o.jsx("span",{className:"pi pi-clone"}),o.jsx(Qt,{})]})}),o.jsx("span",{className:"setting-tool","data-pr-tooltip":"Settings",children:o.jsxs("button",{onClick:()=>s(!0),className:e==null?void 0:e.togglerClassName,children:[o.jsx("span",{className:"pi pi-cog"}),o.jsx(Qt,{})]})})]})]})]})},lxe={},cxe=t=>{var pe,ie,J,Q,se,be,Ce,Te,ye,Ae,re;const{isAdvanceView:e,isRenderView:n,isPreview:r,isAdmin:i,renderType:a,emitSocketData:s}=Zt(),{handleDrop:l}=on(),{data:c,path:u,pageIndex:d,sectionIndex:f,rowIndex:h,section:m,page:g}=t,v=F.useRef(null),{userSelectedLanguage:A}=on(),{userTaskSubmitFormData:w,taskRegisterData:x,updateTaskRegisterData:S,updateTaskProgressValue:E,addUserDataFormSectionRepeatableData:C,removeUserDataFormSectionRepeatableData:_,task_status:T,TASK_PUBLISHED:N}=br(),[O,B]=F.useState(!1),[{isDragging:M},z]=Qi({type:bo,item:{type:bo,uuid:c.uuid,children:c.children,path:u,data:c},collect:U=>({isDragging:U.isDragging()})}),P=M?.25:1;z(v);const j=(U,Z,K,ue,Ee,ge)=>o.jsx(sxe,{page:g,row:c,section:m,data:U,path:Z,pageIndex:K,sectionIndex:ue,rowIndex:Ee,columnIndex:ge,emitSocketData:s},`column-${u}-${U.uuid}`),de=Et.findIndex(w,function(U){return(U==null?void 0:U.rowId)===(c==null?void 0:c.uuid)}),he=()=>{var K,ue,Ee;const U=Et.cloneDeep(x);((ue=(K=w[de])==null?void 0:K.repeatableFieldsData)==null?void 0:ue.length)>=(c==null?void 0:c.minimumEntries)?U[c==null?void 0:c.uuid]=(Ee=w[de])==null?void 0:Ee.repeatableFields:delete U[c==null?void 0:c.uuid];const Z=Object.keys(U).length;S(U),E(Z)},te=(pe=c==null?void 0:c.repeatableFields)==null?void 0:pe.map(U=>{var Z;return{fieldUuid:U==null?void 0:U.uuid,field:U==null?void 0:U.uuid,header:(Z=U==null?void 0:U.label)==null?void 0:Z.english}}),G=te==null?void 0:te.map(U=>o.jsx(fr,{field:U.field,header:U.header,body:Z=>o.jsx(o.Fragment,{children:o.jsx("div",{className:"post__content_repetable",dangerouslySetInnerHTML:{__html:Z[U==null?void 0:U.field]}})})},U.field)),ae=()=>{var ue;const U=[...w],Z=[];let K=!0;e:for(const[,Ee]of c.children.entries()){for(const[,ge]of Ee.children.entries())if(console.log("field.isValid",ge.isValid),ge!=null&&ge.isPostField&&ge.isValid!==1){const me={fieldId:ge.uuid,rowIndex:h};console.log("inValidData",me),Z.push(me),Gt.emit("OnInvalidFieldCatch",me),K=!1;break e}K=!0}K&&(Z==null?void 0:Z.length)===0&&(C(c==null?void 0:c.uuid,(ue=U[de])==null?void 0:ue.repeatableFields),Gt.emit("clearRepeatableFields",c==null?void 0:c.uuid),he())},Y=U=>o.jsx(o.Fragment,{children:o.jsx(kt,{text:!0,type:"button",className:"p-button-danger ",onClick:()=>{_(c==null?void 0:c.uuid,U==null?void 0:U.rowIndex),setTimeout(()=>{he()},1e3)},icon:"pi pi-trash"})});return o.jsxs("div",{style:{...lxe,opacity:P,marginTop:`${(ie=c==null?void 0:c.margin)==null?void 0:ie.top}px`,marginBottom:`${(J=c==null?void 0:c.margin)==null?void 0:J.bottom}px`,marginLeft:`${(Q=c==null?void 0:c.margin)==null?void 0:Q.left}px`,marginRight:`${(se=c==null?void 0:c.margin)==null?void 0:se.right}px`},className:n?"row container-row":"draggable row container-row",children:[O&&o.jsx(Dg,{renderType:a,visibilty:O,setVisibility:B,row:c,pageIndex:d,sectionIndex:f,rowIndex:h,emitSocketData:s},"row_settings_"+d+f+h),r===!1?o.jsx(o.Fragment,{children:e===!0?o.jsx(li,{header:"Row",toggleable:!0,headerTemplate:U=>o.jsx(oxe,{options:U,pageIndex:d,sectionIndex:f,rowIndex:h,data:c}),children:o.jsxs("div",{className:"form-builder-columns",style:{overflowX:"auto"},children:[(be=c==null?void 0:c.children)==null?void 0:be.map((U,Z)=>{const K=`${u}-${Z}`;return o.jsxs(F.Fragment,{children:[o.jsx(Tr,{isAdvanceView:e,data:{path:K,childrenCount:c.children.length},onDrop:l,className:"horizontalDrag"}),j(U,K,d,f,h,Z)]},K)}),o.jsx(Tr,{isAdvanceView:e,data:{path:`${u}-${c.children.length}`,childrenCount:c.children.length},onDrop:l,className:"horizontalDrag",isLast:!0})]})}):o.jsx(o.Fragment,{children:o.jsx("div",{className:e?"form-builder-columns":"",style:e?{overflowX:"auto"}:{},children:(Ce=c==null?void 0:c.children)==null?void 0:Ce.map((U,Z)=>{const K=`${u}-${Z}`;return o.jsx(F.Fragment,{children:j(U,K,d,f,h,Z)},K)})})})}):o.jsx(o.Fragment,{children:!(c!=null&&c.rowIsRepeatable&&T===N)&&o.jsxs(o.Fragment,{children:[o.jsx("h5",{children:(Te=c==null?void 0:c.heading)==null?void 0:Te[A==null?void 0:A.type]}),o.jsx("span",{children:(ye=c==null?void 0:c.subHeadingText)==null?void 0:ye[A==null?void 0:A.type]}),o.jsx("div",{className:"form-builder-columns",children:c.children.map((U,Z)=>{const K=`${u}-${Z}`;return o.jsx(F.Fragment,{children:j(U,K,d,f,h,Z)},K)})})]})}),(c==null?void 0:c.rowIsRepeatable)&&T!==N&&o.jsx(kt,{text:!0,type:"button",className:"p-button-success mb-3",onClick:()=>ae(),label:(Ae=c.addToListButtonLabel)==null?void 0:Ae[A==null?void 0:A.type]}),(c==null?void 0:c.rowIsRepeatable)&&o.jsxs("div",{className:"card",children:[o.jsxs(Hs,{value:(w==null?void 0:w.length)>0?(re=w[de])==null?void 0:re.repeatableFieldsData:[],children:[G,T!==N&&o.jsx(fr,{style:{width:"10%"},headerStyle:{textAlign:"center"},bodyStyle:{textAlign:"left",overflow:"visible"},body:U=>Y(U)})]}),i&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(Ni,{field:c})]})]})]})},uxe=t=>{var he,te,G,ae,Y,pe,ie,J;const{isAdvanceView:e,isPreview:n,renderType:r,emitSocketData:i}=Zt(),{handleDrop:a}=on(),{data:s,path:l,pageIndex:c,sectionIndex:u,section:d,page:f}=t,{removeSection:h,addSection:m,cloneSection:g,formBuilderFormLayout:v,userSelectedLanguage:A}=on(),[w,x]=F.useState(!1),[S,E]=F.useState(!1),[C,_]=F.useState({reusable_template_schema:""}),[T,N]=F.useState(!1),O=F.useRef(null),B=(Q,se)=>{_(be=>({...be,[Q]:se}))},[{isDragging:M},z]=Qi({type:ta,item:{type:ta,uuid:s.uuid,children:s.children,path:l},collect:Q=>({isDragging:Q.isDragging()})}),P=M?.25:1;z(O);const j=(Q,se,be,Ce,Te)=>o.jsx(cxe,{page:f,section:d,data:Q,path:se,pageIndex:be,sectionIndex:Ce,rowIndex:Te,emitSocketData:i},`row-${l}-${Q.uuid}`),de=(Q,se,be)=>{var Ae,re;const Ce=Q.collapsed?"pi pi-chevron-down":"pi pi-chevron-up",Te=`${Q.className} justify-content-space-between panel-tab-section`,ye=`${Q.titleClassName} pl-1 text-primary`;return o.jsxs("div",{className:Te,children:[o.jsxs("span",{ref:n===!1?O:null,children:[o.jsx("button",{className:Q.togglerClassName,children:o.jsx("span",{className:"pi pi-sliders-h dragabble"})}),o.jsxs("button",{className:Q.togglerClassName,onClick:Q.onTogglerClick,children:[o.jsx("span",{className:Ce}),o.jsx(Qt,{})]}),o.jsxs("span",{className:ye,children:[be+1," ",(Ae=s==null?void 0:s.heading)==null?void 0:Ae[A==null?void 0:A.type]]})]}),n===!1&&o.jsxs(o.Fragment,{children:[o.jsx(rn,{target:".clone-tool"}),o.jsx(rn,{target:".del-tool"}),o.jsx(rn,{target:".setting-tool"}),o.jsx(rn,{target:".add-section-tool"}),o.jsx(rn,{target:".save-tool"}),o.jsx(rn,{target:".settings-tool"}),o.jsxs("div",{className:"p-panel-icons",children:[o.jsx("span",{className:"add-section-tool","data-pr-tooltip":"Add Section",children:o.jsxs("button",{className:Q.togglerClassName,onClick:()=>{m(se),i()},children:[o.jsx("span",{className:"pi pi-plus"}),o.jsx(Qt,{})]})}),((re=v[se])==null?void 0:re.children.length)>1&&o.jsx("span",{className:"del-tool","data-pr-tooltip":"Delete",children:o.jsxs("button",{className:Q.togglerClassName,onClick:()=>{h(se,be),i()},children:[o.jsx("span",{className:"pi pi-trash"}),o.jsx(Qt,{})]})}),o.jsx("span",{className:"save-tool","data-pr-tooltip":"Save",children:o.jsxs("button",{className:Q.togglerClassName,onClick:()=>{B("reusable_template_schema",s),E(!0)},children:[o.jsx("span",{className:"pi pi-save"}),o.jsx(Qt,{})]})}),o.jsx("span",{className:"clone-tool","data-pr-tooltip":"Clone",children:o.jsxs("button",{className:Q.togglerClassName,onClick:()=>{g(s,se,be),i()},children:[o.jsx("span",{className:"pi pi-clone"}),o.jsx(Qt,{})]})}),o.jsx("span",{className:"settings-tool","data-pr-tooltip":"Settings",children:o.jsxs("button",{className:Q.togglerClassName,onClick:()=>x(!0),children:[o.jsx("span",{className:"pi pi-cog"}),o.jsx(Qt,{})]})})]})]})]})};return o.jsxs("div",{style:{opacity:P,marginBottom:20},className:e?"draggable row":"",children:[n===!1&&o.jsx(Oh,{saveBuilderElementModalData:C,setSaveBuilderElementModalData:_,saveElementModal:S,setSaveElementModal:E}),w===!0&&o.jsx(Dh,{renderType:r,visibilty:w,setVisibility:x,section:s,pageIndex:c,sectionIndex:u,emitSocketData:i},"section_settings_"+c+u),n===!1?o.jsx(o.Fragment,{children:e===!0?o.jsxs(li,{header:(he=s==null?void 0:s.heading)==null?void 0:he.english,toggleable:!0,headerTemplate:Q=>de(Q,c,u),onMouseEnter:()=>N(!0),onMouseLeave:()=>N(!1),children:[((te=s==null?void 0:s.subHeadingText)==null?void 0:te[A==null?void 0:A.type])&&o.jsx("p",{children:(G=s==null?void 0:s.subHeadingText)==null?void 0:G[A==null?void 0:A.type]}),o.jsxs("div",{children:[s.children.map((Q,se)=>{const be=`${l}-${se}`;return o.jsxs(F.Fragment,{children:[o.jsx(Tr,{isAdvanceView:e,data:{path:be,childrenCount:s.children.length},onDrop:a}),j(Q,be,c,u,se)]},be)}),o.jsx(Tr,{isAdvanceView:e,data:{path:`${l}-${s.children.length}`,childrenCount:s.children.length,droppedField:s},onDrop:a,isLast:!0})]}),T&&o.jsxs("div",{className:"m-3 flex justify-content-end",children:[o.jsx("span",{className:"add-section-tool ","data-pr-tooltip":"Add Section",children:o.jsx("i",{className:"pi pi-plus",onClick:()=>{m(c),i()},children:o.jsx(Qt,{})})}),((ae=v[c])==null?void 0:ae.children.length)>1&&o.jsx("span",{className:"del-tool ml-2",children:o.jsx("i",{className:"pi pi-trash","data-pr-tooltip":"Delete",onClick:()=>{h(c,u),i()},children:o.jsx(Qt,{})})})]})]}):o.jsxs(o.Fragment,{children:[((Y=s==null?void 0:s.subHeadingText)==null?void 0:Y[A==null?void 0:A.type])&&o.jsx("p",{children:(pe=s==null?void 0:s.subHeadingText)==null?void 0:pe[A==null?void 0:A.type]}),o.jsx("div",{children:s.children.map((Q,se)=>{const be=`${l}-${se}`;return o.jsx(F.Fragment,{children:j(Q,be,c,u,se)},be)})})]})}):o.jsx(o.Fragment,{children:o.jsxs("div",{className:"",children:[(s==null?void 0:s.showSectionHeader)&&o.jsxs(o.Fragment,{children:[o.jsx("h4",{children:(ie=s==null?void 0:s.heading)==null?void 0:ie[A==null?void 0:A.type]}),o.jsx("p",{children:(J=s==null?void 0:s.subHeadingText)==null?void 0:J[A==null?void 0:A.type]}),o.jsx("hr",{})]}),s.children.map((Q,se)=>{const be=`${l}-${se}`;return o.jsx(F.Fragment,{children:o.jsx("div",{className:"",children:j(Q,be,c,u,se)},be)},be)})]})})]})},dxe={position:"relative"},fxe=t=>{var S,E,C;const{isAdvanceView:e,isRenderView:n,isPreview:r}=Zt(),{handleDrop:i}=on(),{data:a,path:s,pageIndex:l,sectionIndex:c,rowIndex:u,columnIndex:d,section:f,row:h,page:m}=t,g=F.useRef(null),[{isDragging:v},A]=Qi({type:ms,item:{type:ms,uuid:a==null?void 0:a.uuid,children:a.children,path:s},collect:_=>({isDragging:_.isDragging()})}),w=v&&!n?.25:1;A(g);const x=(_,T,N,O,B,M,z)=>o.jsx(qc,{page:m,type:"field",row:h,column:a,section:f,field:_,data:_,path:T,pageIndex:N,sectionIndex:O,rowIndex:B,columnIndex:M,fieldIndex:z},`component-${s}-${_==null?void 0:_.uuid}`);return o.jsx("div",{style:e?{...dxe,opacity:w}:{},className:n?"":"draggable column container-column",children:r===!1?o.jsx(o.Fragment,{children:o.jsxs("div",{children:[((S=a==null?void 0:a.children)==null?void 0:S.length)>0?(E=a==null?void 0:a.children)==null?void 0:E.map((_,T)=>{const N=`${s}-${T}`;return o.jsxs(F.Fragment,{children:[o.jsx(Tr,{isAdvanceView:e,fieldDropArea:!0,data:{path:N,childrenCount:a.children.length,droppedField:a},onDrop:i}),x(_,N,l,c,u,d,T)]},N)}):o.jsx(o.Fragment,{}),o.jsx(Tr,{isAdvanceView:e,dropHereLastField:!0,fieldDropArea:!0,data:{path:`${s}-${a.children.length}`,childrenCount:a.children.length,droppedField:a},onDrop:i,isLast:!0})]})}):o.jsx(o.Fragment,{children:(C=a==null?void 0:a.children)==null?void 0:C.map((_,T)=>{const N=`${s}-${T}`;return o.jsx(F.Fragment,{children:x(_,N,l,c,u,d,T)},N)})})})},hxe=t=>{var l;const{isAdvanceView:e}=Zt(),{data:n,page:r,currentPath:i,pageIndex:a}=t,s=(c,u,d,f,h,m,g,v)=>o.jsx(fxe,{page:r,row:v,section:g,data:c,path:`${d}-${f}-${h}-${m}`,pageIndex:d,sectionIndex:f,rowIndex:h,columnIndex:m},`column-${i}-${c.uuid}`);return o.jsx(o.Fragment,{children:(l=n==null?void 0:n.children)==null?void 0:l.map((c,u)=>{var d;return(d=c==null?void 0:c.children)==null?void 0:d.map((f,h)=>{var m;return o.jsx(o.Fragment,{children:o.jsx("div",{className:e?"columns":"",style:e?{overflowX:"auto"}:{},children:(m=f==null?void 0:f.children)==null?void 0:m.map((g,v)=>{const A=`${i}-${u}-${h}-${v}`;return o.jsx(F.Fragment,{children:s(g,A,a,u,h,v,c,f)},A)})})})})})})},pxe=t=>{const{data:e,path:n,pageIndex:r}=t,{isAdvanceView:i,isRenderView:a,isPreview:s}=Zt(),{formBuilderFormSchema:l,handleDrop:c}=on(),u=F.useRef(null),[{},d]=Qi({type:ta,item:{type:ta,uuid:e.uuid,children:e.children,path:n},collect:h=>({isDragging:h.isDragging()})});d(u);const f=(h,m,g,v)=>o.jsx(uxe,{data:h,section:h,path:m,page:e,pageIndex:g,sectionIndex:v},`section_${g}_${v}`);return o.jsx("div",{style:{overflowX:"auto"},className:`${a?"":"draggable page-css p-3 pb-4"}`,"data-image-src":e==null?void 0:e.bgImage,"data-bg-color":`#${e==null?void 0:e.bgColor}`,children:s===!1?o.jsx(o.Fragment,{children:i?o.jsxs(o.Fragment,{children:[e.children.map((h,m)=>{const g=`${n}-${m}`;return o.jsxs(F.Fragment,{children:[i===!0&&o.jsx(Tr,{isAdvanceView:i,data:{path:g,childrenCount:e.children.length},onDrop:c}),f(h,g,r,m)]},`section-${m}-${h.uuid}`)}),i===!0&&o.jsx(Tr,{isAdvanceView:i,data:{path:`${n}-${e.children.length}`,childrenCount:e.children.length,droppedField:e},onDrop:c,isLast:!0})]}):o.jsx(o.Fragment,{children:o.jsx(hxe,{page:e,data:e,path:n,pageIndex:r})})}):o.jsx(o.Fragment,{children:o.jsx("div",{className:"p-1",children:e.children.map((h,m)=>{const g=`${n}-${m}`;return o.jsx(F.Fragment,{children:l!=null&&l.showConditionalFields?o.jsx(o.Fragment,{children:o.jsx("div",{children:f(h,g,r,m)})}):((h==null?void 0:h.isHidden)===!1||!s)&&f(h,g,r,m)},`section-${m}-${h.uuid}`)})})})})},gxe=()=>{const[t,e]=F.useState(!1),{formBuilderFormLayout:n}=on(),{isPreview:r}=Zt(),i=()=>{},a=(s,l,c)=>o.jsx(pxe,{data:s,path:l,pageIndex:c},`page-${s.uuid}`);return o.jsx(o.Fragment,{children:o.jsx("div",{className:"page",children:o.jsx("div",{children:(n==null?void 0:n.length)&&n.map((s,l)=>{const c=`${l}`;if((s==null?void 0:s.isHidden)===!1||!r)return o.jsxs("div",{children:[o.jsx(R0,{setVisibility:e,visibilty:t,pageIndex:l,page:s,emitSocketData:i}),a(s,c,l)]},`policie-page-${l}`)})})})})},mxe={position:"relative"},vxe=t=>{var S;const{isPreview:e,isRenderView:n,isAdvanceView:r}=Zt(),{data:i,path:a,pageIndex:s,sectionIndex:l,rowIndex:c,columnIndex:u,section:d,row:f,page:h}=t,m=F.useRef(null),{handleDrop:g}=on(),[{isDragging:v},A]=Qi({type:ms,item:{type:ms,uuid:i==null?void 0:i.uuid,children:i.children,path:a},collect:E=>({isDragging:E.isDragging()})}),w=v&&!n?.25:1;A(m);const x=(E,C,_,T,N,O,B)=>o.jsx(qc,{page:h,type:"field",row:f,section:d,field:E,data:E,path:C,pageIndex:_,sectionIndex:T,rowIndex:N,columnIndex:O,fieldIndex:B},`component-${a}-${E==null?void 0:E.uuid}`);return o.jsx("div",{style:r?{...mxe,opacity:w}:{},className:n?"form-builder-column container-column":"draggable form-builder-column container-column",children:!e&&o.jsxs("div",{children:[(S=i==null?void 0:i.children)==null?void 0:S.map((E,C)=>{const _=`${a}-${C}`;return o.jsxs(F.Fragment,{children:[o.jsx(Tr,{fieldDropArea:!0,isAdvanceView:r,data:{path:_,childrenCount:i.children.length,droppedField:i},onDrop:g}),x(E,_,s,l,c,u,C)]},_)}),i.children.length===0&&o.jsx("p",{className:"text-center",children:"Add element by dragging and dropping element from the sidebar into the dropzone area"}),o.jsx(Tr,{fieldDropArea:!0,isAdvanceView:r,data:{path:`${a}-${i.children.length}`,childrenCount:i.children.length,droppedField:i},onDrop:g,isLast:!0})]})})},bxe={},yxe=t=>{var Y,pe,ie,J,Q,se,be;const{data:e,path:n,pageIndex:r,sectionIndex:i,rowIndex:a,section:s,page:l}=t,c=F.useRef(null),{userSelectedLanguage:u,handleDrop:d}=on(),{userTaskSubmitFormData:f,taskRegisterData:h,updateTaskRegisterData:m,updateTaskProgressValue:g,addUserDataFormSectionRepeatableData:v,removeUserDataFormSectionRepeatableData:A,task_status:w,TASK_PUBLISHED:x}=br(),{isRenderView:S,isAdmin:E,isAdvanceView:C,emitSocketData:_,renderType:T}=Zt(),[N,O]=F.useState(!1),[{isDragging:B},M]=Qi({type:bo,item:{type:bo,uuid:e.uuid,children:e.children,path:n,data:e},collect:Ce=>({isDragging:Ce.isDragging()})}),z=B?.25:1;M(c);const P=(Ce,Te,ye,Ae,re,U)=>o.jsx(vxe,{page:l,row:e,section:s,data:Ce,path:Te,pageIndex:ye,sectionIndex:Ae,rowIndex:re,columnIndex:U},`column-${n}-${Ce.uuid}`),j=Et.findIndex(f,function(Ce){return(Ce==null?void 0:Ce.rowId)===(e==null?void 0:e.uuid)}),de=()=>{var ye,Ae,re;const Ce=Et.cloneDeep(h);((Ae=(ye=f[j])==null?void 0:ye.repeatableFieldsData)==null?void 0:Ae.length)>=(e==null?void 0:e.minimumEntries)?Ce[e==null?void 0:e.uuid]=(re=f[j])==null?void 0:re.repeatableFields:delete Ce[e==null?void 0:e.uuid];const Te=Object.keys(Ce).length;m(Ce),g(Te)},he=(Y=e==null?void 0:e.repeatableFields)==null?void 0:Y.map(Ce=>{var Te;return{fieldUuid:Ce==null?void 0:Ce.uuid,field:Ce==null?void 0:Ce.uuid,header:(Te=Ce==null?void 0:Ce.label)==null?void 0:Te.english}}),te=he==null?void 0:he.map(Ce=>o.jsx(fr,{field:Ce.field,header:Ce.header,body:Te=>o.jsx(o.Fragment,{children:o.jsx("div",{className:"post__content_repetable",dangerouslySetInnerHTML:{__html:Te[Ce==null?void 0:Ce.field]}})})},Ce.field)),G=()=>{var Ae;const Ce=[...f],Te=[];let ye=!0;e:for(const[,re]of e.children.entries()){for(const[,U]of re.children.entries())if(console.log("field.isValid",U.isValid),U!=null&&U.isPostField&&U.isValid!==1){const Z={fieldId:U.uuid,rowIndex:a};console.log("inValidData",Z),Te.push(Z),Gt.emit("OnInvalidFieldCatch",Z),ye=!1;break e}ye=!0}ye&&(Te==null?void 0:Te.length)===0&&(v(e==null?void 0:e.uuid,(Ae=Ce[j])==null?void 0:Ae.repeatableFields),Gt.emit("clearRepeatableFields",e==null?void 0:e.uuid),de())},ae=Ce=>o.jsx(o.Fragment,{children:o.jsx(kt,{text:!0,type:"button",className:"p-button-danger ",onClick:()=>{A(e==null?void 0:e.uuid,Ce==null?void 0:Ce.rowIndex),setTimeout(()=>{de()},1e3)},icon:"pi pi-trash"})});return o.jsxs("div",{style:{...bxe,opacity:z,marginTop:`${(pe=e==null?void 0:e.margin)==null?void 0:pe.top}px`,marginBottom:`${(ie=e==null?void 0:e.margin)==null?void 0:ie.bottom}px`,marginLeft:`${(J=e==null?void 0:e.margin)==null?void 0:J.left}px`,marginRight:`${(Q=e==null?void 0:e.margin)==null?void 0:Q.right}px`},className:S?"row container-row":"draggable row container-row",children:[N&&o.jsx(Dg,{renderType:T,visibilty:N,setVisibility:O,row:e,pageIndex:r,sectionIndex:i,rowIndex:a,emitSocketData:_},"row_settings_"+r+i+a),o.jsxs("div",{className:"form-builder-columns",children:[e.children.map((Ce,Te)=>{const ye=`${n}-${Te}`;return o.jsxs(F.Fragment,{children:[T===Y1&&o.jsx(Tr,{isAdvanceView:C,data:{path:ye,childrenCount:e.children.length},onDrop:d,className:"horizontalDrag"}),P(Ce,ye,r,i,a,Te)]},ye)}),o.jsx(Tr,{isAdvanceView:C,data:{path:`${n}-${e.children.length}`,childrenCount:e.children.length},onDrop:d,className:"horizontalDrag",isLast:!0})]}),(e==null?void 0:e.rowIsRepeatable)&&w!==x&&o.jsx(kt,{text:!0,type:"button",className:"p-button-success mb-3",onClick:()=>G(),label:(se=e.addToListButtonLabel)==null?void 0:se[u==null?void 0:u.type]}),(e==null?void 0:e.rowIsRepeatable)&&o.jsxs("div",{className:"card",children:[o.jsxs(Hs,{value:(f==null?void 0:f.length)>0?(be=f[j])==null?void 0:be.repeatableFieldsData:[],children:[te,w!==x&&o.jsx(fr,{style:{width:"10%"},headerStyle:{textAlign:"center"},bodyStyle:{textAlign:"left",overflow:"visible"},body:Ce=>ae(Ce)})]}),E&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(Ni,{field:e})]})]})]})},Axe=t=>{var j,de;const{data:e,path:n,pageIndex:r,sectionIndex:i,section:a,page:s}=t,{removeSection:l,addSection:c,cloneSection:u,formBuilderFormLayout:d,userSelectedLanguage:f,handleDrop:h}=on(),{isPreview:m,isAdvanceView:g,renderType:v,emitSocketData:A}=Zt(),[w,x]=F.useState(!1),[S,E]=F.useState(!1),[C,_]=F.useState({reusable_template_schema:""}),T=F.useRef(null),N=(he,te)=>{_(G=>({...G,[he]:te}))},[{isDragging:O},B]=Qi({type:ta,item:{type:ta,uuid:e.uuid,children:e.children,path:n},collect:he=>({isDragging:he.isDragging()})}),M=O?.25:1;B(T);const z=(he,te,G,ae,Y)=>o.jsx(yxe,{page:s,section:a,data:he,path:te,pageIndex:G,sectionIndex:ae,rowIndex:Y},`row-${n}-${he.uuid}`),P=(he,te,G)=>{var ie,J;const ae=he.collapsed?"pi pi-chevron-down":"pi pi-chevron-up",Y=`${he.className} justify-content-space-between panel-tab-section`,pe=`${he.titleClassName} pl-1 text-primary`;return o.jsxs("div",{className:Y,children:[o.jsxs("span",{ref:m===!1?T:null,children:[o.jsx("button",{className:he.togglerClassName,children:o.jsx("span",{className:"pi pi-sliders-h dragabble"})}),o.jsxs("button",{className:he.togglerClassName,onClick:he.onTogglerClick,children:[o.jsx("span",{className:ae}),o.jsx(Qt,{})]}),o.jsxs("span",{className:pe,children:[G+1," ",(ie=e==null?void 0:e.heading)==null?void 0:ie[f==null?void 0:f.type]]})]}),m===!1&&o.jsxs(o.Fragment,{children:[o.jsx(rn,{target:".clone-tool"}),o.jsx(rn,{target:".del-tool"}),o.jsx(rn,{target:".setting-tool"}),o.jsx(rn,{target:".add-section-tool"}),o.jsx(rn,{target:".save-tool"}),o.jsx(rn,{target:".settings-tool"}),o.jsxs("div",{className:"p-panel-icons",children:[o.jsx("span",{className:"add-section-tool","data-pr-tooltip":"Add Section",children:o.jsxs("button",{className:he.togglerClassName,onClick:()=>{c(te),A()},children:[o.jsx("span",{className:"pi pi-plus"}),o.jsx(Qt,{})]})}),((J=d[te])==null?void 0:J.children.length)>1&&o.jsx("span",{className:"del-tool","data-pr-tooltip":"Delete",children:o.jsxs("button",{className:he.togglerClassName,onClick:()=>{l(te,G),A()},children:[o.jsx("span",{className:"pi pi-trash"}),o.jsx(Qt,{})]})}),o.jsx("span",{className:"save-tool","data-pr-tooltip":"Save",children:o.jsxs("button",{className:he.togglerClassName,onClick:()=>{N("reusable_template_schema",e),E(!0)},children:[o.jsx("span",{className:"pi pi-save"}),o.jsx(Qt,{})]})}),o.jsx("span",{className:"clone-tool","data-pr-tooltip":"Clone",children:o.jsxs("button",{className:he.togglerClassName,onClick:()=>{u(e,te,G),A()},children:[o.jsx("span",{className:"pi pi-clone"}),o.jsx(Qt,{})]})}),o.jsx("span",{className:"settings-tool","data-pr-tooltip":"Settings",children:o.jsxs("button",{className:he.togglerClassName,onClick:()=>x(!0),children:[o.jsx("span",{className:"pi pi-cog"}),o.jsx(Qt,{})]})})]})]})]})};return o.jsxs("div",{style:{opacity:M,marginBottom:20},className:g?"draggable row":"",children:[m===!1&&o.jsx(Oh,{saveBuilderElementModalData:C,setSaveBuilderElementModalData:_,saveElementModal:S,setSaveElementModal:E}),w===!0&&o.jsx(Dh,{renderType:v,visibilty:w,setVisibility:x,section:e,pageIndex:r,sectionIndex:i,emitSocketData:A},"section_settings_"+r+i),m===!1?o.jsxs(li,{className:"mb-5",header:(j=e==null?void 0:e.heading)==null?void 0:j.english,toggleable:!0,headerTemplate:he=>P(he,r,i),children:[o.jsx("p",{children:(de=e==null?void 0:e.subHeadingText)==null?void 0:de[f==null?void 0:f.type]}),o.jsxs("div",{className:"",children:[e.children.map((he,te)=>{const G=`${n}-${te}`;return o.jsx(F.Fragment,{children:z(he,G,r,i,te)},G)}),o.jsx(Tr,{isAdvanceView:g,data:{path:`${n}-${e.children.length}`,childrenCount:e.children.length},onDrop:h,className:"horizontalDrag",isLast:!0})]})]}):o.jsx(o.Fragment,{})]})},wxe=t=>{const{isRenderView:e,isPreview:n}=Zt(),{data:r,path:i,pageIndex:a}=t,s=F.useRef(null),[,l]=Qi({type:ta,item:{type:ta,uuid:r.uuid,children:r.children,path:i},collect:u=>({isDragging:u.isDragging()})});l(s);const c=(u,d,f,h)=>o.jsx(Axe,{data:u,section:u,path:d,pageIndex:f,sectionIndex:h,page:r},`section_${f}_${h}`);return o.jsx("div",{style:{overflowX:"auto"},className:`${e?"":"draggable page-css p-3 pb-4"}`,"data-image-src":r==null?void 0:r.bgImage,"data-bg-color":`#${r==null?void 0:r.bgColor}`,children:n?o.jsx(o.Fragment,{}):o.jsx("div",{className:"p-1",children:r.children.map((u,d)=>{const f=`${i}-${d}`;return o.jsx(F.Fragment,{children:c(u,f,a,d)},`section-${d}-${u.uuid}`)})})})},Sxe=()=>{const{formBuilderFormLayout:t}=on(),e=(n,r,i)=>o.jsx(wxe,{data:n,path:r,pageIndex:i},`page-${n.uuid}`);return o.jsx(o.Fragment,{children:o.jsx("div",{className:"page",children:(t==null?void 0:t.length)&&t.map((n,r)=>{const i=`${r}`;return o.jsx("div",{children:e(n,i,r)},`exam-page-${r}`)})})})},xxe=t=>{var _,T,N,O,B;const{userSelectedLanguage:e,formBuilderConfigurationType:n,builderTemplateName:r,formBuilderFormSchema:i}=on(),a=[{label:{english:"List main maintenance safety tips? "},componentType:"question",questionText:{french:"Quels sont les principaux conseils de sécurité pour la maintenance?? ",english:"List main maintenance safety tips? "},answerOptions:[],isHidden:!1,uuid:"rtest",options:[],underLined:!1,isAllowMultipleAnswer:!1,resizableColumns:!1,reorderableColumns:!1,timeLimit:0,score:0,subject_id:0,course_category_id:0,TextEditorProps:!1}],{questions:s}=t,[l,c]=F.useState(),[u,d]=F.useState([]),{media:f}=Zt(),h=(_=f==null?void 0:f.image)!=null&&_.MediaImage?(T=f==null?void 0:f.image)==null?void 0:T.MediaImage:o.jsx(o.Fragment,{}),m={assessment_id:"abc123",name:`${n==null?void 0:n.name} - ${r}`,label:"Quiz 1",quizConfiguration:{quizPassMark:75,quizTimeLimit:2,quizMaxAttempts:99,quizSequentialAnswer:0,isAllCorrectMandatory:!0,quizRandomiseQuestions:1,quizUniqueAnswersPerAttempt:"1"},quizElements:(s==null?void 0:s.length)>0?s:a},[g,v]=F.useState(0),[A,w]=F.useState(!1);function x(M,z){return(M==null?void 0:M.length)<=z?M:(M==null?void 0:M.slice(0,z))+"..."}F.useEffect(()=>{w(!0)},[]);const S=()=>{g!==0&&v(g-1)},E=()=>{if(m!=null&&m.quizElements&&g+1!==(m==null?void 0:m.quizElements.length))v(g+1);else if((m==null?void 0:m.quizElements.length)===g+1)return},C=(M,z)=>{let P=[...u];M.checked?P.push(z):P=P.filter(j=>(j==null?void 0:j[e==null?void 0:e.type])!==(z==null?void 0:z[e==null?void 0:e.type])),d(P)};return o.jsxs("div",{className:"scroll-height-200 mb-2",children:[A&&o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"grid",children:o.jsxs("div",{className:"col-12",children:[o.jsxs("h3",{children:[m==null?void 0:m.name," "]}),(N=m==null?void 0:m.quizElements)==null?void 0:N.map((M,z)=>{var P,j,de,he,te,G,ae,Y,pe;return(M==null?void 0:M.answerInputType)==="radio"?o.jsxs("div",{className:g===z?"card":" flex align-items-center p-field-radiobutton",children:[((P=M==null?void 0:M.questionTextImage)==null?void 0:P[e==null?void 0:e.type])&&((j=M==null?void 0:M.questionTextImage)==null?void 0:j[e==null?void 0:e.type])!==""&&o.jsx("div",{className:"text-center assessment_image_container",children:o.jsx(h,{mediaId:(de=M==null?void 0:M.questionTextImage)==null?void 0:de[e==null?void 0:e.type],style:{height:"100px",width:"100px",objectFit:"cover",borderRadius:100},className:"text-center",alt:"questionImage"})}),o.jsx("h3",{className:"mb-5",children:g===z&&((he=M==null?void 0:M.questionText)==null?void 0:he[e==null?void 0:e.type])}),g===z&&((te=M==null?void 0:M.answerOptions)==null?void 0:te.map((ie,J)=>{var Q,se,be,Ce;return o.jsxs("div",{className:"field-radiobutton",children:[o.jsx(Ji,{inputId:`${J}-preview`,value:ie==null?void 0:ie.answersText,checked:l===J,onChange:()=>{c(J)}}),((Q=ie.answersTextImage)==null?void 0:Q[e==null?void 0:e.type])&&((se=ie.answersTextImage)==null?void 0:se[e==null?void 0:e.type])!==""&&o.jsx(h,{mediaId:(be=ie.answersTextImage)==null?void 0:be[e==null?void 0:e.type],className:"mx-3",alt:"questionImage",style:{width:"50px",height:"50px",borderRadius:50}}),o.jsx("label",{htmlFor:`${J}-preview`,children:(Ce=ie.answersText)==null?void 0:Ce[e==null?void 0:e.type]})]},J)}))]},z):(M==null?void 0:M.answerInputType)==="checkbox"?o.jsxs("div",{className:g===z?"card":" flex align-items-center p-field-radiobutton",children:[o.jsx("h3",{className:"mb-5",children:g===z&&((G=M==null?void 0:M.questionText)==null?void 0:G[e==null?void 0:e.type])}),g===z&&((ae=M==null?void 0:M.answerOptions)==null?void 0:ae.map((ie,J)=>{var Q,se,be,Ce;return o.jsxs("div",{className:"field-radiobutton",children:[o.jsx(Nr,{inputId:J,value:ie==null?void 0:ie.answersText,onChange:Te=>{C(Te,ie==null?void 0:ie.answersText)},checked:u.some(Te=>{var ye;return(Te==null?void 0:Te[e==null?void 0:e.type])===((ye=ie==null?void 0:ie.answersText)==null?void 0:ye[e==null?void 0:e.type])})}),((Q=ie.answersTextImage)==null?void 0:Q[e==null?void 0:e.type])&&((se=ie.answersTextImage)==null?void 0:se[e==null?void 0:e.type])!==""&&o.jsx(h,{mediaId:(be=ie.answersTextImage)==null?void 0:be[e==null?void 0:e.type],className:"mx-3",alt:"questionImage",style:{width:"50px",height:"50px",borderRadius:50}}),o.jsx("label",{htmlFor:J,children:(Ce=ie.answersText)==null?void 0:Ce[e==null?void 0:e.type]})]},J)}))]},z):o.jsxs("div",{className:g===z?"card":"",children:[o.jsx("h3",{className:"mb-5",children:g===z&&((Y=M==null?void 0:M.questionText)==null?void 0:Y[e==null?void 0:e.type])}),g===z&&((pe=M==null?void 0:M.answerOptions)==null?void 0:pe.map((ie,J)=>{var Q,se,be,Ce;return o.jsxs("div",{className:"field-radiobutton",children:[o.jsx(Ji,{inputId:J,value:ie==null?void 0:ie.answersText,onChange:()=>{}}),((Q=ie.answersTextImage)==null?void 0:Q[e==null?void 0:e.type])&&((se=ie.answersTextImage)==null?void 0:se[e==null?void 0:e.type])!==""&&o.jsx(h,{mediaId:(be=ie.answersTextImage)==null?void 0:be[e==null?void 0:e.type],className:"mx-3",alt:"questionImage",style:{width:"50px",height:"50px",borderRadius:50}}),o.jsx("label",{htmlFor:J,children:(Ce=ie.answersText)==null?void 0:Ce[e==null?void 0:e.type]})]},J)}))]},z)})]})}),o.jsxs("div",{className:"text-center my-5",children:[o.jsxs("div",{className:"mb-1",children:["Viewing:"," ",g+1+"/"+(m==null?void 0:m.quizElements.length)]}),o.jsx("br",{}),g>0&&o.jsx(kt,{text:!0,className:"mx-2",label:"Previous",onClick:()=>S()}),o.jsx(kt,{text:!0,label:(m==null?void 0:m.quizElements.length)===g+1?"Finish":"Next",onClick:()=>E()})]})]}),o.jsxs("div",{className:"surface-card p-4 shadow-2 border-round",children:[o.jsx("div",{className:"font-medium text-3xl text-900 mb-3",children:"Summary"}),o.jsx("div",{className:"text-500 mb-5",children:`${n==null?void 0:n.name} - ${r}`}),o.jsxs("ul",{className:"list-none p-0 m-0 border-top-1 surface-border",children:[o.jsxs("li",{className:"flex align-items-center py-3 px-2 flex-wrap surface-ground",children:[o.jsx("div",{className:"text-500 w-full md:w-3 font-medium",children:"Total Questions:"}),o.jsx("div",{className:"text-900 w-full md:w-9",children:(O=m==null?void 0:m.quizElements)==null?void 0:O.length})]}),o.jsxs("li",{className:"flex align-items-center py-3 px-2 flex-wrap",children:[o.jsx("div",{className:"text-500 w-full md:w-3 font-medium",children:"Has Maximum Number of questions:"}),o.jsxs("div",{className:"text-900 w-full md:w-9 line-height-3",children:[i==null?void 0:i.noOfAssessmentQuestions," "]})]}),o.jsxs("li",{className:"flex align-items-center py-3 px-2 flex-wrap",children:[o.jsx("div",{className:"text-500 w-full md:w-3 font-medium",children:"Show Answers Randomly"}),o.jsx("div",{className:"text-900 w-full md:w-9",children:i!=null&&i.randomiseAnswers?o.jsx(Ic,{className:"mr-2",severity:"success",value:"True"}):o.jsx(Ic,{className:"mr-2",severity:"warning",value:"False"})})]}),o.jsxs("li",{className:"flex align-items-center py-3 px-2 flex-wrap",children:[o.jsx("div",{className:"text-500 w-full md:w-3 font-medium",children:"Question Time Limit"}),o.jsx("div",{className:"text-900 w-full md:w-9",children:"0.45 seconds"})]}),o.jsxs("li",{className:"flex align-items-center py-3 px-2 flex-wrap",children:[o.jsx("div",{className:"text-500 w-full md:w-3 font-medium",children:"Exam Time Limit:"}),o.jsx("div",{className:"text-900 w-full md:w-9",children:"2 mins"})]}),o.jsxs("li",{className:"flex align-items-center py-3 px-2 flex-wrap surface-ground",children:[o.jsx("div",{className:"text-500 w-full md:w-3 font-medium",children:"Show Questions Randomly:"}),o.jsx("div",{className:"text-900 w-full md:w-9",children:o.jsx("div",{className:"grid mt-0 mr-0",children:(B=m==null?void 0:m.quizElements)==null?void 0:B.map((M,z)=>{var P;return o.jsx("div",{className:"col-12 md:col-6",children:o.jsx("div",{className:"p-3 border-1 surface-border border-round surface-card",children:o.jsx("div",{className:"text-700",children:x(((P=M==null?void 0:M.questionText)==null?void 0:P[e==null?void 0:e.type])||"",30)})})},`preview-question-${z}`)})})})]})]})]})]})},Cxe=t=>{var E;const{data:e,path:n,pageIndex:r,sectionIndex:i,rowIndex:a,columnIndex:s,section:l,row:c,page:u}=t,d=F.useRef(null),{handleDrop:f}=on(),{isRenderView:h,isAdvanceView:m,isPreview:g}=Zt(),[{isDragging:v},A]=Qi({type:ms,item:{type:ms,uuid:e==null?void 0:e.uuid,children:e.children,path:n},collect:C=>({isDragging:C.isDragging()})}),x={position:"relative",opacity:v&&!h?.25:1};A(d);const S=(C,_,T,N,O,B,M)=>o.jsx(qc,{page:u,type:"field",row:c,section:l,field:C,data:C,path:_,pageIndex:T,sectionIndex:N,rowIndex:O,columnIndex:B,fieldIndex:M},`component-${n}-${C==null?void 0:C.uuid}`);return o.jsx("div",{style:m?x:{},className:h?"form-builder-column container-column":"draggable form-builder-column container-column",children:g===!1?o.jsxs("div",{children:[e.children.length>0&&((E=e==null?void 0:e.children)==null?void 0:E.map((C,_)=>{const T=`${n}-${_}`;return o.jsxs(F.Fragment,{children:[o.jsx(Tr,{isAdvanceView:m,fieldDropArea:!0,data:{path:T,childrenCount:e.children.length,droppedField:e},onDrop:f}),S(C,T,r,i,a,s,_)]},T)})),e.children.length===0&&o.jsx("p",{className:"text-center",children:"Drag and drop from sidebar items"}),o.jsx(Tr,{isAdvanceView:m,dropHereLastField:!0,fieldDropArea:!0,data:{path:`${n}-${e.children.length}`,childrenCount:e.children.length,droppedField:e},onDrop:f,isLast:!0})]}):o.jsx(o.Fragment,{children:e.children.length>0?o.jsx(xxe,{questions:e.children}):o.jsx("p",{className:"text-center",children:"No items to show"})})})},Txe={},Exe=t=>{var g,v,A,w;const{data:e,path:n,pageIndex:r,sectionIndex:i,rowIndex:a,section:s,page:l}=t,c=F.useRef(null),{isRenderView:u}=Zt(),[{isDragging:d},f]=Qi({type:bo,item:{type:bo,uuid:e.uuid,children:e.children,path:n,data:e},collect:x=>({isDragging:x.isDragging()})}),h=d?.25:1;f(c);const m=(x,S,E,C,_,T)=>o.jsx(Cxe,{page:l,row:e,section:s,data:x,path:S,pageIndex:E,sectionIndex:C,rowIndex:_,columnIndex:T},`column-${n}-${x.uuid}`);return o.jsx("div",{style:{...Txe,opacity:h,marginTop:`${(g=e==null?void 0:e.margin)==null?void 0:g.top}px`,marginBottom:`${(v=e==null?void 0:e.margin)==null?void 0:v.bottom}px`,marginLeft:`${(A=e==null?void 0:e.margin)==null?void 0:A.left}px`,marginRight:`${(w=e==null?void 0:e.margin)==null?void 0:w.right}px`},className:u?"row container-row":"draggable row container-row",children:o.jsx("div",{className:"form-builder-columns",children:e.children.map((x,S)=>{const E=`${n}-${S}`;return o.jsx(F.Fragment,{children:m(x,E,r,i,a,S)},E)})})})},Ixe=t=>{const{data:e,path:n,pageIndex:r,sectionIndex:i,section:a,page:s}=t,{renderType:l,emitSocketData:c,isAdvanceView:u,isPreview:d}=Zt(),[f,h]=F.useState(!1),[m,g]=F.useState(!1),[v,A]=F.useState(null),w=F.useRef(null),[{isDragging:x},S]=Qi({type:ta,item:{type:ta,uuid:e.uuid,children:e.children,path:n},collect:_=>({isDragging:_.isDragging()})}),E=x?.25:1;S(w);const C=(_,T,N,O,B)=>o.jsx(Exe,{page:s,section:a,data:_,path:T,pageIndex:N,sectionIndex:O,rowIndex:B},`row-${n}-${_.uuid}`);return o.jsxs("div",{style:{opacity:E,marginBottom:20},className:u?"draggable row":"",children:[d===!1&&o.jsx(Oh,{saveBuilderElementModalData:v,setSaveBuilderElementModalData:A,saveElementModal:m,setSaveElementModal:g}),f===!0&&o.jsx(Dh,{renderType:l,visibilty:f,setVisibility:h,section:e,pageIndex:r,sectionIndex:i,emitSocketData:c},"section_settings_"+r+i),o.jsx("div",{className:"",children:e.children.map((_,T)=>{const N=`${n}-${T}`;return o.jsx(F.Fragment,{children:C(_,N,r,i,T)},N)})})]})},_xe=t=>{const{data:e,path:n,pageIndex:r}=t,{isRenderView:i}=Zt(),a=F.useRef(null),[{},s]=Qi({type:ta,item:{type:ta,uuid:e.uuid,children:e.children,path:n},collect:c=>({isDragging:c.isDragging()})});s(a);const l=(c,u,d,f)=>o.jsx(Ixe,{data:c,section:c,path:u,page:e,pageIndex:d,sectionIndex:f},`section_${d}_${f}`);return o.jsx("div",{style:{overflowX:"auto"},className:`${i?"":"draggable page-css p-3 pb-4"}`,"data-image-src":e==null?void 0:e.bgImage,"data-bg-color":`#${e==null?void 0:e.bgColor}`,children:o.jsx("div",{className:"",children:e.children.map((c,u)=>{const d=`${n}-${u}`;return o.jsx(F.Fragment,{children:l(c,d,r,u)},`section-${u}-${c.uuid}`)})})})},Dxe=()=>{const{formBuilderFormLayout:t}=on(),e=(n,r,i)=>o.jsx(_xe,{data:n,path:r,pageIndex:i},`page-${n.uuid}`);return o.jsx(o.Fragment,{children:o.jsx("div",{className:"page",children:(t==null?void 0:t.length)&&t.map((n,r)=>{const i=`${r}`;return o.jsx("div",{children:e(n,i,r)},`exam-page-${r}`)})})})},O5=()=>{const{renderType:t}=Zt();switch(t){case F0:return o.jsx(jSe,{});case H1:return o.jsx(WSe,{});case z1:return o.jsx(rxe,{});case fm:return o.jsx(gxe,{});case hm:return o.jsx(Sxe,{});case Y1:return o.jsx(Dxe,{})}},Oxe=t=>{var g,v,A,w,x,S,E,C,_,T;const{setSelectedOption:e,quiz:n,userSelectedLanguage:r,onSetAnswer:i,setIsOptionSelected:a,index:s,eleIndex:l,ele:c,setCorrectAnswerCheck:u,correctAnswerCheck:d,selectedOption:f}=t,{media:h}=Zt(),m=(g=h==null?void 0:h.image)!=null&&g.MediaImage?(v=h==null?void 0:h.image)==null?void 0:v.MediaImage:o.jsx(o.Fragment,{});return o.jsxs("div",{onClick:N=>{e(O=>{var B;return(B=n==null?void 0:n.answersText)==null?void 0:B[r==null?void 0:r.type]}),i(N,s,l,n,c),a(!0),u({isCorrect:null,text:null})},className:"field-radiobutton card",style:(d==null?void 0:d.text)===((A=n.answersText)==null?void 0:A[r==null?void 0:r.type])?(d==null?void 0:d.isCorrect)===!0?{borderColor:"green",borderWidth:1,borderStyle:"solid",position:"relative"}:{borderColor:"red",borderWidth:1,borderStyle:"solid",position:"relative"}:((w=n.answersText)==null?void 0:w[r==null?void 0:r.type])===f?{backgroundColor:"#0F8BFD",color:"#fff"}:{},children:[o.jsx(Ji,{inputId:s,value:n.answersText,checked:((x=n.answersText)==null?void 0:x[r==null?void 0:r.type])===f,onChange:N=>{u({isCorrect:null,text:null}),e(O=>{var B;return(B=N.target.value)==null?void 0:B[r==null?void 0:r.type]}),i(N,s,l,n,c),a(!0)}}),((S=n.answersTextImage)==null?void 0:S[r==null?void 0:r.type])&&((E=n.answersTextImage)==null?void 0:E[r==null?void 0:r.type])!==""&&o.jsx(m,{mediaId:(C=n.answersTextImage)==null?void 0:C[r==null?void 0:r.type],className:"mx-3",alt:"questionImage",style:{width:"50px",height:"50px",borderRadius:50}}),o.jsx("label",{htmlFor:s,children:(_=n.answersText)==null?void 0:_[r==null?void 0:r.type]}),o.jsx("span",{style:{position:"absolute",right:10},children:(d==null?void 0:d.text)===((T=n.answersText)==null?void 0:T[r==null?void 0:r.type])?(d==null?void 0:d.isCorrect)===!0?o.jsxs("span",{style:{color:"green"},children:[" ","Correct Answer"]}):o.jsxs("span",{style:{color:"red"},children:[" ","Wrong Answer"]}):""})]},s)},Nxe=t=>{var m,g,v,A,w,x,S;const{media:e}=Zt(),n=(m=e==null?void 0:e.image)!=null&&m.MediaImage?(g=e==null?void 0:e.image)==null?void 0:g.MediaImage:o.jsx(o.Fragment,{}),{setSelectedOption:r,quiz:i,userSelectedLanguage:a,setIsOptionSelected:s,index:l,ele:c,setCorrectAnswerCheck:u,correctAnswerCheck:d,selectedOption:f,onChangeCheckbox:h}=t;return F.useEffect(()=>(Array.isArray(f)||r([]),()=>{}),[]),o.jsx(o.Fragment,{children:Array.isArray(f)&&o.jsxs("div",{onClick:()=>{var E;h(!(f!=null&&f.some(C=>{var _;return C===((_=i.answersText)==null?void 0:_[a==null?void 0:a.type])})),(E=i==null?void 0:i.answersText)==null?void 0:E[a==null?void 0:a.type]),s(!0),u({isCorrect:null,text:null})},className:"field-radiobutton card",style:d!=null&&d.length&&(d!=null&&d.some(E=>{var C;return(E==null?void 0:E.text)===((C=i.answersText)==null?void 0:C[a==null?void 0:a.type])}))?d!=null&&d.some(E=>{var C;return(E==null?void 0:E.text)===((C=i.answersText)==null?void 0:C[a==null?void 0:a.type])&&(E==null?void 0:E.isCorrect)===!0})?{borderColor:"green",borderWidth:1,borderStyle:"solid",position:"relative"}:{borderColor:"red",borderWidth:1,borderStyle:"solid",position:"relative"}:((v=i.answersText)==null?void 0:v[a==null?void 0:a.type])===f?{backgroundColor:"#0F8BFD"}:{},children:[o.jsx(Nr,{inputId:l,value:i.answersText,checked:f==null?void 0:f.some(E=>{var C;return E===((C=i.answersText)==null?void 0:C[a==null?void 0:a.type])}),onChange:E=>{var C;h(E.checked,(C=E.target.value)==null?void 0:C[a==null?void 0:a.type],i,c),s(!0)}}),((A=i.answersTextImage)==null?void 0:A[a==null?void 0:a.type])&&((w=i.answersTextImage)==null?void 0:w[a==null?void 0:a.type])!==""&&o.jsx(n,{mediaId:(x=i.answersTextImage)==null?void 0:x[a==null?void 0:a.type],className:"mx-3",alt:"questionImage",style:{width:"50px",height:"50px",borderRadius:50}}),o.jsx("label",{htmlFor:l,children:(S=i.answersText)==null?void 0:S[a==null?void 0:a.type]}),o.jsx("span",{style:{position:"absolute",right:10},children:d!=null&&d.length&&(d!=null&&d.some(E=>{var C;return(E==null?void 0:E.text)===((C=i.answersText)==null?void 0:C[a==null?void 0:a.type])}))?d!=null&&d.some(E=>{var C;return(E==null?void 0:E.text)===((C=i.answersText)==null?void 0:C[a==null?void 0:a.type])&&(E==null?void 0:E.isCorrect)===!0})?o.jsx("span",{style:{color:"green"},children:" Correct Answer"}):o.jsx("span",{style:{color:"red"},children:" Wrong Answer"}):""})]},l)})},Fxe=({assessmentData:t,setDisplaySummary:e})=>{var r,i,a,s;const n=l=>{if(l.seconds<10&&(l.seconds="0"+l.seconds),l.minutes===0&&(l.minutes="0"+l.minutes),l.completed)e(!0);else return o.jsxs("span",{children:["Time Remaining:"," ",o.jsxs("span",{style:l.minutes===0?{color:"black"}:{color:"black"},children:[l.minutes,":",l.seconds]})]})};return o.jsx(o.Fragment,{children:t&&((i=(r=t==null?void 0:t.time_limit)==null?void 0:r.type)==null?void 0:i.key)==="PerExam"&&o.jsx(kp,{renderer:n,date:Date.now()+parseInt((s=(a=t==null?void 0:t.time_limit)==null?void 0:a.time_limit_info)==null?void 0:s.num_of_mins)*60*1e3})})},kxe=F.memo(Fxe),Pxe=t=>{var c,u,d,f;const{assessmentData:e,onNextQuestion:n,currentQuestionIndex:r}=t,i=F.useRef(Date.now()),[a,s]=F.useState("");F.useEffect(()=>(i.current=Date.now(),s(i.current),()=>{}),[r]);const l=h=>(h.seconds<10&&(h.seconds="0"+h.seconds),h.minutes===0&&(h.minutes="0"+h.minutes),h.completed?(n(),o.jsx(o.Fragment,{})):o.jsxs("span",{children:["Time Remaining:"," ",o.jsxs("span",{style:h.minutes===0?{color:"black"}:{color:"black"},children:[h.minutes,":",h.seconds]})]}));return o.jsx(o.Fragment,{children:e&&((u=(c=e==null?void 0:e.time_limit)==null?void 0:c.type)==null?void 0:u.key)==="PerQuestion"&&o.jsx(kp,{renderer:l,date:i.current+parseInt((f=(d=e==null?void 0:e.time_limit)==null?void 0:d.time_limit_info)==null?void 0:f.time_per_question)*1e3,intervalDelay:0},a)})},Mxe=()=>{const t=()=>{const a=new Audio("https://api.goenterprise.io/assets/sounds/sound4.mp3");i(a)},e=()=>{const a=new Audio("https://api.goenterprise.io/assets/sounds/sound2.mp3");i(a)},n=()=>{const a=new Audio("https://api.goenterprise.io/assets/sounds/sound8.mp3");i(a)},r=()=>{const a=new Audio("https://api.goenterprise.io/assets/sounds/sound6.mp3");i(a)},i=a=>{a.play().then(()=>{console.info("Played")}).catch(s=>{console.info("Not Played,"+s.error+s.name)})};return{socketConnection:t,socketDisconnect:e,errorOcurred:n,quizStartAlert:r}},Lxe="1",fj=t=>{var Ee,ge,me,Le,Oe,ve,V,ne;const e=X=>{const[oe,fe]=F.useState(X),we=F.useRef(oe);return F.useEffect(()=>{we.current=oe},[oe]),[oe,we,fe]},{endQuiz:n,AddUserAssessmentAnswer:r,assessmentData:i,taskData:a}=br(),[s,l]=F.useState(new Date),{quizData:c,saveProgress:u,renderIn:d,onOpenQuiz:f,setQuizStart:h,setVisible:m,setAssessmentModal:g=()=>{}}=t,{quizStartAlert:v}=Mxe(),{userSelectedLanguage:A}=on(),[w,,x]=e(0),{media:S}=Zt(),E=(Ee=S==null?void 0:S.image)!=null&&Ee.MediaImage?(ge=S==null?void 0:S.image)==null?void 0:ge.MediaImage:o.jsx(o.Fragment,{}),[C,_,T]=e(null),[N,O]=F.useState(!1),[B,,M]=e([]),[z,P]=F.useState(!1),[j,de]=F.useState(!1),[he,te]=F.useState(0),[G,ae]=F.useState(0),[Y,pe]=F.useState(0),[ie,J]=F.useState(!1),[Q,se]=F.useState({isCorrect:null,text:null});window.onbeforeunload=function(){return!1},F.useEffect(()=>{z||P(!0)},[B,N,z]),F.useEffect(()=>{c!==null&&(v(),be())},[c]);const be=()=>{ae(c.quizConfiguration.quizPassMark)},Ce=F.useCallback((X,oe,fe,we,De)=>{const $e=[...B];if((De==null?void 0:De.answerInputType)!=="checkbox"){const ct={uuid:De==null?void 0:De.uuid,question:De==null?void 0:De.questionText,isCorrect:we.isCorrect,selectedAnswer:we.answersText,viewed:!0},Nt=B.findIndex(at=>(at==null?void 0:at.uuid)===De.uuid);Nt>=0?($e[Nt]={...$e[Nt],...ct},M($e)):M([...B,ct])}},[C]),Te=X=>{var oe;if(w!==0){const fe=[...B],we=w-1;T((oe=fe[we])==null?void 0:oe.selectedAnswer[A==null?void 0:A.type]),O(!0),x(we),ye(0)}},ye=X=>{for(const oe of B)if(oe.questionIndex===w+X){T(oe.selectedAnswerEnglish);break}},Ae=(X,oe,fe,we)=>{var ct;const De=[...C];if(X)De.push(oe);else{const Nt=De.findIndex(at=>at===oe);Nt>=0&&De.splice(Nt,1)}T(De);const $e=[...B];if((we==null?void 0:we.answerInputType)==="checkbox"){let Nt=!1;for(const[,st]of(we==null?void 0:we.answerOptions.entries())||[])if(st.isCorrect===!0)if(Et.includes(De,(ct=st==null?void 0:st.answersText)==null?void 0:ct[A==null?void 0:A.type]))Nt=!0;else{Nt=!1;break}const at={uuid:we==null?void 0:we.uuid,question:we==null?void 0:we.questionText,isCorrect:Nt,selectedAnswer:fe.answersText,viewed:!0},St=B.findIndex(st=>(st==null?void 0:st.uuid)===we.uuid);St>=0?($e[St]={...$e[St],...at},M($e)):M([...B,at])}},re=F.useCallback(()=>{var fe,we,De,$e,ct,Nt,at,St,st,bt,Ft,Qe,Ot,Pt,fn,yn,wn,Fn,Hn;const X=_.current,oe=Et.findIndex((fe=c==null?void 0:c.quizElements[w])==null?void 0:fe.answerOptions,function(Cn){return Cn.isCorrect===!0});if(c!=null&&c.quizElements&&w+1!==(c==null?void 0:c.quizElements.length)){const Cn={assessment_user_attempt_id:(De=i==null?void 0:i.assesment_user_attempts[((we=i==null?void 0:i.assesment_user_attempts)==null?void 0:we.length)-1])==null?void 0:De.assessment_user_attempt_id,session_id:(ct=i==null?void 0:i.assesment_user_attempts[(($e=i==null?void 0:i.assesment_user_attempts)==null?void 0:$e.length)-1])==null?void 0:ct.session_id,assessment_id:1,question:(Nt=c==null?void 0:c.quizElements[w].questionText)==null?void 0:Nt[A==null?void 0:A.type],start_time:s,finish_time:new Date,correct_answer:(st=(St=(at=c==null?void 0:c.quizElements[w])==null?void 0:at.answerOptions[oe])==null?void 0:St.answersText)!=null&&st[A==null?void 0:A.type]?(Qe=(Ft=(bt=c==null?void 0:c.quizElements[w])==null?void 0:bt.answerOptions[oe])==null?void 0:Ft.answersText)==null?void 0:Qe[A==null?void 0:A.type]:"",selected_answer:Array.isArray(X)?X.toString():X,is_correct_answer:(Ot=B[w])!=null&&Ot.isCorrect?1:0};r(Cn),T(null),x(w+1),l(new Date),ye(2)}else if((c==null?void 0:c.quizElements.length)===w+1){const Cn={assessment_user_attempt_id:(fn=i==null?void 0:i.assesment_user_attempts[((Pt=i==null?void 0:i.assesment_user_attempts)==null?void 0:Pt.length)-1])==null?void 0:fn.assessment_user_attempt_id,session_id:(wn=i==null?void 0:i.assesment_user_attempts[((yn=i==null?void 0:i.assesment_user_attempts)==null?void 0:yn.length)-1])==null?void 0:wn.session_id,assessment_id:1,question:(Fn=c==null?void 0:c.quizElements[w].questionText)==null?void 0:Fn[A==null?void 0:A.type],start_time:s,finish_time:new Date,correct_answer:Array.isArray(X)?X.toString():X,selected_answer:Array.isArray(X)?X.toString():X,is_correct_answer:(Hn=B[w])!=null&&Hn.isCorrect?1:0};r(Cn),U(),K()}O(!1)},[w,B]),U=()=>{de(!0)},Z=()=>{var X;(i==null?void 0:i.noOfAttempts)-((X=i==null?void 0:i.assesment_user_attempts)==null?void 0:X.length)>0&&!ie?(f(),P(!0),v(),be(),x(0),T(null),O(!1),M([]),de(!1),te(0),pe(0),J(!1),se({isCorrect:null,text:null})):(m(!1),g(!1))},K=()=>{var De,$e;let X=0,oe=0,fe=!1;for(const ct of B)ct!=null&&ct.isCorrect&&X++;te(X),oe=X/((De=c==null?void 0:c.quizElements)==null?void 0:De.length)*100,oe=Math.round(oe),pe(oe),fe=oe>=G,J(fe);const we={...c,...i,result:oe,status:fe,selectedAnswers:B};u(we),n({session_id:c==null?void 0:c.session_id,is_pass:fe?1:0,score:X,out_of:($e=c==null?void 0:c.quizElements)==null?void 0:$e.length,finish_time:new Date,status:1})},ue=()=>{var X,oe,fe,we,De,$e,ct;if(((X=c==null?void 0:c.quizElements[w])==null?void 0:X.answerInputType)==="radio"){const Nt=Et.findIndex((oe=c==null?void 0:c.quizElements[w])==null?void 0:oe.answerOptions,function(at){return at.isCorrect===!0});C===((De=(we=(fe=c==null?void 0:c.quizElements[w])==null?void 0:fe.answerOptions[Nt])==null?void 0:we.answersText)==null?void 0:De[A==null?void 0:A.type])?se({isCorrect:!0,text:C}):se({isCorrect:!1,text:C})}if((($e=c==null?void 0:c.quizElements[w])==null?void 0:$e.answerInputType)==="checkbox"){const Nt=(ct=c==null?void 0:c.quizElements[w])==null?void 0:ct.answerOptions.filter(at=>at.isCorrect===!0);if(C!=null&&C.length){const at=C==null?void 0:C.map(St=>({isCorrect:Nt==null?void 0:Nt.some(st=>{var bt;return((bt=st==null?void 0:st.answersText)==null?void 0:bt[A==null?void 0:A.type])===St}),text:St}));se(at)}}};return o.jsx(o.Fragment,{children:c!==null&&o.jsxs("div",{children:[j&&o.jsx("div",{className:"grid",children:o.jsx("div",{className:"col-6 col-offset-3",children:o.jsxs("div",{className:"card text-center",children:[o.jsxs("h5",{children:["Assessment Result for"," ",(me=a==null?void 0:a.assessment)==null?void 0:me.assessment_title]}),o.jsxs("div",{children:[o.jsxs("p",{children:["You answered ",he," out of"," ",(Le=c==null?void 0:c.quizElements)==null?void 0:Le.length," questions"]}),o.jsxs("p",{children:["Your assessment result: ",Y,"%"]}),o.jsxs("p",{children:["Score Needed To Pass: ",G,"%"]}),o.jsx("br",{}),o.jsxs("p",{children:["Status:"," ",ie?o.jsx(Ic,{severity:"success",value:"Passed"}):o.jsx(Ic,{severity:"danger",value:"Failed"})]}),ie&&o.jsx("p",{children:"Congratulations you have passed!"}),d!==L7?o.jsx(o.Fragment,{children:j&&o.jsx("div",{className:"text-center my-5",children:o.jsx(kt,{label:(i==null?void 0:i.noOfAttempts)-((Oe=i==null?void 0:i.assesment_user_attempts)==null?void 0:Oe.length)>0&&!ie?"Restart":"End",onClick:()=>Z()})})}):o.jsx("div",{className:"text-center my-5",children:o.jsx(kt,{label:"Restart",onClick:()=>{v(),be(),de(!1),x(0),P(!1)}})})]})]})})}),j&&((ve=i==null?void 0:i.assessment_type)==null?void 0:ve.key)===Lxe&&o.jsxs("div",{children:[o.jsx("h5",{className:"text-center",children:"Summary "}),o.jsx("div",{className:"grid",children:o.jsx("div",{className:"col-6 col-offset-3",children:B==null?void 0:B.map((X,oe)=>{var fe,we;return o.jsxs("div",{className:"card",children:[o.jsxs("span",{className:"text-strong",children:[o.jsx("b",{children:"Question:"})," ",o.jsx("br",{}),(fe=X==null?void 0:X.question)==null?void 0:fe[A==null?void 0:A.type]]}),o.jsx("br",{}),o.jsx("br",{}),o.jsxs("span",{children:[o.jsx("b",{children:"Selected Answer:"})," ",o.jsx("br",{}),(we=X==null?void 0:X.selectedAnswer)==null?void 0:we[A==null?void 0:A.type]]}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("p",{children:"In Correct:"}),X!=null&&X.isCorrect?o.jsxs(o.Fragment,{children:[o.jsx(m4,{value:"",severity:"success",className:"mr-2"})," ","Yes"]}):o.jsxs(o.Fragment,{children:[o.jsx(m4,{value:"",severity:"danger",className:"mr-2"})," ","No"]})]},oe)})})})]}),d!==L7?o.jsx(o.Fragment,{children:j&&o.jsx("div",{className:"text-center my-5",children:o.jsx(kt,{text:!0,className:"p-button-danger",icon:"pi pi-times",label:"Close",onClick:()=>{m(!1),h(!1)}})})}):o.jsx(o.Fragment,{}),z&&!j&&o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"grid",children:o.jsxs("div",{className:"col-6 col-offset-3",children:[o.jsx("h5",{className:"text-center",children:o.jsxs("span",{children:[o.jsx(kxe,{assessmentData:i,setDisplaySummary:de}),o.jsx(Pxe,{currentQuestionIndex:w,assessmentData:i,onNextQuestion:re})]})}),o.jsxs("h2",{className:"text-center pb-6",children:[c==null?void 0:c.name," "]}),(V=c==null?void 0:c.quizElements)==null?void 0:V.map((X,oe)=>{var fe,we,De,$e,ct;return o.jsxs("div",{className:"quiz-card-box",children:[w===oe&&((fe=X==null?void 0:X.questionTextImage)==null?void 0:fe[A==null?void 0:A.type])&&((we=X==null?void 0:X.questionTextImage)==null?void 0:we[A==null?void 0:A.type])!==""&&o.jsx("div",{className:"text-center assessment_image_container",children:o.jsx(E,{mediaId:(De=X==null?void 0:X.questionTextImage)==null?void 0:De[A==null?void 0:A.type],style:{height:"100px",width:"100px",objectFit:"cover",borderRadius:100},className:"text-center",alt:"questionImage"})}),o.jsx("h3",{className:"mb-5",children:w===oe&&(($e=X==null?void 0:X.questionText)==null?void 0:$e[A==null?void 0:A.type])}),w===oe&&((ct=X==null?void 0:X.answerOptions)==null?void 0:ct.map((Nt,at)=>(X==null?void 0:X.answerInputType)==="checkbox"?o.jsx(F.Fragment,{children:o.jsx(Nxe,{onChangeCheckbox:Ae,setSelectedOption:T,quiz:Nt,userSelectedLanguage:A,onSetAnswer:Ce,setIsOptionSelected:O,index:at,eleIndex:oe,ele:X,setCorrectAnswerCheck:se,correctAnswerCheck:Q,selectedOption:C})},`checkbox-question-${at}`):o.jsx(F.Fragment,{children:o.jsx(Oxe,{setSelectedOption:T,quiz:Nt,userSelectedLanguage:A,onSetAnswer:Ce,setIsOptionSelected:O,index:at,eleIndex:oe,ele:X,setCorrectAnswerCheck:se,correctAnswerCheck:Q,selectedOption:C})},`radio-question-${at}`)))]},oe)})]})}),o.jsxs("div",{className:"text-center my-5",children:[o.jsxs("div",{className:"mb-1",children:["Question :"," ",w+1+"/"+(c==null?void 0:c.quizElements.length)]}),o.jsx("br",{}),w>0&&o.jsx(kt,{size:"large",className:"mx-2",label:"Previous",onClick:X=>Te()}),((i==null?void 0:i.skippable)===!0||N===!0)&&o.jsx(kt,{size:"large",label:(c==null?void 0:c.quizElements.length)===w+1?"Finish":N===!0?"Next":"Skip",onClick:re}),N===!0&&((ne=i==null?void 0:i.assessment_type)==null?void 0:ne.key)==="1"&&o.jsx(kt,{size:"large",className:"ml-2 p-button-info",label:"Check Answer",onClick:()=>ue()})]})]})]})})},N5=t=>{const{handleSelectCourseItem:e,icon:n,currentItem:r,field:i,fieldIndex:a,title:s}=t,[l,c]=F.useState(!1),{userTrainingSaveData:u}=br(),d=h=>{var m,g;if(u!==null&&h){const v=u==null?void 0:u.findIndex(A=>(A==null?void 0:A.fieldId)===(h==null?void 0:h.uuid));return(m=u[v])!=null&&m.isSeen?(g=u[v])==null?void 0:g.isSeen:!1}else return!1},f=()=>{let h=[];if(u!==null){const g=u.findIndex(v=>(v==null?void 0:v.fieldId)===(i==null?void 0:i.uuid));h=u[g].logs}else h=[];return h==null?void 0:h.map((g,v)=>o.jsxs("li",{className:"flex flex-column md:flex-row md:align-items-center md:justify-content-between mb-4",children:[o.jsxs("div",{className:"mr-8 md:mr-8",children:[o.jsxs("span",{className:"inline-block text-900 font-medium mr-2 mb-1 md:mb-0",children:[g==null?void 0:g.action," on ",((g==null?void 0:g.videoTime)/60).toFixed(3)," seconds"]}),o.jsx("span",{className:"text-600",children:Nn(g==null?void 0:g.timeState).format("Do, MMMM, YYYY HH:ss")})]}),o.jsxs("div",{className:"mt-2 md:mt-0 ml-0 md:ml-8 flex align-items-center",children:[o.jsx("div",{className:"surface-300 border-round overflow-hidden",style:{height:"8px",width:"200px"},children:o.jsx("div",{className:(g==null?void 0:g.action)==="Play"?"bg-green-500 h-full":"bg-orange-500 h-full",style:{width:`${Math.floor((g==null?void 0:g.videoTime)/(g==null?void 0:g.totalTime)*100)}%`}})}),o.jsxs("span",{className:"text-orange-500 ml-3 font-medium",children:[Math.floor((g==null?void 0:g.videoTime)/(g==null?void 0:g.totalTime)*100),"%"]})]})]},`logs_${v}`))};return o.jsxs("ul",{className:"list-none p-0 m-0 cursor-pointer",onClick:()=>{e(i)},children:[o.jsxs("li",{className:" flex flex-column md:flex-row md:align-items-center md:justify-content-between mb-3",style:{borderRadius:"10px"},children:[o.jsx("div",{children:o.jsxs("div",{children:[d(i)?o.jsx(kt,{text:!0,icon:"pi pi-check",className:"p-button-rounded p-button-primary mr-2 p-button-outlined","aria-label":"Search"}):o.jsx(kt,{text:!0,icon:"pi pi-dot",className:"p-button-rounded p-button-secondary mr-2 p-button-outlined","aria-label":"Search"}),(i==null?void 0:i.uuid)===(r==null?void 0:r.uuid)?o.jsxs("span",{children:[o.jsx(kt,{text:!0,icon:n,className:"p-button-rounded p-button-primary mr-2 inline-flex justify-content-center align-items-center w-2rem h-2rem","aria-label":"Search"}),o.jsxs("span",{className:"inline-flex justify-content-center align-items-center h-2rem",style:{color:"#0f8bfd"},children:[a+1," - ",s]})]}):o.jsxs(o.Fragment,{children:[o.jsx("span",{className:"inline-flex justify-content-center align-items-center w-2rem h-2rem border-circle border-1",children:o.jsx("i",{className:n})}),o.jsxs("span",{className:"font-medium text-500 ml-2 hoverSelect",children:[a+1," - ",s]})]})]})}),o.jsxs("div",{className:"flex align-items-center justify-content-between md:justify-content-end mt-3 md:mt-0",children:[o.jsx("div",{className:"text-right mr-3",children:o.jsxs("span",{className:" font-bold",children:[" ",i==null?void 0:i.videoDuration]})}),o.jsx(kt,{text:!0,onClick:()=>c(!l),icon:"pi pi-eye",className:"p-button-rounded p-button-secondary mr-2 ","aria-label":"Search"})]})]}),l&&o.jsxs("div",{className:"surface-card shadow-2 border-round p-4",children:[o.jsx("div",{className:"flex justify-content-between align-items-center mb-5",children:o.jsx("span",{className:"text-xl text-900 font-medium",children:"Logs"})}),o.jsx("ul",{className:"list-none p-0 m-0",children:f()})]})]},`ul-list-${a}`)},Bxe=t=>{var S,E,C,_,T,N;const{field:e,fieldIndex:n,currentItem:r,setCurrentItem:i,setCurrentSection:a,setvideoJsOptions:s,section:l,setImage:c,setDocuments:u}=t,{taskOptions:d,userTrainingSaveData:f,updateUserTraining:h}=br(),m=(S=d==null?void 0:d.training)!=null&&S.getAssessmentSelectedQuiz?(E=d==null?void 0:d.training)==null?void 0:E.getAssessmentSelectedQuiz:()=>{},g=O=>{if(f!==null){const B=[...f],M=B.findIndex(z=>(z==null?void 0:z.fieldId)===(O==null?void 0:O.uuid));M>=0&&(B[M]={...B[M],isSeen:!0}),h([...B])}},v=O=>{var B;i(O),a(l),s({autoplay:!1,controls:!0,responsive:!0,fluid:!0,sources:[{src:(B=O==null?void 0:O.media_url)==null?void 0:B.english}]})},A=O=>{var B;g(O),i(O),c((B=O==null?void 0:O.media_url)==null?void 0:B.english),a(l)},w=O=>{g(O),i(O),u(O==null?void 0:O.documents),a(l)},x=O=>{var B,M;(B=O==null?void 0:O.quizSchema)!=null&&B.assessment_id&&(m((M=O==null?void 0:O.quizSchema)==null?void 0:M.assessment_id),a(l),i(O))};switch(e==null?void 0:e.componentType){case"video":return o.jsx(N5,{title:(C=e==null?void 0:e.title)==null?void 0:C.english,type:"video",icon:"pi pi-video",handleSelectCourseItem:v,field:e,fieldIndex:n,currentItem:r,userTrainingSaveData:f},`${e==null?void 0:e.uuid}-list`);case"image":return o.jsx(N5,{title:(_=e==null?void 0:e.title)==null?void 0:_.english,type:"image",icon:"pi pi-image",handleSelectCourseItem:A,field:e,fieldIndex:n,currentItem:r,userTrainingSaveData:f},`${e==null?void 0:e.uuid}-list`);case"document":return o.jsx(N5,{title:(T=e==null?void 0:e.title)==null?void 0:T.english,type:"document",icon:"pi pi-image",handleSelectCourseItem:w,field:e,fieldIndex:n,currentItem:r,userTrainingSaveData:f},`${e==null?void 0:e.uuid}-list`);case"quiz":return o.jsx(N5,{title:(N=e==null?void 0:e.quizSchema)==null?void 0:N.assessment_title,type:"quiz",icon:"pi pi-image",handleSelectCourseItem:x,field:e,fieldIndex:n,currentItem:r,userTrainingSaveData:f},`${e==null?void 0:e.uuid}-list`);default:return o.jsx(o.Fragment,{})}},Vxe=t=>{const{fields:e,setImage:n,setvideoJsOptions:r,setDocuments:i,setQuizSchema:a,setCurrentItem:s,currentItem:l,setCurrentSection:c,section:u,updateTrainingProgress:d}=t;return o.jsx(o.Fragment,{children:o.jsx("div",{className:"surface-card border-round p-4 ",children:e==null?void 0:e.map((f,h)=>o.jsxs("div",{children:[o.jsx(Bxe,{field:f,fieldIndex:h,currentItem:l,setCurrentItem:s,setCurrentSection:c,setvideoJsOptions:r,section:u,setImage:n,setDocuments:i,setQuizSchema:a,updateTrainingProgress:d},`${h}-list-sidebar`)," ",o.jsx("hr",{})," "]},`sidebar-item-card-${h}`))})})},Uxe=t=>{const{getAssessmentByIdFromStore:e,quizSchema:n,setQuizSchema:r,renderIn:i,updateTrainingProgress:a,currentItem:s}=t,{userTrainingSaveData:l}=br();F.useEffect(()=>(c(),()=>{}),[]);const c=()=>{var m,g,v,A;const d=JSON.parse(e.form_template_schema),f=JSON.parse(e.assessment_meta_data);let h=[...((A=(v=(g=(m=d==null?void 0:d.layout[0])==null?void 0:m.children[0])==null?void 0:g.children[0])==null?void 0:v.children[0])==null?void 0:A.children)||[]];f!=null&&f.randomiseQuestions&&(h=um.shuffle(h).map((w,x)=>({...w}))),f!=null&&f.randomiseAnswers&&(h=h.map((w,x)=>({...w,answerOptions:um.shuffle(w==null?void 0:w.answerOptions)}))),f!=null&&f.enableNoOfAssessmentQuestions&&(h=h.slice(0,parseInt(f==null?void 0:f.noOfAssessmentQuestions))),r({assessment_id:1,name:e==null?void 0:e.assessment_title,label:"assessment_title",quizConfiguration:d==null?void 0:d.quizConfiguration,quizElements:h})},u=d=>{if((d==null?void 0:d.status)===!0){if(l!==null){const h=l.findIndex(m=>(m==null?void 0:m.fieldId)===(s==null?void 0:s.uuid));h>=0&&(l[h]={...l[h],isSeen:!0})}a()}};return o.jsx("div",{children:n&&o.jsx(fj,{renderIn:i,quizData:n,taskSchema:e==null?void 0:e.form_template_schema,saveProgress:d=>{u(d)}})})},qxe=t=>{var v,A;const{currentItem:e,videoJsOptions:n}=t,r=F.useRef(null),{userTrainingSaveData:i,updateUserTraining:a,taskRegisterData:s}=br(),{media:l}=Zt(),c=(v=l==null?void 0:l.video)!=null&&v.MediaVideo?(A=l==null?void 0:l.video)==null?void 0:A.MediaVideo:()=>o.jsx(o.Fragment,{}),u=w=>{r.current=w,w.on("waiting",()=>{Dt.log("player is waiting")}),w.on("dispose",()=>{Dt.log("player will dispose")})},d=w=>{if(i!==null){const x=[...i],S=x==null?void 0:x.findIndex(E=>(E==null?void 0:E.fieldId)===(e==null?void 0:e.uuid));S>=0&&(x[S].seenTime=w==null?void 0:w.target.currentTime)}},f=w=>{const x=[...i],S=x==null?void 0:x.findIndex(E=>(E==null?void 0:E.fieldId)===(w==null?void 0:w.uuid));S>=0&&(i[S]={...i[S],isSeen:!0},a(x),h("Ended"))},h=w=>{const x=r.current,S=i!==null?i==null?void 0:i.findIndex(E=>(E==null?void 0:E.fieldId)===(e==null?void 0:e.uuid)):-1;S>=0&&i[S].logs.push({action:w,videoTime:i[S].seenTime,totalTime:x.duration,timeState:new Date})},m=w=>{const{mediaId:x}=w,[S,E]=F.useState(!1);return F.useEffect(()=>{if(!S&&i!==null){const C=i.findIndex(_=>(_==null?void 0:_.fieldId)===(e==null?void 0:e.uuid));if(C>=0){E(!0);const _=r.current;_.currentTime=i[C].seenTime}E(!0)}return()=>{}},[i]),o.jsx(c,{mediaId:x,ref:r,className:"my-video",style:{borderRadius:"10px"},onPlay:()=>h("Play"),onPause:()=>h("Pause"),onEnded:()=>f(e),onTimeUpdate:d,controls:!0})},g=F.useCallback(w=>o.jsx(m,{mediaId:w}),[e==null?void 0:e.media_file_id]);return o.jsx("div",{children:(e==null?void 0:e.isExternalSource)===!1&&(e==null?void 0:e.media_file_id)!==void 0&&(e==null?void 0:e.media_file_id)!==null?o.jsx(o.Fragment,{children:g(e==null?void 0:e.media_file_id)}):o.jsx(o.Fragment,{children:o.jsx(zB,{options:n,onReady:u,currentItem:e},e==null?void 0:e.uuid)})})},ES=t=>{var N,O,B,M,z,P;const{sections:e,showInfoPanel:n,updateTrainingProgress:r}=t,{taskOptions:i,taskSchema:a,taskData:s}=br(),[l]=F.useState(!1),[,c]=F.useState(Ub),[u,d]=F.useState([]),[f,h]=F.useState(null),{userSelectedLanguage:m}=on(),[g,v]=F.useState(null),[A,w]=F.useState(null),x=(N=i==null?void 0:i.training)!=null&&N.getAssessmentByIdFromStore?(O=i==null?void 0:i.training)==null?void 0:O.getAssessmentByIdFromStore:()=>{},S=(B=i==null?void 0:i.training)!=null&&B.TrainingOverView?(M=i==null?void 0:i.training)==null?void 0:M.TrainingOverView:()=>o.jsx(o.Fragment,{}),[E,C]=F.useState({autoplay:!1,controls:!0,responsive:!0,fluid:!0,sources:[{src:"http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4"}]});F.useEffect(()=>{l||_()},[l]);const _=()=>{var j,de,he,te,G,ae,Y,pe,ie,J,Q,se,be,Ce,Te,ye,Ae,re,U,Z,K;switch(v((he=(de=(j=e[0])==null?void 0:j.children[0])==null?void 0:de.children[0])==null?void 0:he.children[0]),w(e[0]),(Y=(ae=(G=(te=e[0])==null?void 0:te.children[0])==null?void 0:G.children[0])==null?void 0:ae.children[0])==null?void 0:Y.componentType){case"video":C({autoplay:!1,controls:!0,responsive:!0,fluid:!0,sources:[{src:(se=(Q=(J=(ie=(pe=e[0])==null?void 0:pe.children[0])==null?void 0:ie.children[0])==null?void 0:J.children[0])==null?void 0:Q.media_url)==null?void 0:se.english}]});break;case"image":c((Ae=(ye=(Te=(Ce=(be=e[0])==null?void 0:be.children[0])==null?void 0:Ce.children[0])==null?void 0:Te.children[0])==null?void 0:ye.media_url)==null?void 0:Ae.english);break;case"document":d((K=(Z=(U=(re=e[0])==null?void 0:re.children[0])==null?void 0:U.children[0])==null?void 0:Z.children[0])==null?void 0:K.documents);break}},T=j=>{switch(j==null?void 0:j.componentType){case"video":return o.jsx("div",{children:o.jsx(qxe,{videoJsOptions:E,currentItem:j},j==null?void 0:j.uuid)});case"image":return o.jsx(tk,{field:j,isPreview:!0});case"document":return o.jsxs("div",{children:[o.jsx("h6",{children:"Documents"}),o.jsx("ul",{children:(u==null?void 0:u.length)>0&&u.map((de,he)=>o.jsx("li",{children:o.jsx("a",{href:de==null?void 0:de.url,children:de==null?void 0:de.url})},`document-item-${he}`))})]});case"quiz":return x!=null&&x.form_template_schema?o.jsx(Uxe,{renderIn:L7,getAssessmentByIdFromStore:x,quizSchema:f,setQuizSchema:h,updateTrainingProgress:r,currentItem:j}):o.jsx("div",{});case"slides":return o.jsx("div",{children:"Show slides"});case"html":return o.jsx("div",{children:"Show custom HTML Here"});default:return o.jsx("div",{})}};return o.jsxs("div",{className:"grid",children:[o.jsxs("div",{className:"col-8 scroll-height-100",children:[o.jsxs("h3",{children:[(z=A==null?void 0:A.heading)==null?void 0:z[m==null?void 0:m.type]," -"," ",(P=g==null?void 0:g.title)==null?void 0:P[m==null?void 0:m.type]," "]}),T(g),n&&o.jsx(S,{})]}),o.jsx("div",{className:"col-4 scroll-height-100",children:e.map((j,de)=>{var he,te;return o.jsxs(li,{className:"mb-5",header:(he=j==null?void 0:j.heading)==null?void 0:he.english,toggleable:!0,children:[o.jsx("p",{children:(te=j==null?void 0:j.subHeadingText)==null?void 0:te[m==null?void 0:m.type]}),j.children.map((G,ae)=>{const Y=`${ae}`;return o.jsx("div",{children:G.children.map((pe,ie)=>{const J=`${ae}-${Y}`;return o.jsx(Vxe,{setCurrentSection:w,section:j,setCurrentItem:v,currentItem:g,path:J,fields:pe.children,setvideoJsOptions:C,setImage:c,setDocuments:d,setQuizSchema:h,updateTrainingProgress:r},`training-sidebar-${ie}`)})},`training-sidebar-container-${ae}`)})]},`train-sidebar-panel-${de}`)})})]})};ES.defaultProps={showInfoPanel:!0,sections:{},updateTrainingProgress:()=>{}},ES.propTypes={showInfoPanel:bn.bool,sections:bn.array,updateTrainingProgress:bn.func};const $xe=t=>{var l;const{taskSchema:e,taskId:n,endPoints:r}=t,{userTrainingSaveData:i,saveProgressDataHook:a,updateTaskProgressValue:s}=br();return F.useEffect(()=>{const c=setTimeout(()=>{const u=i==null?void 0:i.filter(d=>(d==null?void 0:d.isSeen)===!0).length;s(u),a(i,n,r==null?void 0:r.submitFormData)},1e3);return()=>clearTimeout(c)},[i]),o.jsx("div",{children:e!==null&&o.jsx(ES,{updateTrainingProgress:()=>{},sections:(l=e==null?void 0:e.layout[0])==null?void 0:l.children})})},jxe=t=>{var Z,K,ue,Ee,ge,me,Le,Oe,ve,V,ne,X,oe,fe,we,De,$e,ct,Nt,at,St,st,bt,Ft,Qe,Ot;const[e,n]=F.useState(!1),r=F.useRef(!1),{taskId:i,endPoints:a,isRenderView:s,showFieldsAfterSubmit:l,messageWhileSubmittingForm:c,enableFormScroll:u,formScrollHeight:d="scroll-height-225",onStart:f,setAssessmentModal:h=()=>{}}=t,{setLayout:m}=on(),[g,v]=F.useState(!1),[A,w]=F.useState(null),[x,S]=F.useState(!1),{taskProgressValue:E,taskRegisterData:C,task_status:_,assessmentData:T,taskProgressLoading:N,taskSchema:O,taskData:B,updateTaskFormData:M,submitTaskFormData:z,TasksLoading:P,userTaskSubmitFormData:j,TasksHTTPRequest:de,TasksSubmitLoading:he,clearTaskSchema:te,startQuiz:G,TASK_PUBLISHED:ae,saveProgressDataHook:Y}=br();F.useEffect(()=>{if(O!==null&&m((O==null?void 0:O.layout)||[]),i){const fn={viewed_at:new Date().toISOString()};M(j,i,a==null?void 0:a.updateFormData,L8,()=>{},fn)}return()=>{te()}},[i]),F.useEffect(()=>{var Pt,fn,yn,wn,Fn;if(((Pt=O==null?void 0:O.formType)==null?void 0:Pt.key)==="exam"){let Hn=[...((wn=(yn=(fn=O==null?void 0:O.layout[0])==null?void 0:fn.children[0])==null?void 0:yn.children[0])==null?void 0:wn.children[0].children)||[]];T!=null&&T.randomiseQuestions&&(Hn=um.shuffle(Hn).map((Cn,zt)=>({...Cn}))),T!=null&&T.randomiseAnswers&&(Hn=Hn.map((Cn,zt)=>({...Cn,answerOptions:um.shuffle(Cn==null?void 0:Cn.answerOptions)}))),T!=null&&T.enableNoOfAssessmentQuestions&&(Hn=Hn.slice(0,parseInt(T==null?void 0:T.noOfAssessmentQuestions))),w({assessment_id:1,name:(Fn=B==null?void 0:B.assessment)==null?void 0:Fn.assessment_title,label:"assessment_title",quizConfiguration:O==null?void 0:O.quizConfiguration,quizElements:Hn})}},[O]);const pe=(Pt="One or more field is required")=>{r.current.show({severity:"error",summary:"Alert",detail:Pt,life:3e3})},ie=()=>{Gt.emit("onSubmitUserForm","complete"),Ce()},J=()=>{z(j,i,a==null?void 0:a.submitFormData),n(!1)},Q=Pt=>{M(Pt,i,a==null?void 0:a.updateFormData,L8,()=>{r.current.show({severity:"success",summary:"Progress Saved",detail:"",life:3e3})})},se=Pt=>{M(Pt,i,a==null?void 0:a.updateFormData,cD,()=>{Gt.emit("onCompleteAssessment","complete")})};F.useEffect(()=>{const Pt=setTimeout(()=>{var fn;j!==null&&((O==null?void 0:O.enableAutoSave)===!0||((fn=O==null?void 0:O.formType)==null?void 0:fn.key)===M7)&&Y(j,i,a==null?void 0:a.updateFormData)},2e3);return()=>clearTimeout(Pt)},[C,E]);const be=(Pt,fn,yn,wn)=>{var Cn,zt;let Fn=wn;const Hn={fieldId:Pt.uuid};if(yn!=null&&yn[Pt==null?void 0:Pt.uuid]){if((fn==null?void 0:fn.length)>0){e:for(const[,rt]of fn.entries())if(((Cn=rt==null?void 0:rt.children)==null?void 0:Cn.length)>0&&(rt==null?void 0:rt.enableConditionalField)===!0){for(const[,Je]of(rt==null?void 0:rt.children.entries())||[])if((zt=Je==null?void 0:Je.attributes)!=null&&zt.required&&(Fn=be(Je,Je==null?void 0:Je.options,yn,Fn),Fn===!1))break e}}}else Gt.emit("OnInvalidFieldCatch",Hn),Fn=!1,pe();return Fn},Ce=F.useCallback(()=>{var fn,yn,wn,Fn,Hn,Cn,zt,rt,Je,dt,Yt,Tn,kn,Gn,cr,Zn,vr,_r,dn,lt,ot;let Pt=!1;e:for(const[At,Vt]of O.layout.entries())if((Vt==null?void 0:Vt.isHidden)===!1)for(const[Ut,Ye]of Vt.children.entries())for(const[,Fe]of Ye.children.entries())if(Fe!=null&&Fe.rowIsRepeatable){const nt=j.findIndex(Ze=>(Ze==null?void 0:Ze.rowId)===Fe.uuid);if(nt>=0){if(((fn=j[nt].repeatableFieldsData)==null?void 0:fn.length)<(Fe==null?void 0:Fe.minimumEntries)){pe(`Need minimun ${Fe==null?void 0:Fe.minimumEntries} entries`),Pt=!1;break e}Pt=!0}}else for(const[,nt]of Fe.children.entries())for(const[,Ze]of nt.children.entries()){if(Ze.isValid===0&&Ze.isPostField===!0&&(Ze==null?void 0:Ze.componentType)!=="hidden-field"){console.log("here cming");const Mt={pageIndex:At,fieldId:Ze.uuid,sectionIndex:Ut},qt=j.findIndex(ft=>(ft==null?void 0:ft.fieldId)===Ze.uuid);if(!(qt===-1||(yn=j[qt])!=null&&yn.postData[0]&&(((Fn=(wn=j[qt])==null?void 0:wn.postData[0].postValue)==null?void 0:Fn.length)>0||((Hn=j[qt])==null?void 0:Hn.postData[0].postValue)>0))){console.log("inValidData",Mt),Gt.emit("OnInvalidFieldCatch",Mt),Pt=!1,pe();break e}}if((Ze==null?void 0:Ze.componentType)==="radio-hierarchal"){const Mt=j.findIndex(qt=>(qt==null?void 0:qt.fieldId)===Ze.uuid);if(Mt>=0&&(Pt=be(Ze,Ze==null?void 0:Ze.options,(Cn=j[Mt])==null?void 0:Cn.postData[0].postValue,!0),!Pt))break e}if(((zt=Ze==null?void 0:Ze.children)==null?void 0:zt.length)>0)for(const[,Mt]of Ze.children.entries()){const qt=Object.keys(Mt);if(qt[0]){const ft=Mt[qt[0]],Me={fieldId:ft.uuid,sectionIndex:Ut},Ke=j.findIndex(xt=>(xt==null?void 0:xt.fieldId)===ft.uuid);if(!((rt=j[Ke])!=null&&rt.postData[0]&&(((dt=(Je=j[Ke])==null?void 0:Je.postData[0].postValue)==null?void 0:dt.length)>0||((Yt=j[Ke])==null?void 0:Yt.postData[0].postValue)>0||((Gn=(kn=(Tn=j[Ke])==null?void 0:Tn.postData[0])==null?void 0:kn.postValue)==null?void 0:Gn.addressOne)!==""))){Gt.emit("OnInvalidFieldCatch",Me),Pt=!1,pe();break e}}}if(Ze!=null&&Ze.inlineConditionalRules&&((Zn=(cr=Ze==null?void 0:Ze.inlineConditionalRules)==null?void 0:cr.rules)==null?void 0:Zn.length)>0){for(const[,Mt]of((vr=Ze==null?void 0:Ze.inlineConditionalRules)==null?void 0:vr.rules.entries())||[])for(const[,qt]of(Mt==null?void 0:Mt.conditions.entries())||[])for(const[,ft]of(qt==null?void 0:qt.children.entries())||[])if(ft.isValid===0){const Me={fieldId:ft.uuid,sectionIndex:Ut},Ke=j.findIndex(xt=>(xt==null?void 0:xt.fieldId)===ft.uuid);if(Ke>=0&&!((_r=j[Ke])!=null&&_r.postData[0]&&(((lt=(dn=j[Ke])==null?void 0:dn.postData[0].postValue)==null?void 0:lt.length)>0||((ot=j[Ke])==null?void 0:ot.postData[0].postValue)>0))){Gt.emit("OnInvalidFieldCatch",Me),Pt=!1,pe();break e}}}Pt=!0}Pt&&n(!0)},[j]),Te=()=>o.jsx(o.Fragment,{children:o.jsxs("div",{className:"w-full",children:[o.jsx("p",{children:"Loading form data....."}),o.jsx(ua,{className:"mb-2"}),o.jsx(ua,{className:"mb-2"}),o.jsx(ua,{className:"mb-2"}),o.jsx(ua,{className:"mb-5"}),o.jsx(ua,{className:"mb-2"}),o.jsx(ua,{className:"mb-2"}),o.jsx(ua,{className:"mb-2"}),o.jsx(ua,{className:"mb-2"}),o.jsx(ua,{className:"mb-2"}),o.jsx(ua,{className:"mb-2"}),o.jsx(ua,{className:"mb-2"})]})}),ye=()=>{v(!0);const Pt={task_id:i,session_id:tt(),start_time:new Date,finish_time:new Date};w(fn=>({...fn,...Pt})),G(Pt,w)},Ae=o.jsxs("div",{children:[o.jsx(kt,{text:!0,label:"Cancel",icon:"pi pi-times",className:"mx-2 p-button-danger",onClick:()=>v(!1)}),o.jsx(kt,{label:"Start Immediately",onClick:()=>{v(!1),S(!0);const Pt={task_id:i,session_id:tt(),start_time:new Date,finish_time:new Date};w(fn=>({...fn,...Pt}))}})]}),re=Pt=>Pt.completed?(v(!1),S(!0),o.jsx(o.Fragment,{})):o.jsxs("span",{children:["Your Quiz is about to start in ",Pt.seconds," seconds"]}),U=()=>o.jsxs("div",{children:[o.jsx(kt,{text:!0,label:"No",icon:"pi pi-times",onClick:()=>n(!1),className:"p-button-danger"}),o.jsx(kt,{label:"Yes",icon:"pi pi-check",onClick:()=>J(),autoFocus:!0})]});return o.jsxs("div",{children:[o.jsx(ys,{header:()=>o.jsx(o.Fragment,{}),visible:e,style:{width:"30vw"},footer:U,onHide:()=>n(!1),children:o.jsx("p",{className:"text-center",children:c})}),o.jsx(VD,{closable:!1,closeOnEscape:!1,visible:g,onHide:()=>v(!1),message:o.jsx(kp,{date:Date.now()+15e3,renderer:re}),footer:Ae}),P||he||de?o.jsx("div",{className:"w-full",children:o.jsx(Te,{})}):o.jsxs(o.Fragment,{children:[(((Z=O==null?void 0:O.formType)==null?void 0:Z.key)===P7||((K=O==null?void 0:O.formType)==null?void 0:K.key)==="survey")&&o.jsx(o.Fragment,{children:o.jsxs("div",{className:`px-0 ${s===!1?"builder_container":""}`,children:[o.jsxs("div",{className:"flex justify-content-center mb-2 align-items-center",children:[o.jsx("div",{className:"text-center text-900 text-3xl font-medium",children:B==null?void 0:B.task_title}),o.jsx("div",{className:"ml-4 ",children:(B==null?void 0:B.task_status)===cD&&o.jsx(HO,{classes:"",value:"COMPLETED",level:"success"})})]}),l===!1&&_===ae?o.jsx(o.Fragment,{children:o.jsx("h3",{className:"text-center mt-5",children:"Thank you for completing the survey"})}):o.jsx("div",{className:"grid",children:o.jsxs("div",{className:"col-12",children:[P&&o.jsx(Te,{}),!P&&o.jsxs(o.Fragment,{children:[o.jsx(cse,{}),o.jsx("div",{className:`${u===!0?d:" "} mt-2 mb-2`,children:o.jsx(lf,{backend:uf,children:O!==null&&((ue=O==null?void 0:O.layout)==null?void 0:ue.length)&&o.jsx(O5,{})})}),o.jsx(s3,{ref:r}),((Ee=O==null?void 0:O.formType)==null?void 0:Ee.key)!==""&&(_===L8||_===null)&&o.jsx("span",{children:ll.createPortal(o.jsx("div",{className:"card surface-card shadow-1 border-round py-2 render-form-footer",children:o.jsxs("div",{className:" flex justify-content-center",children:[o.jsx(kt,{text:!0,className:"mr-2 p-button-info",label:"Save Progress",onClick:()=>Q(j),loading:N,disabled:he}),o.jsx(kt,{label:"Submit",onClick:()=>ie(),disabled:N,loading:he})]})}),document.body)})]})]})})]})}),((ge=O==null?void 0:O.formType)==null?void 0:ge.key)==="policies"&&o.jsx("div",{className:"layout-invoice-page",children:o.jsx("div",{className:"grid",children:o.jsx("div",{className:"col-12",children:o.jsx("div",{className:"card",children:o.jsx("div",{id:"invoice-content",children:o.jsxs("div",{className:"invoice",children:[o.jsxs("div",{className:"invoice-header",children:[o.jsx("div",{className:"invoice-company flex align-items-center",children:o.jsxs("h3",{children:[B==null?void 0:B.task_title," "]})}),o.jsxs("div",{className:"ml-2",children:[o.jsx("div",{className:"customer-id",children:"Customer ID: C1613"}),o.jsx("div",{className:"invoice-address",children:"9137 3rd Lane California City CA 93504, U.S.A."})]})]}),o.jsx("div",{className:"scroll-height-300 mt-2 mb-2",children:o.jsx(lf,{backend:uf,children:O!==null&&((me=O==null?void 0:O.layout)==null?void 0:me.length)&&o.jsx(O5,{})})}),((Le=O==null?void 0:O.formType)==null?void 0:Le.key)!==""&&(_===1||_===null)&&o.jsx(o.Fragment,{children:o.jsx("div",{className:"flex justify-content-center",children:o.jsx(kt,{className:"p-button-primary",label:"Accept",onClick:()=>ie(),loading:N})})})]})})})})})}),(((Oe=O==null?void 0:O.formType)==null?void 0:Oe.key)==="page"||((ve=O==null?void 0:O.formType)==null?void 0:ve.key)==="pdf")&&o.jsx("div",{className:"layout-invoice-page",children:o.jsx("div",{className:"grid",children:o.jsx("div",{className:"col-12",children:o.jsx("div",{className:"card",children:o.jsx(lf,{backend:uf,children:O!==null&&((V=O==null?void 0:O.layout)==null?void 0:V.length)&&o.jsx(O5,{})})})})})}),((ne=O==null?void 0:O.formType)==null?void 0:ne.key)==="training"&&o.jsx($xe,{renderIn:tse,taskSchema:O,taskId:i,endPoints:a}),((X=O==null?void 0:O.formType)==null?void 0:X.key)==="exam"&&o.jsxs("div",{children:[x===!1&&o.jsx("div",{className:"surface-section px-4 py-5 md:px-6 lg:px-8 scroll-height-150",children:o.jsx("div",{className:"grid",children:o.jsx("div",{className:"col-6 col-offset-3",children:o.jsxs("div",{className:"text-center",children:[o.jsxs("div",{children:[o.jsx("h3",{children:(oe=B==null?void 0:B.assessment)==null?void 0:oe.assessment_title}),o.jsxs("div",{className:"card",children:[o.jsx("h3",{children:"Overview"}),o.jsx("div",{dangerouslySetInnerHTML:{__html:O==null?void 0:O.intro}})]}),o.jsxs("div",{className:"surface-card p-4 shadow-2 border-round",children:[o.jsx("div",{className:"font-medium text-3xl text-900 mb-3",children:"Guidance"}),o.jsxs("div",{className:"text-500 mb-5",children:["You have a total of ",T==null?void 0:T.noOfAttempts," ","attempts for the entire Quiz"," "]}),o.jsxs("ul",{className:"list-none p-0 m-0 border-top-1 surface-border",children:[o.jsxs("li",{className:"flex align-items-center py-3 px-2 flex-wrap surface-ground",children:[o.jsx("div",{className:"text-500 w-full md:w-3 font-medium",children:"Expires on:"}),o.jsx("div",{className:"text-900 w-full md:w-9",children:Nn(B==null?void 0:B.task_due_date).format("Do MMM YYYY ")})]}),o.jsxs("li",{className:"flex align-items-center py-3 px-2 flex-wrap surface-ground",children:[o.jsx("div",{className:"text-500 w-full md:w-3 font-medium",children:"Total Attempts:"}),o.jsx("div",{className:"text-900 w-full md:w-9",children:T==null?void 0:T.noOfAttempts})]}),o.jsxs("li",{className:"flex align-items-center py-3 px-2 flex-wrap",children:[o.jsx("div",{className:"text-500 w-full md:w-3 font-bold",children:"Attempts Made:"}),o.jsx("div",{className:"text-900 w-full md:w-9 line-height-3",children:(fe=T==null?void 0:T.assesment_user_attempts)==null?void 0:fe.length})]}),o.jsxs("li",{className:"flex align-items-center py-3 px-2 flex-wrap",children:[o.jsx("div",{className:"text-500 w-full md:w-3 font-bold",children:"Remaining Attempts:"}),o.jsx("div",{className:"text-900 w-full md:w-9 line-height-3",children:(T==null?void 0:T.noOfAttempts)-((we=T==null?void 0:T.assesment_user_attempts)==null?void 0:we.length)})]}),o.jsxs("li",{className:"flex align-items-center py-3 px-2 flex-wrap",children:[o.jsx("div",{className:"text-500 w-full md:w-3 font-bold",children:"Number of Questions:"}),o.jsx("div",{className:"text-900 w-full md:w-9",children:(De=A==null?void 0:A.quizElements)==null?void 0:De.length})]}),o.jsxs("li",{className:"flex align-items-center py-3 px-2 flex-wrap",children:[o.jsx("div",{className:"text-500 w-full md:w-3 font-bold",children:"Exam Time:"}),o.jsxs("div",{className:"text-900 w-full md:w-9",children:[" ",T&&((ct=($e=T==null?void 0:T.time_limit)==null?void 0:$e.type)==null?void 0:ct.key)==="PerExam"&&o.jsxs(o.Fragment,{children:[Math.floor((at=(Nt=T==null?void 0:T.time_limit)==null?void 0:Nt.time_limit_info)==null?void 0:at.num_of_mins)," ","mins"]}),T&&((st=(St=T==null?void 0:T.time_limit)==null?void 0:St.type)==null?void 0:st.key)==="PerQuestion"&&o.jsxs(o.Fragment,{children:[Math.floor(((Ft=(bt=T==null?void 0:T.time_limit)==null?void 0:bt.time_limit_info)==null?void 0:Ft.time_per_question)*((Qe=A==null?void 0:A.quizElements)==null?void 0:Qe.length)/60)," ","mins"]})]})]})]})]})]}),o.jsx("div",{className:"my-5",children:(T==null?void 0:T.noOfAttempts)-((Ot=T==null?void 0:T.assesment_user_attempts)==null?void 0:Ot.length)>0?o.jsx(kt,{size:"large",label:"Start Now",className:"p-button-info",onClick:()=>{ye(),f&&f()}}):o.jsx(kt,{text:!0,label:"No Attempts Remaining",className:"p-button-info"})})]})})})}),x===!0&&A!==null&&o.jsx(ys,{header:"Assessment",visible:x,maximized:!0,style:{width:"50vw"},onHide:()=>{S(!1),v(!1)},children:o.jsx(fj,{setShowStartDiaglog:v,setQuizStart:S,onOpenQuiz:ye,quizData:A,taskSchema:O,saveProgress:se,setAssessmentModal:h})})]})]})]})};/**
|
|
4165
4165
|
* React Router v6.23.1
|
|
4166
4166
|
*
|
|
4167
4167
|
* Copyright (c) Remix Software Inc.
|