cft-builder 0.2.279 → 0.2.280

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.
@@ -3511,7 +3511,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
3511
3511
  }
3512
3512
  }
3513
3513
  `,pde={root:function(e){var n=e.props;return n.showClear&&!n.disabled&&{position:"relative"}},itemGroup:function(e){var n=e.scrollerOptions;return{height:n.props?n.props.itemSize:void 0}}},v2=Vn.extend({defaultProps:{__TYPE:"MultiSelect",appendTo:null,ariaLabelledBy:null,checkboxIcon:null,className:null,clearIcon:null,closeIcon:null,dataKey:null,disabled:!1,display:"comma",dropdownIcon:null,emptyFilterMessage:null,emptyMessage:null,filter:!1,filterBy:null,filterDelay:300,filterInputAutoFocus:!0,filterLocale:void 0,selectOnFocus:!1,focusOnHover:!0,autoOptionFocus:!1,filterMatchMode:"contains",filterPlaceholder:null,filterTemplate:null,fixedPlaceholder:!1,flex:!1,id:null,inline:!1,inputId:null,inputRef:null,invalid:!1,variant:null,itemCheckboxIcon:null,itemClassName:null,itemTemplate:null,loading:!1,loadingIcon:null,maxSelectedLabels:null,name:null,onBlur:null,onChange:null,onClick:null,onFilter:null,onFocus:null,onHide:null,onRemove:null,onSelectAll:null,onShow:null,optionDisabled:null,optionGroupChildren:null,optionGroupLabel:null,optionGroupTemplate:null,optionLabel:null,optionValue:null,options:null,overlayVisible:!1,panelClassName:null,panelFooterTemplate:null,panelHeaderTemplate:null,panelStyle:null,placeholder:null,removeIcon:null,resetFilterOnHide:!1,scrollHeight:"200px",selectAll:!1,selectAllLabel:null,selectedItemTemplate:null,selectedItemsLabel:void 0,selectionLimit:null,showClear:!1,showSelectAll:!0,style:null,tabIndex:0,tooltip:null,tooltipOptions:null,transitionOptions:null,useOptionAsValue:!1,value:null,virtualScrollerOptions:null,children:void 0},css:{classes:fde,styles:hde,inlineStyles:pde}}),gde={box:"p-checkbox-box",input:"p-checkbox-input",icon:"p-checkbox-icon",root:function(e){var n=e.props,r=e.checked,i=e.context;return ft("p-checkbox p-component",{"p-highlight":r,"p-disabled":n.disabled,"p-invalid":n.invalid,"p-variant-filled":n.variant?n.variant==="filled":i&&i.inputStyle==="filled"})}},a4=Vn.extend({defaultProps:{__TYPE:"Checkbox",autoFocus:!1,checked:!1,className:null,disabled:!1,falseValue:!1,icon:null,id:null,inputId:null,inputRef:null,invalid:!1,variant:null,name:null,onChange:null,onContextMenu:null,onMouseDown:null,readOnly:!1,required:!1,style:null,tabIndex:null,tooltip:null,tooltipOptions:null,trueValue:!0,value:null,children:void 0},css:{classes:gde}});function NO(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 OO(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?NO(Object(n),!0).forEach(function(r){_f(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):NO(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var db=b.memo(b.forwardRef(function(t,e){var n=Kn(),r=b.useContext(ar),i=a4.getProps(t,r),a=b.useState(!1),s=cd(a,2),l=s[0],c=s[1],u=a4.setMetaData({props:i,state:{focused:l},context:{checked:i.checked===i.trueValue,disabled:i.disabled}}),d=u.ptm,f=u.cx,h=u.isUnstyled;li(a4.css.styles,h,{name:"checkbox"});var g=b.useRef(null),v=b.useRef(i.inputRef),m=function(){return i.checked===i.trueValue},A=function(F){if(!(i.disabled||i.readOnly)&&i.onChange){var P,H=m(),N=H?i.falseValue:i.trueValue,z={originalEvent:F,value:i.value,checked:N,stopPropagation:function(){F==null||F.stopPropagation()},preventDefault:function(){F==null||F.preventDefault()},target:{type:"checkbox",name:i.name,id:i.id,value:i.value,checked:N}};if(i==null||(P=i.onChange)===null||P===void 0||P.call(i,z),F.defaultPrevented)return;xe.focus(v.current)}},w=function(F){var P;c(!0),i==null||(P=i.onFocus)===null||P===void 0||P.call(i,F)},x=function(F){var P;c(!1),i==null||(P=i.onBlur)===null||P===void 0||P.call(i,F)};b.useImperativeHandle(e,function(){return{props:i,focus:function(){return xe.focus(v.current)},getElement:function(){return g.current},getInput:function(){return v.current}}}),b.useEffect(function(){ke.combinedRefs(v,i.inputRef)},[v,i.inputRef]),fr(function(){v.current.checked=m()},[i.checked,i.trueValue]),Li(function(){i.autoFocus&&xe.focus(v.current,i.autoFocus)});var S=m(),T=ke.isNotEmpty(i.tooltip),C=a4.getOtherProps(i),E=n({id:i.id,className:ft(i.className,f("root",{checked:S,context:r})),style:i.style,"data-p-highlight":S,"data-p-disabled":i.disabled,onContextMenu:i.onContextMenu,onMouseDown:i.onMouseDown},C,d("root")),_=function(){var F=ke.reduceKeys(C,xe.ARIA_PROPS),P=n(OO({id:i.inputId,type:"checkbox",className:f("input"),name:i.name,tabIndex:i.tabIndex,onFocus:function(N){return w(N)},onBlur:function(N){return x(N)},onChange:function(N){return A(N)},disabled:i.disabled,readOnly:i.readOnly,required:i.required,"aria-invalid":i.invalid,checked:S},F),d("input"));return b.createElement("input",ks({ref:v},P))},M=function(){var F=n({className:f("icon")},d("icon")),P=n({className:f("box",{checked:S}),"data-p-highlight":S,"data-p-disabled":i.disabled},d("box")),H=S?i.icon||b.createElement(vc,F):null,N=nr.getJSXIcon(H,OO({},F),{props:i,checked:S});return b.createElement("div",P,N)};return b.createElement(b.Fragment,null,b.createElement("div",ks({ref:g},E),_(),M()),T&&b.createElement(cn,ks({target:g,content:i.tooltip,pt:d("tooltip")},i.tooltipOptions)))}));db.displayName="Checkbox";function FO(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 s4(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?FO(Object(n),!0).forEach(function(r){_f(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):FO(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var kO=b.memo(function(t){var e=Kn(),n=t.ptm,r=t.cx,i=t.isUnstyled,a={filter:function(P){return l(P)},reset:function(){return t.resetFilter()}},s=function(P,H){return n(P,s4({hostName:t.hostName},H))},l=function(P){t.onFilter&&t.onFilter({originalEvent:P,query:P.target.value})},c=function(P){if(t.onSelectAll)t.onSelectAll({originalEvent:P,checked:t.selectAll});else{var H=t.isAllSelected()?[]:t.visibleOptions.filter(function(N){return t.isValidOption(N)}).map(function(N){return t.getOptionValue(N)});t.updateModel(P,H,H)}},u=function(){var P=e({className:r("filterIcon")},s("filterIcon")),H=t.filterIcon||b.createElement(P6,P),N=nr.getJSXIcon(H,s4({},P),{props:t});if(t.filter){var z=e({className:r("filterContainer")},s("filterContainer")),$=b.createElement("div",z,b.createElement(wn,{ref:t.filterRef,type:"text",role:"searchbox",value:t.filterValue,onChange:l,className:"p-multiselect-filter",placeholder:t.filterPlaceholder,pt:n("filterInput"),unstyled:t.unstyled,__parentMetadata:{parent:t.metaData}}),N);if(t.filterTemplate){var le={className:z.className,element:$,filterOptions:a,onFilter:l,filterIconClassName:t.filterIconClassName,props:t};$=ke.getJSXElement(t.filterTemplate,le)}return b.createElement(b.Fragment,null,$)}return null},d=u(),f=t.id?t.id+"_selectall":So(),h=e({htmlFor:f,className:r("headerSelectAllLabel")},s("headerSelectAllLabel")),g=e({className:r("headerCheckboxIcon")},s("headerCheckbox.icon")),v=e({className:r("headerCheckboxContainer")},s("headerCheckboxContainer")),m=t.itemCheckboxIcon||b.createElement(vc,g),A=nr.getJSXIcon(m,s4({},g),{selected:t.selected}),w=t.showSelectAll&&b.createElement("div",v,b.createElement(db,{id:f,checked:t.selectAll,onChange:c,role:"checkbox","aria-checked":t.selectAll,icon:A,pt:n("headerCheckbox"),unstyled:i()}),!t.filter&&b.createElement("label",h,t.selectAllLabel)),x=e({className:r("closeIcon"),"aria-hidden":!0},s("closeIcon")),S=t.closeIcon||b.createElement(mc,x),T=nr.getJSXIcon(S,s4({},x),{props:t}),C=e({className:r("header")},s("header")),E=e({type:"button",className:r("closeButton"),"aria-label":pa("close"),onClick:t.onClose},s("closeButton")),_=b.createElement("button",E,T,b.createElement(Qt,null)),M=b.createElement("div",C,w,d,_);if(t.template){var k={className:"p-multiselect-header",checkboxElement:w,checked:t.selectAll,onChange:c,filterElement:d,closeElement:_,closeElementClassName:"p-multiselect-close p-link",closeIconClassName:"p-multiselect-close-icon",onCloseClick:t.onClose,element:M,itemCheckboxIcon:A,props:t};return ke.getJSXElement(t.template,k)}return M});kO.displayName="MultiSelectHeader";function PO(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 mde(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?PO(Object(n),!0).forEach(function(r){_f(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):PO(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var MO=b.memo(function(t){var e=b.useState(!1),n=cd(e,2),r=n[0],i=n[1],a=b.useRef(null),s=Kn(),l=t.ptm,c=t.cx,u=t.isUnstyled,d=function(C){return l(C,{hostName:t.hostName,context:{selected:t.selected,disabled:t.disabled,focused:r,focusedIndex:t.focusedIndex,index:t.index}})},f=function(C){var E;i(!0),a==null||(E=a.current)===null||E===void 0||E.getInput().focus()},h=function(C){i(!1)},g=function(C){t.onClick&&t.onClick(C,t.option),C.preventDefault(),C.stopPropagation()},v=s({className:c("checkboxIcon")},d("checkbox.icon")),m=t.checkboxIcon||b.createElement(vc,v),A=t.selected?nr.getJSXIcon(m,mde({},v),{selected:t.selected}):null,w=t.template?ke.getJSXElement(t.template,t.option):t.label,x=s({className:c("checkboxContainer")},d("checkboxContainer")),S=s({className:ft(t.className,t.option.className,c("item",{itemProps:t})),style:t.style,onClick:g,onFocus:f,onBlur:h,onMouseMove:function(C){return t==null?void 0:t.onMouseMove(C,t.index)},role:"option","aria-selected":t.selected,"data-p-highlight":t.selected,"data-p-disabled":t.disabled},d("item"));return b.createElement("li",ks({},S,{key:t.index+"_multiselectitem"}),b.createElement("div",x,b.createElement(db,{ref:a,checked:t.selected,icon:A,pt:l("checkbox"),unstyled:u(),tabIndex:-1})),b.createElement("span",null,w),b.createElement(Qt,null))});MO.displayName="MultiSelectItem";function LO(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 i1(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?LO(Object(n),!0).forEach(function(r){_f(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):LO(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var BO=b.memo(b.forwardRef(function(t,e){var n=b.useRef(null),r=b.useRef(null),i=Kn(),a=b.useContext(ar),s=t.ptm,l=t.cx,c=t.sx,u=t.isUnstyled,d=function(F,P){return s(F,i1({hostName:t.hostName},P))},f=function(){t.onEnter(function(){if(n.current){var F=t.getSelectedOptionIndex();F!==-1&&setTimeout(function(){return n.current.scrollToIndex(F)},0)}})},h=function(){t.onEntered(function(){t.filter&&t.filterInputAutoFocus&&r.current&&xe.focus(r.current,!1)})},g=function(F){n.current&&n.current.scrollToIndex(0),t.onFilterInputChange&&t.onFilterInputChange(F)},v=function(){return!(t.visibleOptions&&t.visibleOptions.length)&&t.hasFilter},m=function(){return b.createElement(kO,{hostName:t.hostName,id:t.id,filter:t.filter,filterRef:r,filterValue:t.filterValue,filterTemplate:t.filterTemplate,visibleOptions:t.visibleOptions,isValidOption:t.isValidOption,getOptionValue:t.getOptionValue,updateModel:t.updateModel,onFilter:g,filterPlaceholder:t.filterPlaceholder,onClose:t.onCloseClick,showSelectAll:t.showSelectAll,selectAll:t.isAllSelected(),selectAllLabel:t.selectAllLabel,onSelectAll:t.onSelectAll,template:t.panelHeaderTemplate,resetFilter:t.resetFilter,closeIcon:t.closeIcon,filterIcon:t.filterIcon,itemCheckboxIcon:t.itemCheckboxIcon,ptm:s,cx:l,isUnstyled:u,metaData:t.metaData})},A=function(){if(t.panelFooterTemplate){var F=ke.getJSXElement(t.panelFooterTemplate,t,t.onOverlayHide);return b.createElement("div",{className:"p-multiselect-footer"},F)}return null},w=function(F,P){if(t.focusOnHover){var H;t==null||(H=t.changeFocusedOptionIndex)===null||H===void 0||H.call(t,F,P)}},x=function(){var F=ke.getJSXElement(t.emptyFilterMessage,t)||ni("emptyFilterMessage"),P=i({className:l("emptyMessage")},d("emptyMessage"));return b.createElement("li",ks({},P,{key:"emptyFilterMessage"}),F)},S=function(){var F=ke.getJSXElement(t.emptyMessage,t)||ni("emptyMessage"),P=i({className:l("emptyMessage")},d("emptyMessage"));return b.createElement("li",ks({},P,{key:"emptyMessage"}),F)},T=function(F,P){var H=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},N={height:H.props?H.props.itemSize:void 0},z=F.group===!0&&t.optionGroupLabel;if(z){var $=t.optionGroupTemplate?ke.getJSXElement(t.optionGroupTemplate,F,P):t.getOptionGroupLabel(F),le=P+"_"+t.getOptionGroupRenderKey(F),R=i({className:l("itemGroup"),style:c("itemGroup",{scrollerOptions:H})},d("itemGroup"));return b.createElement("li",ks({key:le},R),$)}var Y=t.getOptionLabel(F),se=P+"_"+t.getOptionRenderKey(F),K=t.isOptionDisabled(F),ie=t.isSelected(F);return b.createElement(MO,{hostName:t.hostName,key:se,focusedOptionIndex:t.focusedOptionIndex,label:Y,option:F,style:N,index:P,template:t.itemTemplate,selected:ie,onClick:t.onOptionSelect,onMouseMove:w,disabled:K,className:t.itemClassName,checkboxIcon:t.checkboxIcon,isUnstyled:u,ptm:s,cx:l})},C=function(){return ke.isNotEmpty(t.visibleOptions)?t.visibleOptions.map(T):t.hasFilter?x():S()},E=function(){if(t.virtualScrollerOptions){var F=i1(i1({},t.virtualScrollerOptions),{style:i1(i1({},t.virtualScrollerOptions.style),{height:t.scrollHeight}),className:ft("p-multiselect-items-wrapper",t.virtualScrollerOptions.className),items:t.visibleOptions,autoSize:!0,onLazyLoad:function($){return t.virtualScrollerOptions.onLazyLoad(i1(i1({},$),{filter:t.filterValue}))},itemTemplate:function($,le){return $&&T($,le.index,le)},contentTemplate:function($){var le=v()?x():$.children,R=i({ref:$.contentRef,style:$.style,className:ft($.className,l("list",{virtualScrollerProps:t.virtualScrollerOptions})),role:"listbox","aria-multiselectable":!0},d("list"));return b.createElement("ul",R,le)}});return b.createElement(Om,ks({ref:n},F,{pt:s("virtualScroller"),__parentMetadata:{parent:t.metaData}}))}var P=C(),H=i({className:l("wrapper"),style:{maxHeight:t.scrollHeight}},d("wrapper")),N=i({className:l("list"),role:"listbox","aria-multiselectable":!0},d("list"));return b.createElement("div",H,b.createElement("ul",N,P))},_=function(){var F=t.allowOptionSelect(),P=m(),H=E(),N=A(),z=i({className:ft(t.panelClassName,l("panel",{panelProps:t,context:a,allowOptionSelect:F})),style:t.panelStyle,onClick:t.onClick},d("panel"));if(t.inline)return b.createElement("div",ks({ref:e},z),H,N);var $=i({classNames:l("transition"),in:t.in,timeout:{enter:120,exit:100},options:t.transitionOptions,appear:!0,unmountOnExit:!0,onEnter:f,onEntered:h,onExit:t.onExit,onExited:t.onExited},d("transition")),le=i({ref:t.firstHiddenFocusableElementOnOverlay,role:"presentation",className:"p-hidden-accessible p-hidden-focusable",tabIndex:"0",onFocus:t.onFirstHiddenFocus,"data-p-hidden-accessible":!0,"data-p-hidden-focusable":!0},s("hiddenFirstFocusableEl")),R=i({ref:t.lastHiddenFocusableElementOnOverlay,role:"presentation",className:"p-hidden-accessible p-hidden-focusable",tabIndex:"0",onFocus:t.onLastHiddenFocus,"data-p-hidden-accessible":!0,"data-p-hidden-focusable":!0},s("hiddenLastFocusableEl"));return b.createElement(Ro,ks({nodeRef:e},$),b.createElement("div",ks({ref:e},z),b.createElement("span",le),P,H,N,b.createElement("span",R)))},M=_();return t.inline?M:b.createElement(Vl,{element:M,appendTo:t.appendTo})}));BO.displayName="MultiSelectPanel";function VO(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 bl(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?VO(Object(n),!0).forEach(function(r){_f(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):VO(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function qO(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=vde(t))||e){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(u){throw u},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
3514
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,s=!0,l=!1;return{s:function(){n=n.call(t)},n:function(){var u=n.next();return s=u.done,u},e:function(u){l=!0,a=u},f:function(){try{s||n.return==null||n.return()}finally{if(l)throw a}}}}function vde(t,e){if(t){if(typeof t=="string")return UO(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?UO(t,e):void 0}}function UO(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}var $O=b.memo(b.forwardRef(function(t,e){var n=Kn(),r=b.useContext(ar),i=v2.getProps(t,r),a=b.useState(null),s=cd(a,2),l=s[0],c=s[1],u=b.useState(!1),d=cd(u,2),f=d[0],h=d[1],g=Vx("",i.filterDelay||0),v=cd(g,3),m=v[0],A=v[1],w=v[2],x=b.useState(-1),S=cd(x,2),T=S[0],C=S[1],E=b.useState(!1),_=cd(E,2),M=_[0],k=_[1],F=b.useState(i.inline),P=cd(F,2),H=P[0],N=P[1],z=b.useRef(null),$=b.useRef(null),le=b.useRef(null),R=b.useRef(null),Y=b.useRef(null),se=b.useRef(i.inputRef),K=b.useRef(null),ie=b.useRef(null),re=b.useRef(null),Z=A&&A.trim().length>0,X=ke.isEmpty(i.value),W=i.optionValue?null:i.dataKey,me={props:i,state:{filterState:A,focused:M,overlayVisible:H}},be=v2.setMetaData(me),Te=be.ptm,ye=be.cx,de=be.sx,ne=be.isUnstyled;li(v2.css.styles,ne,{name:"multiselect"});var U=ep({target:z,overlay:ie,listener:function(Ye,Et){var Wt=Et.type,Jn=Et.valid;Jn&&(Wt==="outside"?!Ke(Ye)&&!st(Ye)&&ot():r.hideOverlaysOnDocumentScrolling?ot():xe.isDocument(Ye.target)||wt())},when:H}),ee=cd(U,2),oe=ee[0],ge=ee[1],_e=function(Ye){var Et=Ye.relatedTarget===se.current?xe.getFirstFocusableElement(ie.current,':not([data-p-hidden-focusable="true"])'):se.current;xe.focus(Et)},Ne=function(Ye){var Et=Ye.relatedTarget===se.current?xe.getLastFocusableElement(ie.current,':not([data-p-hidden-focusable="true"])'):se.current;xe.focus(Et)},ve=function(Ye){ws.emit("overlay-click",{originalEvent:Ye,target:z.current})},Ae=function(){return!i.selectionLimit||!i.value||i.value&&i.value.length<i.selectionLimit},Be=function(Ye){var Et=Xt()&&Ye<er.length-1?er.slice(Ye+1).findIndex(function(Wt){return zn(Wt)}):-1;return Et>-1?Et+Ye+1:-1},Ee=function(Ye){var Et=Xt()&&Ye>0?ke.findLastIndex(er.slice(0,Ye),function(Wt){return zn(Wt)}):-1;return Et>-1?Et:-1},B=function(Ye){var Et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Wt=-1;return Xt()&&(Et?(Wt=Ee(Ye),Wt=Wt===-1?Be(Ye):Wt):(Wt=Be(Ye),Wt=Wt===-1?Ee(Ye):Wt)),Wt>-1?Wt:Ye},fe=function(Ye){var Et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:-1,Wt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:-1;if(Et===-1&&(Et=B(Wt,!0)),Wt===-1&&(Wt=B(Et)),Et!==-1&&Wt!==-1){var Jn=Math.min(Et,Wt),br=Math.max(Et,Wt),Pr=er.slice(Jn,br+1).filter(function(oa){return Mn(oa)}).map(function(oa){return Nt(oa)});mn(Ye,Pr,Pr)}},he=function(Ye,Et){var Wt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:-1;if(!(i.disabled||Qe(Et))){var Jn=Wn(Et),br=null;Jn?br=i.value.filter(function(Pr){return!ke.equals(Pr,Nt(Et),W)}):br=[].concat(ode(i.value||[]),[Nt(Et)]),mn(Ye,br,Et),Wt!==-1&&c(Wt)}},ce=function(Ye){!i.inline&&!i.disabled&&!i.loading&&!vt(Ye)&&!Ke(Ye)&&(H?ot():He(),xe.focus(se.current),Ye.preventDefault()),h(!0)},pe=function(Ye){if(!H)He(),i.editable&&kn(Ye,at());else{var Et=l!==-1?xt(l):f?We():ae();Ye.shiftKey&&fe(Ye,T,Et),kn(Ye,Et)}Ye.preventDefault()},Se=function(Ye){var Et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(Ye.altKey&&!Et)l!==-1&&he(Ye,er[l]),H&&ot(),Ye.preventDefault();else{var Wt=l!==-1?Rt(l):f?dt():Pe();kn(Ye,Wt),!H&&He(),Ye.preventDefault()}},De=function(Ye){H?l!==-1&&(Ye.shiftKey?fe(Ye,l):he(Ye,er[l])):(c(-1),pe(Ye)),Ye.preventDefault()},Me=function(Ye){var Et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Wt=Ye.currentTarget;if(Et){var Jn=Wt.value.length;Wt.setSelectionRange(0,Ye.shiftKey?Jn:0),c(-1)}else{var br=Ye.metaKey||Ye.ctrlKey,Pr=We();Ye.shiftKey&&br&&fe(Ye,Pr,T),kn(Ye,Pr),!H&&He()}Ye.preventDefault()},ze=function(Ye){var Et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Wt=Ye.currentTarget;if(Et){var Jn=Wt.value.length;Wt.setSelectionRange(Ye.shiftKey?0:Jn,Jn),lde("focusedOptionIndex")}else{var br=Ye.metaKey||Ye.ctrlKey,Pr=dt();Ye.shiftKey&&br&&fe(Ye,T,Pr),kn(Ye,Pr),!H&&He()}Ye.preventDefault()},rt=function(Ye){Ye.preventDefault()},it=function(Ye){Ye.preventDefault()},ht=function(Ye){var Et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;Et||(H&&Zt()?(xe.focus(Ye.shiftKey?Y.current:R.current),Ye.preventDefault()):(l!==-1&&he(Ye,er[l]),H&&ot(filter)))},Ht=function(){C(l)},hn=function(Ye){var Et=Ye.metaKey||Ye.ctrlKey;switch(Ye.code){case"ArrowUp":if(i.inline)break;Se(Ye);break;case"ArrowDown":if(i.inline)break;pe(Ye);break;case"Space":case"NumpadEnter":case"Enter":if(i.inline)break;De(Ye);break;case"Home":if(i.inline)break;Me(Ye),Ye.preventDefault();break;case"End":if(i.inline)break;ze(Ye),Ye.preventDefault();break;case"PageDown":it(Ye);break;case"PageUp":rt(Ye);break;case"Escape":if(i.inline)break;ot();break;case"Tab":ht(Ye);break;case"ShiftLeft":case"ShiftRight":Ht();break;default:if(Ye.key==="a"&&Et){var Wt=er.filter(function(Jn){return Mn(Jn)}).map(function(Jn){return Nt(Jn)});mn(Ye,Wt,Wt),Ye.preventDefault();break}!Et&&ke.isPrintableCharacter(Ye.key)&&(!H&&He(),Dn(Ye),Ye.preventDefault());break}h(!1)},Ut=function(Ye){if(i.onSelectAll)i.onSelectAll(Ye);else{var Et=null;if(Ye.checked)Et=[];else{var Wt=er.filter(function(Jn){return Mn(Jn)&&!Qe(Jn)});Wt&&(Et=Wt.map(function(Jn){return Nt(Jn)}))}i.selectionLimit&&Et&&Et.length&&(Et=Et.slice(0,i.selectionLimit)),mn(Ye.originalEvent,Et,Et)}},mn=function(Ye,Et,Wt){i.onChange&&(i.onChange({originalEvent:Ye,value:Et,selectedOption:Wt,stopPropagation:function(){Ye==null||Ye.stopPropagation()},preventDefault:function(){Ye==null||Ye.preventDefault()},target:{name:i.name,id:i.id,value:Et}}),xe.focus(se.current))},En=function(Ye){var Et=Ye.query;w(Et),i.onFilter&&i.onFilter({originalEvent:Ye,filter:Et})},Tt=function(){w(""),i.onFilter&&i.onFilter({filter:""})},je=function(Ye){if(H){var Et;Ye?Et=Ye.currentTarget:Et=xe.findSingle(ie.current,'li[data-p-highlight="true"]'),Et&&Et.scrollIntoView&&Et.scrollIntoView({block:"nearest",inline:"nearest"})}},He=function(){N(!0),c(l!==-1?l:i.autoOptionFocus?ae():at()),xe.focus(se.current)},ot=function(){c(-1),N(!1),h(!1)},rn=function(Ye){Di.set("overlay",ie.current,r&&r.autoZIndex||Yn.autoZIndex,r&&r.zIndex.overlay||Yn.zIndex.overlay),xe.addStyles(ie.current,{position:"absolute",top:"0",left:"0"}),wt(),je(),Ye&&Ye()},nn=function(Ye){Ye&&Ye(),oe(),i.onShow&&i.onShow()},Jt=function(){ge()},_n=function(){i.filter&&i.resetFilterOnHide&&Tt(),Di.clear(ie.current),i.onHide&&i.onHide()},wt=function(){!i.inline&&xe.alignOverlay(ie.current,K.current.parentElement,i.appendTo||r&&r.appendTo||Yn.appendTo)},Ke=function(Ye){return xe.getAttribute(Ye.target,"data-pc-section")==="clearicon"},st=function(Ye){return xe.getAttribute(Ye.target,"data-pc-section")==="headercheckboxcontainer"},vt=function(Ye){return ie.current&&ie.current.contains(Ye.target)},Vt=function(Ye){ot(),xe.focus(se.current),Ye.preventDefault(),Ye.stopPropagation()},On=function(){if(i.value!=null&&i.options){if(i.optionGroupLabel){var Ye=0,Et=i.options.findIndex(function(Wt,Jn){return(Ye=Jn)&&$n(i.value,Fe(Wt))!==-1});return Et!==-1?{group:Ye,option:Et}:-1}return $n(i.value,i.options)}return-1},$n=function(Ye,Et){return Et.findIndex(function(Wt){return Ye.some(function(Jn){return ke.equals(Jn,Nt(Wt),W)})})},lr=function(Ye,Et){return ke.equals(Ye,Et,W)},Wn=function(Ye){if(i.value){var Et=Nt(Ye),Wt=At(Ye);return i.value.some(function(Jn){return ke.equals(Wt?Jn:Nt(Jn),Et,W)})}return!1},vr=function(Ye){var Et;if(i.options)if(i.optionGroupLabel){var Wt=qO(i.options),Jn;try{for(Wt.s();!(Jn=Wt.n()).done;){var br=Jn.value;if(Et=Nr(Ye,Fe(br)),Et)break}}catch(Pr){Wt.e(Pr)}finally{Wt.f()}}else Et=Nr(Ye,i.options),ke.isEmpty(Et)&&(Et=Nr(Ye,i.value));return Et?yt(Et):null},Nr=function(Ye,Et){return Et.find(function(Wt){return ke.equals(Nt(Wt),Ye,W)})},yn=function(Ye){k(!0),i.onFocus&&i.onFocus(Ye)},lt=function(Ye){k(!1),i.onBlur&&i.onBlur(Ye)},ut=function(){if(i.onSelectAll)return i.selectAll;if(ke.isEmpty(er))return!1;var Ye=er.filter(function(Et){return!Qe(Et)&&Mn(Et)});return!Ye.some(function(Et){return!Wn(Et)})},yt=function(Ye){return i.optionLabel?ke.resolveFieldData(Ye,i.optionLabel):Ye&&Ye.label!==void 0?Ye.label:Ye},Nt=function(Ye){return i.useOptionAsValue?Ye:i.optionValue?ke.resolveFieldData(Ye,i.optionValue):Ye&&Ye.value!==void 0?Ye.value:Ye},An=function(Ye){return i.dataKey?ke.resolveFieldData(Ye,i.dataKey):yt(Ye)},Nn=function(Ye){return ke.resolveFieldData(Ye,i.optionGroupLabel)},It=function(Ye){return ke.resolveFieldData(Ye,i.optionGroupLabel)},Fe=function(Ye){return ke.resolveFieldData(Ye,i.optionGroupChildren)},Qe=function(Ye){var Et;if(!Ae()&&!Wn(Ye))return!0;var Wt=i.optionDisabled;return Wt?ke.isFunction(Wt)?Wt(Ye):ke.resolveFieldData(Ye,Wt):Ye&&((Et=Ye.disabled)!==null&&Et!==void 0?Et:!1)},At=function(Ye){return!i.useOptionAsValue&&i.optionValue||Ye&&Ye.value!==void 0},$t=function(Ye){return i.optionGroupLabel&&Ye.group},Xt=function(){return ke.isNotEmpty(i.value)},Zt=function(){return xe.getFocusableElements(ie.current,':not([data-p-hidden-focusable="true"])').length>0},Sn=function(Ye){var Et;return Mn(Ye)&&((Et=yt(Ye))===null||Et===void 0?void 0:Et.toLocaleLowerCase(i.filterLocale).startsWith($.current.toLocaleLowerCase(i.filterLocale)))},Mn=function(Ye){return ke.isNotEmpty(Ye)&&!(Qe(Ye)||$t(Ye))},zn=function(Ye){return Mn(Ye)&&Wn(Ye)},at=function(){if(Xt()){for(var Ye=function(){var br=i.value[Wt],Pr=er.findIndex(function(oa){return zn(oa)&&lr(br,Nt(oa))});if(Pr>-1)return{v:Pr}},Et,Wt=i.value.length-1;Wt>=0;Wt--)if(Et=Ye(),Et)return Et.v}return-1},ae=function(){var Ye=at();return Ye<0?We():Ye},Pe=function(){var Ye=at();return Ye<0?dt():Ye},We=function(){return er.findIndex(function(Ye){return Mn(Ye)})},dt=function(){return ke.findLastIndex(er,function(Ye){return Mn(Ye)})},xt=function(Ye){var Et=Ye<er.length-1?er.slice(Ye+1).findIndex(function(Wt){return Mn(Wt)}):-1;return Et>-1?Et+Ye+1:Ye},Rt=function(Ye){var Et=Ye>0?ke.findLastIndex(er.slice(0,Ye),function(Wt){return Mn(Wt)}):-1;return Et>-1?Et:Ye},Dn=function(Ye){$.current=($.current||"")+Ye.key;var Et=-1;ke.isNotEmpty($.current)&&(l!==-1?(Et=er.slice(l).findIndex(function(Wt){return Sn(Wt)}),Et=Et===-1?er.slice(0,l).findIndex(function(Wt){return Sn(Wt)}):Et+l):Et=er.findIndex(function(Wt){return Sn(Wt)}),Et===-1&&l===-1&&(Et=ae()),Et!==-1&&kn(Ye,Et)),le.current&&clearTimeout(le.current),le.current=setTimeout(function(){$.current="",le.current=null},500)},kn=function(Ye,Et){l!==Et&&(c(Et),je(Ye),i.selectOnFocus&&he(Ye,er[Et],!1))},Hn=function(Ye,Et){if(Ye.stopPropagation(),!!Mr(Ye.currentTarget)){var Wt=i.value.filter(function(Jn){return!ke.equals(Jn,Et,W)});i.onRemove&&i.onRemove({originalEvent:Ye,value:Wt}),mn(Ye,Wt,Et)}},Mr=function(Ye){var Et=re.current,Wt=Et.clientWidth<Et.scrollWidth;if(!Wt)return!0;var Jn=Ye.closest('[data-pc-section="token"]'),br=window.getComputedStyle(Et),Pr=window.getComputedStyle(Jn),oa=Et.clientWidth-parseFloat(br.paddingLeft)-parseFloat(br.paddingRight),da=Jn.getBoundingClientRect().right+parseFloat(Pr.marginRight)-Et.getBoundingClientRect().left;return da<=oa},Kr=function(){var Ye=/{(.*?)}/,Et=i.selectedItemsLabel||ni("selectionMessage"),Wt=i.value?i.value.length:0;return Ye.test(Et)?Et.replace(Et.match(Ye)[0],Wt+""):Et},qn=function(){var Ye;if(!X&&!i.fixedPlaceholder){var Et;return ke.isNotEmpty(i.maxSelectedLabels)&&((Et=i.value)===null||Et===void 0?void 0:Et.length)>i.maxSelectedLabels?Kr():ke.isArray(i.value)?i.value.reduce(function(Wt,Jn,br){return Wt+(br!==0?", ":"")+vr(Jn)},""):""}return Ye},Fn=function(){var Ye=i.value?i.value.length:0;if(ke.isNotEmpty(i.maxSelectedLabels)&&Ye>i.maxSelectedLabels)return Kr();if(i.selectedItemTemplate)return X?ke.getJSXElement(i.selectedItemTemplate):i.value.map(function(Wt,Jn){var br=ke.getJSXElement(i.selectedItemTemplate,Wt);return b.createElement(b.Fragment,{key:Jn},br)});if(i.display==="chip"&&!X){var Et=i.value.slice(0,i.maxSelectedLabels||Ye);return Et.map(function(Wt,Jn){var br={context:{value:Wt,index:Jn}},Pr=vr(Wt),oa=Pr+"_"+Jn,da=n({"aria-label":ni("removeTokenIcon"),className:ye("removeTokenIcon"),onClick:function(te){return Hn(te,Wt)},onKeyDown:function(te){return ai(te,Wt)},tabIndex:i.tabIndex||"0"},Te("removeTokenIcon",br)),Vs=!i.disabled&&(i.removeIcon?nr.getJSXIcon(i.removeIcon,bl({},da),{props:i}):b.createElement(cb,da)),mo=n({className:ye("token")},Te("token",br)),Xr=n({className:ye("tokenLabel")},Te("tokenLabel",br));return b.createElement("div",ks({},mo,{key:oa}),b.createElement("span",Xr,Pr),Vs)})}return qn()},sr=function(){var Ye=i.optionGroupLabel?Lr(i.options):i.options;if(Z){var Et=A.trim().toLocaleLowerCase(i.filterLocale),Wt=i.filterBy?i.filterBy.split(","):[i.optionLabel||"label"];if(i.optionGroupLabel){var Jn=[],br=qO(i.options),Pr;try{for(br.s();!(Pr=br.n()).done;){var oa=Pr.value,da=P0.filter(Fe(oa),Wt,Et,i.filterMatchMode,i.filterLocale);da&&da.length&&Jn.push(bl(bl({},oa),_f({},i.optionGroupChildren,da)))}}catch(Vs){br.e(Vs)}finally{br.f()}return Lr(Jn)}return P0.filter(Ye,Wt,Et,i.filterMatchMode,i.filterLocale)}return Ye},Lr=function(Ye){return(Ye||[]).reduce(function(Et,Wt,Jn){Et.push(bl(bl({},Wt),{},{group:!0,index:Jn}));var br=Fe(Wt);return br&&br.forEach(function(Pr){return Et.push(Pr)}),Et},[])},pi=function(Ye){switch(Ye.code){case"Space":case"NumpadEnter":case"Enter":if(i.inline)break;mn(Ye,[],[]),Ye.preventDefault(),Ye.stopPropagation();break}},ai=function(Ye,Et){switch(Ye.code){case"Space":case"NumpadEnter":case"Enter":if(i.inline)break;Hn(Ye,Et),Ye.preventDefault(),Ye.stopPropagation();break}};b.useImperativeHandle(e,function(){return{props:i,show:He,hide:ot,focus:function(){return xe.focus(se.current)},getElement:function(){return z.current},getOverlay:function(){return ie.current},getInput:function(){return se.current}}}),Li(function(){wt()}),b.useEffect(function(){ke.combinedRefs(se,i.inputRef)},[se,i.inputRef]),b.useEffect(function(){i.overlayVisible===!0?He():i.overlayVisible===!1&&ot()},[i.overlayVisible]),fr(function(){H&&A&&Z&&wt()},[H,A,Z]),ja(function(){Di.clear(ie.current)});var ui=function(){var Ye=n({className:ye("clearIcon"),"aria-label":ni("clear"),onClick:function(br){return mn(br,[],[])},onKeyDown:function(br){return pi(br)},tabIndex:i.tabIndex||"0"},Te("clearIcon")),Et=i.clearIcon||b.createElement(mc,Ye),Wt=nr.getJSXIcon(Et,bl({},Ye),{props:i});return!X&&i.showClear&&!i.disabled?Wt:null},Pi=function(){var Ye=Fn(),Et=n({ref:K,className:ye("labelContainer")},Te("labelContainer")),Wt=n({ref:re,className:ye("label",{empty:X})},Te("label"));return b.createElement("div",Et,b.createElement("div",Wt,Ye||i.placeholder||i.emptyMessage||"empty"))},er=sr(),Ui=ke.isNotEmpty(i.tooltip),Ti=v2.getOtherProps(i),Si=ke.reduceKeys(Ti,xe.ARIA_PROPS),Hi=n({className:ye("triggerIcon")},Te("triggerIcon")),fn=n({className:ye("trigger")},Te("trigger")),Ue=i.loadingIcon?nr.getJSXIcon(i.loadingIcon,bl({},Hi),{props:i}):b.createElement(R1,ks({spin:!0},Hi)),Kt=i.dropdownIcon?nr.getJSXIcon(i.dropdownIcon,bl({},Hi),{props:i}):b.createElement(Yd,Hi),jn=b.createElement("div",fn,i.loading?Ue:Kt),jr=!i.inline&&Pi(),kr=!i.inline&&ui(),Ka=n(bl(bl({ref:z,id:i.id,style:bl(bl({},i.style),de("root")),className:ft(i.className,ye("root",{focusedState:M,context:r,overlayVisibleState:H}))},Ti),{},{onClick:ce}),v2.getOtherProps(i),Te("root")),Vr=n({className:"p-hidden-accessible","data-p-hidden-accessible":!0},Te("hiddenInputWrapper")),Es=n(bl({ref:se,id:i.inputId,name:i.name,type:"text",onFocus:yn,onBlur:lt,onKeyDown:hn,role:"combobox","aria-expanded":H,disabled:i.disabled,tabIndex:i.disabled?-1:i.tabIndex,value:qn()},Si),Te("input"));return b.createElement(b.Fragment,null,b.createElement("div",Ka,b.createElement("div",Vr,b.createElement("input",ks({},Es,{readOnly:!0}))),!i.inline&&b.createElement(b.Fragment,null,jr,kr,jn),b.createElement(BO,ks({hostName:"MultiSelect",ref:ie,visibleOptions:er},i,{onClick:ve,onOverlayHide:ot,filterValue:m,focusedOptionIndex:l,onFirstHiddenFocus:_e,onLastHiddenFocus:Ne,firstHiddenFocusableElementOnOverlay:R,lastHiddenFocusableElementOnOverlay:Y,setFocusedOptionIndex:c,hasFilter:Z,isValidOption:Mn,getOptionValue:Nt,updateModel:mn,onFilterInputChange:En,resetFilter:Tt,onCloseClick:Vt,onSelectAll:Ut,getOptionLabel:yt,getOptionRenderKey:An,isOptionDisabled:Qe,getOptionGroupChildren:Fe,getOptionGroupLabel:It,getOptionGroupRenderKey:Nn,isSelected:Wn,getSelectedOptionIndex:On,isAllSelected:ut,onOptionSelect:he,allowOptionSelect:Ae,in:H,onEnter:rn,onEntered:nn,onExit:Jt,onExited:_n,ptm:Te,cx:ye,sx:de,isUnstyled:ne,metaData:me,changeFocusedOptionIndex:kn}))),Ui&&b.createElement(cn,ks({target:z,content:i.tooltip,pt:Te("tooltip")},i.tooltipOptions)))}));$O.displayName="MultiSelect";const bde=t=>{var Te,ye,de,ne,U,ee,oe,ge,_e,Ne;const{field:e,fieldIndex:n,row:r,pageIndex:i,sectionIndex:a,rowIndex:s,columnIndex:l,isDisabled:c}=t,{isBuilderMode:u,isAdmin:d}=zt(),[f,h]=O.useState([]),[g,v]=O.useState(!1),[m,A]=O.useState(!1),{userSelectedLanguage:w,formBuilderFormLayout:x,sectionSettingUpdate:S,pageSettingUpdate:T,fieldSettingUpdate:C}=sn(),{taskRegisterData:E,updateTaskRegisterData:_,updateTaskProgressValue:M,userTaskSubmitFormData:k,updateUserFormDataSubmit:F,task_status:P,TASK_PUBLISHED:H}=Ar(),[N,z]=O.useState(0),[$,le]=O.useState(!1),R=()=>{le(!0)},Y=()=>{le(!1)},se=ve=>{A(ve)},K=()=>{A(!1)},ie=ve=>{h(ve.value),r!=null&&r.rowIsRepeatable?W(i,a,e,ve.value):X(ve.value)},re=ve=>{e==null||e.conditionalTabRules.rules.map(Ae=>{var Be;(Be=Ae==null?void 0:Ae.conditions)==null||Be.map(Ee=>{var B;if((B=ve.value)!=null&&B.some(fe=>fe===Ee.option)){const fe=_t.findIndex(x,ce=>{var pe;return ce.uuid===((pe=Ee==null?void 0:Ee.tab)==null?void 0:pe.uuid)}),he=x[fe];he.isHidden=!1,T(fe,he)}else{const fe=_t.findIndex(x,ce=>{var pe;return ce.uuid===((pe=Ee==null?void 0:Ee.tab)==null?void 0:pe.uuid)}),he=x[fe];he.isHidden=!0,T(fe,he)}})})},Z=ve=>{e==null||e.conditionalSectionRules.rules.map(Ae=>{var Be;(Be=Ae==null?void 0:Ae.conditions)==null||Be.map(Ee=>{var B;if((B=ve.value)!=null&&B.some(fe=>fe===Ee.option)){const fe=_t.findIndex(x,pe=>{var Se;return pe.uuid===((Se=Ee==null?void 0:Ee.tab)==null?void 0:Se.uuid)}),he=_t.findIndex(x[fe].children,pe=>{var Se;return pe.uuid===((Se=Ee==null?void 0:Ee.section)==null?void 0:Se.uuid)}),ce=x[fe].children[he];ce.isHidden=!1,S(fe,he,ce)}else{const fe=_t.findIndex(x,pe=>{var Se;return pe.uuid===((Se=Ee==null?void 0:Ee.tab)==null?void 0:Se.uuid)}),he=_t.findIndex(x[fe].children,pe=>{var Se;return pe.uuid===((Se=Ee==null?void 0:Ee.section)==null?void 0:Se.uuid)}),ce=x[fe].children[he];ce.isHidden=!0,S(fe,he,ce)}})})},X=ve=>{const Ae=k,Be=_t.cloneDeep(E);if((ve==null?void 0:ve.length)>0&&(Ae==null?void 0:Ae.length)>0){Be[e==null?void 0:e.uuid]=ve;for(const Ee of Ae)Ee.fieldId===t.field.uuid&&(Ee.postData[0]={postValue:ve})}else if(delete Be[e==null?void 0:e.uuid],(Ae==null?void 0:Ae.length)>0)for(const Ee of Ae)Ee.fieldId===t.field.uuid&&(Ee.postData[0]={postValue:[]});if(!(r!=null&&r.rowIsRepeatable)){_(Be);const Ee=Object.keys(Be).length;M(Ee)}},W=(ve,Ae,Be,Ee)=>{var B;if(h(Ee),k){const fe=[...k],he=_t.findIndex(fe,function(Se){return Se.rowId===(r==null?void 0:r.uuid)});let ce=(B=k[he])==null?void 0:B.repeatableFields,pe="<ol class='card '>";Ee==null||Ee.map(Se=>{pe=pe+`<li>${Se}</li>`}),pe=pe+"</ol>",ce={...ce,[Be==null?void 0:Be.uuid]:pe},fe[he]={...fe[he],repeatableFields:ce},F(fe)}(Ee==null?void 0:Ee.length)>0?Be.isValid=1:Be.isValid=0,C(ve,Ae,s,l,n,Be)},me=()=>{var ve,Ae,Be;if(r!=null&&r.rowIsRepeatable){if(r!=null&&r.repeatableFields){const Ee=[...r.repeatableFields],B=_t.findIndex(Ee,function(fe){return fe.uuid===(e==null?void 0:e.uuid)});B>=0&&Ee[B].fieldData?h(fe=>[...fe,Ee[B].fieldData]):(e.isValid=0,h([]))}}else{const Ee=k,B=_t.cloneDeep(E);if(Ee!=null&&Ee.length){for(const fe of Ee)if(fe.fieldId===t.field.uuid&&((ve=fe==null?void 0:fe.postData)!=null&&ve.length)){h((Ae=fe==null?void 0:fe.postData[0])==null?void 0:Ae.postValue),B[e==null?void 0:e.uuid]=(Be=fe==null?void 0:fe.postData[0])==null?void 0:Be.postValue;const he=Object.keys(B).length;M(he);break}}}v(!0)};O.useEffect(()=>{!g&&(k==null?void 0:k.length)>0&&me();const ve=Gt.addListener("onSubmitUserForm",()=>{var Ee;(Ee=e==null?void 0:e.attributes)!=null&&Ee.required?(f==null?void 0:f.length)>0?e.isValid=1:e.isValid=0:e.isValid=1}),Ae=Gt.addListener("clearRepeatableFields",Ee=>{Ee===(r==null?void 0:r.uuid)&&(h([]),z(0),e.isValid=0)}),Be=Gt.addListener("OnInvalidFieldCatch",Ee=>{e.uuid===(Ee==null?void 0:Ee.fieldId)?z(1):z(0)});return()=>{ve.remove(),Be.remove(),Ae.remove()}});const be=o.jsxs("div",{onMouseOver:R,onMouseOut:Y,children:[u&&$&&o.jsx(Wr,{handleFieldSettingsSidebar:se,...t}),o.jsxs("div",{className:`field ${u&&" py-3 px-4 builder-element-wrapper "}${(e==null?void 0:e.isFluid)===!0&&" p-fluid"}`,children:[o.jsxs("div",{className:"grid",children:[o.jsxs("div",{className:u?"col-12 p-fluid field-form-builder":"col-12 p-fluid",children:[(e==null?void 0:e.showHeaderText)&&o.jsx("h6",{children:(Te=e==null?void 0:e.headerText)==null?void 0:Te[w==null?void 0:w.type]}),(e==null?void 0:e.showLabel)&&o.jsxs("label",{htmlFor:e.uuid,className:"flex font-bold mb-3 text-gray-900 text-xl",children:[o.jsx(ca,{...t}),((ye=e==null?void 0:e.attributes)==null?void 0:ye.required)&&o.jsx("span",{className:"must-required mr-1",children:"*"})," ",u?o.jsx(aa,{...t}):o.jsx(o.Fragment,{children:(de=e==null?void 0:e.label)==null?void 0:de[w==null?void 0:w.type]}),o.jsx("span",{className:"ml-3",children:(e==null?void 0:e.showToolTip)&&o.jsx(zi,{message:(ne=e==null?void 0:e.toolTip)==null?void 0:ne[w==null?void 0:w.type],position:"right"})})]}),o.jsx($O,{onFocus:()=>z(1),value:f,onChange:ve=>{ie(ve),re(ve),Z(ve)},options:e==null?void 0:e.options,optionLabel:`optionText.${w.type}`,placeholder:(U=e==null?void 0:e.placeholder)==null?void 0:U[w==null?void 0:w.type],display:"chip",disabled:d||c}),((ee=e==null?void 0:e.attributes)==null?void 0:ee.required)&&o.jsx("small",{className:"error",children:N===1&&!((f==null?void 0:f.length)>0)?(oe=e==null?void 0:e.validationMesssage)==null?void 0:oe.english:""})]}),o.jsx("div",{children:(e==null?void 0:e.showHelperText)&&o.jsx("small",{children:(ge=e==null?void 0:e.helperText)==null?void 0:ge[w==null?void 0:w.type]})}),d&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(ki,{...t})]})]}),((_e=e==null?void 0:e.inlineConditionalRules)==null?void 0:_e.rules.length)>0&&u===!0&&o.jsx("p",{children:"Inline conditional rules"}),(Ne=e==null?void 0:e.inlineConditionalRules)==null?void 0:Ne.rules.map((ve,Ae)=>u===!1?o.jsx("div",{children:ve==null?void 0:ve.conditions.map((Be,Ee)=>{if(f!=null&&f.some(B=>B===Be.value)||u)return o.jsx("div",{className:"p-field p-pt-2",children:o.jsx(o.Fragment,{children:o.jsx(ab,{data:e,ruleIndex:Ae,conditionIndex:Ee,condition:Be,...t})})},Ee)})},`rule-${Ae}`):o.jsx(ci,{className:"mt-4",header:`Rule ${Ae+1}`,children:o.jsx("div",{children:ve==null?void 0:ve.conditions.map((Be,Ee)=>{if(f!=null&&f.some(B=>B===Be.value)||u)return o.jsx("div",{className:"p-field p-pt-2",children:o.jsx(o.Fragment,{children:o.jsx(ab,{data:e,...t,ruleIndex:Ae,conditionIndex:Ee,condition:Be})})},Ee)})},`rule-${Ae}`)},Ae))]})]});return o.jsxs(o.Fragment,{children:[o.jsx(Qi,{visibilty:m,closeSettingFieldSidebar:K,...t},e==null?void 0:e.uuid),o.jsx(xi,{...t,fieldWrap:be})]})},yde=t=>{const{options:e,title:n}=t,r=e.collapsed?"pi pi-chevron-down":"pi pi-chevron-up",i=`${e.className} justify-content-start`,a=`${e.titleClassName} pl-1`;return o.jsxs("div",{className:i,children:[o.jsxs("button",{className:e.togglerClassName,onClick:e.onTogglerClick,children:[o.jsx("span",{className:r}),o.jsx(Qt,{})]}),o.jsx("span",{className:a,children:n})]})},jO=t=>{const e=O.useRef(null),{optionIndex:n,option:r,field:i,fieldIndex:a,pageIndex:s,sectionIndex:l,rowIndex:c,columnIndex:u,path:d}=t,{userSelectedLanguage:f,fieldSettingUpdate:h,fieldSettingUpdateInlineConditional:g,gridComponentFieldSettingUpdate:v}=sn(),[m,A]=O.useState(r==null?void 0:r.optionText[f==null?void 0:f.type]);O.useEffect(()=>(A(r==null?void 0:r.optionText[f==null?void 0:f.type]),()=>{}),[i]),O.useEffect(()=>{const S=setTimeout(()=>{x("optionText",r.uuid,m,f)},1500);return()=>{clearTimeout(S)}},[m]);const w=S=>{const T=d.split("-").map(Number);(t==null?void 0:t.fieldContainer)==="inline-condition-container"?g(T[fa],T[ha],T[Ca],T[xa],T[Ta],T[Fa],T[Xo],T[wo],S):(T==null?void 0:T.length)>Fa&&(T==null?void 0:T.length)===Bl+1&&(i!=null&&i.componentType)&&(t==null?void 0:t.fieldContainer)==="grid-container"?v(T[fa],T[ha],T[Ca],T[xa],T[Ta],T[5],T[6],T[7],S):h(s,l,c,u,a,{...S})},x=(S,T,C,E)=>{if(i!=null&&i.options){const _=[...i.options];_[n][S][E==null?void 0:E.type]=C,w({...i,options:_})}};return o.jsx(o.Fragment,{children:o.jsx(D3,{id:r==null?void 0:r.uuid,style:{display:"inline-block"},className:"builder-input-label-edit",innerRef:e,html:m||"",disabled:!1,onChange:S=>{A(S.target.value)},tagName:"article"},r==null?void 0:r.uuid)})},zO=t=>{const{optionId:e,field:n,fieldIndex:r,columnIndex:i,sectionIndex:a,rowIndex:s,pageIndex:l,path:c}=t,{fieldSettingUpdate:u,fieldSettingUpdateInlineConditional:d,gridComponentFieldSettingUpdate:f}=sn(),h=m=>{const A=c.split("-").map(Number);(t==null?void 0:t.fieldContainer)==="inline-condition-container"?d(A[fa],A[ha],A[Ca],A[xa],A[Ta],A[Fa],A[Xo],A[wo],m):(A==null?void 0:A.length)>Fa&&(A==null?void 0:A.length)===Bl+1&&(m!=null&&m.componentType)&&(t==null?void 0:t.fieldContainer)==="grid-container"?f(A[fa],A[ha],A[Ca],A[xa],A[Ta],A[5],A[6],A[7],m):u(l,a,s,i,r,m)},g=()=>{const m=n==null?void 0:n.options.filter(function(w){return(w==null?void 0:w.uuid)!==e}),A={...n,options:m};h(A)},v=()=>{const m=_t.cloneDeep(n),A={...m,options:[...m.options,{uuid:tt(),optionText:{english:"Unititled"},value:tt(),score:0,hyperlinkText:{english:""},abbreviationText:{english:""},custom_values:{}}]};h(A)};return o.jsxs(o.Fragment,{children:[o.jsx(Ft,{text:!0,label:"Add",className:"w-5rem ml-3 mr-3",onClick:()=>v(),size:"small"}),o.jsx(Ft,{text:!0,className:"w-3rem",size:"small",onClick:()=>{g()},icon:"pi pi-trash"})]})},Ade=t=>{var Ne,ve,Ae,Be,Ee,B,fe,he,ce;const[e,n]=O.useState([]),[r,i]=O.useState(0),{taskRegisterData:a,updateTaskRegisterData:s,updateTaskProgressValue:l,userTaskSubmitFormData:c,task_status:u,updateUserFormDataSubmit:d,taskFieldUpdateHook:f,TASK_PUBLISHED:h,updateProgressDataValuesHook:g}=Ar(),{globalAlignment:v,isBuilderMode:m,isRenderView:A,isAdmin:w}=zt(),{sectionSettingUpdate:x,userSelectedLanguage:S,fieldSettingUpdate:T,formBuilderFormLayout:C,pageSettingUpdate:E}=sn(),{field:_,fieldIndex:M,sectionIndex:k,pageIndex:F,row:P,rowIndex:H,columnIndex:N,section:z,page:$,isDisabled:le}=t,[R,Y]=O.useState(!1),[se,K]=O.useState(!1),[ie,re]=O.useState(!1),Z=()=>{re(!0)},X=()=>{re(!1)},W=pe=>{Y(pe)},me=()=>{Y(!1)},be=pe=>{const Se=[...e];pe.checked?Se.push(pe.value):Se.splice(Se.indexOf(pe.value),1),n(Se),P!=null&&P.rowIsRepeatable?c&&oe(F,k,_,Se):(Te(pe),de(Se),c&&(U(Se),(Se==null?void 0:Se.length)>0?_.isValid=1:_.isValid=0,f(F,k,H,N,M,_)))},Te=pe=>{var De;const Se=(De=pe==null?void 0:pe.value)==null?void 0:De.value;_==null||_.conditionalTabRules.rules.map(Me=>{var ze;(ze=Me==null?void 0:Me.conditions)==null||ze.map(rt=>{if(Se===(rt==null?void 0:rt.option)&&(pe!=null&&pe.checked)){const it=_t.findIndex(C,Ht=>{var hn;return Ht.uuid===((hn=rt==null?void 0:rt.tab)==null?void 0:hn.uuid)}),ht=C[it];ht.isHidden=!1,E(it,ht)}else if(Se===(rt==null?void 0:rt.option)&&!(pe!=null&&pe.checked)){const it=_t.findIndex(C,Ht=>{var hn;return Ht.uuid===((hn=rt==null?void 0:rt.tab)==null?void 0:hn.uuid)}),ht=C[it];ht.isHidden=!0,E(it,ht)}})})},ye=O.useCallback((pe,Se)=>{var De;if((c==null?void 0:c.length)>0){const Me=c;if(Me!=null&&Me.length){const ze=a;for(const[it,ht]of Se.children.entries())for(const[,Ht]of ht.children.entries())for(const[hn,Ut]of Ht.children.entries())if(ht!=null&&ht.rowIsRepeatable){if((ht==null?void 0:ht.rowIsRepeatable)===!0){const mn=_t.findIndex(Me,function(En){return En.rowId===ht.uuid});pe===!0?mn===-1&&(Me.push({postData:[],tabId:$.uuid,rowId:ht==null?void 0:ht.uuid,tabIndex:F,sectionId:z.uuid,minimumEntries:z==null?void 0:z.minimumEntries,sectionIndex:k,sectionHeading:z.heading,subHeadingText:z.subHeadingText,repeatableFields:{},repeatableFieldsData:[],language:"english",isHiddenSection:z.isHidden&&z.isHidden===1?1:0,reviewerChecklist:ht==null?void 0:ht.reviewerChecklist}),ze[ht==null?void 0:ht.uuid]&&delete ze[ht==null?void 0:ht.uuid]):(ze[ht==null?void 0:ht.uuid]&&delete ze[ht==null?void 0:ht.uuid],mn>=0&&Me.splice(mn,1))}}else{const mn=_t.findIndex(Me,function(En){return En.fieldId===Ut.uuid});pe?mn===-1&&(Me.push({postData:[],tabId:$.uuid,tabIndex:F,...Ut.inlineConditionalRules?{inlineConditionalRules:Ut.inlineConditionalRules}:{},...Ut.conditionalTabRules?{conditionalTabRules:Ut.conditionalTabRules}:{},...Ut.conditionalSectionRules?{conditionalSectionRules:Ut.conditionalSectionRules}:{},sectionId:z.uuid,sectionIndex:k,sectionHeading:z.heading,subHeadingText:z.subHeadingText,reviewerChecklist:Ut==null?void 0:Ut.reviewerChecklist,rowId:ht.uuid,rowIndex:it,columnId:z.uuid,columnIndex:N,inlineConditionalField:!0,fieldIndex:hn,fieldId:Ut.uuid,fieldInputType:Ut.componentType,fieldTitle:(De=Ut.label)==null?void 0:De.english,fieldDescription:Ut.description||null,fieldHelperText:Ut.helperText||null,fieldHeaderText:Ut.headerText||null,fieldFooterText:Ut.footerText||null,fieldTitleAbb:Ut.abbreviationLabel||Ut.label,question_abb_table:Ut.textForTable||null,language:"english",isHiddenfield:Ut.isHidden&&Ut.isHidden===1?1:0,isHiddenSection:z.isHidden&&z.isHidden===1?1:0}),ze[Ut==null?void 0:Ut.uuid]&&delete ze[Ut==null?void 0:Ut.uuid]):(ze[Ut==null?void 0:Ut.uuid]&&delete ze[Ut==null?void 0:Ut.uuid],mn>=0&&Me.splice(mn,1))}const rt=Object.keys(ze).length;g({progressMaxValue:Me==null?void 0:Me.length,progressValue:rt}),d([...Me])}}},[N,_==null?void 0:_.abbreviationLabel,_==null?void 0:_.componentType,_==null?void 0:_.conditionalSectionRules,_==null?void 0:_.conditionalTabRules,_==null?void 0:_.description,_==null?void 0:_.footerText,_==null?void 0:_.headerText,_==null?void 0:_.helperText,_==null?void 0:_.inlineConditionalRules,_==null?void 0:_.isHidden,_==null?void 0:_.label,_==null?void 0:_.reviewerChecklist,_==null?void 0:_.textForTable,$==null?void 0:$.uuid,F,P==null?void 0:P.uuid,H,z==null?void 0:z.heading,z==null?void 0:z.isHidden,z==null?void 0:z.subHeadingText,z==null?void 0:z.uuid,k,a,g,d,c]),de=pe=>{_==null||_.conditionalSectionRules.rules.map(Se=>{var De;(De=Se==null?void 0:Se.conditions)==null||De.map(Me=>{if(pe!=null&&pe.some(ze=>ze.value===Me.option)){const ze=_t.findIndex(C,ht=>{var Ht;return ht.uuid===((Ht=Me==null?void 0:Me.tab)==null?void 0:Ht.uuid)}),rt=_t.findIndex(C[ze].children,ht=>{var Ht;return ht.uuid===((Ht=Me==null?void 0:Me.section)==null?void 0:Ht.uuid)}),it=C[ze].children[rt];it.isHidden=!1,ye(!0,C[ze].children[rt]),x(ze,rt,it)}else{const ze=_t.findIndex(C,ht=>{var Ht;return ht.uuid===((Ht=Me==null?void 0:Me.tab)==null?void 0:Ht.uuid)}),rt=_t.findIndex(C[ze].children,ht=>{var Ht;return ht.uuid===((Ht=Me==null?void 0:Me.section)==null?void 0:Ht.uuid)}),it=C[ze].children[rt];it.isHidden=!0,ye(!1,C[ze].children[rt]),x(ze,rt,it)}})})},ne=()=>{var Se,De,Me,ze;const pe=c;if((pe==null?void 0:pe.length)>0){for(const rt of pe)if(rt.fieldId===t.field.uuid){n(((Se=rt==null?void 0:rt.postData[0])==null?void 0:Se.postValue.length)>0?(De=rt==null?void 0:rt.postData[0])==null?void 0:De.postValue:[]);const it=((Me=rt==null?void 0:rt.postData[0])==null?void 0:Me.postValue.length)>0?(ze=rt==null?void 0:rt.postData[0])==null?void 0:ze.postValue:[];_==null||_.conditionalTabRules.rules.map(ht=>{var Ht;(Ht=ht==null?void 0:ht.conditions)==null||Ht.map(hn=>{if(it.some(Ut=>Ut.value===(hn==null?void 0:hn.option))){const Ut=_t.findIndex(C,En=>{var Tt;return En.uuid===((Tt=hn==null?void 0:hn.tab)==null?void 0:Tt.uuid)}),mn=C[Ut];mn.isHidden=!1,E(Ut,mn)}})}),K(!0);break}}},U=pe=>{const Se=c,De=_t.cloneDeep(a);if((pe==null?void 0:pe.length)>0&&(Se==null?void 0:Se.length)>0){De[_==null?void 0:_.uuid]=pe;for(const ze of Se)ze.fieldId===t.field.uuid&&(ze.postData[0]={postValue:pe});s(De);const Me=Object.keys(De).length;l(Me)}else{if(delete De[_==null?void 0:_.uuid],(Se==null?void 0:Se.length)>0)for(const ze of Se)ze.fieldId===t.field.uuid&&(ze.postData[0]={postValue:[]});s(De);const Me=Object.keys(De).length;l(Me)}},ee=()=>{const pe=[];return _==null||_.options.map((Se,De)=>{var ze,rt,it,ht;const Me=e;pe.push(o.jsxs("div",{className:`field ${m&&" py-3 px-4 builder-element-wrapper "}${(_==null?void 0:_.isFluid)===!0&&" p-fluid"}`,children:[o.jsxs("div",{className:"flex align-items-center gap-2",children:[o.jsx(Yr,{id:`checkbox-option-${De}-${Se==null?void 0:Se.uuid}-${m?"builder":"preview"}`,onFocus:()=>i(1),disabled:w||le,onChange:Ht=>{be(Ht)},value:Se,checked:Me==null?void 0:Me.some(Ht=>Ht.uuid===Se.uuid)}),((ze=Se==null?void 0:Se.hyperlinkText)==null?void 0:ze[S==null?void 0:S.type])===""?o.jsxs("label",{htmlFor:`checkbox-option-${De}-${Se==null?void 0:Se.uuid}-${m?"builder":"preview"}`,children:[_!=null&&_.showAlphabetList?o.jsxs("span",{className:"mx-2",children:[" ",xO(De)," "]}):o.jsx(o.Fragment,{}),m?o.jsx(o.Fragment,{children:o.jsx(jO,{...t,option:Se,optionIndex:De})}):o.jsx(o.Fragment,{children:(rt=Se==null?void 0:Se.optionText)==null?void 0:rt[S==null?void 0:S.type]})]}):o.jsx("label",{children:o.jsx("a",{href:(it=Se==null?void 0:Se.hyperlinkText)==null?void 0:it[S==null?void 0:S.type],target:"_blank",rel:"noreferrer",children:(ht=Se==null?void 0:Se.optionText)==null?void 0:ht[S==null?void 0:S.type]})})]}),m&&o.jsx("div",{className:"builder-radio-option-settings",children:o.jsx(zO,{optionId:Se==null?void 0:Se.uuid,...t})})]},`checkbox-option-${De}-${Se==null?void 0:Se.uuid}-${m?"builder":"preview"}`))}),pe};O.useEffect(()=>{se||ne();const pe=Gt.addListener("clearRepeatableFields",Me=>{Me===(P==null?void 0:P.uuid)&&(n([]),i(0),_.isValid=0,T(F,k,H,N,M,_))}),Se=Gt.addListener("onSubmitUserForm",()=>{var ze;const Me=e;(ze=_==null?void 0:_.attributes)!=null&&ze.required?(Me.length>0?_.isValid=1:_.isValid=0,f(F,k,H,N,M,_)):_.isValid=1}),De=Gt.addListener("OnInvalidFieldCatch",Me=>{_.uuid===(Me==null?void 0:Me.fieldId)?i(1):i(0)});return()=>{Se.remove(),De.remove(),pe.remove()}});const oe=(pe,Se,De,Me)=>{var Ht;n(Me);const ze=[...c],rt=_t.findIndex(ze,function(hn){return hn.rowId===(P==null?void 0:P.uuid)});let it=(Ht=c[rt])==null?void 0:Ht.repeatableFields,ht="<ol class='card '>";Me==null||Me.map(hn=>{ht=ht+`<li>${hn.value}</li>`}),ht=ht+"</ol>",it={...it,[De==null?void 0:De.uuid]:ht},ze[rt]={...ze[rt],repeatableFields:it},d(ze),(Me==null?void 0:Me.length)>0?De.isValid=1:De.isValid=0,T(pe,Se,H,N,rt,De)},ge=o.jsxs("div",{onMouseOver:Z,onMouseOut:X,children:[m&&ie&&o.jsx(Wr,{handleFieldSettingsSidebar:W,...t}),o.jsx("div",{className:`field ${m&&" py-3 px-4 builder-element-wrapper "}${(_==null?void 0:_.isFluid)===!0&&" p-fluid"}`,children:o.jsxs("div",{className:"grid",children:[o.jsxs("div",{className:"col-12",children:[(_==null?void 0:_.showHeaderText)&&o.jsx("h6",{children:(Ne=_==null?void 0:_.headerText)==null?void 0:Ne[S==null?void 0:S.type]}),(_==null?void 0:_.showLabel)&&o.jsxs("label",{htmlFor:`${M}`,className:"flex font-bold mb-3 text-gray-900 text-xl",children:[o.jsx(ca,{...t}),((ve=_==null?void 0:_.attributes)==null?void 0:ve.required)&&o.jsx("span",{className:"must-required mr-1",children:"*"})," ",m?o.jsx(aa,{...t}):o.jsx(o.Fragment,{children:(Ae=_==null?void 0:_.label)==null?void 0:Ae[S==null?void 0:S.type]}),o.jsx("span",{className:"ml-3",children:(_==null?void 0:_.showToolTip)&&o.jsx(zi,{message:(Be=_==null?void 0:_.toolTip)==null?void 0:Be[S==null?void 0:S.type],position:"right"})})]}),ee(),o.jsx("div",{children:((Ee=_==null?void 0:_.attributes)==null?void 0:Ee.required)&&o.jsx("small",{className:"error",children:r===1&&!(e&&(e==null?void 0:e.length)>0)?(B=_==null?void 0:_.validationMesssage)==null?void 0:B.language:""})}),o.jsx("div",{children:(_==null?void 0:_.showHelperText)&&o.jsx("small",{children:(fe=_==null?void 0:_.helperText)==null?void 0:fe[S==null?void 0:S.type]})}),((he=_==null?void 0:_.inlineConditionalRules)==null?void 0:he.rules.length)>0&&m===!0&&o.jsx("p",{children:"Inline conditional rules"}),(ce=_==null?void 0:_.inlineConditionalRules)==null?void 0:ce.rules.map((pe,Se)=>{if(m===!1){const De=e;return o.jsx("div",{children:pe==null?void 0:pe.conditions.map((Me,ze)=>o.jsx(O.Fragment,{children:o.jsx(e0,{isConditionTrue:De==null?void 0:De.some(rt=>rt.value===Me.value),inputValue:e,condition:Me,ruleIndex:Se,conditionIndex:ze,field:_,section:z,page:$,row:P,pageIndex:F,sectionIndex:k,rowIndex:H,columnIndex:N,...t})},`select-rule-${Se}-`+ze))},`rule-${Se}`)}else return o.jsx(ci,{className:"mt-4",header:`Rule ${Se+1}`,children:o.jsx("div",{children:pe==null?void 0:pe.conditions.map((De,Me)=>o.jsx(O.Fragment,{children:o.jsxs("div",{className:"card",children:[o.jsx(fu,{style:{marginTop:-20},className:"mr-2",severity:"success",value:`Condition: ${De==null?void 0:De.value}`,rounded:!0}),o.jsx(e0,{isConditionTrue:(e==null?void 0:e.some(ze=>ze.value===De.value))||m,inputValue:e,condition:De,ruleIndex:Se,conditionIndex:Me,field:_,section:z,page:$,row:P,pageIndex:F,sectionIndex:k,rowIndex:H,columnIndex:N,...t})]})},`select-rule-${Se}-`+Me))},`rule-${Se}`)},Se)})]}),w&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(ki,{...t})]})]})})]}),_e=()=>{let pe="";return m&&(pe=pe+" field-form-builder"),u===h&&w===!0&&(pe=pe+" card"),pe};return o.jsxs(o.Fragment,{children:[R===!0&&o.jsx(Qi,{visibilty:R,closeSettingFieldSidebar:me,...t},_==null?void 0:_.uuid),o.jsx("div",{className:_e(),dir:v,children:u===h&&w===!0?o.jsx(ci,{headerTemplate:pe=>{var Se;return o.jsx(yde,{options:pe,title:(Se=_==null?void 0:_.label)==null?void 0:Se[S==null?void 0:S.type]})},toggleable:!0,children:ge}):ge})]})},wde=6,Sde=t=>{var ne,U,ee,oe,ge,_e,Ne,ve,Ae,Be,Ee;const{task_status:e,taskRegisterData:n,updateTaskRegisterData:r,updateTaskProgressValue:i,userTaskSubmitFormData:a,updateUserFormDataSubmit:s,updateProgressDataValuesHook:l,TASK_PUBLISHED:c}=Ar(),{field:u,row:d,pageIndex:f,sectionIndex:h,section:g,page:v,rowIndex:m,columnIndex:A,isDisabled:w=!1}=t,{isAdmin:x,isBuilderMode:S}=zt(),{pageSettingUpdate:T,formBuilderFormLayout:C,sectionSettingUpdate:E,userSelectedLanguage:_}=sn(),[M,k]=O.useState(!1),[F,P]=O.useState(null),[H,N]=O.useState(0),[z,$]=O.useState(!1),[le,R]=O.useState(!1),Y=()=>{R(!0)},se=()=>{R(!1)},K=B=>{k(B)},ie=()=>{k(!1)},re=()=>{var B,fe,he,ce;if((a==null?void 0:a.length)>0)if(d!=null&&d.rowIsRepeatable){if(d!=null&&d.repeatableFields){const pe=[...d.repeatableFields],Se=_t.findIndex(pe,function(De){return De.uuid===(u==null?void 0:u.uuid)});Se>=0&&pe[Se].fieldData?P(pe[Se].fieldData):(u.isValid=0,P(null))}}else{const pe=a,Se=_t.cloneDeep(n);let De=null;if(pe!=null&&pe.length){for(const Me of pe)if(Me.fieldId===t.field.uuid&&((B=Me==null?void 0:Me.postData)!=null&&B.length)){De=(fe=Me==null?void 0:Me.postData[0])==null?void 0:fe.postValue,P((he=Me==null?void 0:Me.postData[0])==null?void 0:he.postValue),Se[u==null?void 0:u.uuid]=(ce=Me==null?void 0:Me.postData[0])==null?void 0:ce.postValue;const ze=Object.keys(Se).length;i(ze);break}}Z({value:De}),W({value:De})}setTimeout(()=>{$(!0)},2e3)},Z=B=>{const fe=B.value;u==null||u.conditionalTabRules.rules.map(he=>{var ce;(ce=he==null?void 0:he.conditions)==null||ce.map(pe=>{const Se=_t.findIndex(C,De=>{var Me;return De.uuid===((Me=pe==null?void 0:pe.tab)==null?void 0:Me.uuid)});if(fe===(pe==null?void 0:pe.option)){const De=C[Se];De.isHidden=!1,T(Se,De)}else{let De=C[Se];De={...De,isHidden:!0},T(Se,De)}})})},X=O.useCallback((B,fe)=>{var he;if((a==null?void 0:a.length)>0){const ce=a;if(ce!=null&&ce.length){const pe=n;for(const[De,Me]of fe.children.entries())for(const[,ze]of Me.children.entries())for(const[rt,it]of ze.children.entries())if(Me!=null&&Me.rowIsRepeatable){if((Me==null?void 0:Me.rowIsRepeatable)===!0){const ht=_t.findIndex(ce,function(Ht){return Ht.rowId===Me.uuid});B===!0?ht===-1&&(ce.push({postData:[],tabId:v.uuid,rowId:Me==null?void 0:Me.uuid,tabIndex:f,sectionId:g.uuid,minimumEntries:g==null?void 0:g.minimumEntries,sectionIndex:h,sectionHeading:g.heading,subHeadingText:g.subHeadingText,repeatableFields:{},repeatableFieldsData:[],language:"english",isHiddenSection:!!(g.isHidden&&g.isHidden===!0),reviewerChecklist:Me==null?void 0:Me.reviewerChecklist}),pe[Me==null?void 0:Me.uuid]&&delete pe[Me==null?void 0:Me.uuid]):(pe[Me==null?void 0:Me.uuid]&&delete pe[Me==null?void 0:Me.uuid],ht>=0&&ce.splice(ht,1))}}else{const ht=_t.findIndex(ce,function(Ht){return Ht.fieldId===it.uuid});B?ht===-1&&(ce.push({postData:[],tabId:v.uuid,tabIndex:f,...it.inlineConditionalRules?{inlineConditionalRules:it.inlineConditionalRules}:{},...it.conditionalTabRules?{conditionalTabRules:it.conditionalTabRules}:{},...it.conditionalSectionRules?{conditionalSectionRules:it.conditionalSectionRules}:{},sectionId:g.uuid,sectionIndex:h,sectionHeading:g.heading,subHeadingText:g.subHeadingText,reviewerChecklist:it==null?void 0:it.reviewerChecklist,rowId:Me.uuid,rowIndex:De,columnId:g.uuid,columnIndex:A,inlineConditionalField:!0,fieldIndex:rt,fieldId:it.uuid,fieldInputType:it.componentType,fieldTitle:(he=it.label)==null?void 0:he.english,fieldDescription:it.description||null,fieldHelperText:it.helperText||null,fieldHeaderText:it.headerText||null,fieldFooterText:it.footerText||null,fieldTitleAbb:it.abbreviationLabel||it.label,question_abb_table:it.textForTable||null,language:"english",isHiddenfield:it.isHidden&&it.isHidden===1?1:0,isHiddenSection:!!(g.isHidden&&g.isHidden===!0)}),pe[it==null?void 0:it.uuid]&&delete pe[it==null?void 0:it.uuid]):(pe[it==null?void 0:it.uuid]&&delete pe[it==null?void 0:it.uuid],ht>=0&&ce.splice(ht,1))}const Se=Object.keys(pe).length;l({progressMaxValue:ce==null?void 0:ce.length,progressValue:Se}),s([...ce])}}},[A,u==null?void 0:u.abbreviationLabel,u==null?void 0:u.componentType,u==null?void 0:u.conditionalSectionRules,u==null?void 0:u.conditionalTabRules,u==null?void 0:u.description,u==null?void 0:u.footerText,u==null?void 0:u.headerText,u==null?void 0:u.helperText,u==null?void 0:u.inlineConditionalRules,u==null?void 0:u.isHidden,u==null?void 0:u.label,u==null?void 0:u.reviewerChecklist,u==null?void 0:u.textForTable,v==null?void 0:v.uuid,f,d==null?void 0:d.uuid,m,g==null?void 0:g.heading,g==null?void 0:g.isHidden,g==null?void 0:g.subHeadingText,g==null?void 0:g.uuid,h,n,l,s,a]),W=B=>{const fe=B.value;u==null||u.conditionalSectionRules.rules.map(he=>{var ce;(ce=he==null?void 0:he.conditions)==null||ce.map(pe=>{if((fe==null?void 0:fe.value)===(pe==null?void 0:pe.option)){const Se=_t.findIndex(C,ze=>{var rt;return ze.uuid===((rt=pe==null?void 0:pe.tab)==null?void 0:rt.uuid)}),De=_t.findIndex(C[Se].children,ze=>{var rt;return ze.uuid===((rt=pe==null?void 0:pe.section)==null?void 0:rt.uuid)}),Me=C[Se].children[De];Me.isHidden=!1,X(!0,C[Se].children[De]),E(Se,De,Me)}else{const Se=_t.findIndex(C,ze=>{var rt;return(ze==null?void 0:ze.uuid)===((rt=pe==null?void 0:pe.tab)==null?void 0:rt.uuid)}),De=_t.findIndex(C[Se].children,ze=>{var rt;return(ze==null?void 0:ze.uuid)===((rt=pe==null?void 0:pe.section)==null?void 0:rt.uuid)}),Me=C[Se].children[De];Me.isHidden=!0,X(!1,C[Se].children[De]),E(Se,De,Me)}})})};O.useEffect(()=>{z||re();const B=Gt.addListener("clearRepeatableFields",ce=>{ce===(d==null?void 0:d.uuid)&&(P(""),N(0),u.isValid=1)}),fe=Gt.addListener("onSubmitUserForm",()=>{var ce;if((ce=u==null?void 0:u.attributes)!=null&&ce.required){const pe=F;pe!=null&&pe.uuid&&(pe!=null&&pe.value)?u.isValid=1:u.isValid=0}else u.isValid=1}),he=Gt.addListener("OnInvalidFieldCatch",ce=>{(u==null?void 0:u.uuid)===(ce==null?void 0:ce.fieldId)?N(1):N(0)});return()=>{fe.remove(),he.remove(),B.remove()}});const me=(B,fe)=>{var he;if(a){const ce=[...a],pe=_t.findIndex(ce,function(De){return De.rowId===(d==null?void 0:d.uuid)});let Se=(he=a[pe])==null?void 0:he.repeatableFields;Se={...Se,[B==null?void 0:B.uuid]:fe},ce[pe]={...ce[pe],repeatableFields:Se},s(ce)}P(fe),fe!==null?B.isValid=1:B.isValid=0},be=B=>{var fe;P(B.target.value),Z(B),W(B),d!=null&&d.rowIsRepeatable?me(u,(fe=B==null?void 0:B.target)==null?void 0:fe.value):ye(B),setTimeout(()=>{Gt.emit("updatePageRender","complete")},1e3)},Te=()=>{var B;if(((B=u==null?void 0:u.fieldType)==null?void 0:B.type)==="radio"){const fe=[];return u==null||u.options.map((he,ce)=>{var Se,De,Me,ze;const pe=F;fe.push(o.jsxs("div",{className:`field-radiobutton ${u!=null&&u.showButtonLayout?"col-6 field-radiobutton-builder":""}`,onClick:()=>{(!x||!w&&e!==wde)&&be({value:he,target:{value:he}})},style:(pe==null?void 0:pe.uuid)===(he==null?void 0:he.uuid)&&(u!=null&&u.showButtonLayout)?{backgroundColor:"#0F8BFD",padding:5,borderRadius:8}:{padding:5},children:[o.jsx(ia,{onFocus:()=>{(!x||!w)&&N(1)},inputId:`radio-option-${ce}-${he==null?void 0:he.uuid}-${S?"builder-radio":"preview"}`,onChange:rt=>{(!x||!w)&&be(rt)},value:he,name:`radio-option-${ce}-${he==null?void 0:he.uuid}-${S?"builder":"preview"}`,checked:(pe==null?void 0:pe.uuid)===(he==null?void 0:he.uuid),disabled:x||w,readOnly:x||w}),((Se=he==null?void 0:he.hyperlinkText)==null?void 0:Se[_==null?void 0:_.type])===""?o.jsxs("label",{htmlFor:`radio-option-${ce}-${he==null?void 0:he.uuid}-${S?"builder-label":"preview"}`,children:[u!=null&&u.showAlphabetList?o.jsxs("span",{className:"mx-2",children:[" ",xO(ce)," "]}):"",S?o.jsx(o.Fragment,{children:o.jsx(jO,{...t,option:he,optionIndex:ce})}):o.jsxs(o.Fragment,{children:[" ",(De=he==null?void 0:he.optionText)==null?void 0:De[_==null?void 0:_.type]]})]}):o.jsx("label",{children:o.jsx("a",{href:(Me=he==null?void 0:he.hyperlinkText)==null?void 0:Me[_==null?void 0:_.type],target:"_blank",rel:"noreferrer",children:(ze=he==null?void 0:he.optionText)==null?void 0:ze[_==null?void 0:_.type]})}),S&&o.jsx("div",{className:"builder-radio-option-settings",children:o.jsx(zO,{optionId:he==null?void 0:he.uuid,...t})})]},"li-item-"+ce))}),fe}},ye=B=>{var Se,De;P(B.target.value);const fe={value:B.target.value};Z(fe),W(fe);const he=a,ce=_t.cloneDeep(n);if((Se=B==null?void 0:B.target)!=null&&Se.value&&(he==null?void 0:he.length)>0)for(const Me of he)Me.fieldId===t.field.uuid&&(ce[u==null?void 0:u.uuid]=(De=B==null?void 0:B.target)==null?void 0:De.value,Me.postData[0]={postValue:B.target.value});else delete ce[u==null?void 0:u.uuid];r(ce);const pe=Object.keys(ce).length;i(pe)},de=o.jsxs("div",{onMouseOver:Y,onMouseOut:se,children:[S&&le&&o.jsx(Wr,{handleFieldSettingsSidebar:K,...t}),o.jsx("div",{className:`field ${S&&" py-3 px-4 builder-element-wrapper "}${(u==null?void 0:u.isFluid)===!0&&" p-fluid"}`,children:o.jsxs("div",{className:"grid",children:[o.jsxs("div",{className:"col-12",children:[(u==null?void 0:u.showHeaderText)&&o.jsx("h6",{children:(ne=u==null?void 0:u.headerText)==null?void 0:ne[_==null?void 0:_.type]}),(u==null?void 0:u.showLabel)&&o.jsxs("label",{htmlFor:u.uuid,className:"flex font-bold mb-3 text-gray-900 text-xl",children:[o.jsx(ca,{...t}),((U=u==null?void 0:u.attributes)==null?void 0:U.required)&&o.jsx("span",{className:"must-required mr-1",children:"*"})," ",S?o.jsx(aa,{...t}):o.jsx(o.Fragment,{children:(ee=u==null?void 0:u.label)==null?void 0:ee[_==null?void 0:_.type]}),o.jsx("span",{className:"ml-3",children:u!=null&&u.showToolTip?o.jsx(o.Fragment,{children:o.jsx(zi,{message:(oe=u==null?void 0:u.toolTip)==null?void 0:oe[_==null?void 0:_.type],position:"right"})}):""})]}),(u==null?void 0:u.showButtonLayout)===!0?o.jsxs("div",{className:"grid",children:[Te()," "]}):Te(),o.jsx("div",{children:((ge=u==null?void 0:u.attributes)==null?void 0:ge.required)&&o.jsx("small",{className:"error",children:H===1&&F!==null?(_e=u==null?void 0:u.validationMesssage)==null?void 0:_e.language:""})}),o.jsx("div",{children:(u==null?void 0:u.showHelperText)&&o.jsx("small",{children:(Ne=u==null?void 0:u.helperText)==null?void 0:Ne[_==null?void 0:_.type]})}),((ve=u==null?void 0:u.inlineConditionalRules)==null?void 0:ve.rules.length)>0&&S===!0&&o.jsx("p",{children:"Inline conditional rules"}),z===!0&&((Be=(Ae=u==null?void 0:u.inlineConditionalRules)==null?void 0:Ae.rules)==null?void 0:Be.length)>0&&((Ee=u==null?void 0:u.inlineConditionalRules)==null?void 0:Ee.rules.map((B,fe)=>{const he=F;return S===!1?o.jsx("div",{children:B==null?void 0:B.conditions.map((ce,pe)=>o.jsx(O.Fragment,{children:o.jsx(e0,{isConditionTrue:!!((he==null?void 0:he.value)===ce.value||S),inputValue:F,condition:ce,ruleIndex:fe,conditionIndex:pe,field:u,section:g,page:v,row:d,pageIndex:f,sectionIndex:h,rowIndex:m,columnIndex:A,isAdmin:x,...t})},`select-rule-${fe}-`+pe))},`rule-${fe}`):o.jsx(ci,{className:"mt-4",header:`Rule ${fe+1}`,children:o.jsx("div",{children:B==null?void 0:B.conditions.map((ce,pe)=>{const Se=F;return o.jsx(O.Fragment,{children:o.jsx(e0,{isConditionTrue:!!((Se==null?void 0:Se.value)===ce.value||S),inputValue:F,condition:ce,ruleIndex:fe,conditionIndex:pe,field:u,section:g,page:v,row:d,pageIndex:f,sectionIndex:h,rowIndex:m,columnIndex:A,...t})},`select-rule-${fe}-`+pe)})},`rule-${fe}`)},fe)}))]}),x&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(ki,{...t})]})]})})]});return o.jsxs(o.Fragment,{children:[M===!0&&o.jsx(Qi,{visibilty:M,closeSettingFieldSidebar:ie,...t},u==null?void 0:u.uuid),o.jsx(xi,{...t,fieldWrap:de})]})},Cde=O.memo(Sde),xde=t=>{var i,a;const{language:e,onHandleChange:n,fieldState:r}=t;return o.jsxs("form",{className:"p-fluid",children:[o.jsxs("div",{className:"field",children:[o.jsx("span",{className:"must-required",children:"*"})," ",o.jsx("label",{children:"Text"}),o.jsx(wn,{value:(i=r.text)==null?void 0:i[e==null?void 0:e.type],onChange:s=>n("text",e,s.target.value),placeholder:"Heading text",id:r==null?void 0:r.uuid})]}),o.jsxs("div",{className:"field",children:[o.jsx("label",{children:"Hyperlink"}),o.jsx(wn,{value:(a=r.hrefLink)==null?void 0:a[e==null?void 0:e.type],onChange:s=>n("hrefLink",e,s.target.value),placeholder:"Link"})]})]})},Tde=t=>{const{onHandleChangeHeadingTypeSetttings:e,fieldState:n}=t,r=[{name:"H1",type:"h1"},{name:"H2",type:"h2"},{name:"H3",type:"h3"},{name:"H4",type:"h4"},{name:"H5",type:"h5"}];return o.jsxs("form",{className:"p-fluid",children:[o.jsx("h3",{children:"Select heading type"}),r.map((i,a)=>o.jsxs("div",{className:"field-radiobutton",children:[o.jsx(ia,{inputId:i==null?void 0:i.type,name:"heading",value:i==null?void 0:i.type,onChange:s=>e(s),checked:n.headingType===i.type}),o.jsx("label",{htmlFor:i.type,children:i.name})]},a))]})},Ede=t=>{const{fieldSettingUpdate:e,formBuilderSchemaLanguages:n,formBuilderPublishedStatus:r,fieldSettingUpdateInlineConditional:i,gridComponentFieldSettingUpdate:a}=sn(),{path:s,visibilty:l,field:c,closeSettingFieldSidebar:u,pageIndex:d,sectionIndex:f,rowIndex:h,columnIndex:g,fieldIndex:v,typeName:m}=t,[A,w]=O.useState(c),{updateGlobalToast:x}=zt(),S=(E,_,M)=>{w(k=>({...k,[E]:{...k[E],[_==null?void 0:_.type]:M}}))},T=E=>{w(_=>({..._,headingType:E==null?void 0:E.value}))},C=()=>{const E=s.split("-").map(Number);(E==null?void 0:E.length)>5&&(E==null?void 0:E.length)===8&&(A!=null&&A.inlineConditionalRules)?i(E[fa],E[ha],E[Ca],E[xa],E[Ta],E[Fa],E[Xo],E[wo],A):(E==null?void 0:E.length)>Fa&&(E==null?void 0:E.length)===Bl+1&&(A!=null&&A.componentType)?a(E[fa],E[ha],E[Ca],E[xa],E[Ta],E[ix],E[ax],E[sx],A):e(d,f,h,g,v,A),x({showToast:!0,toastMessage:"Updated",toastDetail:`${m} updated`,toastType:"success"})};return o.jsx(o.Fragment,{children:o.jsxs(To,{style:{width:"750px"},visible:l,position:"left",className:"p-sidebar-lg",onHide:()=>u(),header:()=>o.jsx("div",{className:"flex align-items-center gap-2 justify-content-between",children:o.jsxs("div",{className:"text-gray-900 font-bold text-2xl",children:[t==null?void 0:t.typeName," settings"]})}),children:[o.jsxs(ts,{children:[o.jsx(wr,{header:"Text",children:o.jsx(ao,{activeIndex:0,children:n!=null&&n.length?n.map((E,_)=>o.jsx(io,{tabIndex:_,header:E==null?void 0:E.language,children:o.jsx(xde,{language:E,fieldState:A,onHandleChange:S,...t})},_)):""})}),o.jsx(wr,{header:"Setting",children:o.jsx(Tde,{onHandleChangeHeadingTypeSetttings:T,fieldState:A})})]}),o.jsx("div",{className:"w-full px-4 py-3 surface-100 sidebar-footer",children:o.jsxs("div",{className:"flex flex-row gap-2 align-items-center justify-content-end",children:[!r&&o.jsx(Ft,{size:"small",label:"Update",type:"button",outlined:!0,onClick:()=>C(),"aria-label":"Update"}),o.jsx(Ft,{label:"Close",type:"button",onClick:()=>u(),"aria-label":"Close",size:"small",className:"p-button-danger"})]})})]})})},Ide=t=>{var v,m;const{field:e}=t,{isBuilderMode:n}=zt(),{userSelectedLanguage:r}=sn(),[i,a]=O.useState(!1),[s,l]=O.useState(!1),c=()=>{l(!0)},u=()=>{l(!1)},d=A=>{a(A)},f=()=>{a(!1)},h=()=>{var A,w,x,S,T,C;return(e==null?void 0:e.headingType)==="h1"?o.jsx("h1",{children:(A=e==null?void 0:e.text)==null?void 0:A[r==null?void 0:r.type]}):(e==null?void 0:e.headingType)==="h2"?o.jsx("h2",{children:(w=e==null?void 0:e.text)==null?void 0:w[r==null?void 0:r.type]}):(e==null?void 0:e.headingType)==="h3"?o.jsx("h3",{children:(x=e==null?void 0:e.text)==null?void 0:x[r==null?void 0:r.type]}):(e==null?void 0:e.headingType)==="h4"?o.jsx("h4",{children:(S=e==null?void 0:e.text)==null?void 0:S[r==null?void 0:r.type]}):(e==null?void 0:e.headingType)==="h5"?o.jsx("h5",{children:(T=e==null?void 0:e.text)==null?void 0:T[r==null?void 0:r.type]}):o.jsx("h1",{children:(C=e==null?void 0:e.text)==null?void 0:C[r==null?void 0:r.type]})},g=o.jsxs("div",{className:n?"builder-element-wrapper":"",onMouseOver:c,onMouseOut:u,children:[n&&s&&o.jsx(Wr,{handleFieldSettingsSidebar:d,...t}),o.jsx("div",{className:n?"field-form-builder px-2":" px-2",children:o.jsx("div",{className:"col-12",children:((v=e==null?void 0:e.hrefLink)==null?void 0:v[r==null?void 0:r.type])!==""?o.jsx("a",{href:(m=e==null?void 0:e.hrefLink)==null?void 0:m[r==null?void 0:r.type],target:"_blank",rel:"noreferrer",children:h()}):h()})})]});return o.jsxs(o.Fragment,{children:[i&&o.jsx(Ede,{visibilty:i,closeSettingFieldSidebar:f,...t},e==null?void 0:e.uuid),o.jsx(xi,{...t,fieldWrap:g})]})},_de=t=>{var i,a;const{language:e,onHandleQuestionTextChange:n,fieldState:r}=t;return o.jsxs("form",{className:"p-fluid",children:[o.jsxs("div",{className:"field",children:[o.jsx("span",{className:"must-required",children:"*"})," ",o.jsx("label",{children:"Question text"}),o.jsx(wn,{placeholder:"Enter question",value:(i=r.questionText)==null?void 0:i[e==null?void 0:e.type],onChange:s=>n("questionText",e.type,s.target.value)})]}),o.jsxs("div",{className:"field",children:[o.jsx("label",{children:"Correct answer"}),o.jsx(wn,{placeholder:"Enter correct answer",value:(a=r.correctAnswerComment)==null?void 0:a[e==null?void 0:e.type],onChange:s=>n("correctAnswerComment",e.type,s.target.value)})]})]})},Dde=t=>{var i;const{onHandleChange:e,fieldState:n,onHandleChangeAttributesSetttings:r}=t;return o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"p-fluid",children:o.jsxs("div",{className:"field",style:{display:"inline-block",width:"150px"},children:[o.jsx("span",{className:"must-required",children:"*"})," ",o.jsx("label",{children:"Time limit"}),o.jsxs("div",{className:"p-inputgroup",children:[o.jsx(eo,{inputId:"horizontal",showButtons:!0,buttonLayout:"horizontal",step:1,pt:{incrementButton:{className:"bg-teal-500 border-teal-500"},decrementButton:{className:"bg-orange-500 border-orange-500"}},value:n==null?void 0:n.timeLimit,onChange:a=>e("timeLimit",a.value)}),o.jsx("span",{className:"p-inputgroup-addon",children:"mins"})]})]})}),o.jsx("div",{className:"p-fluid",children:o.jsxs("div",{className:"field",style:{display:"inline-block",width:"100px"},children:[o.jsx("span",{className:"must-required",children:"*"})," ",o.jsx("label",{children:"Score"}),o.jsx("div",{className:"p-inputgroup",children:o.jsx(eo,{inputId:"horizontal",showButtons:!0,buttonLayout:"horizontal",step:1,pt:{incrementButton:{className:"bg-teal-500 border-teal-500"},decrementButton:{className:"bg-orange-500 border-orange-500"}},value:n==null?void 0:n.score,onChange:a=>e("score",a.value)})})]})}),o.jsx("div",{className:"p-fluid",children:o.jsxs("div",{className:"field-checkbox",children:[o.jsx(Yr,{inputId:"required",checked:(i=n==null?void 0:n.attributes)==null?void 0:i.required,onChange:a=>r("required",a.checked)}),o.jsx("label",{htmlFor:"required",children:"Is complusory?"})]})})]})},Nde=t=>{const{onHandleChange:e,fieldState:n}=t,[r,i]=O.useState([{type:"radio"},{type:"checkbox"}]);return o.jsxs("form",{className:"p-fluid",children:[o.jsxs("div",{className:"field field-checkbox",children:[o.jsx(Yr,{inputId:"isAllowMultipleAnswer",value:"isAllowMultipleAnswer",onChange:a=>{e("isAllowMultipleAnswer",a==null?void 0:a.checked),a!=null&&a.checked?(i([{type:"checkbox"}]),e("answerInputType","checkbox")):(i([{type:"radio"}]),e("answerInputType","radio"))},checked:n==null?void 0:n.isAllowMultipleAnswer}),o.jsx("label",{htmlFor:"isAllowMultipleAnswer",className:"p-checkbox-label ",children:"Allow multiple answer"})]}),(n==null?void 0:n.isAllowMultipleAnswer)&&o.jsxs("div",{className:"field",children:[o.jsx("label",{children:"Number of options"}),o.jsx(wn,{type:"number",value:(n==null?void 0:n.noOfMultpleAnswer)||0,onChange:a=>{var s;e("noOfMultpleAnswer",(s=a==null?void 0:a.target)==null?void 0:s.value)}})]}),o.jsxs("div",{className:"field",children:[o.jsx("span",{className:"must-required",children:"*"})," ",o.jsx("label",{children:"Answer input type"}),r.map((a,s)=>o.jsxs("div",{className:"field-radiobutton",children:[o.jsx(ia,{inputId:a.type,name:"answerInputType",value:a.type,onChange:()=>{if(e("answerInputType",a.type),a.type==="checkbox"&&e("isAllowMultipleAnswer",!0),a.type==="radio"){let l=[...(n==null?void 0:n.answerOptions)||[]];l=l.map(c=>({...c,isCorrect:!1})),e("answerOptions",l),e("isAllowMultipleAnswer",!1)}},checked:(n==null?void 0:n.answerInputType)===a.type}),o.jsx("label",{htmlFor:a.type,children:a.type})]},s))]})]})},Ode=t=>{const{fieldState:e,setFieldState:n,language:r}=t,i=()=>{var g;let f=!1;const h=(g=e==null?void 0:e.answerOptions)==null?void 0:g.filter(v=>(v==null?void 0:v.isCorrect)===!0);return(h==null?void 0:h.length)===parseInt(e==null?void 0:e.noOfMultpleAnswer)&&(f=!0),f},a=f=>o.jsx(o.Fragment,{children:o.jsx(Ft,{text:!0,type:"button",className:"p-button-danger left-space",onClick:()=>d((f==null?void 0:f.uuid)||""),icon:"pi pi-trash"})}),s=f=>o.jsx(o.Fragment,{children:o.jsx(wn,{value:f==null?void 0:f.answersText[r],onChange:h=>c("answersText",(f==null?void 0:f.uuid)||"",h.target.value)})}),l=(f,h)=>o.jsx(o.Fragment,{children:o.jsx(Yr,{inputId:"binary",checked:(f==null?void 0:f.isCorrect)||!1,onChange:g=>{g.checked&&i()||u("isCorrect",(f==null?void 0:f.uuid)||"",g.checked,h)}})}),c=(f,h,g)=>{n(v=>({...v,answerOptions:v!=null&&v.answerOptions?v==null?void 0:v.answerOptions.map(m=>m.uuid!==h?m:{...m,[f]:{...m[f],[r]:g}}):[]}))},u=(f,h,g,v)=>{n(m=>{const{answerOptions:A,isAllowMultipleAnswer:w,answerInputType:x}=m,S=v.rowIndex,T=A.map((C,E)=>{const _=E===S;return w||x==="checkbox"?_?{...C,[f]:g}:C:{...C,[f]:_?g:!1}});return{...m,answerOptions:T}})},d=f=>{const h=_t.findIndex(e==null?void 0:e.answerOptions,v=>v.uuid===f),g=(e==null?void 0:e.answerOptions)&&(e==null?void 0:e.answerOptions.filter(function(v,m){return m!==h}));g!=null&&g.length&&(g==null?void 0:g.length)>0&&n(v=>({...v,answerOptions:g}))};return o.jsx("div",{children:o.jsx("div",{className:"card",children:o.jsxs(ro,{value:e==null?void 0:e.answerOptions,scrollable:!0,children:[o.jsx(xr,{header:"Answer text",body:f=>s(f),headerStyle:{textAlign:"left"},bodyStyle:{textAlign:"left",overflow:"visible"}}),o.jsx(xr,{body:(f,h)=>l(f,h),header:"Is answer ?",headerStyle:{textAlign:"left"},bodyStyle:{textAlign:"left",overflow:"visible"}}),o.jsx(xr,{header:"Action",body:f=>a(f),headerStyle:{textAlign:"left"},bodyStyle:{textAlign:"left",overflow:"visible"}})]})})})},Fde=t=>{const e=[],[n]=O.useState([]),{onHandleChange:r,fieldState:i}=t;return O.useEffect(()=>{},[]),o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:"field mt-3 w-full",children:[o.jsx("label",{children:"Subject"}),o.jsx(Pa,{id:"subject",name:"subject",optionLabel:"subject_title",value:(n==null?void 0:n.length)>0&&(i==null?void 0:i.subject_id)!==null?n.filter(a=>(i==null?void 0:i.subject_id)===(a==null?void 0:a.subject_id))[0]:null,placeholder:"Select a Subject",options:n,className:"w-full",onChange:a=>{var s;r("subject_id",(s=a==null?void 0:a.value)==null?void 0:s.subject_id)}})]}),o.jsxs("div",{className:"field",children:[o.jsx("label",{children:"Course category"}),o.jsx(Pa,{id:"course_category",name:"course_category",optionLabel:"course_category_title",value:(e==null?void 0:e.length)>0&&(i==null?void 0:i.course_category_id)!==null?e.filter(a=>(i==null?void 0:i.course_category_id)===(a==null?void 0:a.course_category_id))[0]:null,placeholder:"Select a category",options:e,className:"w-full",onChange:a=>{var s;r("course_category_id",(s=a==null?void 0:a.value)==null?void 0:s.course_category_id)}})]})]})},kde=t=>{const{formBuilderSchemaLanguages:e,fieldSettingUpdate:n}=sn(),{visibilty:r,setVisibility:i,rowIndex:a,columnIndex:s,fieldIndex:l,pageIndex:c,sectionIndex:u,field:d,typeName:f}=t,[h,g]=O.useState(d),{updateGlobalToast:v}=zt(),m=(C,E)=>{g(_=>({..._,attributes:{..._.attributes,[C]:E}}))},A=(C,E,_)=>{g(M=>({...M,[C]:{[E]:_}}))},w=(C,E)=>{g(_=>({..._,[C]:E}))},x=()=>{const C=[],_=((h==null?void 0:h.answerOptions)||[]).filter(P=>P.isCorrect===!0),{answerInputType:M,isAllowMultipleAnswer:k,noOfMultpleAnswer:F}=h||{};if(M==="radio")_.length!==1&&C.push("Please select one answer");else if(M==="checkbox"){const P=k?parseInt(F,10)||0:1;_.length!==P&&C.push(P>1?`Select ${P} answers`:"Please select one answer")}return C.length?(v({showToast:!0,toastMessage:"Validation error",toastDetail:C.join(", "),toastType:"error"}),!1):!0},S=()=>{x()&&(n(c,u,a,s,l,h),v({showToast:!0,toastMessage:"Updated",toastDetail:`${f} updated`,toastType:"success"}))},T=()=>{g(C=>Object.assign({},C,{answerOptions:[...C.answerOptions||[],{uuid:tt(),answersText:{english:""},isCorrect:!1}]}))};return o.jsx(o.Fragment,{children:o.jsxs(To,{visible:r,position:"left",className:"p-sidebar-lg",onHide:()=>i(!1),children:[o.jsx("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:[t==null?void 0:t.typeName," settings"," "]})," "]})}),o.jsxs(ts,{children:[o.jsx(wr,{header:"Text",children:o.jsx(ao,{activeIndex:0,children:e!=null&&e.length?e.map((C,E)=>o.jsx(io,{tabIndex:E,header:C==null?void 0:C.language,children:o.jsx(_de,{language:C,fieldState:h,onHandleQuestionTextChange:A,...t})},E)):""})}),o.jsx(wr,{header:"Advance",children:o.jsx(Dde,{fieldState:h,onHandleChangeAttributesSetttings:m,onHandleChange:w,...t})}),o.jsx(wr,{header:"Answers",children:o.jsxs("div",{className:"scroll-height-200",children:[o.jsx(Nde,{fieldState:h,onHandleChange:w,...t}),o.jsxs("div",{className:"flex justify-content-between mb-2",children:[o.jsx("h4",{children:"Answers options"}),o.jsx(Ft,{className:"mr-3",label:"Add",icon:"pi pi-plus",onClick:()=>T(),"aria-label":"Add"})]}),(h==null?void 0:h.answerOptions)!==void 0&&o.jsx(o.Fragment,{children:o.jsx(ao,{activeIndex:0,children:e!=null&&e.length?e.map((C,E)=>o.jsx(io,{tabIndex:E,header:C==null?void 0:C.language,children:o.jsx(Ode,{language:C==null?void 0:C.type,fieldState:h,setFieldState:g})},E)):""})})]})}),o.jsx(wr,{header:"Information",children:o.jsx(Fde,{fieldState:h,onHandleChange:w})})]}),o.jsx("div",{className:"w-full px-4 py-3 surface-100 sidebar-footer",children:o.jsxs("div",{className:"flex flex-row gap-2 align-items-center justify-content-end",children:[o.jsx(Ft,{size:"small",label:"Update",type:"button",outlined:!0,onClick:()=>S(),"aria-label":"Update"}),o.jsx(Ft,{label:"Close",type:"button",onClick:()=>i(!1),"aria-label":"Close",size:"small",className:"p-button-danger"})]})})]})})},Pde=t=>{var k,F,P,H,N,z;const{isBuilderMode:e}=zt(),{field:n}=t,{taskRegisterData:r,updateTaskRegisterData:i,updateTaskProgressValue:a,userTaskSubmitFormData:s}=Ar(),{userSelectedLanguage:l}=sn(),{media:c}=zt(),u=(k=c==null?void 0:c.image)!=null&&k.MediaImage?(F=c==null?void 0:c.image)==null?void 0:F.MediaImage:o.jsx(o.Fragment,{}),[d,f]=O.useState(!1),[h,g]=O.useState([]),[v,m]=O.useState(!1),A=$=>{m($)},w=()=>{m(!1)},x=()=>{f(!0)},S=()=>{f(!1)},T=$=>{var se;const le=_t.cloneDeep(r),R=[...h];$.checked?(le[n==null?void 0:n.uuid]=(se=$==null?void 0:$.target)==null?void 0:se.value,R.push($.value)):(delete le[n==null?void 0:n.uuid],R.splice(R.indexOf($.value),1)),g(R),C($,R),i(le);const Y=Object.keys(le).length;a(Y)},C=($,le)=>{const R=s;if((R==null?void 0:R.length)>0&&$!=null&&$.value)for(const Y of R)Y.fieldId===t.field.uuid&&(Y.postData[0]={postValue:le})},E=$=>{var se;const le=s,R=_t.cloneDeep(r);if((le==null?void 0:le.length)>0)if((se=$==null?void 0:$.target)!=null&&se.value)for(const K of le)K.fieldId===t.field.uuid&&(R[n==null?void 0:n.uuid]=$==null?void 0:$.value,K.postData[0]={postValue:$.value});else delete R[n==null?void 0:n.uuid];i(R);const Y=Object.keys(R).length;a(Y)};O.useEffect(()=>{g([])},[n==null?void 0:n.answerInputType]);const _=()=>{const $=[];return(n==null?void 0:n.answerInputType)==="radio"?n!=null&&n.answerOptions&&(n==null||n.answerOptions.map((le,R)=>{var se,K,ie,re;const Y=h;$.push(o.jsxs("div",{className:"flex align-items-center p-field-radiobutton mb-3",children:[o.jsx(ia,{inputId:`${R}`,onChange:Z=>{g(Z.target.value),E(Z)},checked:(Y==null?void 0:Y.uuid)===(le==null?void 0:le.uuid),name:"category",value:le}),"  ",((se=le.answersTextImage)==null?void 0:se[l==null?void 0:l.type])&&((K=le.answersTextImage)==null?void 0:K[l==null?void 0:l.type])!==""&&o.jsx(u,{mediaId:(ie=le.answersTextImage)==null?void 0:ie[l==null?void 0:l.type],className:"mx-3",alt:"questionImage",style:{width:"50px",height:"50px",borderRadius:50}}),o.jsx("label",{htmlFor:`${R}`,children:(re=le==null?void 0:le.answersText)==null?void 0:re[l==null?void 0:l.type]})]},R))})):(n==null?void 0:n.answerInputType)==="checkbox"?n!=null&&n.answerOptions&&(n==null||n.answerOptions.map((le,R)=>{var Y;$.push(o.jsxs("div",{className:"p-field-radiobutton mb-3",children:[o.jsx(Yr,{inputId:`${R}`,name:"category",onChange:se=>{T(se)},value:le,checked:h!=null&&h.length?h==null?void 0:h.some(se=>se.uuid===le.uuid):!1}),"  ",o.jsx("label",{htmlFor:`${R}`,children:(Y=le==null?void 0:le.answersText)==null?void 0:Y[l==null?void 0:l.type]})]},R))})):n!=null&&n.answerOptions&&(n==null||n.answerOptions.map((le,R)=>{var se,K,ie,re,Z,X,W;const Y=h;$.push(o.jsxs("div",{className:"p-field-radiobutton mb-3",children:[o.jsx(ia,{inputId:`${R}`,onChange:me=>{g(me.target.value),E(me)},checked:(Y==null?void 0:Y.uuid)===(le==null?void 0:le.uuid),name:"category",value:le}),"  ",((se=le.answersTextImage)==null?void 0:se[l==null?void 0:l.type])&&((K=le.answersTextImage)==null?void 0:K[l==null?void 0:l.type])!==""&&o.jsx(u,{mediaId:(ie=le.answersTextImage)==null?void 0:ie[l==null?void 0:l.type],className:"mx-3",alt:"questionImage",style:{width:"50px",height:"50px",borderRadius:50}}),o.jsxs("label",{htmlFor:`${R}`,children:[((re=le.answersTextImage)==null?void 0:re[l==null?void 0:l.type])&&((Z=le.answersTextImage)==null?void 0:Z[l==null?void 0:l.type])!==""&&o.jsx(u,{mediaId:(X=le.answersTextImage)==null?void 0:X[l==null?void 0:l.type],className:"mx-3",alt:"questionImage",style:{width:"50px",height:"50px",borderRadius:50}}),(W=le==null?void 0:le.answersText)==null?void 0:W[l==null?void 0:l.type]]})]},R))})),$},M=o.jsxs("div",{onMouseOver:x,onMouseOut:S,children:[e&&d&&o.jsx(Wr,{handleFieldSettingsSidebar:A,...t}),o.jsx("div",{className:`field ${e&&" py-3 px-4 builder-element-wrapper "}${(n==null?void 0:n.isFluid)===!0&&" p-fluid"}`,children:o.jsx("div",{className:"grid",children:o.jsxs("div",{className:"col-12 p-fluid",children:[((P=n==null?void 0:n.questionTextImage)==null?void 0:P[l==null?void 0:l.type])&&((H=n==null?void 0:n.questionTextImage)==null?void 0:H[l==null?void 0:l.type])!==""&&o.jsx("div",{className:"text-center assessment_image_container",children:o.jsx(u,{mediaId:(N=n==null?void 0:n.questionTextImage)==null?void 0:N[l==null?void 0:l.type],style:{height:"100px",width:"100px",objectFit:"cover",borderRadius:100},className:"text-center",alt:"questionImage"})}),o.jsx("h5",{children:(z=n==null?void 0:n.questionText)==null?void 0:z[l==null?void 0:l.type]}),_()]})})})]});return o.jsxs(o.Fragment,{children:[v===!0&&o.jsx(kde,{visibilty:v,setVisibility:w,...t},n==null?void 0:n.uuid),o.jsx(xi,{...t,fieldWrap:M})]})},Mde=t=>{var i,a;const{onHandleChange:e,fieldState:n,language:r}=t;return o.jsxs("form",{className:"p-fluid",children:[o.jsxs("div",{className:"field",children:[o.jsx("span",{className:"must-required",children:"*"})," ",o.jsx("label",{children:"Title"}),o.jsx(wn,{value:(i=n.title)==null?void 0:i[r==null?void 0:r.type],onChange:s=>e("title",r,s.target.value)})]}),o.jsxs("div",{className:"field",children:[o.jsx("span",{className:"must-required",children:"*"})," ",o.jsx("label",{children:"Image Url"}),o.jsx(wn,{value:(a=n.media_url)==null?void 0:a[r==null?void 0:r.type],onChange:s=>e("media_url",r,s.target.value)})]})]})};class HO{constructor(){Rn(this,"formatBytes",(e,n=2)=>{if(e===0||e===void 0||e===null)return"0 Bytes";const r=1024,i=n<0?0:n,a=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],s=Math.floor(Math.log(e)/Math.log(r));return parseFloat((e/Math.pow(r,s)).toFixed(i))+" "+a[s]})}}function b2(t){"@babel/helpers - typeof";return b2=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},b2(t)}function Lde(t,e){if(b2(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(b2(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Bde(t){var e=Lde(t,"string");return b2(e)=="symbol"?e:e+""}function YO(t,e,n){return(e=Bde(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Vde={root:function(e){var n=e.props;return ft("p-badge p-component",YO({"p-badge-no-gutter":ke.isNotEmpty(n.value)&&String(n.value).length===1,"p-badge-dot":ke.isEmpty(n.value),"p-badge-lg":n.size==="large","p-badge-xl":n.size==="xlarge"},"p-badge-".concat(n.severity),n.severity!==null))}},qde=`
3514
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,s=!0,l=!1;return{s:function(){n=n.call(t)},n:function(){var u=n.next();return s=u.done,u},e:function(u){l=!0,a=u},f:function(){try{s||n.return==null||n.return()}finally{if(l)throw a}}}}function vde(t,e){if(t){if(typeof t=="string")return UO(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?UO(t,e):void 0}}function UO(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}var $O=b.memo(b.forwardRef(function(t,e){var n=Kn(),r=b.useContext(ar),i=v2.getProps(t,r),a=b.useState(null),s=cd(a,2),l=s[0],c=s[1],u=b.useState(!1),d=cd(u,2),f=d[0],h=d[1],g=Vx("",i.filterDelay||0),v=cd(g,3),m=v[0],A=v[1],w=v[2],x=b.useState(-1),S=cd(x,2),T=S[0],C=S[1],E=b.useState(!1),_=cd(E,2),M=_[0],k=_[1],F=b.useState(i.inline),P=cd(F,2),H=P[0],N=P[1],z=b.useRef(null),$=b.useRef(null),le=b.useRef(null),R=b.useRef(null),Y=b.useRef(null),se=b.useRef(i.inputRef),K=b.useRef(null),ie=b.useRef(null),re=b.useRef(null),Z=A&&A.trim().length>0,X=ke.isEmpty(i.value),W=i.optionValue?null:i.dataKey,me={props:i,state:{filterState:A,focused:M,overlayVisible:H}},be=v2.setMetaData(me),Te=be.ptm,ye=be.cx,de=be.sx,ne=be.isUnstyled;li(v2.css.styles,ne,{name:"multiselect"});var U=ep({target:z,overlay:ie,listener:function(Ye,Et){var Wt=Et.type,Jn=Et.valid;Jn&&(Wt==="outside"?!Ke(Ye)&&!st(Ye)&&ot():r.hideOverlaysOnDocumentScrolling?ot():xe.isDocument(Ye.target)||wt())},when:H}),ee=cd(U,2),oe=ee[0],ge=ee[1],_e=function(Ye){var Et=Ye.relatedTarget===se.current?xe.getFirstFocusableElement(ie.current,':not([data-p-hidden-focusable="true"])'):se.current;xe.focus(Et)},Ne=function(Ye){var Et=Ye.relatedTarget===se.current?xe.getLastFocusableElement(ie.current,':not([data-p-hidden-focusable="true"])'):se.current;xe.focus(Et)},ve=function(Ye){ws.emit("overlay-click",{originalEvent:Ye,target:z.current})},Ae=function(){return!i.selectionLimit||!i.value||i.value&&i.value.length<i.selectionLimit},Be=function(Ye){var Et=Xt()&&Ye<er.length-1?er.slice(Ye+1).findIndex(function(Wt){return zn(Wt)}):-1;return Et>-1?Et+Ye+1:-1},Ee=function(Ye){var Et=Xt()&&Ye>0?ke.findLastIndex(er.slice(0,Ye),function(Wt){return zn(Wt)}):-1;return Et>-1?Et:-1},B=function(Ye){var Et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Wt=-1;return Xt()&&(Et?(Wt=Ee(Ye),Wt=Wt===-1?Be(Ye):Wt):(Wt=Be(Ye),Wt=Wt===-1?Ee(Ye):Wt)),Wt>-1?Wt:Ye},fe=function(Ye){var Et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:-1,Wt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:-1;if(Et===-1&&(Et=B(Wt,!0)),Wt===-1&&(Wt=B(Et)),Et!==-1&&Wt!==-1){var Jn=Math.min(Et,Wt),br=Math.max(Et,Wt),Pr=er.slice(Jn,br+1).filter(function(oa){return Mn(oa)}).map(function(oa){return Nt(oa)});mn(Ye,Pr,Pr)}},he=function(Ye,Et){var Wt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:-1;if(!(i.disabled||Qe(Et))){var Jn=Wn(Et),br=null;Jn?br=i.value.filter(function(Pr){return!ke.equals(Pr,Nt(Et),W)}):br=[].concat(ode(i.value||[]),[Nt(Et)]),mn(Ye,br,Et),Wt!==-1&&c(Wt)}},ce=function(Ye){!i.inline&&!i.disabled&&!i.loading&&!vt(Ye)&&!Ke(Ye)&&(H?ot():He(),xe.focus(se.current),Ye.preventDefault()),h(!0)},pe=function(Ye){if(!H)He(),i.editable&&kn(Ye,at());else{var Et=l!==-1?xt(l):f?We():ae();Ye.shiftKey&&fe(Ye,T,Et),kn(Ye,Et)}Ye.preventDefault()},Se=function(Ye){var Et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(Ye.altKey&&!Et)l!==-1&&he(Ye,er[l]),H&&ot(),Ye.preventDefault();else{var Wt=l!==-1?Rt(l):f?dt():Pe();kn(Ye,Wt),!H&&He(),Ye.preventDefault()}},De=function(Ye){H?l!==-1&&(Ye.shiftKey?fe(Ye,l):he(Ye,er[l])):(c(-1),pe(Ye)),Ye.preventDefault()},Me=function(Ye){var Et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Wt=Ye.currentTarget;if(Et){var Jn=Wt.value.length;Wt.setSelectionRange(0,Ye.shiftKey?Jn:0),c(-1)}else{var br=Ye.metaKey||Ye.ctrlKey,Pr=We();Ye.shiftKey&&br&&fe(Ye,Pr,T),kn(Ye,Pr),!H&&He()}Ye.preventDefault()},ze=function(Ye){var Et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Wt=Ye.currentTarget;if(Et){var Jn=Wt.value.length;Wt.setSelectionRange(Ye.shiftKey?0:Jn,Jn),lde("focusedOptionIndex")}else{var br=Ye.metaKey||Ye.ctrlKey,Pr=dt();Ye.shiftKey&&br&&fe(Ye,T,Pr),kn(Ye,Pr),!H&&He()}Ye.preventDefault()},rt=function(Ye){Ye.preventDefault()},it=function(Ye){Ye.preventDefault()},ht=function(Ye){var Et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;Et||(H&&Zt()?(xe.focus(Ye.shiftKey?Y.current:R.current),Ye.preventDefault()):(l!==-1&&he(Ye,er[l]),H&&ot(filter)))},Ht=function(){C(l)},hn=function(Ye){var Et=Ye.metaKey||Ye.ctrlKey;switch(Ye.code){case"ArrowUp":if(i.inline)break;Se(Ye);break;case"ArrowDown":if(i.inline)break;pe(Ye);break;case"Space":case"NumpadEnter":case"Enter":if(i.inline)break;De(Ye);break;case"Home":if(i.inline)break;Me(Ye),Ye.preventDefault();break;case"End":if(i.inline)break;ze(Ye),Ye.preventDefault();break;case"PageDown":it(Ye);break;case"PageUp":rt(Ye);break;case"Escape":if(i.inline)break;ot();break;case"Tab":ht(Ye);break;case"ShiftLeft":case"ShiftRight":Ht();break;default:if(Ye.key==="a"&&Et){var Wt=er.filter(function(Jn){return Mn(Jn)}).map(function(Jn){return Nt(Jn)});mn(Ye,Wt,Wt),Ye.preventDefault();break}!Et&&ke.isPrintableCharacter(Ye.key)&&(!H&&He(),Dn(Ye),Ye.preventDefault());break}h(!1)},Ut=function(Ye){if(i.onSelectAll)i.onSelectAll(Ye);else{var Et=null;if(Ye.checked)Et=[];else{var Wt=er.filter(function(Jn){return Mn(Jn)&&!Qe(Jn)});Wt&&(Et=Wt.map(function(Jn){return Nt(Jn)}))}i.selectionLimit&&Et&&Et.length&&(Et=Et.slice(0,i.selectionLimit)),mn(Ye.originalEvent,Et,Et)}},mn=function(Ye,Et,Wt){i.onChange&&(i.onChange({originalEvent:Ye,value:Et,selectedOption:Wt,stopPropagation:function(){Ye==null||Ye.stopPropagation()},preventDefault:function(){Ye==null||Ye.preventDefault()},target:{name:i.name,id:i.id,value:Et}}),xe.focus(se.current))},En=function(Ye){var Et=Ye.query;w(Et),i.onFilter&&i.onFilter({originalEvent:Ye,filter:Et})},Tt=function(){w(""),i.onFilter&&i.onFilter({filter:""})},je=function(Ye){if(H){var Et;Ye?Et=Ye.currentTarget:Et=xe.findSingle(ie.current,'li[data-p-highlight="true"]'),Et&&Et.scrollIntoView&&Et.scrollIntoView({block:"nearest",inline:"nearest"})}},He=function(){N(!0),c(l!==-1?l:i.autoOptionFocus?ae():at()),xe.focus(se.current)},ot=function(){c(-1),N(!1),h(!1)},rn=function(Ye){Di.set("overlay",ie.current,r&&r.autoZIndex||Yn.autoZIndex,r&&r.zIndex.overlay||Yn.zIndex.overlay),xe.addStyles(ie.current,{position:"absolute",top:"0",left:"0"}),wt(),je(),Ye&&Ye()},nn=function(Ye){Ye&&Ye(),oe(),i.onShow&&i.onShow()},Jt=function(){ge()},_n=function(){i.filter&&i.resetFilterOnHide&&Tt(),Di.clear(ie.current),i.onHide&&i.onHide()},wt=function(){!i.inline&&xe.alignOverlay(ie.current,K.current.parentElement,i.appendTo||r&&r.appendTo||Yn.appendTo)},Ke=function(Ye){return xe.getAttribute(Ye.target,"data-pc-section")==="clearicon"},st=function(Ye){return xe.getAttribute(Ye.target,"data-pc-section")==="headercheckboxcontainer"},vt=function(Ye){return ie.current&&ie.current.contains(Ye.target)},Vt=function(Ye){ot(),xe.focus(se.current),Ye.preventDefault(),Ye.stopPropagation()},On=function(){if(i.value!=null&&i.options){if(i.optionGroupLabel){var Ye=0,Et=i.options.findIndex(function(Wt,Jn){return(Ye=Jn)&&$n(i.value,Fe(Wt))!==-1});return Et!==-1?{group:Ye,option:Et}:-1}return $n(i.value,i.options)}return-1},$n=function(Ye,Et){return Et.findIndex(function(Wt){return Ye.some(function(Jn){return ke.equals(Jn,Nt(Wt),W)})})},lr=function(Ye,Et){return ke.equals(Ye,Et,W)},Wn=function(Ye){if(i.value){var Et=Nt(Ye),Wt=At(Ye);return i.value.some(function(Jn){return ke.equals(Wt?Jn:Nt(Jn),Et,W)})}return!1},vr=function(Ye){var Et;if(i.options)if(i.optionGroupLabel){var Wt=qO(i.options),Jn;try{for(Wt.s();!(Jn=Wt.n()).done;){var br=Jn.value;if(Et=Nr(Ye,Fe(br)),Et)break}}catch(Pr){Wt.e(Pr)}finally{Wt.f()}}else Et=Nr(Ye,i.options),ke.isEmpty(Et)&&(Et=Nr(Ye,i.value));return Et?yt(Et):null},Nr=function(Ye,Et){return Et.find(function(Wt){return ke.equals(Nt(Wt),Ye,W)})},yn=function(Ye){k(!0),i.onFocus&&i.onFocus(Ye)},lt=function(Ye){k(!1),i.onBlur&&i.onBlur(Ye)},ut=function(){if(i.onSelectAll)return i.selectAll;if(ke.isEmpty(er))return!1;var Ye=er.filter(function(Et){return!Qe(Et)&&Mn(Et)});return!Ye.some(function(Et){return!Wn(Et)})},yt=function(Ye){return i.optionLabel?ke.resolveFieldData(Ye,i.optionLabel):Ye&&Ye.label!==void 0?Ye.label:Ye},Nt=function(Ye){return i.useOptionAsValue?Ye:i.optionValue?ke.resolveFieldData(Ye,i.optionValue):Ye&&Ye.value!==void 0?Ye.value:Ye},An=function(Ye){return i.dataKey?ke.resolveFieldData(Ye,i.dataKey):yt(Ye)},Nn=function(Ye){return ke.resolveFieldData(Ye,i.optionGroupLabel)},It=function(Ye){return ke.resolveFieldData(Ye,i.optionGroupLabel)},Fe=function(Ye){return ke.resolveFieldData(Ye,i.optionGroupChildren)},Qe=function(Ye){var Et;if(!Ae()&&!Wn(Ye))return!0;var Wt=i.optionDisabled;return Wt?ke.isFunction(Wt)?Wt(Ye):ke.resolveFieldData(Ye,Wt):Ye&&((Et=Ye.disabled)!==null&&Et!==void 0?Et:!1)},At=function(Ye){return!i.useOptionAsValue&&i.optionValue||Ye&&Ye.value!==void 0},$t=function(Ye){return i.optionGroupLabel&&Ye.group},Xt=function(){return ke.isNotEmpty(i.value)},Zt=function(){return xe.getFocusableElements(ie.current,':not([data-p-hidden-focusable="true"])').length>0},Sn=function(Ye){var Et;return Mn(Ye)&&((Et=yt(Ye))===null||Et===void 0?void 0:Et.toLocaleLowerCase(i.filterLocale).startsWith($.current.toLocaleLowerCase(i.filterLocale)))},Mn=function(Ye){return ke.isNotEmpty(Ye)&&!(Qe(Ye)||$t(Ye))},zn=function(Ye){return Mn(Ye)&&Wn(Ye)},at=function(){if(Xt()){for(var Ye=function(){var br=i.value[Wt],Pr=er.findIndex(function(oa){return zn(oa)&&lr(br,Nt(oa))});if(Pr>-1)return{v:Pr}},Et,Wt=i.value.length-1;Wt>=0;Wt--)if(Et=Ye(),Et)return Et.v}return-1},ae=function(){var Ye=at();return Ye<0?We():Ye},Pe=function(){var Ye=at();return Ye<0?dt():Ye},We=function(){return er.findIndex(function(Ye){return Mn(Ye)})},dt=function(){return ke.findLastIndex(er,function(Ye){return Mn(Ye)})},xt=function(Ye){var Et=Ye<er.length-1?er.slice(Ye+1).findIndex(function(Wt){return Mn(Wt)}):-1;return Et>-1?Et+Ye+1:Ye},Rt=function(Ye){var Et=Ye>0?ke.findLastIndex(er.slice(0,Ye),function(Wt){return Mn(Wt)}):-1;return Et>-1?Et:Ye},Dn=function(Ye){$.current=($.current||"")+Ye.key;var Et=-1;ke.isNotEmpty($.current)&&(l!==-1?(Et=er.slice(l).findIndex(function(Wt){return Sn(Wt)}),Et=Et===-1?er.slice(0,l).findIndex(function(Wt){return Sn(Wt)}):Et+l):Et=er.findIndex(function(Wt){return Sn(Wt)}),Et===-1&&l===-1&&(Et=ae()),Et!==-1&&kn(Ye,Et)),le.current&&clearTimeout(le.current),le.current=setTimeout(function(){$.current="",le.current=null},500)},kn=function(Ye,Et){l!==Et&&(c(Et),je(Ye),i.selectOnFocus&&he(Ye,er[Et],!1))},Hn=function(Ye,Et){if(Ye.stopPropagation(),!!Mr(Ye.currentTarget)){var Wt=i.value.filter(function(Jn){return!ke.equals(Jn,Et,W)});i.onRemove&&i.onRemove({originalEvent:Ye,value:Wt}),mn(Ye,Wt,Et)}},Mr=function(Ye){var Et=re.current,Wt=Et.clientWidth<Et.scrollWidth;if(!Wt)return!0;var Jn=Ye.closest('[data-pc-section="token"]'),br=window.getComputedStyle(Et),Pr=window.getComputedStyle(Jn),oa=Et.clientWidth-parseFloat(br.paddingLeft)-parseFloat(br.paddingRight),da=Jn.getBoundingClientRect().right+parseFloat(Pr.marginRight)-Et.getBoundingClientRect().left;return da<=oa},Kr=function(){var Ye=/{(.*?)}/,Et=i.selectedItemsLabel||ni("selectionMessage"),Wt=i.value?i.value.length:0;return Ye.test(Et)?Et.replace(Et.match(Ye)[0],Wt+""):Et},qn=function(){var Ye;if(!X&&!i.fixedPlaceholder){var Et;return ke.isNotEmpty(i.maxSelectedLabels)&&((Et=i.value)===null||Et===void 0?void 0:Et.length)>i.maxSelectedLabels?Kr():ke.isArray(i.value)?i.value.reduce(function(Wt,Jn,br){return Wt+(br!==0?", ":"")+vr(Jn)},""):""}return Ye},Fn=function(){var Ye=i.value?i.value.length:0;if(ke.isNotEmpty(i.maxSelectedLabels)&&Ye>i.maxSelectedLabels)return Kr();if(i.selectedItemTemplate)return X?ke.getJSXElement(i.selectedItemTemplate):i.value.map(function(Wt,Jn){var br=ke.getJSXElement(i.selectedItemTemplate,Wt);return b.createElement(b.Fragment,{key:Jn},br)});if(i.display==="chip"&&!X){var Et=i.value.slice(0,i.maxSelectedLabels||Ye);return Et.map(function(Wt,Jn){var br={context:{value:Wt,index:Jn}},Pr=vr(Wt),oa=Pr+"_"+Jn,da=n({"aria-label":ni("removeTokenIcon"),className:ye("removeTokenIcon"),onClick:function(te){return Hn(te,Wt)},onKeyDown:function(te){return ai(te,Wt)},tabIndex:i.tabIndex||"0"},Te("removeTokenIcon",br)),Vs=!i.disabled&&(i.removeIcon?nr.getJSXIcon(i.removeIcon,bl({},da),{props:i}):b.createElement(cb,da)),mo=n({className:ye("token")},Te("token",br)),Xr=n({className:ye("tokenLabel")},Te("tokenLabel",br));return b.createElement("div",ks({},mo,{key:oa}),b.createElement("span",Xr,Pr),Vs)})}return qn()},sr=function(){var Ye=i.optionGroupLabel?Lr(i.options):i.options;if(Z){var Et=A.trim().toLocaleLowerCase(i.filterLocale),Wt=i.filterBy?i.filterBy.split(","):[i.optionLabel||"label"];if(i.optionGroupLabel){var Jn=[],br=qO(i.options),Pr;try{for(br.s();!(Pr=br.n()).done;){var oa=Pr.value,da=P0.filter(Fe(oa),Wt,Et,i.filterMatchMode,i.filterLocale);da&&da.length&&Jn.push(bl(bl({},oa),_f({},i.optionGroupChildren,da)))}}catch(Vs){br.e(Vs)}finally{br.f()}return Lr(Jn)}return P0.filter(Ye,Wt,Et,i.filterMatchMode,i.filterLocale)}return Ye},Lr=function(Ye){return(Ye||[]).reduce(function(Et,Wt,Jn){Et.push(bl(bl({},Wt),{},{group:!0,index:Jn}));var br=Fe(Wt);return br&&br.forEach(function(Pr){return Et.push(Pr)}),Et},[])},pi=function(Ye){switch(Ye.code){case"Space":case"NumpadEnter":case"Enter":if(i.inline)break;mn(Ye,[],[]),Ye.preventDefault(),Ye.stopPropagation();break}},ai=function(Ye,Et){switch(Ye.code){case"Space":case"NumpadEnter":case"Enter":if(i.inline)break;Hn(Ye,Et),Ye.preventDefault(),Ye.stopPropagation();break}};b.useImperativeHandle(e,function(){return{props:i,show:He,hide:ot,focus:function(){return xe.focus(se.current)},getElement:function(){return z.current},getOverlay:function(){return ie.current},getInput:function(){return se.current}}}),Li(function(){wt()}),b.useEffect(function(){ke.combinedRefs(se,i.inputRef)},[se,i.inputRef]),b.useEffect(function(){i.overlayVisible===!0?He():i.overlayVisible===!1&&ot()},[i.overlayVisible]),fr(function(){H&&A&&Z&&wt()},[H,A,Z]),ja(function(){Di.clear(ie.current)});var ui=function(){var Ye=n({className:ye("clearIcon"),"aria-label":ni("clear"),onClick:function(br){return mn(br,[],[])},onKeyDown:function(br){return pi(br)},tabIndex:i.tabIndex||"0"},Te("clearIcon")),Et=i.clearIcon||b.createElement(mc,Ye),Wt=nr.getJSXIcon(Et,bl({},Ye),{props:i});return!X&&i.showClear&&!i.disabled?Wt:null},Pi=function(){var Ye=Fn(),Et=n({ref:K,className:ye("labelContainer")},Te("labelContainer")),Wt=n({ref:re,className:ye("label",{empty:X})},Te("label"));return b.createElement("div",Et,b.createElement("div",Wt,Ye||i.placeholder||i.emptyMessage||"empty"))},er=sr(),Ui=ke.isNotEmpty(i.tooltip),Ti=v2.getOtherProps(i),Si=ke.reduceKeys(Ti,xe.ARIA_PROPS),Hi=n({className:ye("triggerIcon")},Te("triggerIcon")),fn=n({className:ye("trigger")},Te("trigger")),Ue=i.loadingIcon?nr.getJSXIcon(i.loadingIcon,bl({},Hi),{props:i}):b.createElement(R1,ks({spin:!0},Hi)),Kt=i.dropdownIcon?nr.getJSXIcon(i.dropdownIcon,bl({},Hi),{props:i}):b.createElement(Yd,Hi),jn=b.createElement("div",fn,i.loading?Ue:Kt),jr=!i.inline&&Pi(),kr=!i.inline&&ui(),Ka=n(bl(bl({ref:z,id:i.id,style:bl(bl({},i.style),de("root")),className:ft(i.className,ye("root",{focusedState:M,context:r,overlayVisibleState:H}))},Ti),{},{onClick:ce}),v2.getOtherProps(i),Te("root")),Vr=n({className:"p-hidden-accessible","data-p-hidden-accessible":!0},Te("hiddenInputWrapper")),Es=n(bl({ref:se,id:i.inputId,name:i.name,type:"text",onFocus:yn,onBlur:lt,onKeyDown:hn,role:"combobox","aria-expanded":H,disabled:i.disabled,tabIndex:i.disabled?-1:i.tabIndex,value:qn()},Si),Te("input"));return b.createElement(b.Fragment,null,b.createElement("div",Ka,b.createElement("div",Vr,b.createElement("input",ks({},Es,{readOnly:!0}))),!i.inline&&b.createElement(b.Fragment,null,jr,kr,jn),b.createElement(BO,ks({hostName:"MultiSelect",ref:ie,visibleOptions:er},i,{onClick:ve,onOverlayHide:ot,filterValue:m,focusedOptionIndex:l,onFirstHiddenFocus:_e,onLastHiddenFocus:Ne,firstHiddenFocusableElementOnOverlay:R,lastHiddenFocusableElementOnOverlay:Y,setFocusedOptionIndex:c,hasFilter:Z,isValidOption:Mn,getOptionValue:Nt,updateModel:mn,onFilterInputChange:En,resetFilter:Tt,onCloseClick:Vt,onSelectAll:Ut,getOptionLabel:yt,getOptionRenderKey:An,isOptionDisabled:Qe,getOptionGroupChildren:Fe,getOptionGroupLabel:It,getOptionGroupRenderKey:Nn,isSelected:Wn,getSelectedOptionIndex:On,isAllSelected:ut,onOptionSelect:he,allowOptionSelect:Ae,in:H,onEnter:rn,onEntered:nn,onExit:Jt,onExited:_n,ptm:Te,cx:ye,sx:de,isUnstyled:ne,metaData:me,changeFocusedOptionIndex:kn}))),Ui&&b.createElement(cn,ks({target:z,content:i.tooltip,pt:Te("tooltip")},i.tooltipOptions)))}));$O.displayName="MultiSelect";const bde=t=>{var Te,ye,de,ne,U,ee,oe,ge,_e,Ne;const{field:e,fieldIndex:n,row:r,pageIndex:i,sectionIndex:a,rowIndex:s,columnIndex:l,isDisabled:c}=t,{isBuilderMode:u,isAdmin:d}=zt(),[f,h]=O.useState([]),[g,v]=O.useState(!1),[m,A]=O.useState(!1),{userSelectedLanguage:w,formBuilderFormLayout:x,sectionSettingUpdate:S,pageSettingUpdate:T,fieldSettingUpdate:C}=sn(),{taskRegisterData:E,updateTaskRegisterData:_,updateTaskProgressValue:M,userTaskSubmitFormData:k,updateUserFormDataSubmit:F,task_status:P,TASK_PUBLISHED:H}=Ar(),[N,z]=O.useState(0),[$,le]=O.useState(!1),R=()=>{le(!0)},Y=()=>{le(!1)},se=ve=>{A(ve)},K=()=>{A(!1)},ie=ve=>{h(ve.value),r!=null&&r.rowIsRepeatable?W(i,a,e,ve.value):X(ve.value)},re=ve=>{e==null||e.conditionalTabRules.rules.map(Ae=>{var Be;(Be=Ae==null?void 0:Ae.conditions)==null||Be.map(Ee=>{var B;if((B=ve.value)!=null&&B.some(fe=>fe===Ee.option)){const fe=_t.findIndex(x,ce=>{var pe;return ce.uuid===((pe=Ee==null?void 0:Ee.tab)==null?void 0:pe.uuid)}),he=x[fe];he.isHidden=!1,T(fe,he)}else{const fe=_t.findIndex(x,ce=>{var pe;return ce.uuid===((pe=Ee==null?void 0:Ee.tab)==null?void 0:pe.uuid)}),he=x[fe];he.isHidden=!0,T(fe,he)}})})},Z=ve=>{e==null||e.conditionalSectionRules.rules.map(Ae=>{var Be;(Be=Ae==null?void 0:Ae.conditions)==null||Be.map(Ee=>{var B;if((B=ve.value)!=null&&B.some(fe=>fe===Ee.option)){const fe=_t.findIndex(x,pe=>{var Se;return pe.uuid===((Se=Ee==null?void 0:Ee.tab)==null?void 0:Se.uuid)}),he=_t.findIndex(x[fe].children,pe=>{var Se;return pe.uuid===((Se=Ee==null?void 0:Ee.section)==null?void 0:Se.uuid)}),ce=x[fe].children[he];ce.isHidden=!1,S(fe,he,ce)}else{const fe=_t.findIndex(x,pe=>{var Se;return pe.uuid===((Se=Ee==null?void 0:Ee.tab)==null?void 0:Se.uuid)}),he=_t.findIndex(x[fe].children,pe=>{var Se;return pe.uuid===((Se=Ee==null?void 0:Ee.section)==null?void 0:Se.uuid)}),ce=x[fe].children[he];ce.isHidden=!0,S(fe,he,ce)}})})},X=ve=>{const Ae=k,Be=_t.cloneDeep(E);if((ve==null?void 0:ve.length)>0&&(Ae==null?void 0:Ae.length)>0){Be[e==null?void 0:e.uuid]=ve;for(const Ee of Ae)Ee.fieldId===t.field.uuid&&(Ee.postData[0]={postValue:ve})}else if(delete Be[e==null?void 0:e.uuid],(Ae==null?void 0:Ae.length)>0)for(const Ee of Ae)Ee.fieldId===t.field.uuid&&(Ee.postData[0]={postValue:[]});if(!(r!=null&&r.rowIsRepeatable)){_(Be);const Ee=Object.keys(Be).length;M(Ee)}},W=(ve,Ae,Be,Ee)=>{var B;if(h(Ee),k){const fe=[...k],he=_t.findIndex(fe,function(Se){return Se.rowId===(r==null?void 0:r.uuid)});let ce=(B=k[he])==null?void 0:B.repeatableFields,pe="<ol class='card '>";Ee==null||Ee.map(Se=>{pe=pe+`<li>${Se}</li>`}),pe=pe+"</ol>",ce={...ce,[Be==null?void 0:Be.uuid]:pe},fe[he]={...fe[he],repeatableFields:ce},F(fe)}(Ee==null?void 0:Ee.length)>0?Be.isValid=1:Be.isValid=0,C(ve,Ae,s,l,n,Be)},me=()=>{var ve,Ae,Be;if(r!=null&&r.rowIsRepeatable){if(r!=null&&r.repeatableFields){const Ee=[...r.repeatableFields],B=_t.findIndex(Ee,function(fe){return fe.uuid===(e==null?void 0:e.uuid)});B>=0&&Ee[B].fieldData?h(fe=>[...fe,Ee[B].fieldData]):(e.isValid=0,h([]))}}else{const Ee=k,B=_t.cloneDeep(E);if(Ee!=null&&Ee.length){for(const fe of Ee)if(fe.fieldId===t.field.uuid&&((ve=fe==null?void 0:fe.postData)!=null&&ve.length)){h((Ae=fe==null?void 0:fe.postData[0])==null?void 0:Ae.postValue),B[e==null?void 0:e.uuid]=(Be=fe==null?void 0:fe.postData[0])==null?void 0:Be.postValue;const he=Object.keys(B).length;M(he);break}}}v(!0)};O.useEffect(()=>{!g&&(k==null?void 0:k.length)>0&&me();const ve=Gt.addListener("onSubmitUserForm",()=>{var Ee;(Ee=e==null?void 0:e.attributes)!=null&&Ee.required?(f==null?void 0:f.length)>0?e.isValid=1:e.isValid=0:e.isValid=1}),Ae=Gt.addListener("clearRepeatableFields",Ee=>{Ee===(r==null?void 0:r.uuid)&&(h([]),z(0),e.isValid=0)}),Be=Gt.addListener("OnInvalidFieldCatch",Ee=>{e.uuid===(Ee==null?void 0:Ee.fieldId)?z(1):z(0)});return()=>{ve.remove(),Be.remove(),Ae.remove()}});const be=o.jsxs("div",{onMouseOver:R,onMouseOut:Y,children:[u&&$&&o.jsx(Wr,{handleFieldSettingsSidebar:se,...t}),o.jsxs("div",{className:`field ${u&&" py-3 px-4 builder-element-wrapper "}${(e==null?void 0:e.isFluid)===!0&&" p-fluid"}`,children:[o.jsxs("div",{className:"grid",children:[o.jsxs("div",{className:u?"col-12 p-fluid field-form-builder":"col-12 p-fluid",children:[(e==null?void 0:e.showHeaderText)&&o.jsx("h6",{children:(Te=e==null?void 0:e.headerText)==null?void 0:Te[w==null?void 0:w.type]}),(e==null?void 0:e.showLabel)&&o.jsxs("label",{htmlFor:e.uuid,className:"flex font-bold mb-3 text-gray-900 text-xl",children:[o.jsx(ca,{...t}),((ye=e==null?void 0:e.attributes)==null?void 0:ye.required)&&o.jsx("span",{className:"must-required mr-1",children:"*"})," ",u?o.jsx(aa,{...t}):o.jsx(o.Fragment,{children:(de=e==null?void 0:e.label)==null?void 0:de[w==null?void 0:w.type]}),o.jsx("span",{className:"ml-3",children:(e==null?void 0:e.showToolTip)&&o.jsx(zi,{message:(ne=e==null?void 0:e.toolTip)==null?void 0:ne[w==null?void 0:w.type],position:"right"})})]}),o.jsx($O,{onFocus:()=>z(1),value:f,onChange:ve=>{ie(ve),re(ve),Z(ve)},options:e==null?void 0:e.options,optionLabel:`optionText.${w.type}`,placeholder:(U=e==null?void 0:e.placeholder)==null?void 0:U[w==null?void 0:w.type],display:"chip",disabled:d||c}),((ee=e==null?void 0:e.attributes)==null?void 0:ee.required)&&o.jsx("small",{className:"error",children:N===1&&!((f==null?void 0:f.length)>0)?(oe=e==null?void 0:e.validationMesssage)==null?void 0:oe.english:""})]}),o.jsx("div",{children:(e==null?void 0:e.showHelperText)&&o.jsx("small",{children:(ge=e==null?void 0:e.helperText)==null?void 0:ge[w==null?void 0:w.type]})}),d&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(ki,{...t})]})]}),((_e=e==null?void 0:e.inlineConditionalRules)==null?void 0:_e.rules.length)>0&&u===!0&&o.jsx("p",{children:"Inline conditional rules"}),(Ne=e==null?void 0:e.inlineConditionalRules)==null?void 0:Ne.rules.map((ve,Ae)=>u===!1?o.jsx("div",{children:ve==null?void 0:ve.conditions.map((Be,Ee)=>{if(f!=null&&f.some(B=>B===Be.value)||u)return o.jsx("div",{className:"p-field p-pt-2",children:o.jsx(o.Fragment,{children:o.jsx(ab,{data:e,ruleIndex:Ae,conditionIndex:Ee,condition:Be,...t})})},Ee)})},`rule-${Ae}`):o.jsx(ci,{className:"mt-4",header:`Rule ${Ae+1}`,children:o.jsx("div",{children:ve==null?void 0:ve.conditions.map((Be,Ee)=>{if(f!=null&&f.some(B=>B===Be.value)||u)return o.jsx("div",{className:"p-field p-pt-2",children:o.jsx(o.Fragment,{children:o.jsx(ab,{data:e,...t,ruleIndex:Ae,conditionIndex:Ee,condition:Be})})},Ee)})},`rule-${Ae}`)},Ae))]})]});return o.jsxs(o.Fragment,{children:[o.jsx(Qi,{visibilty:m,closeSettingFieldSidebar:K,...t},e==null?void 0:e.uuid),o.jsx(xi,{...t,fieldWrap:be})]})},yde=t=>{const{options:e,title:n}=t,r=e.collapsed?"pi pi-chevron-down":"pi pi-chevron-up",i=`${e.className} justify-content-start`,a=`${e.titleClassName} pl-1`;return o.jsxs("div",{className:i,children:[o.jsxs("button",{className:e.togglerClassName,onClick:e.onTogglerClick,children:[o.jsx("span",{className:r}),o.jsx(Qt,{})]}),o.jsx("span",{className:a,children:n})]})},jO=t=>{const e=O.useRef(null),{optionIndex:n,option:r,field:i,fieldIndex:a,pageIndex:s,sectionIndex:l,rowIndex:c,columnIndex:u,path:d}=t,{userSelectedLanguage:f,fieldSettingUpdate:h,fieldSettingUpdateInlineConditional:g,gridComponentFieldSettingUpdate:v}=sn(),[m,A]=O.useState(r==null?void 0:r.optionText[f==null?void 0:f.type]);O.useEffect(()=>(A(r==null?void 0:r.optionText[f==null?void 0:f.type]),()=>{}),[i]),O.useEffect(()=>{const S=setTimeout(()=>{x("optionText",r.uuid,m,f)},1500);return()=>{clearTimeout(S)}},[m]);const w=S=>{const T=d.split("-").map(Number);(t==null?void 0:t.fieldContainer)==="inline-condition-container"?g(T[fa],T[ha],T[Ca],T[xa],T[Ta],T[Fa],T[Xo],T[wo],S):(T==null?void 0:T.length)>Fa&&(T==null?void 0:T.length)===Bl+1&&(i!=null&&i.componentType)&&(t==null?void 0:t.fieldContainer)==="grid-container"?v(T[fa],T[ha],T[Ca],T[xa],T[Ta],T[5],T[6],T[7],S):h(s,l,c,u,a,{...S})},x=(S,T,C,E)=>{if(i!=null&&i.options){const _=[...i.options];_[n][S][E==null?void 0:E.type]=C,w({...i,options:_})}};return o.jsx(o.Fragment,{children:o.jsx(D3,{id:r==null?void 0:r.uuid,style:{display:"inline-block"},className:"builder-input-label-edit",innerRef:e,html:m||"",disabled:!1,onChange:S=>{A(S.target.value)},tagName:"article"},r==null?void 0:r.uuid)})},zO=t=>{const{optionId:e,field:n,fieldIndex:r,columnIndex:i,sectionIndex:a,rowIndex:s,pageIndex:l,path:c}=t,{fieldSettingUpdate:u,fieldSettingUpdateInlineConditional:d,gridComponentFieldSettingUpdate:f}=sn(),h=m=>{const A=c.split("-").map(Number);(t==null?void 0:t.fieldContainer)==="inline-condition-container"?d(A[fa],A[ha],A[Ca],A[xa],A[Ta],A[Fa],A[Xo],A[wo],m):(A==null?void 0:A.length)>Fa&&(A==null?void 0:A.length)===Bl+1&&(m!=null&&m.componentType)&&(t==null?void 0:t.fieldContainer)==="grid-container"?f(A[fa],A[ha],A[Ca],A[xa],A[Ta],A[5],A[6],A[7],m):u(l,a,s,i,r,m)},g=()=>{const m=n==null?void 0:n.options.filter(function(w){return(w==null?void 0:w.uuid)!==e}),A={...n,options:m};h(A)},v=()=>{const m=_t.cloneDeep(n),A={...m,options:[...m.options,{uuid:tt(),optionText:{english:"Unititled"},value:tt(),score:0,hyperlinkText:{english:""},abbreviationText:{english:""},custom_values:{}}]};h(A)};return o.jsxs(o.Fragment,{children:[o.jsx(Ft,{text:!0,label:"Add",className:"w-5rem ml-3 mr-3",onClick:()=>v(),size:"small"}),o.jsx(Ft,{text:!0,className:"w-3rem",size:"small",onClick:()=>{g()},icon:"pi pi-trash"})]})},Ade=t=>{var Ne,ve,Ae,Be,Ee,B,fe,he,ce;const[e,n]=O.useState([]),[r,i]=O.useState(0),{taskRegisterData:a,updateTaskRegisterData:s,updateTaskProgressValue:l,userTaskSubmitFormData:c,task_status:u,updateUserFormDataSubmit:d,taskFieldUpdateHook:f,TASK_PUBLISHED:h,updateProgressDataValuesHook:g}=Ar(),{globalAlignment:v,isBuilderMode:m,isRenderView:A,isAdmin:w}=zt(),{sectionSettingUpdate:x,userSelectedLanguage:S,fieldSettingUpdate:T,formBuilderFormLayout:C,pageSettingUpdate:E}=sn(),{field:_,fieldIndex:M,sectionIndex:k,pageIndex:F,row:P,rowIndex:H,columnIndex:N,section:z,page:$,isDisabled:le}=t,[R,Y]=O.useState(!1),[se,K]=O.useState(!1),[ie,re]=O.useState(!1),Z=()=>{re(!0)},X=()=>{re(!1)},W=pe=>{Y(pe)},me=()=>{Y(!1)},be=pe=>{const Se=[...e];pe.checked?Se.push(pe.value):Se.splice(Se.indexOf(pe.value),1),n(Se),P!=null&&P.rowIsRepeatable?c&&oe(F,k,_,Se):(Te(pe),de(Se),c&&(U(Se),(Se==null?void 0:Se.length)>0?_.isValid=1:_.isValid=0,f(F,k,H,N,M,_)))},Te=pe=>{var De;const Se=(De=pe==null?void 0:pe.value)==null?void 0:De.value;_==null||_.conditionalTabRules.rules.map(Me=>{var ze;(ze=Me==null?void 0:Me.conditions)==null||ze.map(rt=>{if(Se===(rt==null?void 0:rt.option)&&(pe!=null&&pe.checked)){const it=_t.findIndex(C,Ht=>{var hn;return Ht.uuid===((hn=rt==null?void 0:rt.tab)==null?void 0:hn.uuid)}),ht=C[it];ht.isHidden=!1,E(it,ht)}else if(Se===(rt==null?void 0:rt.option)&&!(pe!=null&&pe.checked)){const it=_t.findIndex(C,Ht=>{var hn;return Ht.uuid===((hn=rt==null?void 0:rt.tab)==null?void 0:hn.uuid)}),ht=C[it];ht.isHidden=!0,E(it,ht)}})})},ye=O.useCallback((pe,Se)=>{var De;if((c==null?void 0:c.length)>0){const Me=c;if(Me!=null&&Me.length){const ze=a;for(const[it,ht]of Se.children.entries())for(const[,Ht]of ht.children.entries())for(const[hn,Ut]of Ht.children.entries())if(ht!=null&&ht.rowIsRepeatable){if((ht==null?void 0:ht.rowIsRepeatable)===!0){const mn=_t.findIndex(Me,function(En){return En.rowId===ht.uuid});pe===!0?mn===-1&&(Me.push({postData:[],tabId:$.uuid,rowId:ht==null?void 0:ht.uuid,tabIndex:F,sectionId:z.uuid,minimumEntries:z==null?void 0:z.minimumEntries,sectionIndex:k,sectionHeading:z.heading,subHeadingText:z.subHeadingText,repeatableFields:{},repeatableFieldsData:[],language:"english",isHiddenSection:z.isHidden&&z.isHidden===1?1:0,reviewerChecklist:ht==null?void 0:ht.reviewerChecklist}),ze[ht==null?void 0:ht.uuid]&&delete ze[ht==null?void 0:ht.uuid]):(ze[ht==null?void 0:ht.uuid]&&delete ze[ht==null?void 0:ht.uuid],mn>=0&&Me.splice(mn,1))}}else{const mn=_t.findIndex(Me,function(En){return En.fieldId===Ut.uuid});pe?mn===-1&&(Me.push({postData:[],tabId:$.uuid,tabIndex:F,...Ut.inlineConditionalRules?{inlineConditionalRules:Ut.inlineConditionalRules}:{},...Ut.conditionalTabRules?{conditionalTabRules:Ut.conditionalTabRules}:{},...Ut.conditionalSectionRules?{conditionalSectionRules:Ut.conditionalSectionRules}:{},sectionId:z.uuid,sectionIndex:k,sectionHeading:z.heading,subHeadingText:z.subHeadingText,reviewerChecklist:Ut==null?void 0:Ut.reviewerChecklist,rowId:ht.uuid,rowIndex:it,columnId:z.uuid,columnIndex:N,inlineConditionalField:!0,fieldIndex:hn,fieldId:Ut.uuid,fieldInputType:Ut.componentType,fieldTitle:(De=Ut.label)==null?void 0:De.english,fieldDescription:Ut.description||null,fieldHelperText:Ut.helperText||null,fieldHeaderText:Ut.headerText||null,fieldFooterText:Ut.footerText||null,fieldTitleAbb:Ut.abbreviationLabel||Ut.label,question_abb_table:Ut.textForTable||null,language:"english",isHiddenfield:Ut.isHidden&&Ut.isHidden===1?1:0,isHiddenSection:z.isHidden&&z.isHidden===1?1:0}),ze[Ut==null?void 0:Ut.uuid]&&delete ze[Ut==null?void 0:Ut.uuid]):(ze[Ut==null?void 0:Ut.uuid]&&delete ze[Ut==null?void 0:Ut.uuid],mn>=0&&Me.splice(mn,1))}const rt=Object.keys(ze).length;g({progressMaxValue:Me==null?void 0:Me.length,progressValue:rt}),d([...Me])}}},[N,_==null?void 0:_.abbreviationLabel,_==null?void 0:_.componentType,_==null?void 0:_.conditionalSectionRules,_==null?void 0:_.conditionalTabRules,_==null?void 0:_.description,_==null?void 0:_.footerText,_==null?void 0:_.headerText,_==null?void 0:_.helperText,_==null?void 0:_.inlineConditionalRules,_==null?void 0:_.isHidden,_==null?void 0:_.label,_==null?void 0:_.reviewerChecklist,_==null?void 0:_.textForTable,$==null?void 0:$.uuid,F,P==null?void 0:P.uuid,H,z==null?void 0:z.heading,z==null?void 0:z.isHidden,z==null?void 0:z.subHeadingText,z==null?void 0:z.uuid,k,a,g,d,c]),de=pe=>{_==null||_.conditionalSectionRules.rules.map(Se=>{var De;(De=Se==null?void 0:Se.conditions)==null||De.map(Me=>{if(pe!=null&&pe.some(ze=>ze.value===Me.option)){const ze=_t.findIndex(C,ht=>{var Ht;return ht.uuid===((Ht=Me==null?void 0:Me.tab)==null?void 0:Ht.uuid)}),rt=_t.findIndex(C[ze].children,ht=>{var Ht;return ht.uuid===((Ht=Me==null?void 0:Me.section)==null?void 0:Ht.uuid)}),it=C[ze].children[rt];it.isHidden=!1,ye(!0,C[ze].children[rt]),x(ze,rt,it)}else{const ze=_t.findIndex(C,ht=>{var Ht;return ht.uuid===((Ht=Me==null?void 0:Me.tab)==null?void 0:Ht.uuid)}),rt=_t.findIndex(C[ze].children,ht=>{var Ht;return ht.uuid===((Ht=Me==null?void 0:Me.section)==null?void 0:Ht.uuid)}),it=C[ze].children[rt];it.isHidden=!0,ye(!1,C[ze].children[rt]),x(ze,rt,it)}})})},ne=()=>{var Se,De,Me,ze;const pe=c;if((pe==null?void 0:pe.length)>0){for(const rt of pe)if(rt.fieldId===t.field.uuid){n(((Se=rt==null?void 0:rt.postData[0])==null?void 0:Se.postValue.length)>0?(De=rt==null?void 0:rt.postData[0])==null?void 0:De.postValue:[]);const it=((Me=rt==null?void 0:rt.postData[0])==null?void 0:Me.postValue.length)>0?(ze=rt==null?void 0:rt.postData[0])==null?void 0:ze.postValue:[];_==null||_.conditionalTabRules.rules.map(ht=>{var Ht;(Ht=ht==null?void 0:ht.conditions)==null||Ht.map(hn=>{if(it.some(Ut=>Ut.value===(hn==null?void 0:hn.option))){const Ut=_t.findIndex(C,En=>{var Tt;return En.uuid===((Tt=hn==null?void 0:hn.tab)==null?void 0:Tt.uuid)}),mn=C[Ut];mn.isHidden=!1,E(Ut,mn)}})}),K(!0);break}}},U=pe=>{const Se=c,De=_t.cloneDeep(a);if((pe==null?void 0:pe.length)>0&&(Se==null?void 0:Se.length)>0){De[_==null?void 0:_.uuid]=pe;for(const ze of Se)ze.fieldId===t.field.uuid&&(ze.postData[0]={postValue:pe});s(De);const Me=Object.keys(De).length;l(Me)}else{if(delete De[_==null?void 0:_.uuid],(Se==null?void 0:Se.length)>0)for(const ze of Se)ze.fieldId===t.field.uuid&&(ze.postData[0]={postValue:[]});s(De);const Me=Object.keys(De).length;l(Me)}},ee=()=>{const pe=[];return _==null||_.options.map((Se,De)=>{var ze,rt,it,ht;const Me=e;pe.push(o.jsxs("div",{className:`field ${m&&" py-3 px-4 builder-element-wrapper "}${(_==null?void 0:_.isFluid)===!0&&" p-fluid"}`,children:[o.jsxs("div",{className:"flex align-items-center gap-2",children:[o.jsx(Yr,{id:`checkbox-option-${De}-${Se==null?void 0:Se.uuid}-${m?"builder":"preview"}`,onFocus:()=>i(1),disabled:w||le,onChange:Ht=>{be(Ht)},value:Se,checked:Me==null?void 0:Me.some(Ht=>Ht.uuid===Se.uuid)}),((ze=Se==null?void 0:Se.hyperlinkText)==null?void 0:ze[S==null?void 0:S.type])===""?o.jsxs("label",{htmlFor:`checkbox-option-${De}-${Se==null?void 0:Se.uuid}-${m?"builder":"preview"}`,children:[_!=null&&_.showAlphabetList?o.jsxs("span",{className:"mx-2",children:[" ",xO(De)," "]}):o.jsx(o.Fragment,{}),m?o.jsx(o.Fragment,{children:o.jsx(jO,{...t,option:Se,optionIndex:De})}):o.jsx(o.Fragment,{children:(rt=Se==null?void 0:Se.optionText)==null?void 0:rt[S==null?void 0:S.type]})]}):o.jsx("label",{children:o.jsx("a",{href:(it=Se==null?void 0:Se.hyperlinkText)==null?void 0:it[S==null?void 0:S.type],target:"_blank",rel:"noreferrer",children:(ht=Se==null?void 0:Se.optionText)==null?void 0:ht[S==null?void 0:S.type]})})]}),m&&o.jsx("div",{className:"builder-radio-option-settings",children:o.jsx(zO,{optionId:Se==null?void 0:Se.uuid,...t})})]},`checkbox-option-${De}-${Se==null?void 0:Se.uuid}-${m?"builder":"preview"}`))}),pe};O.useEffect(()=>{se||ne();const pe=Gt.addListener("clearRepeatableFields",Me=>{Me===(P==null?void 0:P.uuid)&&(n([]),i(0),_.isValid=0,T(F,k,H,N,M,_))}),Se=Gt.addListener("onSubmitUserForm",()=>{var ze;const Me=e;(ze=_==null?void 0:_.attributes)!=null&&ze.required?(Me.length>0?_.isValid=1:_.isValid=0,f(F,k,H,N,M,_)):_.isValid=1}),De=Gt.addListener("OnInvalidFieldCatch",Me=>{_.uuid===(Me==null?void 0:Me.fieldId)?i(1):i(0)});return()=>{Se.remove(),De.remove(),pe.remove()}});const oe=(pe,Se,De,Me)=>{var Ht;n(Me);const ze=[...c],rt=_t.findIndex(ze,function(hn){return hn.rowId===(P==null?void 0:P.uuid)});let it=(Ht=c[rt])==null?void 0:Ht.repeatableFields,ht="<ol class='card '>";Me==null||Me.map(hn=>{ht=ht+`<li>${hn.value}</li>`}),ht=ht+"</ol>",it={...it,[De==null?void 0:De.uuid]:ht},ze[rt]={...ze[rt],repeatableFields:it},d(ze),(Me==null?void 0:Me.length)>0?De.isValid=1:De.isValid=0,T(pe,Se,H,N,rt,De)},ge=o.jsxs("div",{onMouseOver:Z,onMouseOut:X,children:[m&&ie&&o.jsx(Wr,{handleFieldSettingsSidebar:W,...t}),o.jsx("div",{className:`field ${m&&" py-3 px-4 builder-element-wrapper "}${(_==null?void 0:_.isFluid)===!0&&" p-fluid"}`,children:o.jsxs("div",{className:"grid",children:[o.jsxs("div",{className:"col-12",children:[(_==null?void 0:_.showHeaderText)&&o.jsx("h6",{children:(Ne=_==null?void 0:_.headerText)==null?void 0:Ne[S==null?void 0:S.type]}),(_==null?void 0:_.showLabel)&&o.jsxs("label",{htmlFor:`${M}`,className:"flex font-bold mb-3 text-gray-900 text-xl",children:[o.jsx(ca,{...t}),((ve=_==null?void 0:_.attributes)==null?void 0:ve.required)&&o.jsx("span",{className:"must-required mr-1",children:"*"})," ",m?o.jsx(aa,{...t}):o.jsx(o.Fragment,{children:(Ae=_==null?void 0:_.label)==null?void 0:Ae[S==null?void 0:S.type]}),o.jsx("span",{className:"ml-3",children:(_==null?void 0:_.showToolTip)&&o.jsx(zi,{message:(Be=_==null?void 0:_.toolTip)==null?void 0:Be[S==null?void 0:S.type],position:"right"})})]}),ee(),o.jsx("div",{children:((Ee=_==null?void 0:_.attributes)==null?void 0:Ee.required)&&o.jsx("small",{className:"error",children:r===1&&!(e&&(e==null?void 0:e.length)>0)?(B=_==null?void 0:_.validationMesssage)==null?void 0:B.language:""})}),o.jsx("div",{children:(_==null?void 0:_.showHelperText)&&o.jsx("small",{children:(fe=_==null?void 0:_.helperText)==null?void 0:fe[S==null?void 0:S.type]})}),((he=_==null?void 0:_.inlineConditionalRules)==null?void 0:he.rules.length)>0&&m===!0&&o.jsx("p",{children:"Inline conditional rules"}),(ce=_==null?void 0:_.inlineConditionalRules)==null?void 0:ce.rules.map((pe,Se)=>{if(m===!1){const De=e;return o.jsx("div",{children:pe==null?void 0:pe.conditions.map((Me,ze)=>o.jsx(O.Fragment,{children:o.jsx(e0,{isConditionTrue:De==null?void 0:De.some(rt=>rt.value===Me.value),inputValue:e,condition:Me,ruleIndex:Se,conditionIndex:ze,field:_,section:z,page:$,row:P,pageIndex:F,sectionIndex:k,rowIndex:H,columnIndex:N,...t})},`select-rule-${Se}-`+ze))},`rule-${Se}`)}else return o.jsx(ci,{className:"mt-4",header:`Rule ${Se+1}`,children:o.jsx("div",{children:pe==null?void 0:pe.conditions.map((De,Me)=>o.jsx(O.Fragment,{children:o.jsxs("div",{className:"card",children:[o.jsx(fu,{style:{marginTop:-20},className:"mr-2",severity:"success",value:`Condition: ${De==null?void 0:De.value}`,rounded:!0}),o.jsx(e0,{isConditionTrue:(e==null?void 0:e.some(ze=>ze.value===De.value))||m,inputValue:e,condition:De,ruleIndex:Se,conditionIndex:Me,field:_,section:z,page:$,row:P,pageIndex:F,sectionIndex:k,rowIndex:H,columnIndex:N,...t})]})},`select-rule-${Se}-`+Me))},`rule-${Se}`)},Se)})]}),w&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(ki,{...t})]})]})})]}),_e=()=>{let pe="";return m&&(pe=pe+" field-form-builder"),u===h&&w===!0&&(pe=pe+" card"),pe};return o.jsxs(o.Fragment,{children:[R===!0&&o.jsx(Qi,{visibilty:R,closeSettingFieldSidebar:me,...t},_==null?void 0:_.uuid),o.jsx("div",{className:_e(),dir:v,children:u===h&&w===!0?o.jsx(ci,{headerTemplate:pe=>{var Se;return o.jsx(yde,{options:pe,title:(Se=_==null?void 0:_.label)==null?void 0:Se[S==null?void 0:S.type]})},toggleable:!0,children:ge}):ge})]})},wde=6,Sde=t=>{var ne,U,ee,oe,ge,_e,Ne,ve,Ae,Be,Ee;const{task_status:e,taskRegisterData:n,updateTaskRegisterData:r,updateTaskProgressValue:i,userTaskSubmitFormData:a,updateUserFormDataSubmit:s,updateProgressDataValuesHook:l,TASK_PUBLISHED:c}=Ar(),{field:u,row:d,pageIndex:f,sectionIndex:h,section:g,page:v,rowIndex:m,columnIndex:A,isDisabled:w=!1}=t,{isAdmin:x,isBuilderMode:S}=zt(),{pageSettingUpdate:T,formBuilderFormLayout:C,sectionSettingUpdate:E,userSelectedLanguage:_}=sn(),[M,k]=O.useState(!1),[F,P]=O.useState(null),[H,N]=O.useState(0),[z,$]=O.useState(!1),[le,R]=O.useState(!1),Y=()=>{R(!0)},se=()=>{R(!1)},K=B=>{k(B)},ie=()=>{k(!1)},re=()=>{var B,fe,he,ce;if((a==null?void 0:a.length)>0)if(d!=null&&d.rowIsRepeatable){if(d!=null&&d.repeatableFields){const pe=[...d.repeatableFields],Se=_t.findIndex(pe,function(De){return De.uuid===(u==null?void 0:u.uuid)});Se>=0&&pe[Se].fieldData?P(pe[Se].fieldData):(u.isValid=0,P(null))}}else{const pe=a,Se=_t.cloneDeep(n);let De=null;if(pe!=null&&pe.length){for(const Me of pe)if(Me.fieldId===t.field.uuid&&((B=Me==null?void 0:Me.postData)!=null&&B.length)){De=(fe=Me==null?void 0:Me.postData[0])==null?void 0:fe.postValue,P((he=Me==null?void 0:Me.postData[0])==null?void 0:he.postValue),Se[u==null?void 0:u.uuid]=(ce=Me==null?void 0:Me.postData[0])==null?void 0:ce.postValue;const ze=Object.keys(Se).length;i(ze);break}}Z({value:De}),W({value:De})}setTimeout(()=>{$(!0)},2e3)},Z=B=>{const fe=B.value;u==null||u.conditionalTabRules.rules.map(he=>{var ce;(ce=he==null?void 0:he.conditions)==null||ce.map(pe=>{const Se=_t.findIndex(C,De=>{var Me;return De.uuid===((Me=pe==null?void 0:pe.tab)==null?void 0:Me.uuid)});if(fe===(pe==null?void 0:pe.option)){const De=C[Se];De.isHidden=!1,T(Se,De)}else{let De=C[Se];De={...De,isHidden:!0},T(Se,De)}})})},X=O.useCallback((B,fe)=>{var he;if((a==null?void 0:a.length)>0){const ce=a;if(ce!=null&&ce.length){const pe=n;for(const[De,Me]of fe.children.entries())for(const[,ze]of Me.children.entries())for(const[rt,it]of ze.children.entries())if(Me!=null&&Me.rowIsRepeatable){if((Me==null?void 0:Me.rowIsRepeatable)===!0){const ht=_t.findIndex(ce,function(Ht){return Ht.rowId===Me.uuid});B===!0?ht===-1&&(ce.push({postData:[],tabId:v.uuid,rowId:Me==null?void 0:Me.uuid,tabIndex:f,sectionId:g.uuid,minimumEntries:g==null?void 0:g.minimumEntries,sectionIndex:h,sectionHeading:g.heading,subHeadingText:g.subHeadingText,repeatableFields:{},repeatableFieldsData:[],language:"english",isHiddenSection:!!(g.isHidden&&g.isHidden===!0),reviewerChecklist:Me==null?void 0:Me.reviewerChecklist}),pe[Me==null?void 0:Me.uuid]&&delete pe[Me==null?void 0:Me.uuid]):(pe[Me==null?void 0:Me.uuid]&&delete pe[Me==null?void 0:Me.uuid],ht>=0&&ce.splice(ht,1))}}else{const ht=_t.findIndex(ce,function(Ht){return Ht.fieldId===it.uuid});B?ht===-1&&(ce.push({postData:[],tabId:v.uuid,tabIndex:f,...it.inlineConditionalRules?{inlineConditionalRules:it.inlineConditionalRules}:{},...it.conditionalTabRules?{conditionalTabRules:it.conditionalTabRules}:{},...it.conditionalSectionRules?{conditionalSectionRules:it.conditionalSectionRules}:{},sectionId:g.uuid,sectionIndex:h,sectionHeading:g.heading,subHeadingText:g.subHeadingText,reviewerChecklist:it==null?void 0:it.reviewerChecklist,rowId:Me.uuid,rowIndex:De,columnId:g.uuid,columnIndex:A,inlineConditionalField:!0,fieldIndex:rt,fieldId:it.uuid,fieldInputType:it.componentType,fieldTitle:(he=it.label)==null?void 0:he.english,fieldDescription:it.description||null,fieldHelperText:it.helperText||null,fieldHeaderText:it.headerText||null,fieldFooterText:it.footerText||null,fieldTitleAbb:it.abbreviationLabel||it.label,question_abb_table:it.textForTable||null,language:"english",isHiddenfield:it.isHidden&&it.isHidden===1?1:0,isHiddenSection:!!(g.isHidden&&g.isHidden===!0)}),pe[it==null?void 0:it.uuid]&&delete pe[it==null?void 0:it.uuid]):(pe[it==null?void 0:it.uuid]&&delete pe[it==null?void 0:it.uuid],ht>=0&&ce.splice(ht,1))}const Se=Object.keys(pe).length;l({progressMaxValue:ce==null?void 0:ce.length,progressValue:Se}),s([...ce])}}},[A,u==null?void 0:u.abbreviationLabel,u==null?void 0:u.componentType,u==null?void 0:u.conditionalSectionRules,u==null?void 0:u.conditionalTabRules,u==null?void 0:u.description,u==null?void 0:u.footerText,u==null?void 0:u.headerText,u==null?void 0:u.helperText,u==null?void 0:u.inlineConditionalRules,u==null?void 0:u.isHidden,u==null?void 0:u.label,u==null?void 0:u.reviewerChecklist,u==null?void 0:u.textForTable,v==null?void 0:v.uuid,f,d==null?void 0:d.uuid,m,g==null?void 0:g.heading,g==null?void 0:g.isHidden,g==null?void 0:g.subHeadingText,g==null?void 0:g.uuid,h,n,l,s,a]),W=B=>{const fe=B.value;u==null||u.conditionalSectionRules.rules.map(he=>{var ce;(ce=he==null?void 0:he.conditions)==null||ce.map(pe=>{if((fe==null?void 0:fe.value)===(pe==null?void 0:pe.option)){const Se=_t.findIndex(C,ze=>{var rt;return ze.uuid===((rt=pe==null?void 0:pe.tab)==null?void 0:rt.uuid)}),De=_t.findIndex(C[Se].children,ze=>{var rt;return ze.uuid===((rt=pe==null?void 0:pe.section)==null?void 0:rt.uuid)}),Me=C[Se].children[De];Me.isHidden=!1,X(!0,C[Se].children[De]),E(Se,De,Me)}else{const Se=_t.findIndex(C,ze=>{var rt;return(ze==null?void 0:ze.uuid)===((rt=pe==null?void 0:pe.tab)==null?void 0:rt.uuid)}),De=_t.findIndex(C[Se].children,ze=>{var rt;return(ze==null?void 0:ze.uuid)===((rt=pe==null?void 0:pe.section)==null?void 0:rt.uuid)}),Me=C[Se].children[De];Me.isHidden=!0,X(!1,C[Se].children[De]),E(Se,De,Me)}})})};O.useEffect(()=>{z||re();const B=Gt.addListener("clearRepeatableFields",ce=>{ce===(d==null?void 0:d.uuid)&&(P(""),N(0),u.isValid=1)}),fe=Gt.addListener("onSubmitUserForm",()=>{var ce;if((ce=u==null?void 0:u.attributes)!=null&&ce.required){const pe=F;pe!=null&&pe.uuid&&(pe!=null&&pe.value)?u.isValid=1:u.isValid=0}else u.isValid=1}),he=Gt.addListener("OnInvalidFieldCatch",ce=>{(u==null?void 0:u.uuid)===(ce==null?void 0:ce.fieldId)?N(1):N(0)});return()=>{fe.remove(),he.remove(),B.remove()}});const me=(B,fe)=>{var he;if(a){const ce=[...a],pe=_t.findIndex(ce,function(De){return De.rowId===(d==null?void 0:d.uuid)});let Se=(he=a[pe])==null?void 0:he.repeatableFields;Se={...Se,[B==null?void 0:B.uuid]:fe},ce[pe]={...ce[pe],repeatableFields:Se},s(ce)}P(fe),fe!==null?B.isValid=1:B.isValid=0},be=B=>{var fe;P(B.target.value),Z(B),W(B),d!=null&&d.rowIsRepeatable?me(u,(fe=B==null?void 0:B.target)==null?void 0:fe.value):ye(B),setTimeout(()=>{Gt.emit("updatePageRender","complete")},1e3)},Te=()=>{var B;if(((B=u==null?void 0:u.fieldType)==null?void 0:B.type)==="radio"){const fe=[];return u==null||u.options.map((he,ce)=>{var Se,De,Me,ze;const pe=F;fe.push(o.jsxs("div",{className:`field-radiobutton ${u!=null&&u.showButtonLayout?"col-6 field-radiobutton-builder":""}`,onClick:()=>{(!x||!w)&&e!==wde&&be({value:he,target:{value:he}})},style:(pe==null?void 0:pe.uuid)===(he==null?void 0:he.uuid)&&(u!=null&&u.showButtonLayout)?{backgroundColor:"#0F8BFD",padding:5,borderRadius:8}:{padding:5},children:[o.jsx(ia,{onFocus:()=>{(!x||!w)&&N(1)},inputId:`radio-option-${ce}-${he==null?void 0:he.uuid}-${S?"builder-radio":"preview"}`,onChange:rt=>{(!x||!w)&&be(rt)},value:he,name:`radio-option-${ce}-${he==null?void 0:he.uuid}-${S?"builder":"preview"}`,checked:(pe==null?void 0:pe.uuid)===(he==null?void 0:he.uuid),disabled:x||w,readOnly:x||w}),((Se=he==null?void 0:he.hyperlinkText)==null?void 0:Se[_==null?void 0:_.type])===""?o.jsxs("label",{htmlFor:`radio-option-${ce}-${he==null?void 0:he.uuid}-${S?"builder-label":"preview"}`,children:[u!=null&&u.showAlphabetList?o.jsxs("span",{className:"mx-2",children:[" ",xO(ce)," "]}):"",S?o.jsx(o.Fragment,{children:o.jsx(jO,{...t,option:he,optionIndex:ce})}):o.jsxs(o.Fragment,{children:[" ",(De=he==null?void 0:he.optionText)==null?void 0:De[_==null?void 0:_.type]]})]}):o.jsx("label",{children:o.jsx("a",{href:(Me=he==null?void 0:he.hyperlinkText)==null?void 0:Me[_==null?void 0:_.type],target:"_blank",rel:"noreferrer",children:(ze=he==null?void 0:he.optionText)==null?void 0:ze[_==null?void 0:_.type]})}),S&&o.jsx("div",{className:"builder-radio-option-settings",children:o.jsx(zO,{optionId:he==null?void 0:he.uuid,...t})})]},"li-item-"+ce))}),fe}},ye=B=>{var Se,De;P(B.target.value);const fe={value:B.target.value};Z(fe),W(fe);const he=a,ce=_t.cloneDeep(n);if((Se=B==null?void 0:B.target)!=null&&Se.value&&(he==null?void 0:he.length)>0)for(const Me of he)Me.fieldId===t.field.uuid&&(ce[u==null?void 0:u.uuid]=(De=B==null?void 0:B.target)==null?void 0:De.value,Me.postData[0]={postValue:B.target.value});else delete ce[u==null?void 0:u.uuid];r(ce);const pe=Object.keys(ce).length;i(pe)},de=o.jsxs("div",{onMouseOver:Y,onMouseOut:se,children:[S&&le&&o.jsx(Wr,{handleFieldSettingsSidebar:K,...t}),o.jsx("div",{className:`field ${S&&" py-3 px-4 builder-element-wrapper "}${(u==null?void 0:u.isFluid)===!0&&" p-fluid"}`,children:o.jsxs("div",{className:"grid",children:[o.jsxs("div",{className:"col-12",children:[(u==null?void 0:u.showHeaderText)&&o.jsx("h6",{children:(ne=u==null?void 0:u.headerText)==null?void 0:ne[_==null?void 0:_.type]}),(u==null?void 0:u.showLabel)&&o.jsxs("label",{htmlFor:u.uuid,className:"flex font-bold mb-3 text-gray-900 text-xl",children:[o.jsx(ca,{...t}),((U=u==null?void 0:u.attributes)==null?void 0:U.required)&&o.jsx("span",{className:"must-required mr-1",children:"*"})," ",S?o.jsx(aa,{...t}):o.jsx(o.Fragment,{children:(ee=u==null?void 0:u.label)==null?void 0:ee[_==null?void 0:_.type]}),o.jsx("span",{className:"ml-3",children:u!=null&&u.showToolTip?o.jsx(o.Fragment,{children:o.jsx(zi,{message:(oe=u==null?void 0:u.toolTip)==null?void 0:oe[_==null?void 0:_.type],position:"right"})}):""})]}),(u==null?void 0:u.showButtonLayout)===!0?o.jsxs("div",{className:"grid",children:[Te()," "]}):Te(),o.jsx("div",{children:((ge=u==null?void 0:u.attributes)==null?void 0:ge.required)&&o.jsx("small",{className:"error",children:H===1&&F!==null?(_e=u==null?void 0:u.validationMesssage)==null?void 0:_e.language:""})}),o.jsx("div",{children:(u==null?void 0:u.showHelperText)&&o.jsx("small",{children:(Ne=u==null?void 0:u.helperText)==null?void 0:Ne[_==null?void 0:_.type]})}),((ve=u==null?void 0:u.inlineConditionalRules)==null?void 0:ve.rules.length)>0&&S===!0&&o.jsx("p",{children:"Inline conditional rules"}),z===!0&&((Be=(Ae=u==null?void 0:u.inlineConditionalRules)==null?void 0:Ae.rules)==null?void 0:Be.length)>0&&((Ee=u==null?void 0:u.inlineConditionalRules)==null?void 0:Ee.rules.map((B,fe)=>{const he=F;return S===!1?o.jsx("div",{children:B==null?void 0:B.conditions.map((ce,pe)=>o.jsx(O.Fragment,{children:o.jsx(e0,{isConditionTrue:!!((he==null?void 0:he.value)===ce.value||S),inputValue:F,condition:ce,ruleIndex:fe,conditionIndex:pe,field:u,section:g,page:v,row:d,pageIndex:f,sectionIndex:h,rowIndex:m,columnIndex:A,isAdmin:x,...t})},`select-rule-${fe}-`+pe))},`rule-${fe}`):o.jsx(ci,{className:"mt-4",header:`Rule ${fe+1}`,children:o.jsx("div",{children:B==null?void 0:B.conditions.map((ce,pe)=>{const Se=F;return o.jsx(O.Fragment,{children:o.jsx(e0,{isConditionTrue:!!((Se==null?void 0:Se.value)===ce.value||S),inputValue:F,condition:ce,ruleIndex:fe,conditionIndex:pe,field:u,section:g,page:v,row:d,pageIndex:f,sectionIndex:h,rowIndex:m,columnIndex:A,...t})},`select-rule-${fe}-`+pe)})},`rule-${fe}`)},fe)}))]}),x&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(ki,{...t})]})]})})]});return o.jsxs(o.Fragment,{children:[M===!0&&o.jsx(Qi,{visibilty:M,closeSettingFieldSidebar:ie,...t},u==null?void 0:u.uuid),o.jsx(xi,{...t,fieldWrap:de})]})},Cde=O.memo(Sde),xde=t=>{var i,a;const{language:e,onHandleChange:n,fieldState:r}=t;return o.jsxs("form",{className:"p-fluid",children:[o.jsxs("div",{className:"field",children:[o.jsx("span",{className:"must-required",children:"*"})," ",o.jsx("label",{children:"Text"}),o.jsx(wn,{value:(i=r.text)==null?void 0:i[e==null?void 0:e.type],onChange:s=>n("text",e,s.target.value),placeholder:"Heading text",id:r==null?void 0:r.uuid})]}),o.jsxs("div",{className:"field",children:[o.jsx("label",{children:"Hyperlink"}),o.jsx(wn,{value:(a=r.hrefLink)==null?void 0:a[e==null?void 0:e.type],onChange:s=>n("hrefLink",e,s.target.value),placeholder:"Link"})]})]})},Tde=t=>{const{onHandleChangeHeadingTypeSetttings:e,fieldState:n}=t,r=[{name:"H1",type:"h1"},{name:"H2",type:"h2"},{name:"H3",type:"h3"},{name:"H4",type:"h4"},{name:"H5",type:"h5"}];return o.jsxs("form",{className:"p-fluid",children:[o.jsx("h3",{children:"Select heading type"}),r.map((i,a)=>o.jsxs("div",{className:"field-radiobutton",children:[o.jsx(ia,{inputId:i==null?void 0:i.type,name:"heading",value:i==null?void 0:i.type,onChange:s=>e(s),checked:n.headingType===i.type}),o.jsx("label",{htmlFor:i.type,children:i.name})]},a))]})},Ede=t=>{const{fieldSettingUpdate:e,formBuilderSchemaLanguages:n,formBuilderPublishedStatus:r,fieldSettingUpdateInlineConditional:i,gridComponentFieldSettingUpdate:a}=sn(),{path:s,visibilty:l,field:c,closeSettingFieldSidebar:u,pageIndex:d,sectionIndex:f,rowIndex:h,columnIndex:g,fieldIndex:v,typeName:m}=t,[A,w]=O.useState(c),{updateGlobalToast:x}=zt(),S=(E,_,M)=>{w(k=>({...k,[E]:{...k[E],[_==null?void 0:_.type]:M}}))},T=E=>{w(_=>({..._,headingType:E==null?void 0:E.value}))},C=()=>{const E=s.split("-").map(Number);(E==null?void 0:E.length)>5&&(E==null?void 0:E.length)===8&&(A!=null&&A.inlineConditionalRules)?i(E[fa],E[ha],E[Ca],E[xa],E[Ta],E[Fa],E[Xo],E[wo],A):(E==null?void 0:E.length)>Fa&&(E==null?void 0:E.length)===Bl+1&&(A!=null&&A.componentType)?a(E[fa],E[ha],E[Ca],E[xa],E[Ta],E[ix],E[ax],E[sx],A):e(d,f,h,g,v,A),x({showToast:!0,toastMessage:"Updated",toastDetail:`${m} updated`,toastType:"success"})};return o.jsx(o.Fragment,{children:o.jsxs(To,{style:{width:"750px"},visible:l,position:"left",className:"p-sidebar-lg",onHide:()=>u(),header:()=>o.jsx("div",{className:"flex align-items-center gap-2 justify-content-between",children:o.jsxs("div",{className:"text-gray-900 font-bold text-2xl",children:[t==null?void 0:t.typeName," settings"]})}),children:[o.jsxs(ts,{children:[o.jsx(wr,{header:"Text",children:o.jsx(ao,{activeIndex:0,children:n!=null&&n.length?n.map((E,_)=>o.jsx(io,{tabIndex:_,header:E==null?void 0:E.language,children:o.jsx(xde,{language:E,fieldState:A,onHandleChange:S,...t})},_)):""})}),o.jsx(wr,{header:"Setting",children:o.jsx(Tde,{onHandleChangeHeadingTypeSetttings:T,fieldState:A})})]}),o.jsx("div",{className:"w-full px-4 py-3 surface-100 sidebar-footer",children:o.jsxs("div",{className:"flex flex-row gap-2 align-items-center justify-content-end",children:[!r&&o.jsx(Ft,{size:"small",label:"Update",type:"button",outlined:!0,onClick:()=>C(),"aria-label":"Update"}),o.jsx(Ft,{label:"Close",type:"button",onClick:()=>u(),"aria-label":"Close",size:"small",className:"p-button-danger"})]})})]})})},Ide=t=>{var v,m;const{field:e}=t,{isBuilderMode:n}=zt(),{userSelectedLanguage:r}=sn(),[i,a]=O.useState(!1),[s,l]=O.useState(!1),c=()=>{l(!0)},u=()=>{l(!1)},d=A=>{a(A)},f=()=>{a(!1)},h=()=>{var A,w,x,S,T,C;return(e==null?void 0:e.headingType)==="h1"?o.jsx("h1",{children:(A=e==null?void 0:e.text)==null?void 0:A[r==null?void 0:r.type]}):(e==null?void 0:e.headingType)==="h2"?o.jsx("h2",{children:(w=e==null?void 0:e.text)==null?void 0:w[r==null?void 0:r.type]}):(e==null?void 0:e.headingType)==="h3"?o.jsx("h3",{children:(x=e==null?void 0:e.text)==null?void 0:x[r==null?void 0:r.type]}):(e==null?void 0:e.headingType)==="h4"?o.jsx("h4",{children:(S=e==null?void 0:e.text)==null?void 0:S[r==null?void 0:r.type]}):(e==null?void 0:e.headingType)==="h5"?o.jsx("h5",{children:(T=e==null?void 0:e.text)==null?void 0:T[r==null?void 0:r.type]}):o.jsx("h1",{children:(C=e==null?void 0:e.text)==null?void 0:C[r==null?void 0:r.type]})},g=o.jsxs("div",{className:n?"builder-element-wrapper":"",onMouseOver:c,onMouseOut:u,children:[n&&s&&o.jsx(Wr,{handleFieldSettingsSidebar:d,...t}),o.jsx("div",{className:n?"field-form-builder px-2":" px-2",children:o.jsx("div",{className:"col-12",children:((v=e==null?void 0:e.hrefLink)==null?void 0:v[r==null?void 0:r.type])!==""?o.jsx("a",{href:(m=e==null?void 0:e.hrefLink)==null?void 0:m[r==null?void 0:r.type],target:"_blank",rel:"noreferrer",children:h()}):h()})})]});return o.jsxs(o.Fragment,{children:[i&&o.jsx(Ede,{visibilty:i,closeSettingFieldSidebar:f,...t},e==null?void 0:e.uuid),o.jsx(xi,{...t,fieldWrap:g})]})},_de=t=>{var i,a;const{language:e,onHandleQuestionTextChange:n,fieldState:r}=t;return o.jsxs("form",{className:"p-fluid",children:[o.jsxs("div",{className:"field",children:[o.jsx("span",{className:"must-required",children:"*"})," ",o.jsx("label",{children:"Question text"}),o.jsx(wn,{placeholder:"Enter question",value:(i=r.questionText)==null?void 0:i[e==null?void 0:e.type],onChange:s=>n("questionText",e.type,s.target.value)})]}),o.jsxs("div",{className:"field",children:[o.jsx("label",{children:"Correct answer"}),o.jsx(wn,{placeholder:"Enter correct answer",value:(a=r.correctAnswerComment)==null?void 0:a[e==null?void 0:e.type],onChange:s=>n("correctAnswerComment",e.type,s.target.value)})]})]})},Dde=t=>{var i;const{onHandleChange:e,fieldState:n,onHandleChangeAttributesSetttings:r}=t;return o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"p-fluid",children:o.jsxs("div",{className:"field",style:{display:"inline-block",width:"150px"},children:[o.jsx("span",{className:"must-required",children:"*"})," ",o.jsx("label",{children:"Time limit"}),o.jsxs("div",{className:"p-inputgroup",children:[o.jsx(eo,{inputId:"horizontal",showButtons:!0,buttonLayout:"horizontal",step:1,pt:{incrementButton:{className:"bg-teal-500 border-teal-500"},decrementButton:{className:"bg-orange-500 border-orange-500"}},value:n==null?void 0:n.timeLimit,onChange:a=>e("timeLimit",a.value)}),o.jsx("span",{className:"p-inputgroup-addon",children:"mins"})]})]})}),o.jsx("div",{className:"p-fluid",children:o.jsxs("div",{className:"field",style:{display:"inline-block",width:"100px"},children:[o.jsx("span",{className:"must-required",children:"*"})," ",o.jsx("label",{children:"Score"}),o.jsx("div",{className:"p-inputgroup",children:o.jsx(eo,{inputId:"horizontal",showButtons:!0,buttonLayout:"horizontal",step:1,pt:{incrementButton:{className:"bg-teal-500 border-teal-500"},decrementButton:{className:"bg-orange-500 border-orange-500"}},value:n==null?void 0:n.score,onChange:a=>e("score",a.value)})})]})}),o.jsx("div",{className:"p-fluid",children:o.jsxs("div",{className:"field-checkbox",children:[o.jsx(Yr,{inputId:"required",checked:(i=n==null?void 0:n.attributes)==null?void 0:i.required,onChange:a=>r("required",a.checked)}),o.jsx("label",{htmlFor:"required",children:"Is complusory?"})]})})]})},Nde=t=>{const{onHandleChange:e,fieldState:n}=t,[r,i]=O.useState([{type:"radio"},{type:"checkbox"}]);return o.jsxs("form",{className:"p-fluid",children:[o.jsxs("div",{className:"field field-checkbox",children:[o.jsx(Yr,{inputId:"isAllowMultipleAnswer",value:"isAllowMultipleAnswer",onChange:a=>{e("isAllowMultipleAnswer",a==null?void 0:a.checked),a!=null&&a.checked?(i([{type:"checkbox"}]),e("answerInputType","checkbox")):(i([{type:"radio"}]),e("answerInputType","radio"))},checked:n==null?void 0:n.isAllowMultipleAnswer}),o.jsx("label",{htmlFor:"isAllowMultipleAnswer",className:"p-checkbox-label ",children:"Allow multiple answer"})]}),(n==null?void 0:n.isAllowMultipleAnswer)&&o.jsxs("div",{className:"field",children:[o.jsx("label",{children:"Number of options"}),o.jsx(wn,{type:"number",value:(n==null?void 0:n.noOfMultpleAnswer)||0,onChange:a=>{var s;e("noOfMultpleAnswer",(s=a==null?void 0:a.target)==null?void 0:s.value)}})]}),o.jsxs("div",{className:"field",children:[o.jsx("span",{className:"must-required",children:"*"})," ",o.jsx("label",{children:"Answer input type"}),r.map((a,s)=>o.jsxs("div",{className:"field-radiobutton",children:[o.jsx(ia,{inputId:a.type,name:"answerInputType",value:a.type,onChange:()=>{if(e("answerInputType",a.type),a.type==="checkbox"&&e("isAllowMultipleAnswer",!0),a.type==="radio"){let l=[...(n==null?void 0:n.answerOptions)||[]];l=l.map(c=>({...c,isCorrect:!1})),e("answerOptions",l),e("isAllowMultipleAnswer",!1)}},checked:(n==null?void 0:n.answerInputType)===a.type}),o.jsx("label",{htmlFor:a.type,children:a.type})]},s))]})]})},Ode=t=>{const{fieldState:e,setFieldState:n,language:r}=t,i=()=>{var g;let f=!1;const h=(g=e==null?void 0:e.answerOptions)==null?void 0:g.filter(v=>(v==null?void 0:v.isCorrect)===!0);return(h==null?void 0:h.length)===parseInt(e==null?void 0:e.noOfMultpleAnswer)&&(f=!0),f},a=f=>o.jsx(o.Fragment,{children:o.jsx(Ft,{text:!0,type:"button",className:"p-button-danger left-space",onClick:()=>d((f==null?void 0:f.uuid)||""),icon:"pi pi-trash"})}),s=f=>o.jsx(o.Fragment,{children:o.jsx(wn,{value:f==null?void 0:f.answersText[r],onChange:h=>c("answersText",(f==null?void 0:f.uuid)||"",h.target.value)})}),l=(f,h)=>o.jsx(o.Fragment,{children:o.jsx(Yr,{inputId:"binary",checked:(f==null?void 0:f.isCorrect)||!1,onChange:g=>{g.checked&&i()||u("isCorrect",(f==null?void 0:f.uuid)||"",g.checked,h)}})}),c=(f,h,g)=>{n(v=>({...v,answerOptions:v!=null&&v.answerOptions?v==null?void 0:v.answerOptions.map(m=>m.uuid!==h?m:{...m,[f]:{...m[f],[r]:g}}):[]}))},u=(f,h,g,v)=>{n(m=>{const{answerOptions:A,isAllowMultipleAnswer:w,answerInputType:x}=m,S=v.rowIndex,T=A.map((C,E)=>{const _=E===S;return w||x==="checkbox"?_?{...C,[f]:g}:C:{...C,[f]:_?g:!1}});return{...m,answerOptions:T}})},d=f=>{const h=_t.findIndex(e==null?void 0:e.answerOptions,v=>v.uuid===f),g=(e==null?void 0:e.answerOptions)&&(e==null?void 0:e.answerOptions.filter(function(v,m){return m!==h}));g!=null&&g.length&&(g==null?void 0:g.length)>0&&n(v=>({...v,answerOptions:g}))};return o.jsx("div",{children:o.jsx("div",{className:"card",children:o.jsxs(ro,{value:e==null?void 0:e.answerOptions,scrollable:!0,children:[o.jsx(xr,{header:"Answer text",body:f=>s(f),headerStyle:{textAlign:"left"},bodyStyle:{textAlign:"left",overflow:"visible"}}),o.jsx(xr,{body:(f,h)=>l(f,h),header:"Is answer ?",headerStyle:{textAlign:"left"},bodyStyle:{textAlign:"left",overflow:"visible"}}),o.jsx(xr,{header:"Action",body:f=>a(f),headerStyle:{textAlign:"left"},bodyStyle:{textAlign:"left",overflow:"visible"}})]})})})},Fde=t=>{const e=[],[n]=O.useState([]),{onHandleChange:r,fieldState:i}=t;return O.useEffect(()=>{},[]),o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:"field mt-3 w-full",children:[o.jsx("label",{children:"Subject"}),o.jsx(Pa,{id:"subject",name:"subject",optionLabel:"subject_title",value:(n==null?void 0:n.length)>0&&(i==null?void 0:i.subject_id)!==null?n.filter(a=>(i==null?void 0:i.subject_id)===(a==null?void 0:a.subject_id))[0]:null,placeholder:"Select a Subject",options:n,className:"w-full",onChange:a=>{var s;r("subject_id",(s=a==null?void 0:a.value)==null?void 0:s.subject_id)}})]}),o.jsxs("div",{className:"field",children:[o.jsx("label",{children:"Course category"}),o.jsx(Pa,{id:"course_category",name:"course_category",optionLabel:"course_category_title",value:(e==null?void 0:e.length)>0&&(i==null?void 0:i.course_category_id)!==null?e.filter(a=>(i==null?void 0:i.course_category_id)===(a==null?void 0:a.course_category_id))[0]:null,placeholder:"Select a category",options:e,className:"w-full",onChange:a=>{var s;r("course_category_id",(s=a==null?void 0:a.value)==null?void 0:s.course_category_id)}})]})]})},kde=t=>{const{formBuilderSchemaLanguages:e,fieldSettingUpdate:n}=sn(),{visibilty:r,setVisibility:i,rowIndex:a,columnIndex:s,fieldIndex:l,pageIndex:c,sectionIndex:u,field:d,typeName:f}=t,[h,g]=O.useState(d),{updateGlobalToast:v}=zt(),m=(C,E)=>{g(_=>({..._,attributes:{..._.attributes,[C]:E}}))},A=(C,E,_)=>{g(M=>({...M,[C]:{[E]:_}}))},w=(C,E)=>{g(_=>({..._,[C]:E}))},x=()=>{const C=[],_=((h==null?void 0:h.answerOptions)||[]).filter(P=>P.isCorrect===!0),{answerInputType:M,isAllowMultipleAnswer:k,noOfMultpleAnswer:F}=h||{};if(M==="radio")_.length!==1&&C.push("Please select one answer");else if(M==="checkbox"){const P=k?parseInt(F,10)||0:1;_.length!==P&&C.push(P>1?`Select ${P} answers`:"Please select one answer")}return C.length?(v({showToast:!0,toastMessage:"Validation error",toastDetail:C.join(", "),toastType:"error"}),!1):!0},S=()=>{x()&&(n(c,u,a,s,l,h),v({showToast:!0,toastMessage:"Updated",toastDetail:`${f} updated`,toastType:"success"}))},T=()=>{g(C=>Object.assign({},C,{answerOptions:[...C.answerOptions||[],{uuid:tt(),answersText:{english:""},isCorrect:!1}]}))};return o.jsx(o.Fragment,{children:o.jsxs(To,{visible:r,position:"left",className:"p-sidebar-lg",onHide:()=>i(!1),children:[o.jsx("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:[t==null?void 0:t.typeName," settings"," "]})," "]})}),o.jsxs(ts,{children:[o.jsx(wr,{header:"Text",children:o.jsx(ao,{activeIndex:0,children:e!=null&&e.length?e.map((C,E)=>o.jsx(io,{tabIndex:E,header:C==null?void 0:C.language,children:o.jsx(_de,{language:C,fieldState:h,onHandleQuestionTextChange:A,...t})},E)):""})}),o.jsx(wr,{header:"Advance",children:o.jsx(Dde,{fieldState:h,onHandleChangeAttributesSetttings:m,onHandleChange:w,...t})}),o.jsx(wr,{header:"Answers",children:o.jsxs("div",{className:"scroll-height-200",children:[o.jsx(Nde,{fieldState:h,onHandleChange:w,...t}),o.jsxs("div",{className:"flex justify-content-between mb-2",children:[o.jsx("h4",{children:"Answers options"}),o.jsx(Ft,{className:"mr-3",label:"Add",icon:"pi pi-plus",onClick:()=>T(),"aria-label":"Add"})]}),(h==null?void 0:h.answerOptions)!==void 0&&o.jsx(o.Fragment,{children:o.jsx(ao,{activeIndex:0,children:e!=null&&e.length?e.map((C,E)=>o.jsx(io,{tabIndex:E,header:C==null?void 0:C.language,children:o.jsx(Ode,{language:C==null?void 0:C.type,fieldState:h,setFieldState:g})},E)):""})})]})}),o.jsx(wr,{header:"Information",children:o.jsx(Fde,{fieldState:h,onHandleChange:w})})]}),o.jsx("div",{className:"w-full px-4 py-3 surface-100 sidebar-footer",children:o.jsxs("div",{className:"flex flex-row gap-2 align-items-center justify-content-end",children:[o.jsx(Ft,{size:"small",label:"Update",type:"button",outlined:!0,onClick:()=>S(),"aria-label":"Update"}),o.jsx(Ft,{label:"Close",type:"button",onClick:()=>i(!1),"aria-label":"Close",size:"small",className:"p-button-danger"})]})})]})})},Pde=t=>{var k,F,P,H,N,z;const{isBuilderMode:e}=zt(),{field:n}=t,{taskRegisterData:r,updateTaskRegisterData:i,updateTaskProgressValue:a,userTaskSubmitFormData:s}=Ar(),{userSelectedLanguage:l}=sn(),{media:c}=zt(),u=(k=c==null?void 0:c.image)!=null&&k.MediaImage?(F=c==null?void 0:c.image)==null?void 0:F.MediaImage:o.jsx(o.Fragment,{}),[d,f]=O.useState(!1),[h,g]=O.useState([]),[v,m]=O.useState(!1),A=$=>{m($)},w=()=>{m(!1)},x=()=>{f(!0)},S=()=>{f(!1)},T=$=>{var se;const le=_t.cloneDeep(r),R=[...h];$.checked?(le[n==null?void 0:n.uuid]=(se=$==null?void 0:$.target)==null?void 0:se.value,R.push($.value)):(delete le[n==null?void 0:n.uuid],R.splice(R.indexOf($.value),1)),g(R),C($,R),i(le);const Y=Object.keys(le).length;a(Y)},C=($,le)=>{const R=s;if((R==null?void 0:R.length)>0&&$!=null&&$.value)for(const Y of R)Y.fieldId===t.field.uuid&&(Y.postData[0]={postValue:le})},E=$=>{var se;const le=s,R=_t.cloneDeep(r);if((le==null?void 0:le.length)>0)if((se=$==null?void 0:$.target)!=null&&se.value)for(const K of le)K.fieldId===t.field.uuid&&(R[n==null?void 0:n.uuid]=$==null?void 0:$.value,K.postData[0]={postValue:$.value});else delete R[n==null?void 0:n.uuid];i(R);const Y=Object.keys(R).length;a(Y)};O.useEffect(()=>{g([])},[n==null?void 0:n.answerInputType]);const _=()=>{const $=[];return(n==null?void 0:n.answerInputType)==="radio"?n!=null&&n.answerOptions&&(n==null||n.answerOptions.map((le,R)=>{var se,K,ie,re;const Y=h;$.push(o.jsxs("div",{className:"flex align-items-center p-field-radiobutton mb-3",children:[o.jsx(ia,{inputId:`${R}`,onChange:Z=>{g(Z.target.value),E(Z)},checked:(Y==null?void 0:Y.uuid)===(le==null?void 0:le.uuid),name:"category",value:le}),"  ",((se=le.answersTextImage)==null?void 0:se[l==null?void 0:l.type])&&((K=le.answersTextImage)==null?void 0:K[l==null?void 0:l.type])!==""&&o.jsx(u,{mediaId:(ie=le.answersTextImage)==null?void 0:ie[l==null?void 0:l.type],className:"mx-3",alt:"questionImage",style:{width:"50px",height:"50px",borderRadius:50}}),o.jsx("label",{htmlFor:`${R}`,children:(re=le==null?void 0:le.answersText)==null?void 0:re[l==null?void 0:l.type]})]},R))})):(n==null?void 0:n.answerInputType)==="checkbox"?n!=null&&n.answerOptions&&(n==null||n.answerOptions.map((le,R)=>{var Y;$.push(o.jsxs("div",{className:"p-field-radiobutton mb-3",children:[o.jsx(Yr,{inputId:`${R}`,name:"category",onChange:se=>{T(se)},value:le,checked:h!=null&&h.length?h==null?void 0:h.some(se=>se.uuid===le.uuid):!1}),"  ",o.jsx("label",{htmlFor:`${R}`,children:(Y=le==null?void 0:le.answersText)==null?void 0:Y[l==null?void 0:l.type]})]},R))})):n!=null&&n.answerOptions&&(n==null||n.answerOptions.map((le,R)=>{var se,K,ie,re,Z,X,W;const Y=h;$.push(o.jsxs("div",{className:"p-field-radiobutton mb-3",children:[o.jsx(ia,{inputId:`${R}`,onChange:me=>{g(me.target.value),E(me)},checked:(Y==null?void 0:Y.uuid)===(le==null?void 0:le.uuid),name:"category",value:le}),"  ",((se=le.answersTextImage)==null?void 0:se[l==null?void 0:l.type])&&((K=le.answersTextImage)==null?void 0:K[l==null?void 0:l.type])!==""&&o.jsx(u,{mediaId:(ie=le.answersTextImage)==null?void 0:ie[l==null?void 0:l.type],className:"mx-3",alt:"questionImage",style:{width:"50px",height:"50px",borderRadius:50}}),o.jsxs("label",{htmlFor:`${R}`,children:[((re=le.answersTextImage)==null?void 0:re[l==null?void 0:l.type])&&((Z=le.answersTextImage)==null?void 0:Z[l==null?void 0:l.type])!==""&&o.jsx(u,{mediaId:(X=le.answersTextImage)==null?void 0:X[l==null?void 0:l.type],className:"mx-3",alt:"questionImage",style:{width:"50px",height:"50px",borderRadius:50}}),(W=le==null?void 0:le.answersText)==null?void 0:W[l==null?void 0:l.type]]})]},R))})),$},M=o.jsxs("div",{onMouseOver:x,onMouseOut:S,children:[e&&d&&o.jsx(Wr,{handleFieldSettingsSidebar:A,...t}),o.jsx("div",{className:`field ${e&&" py-3 px-4 builder-element-wrapper "}${(n==null?void 0:n.isFluid)===!0&&" p-fluid"}`,children:o.jsx("div",{className:"grid",children:o.jsxs("div",{className:"col-12 p-fluid",children:[((P=n==null?void 0:n.questionTextImage)==null?void 0:P[l==null?void 0:l.type])&&((H=n==null?void 0:n.questionTextImage)==null?void 0:H[l==null?void 0:l.type])!==""&&o.jsx("div",{className:"text-center assessment_image_container",children:o.jsx(u,{mediaId:(N=n==null?void 0:n.questionTextImage)==null?void 0:N[l==null?void 0:l.type],style:{height:"100px",width:"100px",objectFit:"cover",borderRadius:100},className:"text-center",alt:"questionImage"})}),o.jsx("h5",{children:(z=n==null?void 0:n.questionText)==null?void 0:z[l==null?void 0:l.type]}),_()]})})})]});return o.jsxs(o.Fragment,{children:[v===!0&&o.jsx(kde,{visibilty:v,setVisibility:w,...t},n==null?void 0:n.uuid),o.jsx(xi,{...t,fieldWrap:M})]})},Mde=t=>{var i,a;const{onHandleChange:e,fieldState:n,language:r}=t;return o.jsxs("form",{className:"p-fluid",children:[o.jsxs("div",{className:"field",children:[o.jsx("span",{className:"must-required",children:"*"})," ",o.jsx("label",{children:"Title"}),o.jsx(wn,{value:(i=n.title)==null?void 0:i[r==null?void 0:r.type],onChange:s=>e("title",r,s.target.value)})]}),o.jsxs("div",{className:"field",children:[o.jsx("span",{className:"must-required",children:"*"})," ",o.jsx("label",{children:"Image Url"}),o.jsx(wn,{value:(a=n.media_url)==null?void 0:a[r==null?void 0:r.type],onChange:s=>e("media_url",r,s.target.value)})]})]})};class HO{constructor(){Rn(this,"formatBytes",(e,n=2)=>{if(e===0||e===void 0||e===null)return"0 Bytes";const r=1024,i=n<0?0:n,a=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],s=Math.floor(Math.log(e)/Math.log(r));return parseFloat((e/Math.pow(r,s)).toFixed(i))+" "+a[s]})}}function b2(t){"@babel/helpers - typeof";return b2=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},b2(t)}function Lde(t,e){if(b2(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(b2(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Bde(t){var e=Lde(t,"string");return b2(e)=="symbol"?e:e+""}function YO(t,e,n){return(e=Bde(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Vde={root:function(e){var n=e.props;return ft("p-badge p-component",YO({"p-badge-no-gutter":ke.isNotEmpty(n.value)&&String(n.value).length===1,"p-badge-dot":ke.isEmpty(n.value),"p-badge-lg":n.size==="large","p-badge-xl":n.size==="xlarge"},"p-badge-".concat(n.severity),n.severity!==null))}},qde=`
3515
3515
  @layer primereact {
3516
3516
  .p-badge {
3517
3517
  display: inline-block;
@@ -4263,7 +4263,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4263
4263
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function z7e(t,e){if(t){if(typeof t=="string")return pU(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 pU(t,e)}}function pU(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 H7e(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Y7e(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 K7e(t,e,n){return e&&Y7e(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}var Nw="9",X7e=15,R7e=h5(Nw,X7e),G7e=/[- ]/,W7e=function(){return/\[([^\[\]])*\]/g},Q7e=function(){return/\d(?=[^,}][^,}])/g},J7e=new RegExp("["+p0+"]*\\$1["+p0+"]*(\\$\\d["+p0+"]*)*$"),gU=3,Z7e=function(){function t(e){e.state;var n=e.metadata;H7e(this,t),this.metadata=n,this.resetFormat()}return K7e(t,[{key:"resetFormat",value:function(){this.chosenFormat=void 0,this.template=void 0,this.nationalNumberTemplate=void 0,this.populatedNationalNumberTemplate=void 0,this.populatedNationalNumberTemplatePosition=-1}},{key:"reset",value:function(n,r){this.resetFormat(),n?(this.isNANP=n.callingCode()==="1",this.matchingFormats=n.formats(),r.nationalSignificantNumber&&this.narrowDownMatchingFormats(r)):(this.isNANP=void 0,this.matchingFormats=[])}},{key:"format",value:function(n,r){var i=this;if(_7e(r.nationalSignificantNumber,this.metadata))for(var a=hU(this.matchingFormats),s;!(s=a()).done;){var l=s.value,c=I7e(r,l,{metadata:this.metadata,shouldTryNationalPrefixFormattingRule:function(d){return i.shouldTryNationalPrefixFormattingRule(d,{international:r.international,nationalPrefix:r.nationalPrefix})},getSeparatorAfterNationalPrefix:function(d){return i.getSeparatorAfterNationalPrefix(d)}});if(c)return this.resetFormat(),this.chosenFormat=l,this.setNationalNumberTemplate(c.replace(/\d/g,Mc),r),this.populatedNationalNumberTemplate=c,this.populatedNationalNumberTemplatePosition=this.template.lastIndexOf(Mc),c}return this.formatNationalNumberWithNextDigits(n,r)}},{key:"formatNationalNumberWithNextDigits",value:function(n,r){var i=this.chosenFormat,a=this.chooseFormat(r);if(a)return a===i?this.formatNextNationalNumberDigits(n):this.formatNextNationalNumberDigits(r.getNationalDigits())}},{key:"narrowDownMatchingFormats",value:function(n){var r=this,i=n.nationalSignificantNumber,a=n.nationalPrefix,s=n.international,l=i,c=l.length-gU;c<0&&(c=0),this.matchingFormats=this.matchingFormats.filter(function(u){return r.formatSuits(u,s,a)&&r.formatMatches(u,l,c)}),this.chosenFormat&&this.matchingFormats.indexOf(this.chosenFormat)===-1&&this.resetFormat()}},{key:"formatSuits",value:function(n,r,i){return!(i&&!n.usesNationalPrefix()&&!n.nationalPrefixIsOptionalWhenFormattingInNationalFormat()||!r&&!i&&n.nationalPrefixIsMandatoryWhenFormattingInNationalFormat())}},{key:"formatMatches",value:function(n,r,i){var a=n.leadingDigitsPatterns().length;if(a===0)return!0;i=Math.min(i,a-1);var s=n.leadingDigitsPatterns()[i];if(r.length<gU)try{return new j7e(s).match(r,{allowOverflow:!0})!==void 0}catch(l){return console.error(l),!0}return new RegExp("^(".concat(s,")")).test(r)}},{key:"getFormatFormat",value:function(n,r){return r?n.internationalFormat():n.format()}},{key:"chooseFormat",value:function(n){for(var r=this,i=function(){var u=s.value;return r.chosenFormat===u?"break":J7e.test(r.getFormatFormat(u,n.international))?r.createTemplateForFormat(u,n)?(r.chosenFormat=u,"break"):(r.matchingFormats=r.matchingFormats.filter(function(d){return d!==u}),"continue"):"continue"},a=hU(this.matchingFormats.slice()),s;!(s=a()).done;){var l=i();if(l==="break")break}return this.chosenFormat||this.resetFormat(),this.chosenFormat}},{key:"createTemplateForFormat",value:function(n,r){if(!(n.pattern().indexOf("|")>=0)){var i=this.getTemplateForFormat(n,r);if(i)return this.setNationalNumberTemplate(i,r),!0}}},{key:"getSeparatorAfterNationalPrefix",value:function(n){return this.isNANP||n&&n.nationalPrefixFormattingRule()&&G7e.test(n.nationalPrefixFormattingRule())?" ":""}},{key:"getInternationalPrefixBeforeCountryCallingCode",value:function(n,r){var i=n.IDDPrefix,a=n.missingPlus;return i?r&&r.spacing===!1?i:i+" ":a?"":"+"}},{key:"getTemplate",value:function(n){if(this.template){for(var r=-1,i=0,a=n.international?this.getInternationalPrefixBeforeCountryCallingCode(n,{spacing:!1}):"";i<a.length+n.getDigitsWithoutInternationalPrefix().length;)r=this.template.indexOf(Mc,r+1),i++;return cU(this.template,r+1)}}},{key:"setNationalNumberTemplate",value:function(n,r){this.nationalNumberTemplate=n,this.populatedNationalNumberTemplate=n,this.populatedNationalNumberTemplatePosition=-1,r.international?this.template=this.getInternationalPrefixBeforeCountryCallingCode(r).replace(/[\d\+]/g,Mc)+h5(Mc,r.callingCode.length)+" "+n:this.template=n}},{key:"getTemplateForFormat",value:function(n,r){var i=r.nationalSignificantNumber,a=r.international,s=r.nationalPrefix,l=r.complexPrefixBeforeNationalSignificantNumber,c=n.pattern();c=c.replace(W7e(),"\\d").replace(Q7e(),"\\d");var u=R7e.match(c)[0];if(!(i.length>u.length)){var d=new RegExp("^"+c+"$"),f=i.replace(/\d/g,Nw);d.test(f)&&(u=f);var h=this.getFormatFormat(n,a),g;if(this.shouldTryNationalPrefixFormattingRule(n,{international:a,nationalPrefix:s})){var v=h.replace(Gq,n.nationalPrefixFormattingRule());if(O1(n.nationalPrefixFormattingRule())===(s||"")+O1("$1")&&(h=v,g=!0,s))for(var m=s.length;m>0;)h=h.replace(/\d/,Mc),m--}var A=u.replace(new RegExp(c),h).replace(new RegExp(Nw,"g"),Mc);return g||(l?A=h5(Mc,l.length)+" "+A:s&&(A=h5(Mc,s.length)+this.getSeparatorAfterNationalPrefix(n)+A)),a&&(A=Rq(A)),A}}},{key:"formatNextNationalNumberDigits",value:function(n){var r=E7e(this.populatedNationalNumberTemplate,this.populatedNationalNumberTemplatePosition,n);if(!r){this.resetFormat();return}return this.populatedNationalNumberTemplate=r[0],this.populatedNationalNumberTemplatePosition=r[1],cU(this.populatedNationalNumberTemplate,this.populatedNationalNumberTemplatePosition+1)}},{key:"shouldTryNationalPrefixFormattingRule",value:function(n,r){var i=r.international,a=r.nationalPrefix;if(n.nationalPrefixFormattingRule()){var s=n.usesNationalPrefix();if(s&&a||!s&&!i)return!0}}}]),t}();function mU(t,e){return rbe(t)||nbe(t,e)||tbe(t,e)||ebe()}function ebe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
4264
4264
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function tbe(t,e){if(t){if(typeof t=="string")return vU(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 vU(t,e)}}function vU(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 nbe(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 rbe(t){if(Array.isArray(t))return t}function ibe(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function abe(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 sbe(t,e,n){return e&&abe(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}var obe="["+p0+mg+"]+",lbe=new RegExp("^"+obe+"$","i"),cbe="(?:["+x8e+"]["+p0+mg+"]*|["+p0+mg+"]+)",ube=new RegExp("[^"+p0+mg+"]+.*$"),dbe=/[^\d\[\]]/,fbe=function(){function t(e){var n=e.defaultCountry,r=e.defaultCallingCode,i=e.metadata,a=e.onNationalSignificantNumberChange;ibe(this,t),this.defaultCountry=n,this.defaultCallingCode=r,this.metadata=i,this.onNationalSignificantNumberChange=a}return sbe(t,[{key:"input",value:function(n,r){var i=gbe(n),a=mU(i,2),s=a[0],l=a[1],c=O1(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=g7e("+"+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&&dbe.test(r)}else this.hasSelectedNumberingPlan=void 0,this.couldPossiblyExtractAnotherNationalSignificantNumber=void 0}},{key:"extractNationalSignificantNumber",value:function(n,r){if(this.hasSelectedNumberingPlan){var i=Ew(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=Ew(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=rU(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=aU(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 hbe(t){var e=t.search(cbe);if(!(e<0)){t=t.slice(e);var n;return t[0]==="+"&&(n=!0,t=t.slice(1)),t=t.replace(ube,""),n&&(t="+"+t),t}}function pbe(t){var e=hbe(t)||"";return e[0]==="+"?[e.slice(1),!0]:[e]}function gbe(t){var e=pbe(t),n=mU(e,2),r=n[0],i=n[1];return lbe.test(r)||(r=""),[r,i]}function mbe(t,e){return Abe(t)||ybe(t,e)||bbe(t,e)||vbe()}function vbe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
4265
4265
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function bbe(t,e){if(t){if(typeof t=="string")return bU(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 bU(t,e)}}function bU(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 ybe(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 Abe(t){if(Array.isArray(t))return t}function wbe(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Sbe(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 Cbe(t,e,n){return e&&Sbe(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}var p5=function(){function t(e,n){wbe(this,t),this.metadata=new ho(n);var r=this.getCountryAndCallingCode(e),i=mbe(r,2),a=i[0],s=i[1];this.defaultCountry=a,this.defaultCallingCode=s,this.reset()}return Cbe(t,[{key:"getCountryAndCallingCode",value:function(n){var r,i;return n&&(l5(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 S7e({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 Z7e({state:this.state,metadata:this.metadata}),this.parser=new fbe({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,Mc)}},{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(b7e(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 ho(this.metadata.metadata);l.selectNumberingPlan(s);var c=l.numberingPlan.callingCode(),u=this.metadata.getCountryCodesForCallingCode(c);if(u.length>1){var d=oU(r,{countries:u,defaultCountry:this.defaultCountry,metadata:this.metadata.metadata});d&&(s=d)}}var f=new c7e(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 xbe(t,e,n){return n||(n=e,e=void 0),new p5(e,n).input(t)}function yU(t){var e=t.inputFormat,n=t.country,r=t.metadata;return e==="NATIONAL_PART_OF_INTERNATIONAL"?"+".concat(N1(n,r)):""}function g5(t,e){return e&&(t=t.slice(e.length),t[0]===" "&&(t=t.slice(1))),t}function Tbe(t,e,n){if(!(n&&n.ignoreRest)){var r=function(a){if(n)switch(a){case"end":n.ignoreRest=!0;break}};return Kq(t,e,r)}}function AU(t){var e=t.onKeyDown,n=t.inputFormat;return O.useCallback(function(r){if(r.keyCode===Ibe&&n==="INTERNATIONAL"&&r.target instanceof HTMLInputElement&&Ebe(r.target)===_be.length){r.preventDefault();return}e&&e(r)},[e,n])}function Ebe(t){return t.selectionStart}var Ibe=8,_be="+",Dbe=["onKeyDown","country","inputFormat","metadata","international","withCountryCallingCode"];function Ow(){return Ow=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},Ow.apply(this,arguments)}function Nbe(t,e){if(t==null)return{};var n=Obe(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 Obe(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 Fbe(t){function e(n,r){var i=n.onKeyDown,a=n.country,s=n.inputFormat,l=n.metadata,c=l===void 0?t:l;n.international,n.withCountryCallingCode;var u=Nbe(n,Dbe),d=O.useCallback(function(h){var g=new p5(a,c),v=yU({inputFormat:s,country:a,metadata:c}),m=g.input(v+h),A=g.getTemplate();return v&&(m=g5(m,v),A&&(A=g5(A,v))),{text:m,template:A}},[a,c]),f=AU({onKeyDown:i,inputFormat:s});return O.createElement(gg,Ow({},u,{ref:r,parse:Tbe,format:d,onKeyDown:f}))}return e=O.forwardRef(e),e.propTypes={value:Tn.string.isRequired,onChange:Tn.func.isRequired,onKeyDown:Tn.func,country:Tn.string,inputFormat:Tn.oneOf(["INTERNATIONAL","NATIONAL_PART_OF_INTERNATIONAL","NATIONAL","INTERNATIONAL_OR_NATIONAL"]).isRequired,metadata:Tn.object},e}const kbe=Fbe();var Pbe=["value","onChange","onKeyDown","country","inputFormat","metadata","inputComponent","international","withCountryCallingCode"];function Fw(){return Fw=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},Fw.apply(this,arguments)}function Mbe(t,e){if(t==null)return{};var n=Lbe(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 Lbe(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 Bbe(t){function e(n,r){var i=n.value,a=n.onChange,s=n.onKeyDown,l=n.country,c=n.inputFormat,u=n.metadata,d=u===void 0?t:u,f=n.inputComponent,h=f===void 0?"input":f;n.international,n.withCountryCallingCode;var g=Mbe(n,Pbe),v=yU({inputFormat:c,country:l,metadata:d}),m=O.useCallback(function(w){var x=U8e(w.target.value);if(x===i){var S=wU(v,x,l,d);S.indexOf(w.target.value)===0&&(x=x.slice(0,-1))}a(x)},[v,i,a,l,d]),A=AU({onKeyDown:s,inputFormat:c});return O.createElement(h,Fw({},g,{ref:r,value:wU(v,i,l,d),onChange:m,onKeyDown:A}))}return e=O.forwardRef(e),e.propTypes={value:Tn.string.isRequired,onChange:Tn.func.isRequired,onKeyDown:Tn.func,country:Tn.string,inputFormat:Tn.oneOf(["INTERNATIONAL","NATIONAL_PART_OF_INTERNATIONAL","NATIONAL","INTERNATIONAL_OR_NATIONAL"]).isRequired,metadata:Tn.object,inputComponent:Tn.elementType},e}const Vbe=Bbe();function wU(t,e,n,r){return g5(xbe(t+e,n,r),t)}function qbe(t){if(t.length<2||t[0]!=="+")return!1;for(var e=1;e<t.length;){var n=t.charCodeAt(e);if(!(n>=48&&n<=57))return!1;e++}return!0}function Ube(t){qbe(t)||console.error("[react-phone-number-input] Expected the initial `value` to be a E.164 phone number. Got",t)}var $be=Tn.shape({country_calling_codes:Tn.object.isRequired,countries:Tn.object.isRequired});Tn.objectOf(Tn.string);function kw(t,e){var n="+"+N1(t,e);return n}function vg(t,e){return Ybe(t)||Hbe(t,e)||zbe(t,e)||jbe()}function jbe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
4266
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function zbe(t,e){if(t){if(typeof t=="string")return SU(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 SU(t,e)}}function SU(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 Hbe(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)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 Ybe(t){if(Array.isArray(t))return t}function Kbe(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;typeof l=="boolean"&&!(i&&s)&&console.error("[react-phone-number-input] `withCountryCallingCode` property can only be used together with `country` and `international` properties"),i&&a&&console.error("[react-phone-number-input] When `country` property is passed, `defaultCountry` property has no effect and therefore shouldn't be passed"),typeof s=="boolean"&&!i&&console.error("[react-phone-number-input] `international` property can only be used together with `country` property");var d=Rbe({international:s,country:i,defaultCountry:a,withCountryCallingCode:l}),f=O.useRef(),h=function(ie,re,Z){console.error("[react-phone-number-input] Expected phone number ".concat(ie," to correspond to country ").concat(re," but ").concat(Z?"in reality it corresponds to country "+Z:"it doesn't",".")),f.current=!0},g=function(ie){return n&&Ube(n),Xbe(n,i,a,d,c,u,function(){ie&&ie.onCountryMismatch&&ie.onCountryMismatch();for(var re=arguments.length,Z=new Array(re),X=0;X<re;X++)Z[X]=arguments[X];h.apply(e,Z)})},v=O.useState(i),m=vg(v,2),A=m[0],w=m[1],x=O.useState(a),S=vg(x,2),T=S[0],C=S[1],E=O.useState(g()),_=vg(E,2),M=_[0],k=_[1],F=O.useState(n),P=vg(F,2),H=P[0],N=P[1],z=O.useState(),$=vg(z,2);$[0];var le=$[1],R=O.useCallback(function(){return le({})},[le]);function Y(K){if(K){d==="NATIONAL_PART_OF_INTERNATIONAL"&&(K="+".concat(N1(i,u)).concat(K));var ie=new p5(i||a,u);return ie.input(K),ie.getNumberValue()}}O.useEffect(function(){n!==H&&(N(n),k(g()))},[n]),O.useEffect(function(){if(i!==A){w(i);var K,ie=g({onCountryMismatch:function(){K=!0}});k(ie),K&&N(Y(ie))}},[i]),O.useEffect(function(){a!==T&&(C(a),k(g()))},[a]),O.useEffect(function(){H!==n&&r(H)},[H]);var se=O.useCallback(function(K){var ie;if(i)if(d==="INTERNATIONAL"){var re=kw(i,u);if(K.indexOf(re)!==0){if(K&&K[0]!=="+")K=re+K;else if(!f.current)return k(re),N(void 0),R()}}else K&&K[0]==="+"&&(K=K.slice(1));else a||K&&K[0]!=="+"&&(K="+"+K);K&&(ie=Y(K)),k(K),N(ie)},[i,d,a,u,k,N,R,f]);return{phoneDigits:M,setPhoneDigits:se,inputFormat:d}}function Xbe(t,e,n,r,i,a,s){if(e&&r==="INTERNATIONAL"){var l=kw(e,a);return t?(t.indexOf(l)!==0&&s(t,e),t):l}if(!t)return"";if(!e&&!n)return t;var c=new p5(void 0,a);c.input(t);var u=c.getNumber();if(u)if(e)switch(u.country&&u.country!==e?s(t,e,u.country):u.countryCallingCode!==N1(e,a)&&s(t,e),r){case"NATIONAL":return O1(u.formatNational());case"NATIONAL_PART_OF_INTERNATIONAL":return O1(g5(u.formatInternational(),kw(e,a)));case"INTERNATIONAL":throw new Error('`inputFormat: "INTERNATIONAL"` case should\'ve already been handled earlier in the code');case"INTERNATIONAL_OR_NATIONAL":throw new Error('`inputFormat: "INTERNATIONAL_OR_NATIONAL"` is not possible when `country` is fixed');default:throw new Error("Unknown `inputFormat`: ".concat(r))}else return u.countryCallingCode&&u.countryCallingCode===N1(n,a)&&i?O1(u.formatNational()):t;else return""}function Rbe(t){var e=t.international,n=t.country,r=t.defaultCountry,i=t.withCountryCallingCode;return n?e?i?"INTERNATIONAL":"NATIONAL_PART_OF_INTERNATIONAL":"NATIONAL":r?"INTERNATIONAL_OR_NATIONAL":"INTERNATIONAL"}var Gbe=["Component","country","defaultCountry","useNationalFormatForDefaultCountryValue","value","onChange","metadata","international","withCountryCallingCode"];function Pw(){return Pw=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},Pw.apply(this,arguments)}function Wbe(t,e){if(t==null)return{};var n=Qbe(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 Qbe(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 m5(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=Wbe(t,Gbe),g=Kbe({value:l,onChange:c,country:r,defaultCountry:i,international:d,withCountryCallingCode:f,useNationalFormatForDefaultCountryValue:s,metadata:u}),v=g.phoneDigits,m=g.setPhoneDigits,A=g.inputFormat;return O.createElement(n,Pw({},h,{ref:e,metadata:u,inputFormat:A,international:d,withCountryCallingCode:f,country:r||i,value:v,onChange:m}))}m5=O.forwardRef(m5),m5.propTypes={value:Tn.string,onChange:Tn.func.isRequired,country:Tn.string,defaultCountry:Tn.string,international:Tn.bool,withCountryCallingCode:Tn.bool,Component:Tn.elementType.isRequired,useNationalFormatForDefaultCountryValue:Tn.bool,metadata:$be};var Jbe=["type","autoComplete","smartCaret","metadata"];function Mw(){return Mw=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},Mw.apply(this,arguments)}function Zbe(t,e){if(t==null)return{};var n=eye(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 eye(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 CU(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=Zbe(n,Jbe);return O.createElement(m5,Mw({},h,{type:a,autoComplete:l,metadata:f,ref:r,Component:u?kbe:Vbe}))}return e=O.forwardRef(e),e.propTypes={type:Tn.string,autoComplete:Tn.string,smartCaret:Tn.bool,metadata:Tn.object},e}CU();const tye=CU(R6e),nye=t=>{var Z,X,W,me,be,Te,ye,de,ne,U,ee;const{taskRegisterData:e,updateTaskRegisterData:n,updateTaskProgressValue:r,updateUserFormDataSubmit:i,userTaskSubmitFormData:a,TASK_PUBLISHED:s,task_status:l}=Ar(),{userSelectedLanguage:c,fieldSettingUpdate:u}=sn(),{field:d,fieldIndex:f,sectionIndex:h,pageIndex:g,row:v,rowIndex:m,columnIndex:A,isDisabled:w}=t,{isAdmin:x,isBuilderMode:S}=zt(),[T,C]=O.useState(!1),[E,_]=O.useState(""),[M,k]=O.useState(0),[F,P]=O.useState(!1),[H,N]=O.useState(!1),z=()=>{N(!0)},$=()=>{N(!1)},le=()=>{var oe,ge,_e;if(v!=null&&v.rowIsRepeatable){if(v!=null&&v.repeatableFields){const Ne=[...v.repeatableFields],ve=_t.findIndex(Ne,function(Ae){return Ae.uuid===(d==null?void 0:d.uuid)});ve>=0&&Ne[ve].fieldData?_(Ne[ve].fieldData):_("")}}else{const Ne=a;if(Ne!=null&&Ne.length){for(const ve of Ne)if(ve.fieldId===t.field.uuid&&((oe=ve==null?void 0:ve.postData[0])==null?void 0:oe.postValue)!==""&&((ge=ve==null?void 0:ve.postData[0])!=null&&ge.postValue)){_((_e=ve==null?void 0:ve.postData[0])==null?void 0:_e.postValue);break}}}P(!0)};O.useEffect(()=>{F||le();const oe=Gt.addListener("clearRepeatableFields",ve=>{ve===(v==null?void 0:v.uuid)&&(_(""),k(0),d.isValid=0,u(g,h,m,A,f,d))}),ge=Gt.addListener("onSubmitUserForm",()=>{var ve;(ve=d==null?void 0:d.attributes)!=null&&ve.required?E?d.isValid=1:d.isValid=0:d.isValid=1}),_e=Gt.addListener("OnInvalidFieldCatch",ve=>{d.uuid===(ve==null?void 0:ve.fieldId)?k(1):k(0)}),Ne=Gt.addListener("OnGetFieldValue",ve=>{var Be;const Ae=(Be=ve==null?void 0:ve.repeatableColumn)==null?void 0:Be.filter(Ee=>(Ee==null?void 0:Ee.fieldUuid)===(d==null?void 0:d.uuid));Ae!=null&&Ae.length});return()=>{ge.remove(),_e.remove(),Ne.remove(),oe.remove()}});const R=oe=>{C(oe)},Y=()=>{C(!1)},se=(oe,ge)=>{const _e=a,Ne=_t.cloneDeep(e);if(Ne[d==null?void 0:d.uuid]=oe,(_e==null?void 0:_e.length)>0)for(const ve of _e)ve.fieldId===t.field.uuid&&(ve.postData[0]={postValue:oe});if(!(v!=null&&v.rowIsRepeatable)){n(Ne);const ve=Object.keys(Ne).length;r(ve)}},K=(oe,ge)=>{var _e;if(a){const Ne=[...a],ve=_t.findIndex(Ne,function(Be){return Be.rowId===(v==null?void 0:v.uuid)});let Ae=(_e=a[ve])==null?void 0:_e.repeatableFields;Ae={...Ae,[oe==null?void 0:oe.uuid]:ge},Ne[ve]={...Ne[ve],repeatableFields:Ae},i(Ne)}_(ge),ge!==""?oe.isValid=1:oe.isValid=0},ie=oe=>{v!=null&&v.rowIsRepeatable?K(d,oe):se(oe)},re=o.jsxs("div",{onMouseOver:z,onMouseOut:$,children:[S&&H&&o.jsx(Wr,{handleFieldSettingsSidebar:R,...t}),o.jsxs("div",{className:`field ${S&&" py-3 px-4 builder-element-wrapper "}${(d==null?void 0:d.isFluid)===!0&&" p-fluid"}`,children:[o.jsx("div",{className:"grid",children:o.jsxs("div",{className:S?"col-12 p-fluid":"col-12 ",children:[(d==null?void 0:d.showHeaderText)&&o.jsx("h6",{children:(Z=d==null?void 0:d.headerText)==null?void 0:Z[c==null?void 0:c.type]}),(d==null?void 0:d.showLabel)&&o.jsxs("label",{htmlFor:f,className:"flex font-bold mb-3 text-gray-900 text-xl",children:[o.jsx(ca,{...t}),((X=d==null?void 0:d.attributes)==null?void 0:X.required)&&o.jsx("span",{className:"must-required mr-1",children:"*"})," ",S?o.jsx(aa,{...t}):o.jsx(o.Fragment,{children:(W=d==null?void 0:d.label)==null?void 0:W[c==null?void 0:c.type]}),o.jsx("span",{className:"ml-3",children:(d==null?void 0:d.showToolTip)&&o.jsx(zi,{message:(me=d==null?void 0:d.toolTip)==null?void 0:me[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=(be=d==null?void 0:d.icon)==null?void 0:be.properties)==null?void 0:Te.name)}),o.jsx(tye,{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:E,onFocus:()=>k(1),onChange:ie,international:!0,country:"GB",className:`${M===1&&((de=d==null?void 0:d.attributes)!=null&&de.required)?E?"valid":"invalid":"valid'"} p-inputtext`,readOnly:w,disabled:x||w})]}),o.jsx("div",{children:((ne=d==null?void 0:d.attributes)==null?void 0:ne.required)&&o.jsx("small",{className:"error",children:M===1&&!E?(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:(ee=d==null?void 0:d.helperText)==null?void 0:ee[c==null?void 0:c.type]})})]})]})}),x&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(ki,{...t})]})]})]});return o.jsxs(o.Fragment,{children:[T===!0&&o.jsx(Qi,{visibilty:T,closeSettingFieldSidebar:Y,...t}),o.jsx(xi,{...t,fieldWrap:re})]})},rye=t=>{var se,K,ie,re,Z,X,W,me,be,Te,ye;const{field:e,fieldIndex:n,pageIndex:r,sectionIndex:i,row:a,isDisabled:s}=t,{isAdmin:l,isBuilderMode:c}=zt(),{task_status:u,taskRegisterData:d,updateTaskRegisterData:f,updateTaskProgressValue:h,updateUserFormDataSubmit:g,userTaskSubmitFormData:v,TASK_PUBLISHED:m}=Ar(),{userSelectedLanguage:A}=sn(),[w,x]=O.useState(!1),[S,T]=O.useState(""),[C,E]=O.useState(0),[_,M]=O.useState(!1),k=()=>{M(!0)},F=()=>{M(!1)};O.useEffect(()=>{w||$();const de=Gt.addListener("clearRepeatableFields",U=>{U===(a==null?void 0:a.uuid)&&(T(""),E(0),e.isValid=0)}),ne=Gt.addListener("onSubmitUserForm",()=>{var U;(U=e==null?void 0:e.attributes)!=null&&U.required?S!==""&&du.test(S)===!0?e.isValid=1:e.isValid=0:e.isValid=1});return()=>{ne.remove(),de.remove()}});const[P,H]=O.useState(!1),N=de=>{H(de)},z=()=>{H(!1)},$=()=>{var de,ne,U;if(a!=null&&a.rowIsRepeatable){if(a!=null&&a.repeatableFields){const ee=[...a.repeatableFields],oe=_t.findIndex(ee,function(ge){return ge.uuid===(e==null?void 0:e.uuid)});oe>=0&&ee[oe].fieldData?T(ee[oe].fieldData):T("")}}else{const ee=v;if(ee!=null&&ee.length){for(const oe of ee)if(oe.fieldId===t.field.uuid&&((de=oe==null?void 0:oe.postData[0])==null?void 0:de.postValue)!==""&&((ne=oe==null?void 0:oe.postData[0])!=null&&ne.postValue)){T((U=oe==null?void 0:oe.postData[0])==null?void 0:U.postValue),x(!0);break}}}x(!0)},le=de=>{T(de);const ne=v,U=_t.cloneDeep(d);if(de!==""&&du.test(de)===!0){if(U[e==null?void 0:e.uuid]=de,(ne==null?void 0:ne.length)>0)for(const ee of ne)ee.fieldId===t.field.uuid&&(ee.postData[0]={postValue:de})}else if(delete U[e==null?void 0:e.uuid],(ne==null?void 0:ne.length)>0)for(const ee of ne)ee.fieldId===t.field.uuid&&(ee.postData[0]={postValue:""});if(!(a!=null&&a.rowIsRepeatable)){f(U);const ee=Object.keys(U).length;h(ee)}};console.log("inputValue",S);const R=(de,ne)=>{var Ne;console.log("value",ne);const U=[...v],ee=_t.findIndex(U,function(ve){return ve.rowId===(a==null?void 0:a.uuid)});let oe=(Ne=v[ee])==null?void 0:Ne.repeatableFields;const ge=de,_e=ge==null?void 0:ge.uuid;oe={...oe,[_e]:ne},U[ee]={...U[ee],repeatableFields:oe},console.log("_data2",U),g(U),T(ne),ne!==""&&du.test(ne)===!0?e.isValid=1:e.isValid=0},Y=o.jsxs("div",{onMouseOver:k,onMouseOut:F,children:[c&&_&&o.jsx(Wr,{handleFieldSettingsSidebar:N,...t}),o.jsxs("div",{className:`field ${c&&" py-3 px-4 builder-element-wrapper "}${(e==null?void 0:e.isFluid)===!0&&" p-fluid"}`,children:[o.jsx("div",{className:"grid"}),(e==null?void 0:e.showHeaderText)&&o.jsx("h6",{children:(se=e==null?void 0:e.headerText)==null?void 0:se[A==null?void 0:A.type]}),(e==null?void 0:e.showLabel)&&o.jsxs("label",{htmlFor:n,className:"flex font-bold mb-3 text-gray-900 text-xl",children:[o.jsx(ca,{...t}),((K=e==null?void 0:e.attributes)==null?void 0:K.required)&&o.jsx("span",{className:"must-required mr-1",children:"*"})," ",c?o.jsx(aa,{...t}):o.jsx(o.Fragment,{children:(ie=e==null?void 0:e.label)==null?void 0:ie[A==null?void 0:A.type]}),o.jsx("span",{className:"ml-3",children:(e==null?void 0:e.showToolTip)&&o.jsx(zi,{message:(re=e==null?void 0:e.toolTip)==null?void 0:re[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-"+((X=(Z=e==null?void 0:e.icon)==null?void 0:Z.properties)==null?void 0:X.name)}),o.jsx(wn,{id:e==null?void 0:e.uuid,placeholder:(W=e==null?void 0:e.placeholder)==null?void 0:W[A==null?void 0:A.type],value:S,onFocus:()=>E(1),onChange:de=>{a!=null&&a.rowIsRepeatable?R(e,de.target.value):le(de.target.value)},className:C===1&&((me=e==null?void 0:e.attributes)!=null&&me.required)?S?"valid":"invalid":"valid'",readOnly:s||l})]}),((be=e==null?void 0:e.attributes)==null?void 0:be.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&&du.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(ki,{...t})]})]});return o.jsxs(o.Fragment,{children:[P===!0&&o.jsx(Qi,{visibilty:P,closeSettingFieldSidebar:z,...t},e==null?void 0:e.uuid),o.jsx(xi,{...t,fieldWrap:Y})]})},iye="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAwAAAAMACAYAAACTgQCOAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAABmJLR0QA/wD/AP+gvaeTAACAAElEQVR42u3deXxcdb3/8ffnTLaWthSUVVuaTMIWKc2cpLWi/oqIeK+4XisuoKDodUNx38H9Ku67IhdwB6NeF1xBqQrWNjOTUgxbM0kLyKp0b7PMnM/vj1ZFtiazZc7M6/l4+LhXxTZ5nzPnfN9zvt/vMQEAakI6DJv3j6L5gft8NTfPN/f5cp8fuR+gIJhv7vNdag7M5sm91aXZkvaTe4uk/c2sSdL+kuRSQtK8h/hr5khqfsB/Nilpx0P8s9tMKuz9/7e6e17SVplNSNpp0i6ZjUfu20yadLMtiqItgdlmmW1xsy2anNwSmW3ZGgRbejOZSY4yAMw8IwIAqAxfuTKxcePGg6IoOs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KfafOAAt5Xe4QdWMB6LcGS3JH2IWfEpwRLS6IVRW5x1iquVjFw9HiAoIzgJ/mzrNTE4UeGyvJAtBvjUL+RP0scCULaUWT7+YOI6n7osl3GWUFicugkE/rHMsdoG4sAP1XtIN01zHAMdHiilhaueeMS9pOrGU82lzNACcA1+XO8zKP5Q5QNxaAfnuSX0IhDrrcSfDWaPG+WM4DucNI6p9YzgPR4n0EbwXuzJ0H2MIvfRBQv1kA+izWMg58L2OELcCVLGZZNCv2UhFJMxJN/p7ESVPbAk9njPJdDxz3nwUgj69nuu4NNDghWlwRR7MtUwZJBRJtxqa2BY5j8m6B/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==",oye=t=>{var Y,se,K,ie,re,Z,X,W,me;const{field:e,pageIndex:n,sectionIndex:r,row:i,isDisabled:a}=t,{isAdmin:s,isBuilderMode:l}=zt(),{task_status:c,taskRegisterData:u,updateTaskRegisterData:d,updateTaskProgressValue:f,updateUserFormDataSubmit:h,userTaskSubmitFormData:g,TASK_PUBLISHED:v}=Ar(),{userSelectedLanguage:m}=sn(),[A,w]=O.useState(!1),[x,S]=O.useState(""),[T,C]=O.useState(0),[E,_]=O.useState(!1),M=()=>{_(!0)},k=()=>{_(!1)};O.useEffect(()=>{A||z();const be=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!==""&&du.test(x)===!0?e.isValid=1:e.isValid=0:e.isValid=1});return()=>{Te.remove(),be.remove()}});const[F,P]=O.useState(!1),H=be=>{P(be)},N=()=>{P(!1)},z=()=>{var be,Te,ye;if(i!=null&&i.rowIsRepeatable){const de=[...(i==null?void 0:i.repeatableFields)||[]],ne=_t.findIndex(de,function(U){return U.uuid===(e==null?void 0:e.uuid)});ne>=0&&de[ne].fieldData?S(de[ne].fieldData):S("")}else{const de=g;if(de!=null&&de.length){for(const ne of de)if(ne.fieldId===t.field.uuid&&((be=ne==null?void 0:ne.postData[0])==null?void 0:be.postValue)!==""&&((Te=ne==null?void 0:ne.postData[0])!=null&&Te.postValue)){S((ye=ne==null?void 0:ne.postData[0])==null?void 0:ye.postValue),w(!0);break}}}w(!0)},$=(be,Te)=>{S(Te);const ye=g,de=_t.cloneDeep(u);if(ye!==null){if(Te){if(de[e==null?void 0:e.uuid]=Te,(ye==null?void 0:ye.length)>0)for(const ne of ye)ne.fieldId===t.field.uuid&&(ne.postData[0]={postValue:Te})}else if(delete de[e==null?void 0:e.uuid],(ye==null?void 0:ye.length)>0)for(const ne of ye)ne.fieldId===t.field.uuid&&(ne.postData[0]={postValue:""})}if(!(i!=null&&i.rowIsRepeatable)){d(de);const ne=Object.keys(de).length;f(ne)}},le=(be,Te,ye,de)=>{var oe;const ne=[...g],U=_t.findIndex(ne,function(ge){return ge.rowId===(i==null?void 0:i.uuid)});let ee=(oe=g[U])==null?void 0:oe.repeatableFields;ee={...ee,[ye==null?void 0:ye.uuid]:de},ne[U]={...ne[U],repeatableFields:ee},h(ne),S(de),de!==""&&du.test(de)===!0?e.isValid=1:e.isValid=0},R=o.jsxs("div",{onMouseOver:M,onMouseOut:k,children:[l&&E&&o.jsx(Wr,{handleFieldSettingsSidebar:H,...t}),o.jsxs("div",{className:`field ${l&&" py-3 px-4 builder-element-wrapper "}${(e==null?void 0:e.isFluid)===!0&&" p-fluid"}`,children:[o.jsx("div",{className:"grid",children:o.jsxs("div",{className:s?"col-6 ":"col-12 p-fluid",children:[(e==null?void 0:e.showHeaderText)&&o.jsx("h6",{children:(Y=e==null?void 0:e.headerText)==null?void 0:Y[m==null?void 0:m.type]}),(e==null?void 0:e.showLabel)&&o.jsxs("label",{htmlFor:e.uuid,className:"flex font-bold mb-3 text-gray-900 text-xl",children:[o.jsx(ca,{...t}),((se=e==null?void 0:e.attributes)==null?void 0:se.required)&&o.jsx("span",{className:"must-required mr-1",children:"*"})," ",l?o.jsx(aa,{...t}):o.jsx(o.Fragment,{children:(K=e==null?void 0:e.label)==null?void 0:K[m==null?void 0:m.type]}),(e==null?void 0:e.showToolTip)&&o.jsx("span",{className:"ml-3",children:o.jsx(zi,{message:(ie=e==null?void 0:e.toolTip)==null?void 0:ie[m==null?void 0:m.type],position:"right"})})]}),o.jsx("div",{children:o.jsx(v6,{cancelIcon:o.jsx("img",{src:iye,alt:"custom-cancel-image",width:"25px",height:"25px"}),offIcon:o.jsx("img",{src:aye,alt:"custom-image-active",width:"25px",height:"25px"}),onIcon:o.jsx("img",{src:sye,alt:"custom-image",width:"25px",height:"25px"}),id:e==null?void 0:e.uuid,placeholder:(re=e==null?void 0:e.placeholder)==null?void 0:re[m==null?void 0:m.type],value:x,onFocus:()=>C(1),onChange:be=>{i!=null&&i.rowIsRepeatable?le(n,r,e,be.value):$(be,be.value)},className:T===1&&((Z=e==null?void 0:e.attributes)!=null&&Z.required)?x?"valid":"invalid":"valid'",readOnly:a})}),((X=e==null?void 0:e.attributes)==null?void 0:X.required)&&o.jsx("div",{children:o.jsx("small",{className:"error",children:T===1&&!x?(W=e==null?void 0:e.validationMesssage)==null?void 0:W[m==null?void 0:m.type]:""})}),(e==null?void 0:e.showHelperText)&&o.jsx("div",{children:o.jsx("small",{children:(me=e==null?void 0:e.helperText)==null?void 0:me[m==null?void 0:m.type]})})]})}),s&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(ki,{...t})]})]})]});return o.jsxs(o.Fragment,{children:[F===!0&&o.jsx(Qi,{visibilty:F,closeSettingFieldSidebar:N,...t},e==null?void 0:e.uuid),o.jsx(xi,{...t,fieldWrap:R})]})},lye=t=>{var Y,se,K,ie,re,Z,X,W,me;const{field:e,pageIndex:n,sectionIndex:r,row:i,isDisabled:a}=t,{isAdmin:s,isBuilderMode:l}=zt(),{task_status:c,taskRegisterData:u,updateTaskRegisterData:d,updateTaskProgressValue:f,updateUserFormDataSubmit:h,userTaskSubmitFormData:g,TASK_PUBLISHED:v}=Ar(),{userSelectedLanguage:m}=sn(),[A,w]=O.useState(!1),[x,S]=O.useState(""),[T,C]=O.useState(0),[E,_]=O.useState(!1),M=()=>{_(!0)},k=()=>{_(!1)};O.useEffect(()=>{A||z();const be=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!==""&&du.test(x)===!0?e.isValid=1:e.isValid=0:e.isValid=1});return()=>{Te.remove(),be.remove()}});const[F,P]=O.useState(!1),H=be=>{P(be)},N=()=>{P(!1)},z=()=>{var be,Te,ye;if(i!=null&&i.rowIsRepeatable){if(i!=null&&i.repeatableFields){const de=[...i.repeatableFields],ne=_t.findIndex(de,function(U){return U.uuid===(e==null?void 0:e.uuid)});ne>=0&&de[ne].fieldData?S(de[ne].fieldData):S("")}}else{const de=g;if(de!=null&&de.length){for(const ne of de)if(ne.fieldId===t.field.uuid&&((be=ne==null?void 0:ne.postData[0])==null?void 0:be.postValue)!==""&&((Te=ne==null?void 0:ne.postData[0])!=null&&Te.postValue)){S((ye=ne==null?void 0:ne.postData[0])==null?void 0:ye.postValue),w(!0);break}}}w(!0)},$=(be,Te)=>{S(Te);const ye=g,de=_t.cloneDeep(u);if(ye!==null){if(Te){if(de[e==null?void 0:e.uuid]=Te,(ye==null?void 0:ye.length)>0)for(const ne of ye)ne.fieldId===t.field.uuid&&(ne.postData[0]={postValue:Te})}else if(delete de[e==null?void 0:e.uuid],(ye==null?void 0:ye.length)>0)for(const ne of ye)ne.fieldId===t.field.uuid&&(ne.postData[0]={postValue:""})}if(!(i!=null&&i.rowIsRepeatable)){d(de);const ne=Object.keys(de).length;f(ne)}},le=(be,Te,ye,de)=>{var oe;const ne=[...g],U=_t.findIndex(ne,function(ge){return ge.rowId===(i==null?void 0:i.uuid)});let ee=(oe=g[U])==null?void 0:oe.repeatableFields;ee={...ee,[ye==null?void 0:ye.uuid]:de},ne[U]={...ne[U],repeatableFields:ee},h(ne),S(de),de!==""&&du.test(de)===!0?e.isValid=1:e.isValid=0},R=o.jsxs("div",{onMouseOver:M,onMouseOut:k,children:[l&&E&&o.jsx(Wr,{handleFieldSettingsSidebar:H,...t}),o.jsx("div",{className:`field ${l&&" py-3 px-4 builder-element-wrapper "}${(e==null?void 0:e.isFluid)===!0&&" p-fluid"}`,children:o.jsxs("div",{className:"grid",children:[o.jsxs("div",{className:l?"col-12 p-fluid field-form-builder":"col-12 p-fluid",children:[(e==null?void 0:e.showHeaderText)&&o.jsx("h6",{children:(Y=e==null?void 0:e.headerText)==null?void 0:Y[m==null?void 0:m.type]}),(e==null?void 0:e.showLabel)&&o.jsxs("label",{htmlFor:e.uuid,className:"flex font-bold mb-3 text-gray-900 text-xl",children:[o.jsx(ca,{...t}),((se=e==null?void 0:e.attributes)==null?void 0:se.required)&&o.jsx("span",{className:"must-required mr-1",children:"*"})," ",l?o.jsx(aa,{...t}):o.jsx(o.Fragment,{children:(K=e==null?void 0:e.label)==null?void 0:K[m==null?void 0:m.type]}),o.jsx("span",{className:"ml-3",children:(e==null?void 0:e.showToolTip)&&o.jsx(zi,{message:(ie=e==null?void 0:e.toolTip)==null?void 0:ie[m==null?void 0:m.type],position:"right"})})]}),o.jsx(A6,{id:e==null?void 0:e.uuid,placeholder:(re=e==null?void 0:e.placeholder)==null?void 0:re[m==null?void 0:m.type],value:x,onFocus:()=>C(1),onChange:be=>{i!=null&&i.rowIsRepeatable?le(n,r,e,be.value):$(be,be.value)},className:T===1&&((Z=e==null?void 0:e.attributes)!=null&&Z.required)?x?"valid":"invalid":"valid'",readOnly:a,disabled:s||a}),((X=e==null?void 0:e.attributes)==null?void 0:X.required)&&o.jsx("div",{children:o.jsx("small",{className:"error",children:T===1&&!x?(W=e==null?void 0:e.validationMesssage)==null?void 0:W[m==null?void 0:m.type]:""})}),(e==null?void 0:e.showHelperText)&&o.jsx("div",{children:o.jsx("small",{children:(me=e==null?void 0:e.helperText)==null?void 0:me[m==null?void 0:m.type]})})]}),s&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(ki,{...t})]})]})})]});return o.jsxs(o.Fragment,{children:[F===!0&&o.jsx(Qi,{visibilty:F,closeSettingFieldSidebar:N,...t},e==null?void 0:e.uuid),o.jsx(xi,{...t,fieldWrap:R})]})},cye=t=>{var R,Y,se,K,ie,re;const{field:e,pageIndex:n,sectionIndex:r,row:i}=t,{isAdmin:a,isBuilderMode:s}=zt(),{task_status:l,taskRegisterData:c,updateTaskRegisterData:u,updateTaskProgressValue:d,updateUserFormDataSubmit:f,userTaskSubmitFormData:h,TASK_PUBLISHED:g}=Ar(),{userSelectedLanguage:v}=sn(),[m,A]=O.useState(!1),[w,x]=O.useState(""),[S,T]=O.useState(0),[C,E]=O.useState(!1),_=()=>{E(!0)},M=()=>{E(!1)};O.useEffect(()=>{m||N();const Z=Gt.addListener("clearRepeatableFields",W=>{W===(i==null?void 0:i.uuid)&&(x(""),T(0),e.isValid=0)}),X=Gt.addListener("onSubmitUserForm",()=>{var W;(W=e==null?void 0:e.attributes)!=null&&W.required&&(w!==""&&du.test(w)===!0?e.isValid=1:e.isValid=0)});return()=>{X.remove(),Z.remove()}});const[k,F]=O.useState(!1),P=Z=>{F(Z)},H=()=>{F(!1)},N=()=>{var Z,X,W;if(i!=null&&i.rowIsRepeatable){if(i!=null&&i.repeatableFields){const me=[...i.repeatableFields],be=_t.findIndex(me,function(Te){return Te.uuid===(e==null?void 0:e.uuid)});be>=0&&me[be].fieldData?x(me[be].fieldData):x("")}}else{const me=h;if(me!=null&&me.length){for(const be of me)if(be.fieldId===t.field.uuid&&((Z=be==null?void 0:be.postData[0])==null?void 0:Z.postValue)!==""&&((X=be==null?void 0:be.postData[0])!=null&&X.postValue)){x((W=be==null?void 0:be.postData[0])==null?void 0:W.postValue),A(!0);break}}}A(!0)},z=(Z,X)=>{x(X);const W=h,me=_t.cloneDeep(c);if(X){if(me[e==null?void 0:e.uuid]=X,(W==null?void 0:W.length)>0)for(const be of W)be.fieldId===t.field.uuid&&(be.postData[0]={postValue:X})}else if(delete me[e==null?void 0:e.uuid],(W==null?void 0:W.length)>0)for(const be of W)be.fieldId===t.field.uuid&&(be.postData[0]={postValue:""});if(!(i!=null&&i.rowIsRepeatable)){u(me);const be=Object.keys(me).length;d(be)}},$=(Z,X,W,me)=>{var de;const be=[...h],Te=_t.findIndex(be,function(ne){return ne.rowId===(i==null?void 0:i.uuid)});let ye=(de=h[Te])==null?void 0:de.repeatableFields;ye={...ye,[W==null?void 0:W.uuid]:me},be[Te]={...be[Te],repeatableFields:ye},f(be),x(me),me!==""&&du.test(me)===!0?e.isValid=1:e.isValid=0},le=o.jsxs("div",{onMouseOver:_,onMouseOut:M,children:[s&&C&&o.jsx(Wr,{handleFieldSettingsSidebar:P,...t}),o.jsxs("div",{className:`field ${s&&" py-3 px-4 builder-element-wrapper "}${(e==null?void 0:e.isFluid)===!0&&" p-fluid"}`,children:[o.jsxs("div",{className:s?"card p-fluid field-form-builder":"p-fluid",children:[s&&o.jsx("label",{className:"block font-medium mb-3 text-700 text-2xl",children:"Hidden field"}),o.jsx(wn,{type:s===!1?"hidden":"text",id:e==null?void 0:e.uuid,placeholder:(R=e==null?void 0:e.placeholder)==null?void 0:R[v==null?void 0:v.type],value:(Y=e==null?void 0:e.defaultValue)==null?void 0:Y[v==null?void 0:v.type],onFocus:()=>T(1),onLoad:()=>{i!=null&&i.rowIsRepeatable?$(n,r,e,e==null?void 0:e.defaultValue):z("",e==null?void 0:e.defaultValue)},className:S===1&&((se=e==null?void 0:e.attributes)!=null&&se.required)?w?"valid":"invalid":"valid'",readOnly:l===g}),((K=e==null?void 0:e.attributes)==null?void 0:K.required)&&o.jsx("div",{children:o.jsx("small",{className:"error",children:S===1&&!w?(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:(re=e==null?void 0:e.helperText)==null?void 0:re[v==null?void 0:v.type]})})]}),a&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(ki,{...t})]})]})]});return o.jsxs(o.Fragment,{children:[k===!0&&o.jsx(Qi,{visibilty:k,closeSettingFieldSidebar:H,...t}),o.jsx(xi,{...t,fieldWrap:le})]})},xU=t=>{var T;const{field:e,fieldIndex:n,pageIndex:r,sectionIndex:i,rowIndex:a,columnIndex:s,path:l,labelType:c}=t,[u,d]=O.useState(e),{isBuilderMode:f}=zt();O.useEffect(()=>{var C;return x((C=e[c])==null?void 0:C[h==null?void 0:h.type]),()=>{}},[e]);const{userSelectedLanguage:h,fieldSettingUpdate:g,fieldSettingUpdateInlineConditional:v,gridComponentFieldSettingUpdate:m}=sn(),A=(C,E,_)=>{d(M=>({...M,[C]:{...M[C],[E==null?void 0:E.type]:_}}))},[w,x]=O.useState((T=e[c])==null?void 0:T[h==null?void 0:h.type]);O.useEffect(()=>(S(),()=>{}),[u]);const S=()=>{const C=l.split("-").map(Number);(t==null?void 0:t.fieldContainer)==="inline-condition-container"?v(C[fa],C[ha],C[Ca],C[xa],C[Ta],C[Fa],C[Xo],C[wo],u):(C==null?void 0:C.length)>Fa&&(C==null?void 0:C.length)===Bl+1&&(e!=null&&e.componentType)&&(t==null?void 0:t.fieldContainer)==="grid-container"?m(C[fa],C[ha],C[Ca],C[xa],C[Ta],C[5],C[6],C[7],u):g(r,i,a,s,n,{...e,[c]:u[c]})};return o.jsx(o.Fragment,{children:o.jsx(D3,{style:{display:"inline-block"},className:"builder-input-label-edit",html:w,disabled:!f,onChange:C=>{var E;x(k3.sanitize((E=C==null?void 0:C.target)==null?void 0:E.value))},onBlur:C=>{var _;const E=k3.sanitize((_=C==null?void 0:C.target)==null?void 0:_.innerText);x(E),A(c,h,E)},tagName:"article"})})},uye=t=>{var re,Z,X,W,me,be,Te;const{taskRegisterData:e,updateTaskRegisterData:n,updateTaskProgressValue:r,updateUserFormDataSubmit:i,userTaskSubmitFormData:a}=Ar(),{userSelectedLanguage:s,fieldSettingUpdate:l}=sn(),{field:c,fieldIndex:u,sectionIndex:d,pageIndex:f,row:h,rowIndex:g,columnIndex:v,isDisabled:m}=t,{isBuilderMode:A,isAdmin:w}=zt(),[x,S]=O.useState(!1),[T,C]=O.useState(""),[E,_]=O.useState(0),[M,k]=O.useState(!1),[F,P]=O.useState(!1),H=()=>{P(!0)},N=()=>{P(!1)},z=()=>{var ye,de,ne;if(h!=null&&h.rowIsRepeatable){if(h!=null&&h.repeatableFields){const U=[...h.repeatableFields],ee=_t.findIndex(U,function(oe){return oe.uuid===(c==null?void 0:c.uuid)});ee>=0&&U[ee].fieldData?C(U[ee].fieldData):C("")}}else{const U=a;if(U!=null&&U.length){for(const ee of U)if(ee.fieldId===t.field.uuid&&((ye=ee==null?void 0:ee.postData[0])==null?void 0:ye.postValue)!==""&&((de=ee==null?void 0:ee.postData[0])!=null&&de.postValue)){C((ne=ee==null?void 0:ee.postData[0])==null?void 0:ne.postValue);break}}}k(!0)};O.useEffect(()=>{M||z();const ye=Gt.addListener("clearRepeatableFields",ee=>{ee===(h==null?void 0:h.uuid)&&(C(""),_(0),c.isValid=0,l(f,d,g,v,u,c))}),de=Gt.addListener("onSubmitUserForm",()=>{var ee;(ee=c==null?void 0:c.attributes)!=null&&ee.required?T?c.isValid=1:c.isValid=0:c.isValid=1}),ne=Gt.addListener("OnInvalidFieldCatch",ee=>{c.uuid===(ee==null?void 0:ee.fieldId)?_(1):_(0)}),U=Gt.addListener("OnGetFieldValue",ee=>{var ge;const oe=(ge=ee==null?void 0:ee.repeatableColumn)==null?void 0:ge.filter(_e=>(_e==null?void 0:_e.fieldUuid)===(c==null?void 0:c.uuid));oe!=null&&oe.length});return()=>{de.remove(),ne.remove(),U.remove(),ye.remove()}});const $=ye=>{S(ye)},le=()=>{S(!1)},R=ye=>{var U,ee;C(ye.target.value);const de=a,ne=_t.cloneDeep(e);if(de!==null){if((U=ye==null?void 0:ye.target)!=null&&U.value){if(ne[c==null?void 0:c.uuid]=(ee=ye==null?void 0:ye.target)==null?void 0:ee.value,(de==null?void 0:de.length)>0)for(const oe of de)oe.fieldId===t.field.uuid&&(oe.postData[0]={postValue:ye.target.value})}else if(delete ne[c==null?void 0:c.uuid],(de==null?void 0:de.length)>0)for(const oe of de)oe.fieldId===t.field.uuid&&(oe.postData[0]={postValue:""})}if(!(h!=null&&h.rowIsRepeatable)){n(ne);const oe=Object.keys(ne).length;r(oe)}},Y=(ye,de,ne,U)=>{var ee;if(a){const oe=[...a],ge=_t.findIndex(oe,function(Ne){return Ne.rowId===(h==null?void 0:h.uuid)});let _e=(ee=a[ge])==null?void 0:ee.repeatableFields;_e={..._e,[ne==null?void 0:ne.uuid]:U},oe[ge]={...oe[ge],repeatableFields:_e},i(oe)}C(U),U!==""?ne.isValid=1:ne.isValid=0},se=10,K=()=>{const ye=[];for(let de=0;de<=se;de++)ye.push(o.jsxs("label",{children:[o.jsx("input",{onChange:ne=>{h!=null&&h.rowIsRepeatable?Y(f,d,c,ne.target.value):R(ne)},checked:parseInt(T)===de,name:"liker-scale"+(c==null?void 0:c.uuid),type:"radio",value:de,disabled:m}),o.jsx("span",{children:de})]},`field-${c==null?void 0:c.uuid}-likertScale-${de} ${parseInt(T)===de?"scale-selected":""}`));return ye},ie=o.jsxs("div",{onMouseOver:H,onMouseOut:N,children:[A&&F&&o.jsx(Wr,{handleFieldSettingsSidebar:$,...t}),o.jsxs("div",{className:`field ${A&&" py-3 px-4 builder-element-wrapper "}${(c==null?void 0:c.isFluid)===!0&&" p-fluid"}`,children:[o.jsxs("div",{className:"",children:[(c==null?void 0:c.showHeaderText)&&o.jsx("h6",{children:(re=c==null?void 0:c.headerText)==null?void 0:re[s==null?void 0:s.type]}),(c==null?void 0:c.showLabel)&&o.jsxs("label",{htmlFor:u,className:"flex font-bold mb-3 text-gray-900 text-xl",children:[o.jsx(ca,{...t}),((Z=c==null?void 0:c.attributes)==null?void 0:Z.required)&&o.jsx("span",{className:"must-required mr-1",children:"*"})," ",A?o.jsx(aa,{...t}):o.jsx(o.Fragment,{children:(X=c==null?void 0:c.label)==null?void 0:X[s==null?void 0:s.type]}),o.jsx("span",{className:"ml-3",children:(c==null?void 0:c.showToolTip)&&o.jsx(zi,{message:(W=c==null?void 0:c.toolTip)==null?void 0:W[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(xU,{...t,labelType:"startingMessage"})}),o.jsx("div",{className:"font-medium text-900",children:o.jsx(xU,{...t,labelType:"endingMessage"})})]}),o.jsx("div",{className:"likert",children:K()})]})}),o.jsx("div",{children:((me=c==null?void 0:c.attributes)==null?void 0:me.required)&&o.jsx("small",{className:"error",children:E===1&&!T?(be=c==null?void 0:c.validationMesssage)==null?void 0:be.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]})})]}),w&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(ki,{...t})]})]})]});return o.jsxs(o.Fragment,{children:[x===!0&&o.jsx(Qi,{visibilty:x,closeSettingFieldSidebar:le,...t}),o.jsx(xi,{...t,fieldWrap:ie})]})},dye=t=>{var Z,X,W,me,be,Te,ye,de,ne,U,ee,oe;const{taskRegisterData:e,updateTaskRegisterData:n,updateTaskProgressValue:r,updateUserFormDataSubmit:i,userTaskSubmitFormData:a,task_status:s,TASK_PUBLISHED:l}=Ar(),{userSelectedLanguage:c,fieldSettingUpdate:u}=sn(),{field:d,fieldIndex:f,sectionIndex:h,pageIndex:g,row:v,rowIndex:m,columnIndex:A,isDisabled:w}=t,{isBuilderMode:x,isAdmin:S,isRenderView:T}=zt(),[C,E]=O.useState(!1),[_,M]=O.useState(""),[k,F]=O.useState(0),[P,H]=O.useState(!1),[N,z]=O.useState(!1),$=()=>{z(!0)},le=()=>{z(!1)},R=()=>{var ge,_e,Ne;if(v!=null&&v.rowIsRepeatable){if(v!=null&&v.repeatableFields){const ve=[...v.repeatableFields],Ae=_t.findIndex(ve,function(Be){return Be.uuid===(d==null?void 0:d.uuid)});Ae>=0&&ve[Ae].fieldData?M(ve[Ae].fieldData):M("")}}else{const ve=a;if(ve!=null&&ve.length){for(const Ae of ve)if(Ae.fieldId===t.field.uuid&&((ge=Ae==null?void 0:Ae.postData[0])==null?void 0:ge.postValue)!==""&&((_e=Ae==null?void 0:Ae.postData[0])!=null&&_e.postValue)){M((Ne=Ae==null?void 0:Ae.postData[0])==null?void 0:Ne.postValue);break}}}H(!0)};O.useEffect(()=>{P||R();const ge=Gt.addListener("clearRepeatableFields",Ae=>{Ae===(v==null?void 0:v.uuid)&&(M(""),F(0),d.isValid=0,u(g,h,m,A,f,d))}),_e=Gt.addListener("onSubmitUserForm",()=>{var Ae;(Ae=d==null?void 0:d.attributes)!=null&&Ae.required?_?d.isValid=1:d.isValid=0:d.isValid=1}),Ne=Gt.addListener("OnInvalidFieldCatch",Ae=>{d.uuid===(Ae==null?void 0:Ae.fieldId)?F(1):F(0)}),ve=Gt.addListener("OnGetFieldValue",Ae=>{var Ee;const Be=(Ee=Ae==null?void 0:Ae.repeatableColumn)==null?void 0:Ee.filter(B=>(B==null?void 0:B.fieldUuid)===(d==null?void 0:d.uuid));Be!=null&&Be.length});return()=>{_e.remove(),Ne.remove(),ve.remove(),ge.remove()}});const Y=ge=>{E(ge)},se=()=>{E(!1)},K=ge=>{var ve,Ae;M(ge.target.value);const _e=a,Ne=_t.cloneDeep(e);if(_e!==null){if((ve=ge==null?void 0:ge.target)!=null&&ve.value){if(Ne[d==null?void 0:d.uuid]=(Ae=ge==null?void 0:ge.target)==null?void 0:Ae.value,(_e==null?void 0:_e.length)>0)for(const Be of _e)Be.fieldId===t.field.uuid&&(Be.postData[0]={postValue:ge.target.value})}else if(delete Ne[d==null?void 0:d.uuid],(_e==null?void 0:_e.length)>0)for(const Be of _e)Be.fieldId===t.field.uuid&&(Be.postData[0]={postValue:""})}if(!(v!=null&&v.rowIsRepeatable)){n(Ne);const Be=Object.keys(Ne).length;r(Be)}},ie=(ge,_e)=>{var Ne;if(a){const ve=[...a],Ae=_t.findIndex(ve,function(Ee){return Ee.rowId===(v==null?void 0:v.uuid)});let Be=(Ne=a[Ae])==null?void 0:Ne.repeatableFields;Be={...Be,[ge==null?void 0:ge.uuid]:_e},ve[Ae]={...ve[Ae],repeatableFields:Be},i(ve)}M(_e),_e!==""?ge.isValid=1:ge.isValid=0},re=o.jsxs("div",{onMouseOver:$,onMouseOut:le,children:[x&&N&&o.jsx(Wr,{handleFieldSettingsSidebar:Y,...t}),o.jsxs("div",{className:`field ${x&&" py-3 px-4 builder-element-wrapper "}${(d==null?void 0:d.isFluid)===!0&&" p-fluid"}`,children:[o.jsx("div",{className:"grid",children:o.jsxs("div",{className:x?"col-12 p-fluid":"col-12 ",children:[(d==null?void 0:d.showHeaderText)&&o.jsx("h6",{children:(Z=d==null?void 0:d.headerText)==null?void 0:Z[c==null?void 0:c.type]}),(d==null?void 0:d.showLabel)&&o.jsxs("label",{htmlFor:f,className:"flex font-bold mb-3 text-gray-900 text-xl",children:[o.jsx(ca,{...t}),((X=d==null?void 0:d.attributes)==null?void 0:X.required)&&o.jsx("span",{className:"must-required mr-1",children:"*"})," ",x?o.jsx(aa,{...t}):o.jsx(o.Fragment,{children:(W=d==null?void 0:d.label)==null?void 0:W[c==null?void 0:c.type]}),o.jsx("span",{className:"ml-3",children:(d==null?void 0:d.showToolTip)&&o.jsx(zi,{message:(me=d==null?void 0:d.toolTip)==null?void 0:me[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=(be=d==null?void 0:d.icon)==null?void 0:be.properties)==null?void 0:Te.name)}),o.jsx(wn,{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:()=>F(1),onChange:ge=>{v!=null&&v.rowIsRepeatable?ie(d,ge.target.value):K(ge)},className:k===1&&((de=d==null?void 0:d.attributes)!=null&&de.required)?_?"valid mt-2 mr-2":"invalid mt-2":"valid mt-2",readOnly:w,disabled:S||w})]}),o.jsx("div",{children:((ne=d==null?void 0:d.attributes)==null?void 0:ne.required)&&o.jsx("small",{className:"error",children:k===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:(ee=d==null?void 0:d.helperText)==null?void 0:ee[c==null?void 0:c.type]})})]})]})}),o.jsx("p",{className:"text-center",children:o.jsx("span",{className:`${(oe=d==null?void 0:d.fontStyle)==null?void 0:oe.font} text-center`,style:{fontSize:d==null?void 0:d.fontSize},children:_})}),S&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(ki,{...t})]})]})]});return o.jsxs(o.Fragment,{children:[C===!0&&o.jsx(Qi,{visibilty:C,closeSettingFieldSidebar:se,...t}),o.jsx(xi,{...t,fieldWrap:re})]})},fye={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},hye=t=>{var ne,U,ee,oe,ge,_e,Ne,ve,Ae,Be,Ee,B,fe,he,ce,pe,Se;const{updateUserFormDataSubmit:e,taskRegisterData:n,updateTaskRegisterData:r,updateTaskProgressValue:i,userTaskSubmitFormData:a,TASK_PUBLISHED:s,task_status:l}=Ar(),{globalAlignment:c}=zt(),{userSelectedLanguage:u,fieldSettingUpdate:d}=sn(),{isAdmin:f,isBuilderMode:h}=zt(),g=De=>{const Me=De.collapsed?"pi pi-chevron-down":"pi pi-chevron-up",ze=`${De.className} justify-content-start`,rt=`${De.titleClassName} pl-1`;return o.jsxs("div",{className:ze,children:[o.jsxs("button",{className:De.togglerClassName,onClick:De.onTogglerClick,children:[o.jsx("span",{className:Me}),o.jsx(Qt,{})]}),o.jsx("span",{className:rt,children:Y})]})},{field:v,fieldIndex:m,sectionIndex:A,pageIndex:w,row:x,rowIndex:S,columnIndex:T,isDisabled:C}=t,[E,_]=O.useState(!1),[M,k]=O.useState(null),[F,P]=O.useState(fye),[H,N]=O.useState(!1),z=()=>{N(!0)},$=()=>{N(!1)},le=(De,Me)=>{var ze;if(a){const rt=[...a],it=_t.findIndex(rt,function(Ht){return Ht.rowId===(x==null?void 0:x.uuid)});let ht=(ze=a[it])==null?void 0:ze.repeatableFields;ht={...ht,[De==null?void 0:De.uuid]:`${Me==null?void 0:Me.addressOne}, ${Me==null?void 0:Me.addressTwo}, ${Me==null?void 0:Me.zipcode}`},rt[it]={...rt[it],repeatableFields:ht},e(rt)}P(Me)},R=(De,Me)=>{let ze={...F};ze={...ze,[De]:Me},P(ze),(ze==null?void 0:ze.addressOne)!==""&&(ze!=null&&ze.addressTwo)&&(ze!=null&&ze.zipcode)&&ye(ze==null?void 0:ze.zipcode)?(v.isValid=1,x!=null&&x.rowIsRepeatable?le(v,ze):me(ze,!0)):(v.isValid=0,x!=null&&x.rowIsRepeatable||me(null,!1))},[Y]=O.useState((ne=v==null?void 0:v.label)==null?void 0:ne[u==null?void 0:u.type]),[se,K]=O.useState(0),[ie,re]=O.useState(!1),Z=()=>{var De,Me;if(!(x!=null&&x.rowIsRepeatable)){const ze=a;if(ze!=null&&ze.length){for(const rt of ze)if(rt.fieldId===t.field.uuid&&((De=rt==null?void 0:rt.postData[0])!=null&&De.postValue)){P((Me=rt==null?void 0:rt.postData[0])==null?void 0:Me.postValue);break}}}re(!0)};O.useEffect(()=>{ie||Z();const De=Gt.addListener("clearRepeatableFields",ht=>{ht===(x==null?void 0:x.uuid)&&(K(0),v.isValid=0,d(w,A,S,T,m,v))}),Me=Gt.addListener("onSubmitUserForm",()=>{var ht;(ht=v==null?void 0:v.attributes)!=null&&ht.required?(F==null?void 0:F.addressOne)!==""&&(F==null?void 0:F.zipcode)!==""&&ye(F==null?void 0:F.zipcode)?v.isValid=1:v.isValid=0:v.isValid=1}),ze=Gt.addListener("OnInvalidFieldCatch",ht=>{v.uuid===(ht==null?void 0:ht.fieldId)?K(1):K(0)}),rt=Gt.addListener("OnGetFieldValue",ht=>{var hn;const Ht=(hn=ht==null?void 0:ht.repeatableColumn)==null?void 0:hn.filter(Ut=>(Ut==null?void 0:Ut.fieldUuid)===(v==null?void 0:v.uuid));Ht!=null&&Ht.length}),it=Gt.addListener("formFieldAdded",ht=>{M===null&&k(ht.uuid)});return()=>{Me.remove(),ze.remove(),rt.remove(),De.remove(),it.remove()}});const X=De=>{_(De)},W=()=>{_(!1)},me=(De,Me)=>{const ze=a,rt=_t.cloneDeep(n);if(Me){if(rt[v==null?void 0:v.uuid]=De,(ze==null?void 0:ze.length)>0)for(const it of ze)it.fieldId===t.field.uuid&&(it.postData[0]={postValue:De})}else if(delete rt[v==null?void 0:v.uuid],(ze==null?void 0:ze.length)>0)for(const it of ze)it.fieldId===t.field.uuid&&(it.postData[0]={postValue:De});if(!(x!=null&&x.rowIsRepeatable)){r(rt);const it=Object.keys(rt).length;i(it)}},be=()=>{let De="";return h&&(De=De+" field-form-builder"),l===s&&f===!0&&(De=De+" card"),De},Te=()=>{let De=!1;return F.addressOne!==""&&F.zipcode!==""&&ye(F.zipcode)&&(De=!0),De};function ye(De){const Me=/\d/.test(De),ze=/[a-zA-Z]/.test(De);return Me&&ze?!0:!!Me}O.useEffect(()=>(M!==null&&setTimeout(()=>{k(null)},1e3),()=>{}),[M]);const de=o.jsxs("div",{onMouseOver:z,onMouseOut:$,children:[h&&H&&o.jsx(Wr,{handleFieldSettingsSidebar:X,...t}),o.jsxs("div",{className:`field ${h&&" py-3 px-4 builder-element-wrapper "}${(v==null?void 0:v.isFluid)===!0&&" p-fluid"}`,children:[o.jsx("div",{className:"grid",children:o.jsxs("div",{className:`col-12 ${h&&"p-fluid"}`,children:[(v==null?void 0:v.showHeaderText)&&o.jsx("h6",{children:(U=v==null?void 0:v.headerText)==null?void 0:U[u==null?void 0:u.type]}),(v==null?void 0:v.showLabel)&&o.jsxs("label",{htmlFor:m,className:"flex font-bold mb-3 text-gray-900 text-xl",children:[o.jsx(ca,{...t}),((ee=v==null?void 0:v.attributes)==null?void 0:ee.required)&&o.jsx("span",{className:"must-required mr-1",children:"*"})," ",h?o.jsx(o.Fragment,{children:(oe=v==null?void 0:v.label)==null?void 0:oe[u==null?void 0:u.type]}):o.jsx(aa,{...t}),o.jsx("span",{className:"ml-3",children:(v==null?void 0:v.showToolTip)&&o.jsx(zi,{message:(ge=v==null?void 0:v.toolTip)==null?void 0:ge[u==null?void 0:u.type],position:"right"})})]}),o.jsxs("div",{className:"mt-3 p-fluid",children:[o.jsx("div",{children:o.jsx("label",{className:"w-full",htmlFor:"",children:(_e=v==null?void 0:v.addresslineFirstLabel)==null?void 0:_e[u==null?void 0:u.type]})}),o.jsx(wn,{value:F.addressOne||"",onChange:De=>R("addressOne",De.target.value),className:"my-2 ",readOnly:C,disabled:f||C}),o.jsx("div",{children:o.jsx("label",{htmlFor:"",children:(Ne=v==null?void 0:v.addresslineSecondLabel)==null?void 0:Ne[u==null?void 0:u.type]})}),o.jsx(wn,{value:F.addressTwo||"",onChange:De=>R("addressTwo",De.target.value),className:"my-2",readOnly:C,disabled:f||C}),o.jsx("div",{children:o.jsx("label",{htmlFor:"",children:(ve=v==null?void 0:v.postalcodeLabel)==null?void 0:ve[u==null?void 0:u.type]})}),o.jsx(wn,{value:F.zipcode||"",onChange:De=>R("zipcode",De.target.value),className:"my-2",readOnly:C,disabled:f||C}),o.jsx("p",{children:!ye(F.zipcode)&&o.jsx("small",{children:"Cannot be alphabetical only."})}),((Ae=v==null?void 0:v.attributes)==null?void 0:Ae.required)&&!Te()&&o.jsx("small",{className:"error",children:se===1?(Be=v==null?void 0:v.validationMesssage)==null?void 0:Be.language:""}),(v==null?void 0:v.showBillingAddress)===!0&&o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:"field-checkbox",children:[o.jsx(Yr,{inputId:"binary",checked:F.isBillingAddressSame,onChange:De=>{R("isBillingAddressSame",De.checked),De.checked?P(Me=>({...Me,billingCountry:F.country,billingCity:F.city,billingState:F.state,billingAddressOne:F.addressOne,billingAddressTwo:F.addressTwo,billingZipcode:F.zipcode})):P(Me=>({...Me,billingCountry:null,billingCity:null,billingState:null,billingAddressOne:null,billingAddressTwo:null,billingZipcode:null}))},disabled:f||C}),o.jsx("label",{htmlFor:"binary",children:"Is Billing Address Same"})]}),F.isBillingAddressSame===!1&&o.jsxs(o.Fragment,{children:[(v==null?void 0:v.showLabel)&&o.jsxs("label",{htmlFor:m,className:"flex font-medium mb-3 text-700 text-2xl",children:[((Ee=v==null?void 0:v.attributes)==null?void 0:Ee.required)&&o.jsx("span",{className:"must-required",children:"*"})," ",(B=v==null?void 0:v.billingLabel)==null?void 0:B[u==null?void 0:u.type],o.jsx("span",{className:"ml-3",children:(v==null?void 0:v.showToolTip)&&o.jsx(zi,{message:(fe=v==null?void 0:v.toolTip)==null?void 0:fe[u==null?void 0:u.type],position:"right"})})]}),o.jsx("label",{htmlFor:"",children:(he=v==null?void 0:v.addresslineFirstLabel)==null?void 0:he[u==null?void 0:u.type]}),o.jsx(wn,{value:F.billingAddressOne||"",onChange:De=>R("billingAddressOne",De.target.value),className:"my-2",readOnly:C,disabled:f||C}),o.jsx("label",{htmlFor:"",children:(ce=v==null?void 0:v.addresslineSecondLabel)==null?void 0:ce[u==null?void 0:u.type]}),o.jsx(wn,{value:F.billingAddressTwo||"",onChange:De=>R("billingAddressTwo",De.target.value),className:"my-2",readOnly:C,disabled:f||C}),o.jsx("label",{htmlFor:"",children:(pe=v==null?void 0:v.postalcodeLabel)==null?void 0:pe[u==null?void 0:u.type]}),o.jsx(wn,{value:F.billingZipcode||"",onChange:De=>R("billingZipcode",De.target.value),className:"my-2",readOnly:C,disabled:f||C}),!ye(F.billingZipcode)&&o.jsx("small",{children:"Cannot be alphabetical only."})]})]}),o.jsx("div",{}),o.jsx("div",{children:(v==null?void 0:v.showHelperText)&&o.jsx("small",{children:(Se=v==null?void 0:v.helperText)==null?void 0:Se[u==null?void 0:u.type]})})]})]})}),f&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(ki,{...t})]})]})]});return o.jsxs(o.Fragment,{children:[E===!0&&o.jsx(Qi,{visibilty:E,closeSettingFieldSidebar:W,...t}),o.jsx("div",{dir:c?"ltr":"rtl",className:be(),children:l===s&&f===!0?o.jsx(ci,{headerTemplate:g,toggleable:!0,children:de}):de})]})},pye=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:g,columnIndex:v}=t,{handleDrop:m}=sn(),{isAdvanceView:A,isBuilderMode:w}=zt(),x=(T,C)=>{s(T,C)};return o.jsxs("div",{className:"p-2 py-4",children:[n&&((S=a.children)==null?void 0:S.length)>0&&a.children.map((T,C)=>{const E=T[`${n.rowIndex}-${n.columnIndex}`];return E?o.jsx("div",{children:o.jsx(Lc,{type:"grid",showFieldIcons:!1,onChange:x,data:E,field:E,path:`${i}-${n.rowIndex}-${n.columnIndex}-${C}`,sectionIndex:l,page:c,column:d,row:u,section:f,pageIndex:h,rowIndex:g,columnIndex:v,fieldIndex:C,fieldContainer:"grid-container"})},`${n.rowIndex}-${n.columnIndex}-${C}`):null}),n&&w===!0&&o.jsx("div",{className:"py-5",children:o.jsx(Fr,{isAdvanceView:A,fieldDropArea:!0,data:{path:`${i}-${n.rowIndex}-${r}`,childrenCount:1,droppedField:e},onDrop:m})})]})},TU=t=>{var P,H,N,z,$,le,R;const{field:e,column:n,section:r,row:i,rowIndex:a,columnIndex:s,sectionIndex:l,userSelectedLanguage:c,fieldIndex:u,customColumnHeaderTemplate:d,onSetValuetoPostData:f,setAllFields:h,allFields:g,actionHeaderTemplate:v,actionBodyTemplate:m,isFocus:A,inputValue:w,handleFieldSettingsSidebar:x,isAdmin:S,emitSocketData:T,isRenderView:C}=t,[E,_]=O.useState(!1),{isBuilderMode:M}=zt(),k=()=>{_(!0)},F=()=>{_(!1)};return o.jsxs("div",{onMouseOver:k,onMouseOut:F,children:[M&&E&&o.jsx(Wr,{handleFieldSettingsSidebar:x,...t}),o.jsxs("div",{className:`field ${M&&" py-3 px-4 builder-element-wrapper "}${(e==null?void 0:e.isFluid)===!0&&" p-fluid"}`,children:[o.jsx("div",{className:"grid",children:o.jsxs("div",{className:"col-12",children:[(e==null?void 0:e.showHeaderText)&&o.jsx("h6",{children:(P=e==null?void 0:e.headerText)==null?void 0:P[c==null?void 0:c.type]}),(e==null?void 0:e.showLabel)&&o.jsxs("label",{htmlFor:u,className:"flex font-bold mb-3 text-gray-900 text-xl",children:[o.jsx(ca,{...t}),((H=e==null?void 0:e.attributes)==null?void 0:H.required)&&o.jsx("span",{className:"must-required mr-1",children:"*"})," ",M?o.jsx(aa,{...t}):o.jsx(o.Fragment,{children:(N=e==null?void 0:e.label)==null?void 0:N[c==null?void 0:c.type]}),o.jsx("span",{className:"ml-3",children:(e==null?void 0:e.showToolTip)&&o.jsx(zi,{message:(z=e==null?void 0:e.toolTip)==null?void 0:z[c==null?void 0:c.type],position:"right"})})]}),o.jsxs("div",{className:"mt-3",children:[o.jsxs(ro,{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((Y,se)=>o.jsx(xr,{style:{minWidth:350},header:d(Y,se),body:(K,ie)=>o.jsx(pye,{customColumn:Y,section:r,column:n,columnIndex:s,row:i,rowIndex:a,sectionIndex:l,e:K,indexes:ie,customColumnIndex:se,onSetValuetoPostData:f,setAllFields:h,allFields:g,emitSocketData:T,field:e,...t})},Y==null?void 0:Y.uuid)),M&&o.jsx(xr,{frozen:!0,header:Y=>v(Y),body:(Y,se)=>m(Y,se),headerStyle:{textAlign:"left"},bodyStyle:{textAlign:"left",overflow:"visible"}})]}),o.jsx("div",{children:(($=e==null?void 0:e.attributes)==null?void 0:$.required)&&o.jsx("small",{className:"error",children:A===1&&!w?(le=e==null?void 0:e.validationMesssage)==null?void 0:le.english:""})}),o.jsx("div",{children:(e==null?void 0:e.showHelperText)&&o.jsx("small",{children:(R=e==null?void 0:e.helperText)==null?void 0:R[c==null?void 0:c.type]})})]})]})}),S&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(ki,{...t})]})]})]})},gye=({showAddNewColumn:t,setShowAddNewColumn:e,customColumnEditModalData:n,onHandleChangeCustomColumnSetting:r})=>{const[i,a]=O.useState((n==null?void 0:n.customKey)||"");return o.jsx(Os,{maximizable:!0,header:"Update column title",visible:t,style:{width:"20vw"},footer:()=>o.jsx(Ft,{text:!0,label:"Save",onClick:()=>{r(n,i),e(!1)}}),onHide:()=>e(!1),children:o.jsx("div",{className:"p-fluid",children:o.jsx(wn,{value:i,onChange:s=>{a(s.target.value)}})})})},EU=t=>{var de;const{globalAlignment:e}=zt(),n=ne=>{const U=ne.collapsed?"pi pi-chevron-down":"pi pi-chevron-up",ee=`${ne.className} justify-content-start`,oe=`${ne.titleClassName} pl-1`;return o.jsxs("div",{className:ee,children:[o.jsxs("button",{className:ne.togglerClassName,onClick:ne.onTogglerClick,children:[o.jsx("span",{className:U}),o.jsx(Qt,{})]}),o.jsx("span",{className:oe,children:C})]})},{userTaskSubmitFormData:r,TASK_PUBLISHED:i,task_status:a}=Ar(),{userSelectedLanguage:s,fieldSettingUpdate:l}=sn(),{isBuilderMode:c}=zt(),{field:u,fieldIndex:d,sectionIndex:f,pageIndex:h,row:g,rowIndex:v,columnIndex:m,isAdmin:A}=t,[w,x]=O.useState(!1),[S,T]=O.useState(""),[C]=O.useState((de=u==null?void 0:u.label)==null?void 0:de[s==null?void 0:s.type]),[E,_]=O.useState(0),[M,k]=O.useState(!1),[F,P]=O.useState(null),[H,N]=O.useState([]),z=()=>{var ne,U,ee;if(g!=null&&g.rowIsRepeatable){if(g!=null&&g.repeatableFields){const oe=[...g.repeatableFields],ge=_t.findIndex(oe,function(_e){return _e.uuid===(u==null?void 0:u.uuid)});ge>=0&&oe[ge].fieldData?T(oe[ge].fieldData):T("")}}else{const oe=r;if(oe!=null&&oe.length){for(const ge of oe)if(ge.fieldId===t.field.uuid&&((ne=ge==null?void 0:ge.postData[0])==null?void 0:ne.postValue)!==""&&((U=ge==null?void 0:ge.postData[0])!=null&&U.postValue)){T((ee=ge==null?void 0:ge.postData[0])==null?void 0:ee.postValue);break}}}k(!0)},$=()=>{const ne=u;ne.customColumnsForOptions=[...ne.customColumnsForOptions,{customKey:"Column",uuid:tt()}],ye(ne)},[le,R]=O.useState(!1),Y=(ne,U)=>{var ee;return o.jsxs(o.Fragment,{children:[((ee=u==null?void 0:u.options)==null?void 0:ee.length)>1&&o.jsx(Ft,{text:!0,type:"button",className:"p-button-danger left-space ",icon:"pi pi-trash",onClick:()=>ie(ne==null?void 0:ne.uuid,U==null?void 0:U.rowIndex),rounded:!0,severity:"secondary","aria-label":"Bookmark",size:"small"}),o.jsx(Ft,{text:!0,type:"button",icon:"pi pi-plus",rounded:!0,severity:"secondary",onClick:()=>be(),"aria-label":"Add Row",size:"small"})]})},se=(ne,U)=>{var ee;return o.jsxs(o.Fragment,{children:[ne==null?void 0:ne.customKey,c===!0&&o.jsxs(o.Fragment,{children:[((ee=u==null?void 0:u.customColumnsForOptions)==null?void 0:ee.length)>1&&o.jsx("i",{className:"pi pi-trash ml-3",onClick:()=>re(ne==null?void 0:ne.uuid,U)}),o.jsx("i",{className:"pi pi-cog ml-3",onClick:()=>{P(ne),R(!0)}})]})]})},K=()=>o.jsx(o.Fragment,{children:o.jsx(Ft,{text:!0,icon:"pi pi-plus",onClick:()=>$(),rounded:!0,severity:"secondary","aria-label":"Cancel"})}),ie=(ne,U)=>{var Ne,ve;const ee=(Ne=u==null?void 0:u.customColumnsForOptions)==null?void 0:Ne.length,oe=[...(u==null?void 0:u.children)||[]];(ve=u==null?void 0:u.children)==null||ve.map(Ae=>{for(let Be=0;Be<ee;Be++)if(Ae[`${U}-${Be}`]!==void 0){const Ee=_t.findIndex(oe,function(B){return B[`${U}-${Be}`]!==void 0});oe.splice(Ee,1)}});for(let Ae=0;Ae<(oe==null?void 0:oe.length);Ae++){const Be=oe[Ae],B=Object.keys(Be)[0].split("-");parseInt(B[0])>U&&(oe[Ae]={[`${parseInt(B[0])-1}-${B[1]}`]:oe[Ae][`${parseInt(B[0])}-${B[1]}`]})}const ge=u==null?void 0:u.options.filter(function(Ae){return(Ae==null?void 0:Ae.uuid)!==ne}),_e={...u,children:[...oe]};_e.options=ge,ye(_e)},re=(ne,U)=>{var ve,Ae;const ee=_t.findIndex(u==null?void 0:u.customColumnsForOptions,Be=>Be.uuid===ne),oe=u==null?void 0:u.customColumnsForOptions.filter(function(Be,Ee){return Ee!==ee}),ge=(ve=u==null?void 0:u.options)==null?void 0:ve.length,_e=[...(u==null?void 0:u.children)||[]];(Ae=u==null?void 0:u.children)==null||Ae.map(Be=>{for(let Ee=0;Ee<ge;Ee++)if(Be[`${Ee}-${U}`]!==void 0){const B=_t.findIndex(_e,function(fe){return fe[`${Ee}-${U}`]!==void 0});_e.splice(B,1)}});for(let Be=0;Be<(_e==null?void 0:_e.length);Be++){const Ee=_e[Be],fe=Object.keys(Ee)[0].split("-");parseInt(fe[1])>U&&(_e[Be]={[`${parseInt(fe[0])}-${parseInt(fe[1])-1}`]:_e[Be][`${parseInt(fe[0])}-${fe[1]}`]})}const Ne={...u,children:[..._e]};Ne.customColumnsForOptions=oe,ye(Ne)};O.useEffect(()=>{M||z();const ne=Gt.addListener("clearRepeatableFields",ge=>{ge===(g==null?void 0:g.uuid)&&(T(""),_(0),u.isValid=0,l(h,f,v,m,d,u))}),U=Gt.addListener("onSubmitUserForm",()=>{var ge;(ge=u==null?void 0:u.attributes)!=null&&ge.required&&(u.isValid=1)}),ee=Gt.addListener("OnInvalidFieldCatch",ge=>{u.uuid===(ge==null?void 0:ge.fieldId)?_(1):_(0)}),oe=Gt.addListener("OnGetFieldValue",ge=>{var Ne;const _e=(Ne=ge==null?void 0:ge.repeatableColumn)==null?void 0:Ne.filter(ve=>(ve==null?void 0:ve.fieldUuid)===(u==null?void 0:u.uuid));_e!=null&&_e.length});return()=>{U.remove(),ee.remove(),oe.remove(),ne.remove()}});const Z=ne=>{x(ne)},X=()=>{x(!1)},W=(ne,U)=>{var oe;const ee=r;if((ee==null?void 0:ee.length)>0)for(const ge of ee)ge.fieldId===t.field.uuid&&(ge.postData[0]={postValue:{...(oe=ge.postData[0])==null?void 0:oe.postValue,[ne]:U}})},me=()=>{let ne="";return c&&(ne=ne+" field-form-builder"),a===i&&A===!0&&(ne=ne+" card"),ne},be=()=>{const ne=u;ne.options=[...ne.options,{uuid:tt(),custom_values:{}}],ye(ne)},Te=(ne,U)=>{P(_e=>_e===null?{customKey:U,uuid:""}:{..._e,customKey:U});const ee=u.customColumnsForOptions,oe=ee.findIndex(_e=>_e.uuid===ne.uuid);ee[oe]={...ee[oe],customKey:U};const ge=u;ge.customColumnsForOptions=ee,ye(ge)},ye=ne=>{l(h,f,v,m,d,ne)};return o.jsxs(o.Fragment,{children:[le&&o.jsx(gye,{showAddNewColumn:le,setShowAddNewColumn:R,customColumnEditModalData:F,onHandleChangeCustomColumnSetting:Te}),w&&o.jsx(Qi,{visibilty:w,closeSettingFieldSidebar:X,...t}),o.jsx("div",{dir:e,className:me(),children:a===i&&A===!0?o.jsx(ci,{headerTemplate:n,toggleable:!0,children:o.jsx(TU,{...t,field:u,userSelectedLanguage:s,fieldIndex:d,pageIndex:h,columnIndex:m,customColumnHeaderTemplate:se,onSetValuetoPostData:W,setAllFields:ne=>N(ne),allFields:H,actionHeaderTemplate:K,actionBodyTemplate:Y,addOption:be,isFocus:E,inputValue:S,handleFieldSettingsSidebar:Z,isAdmin:A})}):o.jsx(TU,{...t,field:u,userSelectedLanguage:s,fieldIndex:d,pageIndex:h,columnIndex:m,customColumnHeaderTemplate:se,onSetValuetoPostData:W,setAllFields:ne=>N(ne),allFields:H,actionHeaderTemplate:K,actionBodyTemplate:Y,addOption:be,isFocus:E,inputValue:S,handleFieldSettingsSidebar:Z,isAdmin:A})})]})},mye=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(Pa,{value:a[`${n==null?void 0:n.rowIndex}-${r}`],options:e.options,onChange:l=>s(l.value),optionLabel:"label",placeholder:"Select"})})},IU=t=>{var S,T,C,E,_,M,k;const{field:e,userSelectedLanguage:n,fieldIndex:r,customColumnHeaderTemplate:i,customColumnRowBodyTemplate:a,setAllFields:s,allFields:l,actionHeaderTemplate:c,actionBodyTemplate:u,isFocus:d,inputValue:f,handleFieldSettingsSidebar:h,isAdmin:g}=t,{isBuilderMode:v}=zt(),[m,A]=O.useState(!1),w=()=>{A(!0)},x=()=>{A(!1)};return o.jsxs("div",{onMouseOver:w,onMouseOut:x,children:[v&&m&&o.jsx(Wr,{handleFieldSettingsSidebar:h,...t}),o.jsxs("div",{className:`field ${v&&" py-3 px-4 builder-element-wrapper "}${(e==null?void 0:e.isFluid)===!0&&" p-fluid"}`,children:[o.jsx("div",{className:"grid",children:o.jsxs("div",{className:`col-12 ${v&&"p-fluid"}`,children:[(e==null?void 0:e.showHeaderText)&&o.jsx("h6",{children:(S=e==null?void 0:e.headerText)==null?void 0:S[n==null?void 0:n.type]}),(e==null?void 0:e.showLabel)&&o.jsxs("label",{htmlFor:r,className:"flex font-bold mb-3 text-gray-900 text-xl",children:[o.jsx(ca,{...t}),((T=e==null?void 0:e.attributes)==null?void 0:T.required)&&o.jsx("span",{className:"must-required",children:"*"})," ",v?o.jsx(aa,{...t}):o.jsx(o.Fragment,{children:(C=e==null?void 0:e.label)==null?void 0:C[n==null?void 0:n.type]}),o.jsx("span",{className:"ml-3",children:(e==null?void 0:e.showToolTip)&&o.jsx(zi,{message:(E=e==null?void 0:e.toolTip)==null?void 0:E[n==null?void 0:n.type],position:"right"})})]}),o.jsxs("div",{className:"mt-3",children:[o.jsxs(ro,{showGridlines:!0,value:e==null?void 0:e.rows,children:[o.jsx(xr,{frozen:!0,header:"",headerStyle:{textAlign:"left"},bodyStyle:{textAlign:"left",overflow:"visible"},body:F=>a(F)}),e==null?void 0:e.customColumns.map((F,P)=>o.jsx(xr,{header:i(F),headerStyle:{textAlign:"left"},bodyStyle:{textAlign:"left",overflow:"visible"},body:(H,N)=>o.jsx(mye,{customColumn:F,e:H,indexes:N,customColumnIndex:P,setAllFields:s,allFields:l,...t})},F==null?void 0:F.uuid)),v===!0&&o.jsx(xr,{frozen:!0,header:F=>c(F),body:F=>u(F),headerStyle:{textAlign:"left"},bodyStyle:{textAlign:"left",overflow:"visible"}})]}),o.jsx("div",{children:((_=e==null?void 0:e.attributes)==null?void 0:_.required)&&o.jsx("small",{className:"error",children:d===1&&!f?(M=e==null?void 0:e.validationMesssage)==null?void 0:M.english:""})}),o.jsx("div",{children:(e==null?void 0:e.showHelperText)&&o.jsx("small",{children:(k=e==null?void 0:e.helperText)==null?void 0:k[n==null?void 0:n.type]})})]})]})}),g&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(ki,{...t})]})]})]})},vye=(t,e)=>{var Be,Ee;const n=B=>{const fe=B.collapsed?"pi pi-chevron-down":"pi pi-chevron-up",he=`${B.className} justify-content-start`,ce=`${B.titleClassName} pl-1`;return o.jsxs("div",{className:he,children:[o.jsxs("button",{className:B.togglerClassName,onClick:B.onTogglerClick,children:[o.jsx("span",{className:fe}),o.jsx(Qt,{})]}),o.jsx("span",{className:ce,children:E})]})},{userTaskSubmitFormData:r,TASK_PUBLISHED:i,task_status:a}=Ar(),{globalAlignment:s,isAdmin:l,isBuilderMode:c}=zt(),{userSelectedLanguage:u,fieldSettingUpdate:d}=sn(),{field:f,fieldIndex:h,sectionIndex:g,pageIndex:v,row:m,rowIndex:A,columnIndex:w}=t,[x,S]=O.useState(!1),[T,C]=O.useState(""),[E]=O.useState((Be=f==null?void 0:f.label)==null?void 0:Be[u==null?void 0:u.type]),[_,M]=O.useState(0),[k,F]=O.useState(!1),[P,H]=O.useState(null),[N,z]=O.useState(null),[$,le]=O.useState({}),R=()=>{var B,fe,he;if(m!=null&&m.rowIsRepeatable){if(m!=null&&m.repeatableFields){const ce=[...m.repeatableFields],pe=_t.findIndex(ce,function(Se){return Se.uuid===(f==null?void 0:f.uuid)});pe>=0&&ce[pe].fieldData?C(ce[pe].fieldData):C("")}}else{const ce=r;if(ce!=null&&ce.length){for(const pe of ce)if(pe.fieldId===t.field.uuid&&((B=pe==null?void 0:pe.postData[0])==null?void 0:B.postValue)!==""&&((fe=pe==null?void 0:pe.postData[0])!=null&&fe.postValue)){C((he=pe==null?void 0:pe.postData[0])==null?void 0:he.postValue);break}}}F(!0)},Y=()=>{const B=f;B.customColumns=[...B.customColumns,{customKey:"Column",uuid:tt(),options:[]}],ge(B)},[se,K]=O.useState(!1),[ie,re]=O.useState(!1),Z=B=>{var fe;return o.jsxs(o.Fragment,{children:[((fe=f==null?void 0:f.rows)==null?void 0:fe.length)>1&&o.jsx(Ft,{text:!0,type:"button",icon:"pi pi-trash",rounded:!0,severity:"secondary",onClick:()=>be(B==null?void 0:B.uuid),"aria-label":"Add Row"}),o.jsx(Ft,{text:!0,type:"button",icon:"pi pi-plus",rounded:!0,severity:"secondary",onClick:()=>U(),"aria-label":"Add Row"})]})},X=B=>{var fe;return o.jsxs(o.Fragment,{children:[B==null?void 0:B.customKey,c===!0&&o.jsxs(o.Fragment,{children:[((fe=f==null?void 0:f.customColumns)==null?void 0:fe.length)>1&&o.jsx("i",{className:"pi pi-trash ml-3",onClick:()=>Te(B==null?void 0:B.uuid)}),o.jsx("i",{className:"pi pi-cog ml-3",onClick:()=>{H(B),K(!0)}})]})]})},W=()=>o.jsx(o.Fragment,{children:o.jsx(Ft,{text:!0,type:"button",icon:"pi pi-plus",rounded:!0,severity:"secondary",onClick:()=>Y(),"aria-label":"Add Column"})}),me=B=>o.jsxs(o.Fragment,{children:[B==null?void 0:B.rowHeading,c===!0&&o.jsx(o.Fragment,{children:o.jsx("i",{className:"pi pi-cog ml-3",onClick:()=>{z(B),re(!0)}})})]}),be=B=>{const fe=f==null?void 0:f.rows.filter(function(ce){return(ce==null?void 0:ce.uuid)!==B}),he=f;he.rows=fe,ge(he)},Te=B=>{const fe=_t.findIndex(f==null?void 0:f.customColumns,pe=>pe.uuid===B),he=f==null?void 0:f.customColumns.filter(function(pe,Se){return Se!==fe}),ce=f;ce.customColumns=he,ge(ce)};O.useEffect(()=>{k||R();const B=Gt.addListener("clearRepeatableFields",ce=>{ce===(m==null?void 0:m.uuid)&&(C(""),M(0),f.isValid=0,d(v,g,A,w,h,f))}),fe=Gt.addListener("OnInvalidFieldCatch",ce=>{f.uuid===(ce==null?void 0:ce.fieldId)?M(1):M(0)}),he=Gt.addListener("OnGetFieldValue",ce=>{var Se;const pe=(Se=ce==null?void 0:ce.repeatableColumn)==null?void 0:Se.filter(De=>(De==null?void 0:De.fieldUuid)===(f==null?void 0:f.uuid));pe!=null&&pe.length});return()=>{fe.remove(),he.remove(),B.remove()}});const ye=B=>{S(B)},de=()=>{S(!1)},ne=()=>{let B="";return c&&(B=B+" field-form-builder"),a===i&&l===!0&&(B=B+" card"),B},U=()=>{const B=f;B.rows=[...B.rows,{rowHeading:"Row",uuid:tt(),custom_values:{}}],ge(B)},ee=(B,fe)=>{H(Se=>Se===null?{customKey:fe,uuid:""}:{...Se,customKey:fe});const he=f.customColumns,ce=he.findIndex(Se=>Se.uuid===B.uuid);he[ce]={...he[ce],customKey:fe};const pe=f;pe.customColumns=he,ge(pe)},oe=(B,fe)=>{z(Se=>Se===null?{uuid:"",rowHeading:fe}:{...Se,rowHeading:fe});const he=f.rows,ce=he.findIndex(Se=>Se.uuid===B.uuid);he[ce]={...he[ce],rowHeading:fe};const pe=f;pe.rows=he,ge(pe)},ge=B=>{d(v,g,A,w,h,B)};function _e(B){return B.toLowerCase().replace(/ /g,"-").replace(/[^\w-]+/g,"")}const Ne=(B,fe,he)=>{const ce=f.customColumns,pe=ce.findIndex(De=>P&&De.uuid===P.uuid);ce[pe].options[he][fe]=B,ce[pe].options[he].value=_e(B);const Se=f;Se.customColumns=ce,ge(Se)},ve=()=>{const B=f.customColumns,fe=B.findIndex(ce=>P&&ce.uuid===P.uuid);B[fe].options.push({label:"",value:"",uuid:tt()});const he=f;he.customColumns=B,ge(he)},Ae=B=>{const fe=f.customColumns,he=fe.findIndex(pe=>P&&pe.uuid===P.uuid);if(he===-1){console.error("Custom column not found");return}fe[he].options=fe[he].options.filter(pe=>pe.uuid!==B);const ce=f;ce.customColumns=fe,ge(ce)};return o.jsxs(o.Fragment,{children:[o.jsxs(Os,{maximizable:!0,header:"Update column title",visible:se,style:{width:"20vw"},footer:()=>o.jsxs(o.Fragment,{children:[" ",o.jsx(Ft,{text:!0,label:"Add Option",icon:"pi pi-plus",onClick:()=>ve()}),o.jsx(Ft,{text:!0,label:"Save",onClick:()=>K(!1)})]}),onHide:()=>K(!1),children:[o.jsx("div",{className:"p-fluid",children:o.jsx(wn,{value:(P==null?void 0:P.customKey)||"",onChange:B=>ee(P,B.target.value)})}),o.jsx("hr",{}),o.jsx("h5",{children:"Options"}),(P==null?void 0:P.options)&&((Ee=P==null?void 0:P.options)==null?void 0:Ee.length)>0&&(P==null?void 0:P.options.map((B,fe)=>o.jsxs("div",{className:"my-2 flex p-fluid",children:[o.jsx("span",{children:fe+1}),o.jsx(wn,{value:(B==null?void 0:B.label)||"",className:"ml-2",onChange:he=>Ne(he.target.value,"label",fe)}),o.jsx(Ft,{text:!0,type:"button",icon:"pi pi-trash",rounded:!0,severity:"secondary",onClick:()=>Ae(B.uuid),"aria-label":"Add Column Option"})]},`custom_column_option_${fe}`)))]}),o.jsx(Os,{maximizable:!0,header:"Update Row Title",visible:ie,style:{width:"20vw"},footer:()=>o.jsx(Ft,{text:!0,label:"Save",onClick:()=>re(!1)}),onHide:()=>re(!1),children:o.jsx("div",{className:"p-fluid",children:o.jsx(wn,{value:(N==null?void 0:N.rowHeading)||"",onChange:B=>oe(N,B.target.value)})})}),o.jsx(Qi,{visibilty:x,closeSettingFieldSidebar:de,...t}),o.jsx("div",{dir:s,className:ne(),children:a===i&&l===!0?o.jsx(ci,{headerTemplate:n,toggleable:!0,children:o.jsx(IU,{ref:e,...t,field:f,userSelectedLanguage:u,fieldIndex:h,customColumnHeaderTemplate:X,customColumnRowBodyTemplate:me,setAllFields:le,allFields:$,actionHeaderTemplate:W,actionBodyTemplate:Z,isFocus:_,inputValue:T,handleFieldSettingsSidebar:ye,isAdmin:l})}):o.jsx(IU,{ref:e,...t,field:f,userSelectedLanguage:u,fieldIndex:h,customColumnHeaderTemplate:X,customColumnRowBodyTemplate:me,setAllFields:le,allFields:$,actionHeaderTemplate:W,actionBodyTemplate:Z,isFocus:_,inputValue:T,handleFieldSettingsSidebar:ye,isAdmin:l})})]})},bye=t=>{const{indexes:e,customColumnIndex:n,setAllFields:r,allFields:i}=t,a=s=>{const l={...i};l[`${e==null?void 0:e.rowIndex}-${n}`]=s,r(l)};return o.jsx("div",{children:o.jsx(wn,{value:i[`${e==null?void 0:e.rowIndex}-${n}`]||"",onChange:s=>a(s.target.value)})})},_U=t=>{var g,v,m,A,w,x,S;const{field:e,userSelectedLanguage:n,fieldIndex:r,customColumnHeaderTemplate:i,setAllFields:a,allFields:s,actionHeaderTemplate:l,actionBodyTemplate:c,isFocus:u,inputValue:d,isAdmin:f}=t,{isBuilderMode:h}=zt();return o.jsxs("div",{className:`field ${h&&" py-3 px-4 builder-element-wrapper "}${(e==null?void 0:e.isFluid)===!0&&" p-fluid"}`,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:(g=e==null?void 0:e.headerText)==null?void 0:g[n==null?void 0:n.type]}),(e==null?void 0:e.showLabel)&&o.jsxs("label",{htmlFor:r,className:"flex font-bold mb-3 text-gray-900 text-xl",children:[o.jsx(ca,{...t}),((v=e==null?void 0:e.attributes)==null?void 0:v.required)&&o.jsx("span",{className:"must-required",children:"*"})," ",h?o.jsx(aa,{path:"",...t}):o.jsx(o.Fragment,{children:(m=e==null?void 0:e.label)==null?void 0:m[n==null?void 0:n.type]}),o.jsx("span",{className:"ml-3",children:(e==null?void 0:e.showToolTip)&&o.jsx(zi,{message:(A=e==null?void 0:e.toolTip)==null?void 0:A[n==null?void 0:n.type],position:"right"})})]}),o.jsxs("div",{className:"mt-3",style:{backgroundColor:"#0a061a"},children:[o.jsxs(ro,{scrollable:!0,showGridlines:!0,value:e==null?void 0:e.rows,children:[e==null?void 0:e.customColumns.map((T,C)=>o.jsx(xr,{header:i(T),headerStyle:{textAlign:"left"},bodyStyle:{textAlign:"left",overflow:"visible"},body:(E,_)=>o.jsx(bye,{customColumn:T,e:E,indexes:_,customColumnIndex:C,setAllFields:a,allFields:s,...t})},T==null?void 0:T.uuid)),h===!0&&o.jsx(xr,{frozen:!0,header:T=>l(T),body:T=>c(T),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:u===1&&!d?(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[n==null?void 0:n.type]})})]})]})}),f&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(ki,{...t})]})]})},yye=({showAddNewRow:t,setShowAddNewRow:e,customRowEditModalData:n,onHandleChangeCustomRowSetting:r})=>{const[i,a]=O.useState((n==null?void 0:n.rowHeading)||"");return o.jsx(Os,{maximizable:!0,header:"Update Row Title",visible:t,style:{width:"20vw"},footer:()=>o.jsx(Ft,{text:!0,label:"Save",onClick:()=>{e(!1),r(n,i)}}),onHide:()=>e(!1),children:o.jsx("div",{className:"p-fluid",children:o.jsx(wn,{value:i||"",onChange:s=>a(s.target.value)})})})},Aye=({showAddNewColumn:t,setShowAddNewColumn:e,customColumnEditModalData:n,onHandleChangeCustomColumnSetting:r})=>{const i=E3({initialValues:{columnValue:(n==null?void 0:n.customKey)||""},validate:a=>{const s={};return a.columnValue||(s.columnValue="Column value is required"),s},onSubmit:a=>{e(!1),r(n,a.columnValue)}});return o.jsx(Os,{maximizable:!0,header:"Update column title",visible:t,style:{width:"20vw"},footer:()=>o.jsx(Ft,{text:!0,label:"Save",onClick:()=>i.handleSubmit()}),onHide:()=>e(!1),children:o.jsx("div",{className:"p-fluid",children:o.jsxs("div",{className:"field",children:[o.jsx("label",{htmlFor:"columnValue",children:"Column Title"}),o.jsx(wn,{id:"columnValue",name:"columnValue",value:i.values.columnValue,onChange:i.handleChange,onBlur:i.handleBlur,className:i.touched.columnValue&&i.errors.columnValue?"p-invalid":""}),i.touched.columnValue&&i.errors.columnValue?o.jsx("small",{className:"p-error",children:i.errors.columnValue}):null]})})})},wye=t=>{var ge;const e=_e=>{const Ne=_e.collapsed?"pi pi-chevron-down":"pi pi-chevron-up",ve=`${_e.className} justify-content-start`,Ae=`${_e.titleClassName} pl-1`;return o.jsxs("div",{className:ve,children:[o.jsxs("button",{className:_e.togglerClassName,onClick:_e.onTogglerClick,children:[o.jsx("span",{className:Ne}),o.jsx(Qt,{})]}),o.jsx("span",{className:Ae,children:S})]})},{TASK_PUBLISHED:n,task_status:r}=Ar(),{userSelectedLanguage:i,fieldSettingUpdate:a}=sn(),{globalAlignment:s,isAdmin:l,isBuilderMode:c}=zt(),{field:u,fieldIndex:d,sectionIndex:f,pageIndex:h,rowIndex:g,columnIndex:v}=t,[m,A]=O.useState(!1),[w,x]=O.useState(""),[S]=O.useState((ge=u==null?void 0:u.label)==null?void 0:ge[i==null?void 0:i.type]),[T,C]=O.useState(0),[E,_]=O.useState(null),[M,k]=O.useState(null),[F,P]=O.useState((u==null?void 0:u.allFields)||{}),[H,N]=O.useState(!1),z=()=>{const _e=u;_e.customColumns=[..._e.customColumns,{customKey:"Column",uuid:tt(),options:[]}],U(_e)},[$,le]=O.useState(!1),[R,Y]=O.useState(!1),se=O.useCallback(_t.debounce(_e=>{const Ne=u;Ne.allFields={..._e},U(Ne)},1e3),[]);O.useEffect(()=>{se(F)},[F,se]);const K=_e=>{var Ne;return o.jsxs(o.Fragment,{children:[((Ne=u==null?void 0:u.options)==null?void 0:Ne.length)>1&&o.jsx(Ft,{text:!0,type:"button",icon:"pi pi-trash",rounded:!0,severity:"secondary",onClick:()=>X(_e==null?void 0:_e.uuid),"aria-label":"Add Row",size:"small"}),o.jsx(Ft,{text:!0,type:"button",icon:"pi pi-plus",rounded:!0,severity:"secondary",onClick:()=>ye(),"aria-label":"Add Row",size:"small"})]})},ie=_e=>{var Ne;return o.jsxs(o.Fragment,{children:[_e==null?void 0:_e.customKey,c===!0&&o.jsxs(o.Fragment,{children:[((Ne=u==null?void 0:u.customColumns)==null?void 0:Ne.length)>1&&o.jsx("i",{className:"pi pi-trash ml-3",onClick:()=>W(_e==null?void 0:_e.uuid)}),o.jsx("i",{className:"pi pi-cog ml-3",onClick:()=>{_(_e),le(!0)}})]})]})},re=()=>o.jsx(o.Fragment,{children:o.jsx(Ft,{text:!0,size:"small",type:"button",icon:"pi pi-plus",rounded:!0,severity:"secondary",onClick:()=>z(),"aria-label":"Add Column"})}),Z=_e=>o.jsxs(o.Fragment,{children:[_e==null?void 0:_e.rowHeading,c===!0&&o.jsx(o.Fragment,{children:o.jsx("i",{className:"pi pi-cog ml-3",onClick:()=>{k(_e),Y(!0)}})})]}),X=_e=>{const Ne=u==null?void 0:u.rows.filter(function(Ae){return(Ae==null?void 0:Ae.uuid)!==_e}),ve=u;ve.rows=Ne,U(ve)},W=_e=>{const Ne=_t.findIndex(u==null?void 0:u.customColumns,Be=>Be.uuid===_e),ve=u==null?void 0:u.customColumns.filter(function(Be,Ee){return Ee!==Ne}),Ae=u;Ae.customColumns=ve,U(Ae)},me=_e=>{A(_e)},be=()=>{A(!1)},Te=()=>{let _e="";return c===!0&&(_e=_e+" field-form-builder"),r===n&&l===!0&&(_e=_e+" card"),_e},ye=()=>{const _e=u;_e.rows=[..._e.rows,{rowHeading:"Row",uuid:tt(),custom_values:{}}],U(_e)},de=(_e,Ne)=>{_(Ee=>Ee===null?{customKey:Ne,uuid:""}:{...Ee,customKey:Ne});const ve=u.customColumns,Ae=ve.findIndex(Ee=>Ee.uuid===_e.uuid);ve[Ae]={...ve[Ae],customKey:Ne};const Be=u;Be.customColumns=ve,U(Be)},ne=(_e,Ne)=>{k(Ee=>Ee===null?{uuid:"",rowHeading:Ne}:{...Ee,rowHeading:Ne});const ve=u.rows,Ae=ve.findIndex(Ee=>Ee.uuid===_e.uuid);ve[Ae]={...ve[Ae],rowHeading:Ne};const Be=u;Be.rows=ve,U(Be)},U=_e=>{a(h,f,g,v,d,_e)},ee=()=>{N(!0)},oe=()=>{N(!1)};return o.jsxs(o.Fragment,{children:[o.jsx(Os,{maximizable:!0,header:"Update column title",visible:$,style:{width:"20vw"},footer:()=>o.jsx(o.Fragment,{children:o.jsx(Ft,{text:!0,label:"Save",onClick:()=>le(!1)})}),onHide:()=>le(!1),children:o.jsx("div",{className:"p-fluid",children:o.jsx(wn,{value:(E==null?void 0:E.customKey)||"",onChange:_e=>de(E,_e.target.value)})})}),R&&o.jsx(yye,{showAddNewRow:R,setShowAddNewRow:Y,customRowEditModalData:M,onHandleChangeCustomRowSetting:ne}),$&&o.jsx(Aye,{showAddNewColumn:$,setShowAddNewColumn:le,customColumnEditModalData:E,onHandleChangeCustomColumnSetting:de}),o.jsx(Qi,{visibilty:m,closeSettingFieldSidebar:be,...t}),o.jsx("div",{className:"field-form-builder",children:o.jsxs("div",{onMouseOver:ee,onMouseOut:oe,children:[c&&H&&o.jsx(Wr,{handleFieldSettingsSidebar:me,...t}),o.jsx("div",{dir:s,className:Te(),children:r===n&&l===!0?o.jsx(ci,{headerTemplate:e,toggleable:!0,children:o.jsx(_U,{...t,field:u,userSelectedLanguage:i,fieldIndex:d,customColumnHeaderTemplate:ie,customColumnRowBodyTemplate:Z,setAllFields:P,allFields:F,actionHeaderTemplate:re,actionBodyTemplate:K,isFocus:T,inputValue:w,handleFieldSettingsSidebar:me,isAdmin:l})}):o.jsx(_U,{isAdmin:!1,...t,field:u,userSelectedLanguage:i,fieldIndex:d,customColumnHeaderTemplate:ie,customColumnRowBodyTemplate:Z,setAllFields:P,allFields:F,actionHeaderTemplate:re,actionBodyTemplate:K,isFocus:T,inputValue:w,handleFieldSettingsSidebar:me})})]})})]})},Sye=t=>{var de,ne,U,ee,oe,ge,_e,Ne,ve,Ae,Be;const{taskRegisterData:e,updateTaskRegisterData:n,updateTaskProgressValue:r,userTaskSubmitFormData:i,updateUserFormDataSubmit:a}=Ar(),[s,l]=O.useState([]),{field:c,fieldIndex:u,row:d,pageIndex:f,sectionIndex:h,section:g,page:v,rowIndex:m,columnIndex:A,path:w,update:x,value:S,isDisabled:T}=t,{isAdmin:C,isBuilderMode:E}=zt(),{userSelectedLanguage:_}=sn(),[M,k]=O.useState(!1),[F,P]=O.useState(""),[H,N]=O.useState(0),[z,$]=O.useState(!1),[le,R]=O.useState(!1),Y=()=>{R(!0)},se=()=>{R(!1)},K=Ee=>{k(Ee)},ie=()=>{k(!1)};O.useEffect(()=>((c==null?void 0:c.dataSourceType)==="custom"&&l(c==null?void 0:c.options),c==null||c.dataSourceType,()=>{}));const re=()=>{var B,fe,he,ce;let Ee=null;if(d!=null&&d.rowIsRepeatable){if(d!=null&&d.repeatableFields){const pe=[...d.repeatableFields],Se=_t.findIndex(pe,function(De){return De.uuid===(c==null?void 0:c.uuid)});Se>=0&&pe[Se].fieldData?(Ee=pe[Se].fieldData,P(pe[Se].fieldData)):(c.isValid=0,P(""))}}else{const pe=i,Se=_t.cloneDeep(e);if(pe!=null&&pe.length){for(const De of pe)if(De.fieldId===t.field.uuid&&((B=De==null?void 0:De.postData)!=null&&B.length)){Ee=(fe=De==null?void 0:De.postData[0])==null?void 0:fe.postValue,P((he=De==null?void 0:De.postData[0])==null?void 0:he.postValue),Se[c==null?void 0:c.uuid]=(ce=De==null?void 0:De.postData[0])==null?void 0:ce.postValue;const Me=Object.keys(Se).length;r(Me);break}}}P(Ee),setTimeout(()=>{$(!0)},2e3)};O.useEffect(()=>{!z&&(i==null?void 0:i.length)>0&&re();const Ee=Gt.addListener("clearRepeatableFields",he=>{he===(d==null?void 0:d.uuid)&&(P(""),N(0),c.isValid=1)}),B=Gt.addListener("onSubmitUserForm",()=>{var he;(he=c==null?void 0:c.attributes)!=null&&he.required?F?c.isValid=1:c.isValid=0:c.isValid=1}),fe=Gt.addListener("OnInvalidFieldCatch",he=>{c.uuid===(he==null?void 0:he.fieldId)?N(1):N(0)});return()=>{B.remove(),fe.remove(),Ee.remove()}});const Z=(Ee,B)=>{var fe;if(i){const he=[...i],ce=_t.findIndex(he,function(Se){return Se.rowId===(d==null?void 0:d.uuid)});let pe=(fe=i[ce])==null?void 0:fe.repeatableFields;pe={...pe,[Ee==null?void 0:Ee.uuid]:B},he[ce]={...he[ce],repeatableFields:pe},a(he)}P(B),B?Ee.isValid=1:Ee.isValid=0},X=Ee=>{var B;P(Ee.target.value),d!=null&&d.rowIsRepeatable?Z(c,(B=Ee==null?void 0:Ee.target)==null?void 0:B.value):Te(Ee.target.value)},W=()=>(c==null?void 0:c.dataSourceType)==="custom"?`optionText.${_.type}`:(c==null?void 0:c.dataSourceType)==="database"?`${c==null?void 0:c.optionLabel}`:"",me=()=>(c==null?void 0:c.dataSourceType)==="custom"?`optionText.${_.type}`:(c==null?void 0:c.dataSourceType)==="database"?`${c==null?void 0:c.optionLabel}`:"",be=()=>{var Ee,B,fe;if(((Ee=c==null?void 0:c.fieldType)==null?void 0:Ee.type)==="radio"){const he=[];return s.map((ce,pe)=>{var De,Me,ze,rt;const Se=F;he.push(o.jsxs("div",{className:"field-radiobutton field-radiobutton-builder",onClick:()=>{X({value:ce,target:{value:ce}})},style:(Se==null?void 0:Se.uuid)===(ce==null?void 0:ce.uuid)?{backgroundColor:"#0F8BFD",padding:15,borderRadius:8}:{padding:15},children:[o.jsx(ia,{onFocus:()=>N(1),inputId:`radio-option-${pe}-${ce==null?void 0:ce.uuid}-${E?"builder-radio":"preview"}`,onChange:it=>{X(it)},value:ce,name:`radio-option-${pe}-${ce==null?void 0:ce.uuid}-${E?"builder":"preview"}`,checked:(Se==null?void 0:Se.uuid)===(ce==null?void 0:ce.uuid),disabled:T}),((De=ce==null?void 0:ce.hyperlinkText)==null?void 0:De[_==null?void 0:_.type])===""?o.jsx("label",{htmlFor:`radio-option-${pe}-${ce==null?void 0:ce.uuid}-${E?"builder":"preview"}`,children:(Me=ce==null?void 0:ce.optionText)==null?void 0:Me[_==null?void 0:_.type]}):o.jsx("label",{children:o.jsx("a",{href:(ze=ce==null?void 0:ce.hyperlinkText)==null?void 0:ze[_==null?void 0:_.type],target:"_blank",rel:"noreferrer",children:(rt=ce==null?void 0:ce.optionText)==null?void 0:rt[_==null?void 0:_.type]})})]},pe))}),he}if(((B=c==null?void 0:c.fieldType)==null?void 0:B.type)==="dropdown")return o.jsx(Pa,{onFocus:()=>N(1),onChange:he=>{d!=null&&d.rowIsRepeatable?Z(c,he.target.value):Te(he.target.value)},options:s,optionLabel:me(),optionValue:W(),value:F,placeholder:(fe=c==null?void 0:c.placeholder)==null?void 0:fe[_==null?void 0:_.type],disabled:T})},Te=Ee=>{var he,ce;P(Ee.target.value);const B=i,fe=_t.cloneDeep(e);if(B!==null){if((he=Ee==null?void 0:Ee.target)!=null&&he.value){if(fe[c==null?void 0:c.uuid]=(ce=Ee==null?void 0:Ee.target)==null?void 0:ce.value,(B==null?void 0:B.length)>0)for(const pe of B)pe.fieldId===t.field.uuid&&(pe.postData[0]={postValue:Ee.target.value})}else if(delete fe[c==null?void 0:c.uuid],(B==null?void 0:B.length)>0)for(const pe of B)pe.fieldId===t.field.uuid&&(pe.postData[0]={postValue:""})}if(!(d!=null&&d.rowIsRepeatable)){n(fe);const pe=Object.keys(fe).length;r(pe)}},ye=o.jsxs("div",{onMouseOver:Y,onMouseOut:se,children:[E&&le&&o.jsx(Wr,{handleFieldSettingsSidebar:K,...t}),o.jsx("div",{className:`field ${!E&&" py-3 px-4 builder-element-wrapper "}${(c==null?void 0:c.isFluid)===!0&&" p-fluid"}`,children:o.jsxs("div",{className:"grid",children:[o.jsxs("div",{className:"col-12",children:[(c==null?void 0:c.showHeaderText)&&o.jsx("h6",{children:(de=c==null?void 0:c.headerText)==null?void 0:de[_==null?void 0:_.type]}),(c==null?void 0:c.showLabel)&&o.jsxs("label",{htmlFor:u,className:"flex font-medium mb-5 text-700 text-2xl",children:[o.jsx(ca,{sectionIndex:h,fieldIndex:u,field:c,update:x,value:S}),((ne=c==null?void 0:c.attributes)==null?void 0:ne.required)&&o.jsx("span",{className:"must-required mr-1",children:"*"})," ",E?o.jsx(aa,{...t}):o.jsx(o.Fragment,{children:(U=c==null?void 0:c.label)==null?void 0:U[_==null?void 0:_.type]}),o.jsx("span",{className:"ml-3",children:c!=null&&c.showToolTip?o.jsx(o.Fragment,{children:o.jsx(zi,{message:(ee=c==null?void 0:c.toolTip)==null?void 0:ee[_==null?void 0:_.type],position:"right"})}):""})]}),be(),o.jsx("div",{children:((oe=c==null?void 0:c.attributes)==null?void 0:oe.required)&&o.jsx("small",{className:"error",children:H===1&&!F?(ge=c==null?void 0:c.validationMesssage)==null?void 0:ge.language:""})}),o.jsx("div",{children:(c==null?void 0:c.showHelperText)&&o.jsx("small",{children:(_e=c==null?void 0:c.helperText)==null?void 0:_e[_==null?void 0:_.type]})}),((Ne=c==null?void 0:c.inlineConditionalRules)==null?void 0:Ne.rules.length)>0&&E===!0&&o.jsx("p",{children:"Inline conditional rules"}),z===!0&&((Ae=(ve=c==null?void 0:c.inlineConditionalRules)==null?void 0:ve.rules)==null?void 0:Ae.length)>0&&((Be=c==null?void 0:c.inlineConditionalRules)==null?void 0:Be.rules.map((Ee,B)=>{const fe=F;return E===!1?o.jsx("div",{children:Ee==null?void 0:Ee.conditions.map((he,ce)=>o.jsx(O.Fragment,{children:o.jsx(e0,{isConditionTrue:!!((fe==null?void 0:fe.value)==he.value||E),inputValue:F,condition:he,ruleIndex:B,conditionIndex:ce,field:c,section:g,page:v,row:d,pageIndex:f,sectionIndex:h,rowIndex:m,columnIndex:A,path:w,...t})},`select-rule-${B}-`+ce))},`rule-${B}`):o.jsx(ci,{className:"mt-4",header:`Rule ${B+1}`,children:o.jsx("div",{children:Ee==null?void 0:Ee.conditions.map((he,ce)=>o.jsx(O.Fragment,{children:o.jsx(e0,{isConditionTrue:!!((fe==null?void 0:fe.value)===he.value||E),inputValue:F,condition:he,ruleIndex:B,conditionIndex:ce,field:c,section:g,page:v,row:d,pageIndex:f,sectionIndex:h,rowIndex:m,columnIndex:A,path:w,...t})},`select-rule-${B}-`+ce))},`rule-${B}`)},B)}))]}),C&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(ki,{...t})]})]})})]});return o.jsxs(o.Fragment,{children:[M===!0&&o.jsx(Qi,{visibilty:M,closeSettingFieldSidebar:ie,...t},c==null?void 0:c.uuid),o.jsx(xi,{...t,fieldWrap:ye})]})},Cye=t=>{var z,$,le,R;const{taskRegisterData:e,updateTaskRegisterData:n,updateTaskProgressValue:r,userTaskSubmitFormData:i}=Ar(),{field:a,row:s,isDisabled:l=!1}=t,{isBuilderMode:c,isAdmin:u}=zt(),{userSelectedLanguage:d}=sn(),[f,h]=O.useState(!1),[g,v]=O.useState(""),[m,A]=O.useState(0),[w,x]=O.useState(!1),[S,T]=O.useState(!1),C=()=>{T(!0)},E=()=>{T(!1)},_=Y=>{h(Y)},M=()=>{h(!1)},k=()=>{var se,K,ie,re;let Y=null;if(s!=null&&s.rowIsRepeatable){if(s!=null&&s.repeatableFields){const Z=[...s.repeatableFields],X=_t.findIndex(Z,function(W){return W.uuid===(a==null?void 0:a.uuid)});X>=0&&Z[X].fieldData?(Y=Z[X].fieldData,v(Z[X].fieldData)):(a.isValid=0,v(""))}}else{const Z=i,X=_t.cloneDeep(e);if(Z!=null&&Z.length){for(const W of Z)if(W.fieldId===t.field.uuid&&((se=W==null?void 0:W.postData)!=null&&se.length)){Y=(K=W==null?void 0:W.postData[0])==null?void 0:K.postValue,v((ie=W==null?void 0:W.postData[0])==null?void 0:ie.postValue),X[a==null?void 0:a.uuid]=(re=W==null?void 0:W.postData[0])==null?void 0:re.postValue;const me=Object.keys(X).length;r(me);break}}}v(Y),setTimeout(()=>{x(!0)},2e3)};O.useEffect(()=>{w||k();const Y=Gt.addListener("clearRepeatableFields",ie=>{ie===(s==null?void 0:s.uuid)&&(v(""),A(0),a.isValid=1)}),se=Gt.addListener("onSubmitUserForm",()=>{var ie;if((ie=a==null?void 0:a.attributes)!=null&&ie.required){const re=g;re!=null&&re[a.uuid]?a.isValid=1:a.isValid=0}else a.isValid=1}),K=Gt.addListener("OnInvalidFieldCatch",ie=>{a.uuid===(ie==null?void 0:ie.fieldId)?A(1):A(0)});return()=>{se.remove(),K.remove(),Y.remove()}});const F=(Y,se,K,ie,re)=>ie==null?void 0:ie.map(Z=>{var X,W;return{...Z,children:Z!=null&&Z.children&&((X=Z==null?void 0:Z.children)==null?void 0:X.length)>0?[...((W=Z==null?void 0:Z.children)==null?void 0:W.map(me=>se===(Z==null?void 0:Z.uuid)||re===!0?(K!=null&&K[me==null?void 0:me.uuid]&&delete K[me==null?void 0:me.uuid],{...me,options:F(Y,se,K,(me==null?void 0:me.options)||[],!0)}):{...me,options:F(Y,se,K,(me==null?void 0:me.options)||[],!1)}))||[]]:[]}}),P=(Y,se)=>{const K={...g};F(Y,se,K,a==null?void 0:a.options,!1),K[Y]=se,v(K),s!=null&&s.rowIsRepeatable||H(K)},H=Y=>{const se=i,K=_t.cloneDeep(e);if(se!==null){if(Y){if(K[a==null?void 0:a.uuid]=Y,(se==null?void 0:se.length)>0)for(const ie of se)ie.fieldId===t.field.uuid&&(ie.postData[0]={postValue:Y})}else if(delete K[a==null?void 0:a.uuid],(se==null?void 0:se.length)>0)for(const ie of se)ie.fieldId===t.field.uuid&&(ie.postData[0]={postValue:""})}if(!(s!=null&&s.rowIsRepeatable)){n(K);const ie=Object.keys(K).length;r(ie)}},N=o.jsxs("div",{onMouseOver:C,onMouseOut:E,children:[c&&S&&o.jsx(Wr,{handleFieldSettingsSidebar:_,...t}),o.jsx("div",{className:`field ${c&&" py-3 px-4 builder-element-wrapper "}${(a==null?void 0:a.isFluid)===!0&&" p-fluid"}`,children:o.jsxs("div",{className:"grid",children:[o.jsxs("div",{className:"col-12",children:[(a==null?void 0:a.showHeaderText)&&o.jsx("h6",{children:(z=a==null?void 0:a.headerText)==null?void 0:z[d==null?void 0:d.type]}),o.jsx(m7,{...t,isDisabled:l,isFirst:!0,schema:a,field:a,value:g,update:(Y,se)=>{P(Y,se)}}),o.jsx("div",{children:(($=a==null?void 0:a.attributes)==null?void 0:$.required)&&o.jsx("small",{className:"error",children:m===1&&!g?(le=a==null?void 0:a.validationMesssage)==null?void 0:le.english:""})}),o.jsx("div",{children:(a==null?void 0:a.showHelperText)&&o.jsx("small",{children:(R=a==null?void 0:a.helperText)==null?void 0:R[d==null?void 0:d.type]})})]}),u&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(ki,{...t})]})]})})]});return o.jsxs(o.Fragment,{children:[o.jsx(Qi,{visibilty:f,closeSettingFieldSidebar:M,...t},a==null?void 0:a.uuid),o.jsx(xi,{...t,fieldWrap:N})]})},xye=t=>{var W,me,be,Te,ye,de,ne,U,ee,oe;const{field:e,fieldIndex:n,sectionIndex:r,pageIndex:i,row:a,rowIndex:s,columnIndex:l,isDisabled:c}=t,{isRenderView:u,isAdmin:d,isBuilderMode:f}=zt(),{taskRegisterData:h,updateTaskRegisterData:g,updateTaskProgressValue:v,updateUserFormDataSubmit:m,userTaskSubmitFormData:A,task_status:w,TASK_PUBLISHED:x}=Ar(),[S,T]=O.useState(!1),{userSelectedLanguage:C,fieldSettingUpdate:E}=sn(),[_,M]=O.useState(!1),[k,F]=O.useState(0),[P,H]=O.useState(),[N,z]=O.useState(!1),$=()=>{z(!0)},le=()=>{z(!1)},R=[{icon:"pi pi-thumbs-up",thumbValue:"up"},{icon:"pi pi-thumbs-down",thumbValue:"down"}],Y=ge=>o.jsx("span",{className:"m-2",children:o.jsx("i",{style:{fontSize:30},className:ge.icon})}),se=()=>{var ge,_e,Ne;if(a!=null&&a.rowIsRepeatable){if(a!=null&&a.repeatableFields){const ve=[...a.repeatableFields],Ae=_t.findIndex(ve,function(Be){return Be.uuid===(e==null?void 0:e.uuid)});Ae>=0&&ve[Ae].fieldData?H(ve[Ae].fieldData):H("")}}else{const ve=A;if(ve!=null&&ve.length){for(const Ae of ve)if(Ae.fieldId===t.field.uuid&&((ge=Ae==null?void 0:Ae.postData[0])==null?void 0:ge.postValue)!==""&&((_e=Ae==null?void 0:Ae.postData[0])!=null&&_e.postValue)){H((Ne=Ae==null?void 0:Ae.postData[0])==null?void 0:Ne.postValue);break}}}M(!0)};O.useEffect(()=>{_||se();const ge=Gt.addListener("clearRepeatableFields",Ae=>{Ae===(a==null?void 0:a.uuid)&&(H(""),F(0),e.isValid=0,E(i,r,s,l,n,e))}),_e=Gt.addListener("onSubmitUserForm",()=>{var Ae;(Ae=e==null?void 0:e.attributes)!=null&&Ae.required?P?e.isValid=1:e.isValid=0:e.isValid=1}),Ne=Gt.addListener("OnInvalidFieldCatch",Ae=>{e.uuid===(Ae==null?void 0:Ae.fieldId)?F(1):F(0)}),ve=Gt.addListener("OnGetFieldValue",Ae=>{var Ee;const Be=(Ee=Ae==null?void 0:Ae.repeatableColumn)==null?void 0:Ee.filter((B,fe)=>(B==null?void 0:B.fieldUuid)===(e==null?void 0:e.uuid));Be!=null&&Be.length});return()=>{_e.remove(),Ne.remove(),ve.remove(),ge.remove()}});const K=ge=>{H(ge.value);const _e=A,Ne=_t.cloneDeep(h);if(_e!==null){if(ge!=null&&ge.value){if(Ne[e==null?void 0:e.uuid]=ge==null?void 0:ge.value,(_e==null?void 0:_e.length)>0)for(const ve of _e)ve.fieldId===t.field.uuid&&(ve.postData[0]={postValue:ge.value})}else if(delete Ne[e==null?void 0:e.uuid],(_e==null?void 0:_e.length)>0)for(const ve of _e)ve.fieldId===t.field.uuid&&(ve.postData[0]={postValue:""})}if(!(a!=null&&a.rowIsRepeatable)){g(Ne);const ve=Object.keys(Ne).length;v(ve)}},ie=(ge,_e)=>{var Ne;if(A){const ve=[...A],Ae=_t.findIndex(ve,function(Ee){return Ee.rowId===(a==null?void 0:a.uuid)});let Be=(Ne=A[Ae])==null?void 0:Ne.repeatableFields;Be={...Be,[ge==null?void 0:ge.uuid]:_e},ve[Ae]={...ve[Ae],repeatableFields:Be},m(ve)}H(_e),_e!==""?ge.isValid=1:ge.isValid=0},re=ge=>{T(ge)},Z=()=>{T(!1)},X=o.jsxs("div",{onMouseOver:$,onMouseOut:le,children:[f&&N&&o.jsx(Wr,{handleFieldSettingsSidebar:re,...t}),o.jsx("div",{className:`field ${f&&" 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:d?"col-6 ":"col-12 p-fluid",children:[(e==null?void 0:e.showHeaderText)&&o.jsx("h6",{children:(W=e==null?void 0:e.headerText)==null?void 0:W[C==null?void 0:C.type]}),(e==null?void 0:e.showLabel)&&o.jsxs("label",{htmlFor:n,className:"flex font-bold mb-3 text-gray-900 text-xl",children:[o.jsx(ca,{...t}),((me=e==null?void 0:e.attributes)==null?void 0:me.required)&&o.jsx("span",{className:"must-required mr-1",children:"*"})," ",f?o.jsx(aa,{...t}):o.jsx(o.Fragment,{children:(be=e==null?void 0:e.label)==null?void 0:be[C==null?void 0:C.type]}),o.jsx("span",{className:"ml-3",children:(e==null?void 0:e.showToolTip)&&o.jsx(zi,{message:(Te=e==null?void 0:e.toolTip)==null?void 0:Te[C==null?void 0:C.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-"+((de=(ye=e==null?void 0:e.icon)==null?void 0:ye.properties)==null?void 0:de.name)}),o.jsx("div",{className:"card flex justify-content-start",children:o.jsx(tf,{value:P,onChange:ge=>{H(ge.value),a!=null&&a.rowIsRepeatable?ie(e,ge.value):K(ge)},itemTemplate:Y,disabled:d||c,optionLabel:"value",onFocus:()=>F(1),options:R,readOnly:c,className:k===1&&((ne=e==null?void 0:e.attributes)!=null&&ne.required)?P?"valid":"invalid":"valid'"})})]}),o.jsx("div",{children:((U=e==null?void 0:e.attributes)==null?void 0:U.required)&&o.jsx(o.Fragment,{children:o.jsx("small",{className:"error",children:k===1&&!P?(ee=e==null?void 0:e.validationMesssage)==null?void 0:ee.english:""})})}),o.jsx("div",{children:(e==null?void 0:e.showHelperText)&&o.jsx("small",{children:(oe=e==null?void 0:e.helperText)==null?void 0:oe[C==null?void 0:C.type]})})]}),d&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(ki,{...t})]})]})})]});return o.jsxs(o.Fragment,{children:[o.jsx(Qi,{visibilty:S,closeSettingFieldSidebar:Z,...t}),o.jsx(xi,{...t,fieldWrap:X})]})},Tye=t=>{var ie,re,Z,X,W,me,be;const{taskRegisterData:e,updateTaskRegisterData:n,updateTaskProgressValue:r,updateUserFormDataSubmit:i,userTaskSubmitFormData:a}=Ar(),{userSelectedLanguage:s,fieldSettingUpdate:l}=sn(),{field:c,fieldIndex:u,sectionIndex:d,pageIndex:f,row:h,rowIndex:g,columnIndex:v}=t,{isAdmin:m,isBuilderMode:A}=zt(),[w,x]=O.useState(!1),[S,T]=O.useState(""),[C,E]=O.useState(0),[_,M]=O.useState(!1),[k,F]=O.useState(!1),P=()=>{F(!0)},H=()=>{F(!1)},N=()=>{var Te,ye,de;if(h!=null&&h.rowIsRepeatable){if(h!=null&&h.repeatableFields){const ne=[...h.repeatableFields],U=_t.findIndex(ne,function(ee){return ee.uuid===(c==null?void 0:c.uuid)});U>=0&&ne[U].fieldData?T(ne[U].fieldData):T("")}}else{const ne=a;if(ne!=null&&ne.length){for(const U of ne)if(U.fieldId===t.field.uuid&&((Te=U==null?void 0:U.postData[0])==null?void 0:Te.postValue)!==""&&((ye=U==null?void 0:U.postData[0])!=null&&ye.postValue)){T((de=U==null?void 0:U.postData[0])==null?void 0:de.postValue);break}}}M(!0)};O.useEffect(()=>{_||N();const Te=Gt.addListener("clearRepeatableFields",U=>{U===(h==null?void 0:h.uuid)&&(T(""),E(0),c.isValid=0,l(f,d,g,v,u,c))}),ye=Gt.addListener("onSubmitUserForm",()=>{var U;(U=c==null?void 0:c.attributes)!=null&&U.required?S?c.isValid=1:c.isValid=0:c.isValid=1}),de=Gt.addListener("OnInvalidFieldCatch",U=>{c.uuid===(U==null?void 0:U.fieldId)?E(1):E(0)}),ne=Gt.addListener("OnGetFieldValue",U=>{var oe;const ee=(oe=U==null?void 0:U.repeatableColumn)==null?void 0:oe.filter(ge=>(ge==null?void 0:ge.fieldUuid)===(c==null?void 0:c.uuid));ee!=null&&ee.length});return()=>{ye.remove(),de.remove(),ne.remove(),Te.remove()}});const z=Te=>{x(Te)},$=()=>{x(!1)},le=Te=>{var ne,U;T(Te.target.value);const ye=a,de=_t.cloneDeep(e);if(ye!==null){if((ne=Te==null?void 0:Te.target)!=null&&ne.value){if(de[c==null?void 0:c.uuid]=(U=Te==null?void 0:Te.target)==null?void 0:U.value,(ye==null?void 0:ye.length)>0)for(const ee of ye)ee.fieldId===t.field.uuid&&(ee.postData[0]={postValue:Te.target.value})}else if(delete de[c==null?void 0:c.uuid],(ye==null?void 0:ye.length)>0)for(const ee of ye)ee.fieldId===t.field.uuid&&(ee.postData[0]={postValue:""})}if(!(h!=null&&h.rowIsRepeatable)){n(de);const ee=Object.keys(de).length;r(ee)}},R=(Te,ye,de,ne)=>{var U;if(a){const ee=[...a],oe=_t.findIndex(ee,function(_e){return _e.rowId===(h==null?void 0:h.uuid)});let ge=(U=a[oe])==null?void 0:U.repeatableFields;ge={...ge,[de==null?void 0:de.uuid]:ne},ee[oe]={...ee[oe],repeatableFields:ge},i(ee)}T(ne),ne!==""?de.isValid=1:de.isValid=0},Y=5,se=()=>{const Te=[],ye=[HT,zT,YT,$T,jT],de=["Awful","Not Very Good","Okay","Really Good","Fantastic"];for(let ne=0;ne<Y;ne++)Te.push(o.jsxs("label",{children:[o.jsx("input",{onChange:U=>{h!=null&&h.rowIsRepeatable?R(f,d,c,U.target.value):le(U)},checked:parseInt(S)===ne,name:"liker-Emoji-scale"+(c==null?void 0:c.uuid),type:"radio",value:ne}),o.jsxs("span",{className:"grid m-0",children:[o.jsx("div",{className:"col-12 flex justify-content-center",children:o.jsx("img",{src:ye[ne]})}),o.jsx("div",{children:de[ne]})]})]},`field-${c==null?void 0:c.uuid}-likertEmojiScale-${ne} ${parseInt(S)===ne?"scale-selected":""}`));return Te},K=o.jsxs("div",{onMouseOver:P,onMouseOut:H,children:[A&&k&&o.jsx(Wr,{handleFieldSettingsSidebar:z,...t}),o.jsxs("div",{className:`field ${A&&" py-3 px-4 builder-element-wrapper "}${(c==null?void 0:c.isFluid)===!0&&" p-fluid"}`,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-bold mb-3 text-gray-900 text-xl",children:[o.jsx(ca,{...t}),((re=c==null?void 0:c.attributes)==null?void 0:re.required)&&o.jsx("span",{className:"must-required mr-1",children:"*"})," ",A?o.jsx(aa,{...t}):o.jsx(o.Fragment,{children:(Z=c==null?void 0:c.label)==null?void 0:Z[s==null?void 0:s.type]}),o.jsx("span",{className:"ml-3",children:(c==null?void 0:c.showToolTip)&&o.jsx(zi,{message:(X=c==null?void 0:c.toolTip)==null?void 0:X[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:se()})}),o.jsx("div",{children:((W=c==null?void 0:c.attributes)==null?void 0:W.required)&&o.jsx("small",{className:"error",children:C===1&&!S?(me=c==null?void 0:c.validationMesssage)==null?void 0:me.english:""})}),o.jsx("div",{children:(c==null?void 0:c.showHelperText)&&o.jsx("small",{children:(be=c==null?void 0:c.helperText)==null?void 0:be[s==null?void 0:s.type]})})]})]})}),m&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(ki,{...t})]})]})]});return o.jsxs(o.Fragment,{children:[o.jsx(Qi,{visibilty:w,closeSettingFieldSidebar:$,...t}),o.jsx(xi,{...t,fieldWrap:K})]})},Eye=t=>{var N,z,$,le,R,Y,se,K,ie,re,Z;const{userTaskSubmitFormData:e}=Ar(),{userSelectedLanguage:n,fieldSettingUpdate:r}=sn(),{isAdmin:i,isBuilderMode:a}=zt(),{field:s,fieldIndex:l,sectionIndex:c,pageIndex:u,row:d,rowIndex:f,columnIndex:h}=t,[g,v]=O.useState(!1),[m,A]=O.useState(""),[w,x]=O.useState(0),[S,T]=O.useState(!1),[C,E]=O.useState(!1),_=()=>{E(!0)},M=()=>{E(!1)},k=()=>{var X,W,me;if(d!=null&&d.rowIsRepeatable){if(d!=null&&d.repeatableFields){const be=[...d.repeatableFields],Te=_t.findIndex(be,function(ye){return ye.uuid===(s==null?void 0:s.uuid)});Te>=0&&be[Te].fieldData?A(be[Te].fieldData):A("")}}else{const be=e;if(be!=null&&be.length){for(const Te of be)if(Te.fieldId===t.field.uuid&&((X=Te==null?void 0:Te.postData[0])==null?void 0:X.postValue)!==""&&((W=Te==null?void 0:Te.postData[0])!=null&&W.postValue)){A((me=Te==null?void 0:Te.postData[0])==null?void 0:me.postValue);break}}}T(!0)};O.useEffect(()=>{S||k();const X=Gt.addListener("clearRepeatableFields",Te=>{Te===(d==null?void 0:d.uuid)&&(A(""),x(0),s.isValid=0,r(u,c,f,h,l,s))}),W=Gt.addListener("onSubmitUserForm",()=>{var Te,ye;(Te=s==null?void 0:s.attributes)!=null&&Te.required?m&&(m==null?void 0:m.length)<((ye=s==null?void 0:s.attributes)==null?void 0:ye.minLength)?s.isValid=1:s.isValid=0:s.isValid=1}),me=Gt.addListener("OnInvalidFieldCatch",Te=>{s.uuid===(Te==null?void 0:Te.fieldId)?x(1):x(0)}),be=Gt.addListener("OnGetFieldValue",Te=>{var de;const ye=(de=Te==null?void 0:Te.repeatableColumn)==null?void 0:de.filter(ne=>(ne==null?void 0:ne.fieldUuid)===(s==null?void 0:s.uuid));ye!=null&&ye.length});return()=>{W.remove(),me.remove(),be.remove(),X.remove()}});const F=X=>{v(X)},P=()=>{v(!1)},H=o.jsxs("div",{onMouseOver:_,onMouseOut:M,children:[a&&C&&o.jsx(Wr,{handleFieldSettingsSidebar:F,...t}),o.jsxs("div",{className:`field ${a&&" py-3 px-4 builder-element-wrapper "}${(s==null?void 0:s.isFluid)===!0&&" p-fluid"}`,children:[o.jsx("div",{className:"grid",children:o.jsxs("div",{className:i?"col-6 ":"col-12 p-fluid",children:[(s==null?void 0:s.showHeaderText)&&o.jsx("h6",{children:(N=s==null?void 0:s.headerText)==null?void 0:N[n==null?void 0:n.type]}),(s==null?void 0:s.showLabel)&&o.jsxs("label",{htmlFor:l,className:"flex font-bold mb-3 text-gray-900 text-xl",children:[o.jsx(ca,{...t}),((z=s==null?void 0:s.attributes)==null?void 0:z.required)&&o.jsx("span",{className:"must-required mr-1",children:"*"})," ",a?o.jsx(aa,{...t}):o.jsx(o.Fragment,{children:($=s==null?void 0:s.label)==null?void 0:$[n==null?void 0:n.type]}),(s==null?void 0:s.showToolTip)&&o.jsx("span",{className:"ml-3",children:o.jsx(zi,{message:(le=s==null?void 0:s.toolTip)==null?void 0:le[n==null?void 0:n.type],position:"right"})})]}),o.jsxs("div",{className:"mt-3",children:[o.jsx("span",{className:"p-input-icon-"+(s==null?void 0:s.iconAlignment),children:(s==null?void 0:s.showIcon)&&o.jsx("i",{className:"pi pi-"+((Y=(R=s==null?void 0:s.icon)==null?void 0:R.properties)==null?void 0:Y.name)})}),o.jsx("div",{children:((se=s==null?void 0:s.attributes)==null?void 0:se.required)&&o.jsxs(o.Fragment,{children:[o.jsx("small",{className:"error",children:w===1&&!m?(K=s==null?void 0:s.validationMesssage)==null?void 0:K.english:""}),o.jsx("small",{className:"error",children:w===1&&(m==null?void 0:m.length)<((ie=s==null?void 0:s.attributes)==null?void 0:ie.minLength)?`Mini length ${(re=s==null?void 0:s.attributes)==null?void 0:re.minLength}`:""})]})}),o.jsx("div",{children:(s==null?void 0:s.showHelperText)&&o.jsx("small",{children:(Z=s==null?void 0:s.helperText)==null?void 0:Z[n==null?void 0:n.type]})})]})]})}),i&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(ki,{...t})]})]})]});return o.jsxs(o.Fragment,{children:[o.jsx(Qi,{visibilty:g,closeSettingFieldSidebar:P,...t}),o.jsx(xi,{...t,fieldWrap:H})]})},Iye=t=>{var H,N,z,$,le,R,Y;const{field:e,fieldIndex:n,columnIndex:r,sectionIndex:i,rowIndex:a,pageIndex:s,ref:l}=t,{isBuilderMode:c}=zt(),{userSelectedLanguage:u,fieldSettingUpdate:d}=sn(),{userTaskSubmitFormData:f}=Ar(),[h,g]=O.useState(!1),[v,m]=O.useState(""),[A,w]=O.useState(0),[x,S]=O.useState(!1),[T,C]=O.useState(!1),E=()=>{C(!0)},_=()=>{C(!1)},M=()=>{var K;const se=f;if(se.length){for(const ie of se)if(ie.fieldId===t.field.uuid){m((K=ie==null?void 0:ie.postData[0])==null?void 0:K.postValue),S(!0);break}}};O.useEffect(()=>{x||M();const se=Gt.addListener("onSubmitUserForm",()=>{var ie;(ie=e==null?void 0:e.attributes)!=null&&ie.required&&(v?e.isValid=1:e.isValid=0,d(s,i,a,r,n,e))}),K=Gt.addListener("OnInvalidFieldCatch",ie=>{e.uuid===(ie==null?void 0:ie.fieldId)?w(1):w(0)});return()=>{se.remove(),K.remove()}});const k=se=>{g(se)},F=()=>{g(!1)},P=o.jsxs("div",{onMouseOver:E,onMouseOut:_,children:[c&&T&&o.jsx(Wr,{handleFieldSettingsSidebar:k,...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-11":"col-12",children:[(e==null?void 0:e.showHeaderText)&&o.jsx("h6",{children:(H=e==null?void 0:e.headerText)==null?void 0:H[u==null?void 0:u.type]}),(e==null?void 0:e.showLabel)&&o.jsxs("label",{htmlFor:`${n}`,className:"flex font-bold mb-3 text-gray-900 text-xl",children:[((N=e==null?void 0:e.attributes)==null?void 0:N.required)&&o.jsx("span",{className:"must-required",children:"*"})," ",i+1,".",r+1,".",n+1," ",(z=e==null?void 0:e.label)==null?void 0:z[u==null?void 0:u.type],o.jsx("span",{className:"ml-3",children:(e==null?void 0:e.showToolTip)&&o.jsx(zi,{message:($=e==null?void 0:e.toolTip)==null?void 0:$[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:((le=e==null?void 0:e.attributes)==null?void 0:le.required)&&o.jsx("small",{className:"error",children:A===1&&!v?(R=e==null?void 0:e.validationMesssage)==null?void 0:R.language:""})}),o.jsx("div",{children:(e==null?void 0:e.showHelperText)&&o.jsx("small",{children:(Y=e==null?void 0:e.helperText)==null?void 0:Y[u==null?void 0:u.type]})})]})]})})})})]});return o.jsxs(o.Fragment,{children:[h&&o.jsx(Qi,{visibilty:h,closeSettingFieldSidebar:F,...t}),o.jsx(xi,{...t,fieldWrap:P})]})},Lc=t=>{const{data:e,path:n,field:r}=t,{renderType:i,isAdmin:a,isBuilderMode:s}=zt(),{task_status:l,TASK_PUBLISHED:c}=Ar(),u=O.useRef(null),[d,f]=O.useState(!1),[{isDragging:h},g]=ra({item:{...e,type:z1,uuid:e==null?void 0:e.uuid,path:n},type:z1,collect:T=>({isDragging:T.isDragging()})}),v=h&&s?.25:1;g(u);const m=l===c||a,A=T=>{switch(r==null?void 0:r.componentType){case"text":return o.jsx(Ise,{typeName:"Text",field:r,...T});case"number":return o.jsx(Fse,{typeName:"Number",field:r,...T});case"email":return o.jsx(Mue,{typeName:"Email",field:r,...T});case"textarea":return o.jsx(Lue,{typeName:"Text Area",field:r,...T});case"editor":return o.jsx(tde,{typeName:"Editor",field:r,...T});case"question":return o.jsx(Pde,{typeName:"Exam",field:r,...T});case"select":return o.jsx(zue,{typeName:"Select",field:r,...T});case"multi-select":return o.jsx(bde,{typeName:"Multi Select",field:r,...T});case"checkbox":return o.jsx(Ade,{typeName:"Checkbox",field:r,...T});case"radio":return o.jsx(Cde,{typeName:"Radio",field:r,...T});case"radio-hierarchal":return o.jsx(Cye,{typeName:"Radio Progressive",field:r,...T});case"href":return o.jsx(Ose,{typeName:"Hyperlink",field:r,...T});case"heading":return o.jsx(Ide,{typeName:"Heading",field:r,...T});case"paragraph":return o.jsx(G3e,{typeName:"Paragraph",field:r,...T});case"image":return o.jsx(XO,{typeName:"Image",field:r,...T});case"video":return o.jsx(Wge,{typeName:"Video",field:r,...T});case"hr":return o.jsx(Qge,{typeName:"Hr",field:r,...T});case"date-picker":return o.jsx(Jge,{typeName:"Date Picker",field:r,...T});case"signature":return o.jsx(Zge,{typeName:"Signature",field:r,...T});case"file-upload":return o.jsx(N6e,{typeName:"File Upload",field:r,...T});case"facebook-login":return o.jsx(Eye,{typeName:"Facebook Login",field:r,...T});case"anchor":return o.jsx(Iye,{ref:u,typeName:"Anchor Tag",field:r,...T});case"image-gallery":return o.jsx(K3e,{typeName:"Image gallery",field:r,...T});case"quiz":return o.jsx(H6e,{typeName:"Quiz",field:r,...T});case"document":return o.jsx(O6e,{typeName:"Document",field:r,...T});case"list":return o.jsx(X6e,{typeName:"List",field:r,...T});case"country":return o.jsx(Ese,{typeName:"Country",field:r,...T});case"phone":return o.jsx(nye,{typeName:"Phone",field:r,...T});case"web-url":return o.jsx(rye,{typeName:"Website Url",field:r,...T});case"rating":return o.jsx(oye,{typeName:"Rating",field:r,...T});case"slider":return o.jsx(lye,{typeName:"Rating",field:r,...T});case"hidden-field":return o.jsx(cye,{typeName:"Hidden Field",field:r,...T});case"likert-scale":return o.jsx(uye,{typeName:"Likert Scale Field",field:r,...T});case"type-signature":return o.jsx(dye,{typeName:"Likert Scale Field",field:r,...T});case"address":return o.jsx(hye,{typeName:"Address",field:r,...T});case"grid-component":return o.jsx(EU,{typeName:"Grid",field:r,...T});case"matrix-scale":return o.jsx(EU,{typeName:"Grid",field:r,...T});case"matrix-dropdown":return o.jsx(vye,{typeName:"Grid",field:r,...T});case"thumbs":return o.jsx(xye,{typeName:"Thumbs Up and Down",field:r,...T});case"likert-emoji-scale":return o.jsx(Tye,{typeName:"Thumbs Up and Down",field:r,...T});case"table":return o.jsx(wye,{typeName:"Grid",field:r,...T});case"dynamic-listing":return o.jsx(Sye,{typeName:"Grid",field:r,...T});default:return o.jsx(o.Fragment,{children:"Empty"})}},w=()=>{f(!0)},x=()=>{f(!1)},S=()=>{let T="";return s===!0?(T=T+" component draggable field-form-builder-not-preview",i===H1?T=T+" pdf-component":T=T+" px-2 pdf-component"):(T=T+" component ",i===H1?T=T+" ":T=T+" px-2 "),T};return o.jsx(o.Fragment,{children:o.jsxs("div",{style:{opacity:v},className:S(),onMouseOver:w,onMouseOut:x,children:[s&&d&&o.jsx("i",{ref:s===!0?u:null,className:"elementDrag-icon pi pi-arrows-alt cursor-move",style:{fontSize:"1em"}}),A({...t,isDisabled:m})]})})},_ye={position:"relative"},Dye=t=>{var M,k,F,P,H;const{data:e,path:n,pageIndex:r,sectionIndex:i,rowIndex:a,columnIndex:s,section:l,row:c,page:u}=t,d=O.useRef(null),{removeColumn:f,addColumn:h,cloneColumn:g,formBuilderFormLayout:v,handleDrop:m}=sn(),{isAdvanceView:A,isBuilderMode:w,emitSocketData:x}=zt(),[{isDragging:S},T]=ra({type:As,item:{type:As,uuid:e==null?void 0:e.uuid,children:e.children,path:n},collect:N=>({isDragging:N.isDragging()})}),C=S&&w?.25:1;T(d);const E=(N,z,$,le,R,Y,se)=>o.jsx(Lc,{page:u,type:"field",row:c,column:e,section:l,field:N,data:N,path:z,pageIndex:$,sectionIndex:le,rowIndex:R,columnIndex:Y,fieldIndex:se},`component-${n}-${N==null?void 0:N.uuid}`),_=(N,z,$,le,R)=>{var ie,re,Z,X;const Y=N.collapsed?"pi pi-chevron-down":"pi pi-chevron-up",se=`${N.className} justify-content-space-between`,K=`${N.titleClassName} pl-1 text-primary`;return o.jsxs(o.Fragment,{children:[o.jsx(cn,{target:".clone-tool"}),o.jsx(cn,{target:".add-column-tool"}),o.jsxs("div",{className:se,children:[o.jsxs("span",{ref:w===!0?d:null,children:[o.jsx("button",{className:N.togglerClassName,children:o.jsx("span",{className:"pi pi-sliders-h dragabble"})}),o.jsxs("button",{className:N.togglerClassName,onClick:N.onTogglerClick,children:[o.jsx("span",{className:Y}),o.jsx(Qt,{})]}),o.jsx("span",{className:K,children:"Column"})]}),w===!0&&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:N.togglerClassName,onClick:()=>{h(z,$,le),x()},children:[o.jsx("span",{className:"pi pi-plus"}),o.jsx(Qt,{})]})}),((X=(Z=(re=(ie=v[z])==null?void 0:ie.children[$])==null?void 0:re.children[le])==null?void 0:Z.children)==null?void 0:X.length)>1&&o.jsxs("button",{className:N.togglerClassName,onClick:()=>{f(z,$,le,R),x()},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:N.togglerClassName,onClick:()=>{g(e,z,$,le,R),x()},children:[o.jsx("span",{className:"pi pi-clone"}),o.jsx(Qt,{})]})})]})]})]})};return o.jsx("div",{style:A&&w?{..._ye,opacity:C}:{},className:w?"draggable form-builder-column container-column":"form-builder-column container-column",children:w===!0?o.jsx(o.Fragment,{children:A===!0?o.jsxs(ci,{className:"builder-row-column",header:"Column",toggleable:!0,headerTemplate:N=>_(N,r,i,a,s),children:[((M=e==null?void 0:e.children)==null?void 0:M.length)>0?(k=e==null?void 0:e.children)==null?void 0:k.map((N,z)=>{const $=`${n}-${z}`;return o.jsxs(O.Fragment,{children:[o.jsx(Fr,{isAdvanceView:A,fieldDropArea:!0,data:{path:$,childrenCount:e.children.length,droppedField:e},onDrop:m}),E(N,$,r,i,a,s,z)]},$)}):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(Fr,{isAdvanceView:A,fieldDropArea:!0,data:{path:`${n}-${e.children.length}`,childrenCount:e.children.length,droppedField:e},onDrop:m,isLast:!0})]}):o.jsx(o.Fragment,{children:o.jsxs("div",{children:[((F=e==null?void 0:e.children)==null?void 0:F.length)>0?(P=e==null?void 0:e.children)==null?void 0:P.map((N,z)=>{const $=`${n}-${z}`;return o.jsxs(O.Fragment,{children:[o.jsx(Fr,{isAdvanceView:A,fieldDropArea:!0,data:{path:$,childrenCount:e.children.length,droppedField:e},onDrop:m}),E(N,$,r,i,a,s,z)]},$)}):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(Fr,{isAdvanceView:A,dropHereLastField:!0,fieldDropArea:!0,data:{path:`${n}-${e.children.length}`,childrenCount:e.children.length,droppedField:e},onDrop:m,isLast:!0})]})})}):o.jsx(o.Fragment,{children:(H=e==null?void 0:e.children)==null?void 0:H.map((N,z)=>{const $=`${n}-${z}`;return o.jsx(O.Fragment,{children:E(N,$,r,i,a,s,z)},$)})})})},Nye=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(wn,{value:(i=r==null?void 0:r.heading)==null?void 0:i[e==null?void 0:e.type],placeholder:"Enter row heading",onChange:l=>n("heading",e,l.target.value)})]}),o.jsxs("div",{className:"field",children:[o.jsx("label",{children:"Row description"}),o.jsx(so,{value:(a=r==null?void 0:r.subHeadingText)==null?void 0:a[e==null?void 0:e.type],placeholder:"Enter row description",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(wn,{value:(s=r.addToListButtonLabel)==null?void 0:s[e==null?void 0:e.type],onChange:l=>n("addToListButtonLabel",e,l.target.value)})]})]})},Oye=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(Yr,{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(eo,{value:e==null?void 0:e.minimumEntries,onChange:i=>n("minimumEntries",i.value)})]}),o.jsxs("div",{className:"field-checkbox",children:[o.jsx(Yr,{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."," "]})]})]})},bg=t=>{var x;const{visibilty:e,setVisibility:n,row:r,pageIndex:i,sectionIndex:a,rowIndex:s}=t,{formBuilderSchemaLanguages:l,rowSettingUpdate:c,userSelectedLanguage:u,formBuilderPublishedStatus:d}=sn(),[f,h]=O.useState(r),{updateGlobalToast:g,emitSocketData:v}=zt(),m=(S,T,C)=>{h(E=>{const _=E[S];return Object.assign({},E,{[S]:Object.assign({},_,{[T==null?void 0:T.type]:C})})})},A=(S,T)=>{h(C=>({...C,[S]:T}))},w=()=>{const S={...f,children:r==null?void 0:r.children};c(i,a,s,S),v(),g({showToast:!0,toastMessage:"Updated",toastDetail:"Row updated",toastType:"success"})};return o.jsx(o.Fragment,{children:o.jsxs(To,{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 - ",(x=r==null?void 0:r.heading)==null?void 0:x[u==null?void 0:u.type]]})," "]}),!d&&o.jsx("div",{className:"flex align-items-center justify-content-center",children:o.jsx(Ft,{className:"mt-3",label:"Update",type:"button",onClick:()=>w(),"aria-label":"Update"})})]}),o.jsxs(ts,{children:[o.jsx(wr,{header:"Text",children:o.jsx(ao,{activeIndex:0,children:l!=null&&l.length?l.map((S,T)=>o.jsx(io,{tabIndex:T,header:S==null?void 0:S.language,children:o.jsx(Nye,{language:S,stateRow:f,onHandleChange:m,...t})},T)):""})}),o.jsx(wr,{header:"Advance",children:o.jsx(Oye,{stateRow:f,onHandleChangeAdvanceSettings:A})}),o.jsx(wr,{header:"Layout",children:o.jsxs("div",{className:"p-fluid",children:[o.jsxs("div",{className:"field-checkbox",children:[o.jsx(Yr,{inputId:"showRowTitle",checked:f==null?void 0:f.showRowTitle,onChange:S=>A("showRowTitle",S==null?void 0:S.checked)}),o.jsx("label",{htmlFor:"showRowTitle",children:"Show Row Title?"})]}),o.jsxs("div",{className:"field-checkbox",children:[o.jsx(Yr,{inputId:"showRowSubTitle",checked:f==null?void 0:f.showRowSubTitle,onChange:S=>A("showRowSubTitle",S==null?void 0:S.checked)}),o.jsx("label",{htmlFor:"showRowSubTitle",children:"Show Row Sub Title?"})]})]})})]})]})})},Fye={},kye=t=>{var ye,de,ne,U,ee,oe,ge,_e,Ne,ve,Ae,Be,Ee;const{data:e,path:n,pageIndex:r,sectionIndex:i,rowIndex:a,section:s,page:l}=t,c=O.useRef(null),{removeRow:u,addRow:d,cloneRow:f,formBuilderFormLayout:h,userSelectedLanguage:g,handleDrop:v}=sn(),{userTaskSubmitFormData:m,taskRegisterData:A,updateTaskRegisterData:w,updateTaskProgressValue:x,addUserDataFormSectionRepeatableData:S,removeUserDataFormSectionRepeatableData:T,task_status:C,TASK_PUBLISHED:E}=Ar(),{isRenderView:_,isAdvanceView:M,isBuilderMode:k,renderType:F,isAdmin:P,emitSocketData:H}=zt(),[N,z]=O.useState(!1),[$,le]=O.useState(!1),[{isDragging:R},Y]=ra({type:Ao,item:{type:Ao,uuid:e.uuid,children:e.children,path:n,data:e},collect:B=>({isDragging:B.isDragging()})}),se=R?.25:1;Y(c);const K=(B,fe,he,ce,pe,Se)=>o.jsx(Dye,{page:l,row:e,section:s,data:B,path:fe,pageIndex:he,sectionIndex:ce,rowIndex:pe,columnIndex:Se,isAdmin:P,emitSocketData:H},`column-${n}-${B.uuid}`),ie=(B,fe,he,ce)=>{var Me,ze,rt,it;const pe=B.collapsed?"pi pi-chevron-down":"pi pi-chevron-up",Se=`${B.className} justify-content-space-between`,De=`${B.titleClassName} pl-1 text-primary`;return o.jsxs(o.Fragment,{children:[o.jsx(cn,{target:".clone-tool"}),o.jsx(cn,{target:".setting-tool"}),o.jsx(cn,{target:".add-row-tool"}),o.jsxs("div",{className:Se,children:[o.jsxs("span",{ref:k===!0?c:null,children:[o.jsx("button",{className:B.togglerClassName,children:o.jsx("span",{className:"pi pi-sliders-h dragabble"})}),o.jsxs("button",{className:B.togglerClassName,onClick:B.onTogglerClick,children:[o.jsx("span",{className:pe}),o.jsx(Qt,{})]}),o.jsxs("span",{className:De,children:["Row:"," ",((Me=e==null?void 0:e.heading)==null?void 0:Me[g==null?void 0:g.type])!==""?(ze=e==null?void 0:e.heading)==null?void 0:ze[g==null?void 0:g.type]:"Untitled"]})]}),k===!0&&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:B.togglerClassName,onClick:()=>{d(fe,he),H()},children:[o.jsx("span",{className:"pi pi-plus"}),o.jsx(Qt,{})]})}),((it=(rt=h[fe])==null?void 0:rt.children[he])==null?void 0:it.children.length)>1&&o.jsxs("button",{className:B.togglerClassName,onClick:()=>{u(fe,he,ce),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:B.togglerClassName,onClick:()=>{f(e,fe,he,ce),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:()=>z(!0),className:B.togglerClassName,children:[o.jsx("span",{className:"pi pi-cog"}),o.jsx(Qt,{})]})})]})]})]})},re=_t.findIndex(m,function(B){return(B==null?void 0:B.rowId)===(e==null?void 0:e.uuid)}),Z=()=>{var he,ce,pe;const B=_t.cloneDeep(A);((ce=(he=m[re])==null?void 0:he.repeatableFieldsData)==null?void 0:ce.length)>=(e==null?void 0:e.minimumEntries)?B[e==null?void 0:e.uuid]=(pe=m[re])==null?void 0:pe.repeatableFields:delete B[e==null?void 0:e.uuid];const fe=Object.keys(B).length;w(B),x(fe)},X=(ye=e==null?void 0:e.repeatableFields)==null?void 0:ye.map(B=>{var fe;return{fieldUuid:B==null?void 0:B.uuid,field:B==null?void 0:B.uuid,header:(fe=B==null?void 0:B.label)==null?void 0:fe.english}}),W=(B,fe)=>o.jsx(o.Fragment,{children:o.jsx("div",{className:"post__content_repetable",dangerouslySetInnerHTML:{__html:B[fe==null?void 0:fe.field]}})}),me=X==null?void 0:X.map(B=>o.jsx(xr,{field:B.field,header:B.header,body:fe=>W(fe,B)},B.field)),be=()=>{var ce;const B=[...m],fe=[];let he=!0;e:for(const[,pe]of e.children.entries()){for(const[,Se]of pe.children.entries())if(Se!=null&&Se.isPostField&&Se.isValid!==1){const De={fieldId:Se.uuid,rowIndex:a};fe.push(De),Gt.emit("OnInvalidFieldCatch",De),he=!1;break e}he=!0}he&&(fe==null?void 0:fe.length)===0&&(alert("addToSectionRepeatableList"+(e==null?void 0:e.uuid)),S(e==null?void 0:e.uuid,(ce=B[re])==null?void 0:ce.repeatableFields),Gt.emit("clearRepeatableFields",e==null?void 0:e.uuid),Z())},Te=B=>o.jsx(o.Fragment,{children:!P&&o.jsx(Ft,{text:!0,size:"small",type:"button",className:"p-button-danger ",onClick:()=>{T(e==null?void 0:e.uuid,B==null?void 0:B.rowIndex),setTimeout(()=>{Z()},1e3)},icon:"pi pi-trash"})});return o.jsxs("div",{style:{...Fye,opacity:se,marginTop:`${(de=e==null?void 0:e.margin)==null?void 0:de.top}px`,marginBottom:`${(ne=e==null?void 0:e.margin)==null?void 0:ne.bottom}px`,marginLeft:`${(U=e==null?void 0:e.margin)==null?void 0:U.left}px`,marginRight:`${(ee=e==null?void 0:e.margin)==null?void 0:ee.right}px`},className:_?"row container-row":"draggable row container-row",children:[N&&o.jsx(bg,{renderType:F,visibilty:N,setVisibility:z,row:e,pageIndex:r,sectionIndex:i,rowIndex:a,emitSocketData:H},"row_settings_"+r+i+a),k===!0?o.jsx(o.Fragment,{children:M===!0?o.jsx(ci,{header:"Row",toggleable:!0,headerTemplate:B=>ie(B,r,i,a),children:o.jsxs("div",{className:"form-builder-columns",style:{overflowX:"auto"},children:[(oe=e==null?void 0:e.children)==null?void 0:oe.map((B,fe)=>{const he=`${n}-${fe}`;return o.jsxs(O.Fragment,{children:[o.jsx(Fr,{isAdvanceView:M,data:{path:he,childrenCount:e.children.length},onDrop:v,className:"horizontalDrag"}),K(B,he,r,i,a,fe)]},he)}),o.jsx(Fr,{isAdvanceView:M,data:{path:`${n}-${e.children.length}`,childrenCount:e.children.length},onDrop:v,className:"horizontalDrag",isLast:!0})]})}):o.jsx(o.Fragment,{children:o.jsx("div",{className:M?"form-builder-columns":"",style:M?{overflowX:"auto"}:{},children:(ge=e==null?void 0:e.children)==null?void 0:ge.map((B,fe)=>{const he=`${n}-${fe}`;return o.jsx(O.Fragment,{children:K(B,he,r,i,a,fe)},he)})})})}):o.jsx(o.Fragment,{children:e!=null&&e.rowIsRepeatable?o.jsx(o.Fragment,{children:o.jsx(Os,{header:((ve=e==null?void 0:e.heading)==null?void 0:ve[g==null?void 0:g.type])||"Untitled",footer:()=>{var B;return o.jsx(o.Fragment,{children:(e==null?void 0:e.rowIsRepeatable)&&C!==E&&o.jsx(Ft,{size:"small",type:"button",outlined:!0,className:" mb-3",onClick:()=>{be()},label:(B=e.addToListButtonLabel)==null?void 0:B[g==null?void 0:g.type]})})},visible:$,style:{width:"50vw"},onHide:()=>{$&&le(!1)},children:o.jsxs(o.Fragment,{children:[o.jsx("h5",{children:(Ae=e==null?void 0:e.heading)==null?void 0:Ae[g==null?void 0:g.type]}),o.jsx("span",{children:(Be=e==null?void 0:e.subHeadingText)==null?void 0:Be[g==null?void 0:g.type]}),o.jsx("div",{className:"form-builder-columns p-3",style:{maxHeight:"500px",overflowY:"scroll"},children:e.children.map((B,fe)=>{const he=`${n}-${fe}`;return o.jsx(O.Fragment,{children:K(B,he,r,i,a,fe)},he)})})]})})}):o.jsxs(o.Fragment,{children:[o.jsx("h5",{children:(_e=e==null?void 0:e.heading)==null?void 0:_e[g==null?void 0:g.type]}),o.jsx("span",{children:(Ne=e==null?void 0:e.subHeadingText)==null?void 0:Ne[g==null?void 0:g.type]}),o.jsx("div",{className:"form-builder-columns",children:e.children.map((B,fe)=>{const he=`${n}-${fe}`;return o.jsx(O.Fragment,{children:K(B,he,r,i,a,fe)},he)})})]})}),!P&&(e==null?void 0:e.rowIsRepeatable)&&C!==E&&o.jsx("div",{className:"text-right mb-2",children:o.jsx(Ft,{outlined:!0,size:"small",type:"button",className:"",onClick:()=>le(!0),label:"Add Record"})}),(e==null?void 0:e.rowIsRepeatable)&&o.jsxs("div",{children:[o.jsxs(ro,{scrollable:!0,reorderableRows:!P,value:(m==null?void 0:m.length)>0?(Ee=m[re])==null?void 0:Ee.repeatableFieldsData:[],children:[me,C!==E&&o.jsx(xr,{frozen:!0,style:{width:"10%"},headerStyle:{textAlign:"center"},bodyStyle:{textAlign:"left",overflow:"visible"},body:(B,fe)=>Te(fe)})]}),P&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(ki,{field:e})]})]})]})},Pye=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(wn,{value:(i=r.heading)==null?void 0:i[e==null?void 0:e.type],placeholder:"Enter section heading",onChange:s=>n("heading",e,s.target.value)})]}),o.jsxs("div",{className:"field",children:[o.jsx("label",{children:"Section description"}),o.jsx(so,{value:(a=r.subHeadingText)==null?void 0:a[e==null?void 0:e.type],placeholder:"Enter section description",onChange:s=>n("subHeadingText",e,s.target.value)})]})]})},Ih=t=>{const{visibilty:e,setVisibility:n,section:r,pageIndex:i,sectionIndex:a}=t,[s,l]=O.useState(r),{formBuilderSchemaLanguages:c,sectionSettingUpdate:u,userSelectedLanguage:d,formBuilderPublishedStatus:f}=sn(),{emitSocketData:h}=zt(),{updateGlobalToast:g}=zt(),v=(w,x,S)=>{l(T=>Object.assign({},T,{[w]:Object.assign({},T[w],{[x==null?void 0:x.type]:S})}))},m=(w,x)=>{l(S=>({...S,[w]:x}))},A=()=>{const w={...s,children:r==null?void 0:r.children};u(i,a,w),h(),g({showToast:!0,toastMessage:"Updated",toastDetail:"Section updated",toastType:"success"})};return o.jsx(o.Fragment,{children:o.jsxs(To,{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(Ft,{className:"mt-3",label:"Update",type:"button",onClick:()=>A(),"aria-label":"Update"})})]}),o.jsxs(ts,{children:[o.jsx(wr,{header:"Text",children:o.jsx(ao,{activeIndex:0,children:c!=null&&c.length?c.map((w,x)=>o.jsx(io,{tabIndex:x,header:w==null?void 0:w.language,children:o.jsx(Pye,{language:w,stateSection:s,onHandleChange:v,...t})},x)):""})}),o.jsx(wr,{header:"Layout",children:o.jsxs("div",{className:"p-fluid",children:[o.jsxs("div",{className:"field-checkbox",children:[o.jsx(Yr,{inputId:"showSectionTitle",checked:s==null?void 0:s.showSectionHeader,onChange:w=>m("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(Yr,{inputId:"showSectionTitle",checked:s==null?void 0:s.showSectionTitle,onChange:w=>m("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(Yr,{inputId:"showSectionSubTitle",checked:s==null?void 0:s.showSectionSubTitle,onChange:w=>m("showSectionSubTitle",w==null?void 0:w.checked)}),o.jsx("label",{htmlFor:"showSectionSubTitle",children:"Show section sub title?"})]})]})})]})]})})},_h=t=>{const{saveBuilderElementModalData:e,saveElementModal:n,setSaveElementModal:r}=t,{saveComponent:i}=zt(),a=E3({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(Ft,{text:!0,className:"p-button-success",label:"Save",icon:"pi pi-file",onClick:()=>{a.handleSubmit()},autoFocus:!0})});return o.jsxs(Os,{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(wn,{id:"builder_element_title",name:"builder_element_title",value:a.values.builder_element_title,onChange:a.handleChange,className:`${u3({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(so,{id:"builder_element_description",name:"builder_element_description",value:a.values.builder_element_description,onChange:a.handleChange,className:`${u3({invalid:s("builder_element_title")})} w-full`})]})]})},Mye=t=>{var le,R,Y,se,K,ie,re,Z;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}=sn(),{isAdvanceView:g,renderType:v,isBuilderMode:m,emitSocketData:A}=zt(),[w,x]=O.useState(!1),[S,T]=O.useState(!1),[C,E]=O.useState(null),[_,M]=O.useState(!1),k=O.useRef(null),F=(X,W)=>{E(me=>({...me,[X]:W}))},[{isDragging:P},H]=ra({type:na,item:{type:na,uuid:e.uuid,children:e.children,path:n},collect:X=>({isDragging:X.isDragging()})}),N=P&&m||e!=null&&e.isHidden?.25:1;H(k);const z=(X,W,me,be,Te)=>o.jsx(kye,{page:s,section:a,data:X,path:W,pageIndex:me,sectionIndex:be,rowIndex:Te},`row-${n}-${X.uuid}`),$=(X,W,me)=>{var de,ne;const be=X.collapsed?"pi pi-chevron-down":"pi pi-chevron-up",Te=`${X.className} justify-content-space-between panel-tab-section`,ye=`${X.titleClassName} pl-1 text-primary`;return o.jsxs("div",{className:Te,children:[o.jsxs("span",{ref:m===!0?k:null,children:[o.jsx("button",{className:X.togglerClassName,children:o.jsx("span",{className:"pi pi-sliders-h dragabble"})}),o.jsxs("button",{className:X.togglerClassName,onClick:X.onTogglerClick,children:[o.jsx("span",{className:be}),o.jsx(Qt,{})]}),o.jsxs("span",{className:ye,children:[me+1," ",(de=e==null?void 0:e.heading)==null?void 0:de[f==null?void 0:f.type]]})]}),m===!0&&o.jsxs(o.Fragment,{children:[o.jsx(cn,{target:".clone-tool"}),o.jsx(cn,{target:".del-tool"}),o.jsx(cn,{target:".setting-tool"}),o.jsx(cn,{target:".add-section-tool"}),o.jsx(cn,{target:".save-tool"}),o.jsx(cn,{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:X.togglerClassName,onClick:()=>{c(W),A()},children:[o.jsx("span",{className:"pi pi-plus"}),o.jsx(Qt,{})]})}),((ne=d[W])==null?void 0:ne.children.length)>1&&o.jsx("span",{className:"del-tool","data-pr-tooltip":"Delete",children:o.jsxs("button",{className:X.togglerClassName,onClick:()=>{l(W,me),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:X.togglerClassName,onClick:()=>{F("reusable_template_schema",e),T(!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:X.togglerClassName,onClick:()=>{u(e,W,me),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:X.togglerClassName,onClick:()=>x(!0),children:[o.jsx("span",{className:"pi pi-cog"}),o.jsx(Qt,{})]})})]})]})]})};return o.jsxs("div",{style:{opacity:N,marginBottom:20},className:m&&g?"draggable row":"",children:[m===!0&&o.jsx(_h,{saveBuilderElementModalData:C,setSaveBuilderElementModalData:E,saveElementModal:S,setSaveElementModal:T}),w===!0&&m===!0&&o.jsx(Ih,{renderType:v,visibilty:w,setVisibility:x,section:e,pageIndex:r,sectionIndex:i,emitSocketData:A},"section_settings_"+r+i),m===!0?o.jsx(o.Fragment,{children:g===!0?o.jsxs(ci,{header:(le=e==null?void 0:e.heading)==null?void 0:le.english,toggleable:!0,headerTemplate:X=>$(X,r,i),onMouseEnter:()=>M(!0),onMouseLeave:()=>M(!1),children:[((R=e==null?void 0:e.subHeadingText)==null?void 0:R[f==null?void 0:f.type])&&o.jsx("p",{children:(Y=e==null?void 0:e.subHeadingText)==null?void 0:Y[f==null?void 0:f.type]}),o.jsxs("div",{children:[e.children.map((X,W)=>{const me=`${n}-${W}`;return o.jsxs(O.Fragment,{children:[o.jsx(Fr,{isAdvanceView:g,data:{path:me,childrenCount:e.children.length},onDrop:h}),z(X,me,r,i,W)]},me)}),o.jsx(Fr,{isAdvanceView:g,data:{path:`${n}-${e.children.length}`,childrenCount:e.children.length,droppedField:e},onDrop:h,isLast:!0})]}),_&&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,{})})}),((se=d[r])==null?void 0:se.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:[((K=e==null?void 0:e.subHeadingText)==null?void 0:K[f==null?void 0:f.type])&&o.jsx("p",{children:(ie=e==null?void 0:e.subHeadingText)==null?void 0:ie[f==null?void 0:f.type]}),o.jsx("div",{children:e.children.map((X,W)=>{const me=`${n}-${W}`;return o.jsx(O.Fragment,{children:z(X,me,r,i,W)},me)})})]})}):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:(re=e==null?void 0:e.heading)==null?void 0:re[f==null?void 0:f.type]}),o.jsx("p",{children:(Z=e==null?void 0:e.subHeadingText)==null?void 0:Z[f==null?void 0:f.type]}),o.jsx("hr",{})]}),e.children.map((X,W)=>{const me=`${n}-${W}`;return o.jsx(O.Fragment,{children:o.jsx("div",{className:"",children:z(X,me,r,i,W)},me)},me)})]})})]})},Lye={position:"relative"},Bye=t=>{var S,T,C;const{data:e,data:n,path:r,pageIndex:i,sectionIndex:a,rowIndex:s,columnIndex:l,section:c,row:u,page:d}=t,f=O.useRef(null),{handleDrop:h}=sn(),{isAdvanceView:g,isBuilderMode:v}=zt(),[{isDragging:m},A]=ra({type:As,item:{type:As,uuid:e==null?void 0:e.uuid,children:e.children,path:r},collect:E=>({isDragging:E.isDragging()})}),w=m&&v?.25:1;A(f);const x=(E,_,M,k,F,P,H)=>o.jsx(Lc,{page:d,section:c,row:u,column:n,field:E,pageIndex:M,sectionIndex:k,rowIndex:F,columnIndex:P,fieldIndex:H,type:"field",data:E,path:_},`component-${r}-${E==null?void 0:E.uuid}`);return o.jsx("div",{style:g?{...Lye,opacity:w}:{},className:v&&"draggable column container-column",children:v===!0?o.jsx(o.Fragment,{children:o.jsxs("div",{children:[((S=e==null?void 0:e.children)==null?void 0:S.length)>0?(T=e==null?void 0:e.children)==null?void 0:T.map((E,_)=>{const M=`${r}-${_}`;return o.jsxs(O.Fragment,{children:[o.jsx(Fr,{isAdvanceView:g,fieldDropArea:!0,data:{path:M,childrenCount:e.children.length,droppedField:e},onDrop:h}),x(E,M,i,a,s,l,_)]},M)}):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"}})})]})}),v&&o.jsx(Fr,{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:(C=e==null?void 0:e.children)==null?void 0:C.map((E,_)=>{const M=`${r}-${_}`;return o.jsx(O.Fragment,{children:x(E,M,i,a,s,l,_)},M)})})})},Vye=t=>{var l;const{isAdvanceView:e}=zt(),{data:n,page:r,path:i,pageIndex:a}=t,s=(c,u,d,f,h,g,v,m)=>o.jsx(Bye,{page:r,row:m,section:v,data:c,path:`${d}-${f}-${h}-${g}`,pageIndex:d,sectionIndex:f,rowIndex:h,columnIndex:g},`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 g;return o.jsx("div",{className:e?"columns":"",style:e?{overflowX:"auto"}:{},children:(g=f==null?void 0:f.children)==null?void 0:g.map((v,m)=>{const A=`${i}-${u}-${h}-${m}`;return o.jsx(O.Fragment,{children:s(v,A,a,u,h,m,c,f)},A)})},`basic_view_section_${i}-${u}-${h}`)})})})},qye=t=>{const{data:e,path:n,pageIndex:r}=t,{isAdvanceView:i,isBuilderMode:a}=zt(),{formBuilderFormSchema:s,handleDrop:l}=sn(),c=O.useRef(null),[u,d]=ra({type:na,item:{type:na,uuid:e.uuid,children:e.children,path:n},collect:h=>({isDragging:h.isDragging()})});d(c);const f=(h,g,v,m)=>o.jsx(Mye,{data:h,page:e,section:h,path:g,pageIndex:v,sectionIndex:m},`section_${v}_${m}`);return o.jsx("div",{style:{overflowX:"auto"},className:`${a&&"draggable p-3 pb-4"}`,"data-image-src":e==null?void 0:e.bgImage,"data-bg-color":`#${e==null?void 0:e.bgColor}`,children:a===!0?o.jsx(o.Fragment,{children:i?o.jsxs(o.Fragment,{children:[e.children.map((h,g)=>{const v=`${n}-${g}`;return o.jsxs(O.Fragment,{children:[o.jsx(Fr,{isAdvanceView:i,data:{path:v,childrenCount:e.children.length},onDrop:l}),f(h,v,r,g)]},`section-${g}-${h.uuid}`)}),o.jsx(Fr,{isAdvanceView:i,data:{path:`${n}-${e.children.length}`,childrenCount:e.children.length,droppedField:e},onDrop:l,isLast:!0})]}):o.jsx(Vye,{page:e,path:n,data:e,pageIndex:r},`basic_view-${r}-${e.uuid}`)}):o.jsx(o.Fragment,{children:o.jsx("div",{className:"p-1",children:e.children.map((h,g)=>{const v=`${n}-${g}`;return o.jsx(O.Fragment,{children:s!=null&&s.showConditionalFields?o.jsx("div",{children:f(h,v,r,g)}):((h==null?void 0:h.isHidden)===!1||a)&&f(h,v,r,g)},`section-${g}-${h.uuid}`)})})})})},Uye=()=>{const{isAdvanceView:t,isBuilderMode:e,isPreview:n}=zt(),[r,i]=O.useState(!1),[a,s]=O.useState(!1),[l,c]=O.useState(0),{formBuilderFormLayout:u}=sn(),{emitSocketData:d}=zt(),f=["Mobile","Desktop"],[h,g]=O.useState(f[1]),v=(m,A,w)=>o.jsx(qye,{data:m,path:A,pageIndex:w},`page-${m.uuid}`);return o.jsxs("div",{children:[n===!0&&o.jsx("div",{className:"flex justify-content-center align-items-center",children:o.jsx(tf,{value:h,onChange:m=>g(m.value),options:f})}),(u==null?void 0:u.length)===S9&&e===!1?o.jsx(o.Fragment,{children:o.jsx("div",{className:"mt-3 flex card justify-content-center",children:(u==null?void 0:u.length)&&u.map((m,A)=>{const w=`${A}`;return o.jsx("div",{className:"flex flex-column justify-content-start",style:{width:h==="Mobile"?375:800},children:o.jsx("div",{className:"w-full",children:v(m,w,A)})},`preview-${m.uuid}-${A}`)})})}):o.jsx(o.Fragment,{children:t===!0&&e===!0?o.jsx(ts,{scrollable:!0,activeIndex:l,onTabChange:m=>c(m.index),children:(u==null?void 0:u.length)&&u.map((m,A)=>{const w=`${A}`;return o.jsxs(wr,{disabled:!((m==null?void 0:m.isHidden)===!1||e),header:"Page",headerTemplate:x=>o.jsx(F8,{options:x,pageIndex:A,setTabSidebarSetting:i,setPageActiveIndex:c,page:m,pages:u}),children:[e===!0&&o.jsx(mf,{reusableBuilderElementModalVisibility:a,setReusableBuilderElementModalVisibility:s,pageIndex:A}),e===!0&&o.jsx(j0,{setVisibility:i,visibilty:r,pageIndex:A,page:m,emitSocketData:d}),v(m,w,A)]},`advanced_${m.uuid}-${A}`)})}):o.jsx(o.Fragment,{children:(u==null?void 0:u.length)>0&&(u==null?void 0:u.map((m,A)=>{const w=`${A}`;return o.jsxs(O.Fragment,{children:[e===!0&&o.jsx(mf,{reusableBuilderElementModalVisibility:a,setReusableBuilderElementModalVisibility:s,pageIndex:A}),e===!0&&o.jsx(j0,{setVisibility:i,visibilty:r,pageIndex:A,page:m,emitSocketData:d}),v(m,w,A)]},`basic_${m.uuid}-${A}`)}))})})]})},$ye={position:"relative"},jye=t=>{var k,F,P,H,N;const{isAdvanceView:e,isBuilderMode:n,emitSocketData:r,isRenderView:i}=zt(),{data:a,path:s,pageIndex:l,sectionIndex:c,rowIndex:u,columnIndex:d,section:f,row:h,page:g}=t,v=O.useRef(null),{removeColumn:m,addColumn:A,cloneColumn:w,formBuilderFormLayout:x,handleDrop:S}=sn(),[{isDragging:T},C]=ra({type:As,item:{type:As,uuid:a==null?void 0:a.uuid,children:a.children,path:s},collect:z=>({isDragging:z.isDragging()})}),E=T&&!i?.25:1;C(v);const _=(z,$,le,R,Y,se,K)=>o.jsx(Lc,{page:g,column:a,type:"field",row:h,section:f,field:z,data:z,path:$,pageIndex:le,sectionIndex:R,rowIndex:Y,columnIndex:se,fieldIndex:K},`component-${s}-${z==null?void 0:z.uuid}`),M=(z,$,le,R,Y)=>{var re,Z,X,W;const se=z.collapsed?"pi pi-chevron-down":"pi pi-chevron-up",K=`${z.className} justify-content-space-between`,ie=`${z.titleClassName} pl-1 text-primary`;return o.jsxs(o.Fragment,{children:[o.jsx(cn,{target:".clone-tool"}),o.jsx(cn,{target:".add-column-tool"}),o.jsxs("div",{className:K,children:[o.jsxs("span",{ref:n===!0?v:null,children:[o.jsx("button",{className:z.togglerClassName,children:o.jsx("span",{className:"pi pi-sliders-h dragabble"})}),o.jsxs("button",{className:z.togglerClassName,onClick:z.onTogglerClick,children:[o.jsx("span",{className:se}),o.jsx(Qt,{})]}),o.jsx("span",{className:ie,children:"Column"})]}),n===!0&&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:z.togglerClassName,onClick:()=>{A($,le,R),r()},children:[o.jsx("span",{className:"pi pi-plus"}),o.jsx(Qt,{})]})}),((W=(X=(Z=(re=x[$])==null?void 0:re.children[le])==null?void 0:Z.children[R])==null?void 0:X.children)==null?void 0:W.length)>1&&o.jsxs("button",{className:z.togglerClassName,onClick:()=>{m($,le,R,Y),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:z.togglerClassName,onClick:()=>{w(a,$,le,R,Y),r()},children:[o.jsx("span",{className:"pi pi-clone"}),o.jsx(Qt,{})]})})]})]})]})};return o.jsx("div",{style:e?{...$ye,opacity:E}:{},className:i?"form-builder-column container-column":"draggable form-builder-column container-column",children:n===!0?o.jsx(o.Fragment,{children:e===!0?o.jsxs(ci,{className:"builder-row-column",header:"Column",toggleable:!0,headerTemplate:z=>M(z,l,c,u,d),children:[((k=a==null?void 0:a.children)==null?void 0:k.length)>0?(F=a==null?void 0:a.children)==null?void 0:F.map((z,$)=>{const le=`${s}-${$}`;return o.jsxs(O.Fragment,{children:[o.jsx(Fr,{isAdvanceView:e,fieldDropArea:!0,data:{path:le,childrenCount:a.children.length,droppedField:a},onDrop:S}),_(z,le,l,c,u,d,$)]},le)}):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(Fr,{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:[((P=a==null?void 0:a.children)==null?void 0:P.length)>0?(H=a==null?void 0:a.children)==null?void 0:H.map((z,$)=>{const le=`${s}-${$}`;return o.jsxs(O.Fragment,{children:[o.jsx(Fr,{isAdvanceView:e,fieldDropArea:!0,data:{path:le,childrenCount:a.children.length,droppedField:a},onDrop:S}),_(z,le,l,c,u,d,$)]},le)}):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(Fr,{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:(N=a==null?void 0:a.children)==null?void 0:N.map((z,$)=>{const le=`${s}-${$}`;return o.jsx(O.Fragment,{children:_(z,le,l,c,u,d,$)},le)})})})},zye={},Hye=t=>{var me,be,Te,ye,de,ne,U,ee,oe,ge,_e,Ne,ve,Ae,Be,Ee;const{data:e,path:n,pageIndex:r,sectionIndex:i,rowIndex:a,section:s,page:l}=t,{isRenderView:c,isAdvanceView:u,isAdmin:d,isBuilderMode:f,emitSocketData:h,renderType:g}=zt(),v=O.useRef(null),{removeRow:m,addRow:A,cloneRow:w,formBuilderFormLayout:x,userSelectedLanguage:S,handleDrop:T}=sn(),{userTaskSubmitFormData:C,taskRegisterData:E,updateTaskRegisterData:_,updateTaskProgressValue:M,addUserDataFormSectionRepeatableData:k,removeUserDataFormSectionRepeatableData:F,task_status:P,TASK_PUBLISHED:H}=Ar(),[N,z]=O.useState(!1),[{isDragging:$},le]=ra({type:Ao,item:{type:Ao,uuid:e.uuid,children:e.children,path:n,data:e},collect:B=>({isDragging:B.isDragging()})}),R=$?.25:1;le(v);const Y=(B,fe,he,ce,pe,Se)=>o.jsx(jye,{page:l,row:e,section:s,data:B,path:fe,pageIndex:he,sectionIndex:ce,rowIndex:pe,columnIndex:Se,isAdmin:d,emitSocketData:h},`column-${n}-${B.uuid}`),se=(B,fe,he,ce)=>{var Me,ze,rt,it;const pe=B.collapsed?"pi pi-chevron-down":"pi pi-chevron-up",Se=`${B.className} justify-content-space-between`,De=`${B.titleClassName} pl-1 text-primary`;return o.jsxs(o.Fragment,{children:[o.jsx(cn,{target:".clone-tool"}),o.jsx(cn,{target:".setting-tool"}),o.jsx(cn,{target:".add-row-tool"}),o.jsxs("div",{className:Se,children:[o.jsxs("span",{ref:f===!0?v:null,children:[o.jsx("button",{className:B.togglerClassName,children:o.jsx("span",{className:"pi pi-sliders-h dragabble"})}),o.jsxs("button",{className:B.togglerClassName,onClick:B.onTogglerClick,children:[o.jsx("span",{className:pe}),o.jsx(Qt,{})]}),o.jsxs("span",{className:De,children:["Row:"," ",((Me=e==null?void 0:e.heading)==null?void 0:Me[S==null?void 0:S.type])!==""?(ze=e==null?void 0:e.heading)==null?void 0:ze[S==null?void 0:S.type]:"Untitled"]})]}),f===!0&&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:B.togglerClassName,onClick:()=>{A(fe,he),h()},children:[o.jsx("span",{className:"pi pi-plus"}),o.jsx(Qt,{})]})}),((it=(rt=x[fe])==null?void 0:rt.children[he])==null?void 0:it.children.length)>1&&o.jsxs("button",{className:B.togglerClassName,onClick:()=>{m(fe,he,ce),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:B.togglerClassName,onClick:()=>{w(e,fe,he,ce),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:()=>z(!0),className:B.togglerClassName,children:[o.jsx("span",{className:"pi pi-cog"}),o.jsx(Qt,{})]})})]})]})]})},K=_t.findIndex(C,function(B){return(B==null?void 0:B.rowId)===(e==null?void 0:e.uuid)}),ie=()=>{var he,ce,pe;const B=_t.cloneDeep(E);((ce=(he=C[K])==null?void 0:he.repeatableFieldsData)==null?void 0:ce.length)>=(e==null?void 0:e.minimumEntries)?B[e==null?void 0:e.uuid]=(pe=C[K])==null?void 0:pe.repeatableFields:delete B[e==null?void 0:e.uuid];const fe=Object.keys(B).length;_(B),M(fe)},re=(me=e==null?void 0:e.repeatableFields)==null?void 0:me.map(B=>{var fe;return{fieldUuid:B==null?void 0:B.uuid,field:B==null?void 0:B.uuid,header:(fe=B==null?void 0:B.label)==null?void 0:fe.english}}),Z=re==null?void 0:re.map(B=>o.jsx(xr,{field:B.field,header:B.header,body:fe=>o.jsx(o.Fragment,{children:o.jsx("div",{className:"post__content_repetable",dangerouslySetInnerHTML:{__html:fe[B==null?void 0:B.field]}})})},B.field)),X=()=>{var ce;const B=[...C],fe=[];let he=!0;e:for(const[,pe]of e.children.entries()){for(const[,Se]of pe.children.entries())if(Se!=null&&Se.isPostField&&Se.isValid!==1){const De={fieldId:Se.uuid,rowIndex:a};fe.push(De),Gt.emit("OnInvalidFieldCatch",De),he=!1;break e}he=!0}he&&(fe==null?void 0:fe.length)===0&&(k(e==null?void 0:e.uuid,(ce=B[K])==null?void 0:ce.repeatableFields),Gt.emit("clearRepeatableFields",e==null?void 0:e.uuid),ie())},W=B=>o.jsx(o.Fragment,{children:o.jsx(Ft,{text:!0,size:"small",type:"button",className:"p-button-danger ",onClick:()=>{F(e==null?void 0:e.uuid,B==null?void 0:B.rowIndex),setTimeout(()=>{ie()},1e3)},icon:"pi pi-trash"})});return o.jsxs("div",{style:{...zye,opacity:R,marginTop:`${(be=e==null?void 0:e.margin)==null?void 0:be.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:`${(de=e==null?void 0:e.margin)==null?void 0:de.right}px`},className:c?"row container-row":"draggable row container-row",children:[N&&o.jsx(bg,{renderType:g,visibilty:N,setVisibility:z,row:e,pageIndex:r,sectionIndex:i,rowIndex:a,emitSocketData:h},"row_settings_"+r+i+a),g===im&&o.jsxs("div",{className:"form-builder-columns",children:[e.children.map((B,fe)=>{const he=`${n}-${fe}`;return o.jsxs(O.Fragment,{children:[g===zd&&o.jsx(Fr,{isAdvanceView:u,data:{path:he,childrenCount:e.children.length},onDrop:T,className:"horizontalDrag"}),Y(B,he,r,i,a,fe)]},he)}),o.jsx(Fr,{isAdvanceView:u,data:{path:`${n}-${e.children.length}`,childrenCount:e.children.length},onDrop:T,className:"horizontalDrag",isLast:!0})]}),(g===k0||g===F0||g===rm||g===w9||g===Gh)&&(f===!0?o.jsx(o.Fragment,{children:u===!0?o.jsx(ci,{header:"Row",toggleable:!0,headerTemplate:B=>se(B,r,i,a),children:o.jsxs("div",{className:"form-builder-columns",style:{overflowX:"auto"},children:[(ne=e==null?void 0:e.children)==null?void 0:ne.map((B,fe)=>{const he=`${n}-${fe}`;return o.jsxs(O.Fragment,{children:[o.jsx(Fr,{isAdvanceView:u,data:{path:he,childrenCount:e.children.length},onDrop:T,className:"horizontalDrag"}),Y(B,he,r,i,a,fe)]},he)}),o.jsx(Fr,{isAdvanceView:u,data:{path:`${n}-${e.children.length}`,childrenCount:e.children.length},onDrop:T,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((B,fe)=>{const he=`${n}-${fe}`;return o.jsx(O.Fragment,{children:Y(B,he,r,i,a,fe)},he)})})})}):o.jsx(o.Fragment,{children:!(e!=null&&e.rowIsRepeatable&&P===H)&&o.jsxs(o.Fragment,{children:[o.jsx("h5",{children:(ee=e==null?void 0:e.heading)==null?void 0:ee[S==null?void 0:S.type]}),o.jsx("span",{children:(oe=e==null?void 0:e.subHeadingText)==null?void 0:oe[S==null?void 0:S.type]}),o.jsx("div",{className:"form-builder-columns",children:e.children.map((B,fe)=>{const he=`${n}-${fe}`;return o.jsx(O.Fragment,{children:Y(B,he,r,i,a,fe)},he)})})]})})),g===H1&&(f===!0?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,{})]}),((_e=(ge=x[r])==null?void 0:ge.children[i])==null?void 0:_e.children.length)>1&&o.jsxs("button",{onClick:()=>{m(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:()=>z(!0),children:[o.jsx("span",{className:"pi pi-cog"}),o.jsx(Qt,{})]})]})}),o.jsx("div",{className:"form-builder-columns",children:(Ne=e==null?void 0:e.children)==null?void 0:Ne.map((B,fe)=>{const he=`${n}-${fe}`;return o.jsx(O.Fragment,{children:Y(B,he,r,i,a,fe)},he)})})]}):o.jsx(o.Fragment,{children:!(e!=null&&e.rowIsRepeatable&&P===H)&&o.jsxs(o.Fragment,{children:[o.jsx("h5",{children:(ve=e==null?void 0:e.heading)==null?void 0:ve[S==null?void 0:S.type]}),o.jsx("span",{children:(Ae=e==null?void 0:e.subHeadingText)==null?void 0:Ae[S==null?void 0:S.type]}),o.jsx("div",{className:"form-builder-columns",children:e.children.map((B,fe)=>{const he=`${n}-${fe}`;return o.jsx(O.Fragment,{children:Y(B,he,r,i,a,fe)},he)})})]})})),g===zd&&o.jsx("div",{className:"form-builder-columns",children:e.children.map((B,fe)=>{const he=`${n}-${fe}`;return o.jsx(O.Fragment,{children:Y(B,he,r,i,a,fe)},he)})}),(e==null?void 0:e.rowIsRepeatable)&&P!==H&&o.jsx(Ft,{text:!0,size:"small",type:"button",className:"p-button-success mb-3",onClick:()=>X(),label:(Be=e.addToListButtonLabel)==null?void 0:Be[S==null?void 0:S.type]}),(e==null?void 0:e.rowIsRepeatable)&&o.jsxs("div",{className:"card",children:[o.jsxs(ro,{value:(C==null?void 0:C.length)>0?(Ee=C[K])==null?void 0:Ee.repeatableFieldsData:[],children:[Z,P!==H&&o.jsx(xr,{style:{width:"10%"},headerStyle:{textAlign:"center"},bodyStyle:{textAlign:"left",overflow:"visible"},body:B=>W(B)})]}),d&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(ki,{field:e})]})]})]})},Yye=t=>{var le,R,Y,se,K,ie,re,Z;const{isAdvanceView:e,isBuilderMode:n,renderType:r,emitSocketData:i}=zt(),{handleDrop:a}=sn(),{data:s,path:l,pageIndex:c,sectionIndex:u,section:d,page:f}=t,{removeSection:h,addSection:g,cloneSection:v,formBuilderFormLayout:m,userSelectedLanguage:A}=sn(),[w,x]=O.useState(!1),[S,T]=O.useState(!1),[C,E]=O.useState({reusable_template_schema:""}),[_,M]=O.useState(!1),k=O.useRef(null),F=(X,W)=>{E(me=>({...me,[X]:W}))},[{isDragging:P},H]=ra({type:na,item:{type:na,uuid:s.uuid,children:s.children,path:l},collect:X=>({isDragging:X.isDragging()})}),N=P?.25:1;H(k);const z=(X,W,me,be,Te)=>o.jsx(Hye,{page:f,section:d,data:X,path:W,pageIndex:me,sectionIndex:be,rowIndex:Te},`row-${l}-${X.uuid}`),$=(X,W,me)=>{var de,ne;const be=X.collapsed?"pi pi-chevron-down":"pi pi-chevron-up",Te=`${X.className} justify-content-space-between panel-tab-section`,ye=`${X.titleClassName} pl-1 text-primary`;return o.jsxs("div",{className:Te,children:[o.jsxs("span",{ref:n===!0?k:null,children:[o.jsx("button",{className:X.togglerClassName,children:o.jsx("span",{className:"pi pi-sliders-h dragabble"})}),o.jsxs("button",{className:X.togglerClassName,onClick:X.onTogglerClick,children:[o.jsx("span",{className:be}),o.jsx(Qt,{})]}),o.jsxs("span",{className:ye,children:[me+1," ",(de=s==null?void 0:s.heading)==null?void 0:de[A==null?void 0:A.type]]})]}),n===!0&&o.jsxs(o.Fragment,{children:[o.jsx(cn,{target:".clone-tool"}),o.jsx(cn,{target:".del-tool"}),o.jsx(cn,{target:".setting-tool"}),o.jsx(cn,{target:".add-section-tool"}),o.jsx(cn,{target:".save-tool"}),o.jsx(cn,{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:X.togglerClassName,onClick:()=>{g(W),i()},children:[o.jsx("span",{className:"pi pi-plus"}),o.jsx(Qt,{})]})}),((ne=m[W])==null?void 0:ne.children.length)>1&&o.jsx("span",{className:"del-tool","data-pr-tooltip":"Delete",children:o.jsxs("button",{className:X.togglerClassName,onClick:()=>{h(W,me),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:X.togglerClassName,onClick:()=>{F("reusable_template_schema",s),T(!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:X.togglerClassName,onClick:()=>{v(s,W,me),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:X.togglerClassName,onClick:()=>x(!0),children:[o.jsx("span",{className:"pi pi-cog"}),o.jsx(Qt,{})]})})]})]})]})};return o.jsxs("div",{style:{opacity:N,marginBottom:20},className:e?"draggable row":"",children:[n===!0&&o.jsx(_h,{saveBuilderElementModalData:C,setSaveBuilderElementModalData:E,saveElementModal:S,setSaveElementModal:T}),w===!0&&n===!0&&o.jsx(Ih,{renderType:r,visibilty:w,setVisibility:x,section:s,pageIndex:c,sectionIndex:u,emitSocketData:i},"section_settings_"+c+u),n===!0?o.jsx(o.Fragment,{children:e===!0?o.jsxs(ci,{header:(le=s==null?void 0:s.heading)==null?void 0:le.english,toggleable:!0,headerTemplate:X=>$(X,c,u),onMouseEnter:()=>M(!0),onMouseLeave:()=>M(!1),children:[((R=s==null?void 0:s.subHeadingText)==null?void 0:R[A==null?void 0:A.type])&&o.jsx("p",{children:(Y=s==null?void 0:s.subHeadingText)==null?void 0:Y[A==null?void 0:A.type]}),o.jsxs("div",{children:[s.children.map((X,W)=>{const me=`${l}-${W}`;return o.jsxs(O.Fragment,{children:[o.jsx(Fr,{isAdvanceView:e,data:{path:me,childrenCount:s.children.length},onDrop:a}),z(X,me,c,u,W)]},me)}),o.jsx(Fr,{isAdvanceView:e,data:{path:`${l}-${s.children.length}`,childrenCount:s.children.length,droppedField:s},onDrop:a,isLast:!0})]}),_&&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:()=>{g(c),i()},children:o.jsx(Qt,{})})}),((se=m[c])==null?void 0:se.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:[((K=s==null?void 0:s.subHeadingText)==null?void 0:K[A==null?void 0:A.type])&&o.jsx("p",{children:(ie=s==null?void 0:s.subHeadingText)==null?void 0:ie[A==null?void 0:A.type]}),o.jsx("div",{children:s.children.map((X,W)=>{const me=`${l}-${W}`;return o.jsx(O.Fragment,{children:z(X,me,c,u,W)},me)})})]})}):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:(re=s==null?void 0:s.heading)==null?void 0:re[A==null?void 0:A.type]}),o.jsx("p",{children:(Z=s==null?void 0:s.subHeadingText)==null?void 0:Z[A==null?void 0:A.type]}),o.jsx("hr",{})]}),s.children.map((X,W)=>{const me=`${l}-${W}`;return o.jsx(O.Fragment,{children:o.jsx("div",{className:"",children:z(X,me,c,u,W)},me)},me)})]})})]})},Kye=t=>{var s;const{data:e,currentPath:n,pageIndex:r,page:i}=t,a=O.useRef(null);return o.jsx(o.Fragment,{children:o.jsxs(DA,{ref:a,modules:[CB,z3e],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((g,v)=>{var m;return(m=g==null?void 0:g.children)==null?void 0:m.map((A,w)=>{const x=`${n}-${c}-${f}-${v}-${w}`;return o.jsx(NA,{children:o.jsx("div",{className:"",children:o.jsx(Lc,{page:i,column:g,type:"field",row:d,section:l,field:A,data:A,path:x,pageIndex:r,sectionIndex:c,rowIndex:f,columnIndex:v,fieldIndex:w},`component-${x}-${A==null?void 0:A.uuid}`)})},`swiper_slide_${x}`)})})})}),o.jsxs("div",{className:"flex justify-content-center",children:[o.jsx(Ft,{className:"mr-2 p-button-info prev",size:"large",label:"Previous",icon:"pi pi-arrow-left",onClick:()=>{}}),o.jsx(Ft,{size:"large",className:"p-button-info next",icon:"pi pi-arrow-right",label:"Next"})]})]})})},Xye=t=>{const{isAdvanceView:e,isBuilderMode:n}=zt(),{handleDrop:r}=sn(),{data:i,path:a,pageIndex:s}=t,{formBuilderFormSchema:l}=sn(),c=O.useRef(null),[{},u]=ra({type:na,item:{type:na,uuid:i.uuid,children:i.children,path:a},collect:f=>({isDragging:f.isDragging()})});u(c);const d=(f,h,g,v)=>o.jsx(Yye,{data:f,section:f,path:h,page:i,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":i==null?void 0:i.bgImage,"data-bg-color":`#${i==null?void 0:i.bgColor}`,children:n===!0?o.jsxs(o.Fragment,{children:[i.children.map((f,h)=>{const g=`${a}-${h}`;return o.jsxs(O.Fragment,{children:[o.jsx(Fr,{isAdvanceView:e,data:{path:g,childrenCount:i.children.length},onDrop:r}),d(f,g,s,h)]},`section-${h}-${f.uuid}`)}),o.jsx(Fr,{isAdvanceView:e,data:{path:`${a}-${i.children.length}`,childrenCount:i.children.length,droppedField:i},onDrop:r,isLast:!0})]}):o.jsx(o.Fragment,{children:(l==null?void 0:l.surveyQuestionSlide)===!0?o.jsx(o.Fragment,{children:o.jsx(Kye,{page:i,data:i,currentPath:a,pageIndex:s})}):o.jsx("div",{className:"p-1",children:i.children.map((f,h)=>{const g=`${a}-${h}`;return o.jsx(O.Fragment,{children:((f==null?void 0:f.isHidden)===!1||!n)&&d(f,g,s,h)},`section-${h}-${f.uuid}`)})})})})},Rye=()=>{const[t,e]=O.useState(!1),{isAdvanceView:n,isBuilderMode:r,emitSocketData:i}=zt(),[a,s]=O.useState(!1),[l,c]=O.useState(0),{removePage:u,userSelectedLanguage:d,formBuilderFormLayout:f,formBuilderFormLayout:h,clonePage:g}=sn(),v=(m,A,w)=>o.jsx(Xye,{data:m,path:A,pageIndex:w},`page-${m.uuid}`);return o.jsx(o.Fragment,{children:o.jsx("div",{className:"page",children:(h==null?void 0:h.length)===S9&&r===!1?o.jsx(o.Fragment,{children:(h==null?void 0:h.length)&&h.map((m,A)=>{const w=`${A}`;return o.jsx("div",{children:v(m,w,A)},`${m.uuid}-${A}`)})}):o.jsx(o.Fragment,{children:n===!0||r===!1?o.jsx(ts,{scrollable:!0,activeIndex:l,onTabChange:m=>c(m.index),children:(h==null?void 0:h.length)&&h.map((m,A)=>{const w=`${A}`;return o.jsxs(wr,{disabled:!((m==null?void 0:m.isHidden)===!1||r),header:"Page",headerTemplate:x=>o.jsx(F8,{options:x,pageIndex:A,page:m,setTabSidebarSetting:s,clonePage:g,emitSocketData:i,formBuilderFormLayout:f,userSelectedLanguage:d,removePage:u,setPageActiveIndex:c,pages:h}),children:[r===!0&&o.jsx(mf,{reusableBuilderElementModalVisibility:t,setReusableBuilderElementModalVisibility:e,pageIndex:A}),o.jsx(j0,{setVisibility:s,visibilty:a,pageIndex:A,page:m,emitSocketData:i}),v(m,w,A)]},`${m.uuid}-${A}`)})}):o.jsx(o.Fragment,{children:(h==null?void 0:h.length)>0&&(h==null?void 0:h.map((m,A)=>{const w=`${A}`;return o.jsxs(O.Fragment,{children:[r===!0&&o.jsx(mf,{reusableBuilderElementModalVisibility:t,setReusableBuilderElementModalVisibility:e,pageIndex:A}),o.jsx(j0,{setVisibility:s,visibilty:a,pageIndex:A,page:m,emitSocketData:i}),v(m,w,A)]},`${m.uuid}-${A}`)}))})})})})},Gye={position:"relative"},Wye=t=>{var S,T,C;const{data:e,path:n,pageIndex:r,sectionIndex:i,rowIndex:a,columnIndex:s,section:l,row:c,page:u}=t,d=O.useRef(null),{handleDrop:f}=sn(),{isRenderView:h,isAdvanceView:g,isBuilderMode:v}=zt(),[{isDragging:m},A]=ra({type:As,item:{type:As,uuid:e==null?void 0:e.uuid,children:e.children,path:n},collect:E=>({isDragging:E.isDragging()})}),w=m&&v?.25:1;A(d);const x=(E,_,M,k,F,P,H)=>o.jsx(Lc,{page:u,type:"field",row:c,section:l,field:E,data:E,path:_,pageIndex:M,sectionIndex:k,rowIndex:F,columnIndex:P,fieldIndex:H},`component-${n}-${E==null?void 0:E.uuid}`);return o.jsx("div",{style:g?{...Gye,opacity:w}:{},className:h?"form-builder-column container-column":"draggable form-builder-column container-column",children:v===!0?o.jsxs("div",{className:"builder-row-column",children:[((S=e==null?void 0:e.children)==null?void 0:S.length)>0?(T=e==null?void 0:e.children)==null?void 0:T.map((E,_)=>{const M=`${n}-${_}`;return o.jsxs(O.Fragment,{children:[o.jsx(Fr,{isAdvanceView:g,data:{path:M,childrenCount:e.children.length,droppedField:e},onDrop:f}),x(E,M,r,i,a,s,_)]},M)}):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(Fr,{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((E,_)=>{const M=`${n}-${_}`;return o.jsx(O.Fragment,{children:x(E,M,r,i,a,s,_)},M)})})})},Qye={},Jye=t=>{var M,k,F,P,H,N,z,$,le;const{data:e,path:n,pageIndex:r,sectionIndex:i,rowIndex:a,section:s,page:l}=t,c=O.useRef(null),{removeRow:u,addRow:d,cloneRow:f,formBuilderFormLayout:h,userSelectedLanguage:g}=sn(),{isRenderView:v,isBuilderMode:m}=zt(),{task_status:A,TASK_PUBLISHED:w}=Ar(),[x,S]=O.useState(!1),[{isDragging:T},C]=ra({type:Ao,item:{type:Ao,uuid:e.uuid,children:e.children,path:n,data:e},collect:R=>({isDragging:R.isDragging()})}),E=T?.25:1;C(c);const _=(R,Y,se,K,ie,re)=>o.jsx(Wye,{page:l,row:e,section:s,data:R,path:Y,pageIndex:se,sectionIndex:K,rowIndex:ie,columnIndex:re},`column-${n}-${R.uuid}`);return o.jsxs("div",{style:{...Qye,opacity:E,marginTop:`${(M=e==null?void 0:e.margin)==null?void 0:M.top}px`,marginBottom:`${(k=e==null?void 0:e.margin)==null?void 0:k.bottom}px`,marginLeft:`${(F=e==null?void 0:e.margin)==null?void 0:F.left}px`,marginRight:`${(P=e==null?void 0:e.margin)==null?void 0:P.right}px`},className:v?"row container-row":"draggable row container-row",children:[x&&o.jsx(bg,{visibilty:x,setVisibility:S,row:e,pageIndex:r,sectionIndex:i,rowIndex:a},"row_settings_"+r+i+a),m===!0?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,{})]}),((N=(H=h[r])==null?void 0:H.children[i])==null?void 0:N.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:(z=e==null?void 0:e.children)==null?void 0:z.map((R,Y)=>{const se=`${n}-${Y}`;return o.jsx(O.Fragment,{children:_(R,se,r,i,a,Y)},se)})})]}):o.jsx(o.Fragment,{children:!(e!=null&&e.rowIsRepeatable&&A===w)&&o.jsxs(o.Fragment,{children:[o.jsx("h5",{children:($=e==null?void 0:e.heading)==null?void 0:$[g==null?void 0:g.type]}),o.jsx("span",{children:(le=e==null?void 0:e.subHeadingText)==null?void 0:le[g==null?void 0:g.type]}),o.jsx("div",{className:"form-builder-columns",children:e.children.map((R,Y)=>{const se=`${n}-${Y}`;return o.jsx(O.Fragment,{children:_(R,se,r,i,a,Y)},se)})})]})})]})},Zye=t=>{var C,E,_;const{data:e,path:n,pageIndex:r,sectionIndex:i,section:a,page:s}=t,{userSelectedLanguage:l}=sn(),{isAdvanceView:c,isBuilderMode:u}=zt(),[d,f]=O.useState(!1),[h,g]=O.useState(!1),[v,m]=O.useState(null),A=O.useRef(null),[{isDragging:w},x]=ra({type:na,item:{type:na,uuid:e.uuid,children:e.children,path:n},collect:M=>({isDragging:M.isDragging()})}),S=w?.25:1;x(A);const T=(M,k,F,P,H)=>o.jsx(Jye,{page:s,section:a,data:M,path:k,pageIndex:F,sectionIndex:P,rowIndex:H},`row-${n}-${M.uuid}`);return o.jsxs("div",{style:{opacity:S,marginBottom:20},className:c?"draggable row":"",children:[u===!0&&o.jsx(_h,{saveBuilderElementModalData:v,setSaveBuilderElementModalData:m,saveElementModal:h,setSaveElementModal:g}),d===!0&&o.jsx(Ih,{visibilty:d,setVisibility:f,section:e,pageIndex:r,sectionIndex:i},"section_settings_"+r+i),u===!0?o.jsx("div",{children:o.jsx("div",{children:e.children.map((M,k)=>{const F=`${n}-${k}`;return o.jsx(O.Fragment,{children:T(M,F,r,i,k)},F)})})}):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=e==null?void 0:e.subHeadingText)==null?void 0:E[l==null?void 0:l.type])&&o.jsx("p",{children:(_=e==null?void 0:e.subHeadingText)==null?void 0:_[l==null?void 0:l.type]}),o.jsx("hr",{})]}),e.children.map((M,k)=>{const F=`${n}-${k}`;return o.jsx(O.Fragment,{children:o.jsx("div",{className:"",children:T(M,F,r,i,k)},F)},F)})]})})]})},v5={},b5={height:"1280px",width:"100%"},eAe=t=>{var d,f,h,g;const{data:e,path:n,pageIndex:r}=t,{isBuilderMode:i}=zt(),a=O.useRef(null),[{isDragging:s},l]=ra({type:na,item:{type:na,uuid:e.uuid,children:e.children,path:n},collect:v=>({isDragging:v.isDragging()})}),c=s?0:1;l(a);const u=(v,m,A,w)=>o.jsx(Zye,{data:v,section:v,path:m,page:e,pageIndex:A,sectionIndex:w},`section_${A}_${w}`);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:"pdf flex justify-content-center",children:i===!0?o.jsx("div",{id:e==null?void 0:e.uuid,className:"page-block ",style:(e==null?void 0:e.bgType)==="image"?{...v5,...b5,opacity:c,backgroundImage:`url("${e==null?void 0:e.bgImage}")`}:{...v5,...b5,opacity:c,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,m)=>{const A=`${n}-${m}`;return o.jsx(O.Fragment,{children:u(v,A,r,m)},`section-${m}-${v.uuid}`)})})}):o.jsx(o.Fragment,{children:o.jsx("div",{className:"page-block",style:(e==null?void 0:e.bgType)==="image"?{...v5,...b5,opacity:c,backgroundImage:`url("${e==null?void 0:e.bgImage}")`,backgroundSize:"cover"}:{...v5,...b5,opacity:c,backgroundColor:`#${e==null?void 0:e.bgColor}`},children:o.jsx("div",{style:{marginTop:`${(d=e==null?void 0:e.margin)==null?void 0:d.top}px`,marginBottom:`${(f=e==null?void 0:e.margin)==null?void 0:f.bottom}px`,marginLeft:`${(h=e==null?void 0:e.margin)==null?void 0:h.left}px`,marginRight:`${(g=e==null?void 0:e.margin)==null?void 0:g.right}px`},children:e.children.map((v,m)=>{const A=`${n}-${m}`;return o.jsx(O.Fragment,{children:((v==null?void 0:v.isHidden)===!1||i)&&u(v,A,r,m)},`section-${m}-${v.uuid}`)})})})})})})},tAe=()=>{const{isBuilderMode:t}=zt(),[e,n]=O.useState(!1),[r,i]=O.useState(0),[a,s]=O.useState(!1),{formBuilderFormLayout:l}=sn(),c=(u,d,f)=>o.jsx(eAe,{data:u,path:d,pageIndex:f},`page-${u.uuid}`);return o.jsx("div",{className:"page",children:(l==null?void 0:l.length)===S9&&t===!1?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===!0?o.jsx(ts,{scrollable:!0,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(wr,{header:"Page",headerTemplate:h=>o.jsx(F8,{options:h,pageIndex:d,page:u,setTabSidebarSetting:n,setPageActiveIndex:i,pages:l}),children:[t===!0&&o.jsx(mf,{reusableBuilderElementModalVisibility:a,setReusableBuilderElementModalVisibility:s,pageIndex:d}),o.jsxs("div",{className:"p-3",children:[o.jsx(j0,{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===!0&&o.jsx(mf,{reusableBuilderElementModalVisibility:a,setReusableBuilderElementModalVisibility:s,pageIndex:d}),o.jsxs("div",{className:"p-3",children:[o.jsx(j0,{setVisibility:n,visibilty:e,pageIndex:d,page:u}),o.jsx("div",{children:c(u,f,d)})]})]},`${u.uuid}-${d}`)})})})})},nAe=t=>{var w,x,S,T;const e=O.useRef(null),{removeColumn:n,addColumn:r,cloneColumn:i,formBuilderFormLayout:a}=sn(),{emitSocketData:s,isBuilderMode:l}=zt(),{options:c,pageIndex:u,sectionIndex:d,rowIndex:f,columnIndex:h,data:g}=t,v=c.collapsed?"pi pi-chevron-down":"pi pi-chevron-up",m=`${c.className} justify-content-space-between`,A=`${c.titleClassName} pl-1 text-primary`;return o.jsxs(o.Fragment,{children:[o.jsx(cn,{target:".clone-tool"}),o.jsx(cn,{target:".add-column-tool"}),o.jsxs("div",{className:m,children:[o.jsxs("span",{ref:l===!0?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:v}),o.jsx(Qt,{})]}),o.jsx("span",{className:A,children:"Column"})]}),l===!0&&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),s()},children:[o.jsx("span",{className:"pi pi-plus"}),o.jsx(Qt,{})]})}),((T=(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:T.length)>1&&o.jsxs("button",{className:c.togglerClassName,onClick:()=>{n(u,d,f,h),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:c.togglerClassName,onClick:()=>{i(g,u,d,f,h),s()},children:[o.jsx("span",{className:"pi pi-clone"}),o.jsx(Qt,{})]})})]})]})]})},rAe={position:"relative"},iAe=t=>{var S,T,C,E,_;const{isAdvanceView:e,isRenderView:n,isBuilderMode:r}=zt(),{handleDrop:i}=sn(),{data:a,path:s,pageIndex:l,sectionIndex:c,rowIndex:u,columnIndex:d,section:f,row:h,page:g}=t,v=O.useRef(null),[{isDragging:m},A]=ra({type:As,item:{type:As,uuid:a==null?void 0:a.uuid,children:a.children,path:s},collect:M=>({isDragging:M.isDragging()})}),w=m&&!n?.25:1;A(v);const x=(M,k,F,P,H,N,z)=>o.jsx(Lc,{page:g,column:a,type:"field",row:h,section:f,field:M,data:M,path:k,pageIndex:F,sectionIndex:P,rowIndex:H,columnIndex:N,fieldIndex:z},`component-${s}-${M==null?void 0:M.uuid}`);return o.jsx("div",{style:e?{...rAe,opacity:w}:{},className:n?"form-builder-column container-column":"draggable form-builder-column container-column",children:r===!0?o.jsx(o.Fragment,{children:e===!0?o.jsxs(ci,{className:"builder-row-column",header:"Column",toggleable:!0,headerTemplate:M=>o.jsx(nAe,{options:M,pageIndex:l,sectionIndex:c,rowIndex:u,data:a,columnIndex:d}),children:[((S=a==null?void 0:a.children)==null?void 0:S.length)>0?(T=a==null?void 0:a.children)==null?void 0:T.map((M,k)=>{const F=`${s}-${k}`;return o.jsxs(O.Fragment,{children:[o.jsx(Fr,{isAdvanceView:e,fieldDropArea:!0,data:{path:F,childrenCount:a.children.length,droppedField:a},onDrop:i}),x(M,F,l,c,u,d,k)]},F)}):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(Fr,{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?(E=a==null?void 0:a.children)==null?void 0:E.map((M,k)=>{const F=`${s}-${k}`;return o.jsxs(O.Fragment,{children:[o.jsx(Fr,{isAdvanceView:e,fieldDropArea:!0,data:{path:F,childrenCount:a.children.length,droppedField:a},onDrop:i}),x(M,F,l,c,u,d,k)]},F)}):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(Fr,{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:(_=a==null?void 0:a.children)==null?void 0:_.map((M,k)=>{const F=`${s}-${k}`;return o.jsx(O.Fragment,{children:x(M,F,l,c,u,d,k)},F)})})})},aAe=t=>{var x,S,T,C;const{options:e,pageIndex:n,sectionIndex:r,rowIndex:i,data:a}=t,[,s]=O.useState(!1),l=O.useRef(null),{isBuilderMode:c,emitSocketData:u}=zt(),{removeRow:d,addRow:f,cloneRow:h,formBuilderFormLayout:g,userSelectedLanguage:v}=sn(),m=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(cn,{target:".clone-tool"}),o.jsx(cn,{target:".setting-tool"}),o.jsx(cn,{target:".add-row-tool"}),o.jsxs("div",{className:A,children:[o.jsxs("span",{ref:c===!0?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:m}),o.jsx(Qt,{})]}),o.jsxs("span",{className:w,children:["Row:"," ",((x=a==null?void 0:a.heading)==null?void 0:x[v==null?void 0:v.type])!==""?(S=a==null?void 0:a.heading)==null?void 0:S[v==null?void 0:v.type]:"Untitled"]})]}),c===!0&&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=(T=g[n])==null?void 0:T.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,{})]})})]})]})]})},sAe={},oAe=t=>{var ie,re,Z,X,W,me,be,Te,ye,de,ne;const{isAdvanceView:e,isRenderView:n,isBuilderMode:r,isAdmin:i,renderType:a,emitSocketData:s}=zt(),{handleDrop:l}=sn(),{data:c,path:u,pageIndex:d,sectionIndex:f,rowIndex:h,section:g,page:v}=t,m=O.useRef(null),{userSelectedLanguage:A}=sn(),{userTaskSubmitFormData:w,taskRegisterData:x,updateTaskRegisterData:S,updateTaskProgressValue:T,addUserDataFormSectionRepeatableData:C,removeUserDataFormSectionRepeatableData:E,task_status:_,TASK_PUBLISHED:M}=Ar(),[k,F]=O.useState(!1),[{isDragging:P},H]=ra({type:Ao,item:{type:Ao,uuid:c.uuid,children:c.children,path:u,data:c},collect:U=>({isDragging:U.isDragging()})}),N=P?.25:1;H(m);const z=(U,ee,oe,ge,_e,Ne)=>o.jsx(iAe,{page:v,row:c,section:g,data:U,path:ee,pageIndex:oe,sectionIndex:ge,rowIndex:_e,columnIndex:Ne,emitSocketData:s},`column-${u}-${U.uuid}`),$=_t.findIndex(w,function(U){return(U==null?void 0:U.rowId)===(c==null?void 0:c.uuid)}),le=()=>{var oe,ge,_e;const U=_t.cloneDeep(x);((ge=(oe=w[$])==null?void 0:oe.repeatableFieldsData)==null?void 0:ge.length)>=(c==null?void 0:c.minimumEntries)?U[c==null?void 0:c.uuid]=(_e=w[$])==null?void 0:_e.repeatableFields:delete U[c==null?void 0:c.uuid];const ee=Object.keys(U).length;S(U),T(ee)},R=(ie=c==null?void 0:c.repeatableFields)==null?void 0:ie.map(U=>{var ee;return{fieldUuid:U==null?void 0:U.uuid,field:U==null?void 0:U.uuid,header:(ee=U==null?void 0:U.label)==null?void 0:ee.english}}),Y=R==null?void 0:R.map(U=>o.jsx(xr,{field:U.field,header:U.header,body:ee=>o.jsx(o.Fragment,{children:o.jsx("div",{className:"post__content_repetable",dangerouslySetInnerHTML:{__html:ee[U==null?void 0:U.field]}})})},U.field)),se=()=>{var ge;const U=[...w],ee=[];let oe=!0;e:for(const[,_e]of c.children.entries()){for(const[,Ne]of _e.children.entries())if(Ne!=null&&Ne.isPostField&&Ne.isValid!==1){const ve={fieldId:Ne.uuid,rowIndex:h};console.log("inValidData",ve),ee.push(ve),Gt.emit("OnInvalidFieldCatch",ve),oe=!1;break e}oe=!0}oe&&(ee==null?void 0:ee.length)===0&&(C(c==null?void 0:c.uuid,(ge=U[$])==null?void 0:ge.repeatableFields),Gt.emit("clearRepeatableFields",c==null?void 0:c.uuid),le())},K=U=>o.jsx(o.Fragment,{children:o.jsx(Ft,{text:!0,size:"small",type:"button",className:"p-button-danger ",onClick:()=>{E(c==null?void 0:c.uuid,U==null?void 0:U.rowIndex),setTimeout(()=>{le()},1e3)},icon:"pi pi-trash"})});return o.jsxs("div",{style:{...sAe,opacity:N,marginTop:`${(re=c==null?void 0:c.margin)==null?void 0:re.top}px`,marginBottom:`${(Z=c==null?void 0:c.margin)==null?void 0:Z.bottom}px`,marginLeft:`${(X=c==null?void 0:c.margin)==null?void 0:X.left}px`,marginRight:`${(W=c==null?void 0:c.margin)==null?void 0:W.right}px`},className:n?"row container-row":"draggable row container-row",children:[k&&o.jsx(bg,{renderType:a,visibilty:k,setVisibility:F,row:c,pageIndex:d,sectionIndex:f,rowIndex:h,emitSocketData:s},"row_settings_"+d+f+h),r===!0?o.jsx(o.Fragment,{children:e===!0?o.jsx(ci,{header:"Row",toggleable:!0,headerTemplate:U=>o.jsx(aAe,{options:U,pageIndex:d,sectionIndex:f,rowIndex:h,data:c}),children:o.jsxs("div",{className:"form-builder-columns",style:{overflowX:"auto"},children:[(me=c==null?void 0:c.children)==null?void 0:me.map((U,ee)=>{const oe=`${u}-${ee}`;return o.jsxs(O.Fragment,{children:[o.jsx(Fr,{isAdvanceView:e,data:{path:oe,childrenCount:c.children.length},onDrop:l,className:"horizontalDrag"}),z(U,oe,d,f,h,ee)]},oe)}),o.jsx(Fr,{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:(be=c==null?void 0:c.children)==null?void 0:be.map((U,ee)=>{const oe=`${u}-${ee}`;return o.jsx(O.Fragment,{children:z(U,oe,d,f,h,ee)},oe)})})})}):o.jsx(o.Fragment,{children:!(c!=null&&c.rowIsRepeatable&&_===M)&&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,ee)=>{const oe=`${u}-${ee}`;return o.jsx(O.Fragment,{children:z(U,oe,d,f,h,ee)},oe)})})]})}),(c==null?void 0:c.rowIsRepeatable)&&_!==M&&o.jsx(Ft,{text:!0,size:"small",type:"button",className:"p-button-success mb-3",onClick:()=>se(),label:((de=c.addToListButtonLabel)==null?void 0:de[A==null?void 0:A.type])+"9999999999"}),(c==null?void 0:c.rowIsRepeatable)&&o.jsxs("div",{className:"card",children:[o.jsxs(ro,{value:(w==null?void 0:w.length)>0?(ne=w[$])==null?void 0:ne.repeatableFieldsData:[],children:[Y,_!==M&&o.jsx(xr,{style:{width:"10%"},headerStyle:{textAlign:"center"},bodyStyle:{textAlign:"left",overflow:"visible"},body:U=>K(U)})]}),i&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(ki,{field:c})]})]})]})},lAe=t=>{var le,R,Y,se,K,ie,re,Z;const{isAdvanceView:e,isBuilderMode:n,renderType:r,emitSocketData:i}=zt(),{handleDrop:a}=sn(),{data:s,path:l,pageIndex:c,sectionIndex:u,section:d,page:f}=t,{removeSection:h,addSection:g,cloneSection:v,formBuilderFormLayout:m,userSelectedLanguage:A}=sn(),[w,x]=O.useState(!1),[S,T]=O.useState(!1),[C,E]=O.useState({reusable_template_schema:""}),[_,M]=O.useState(!1),k=O.useRef(null),F=(X,W)=>{E(me=>({...me,[X]:W}))},[{isDragging:P},H]=ra({type:na,item:{type:na,uuid:s.uuid,children:s.children,path:l},collect:X=>({isDragging:X.isDragging()})}),N=P?.25:1;H(k);const z=(X,W,me,be,Te)=>o.jsx(oAe,{page:f,section:d,data:X,path:W,pageIndex:me,sectionIndex:be,rowIndex:Te,emitSocketData:i},`row-${l}-${X.uuid}`),$=(X,W,me)=>{var de,ne;const be=X.collapsed?"pi pi-chevron-down":"pi pi-chevron-up",Te=`${X.className} justify-content-space-between panel-tab-section`,ye=`${X.titleClassName} pl-1 text-primary`;return o.jsxs("div",{className:Te,children:[o.jsxs("span",{ref:n===!0?k:null,children:[o.jsx("button",{className:X.togglerClassName,children:o.jsx("span",{className:"pi pi-sliders-h dragabble"})}),o.jsxs("button",{className:X.togglerClassName,onClick:X.onTogglerClick,children:[o.jsx("span",{className:be}),o.jsx(Qt,{})]}),o.jsxs("span",{className:ye,children:[me+1," ",(de=s==null?void 0:s.heading)==null?void 0:de[A==null?void 0:A.type]]})]}),n===!0&&o.jsxs(o.Fragment,{children:[o.jsx(cn,{target:".clone-tool"}),o.jsx(cn,{target:".del-tool"}),o.jsx(cn,{target:".setting-tool"}),o.jsx(cn,{target:".add-section-tool"}),o.jsx(cn,{target:".save-tool"}),o.jsx(cn,{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:X.togglerClassName,onClick:()=>{g(W),i()},children:[o.jsx("span",{className:"pi pi-plus"}),o.jsx(Qt,{})]})}),((ne=m[W])==null?void 0:ne.children.length)>1&&o.jsx("span",{className:"del-tool","data-pr-tooltip":"Delete",children:o.jsxs("button",{className:X.togglerClassName,onClick:()=>{h(W,me),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:X.togglerClassName,onClick:()=>{F("reusable_template_schema",s),T(!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:X.togglerClassName,onClick:()=>{v(s,W,me),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:X.togglerClassName,onClick:()=>x(!0),children:[o.jsx("span",{className:"pi pi-cog"}),o.jsx(Qt,{})]})})]})]})]})};return o.jsxs("div",{style:{opacity:N,marginBottom:20},className:e?"draggable row":"",children:[n===!0&&o.jsx(_h,{saveBuilderElementModalData:C,setSaveBuilderElementModalData:E,saveElementModal:S,setSaveElementModal:T}),w===!0&&n===!0&&o.jsx(Ih,{renderType:r,visibilty:w,setVisibility:x,section:s,pageIndex:c,sectionIndex:u,emitSocketData:i},"section_settings_"+c+u),n===!0?o.jsx(o.Fragment,{children:e===!0?o.jsxs(ci,{header:(le=s==null?void 0:s.heading)==null?void 0:le.english,toggleable:!0,headerTemplate:X=>$(X,c,u),onMouseEnter:()=>M(!0),onMouseLeave:()=>M(!1),children:[((R=s==null?void 0:s.subHeadingText)==null?void 0:R[A==null?void 0:A.type])&&o.jsx("p",{children:(Y=s==null?void 0:s.subHeadingText)==null?void 0:Y[A==null?void 0:A.type]}),o.jsxs("div",{children:[s.children.map((X,W)=>{const me=`${l}-${W}`;return o.jsxs(O.Fragment,{children:[o.jsx(Fr,{isAdvanceView:e,data:{path:me,childrenCount:s.children.length},onDrop:a}),z(X,me,c,u,W)]},me)}),o.jsx(Fr,{isAdvanceView:e,data:{path:`${l}-${s.children.length}`,childrenCount:s.children.length,droppedField:s},onDrop:a,isLast:!0})]}),_&&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:()=>{g(c),i()},children:o.jsx(Qt,{})})}),((se=m[c])==null?void 0:se.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:[((K=s==null?void 0:s.subHeadingText)==null?void 0:K[A==null?void 0:A.type])&&o.jsx("p",{children:(ie=s==null?void 0:s.subHeadingText)==null?void 0:ie[A==null?void 0:A.type]}),o.jsx("div",{children:s.children.map((X,W)=>{const me=`${l}-${W}`;return o.jsx(O.Fragment,{children:z(X,me,c,u,W)},me)})})]})}):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:(re=s==null?void 0:s.heading)==null?void 0:re[A==null?void 0:A.type]}),o.jsx("p",{children:(Z=s==null?void 0:s.subHeadingText)==null?void 0:Z[A==null?void 0:A.type]}),o.jsx("hr",{})]}),s.children.map((X,W)=>{const me=`${l}-${W}`;return o.jsx(O.Fragment,{children:o.jsx("div",{className:"",children:z(X,me,c,u,W)},me)},me)})]})})]})},cAe={position:"relative"},uAe=t=>{var S,T,C;const{isAdvanceView:e,isRenderView:n,isBuilderMode:r}=zt(),{handleDrop:i}=sn(),{data:a,path:s,pageIndex:l,sectionIndex:c,rowIndex:u,columnIndex:d,section:f,row:h,page:g}=t,v=O.useRef(null),[{isDragging:m},A]=ra({type:As,item:{type:As,uuid:a==null?void 0:a.uuid,children:a.children,path:s},collect:E=>({isDragging:E.isDragging()})}),w=m&&!n?.25:1;A(v);const x=(E,_,M,k,F,P,H)=>o.jsx(Lc,{page:g,type:"field",row:h,column:a,section:f,field:E,data:E,path:_,pageIndex:M,sectionIndex:k,rowIndex:F,columnIndex:P,fieldIndex:H},`component-${s}-${E==null?void 0:E.uuid}`);return o.jsx("div",{style:e?{...cAe,opacity:w}:{},className:n?"":"draggable column container-column",children:r===!0?o.jsx(o.Fragment,{children:o.jsxs("div",{children:[((S=a==null?void 0:a.children)==null?void 0:S.length)>0?(T=a==null?void 0:a.children)==null?void 0:T.map((E,_)=>{const M=`${s}-${_}`;return o.jsxs(O.Fragment,{children:[o.jsx(Fr,{isAdvanceView:e,fieldDropArea:!0,data:{path:M,childrenCount:a.children.length,droppedField:a},onDrop:i}),x(E,M,l,c,u,d,_)]},M)}):o.jsx(o.Fragment,{}),o.jsx(Fr,{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((E,_)=>{const M=`${s}-${_}`;return o.jsx(O.Fragment,{children:x(E,M,l,c,u,d,_)},M)})})})},dAe=t=>{var l;const{isAdvanceView:e}=zt(),{data:n,page:r,currentPath:i,pageIndex:a}=t,s=(c,u,d,f,h,g,v,m)=>o.jsx(uAe,{page:r,row:m,section:v,data:c,path:`${d}-${f}-${h}-${g}`,pageIndex:d,sectionIndex:f,rowIndex:h,columnIndex:g},`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 g;return o.jsx(o.Fragment,{children:o.jsx("div",{className:e?"columns":"",style:e?{overflowX:"auto"}:{},children:(g=f==null?void 0:f.children)==null?void 0:g.map((v,m)=>{const A=`${i}-${u}-${h}-${m}`;return o.jsx(O.Fragment,{children:s(v,A,a,u,h,m,c,f)},A)})})})})})})},fAe=t=>{const{data:e,path:n,pageIndex:r}=t,{isAdvanceView:i,isBuilderMode:a}=zt(),{formBuilderFormSchema:s,handleDrop:l}=sn(),c=O.useRef(null),[{},u]=ra({type:na,item:{type:na,uuid:e.uuid,children:e.children,path:n},collect:f=>({isDragging:f.isDragging()})});u(c);const d=(f,h,g,v)=>o.jsx(lAe,{data:f,section:f,path:h,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:a===!0?o.jsx(o.Fragment,{children:i?o.jsxs(o.Fragment,{children:[e.children.map((f,h)=>{const g=`${n}-${h}`;return o.jsxs(O.Fragment,{children:[i===!0&&o.jsx(Fr,{isAdvanceView:i,data:{path:g,childrenCount:e.children.length},onDrop:l}),d(f,g,r,h)]},`section-${h}-${f.uuid}`)}),i===!0&&o.jsx(Fr,{isAdvanceView:i,data:{path:`${n}-${e.children.length}`,childrenCount:e.children.length,droppedField:e},onDrop:l,isLast:!0})]}):o.jsx(o.Fragment,{children:o.jsx(dAe,{page:e,data:e,path:n,pageIndex:r})})}):o.jsx(o.Fragment,{children:o.jsx("div",{className:"p-1",children:e.children.map((f,h)=>{const g=`${n}-${h}`;return o.jsx(O.Fragment,{children:s!=null&&s.showConditionalFields?o.jsx(o.Fragment,{children:o.jsx("div",{children:d(f,g,r,h)})}):((f==null?void 0:f.isHidden)===!1||!a)&&d(f,g,r,h)},`section-${h}-${f.uuid}`)})})})})},hAe=()=>{const[t,e]=O.useState(!1),{formBuilderFormLayout:n}=sn(),{isBuilderMode:r}=zt(),i=()=>{},a=(s,l,c)=>o.jsx(fAe,{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(j0,{setVisibility:e,visibilty:t,pageIndex:l,page:s,emitSocketData:i}),a(s,c,l)]},`policie-page-${l}`)})})})})},pAe={position:"relative"},gAe=t=>{var S;const{isRenderView:e,isAdvanceView:n,isBuilderMode:r}=zt(),{data:i,path:a,pageIndex:s,sectionIndex:l,rowIndex:c,columnIndex:u,section:d,row:f,page:h}=t,g=O.useRef(null),{handleDrop:v}=sn(),[{isDragging:m},A]=ra({type:As,item:{type:As,uuid:i==null?void 0:i.uuid,children:i.children,path:a},collect:T=>({isDragging:T.isDragging()})}),w=m&&!e?.25:1;A(g);const x=(T,C,E,_,M,k,F)=>o.jsx(Lc,{page:h,type:"field",row:f,section:d,field:T,data:T,path:C,pageIndex:E,sectionIndex:_,rowIndex:M,columnIndex:k,fieldIndex:F},`component-${a}-${T==null?void 0:T.uuid}`);return o.jsx("div",{style:n?{...pAe,opacity:w}:{},className:e?"form-builder-column container-column":"draggable form-builder-column container-column",children:r&&o.jsxs("div",{children:[(S=i==null?void 0:i.children)==null?void 0:S.map((T,C)=>{const E=`${a}-${C}`;return o.jsxs(O.Fragment,{children:[o.jsx(Fr,{fieldDropArea:!0,isAdvanceView:n,data:{path:E,childrenCount:i.children.length,droppedField:i},onDrop:v}),x(T,E,s,l,c,u,C)]},E)}),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(Fr,{fieldDropArea:!0,isAdvanceView:n,data:{path:`${a}-${i.children.length}`,childrenCount:i.children.length,droppedField:i},onDrop:v,isLast:!0})]})})},mAe={},vAe=t=>{var K,ie,re,Z,X,W,me;const{data:e,path:n,pageIndex:r,sectionIndex:i,rowIndex:a,section:s,page:l}=t,c=O.useRef(null),{userSelectedLanguage:u,handleDrop:d}=sn(),{userTaskSubmitFormData:f,taskRegisterData:h,updateTaskRegisterData:g,updateTaskProgressValue:v,addUserDataFormSectionRepeatableData:m,removeUserDataFormSectionRepeatableData:A,task_status:w,TASK_PUBLISHED:x}=Ar(),{isRenderView:S,isAdmin:T,isAdvanceView:C,emitSocketData:E,renderType:_}=zt(),[M,k]=O.useState(!1),[{isDragging:F},P]=ra({type:Ao,item:{type:Ao,uuid:e.uuid,children:e.children,path:n,data:e},collect:be=>({isDragging:be.isDragging()})}),H=F?.25:1;P(c);const N=(be,Te,ye,de,ne,U)=>o.jsx(gAe,{page:l,row:e,section:s,data:be,path:Te,pageIndex:ye,sectionIndex:de,rowIndex:ne,columnIndex:U},`column-${n}-${be.uuid}`),z=_t.findIndex(f,function(be){return(be==null?void 0:be.rowId)===(e==null?void 0:e.uuid)}),$=()=>{var ye,de,ne;const be=_t.cloneDeep(h);((de=(ye=f[z])==null?void 0:ye.repeatableFieldsData)==null?void 0:de.length)>=(e==null?void 0:e.minimumEntries)?be[e==null?void 0:e.uuid]=(ne=f[z])==null?void 0:ne.repeatableFields:delete be[e==null?void 0:e.uuid];const Te=Object.keys(be).length;g(be),v(Te)},le=(K=e==null?void 0:e.repeatableFields)==null?void 0:K.map(be=>{var Te;return{fieldUuid:be==null?void 0:be.uuid,field:be==null?void 0:be.uuid,header:(Te=be==null?void 0:be.label)==null?void 0:Te.english}}),R=le==null?void 0:le.map(be=>o.jsx(xr,{field:be.field,header:be.header,body:Te=>o.jsx(o.Fragment,{children:o.jsx("div",{className:"post__content_repetable",dangerouslySetInnerHTML:{__html:Te[be==null?void 0:be.field]}})})},be.field)),Y=()=>{var de;const be=[...f],Te=[];let ye=!0;e:for(const[,ne]of e.children.entries()){for(const[,U]of ne.children.entries())if(U!=null&&U.isPostField&&U.isValid!==1){const ee={fieldId:U.uuid,rowIndex:a};Te.push(ee),Gt.emit("OnInvalidFieldCatch",ee),ye=!1;break e}ye=!0}ye&&(Te==null?void 0:Te.length)===0&&(m(e==null?void 0:e.uuid,(de=be[z])==null?void 0:de.repeatableFields),Gt.emit("clearRepeatableFields",e==null?void 0:e.uuid),$())},se=be=>o.jsx(o.Fragment,{children:o.jsx(Ft,{text:!0,type:"button",size:"small",className:"p-button-danger ",onClick:()=>{A(e==null?void 0:e.uuid,be==null?void 0:be.rowIndex),setTimeout(()=>{$()},1e3)},icon:"pi pi-trash"})});return o.jsxs("div",{style:{...mAe,opacity:H,marginTop:`${(ie=e==null?void 0:e.margin)==null?void 0:ie.top}px`,marginBottom:`${(re=e==null?void 0:e.margin)==null?void 0:re.bottom}px`,marginLeft:`${(Z=e==null?void 0:e.margin)==null?void 0:Z.left}px`,marginRight:`${(X=e==null?void 0:e.margin)==null?void 0:X.right}px`},className:S?"row container-row":"draggable row container-row",children:[M&&o.jsx(bg,{renderType:_,visibilty:M,setVisibility:k,row:e,pageIndex:r,sectionIndex:i,rowIndex:a,emitSocketData:E},"row_settings_"+r+i+a),o.jsxs("div",{className:"form-builder-columns",children:[e.children.map((be,Te)=>{const ye=`${n}-${Te}`;return o.jsxs(O.Fragment,{children:[_===zd&&o.jsx(Fr,{isAdvanceView:C,data:{path:ye,childrenCount:e.children.length},onDrop:d,className:"horizontalDrag"}),N(be,ye,r,i,a,Te)]},ye)}),o.jsx(Fr,{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(Ft,{text:!0,size:"small",type:"button",className:"p-button-success mb-3",onClick:()=>Y(),label:(W=e.addToListButtonLabel)==null?void 0:W[u==null?void 0:u.type]}),(e==null?void 0:e.rowIsRepeatable)&&o.jsxs("div",{className:"card",children:[o.jsxs(ro,{value:(f==null?void 0:f.length)>0?(me=f[z])==null?void 0:me.repeatableFieldsData:[],children:[R,w!==x&&o.jsx(xr,{style:{width:"10%"},headerStyle:{textAlign:"center"},bodyStyle:{textAlign:"left",overflow:"visible"},body:be=>se(be)})]}),T&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(ki,{field:e})]})]})]})},bAe=t=>{var N,z;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}=sn(),{isBuilderMode:g,isAdvanceView:v,renderType:m,emitSocketData:A}=zt(),[w,x]=O.useState(!1),[S,T]=O.useState(!1),[C,E]=O.useState({reusable_template_schema:""}),_=O.useRef(null),[{isDragging:M},k]=ra({type:na,item:{type:na,uuid:e.uuid,children:e.children,path:n},collect:$=>({isDragging:$.isDragging()})}),F=M?.25:1;k(_);const P=($,le,R,Y,se)=>o.jsx(vAe,{page:s,section:a,data:$,path:le,pageIndex:R,sectionIndex:Y,rowIndex:se},`row-${n}-${$.uuid}`),H=($,le,R)=>{var ie,re;const Y=$.collapsed?"pi pi-chevron-down":"pi pi-chevron-up",se=`${$.className} justify-content-space-between panel-tab-section`,K=`${$.titleClassName} pl-1 text-primary`;return o.jsxs("div",{className:se,children:[o.jsxs("span",{ref:g===!0?_:null,children:[o.jsx("button",{className:$.togglerClassName,children:o.jsx("span",{className:"pi pi-sliders-h dragabble"})}),o.jsxs("button",{className:$.togglerClassName,onClick:$.onTogglerClick,children:[o.jsx("span",{className:Y}),o.jsx(Qt,{})]}),o.jsxs("span",{className:K,children:[R+1," ",(ie=e==null?void 0:e.heading)==null?void 0:ie[f==null?void 0:f.type]]})]}),g===!0&&o.jsxs(o.Fragment,{children:[o.jsx(cn,{target:".clone-tool"}),o.jsx(cn,{target:".del-tool"}),o.jsx(cn,{target:".setting-tool"}),o.jsx(cn,{target:".add-section-tool"}),o.jsx(cn,{target:".save-tool"}),o.jsx(cn,{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:$.togglerClassName,onClick:()=>{c(le),A()},children:[o.jsx("span",{className:"pi pi-plus"}),o.jsx(Qt,{})]})}),((re=d[le])==null?void 0:re.children.length)>1&&o.jsx("span",{className:"del-tool","data-pr-tooltip":"Delete",children:o.jsxs("button",{className:$.togglerClassName,onClick:()=>{l(le,R),A()},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:$.togglerClassName,onClick:()=>{u(e,le,R),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:$.togglerClassName,onClick:()=>x(!0),children:[o.jsx("span",{className:"pi pi-cog"}),o.jsx(Qt,{})]})})]})]})]})};return o.jsxs("div",{style:{opacity:F,marginBottom:20},className:v?"draggable row":"",children:[g===!0&&o.jsx(_h,{saveBuilderElementModalData:C,setSaveBuilderElementModalData:E,saveElementModal:S,setSaveElementModal:T}),w===!0&&g===!0&&o.jsx(Ih,{renderType:m,visibilty:w,setVisibility:x,section:e,pageIndex:r,sectionIndex:i,emitSocketData:A},"section_settings_"+r+i),g===!0&&o.jsxs(ci,{className:"mb-5",header:(N=e==null?void 0:e.heading)==null?void 0:N.english,toggleable:!0,headerTemplate:$=>H($,r,i),children:[o.jsx("p",{children:(z=e==null?void 0:e.subHeadingText)==null?void 0:z[f==null?void 0:f.type]}),o.jsxs("div",{className:"",children:[e.children.map(($,le)=>{const R=`${n}-${le}`;return o.jsx(O.Fragment,{children:P($,R,r,i,le)},R)}),o.jsx(Fr,{isAdvanceView:v,data:{path:`${n}-${e.children.length}`,childrenCount:e.children.length},onDrop:h,className:"horizontalDrag",isLast:!0})]})]})]})},yAe=t=>{const{isRenderView:e,isBuilderMode:n}=zt(),{data:r,path:i,pageIndex:a}=t,s=O.useRef(null),[,l]=ra({type:na,item:{type:na,uuid:r.uuid,children:r.children,path:i},collect:u=>({isDragging:u.isDragging()})});l(s);const c=(u,d,f,h)=>o.jsx(bAe,{data:u,section:u,path:d,pageIndex:f,sectionIndex:h,page:r},`section_${f}_${h}`);return o.jsx("div",{style:{overflowX:"auto"},className:`${n&&"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("div",{className:"p-1",children:r.children.map((u,d)=>{const f=`${i}-${d}`;return o.jsx(O.Fragment,{children:c(u,f,a,d)},`section-${d}-${u.uuid}`)})}):o.jsx(o.Fragment,{})})},y5=t=>{const{handleSelectCourseItem:e,icon:n,currentItem:r,field:i,fieldIndex:a,title:s}=t,[l,c]=O.useState(!1),{userTrainingSaveData:u}=Ar(),d=h=>{var g,v;if(u!==null&&h){const m=u==null?void 0:u.findIndex(A=>(A==null?void 0:A.fieldId)===(h==null?void 0:h.uuid));return(g=u[m])!=null&&g.isSeen?(v=u[m])==null?void 0:v.isSeen:!1}else return!1},f=()=>{let h=[];if(u!==null){const v=u.findIndex(m=>(m==null?void 0:m.fieldId)===(i==null?void 0:i.uuid));h=u[v].logs}else h=[];return h==null?void 0:h.map((v,m)=>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:[v==null?void 0:v.action," on ",((v==null?void 0:v.videoTime)/60).toFixed(3)," seconds"]}),o.jsx("span",{className:"text-600",children:Ln(v==null?void 0:v.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:(v==null?void 0:v.action)==="Play"?"bg-green-500 h-full":"bg-orange-500 h-full",style:{width:`${Math.floor((v==null?void 0:v.videoTime)/(v==null?void 0:v.totalTime)*100)}%`}})}),o.jsxs("span",{className:"text-orange-500 ml-3 font-medium",children:[Math.floor((v==null?void 0:v.videoTime)/(v==null?void 0:v.totalTime)*100),"%"]})]})]},`logs_${m}`))};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(Ft,{text:!0,size:"small",type:"button",icon:"pi pi-check",className:"p-button-rounded p-button-primary mr-2 p-button-outlined","aria-label":"Search"}):o.jsx(Ft,{text:!0,size:"small",type:"button",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(Ft,{text:!0,size:"small",type:"button",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(Ft,{text:!0,size:"small",type:"button",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}`)},AAe=t=>{var S,T,C,E,_,M;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}=Ar(),g=(S=d==null?void 0:d.training)!=null&&S.getAssessmentSelectedQuiz?(T=d==null?void 0:d.training)==null?void 0:T.getAssessmentSelectedQuiz:()=>{},v=k=>{if(f!==null){const F=[...f],P=F.findIndex(H=>(H==null?void 0:H.fieldId)===(k==null?void 0:k.uuid));P>=0&&(F[P]={...F[P],isSeen:!0}),h([...F])}},m=k=>{var F;i(k),a(l),s({autoplay:!1,controls:!0,responsive:!0,fluid:!0,sources:[{src:(F=k==null?void 0:k.media_url)==null?void 0:F.english}]})},A=k=>{var F;v(k),i(k),c((F=k==null?void 0:k.media_url)==null?void 0:F.english),a(l)},w=k=>{v(k),i(k),u(k==null?void 0:k.documents),a(l)},x=k=>{var F,P;(F=k==null?void 0:k.quizSchema)!=null&&F.assessment_id&&(g((P=k==null?void 0:k.quizSchema)==null?void 0:P.assessment_id),a(l),i(k))};switch(e==null?void 0:e.componentType){case"video":return o.jsx(y5,{title:(C=e==null?void 0:e.title)==null?void 0:C.english,type:"video",icon:"pi pi-video",handleSelectCourseItem:m,field:e,fieldIndex:n,currentItem:r,userTrainingSaveData:f},`${e==null?void 0:e.uuid}-list`);case"image":return o.jsx(y5,{title:(E=e==null?void 0:e.title)==null?void 0:E.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(y5,{title:(_=e==null?void 0:e.title)==null?void 0:_.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(y5,{title:(M=e==null?void 0:e.quizSchema)==null?void 0:M.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,{})}},wAe=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(AAe,{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}`))})})},SAe=t=>{var v,m,A,w,x,S,T,C,E,_;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(),g=(v=h==null?void 0:h.image)!=null&&v.MediaImage?(m=h==null?void 0:h.image)==null?void 0:m.MediaImage:o.jsx(o.Fragment,{});return o.jsxs("div",{onClick:M=>{e(k=>{var F;return(F=n==null?void 0:n.answersText)==null?void 0:F[r==null?void 0:r.type]}),i(M,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(ia,{inputId:s,value:n.answersText,checked:((x=n.answersText)==null?void 0:x[r==null?void 0:r.type])===f,onChange:M=>{u({isCorrect:null,text:null}),e(k=>{var F;return(F=M.target.value)==null?void 0:F[r==null?void 0:r.type]}),i(M,s,l,n,c),a(!0)}}),((S=n.answersTextImage)==null?void 0:S[r==null?void 0:r.type])&&((T=n.answersTextImage)==null?void 0:T[r==null?void 0:r.type])!==""&&o.jsx(g,{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:(E=n.answersText)==null?void 0:E[r==null?void 0:r.type]}),o.jsx("span",{style:{position:"absolute",right:10},children:(d==null?void 0:d.text)===((_=n.answersText)==null?void 0:_[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)},CAe=t=>{var g,v,m,A,w,x,S;const{media:e}=zt(),n=(g=e==null?void 0:e.image)!=null&&g.MediaImage?(v=e==null?void 0:e.image)==null?void 0:v.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 O.useEffect(()=>(Array.isArray(f)||r([]),()=>{}),[]),o.jsx(o.Fragment,{children:Array.isArray(f)&&o.jsxs("div",{onClick:()=>{var T;h(!(f!=null&&f.some(C=>{var E;return C===((E=i.answersText)==null?void 0:E[a==null?void 0:a.type])})),(T=i==null?void 0:i.answersText)==null?void 0:T[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(T=>{var C;return(T==null?void 0:T.text)===((C=i.answersText)==null?void 0:C[a==null?void 0:a.type])}))?d!=null&&d.some(T=>{var C;return(T==null?void 0:T.text)===((C=i.answersText)==null?void 0:C[a==null?void 0:a.type])&&(T==null?void 0:T.isCorrect)===!0})?{borderColor:"green",borderWidth:1,borderStyle:"solid",position:"relative"}:{borderColor:"red",borderWidth:1,borderStyle:"solid",position:"relative"}:((m=i.answersText)==null?void 0:m[a==null?void 0:a.type])===f?{backgroundColor:"#0F8BFD"}:{},children:[o.jsx(Yr,{inputId:l,value:i.answersText,checked:f==null?void 0:f.some(T=>{var C;return T===((C=i.answersText)==null?void 0:C[a==null?void 0:a.type])}),onChange:T=>{var C;h(T.checked,(C=T.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(T=>{var C;return(T==null?void 0:T.text)===((C=i.answersText)==null?void 0:C[a==null?void 0:a.type])}))?d!=null&&d.some(T=>{var C;return(T==null?void 0:T.text)===((C=i.answersText)==null?void 0:C[a==null?void 0:a.type])&&(T==null?void 0:T.isCorrect)===!0})?o.jsx("span",{style:{color:"green"},children:" Correct Answer"}):o.jsx("span",{style:{color:"red"},children:" Wrong Answer"}):""})]},l)})};function DU(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function xAe(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 NU(t,e,n){return e&&xAe(t.prototype,e),t}function OU(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Lw(t,e)}function A5(t){return A5=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},A5(t)}function Lw(t,e){return Lw=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Lw(t,e)}function TAe(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function EAe(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function IAe(t,e){return e&&(typeof e=="object"||typeof e=="function")?e:EAe(t)}function FU(t){var e=TAe();return function(){var r=A5(t),i;if(e){var a=A5(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return IAe(this,i)}}function _Ae(t){return DAe(t)||NAe(t)||OAe(t)||FAe()}function DAe(t){if(Array.isArray(t))return Bw(t)}function NAe(t){if(typeof Symbol<"u"&&Symbol.iterator in Object(t))return Array.from(t)}function OAe(t,e){if(t){if(typeof t=="string")return Bw(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 Bw(t,e)}}function Bw(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 FAe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
4266
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function zbe(t,e){if(t){if(typeof t=="string")return SU(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 SU(t,e)}}function SU(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 Hbe(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)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 Ybe(t){if(Array.isArray(t))return t}function Kbe(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;typeof l=="boolean"&&!(i&&s)&&console.error("[react-phone-number-input] `withCountryCallingCode` property can only be used together with `country` and `international` properties"),i&&a&&console.error("[react-phone-number-input] When `country` property is passed, `defaultCountry` property has no effect and therefore shouldn't be passed"),typeof s=="boolean"&&!i&&console.error("[react-phone-number-input] `international` property can only be used together with `country` property");var d=Rbe({international:s,country:i,defaultCountry:a,withCountryCallingCode:l}),f=O.useRef(),h=function(ie,re,Z){console.error("[react-phone-number-input] Expected phone number ".concat(ie," to correspond to country ").concat(re," but ").concat(Z?"in reality it corresponds to country "+Z:"it doesn't",".")),f.current=!0},g=function(ie){return n&&Ube(n),Xbe(n,i,a,d,c,u,function(){ie&&ie.onCountryMismatch&&ie.onCountryMismatch();for(var re=arguments.length,Z=new Array(re),X=0;X<re;X++)Z[X]=arguments[X];h.apply(e,Z)})},v=O.useState(i),m=vg(v,2),A=m[0],w=m[1],x=O.useState(a),S=vg(x,2),T=S[0],C=S[1],E=O.useState(g()),_=vg(E,2),M=_[0],k=_[1],F=O.useState(n),P=vg(F,2),H=P[0],N=P[1],z=O.useState(),$=vg(z,2);$[0];var le=$[1],R=O.useCallback(function(){return le({})},[le]);function Y(K){if(K){d==="NATIONAL_PART_OF_INTERNATIONAL"&&(K="+".concat(N1(i,u)).concat(K));var ie=new p5(i||a,u);return ie.input(K),ie.getNumberValue()}}O.useEffect(function(){n!==H&&(N(n),k(g()))},[n]),O.useEffect(function(){if(i!==A){w(i);var K,ie=g({onCountryMismatch:function(){K=!0}});k(ie),K&&N(Y(ie))}},[i]),O.useEffect(function(){a!==T&&(C(a),k(g()))},[a]),O.useEffect(function(){H!==n&&r(H)},[H]);var se=O.useCallback(function(K){var ie;if(i)if(d==="INTERNATIONAL"){var re=kw(i,u);if(K.indexOf(re)!==0){if(K&&K[0]!=="+")K=re+K;else if(!f.current)return k(re),N(void 0),R()}}else K&&K[0]==="+"&&(K=K.slice(1));else a||K&&K[0]!=="+"&&(K="+"+K);K&&(ie=Y(K)),k(K),N(ie)},[i,d,a,u,k,N,R,f]);return{phoneDigits:M,setPhoneDigits:se,inputFormat:d}}function Xbe(t,e,n,r,i,a,s){if(e&&r==="INTERNATIONAL"){var l=kw(e,a);return t?(t.indexOf(l)!==0&&s(t,e),t):l}if(!t)return"";if(!e&&!n)return t;var c=new p5(void 0,a);c.input(t);var u=c.getNumber();if(u)if(e)switch(u.country&&u.country!==e?s(t,e,u.country):u.countryCallingCode!==N1(e,a)&&s(t,e),r){case"NATIONAL":return O1(u.formatNational());case"NATIONAL_PART_OF_INTERNATIONAL":return O1(g5(u.formatInternational(),kw(e,a)));case"INTERNATIONAL":throw new Error('`inputFormat: "INTERNATIONAL"` case should\'ve already been handled earlier in the code');case"INTERNATIONAL_OR_NATIONAL":throw new Error('`inputFormat: "INTERNATIONAL_OR_NATIONAL"` is not possible when `country` is fixed');default:throw new Error("Unknown `inputFormat`: ".concat(r))}else return u.countryCallingCode&&u.countryCallingCode===N1(n,a)&&i?O1(u.formatNational()):t;else return""}function Rbe(t){var e=t.international,n=t.country,r=t.defaultCountry,i=t.withCountryCallingCode;return n?e?i?"INTERNATIONAL":"NATIONAL_PART_OF_INTERNATIONAL":"NATIONAL":r?"INTERNATIONAL_OR_NATIONAL":"INTERNATIONAL"}var Gbe=["Component","country","defaultCountry","useNationalFormatForDefaultCountryValue","value","onChange","metadata","international","withCountryCallingCode"];function Pw(){return Pw=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},Pw.apply(this,arguments)}function Wbe(t,e){if(t==null)return{};var n=Qbe(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 Qbe(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 m5(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=Wbe(t,Gbe),g=Kbe({value:l,onChange:c,country:r,defaultCountry:i,international:d,withCountryCallingCode:f,useNationalFormatForDefaultCountryValue:s,metadata:u}),v=g.phoneDigits,m=g.setPhoneDigits,A=g.inputFormat;return O.createElement(n,Pw({},h,{ref:e,metadata:u,inputFormat:A,international:d,withCountryCallingCode:f,country:r||i,value:v,onChange:m}))}m5=O.forwardRef(m5),m5.propTypes={value:Tn.string,onChange:Tn.func.isRequired,country:Tn.string,defaultCountry:Tn.string,international:Tn.bool,withCountryCallingCode:Tn.bool,Component:Tn.elementType.isRequired,useNationalFormatForDefaultCountryValue:Tn.bool,metadata:$be};var Jbe=["type","autoComplete","smartCaret","metadata"];function Mw(){return Mw=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},Mw.apply(this,arguments)}function Zbe(t,e){if(t==null)return{};var n=eye(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 eye(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 CU(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=Zbe(n,Jbe);return O.createElement(m5,Mw({},h,{type:a,autoComplete:l,metadata:f,ref:r,Component:u?kbe:Vbe}))}return e=O.forwardRef(e),e.propTypes={type:Tn.string,autoComplete:Tn.string,smartCaret:Tn.bool,metadata:Tn.object},e}CU();const tye=CU(R6e),nye=t=>{var Z,X,W,me,be,Te,ye,de,ne,U,ee;const{taskRegisterData:e,updateTaskRegisterData:n,updateTaskProgressValue:r,updateUserFormDataSubmit:i,userTaskSubmitFormData:a,TASK_PUBLISHED:s,task_status:l}=Ar(),{userSelectedLanguage:c,fieldSettingUpdate:u}=sn(),{field:d,fieldIndex:f,sectionIndex:h,pageIndex:g,row:v,rowIndex:m,columnIndex:A,isDisabled:w}=t,{isAdmin:x,isBuilderMode:S}=zt(),[T,C]=O.useState(!1),[E,_]=O.useState(""),[M,k]=O.useState(0),[F,P]=O.useState(!1),[H,N]=O.useState(!1),z=()=>{N(!0)},$=()=>{N(!1)},le=()=>{var oe,ge,_e;if(v!=null&&v.rowIsRepeatable){if(v!=null&&v.repeatableFields){const Ne=[...v.repeatableFields],ve=_t.findIndex(Ne,function(Ae){return Ae.uuid===(d==null?void 0:d.uuid)});ve>=0&&Ne[ve].fieldData?_(Ne[ve].fieldData):_("")}}else{const Ne=a;if(Ne!=null&&Ne.length){for(const ve of Ne)if(ve.fieldId===t.field.uuid&&((oe=ve==null?void 0:ve.postData[0])==null?void 0:oe.postValue)!==""&&((ge=ve==null?void 0:ve.postData[0])!=null&&ge.postValue)){_((_e=ve==null?void 0:ve.postData[0])==null?void 0:_e.postValue);break}}}P(!0)};O.useEffect(()=>{F||le();const oe=Gt.addListener("clearRepeatableFields",ve=>{ve===(v==null?void 0:v.uuid)&&(_(""),k(0),d.isValid=0,u(g,h,m,A,f,d))}),ge=Gt.addListener("onSubmitUserForm",()=>{var ve;(ve=d==null?void 0:d.attributes)!=null&&ve.required?E?d.isValid=1:d.isValid=0:d.isValid=1}),_e=Gt.addListener("OnInvalidFieldCatch",ve=>{d.uuid===(ve==null?void 0:ve.fieldId)?k(1):k(0)}),Ne=Gt.addListener("OnGetFieldValue",ve=>{var Be;const Ae=(Be=ve==null?void 0:ve.repeatableColumn)==null?void 0:Be.filter(Ee=>(Ee==null?void 0:Ee.fieldUuid)===(d==null?void 0:d.uuid));Ae!=null&&Ae.length});return()=>{ge.remove(),_e.remove(),Ne.remove(),oe.remove()}});const R=oe=>{C(oe)},Y=()=>{C(!1)},se=(oe,ge)=>{const _e=a,Ne=_t.cloneDeep(e);if(Ne[d==null?void 0:d.uuid]=oe,(_e==null?void 0:_e.length)>0)for(const ve of _e)ve.fieldId===t.field.uuid&&(ve.postData[0]={postValue:oe});if(!(v!=null&&v.rowIsRepeatable)){n(Ne);const ve=Object.keys(Ne).length;r(ve)}},K=(oe,ge)=>{var _e;if(a){const Ne=[...a],ve=_t.findIndex(Ne,function(Be){return Be.rowId===(v==null?void 0:v.uuid)});let Ae=(_e=a[ve])==null?void 0:_e.repeatableFields;Ae={...Ae,[oe==null?void 0:oe.uuid]:ge},Ne[ve]={...Ne[ve],repeatableFields:Ae},i(Ne)}_(ge),ge!==""?oe.isValid=1:oe.isValid=0},ie=oe=>{v!=null&&v.rowIsRepeatable?K(d,oe):se(oe)},re=o.jsxs("div",{onMouseOver:z,onMouseOut:$,children:[S&&H&&o.jsx(Wr,{handleFieldSettingsSidebar:R,...t}),o.jsxs("div",{className:`field ${S&&" py-3 px-4 builder-element-wrapper "}${(d==null?void 0:d.isFluid)===!0&&" p-fluid"}`,children:[o.jsx("div",{className:"grid",children:o.jsxs("div",{className:S?"col-12 p-fluid":"col-12 ",children:[(d==null?void 0:d.showHeaderText)&&o.jsx("h6",{children:(Z=d==null?void 0:d.headerText)==null?void 0:Z[c==null?void 0:c.type]}),(d==null?void 0:d.showLabel)&&o.jsxs("label",{htmlFor:f,className:"flex font-bold mb-3 text-gray-900 text-xl",children:[o.jsx(ca,{...t}),((X=d==null?void 0:d.attributes)==null?void 0:X.required)&&o.jsx("span",{className:"must-required mr-1",children:"*"})," ",S?o.jsx(aa,{...t}):o.jsx(o.Fragment,{children:(W=d==null?void 0:d.label)==null?void 0:W[c==null?void 0:c.type]}),o.jsx("span",{className:"ml-3",children:(d==null?void 0:d.showToolTip)&&o.jsx(zi,{message:(me=d==null?void 0:d.toolTip)==null?void 0:me[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=(be=d==null?void 0:d.icon)==null?void 0:be.properties)==null?void 0:Te.name)}),o.jsx(tye,{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:E,onFocus:()=>k(1),onChange:ie,international:!0,country:"GB",className:`${M===1&&((de=d==null?void 0:d.attributes)!=null&&de.required)?E?"valid":"invalid":"valid'"} p-inputtext`,readOnly:w,disabled:x||w})]}),o.jsx("div",{children:((ne=d==null?void 0:d.attributes)==null?void 0:ne.required)&&o.jsx("small",{className:"error",children:M===1&&!E?(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:(ee=d==null?void 0:d.helperText)==null?void 0:ee[c==null?void 0:c.type]})})]})]})}),x&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(ki,{...t})]})]})]});return o.jsxs(o.Fragment,{children:[T===!0&&o.jsx(Qi,{visibilty:T,closeSettingFieldSidebar:Y,...t}),o.jsx(xi,{...t,fieldWrap:re})]})},rye=t=>{var se,K,ie,re,Z,X,W,me,be,Te,ye;const{field:e,fieldIndex:n,pageIndex:r,sectionIndex:i,row:a,isDisabled:s}=t,{isAdmin:l,isBuilderMode:c}=zt(),{task_status:u,taskRegisterData:d,updateTaskRegisterData:f,updateTaskProgressValue:h,updateUserFormDataSubmit:g,userTaskSubmitFormData:v,TASK_PUBLISHED:m}=Ar(),{userSelectedLanguage:A}=sn(),[w,x]=O.useState(!1),[S,T]=O.useState(""),[C,E]=O.useState(0),[_,M]=O.useState(!1),k=()=>{M(!0)},F=()=>{M(!1)};O.useEffect(()=>{w||$();const de=Gt.addListener("clearRepeatableFields",U=>{U===(a==null?void 0:a.uuid)&&(T(""),E(0),e.isValid=0)}),ne=Gt.addListener("onSubmitUserForm",()=>{var U;(U=e==null?void 0:e.attributes)!=null&&U.required?S!==""&&du.test(S)===!0?e.isValid=1:e.isValid=0:e.isValid=1});return()=>{ne.remove(),de.remove()}});const[P,H]=O.useState(!1),N=de=>{H(de)},z=()=>{H(!1)},$=()=>{var de,ne,U;if(a!=null&&a.rowIsRepeatable){if(a!=null&&a.repeatableFields){const ee=[...a.repeatableFields],oe=_t.findIndex(ee,function(ge){return ge.uuid===(e==null?void 0:e.uuid)});oe>=0&&ee[oe].fieldData?T(ee[oe].fieldData):T("")}}else{const ee=v;if(ee!=null&&ee.length){for(const oe of ee)if(oe.fieldId===t.field.uuid&&((de=oe==null?void 0:oe.postData[0])==null?void 0:de.postValue)!==""&&((ne=oe==null?void 0:oe.postData[0])!=null&&ne.postValue)){T((U=oe==null?void 0:oe.postData[0])==null?void 0:U.postValue),x(!0);break}}}x(!0)},le=de=>{T(de);const ne=v,U=_t.cloneDeep(d);if(de!==""&&du.test(de)===!0){if(U[e==null?void 0:e.uuid]=de,(ne==null?void 0:ne.length)>0)for(const ee of ne)ee.fieldId===t.field.uuid&&(ee.postData[0]={postValue:de})}else if(delete U[e==null?void 0:e.uuid],(ne==null?void 0:ne.length)>0)for(const ee of ne)ee.fieldId===t.field.uuid&&(ee.postData[0]={postValue:""});if(!(a!=null&&a.rowIsRepeatable)){f(U);const ee=Object.keys(U).length;h(ee)}};console.log("inputValue",S);const R=(de,ne)=>{var Ne;console.log("value",ne);const U=[...v],ee=_t.findIndex(U,function(ve){return ve.rowId===(a==null?void 0:a.uuid)});let oe=(Ne=v[ee])==null?void 0:Ne.repeatableFields;const ge=de,_e=ge==null?void 0:ge.uuid;oe={...oe,[_e]:ne},U[ee]={...U[ee],repeatableFields:oe},console.log("_data2",U),g(U),T(ne),ne!==""&&du.test(ne)===!0?e.isValid=1:e.isValid=0},Y=o.jsxs("div",{onMouseOver:k,onMouseOut:F,children:[c&&_&&o.jsx(Wr,{handleFieldSettingsSidebar:N,...t}),o.jsxs("div",{className:`field ${c&&" py-3 px-4 builder-element-wrapper "}${(e==null?void 0:e.isFluid)===!0&&" p-fluid"}`,children:[o.jsx("div",{className:"grid"}),(e==null?void 0:e.showHeaderText)&&o.jsx("h6",{children:(se=e==null?void 0:e.headerText)==null?void 0:se[A==null?void 0:A.type]}),(e==null?void 0:e.showLabel)&&o.jsxs("label",{htmlFor:n,className:"flex font-bold mb-3 text-gray-900 text-xl",children:[o.jsx(ca,{...t}),((K=e==null?void 0:e.attributes)==null?void 0:K.required)&&o.jsx("span",{className:"must-required mr-1",children:"*"})," ",c?o.jsx(aa,{...t}):o.jsx(o.Fragment,{children:(ie=e==null?void 0:e.label)==null?void 0:ie[A==null?void 0:A.type]}),o.jsx("span",{className:"ml-3",children:(e==null?void 0:e.showToolTip)&&o.jsx(zi,{message:(re=e==null?void 0:e.toolTip)==null?void 0:re[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-"+((X=(Z=e==null?void 0:e.icon)==null?void 0:Z.properties)==null?void 0:X.name)}),o.jsx(wn,{id:e==null?void 0:e.uuid,placeholder:(W=e==null?void 0:e.placeholder)==null?void 0:W[A==null?void 0:A.type],value:S,onFocus:()=>E(1),onChange:de=>{a!=null&&a.rowIsRepeatable?R(e,de.target.value):le(de.target.value)},className:C===1&&((me=e==null?void 0:e.attributes)!=null&&me.required)?S?"valid":"invalid":"valid'",readOnly:s||l})]}),((be=e==null?void 0:e.attributes)==null?void 0:be.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&&du.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(ki,{...t})]})]});return o.jsxs(o.Fragment,{children:[P===!0&&o.jsx(Qi,{visibilty:P,closeSettingFieldSidebar:z,...t},e==null?void 0:e.uuid),o.jsx(xi,{...t,fieldWrap:Y})]})},iye="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAwAAAAMACAYAAACTgQCOAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAABmJLR0QA/wD/AP+gvaeTAACAAElEQVR42u3deXxcdb3/8ffnTLaWthSUVVuaTMIWKc2cpLWi/oqIeK+4XisuoKDodUNx38H9Ku67IhdwB6NeF1xBqQrWNjOTUgxbM0kLyKp0b7PMnM/vj1ZFtiazZc7M6/l4+LhXxTZ5nzPnfN9zvt/vMQEAakI6DJv3j6L5gft8NTfPN/f5cp8fuR+gIJhv7vNdag7M5sm91aXZkvaTe4uk/c2sSdL+kuRSQtK8h/hr5khqfsB/Nilpx0P8s9tMKuz9/7e6e17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W,me;const{field:e,pageIndex:n,sectionIndex:r,row:i,isDisabled:a}=t,{isAdmin:s,isBuilderMode:l}=zt(),{task_status:c,taskRegisterData:u,updateTaskRegisterData:d,updateTaskProgressValue:f,updateUserFormDataSubmit:h,userTaskSubmitFormData:g,TASK_PUBLISHED:v}=Ar(),{userSelectedLanguage:m}=sn(),[A,w]=O.useState(!1),[x,S]=O.useState(""),[T,C]=O.useState(0),[E,_]=O.useState(!1),M=()=>{_(!0)},k=()=>{_(!1)};O.useEffect(()=>{A||z();const be=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!==""&&du.test(x)===!0?e.isValid=1:e.isValid=0:e.isValid=1});return()=>{Te.remove(),be.remove()}});const[F,P]=O.useState(!1),H=be=>{P(be)},N=()=>{P(!1)},z=()=>{var be,Te,ye;if(i!=null&&i.rowIsRepeatable){const de=[...(i==null?void 0:i.repeatableFields)||[]],ne=_t.findIndex(de,function(U){return U.uuid===(e==null?void 0:e.uuid)});ne>=0&&de[ne].fieldData?S(de[ne].fieldData):S("")}else{const de=g;if(de!=null&&de.length){for(const ne of de)if(ne.fieldId===t.field.uuid&&((be=ne==null?void 0:ne.postData[0])==null?void 0:be.postValue)!==""&&((Te=ne==null?void 0:ne.postData[0])!=null&&Te.postValue)){S((ye=ne==null?void 0:ne.postData[0])==null?void 0:ye.postValue),w(!0);break}}}w(!0)},$=(be,Te)=>{S(Te);const ye=g,de=_t.cloneDeep(u);if(ye!==null){if(Te){if(de[e==null?void 0:e.uuid]=Te,(ye==null?void 0:ye.length)>0)for(const ne of ye)ne.fieldId===t.field.uuid&&(ne.postData[0]={postValue:Te})}else if(delete de[e==null?void 0:e.uuid],(ye==null?void 0:ye.length)>0)for(const ne of ye)ne.fieldId===t.field.uuid&&(ne.postData[0]={postValue:""})}if(!(i!=null&&i.rowIsRepeatable)){d(de);const ne=Object.keys(de).length;f(ne)}},le=(be,Te,ye,de)=>{var oe;const ne=[...g],U=_t.findIndex(ne,function(ge){return ge.rowId===(i==null?void 0:i.uuid)});let ee=(oe=g[U])==null?void 0:oe.repeatableFields;ee={...ee,[ye==null?void 0:ye.uuid]:de},ne[U]={...ne[U],repeatableFields:ee},h(ne),S(de),de!==""&&du.test(de)===!0?e.isValid=1:e.isValid=0},R=o.jsxs("div",{onMouseOver:M,onMouseOut:k,children:[l&&E&&o.jsx(Wr,{handleFieldSettingsSidebar:H,...t}),o.jsxs("div",{className:`field ${l&&" py-3 px-4 builder-element-wrapper "}${(e==null?void 0:e.isFluid)===!0&&" p-fluid"}`,children:[o.jsx("div",{className:"grid",children:o.jsxs("div",{className:s?"col-6 ":"col-12 p-fluid",children:[(e==null?void 0:e.showHeaderText)&&o.jsx("h6",{children:(Y=e==null?void 0:e.headerText)==null?void 0:Y[m==null?void 0:m.type]}),(e==null?void 0:e.showLabel)&&o.jsxs("label",{htmlFor:e.uuid,className:"flex font-bold mb-3 text-gray-900 text-xl",children:[o.jsx(ca,{...t}),((se=e==null?void 0:e.attributes)==null?void 0:se.required)&&o.jsx("span",{className:"must-required mr-1",children:"*"})," ",l?o.jsx(aa,{...t}):o.jsx(o.Fragment,{children:(K=e==null?void 0:e.label)==null?void 0:K[m==null?void 0:m.type]}),(e==null?void 0:e.showToolTip)&&o.jsx("span",{className:"ml-3",children:o.jsx(zi,{message:(ie=e==null?void 0:e.toolTip)==null?void 0:ie[m==null?void 0:m.type],position:"right"})})]}),o.jsx("div",{children:o.jsx(v6,{cancelIcon:o.jsx("img",{src:iye,alt:"custom-cancel-image",width:"25px",height:"25px"}),offIcon:o.jsx("img",{src:aye,alt:"custom-image-active",width:"25px",height:"25px"}),onIcon:o.jsx("img",{src:sye,alt:"custom-image",width:"25px",height:"25px"}),id:e==null?void 0:e.uuid,placeholder:(re=e==null?void 0:e.placeholder)==null?void 0:re[m==null?void 0:m.type],value:x,onFocus:()=>C(1),onChange:be=>{i!=null&&i.rowIsRepeatable?le(n,r,e,be.value):$(be,be.value)},className:T===1&&((Z=e==null?void 0:e.attributes)!=null&&Z.required)?x?"valid":"invalid":"valid'",readOnly:a})}),((X=e==null?void 0:e.attributes)==null?void 0:X.required)&&o.jsx("div",{children:o.jsx("small",{className:"error",children:T===1&&!x?(W=e==null?void 0:e.validationMesssage)==null?void 0:W[m==null?void 0:m.type]:""})}),(e==null?void 0:e.showHelperText)&&o.jsx("div",{children:o.jsx("small",{children:(me=e==null?void 0:e.helperText)==null?void 0:me[m==null?void 0:m.type]})})]})}),s&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(ki,{...t})]})]})]});return o.jsxs(o.Fragment,{children:[F===!0&&o.jsx(Qi,{visibilty:F,closeSettingFieldSidebar:N,...t},e==null?void 0:e.uuid),o.jsx(xi,{...t,fieldWrap:R})]})},lye=t=>{var Y,se,K,ie,re,Z,X,W,me;const{field:e,pageIndex:n,sectionIndex:r,row:i,isDisabled:a}=t,{isAdmin:s,isBuilderMode:l}=zt(),{task_status:c,taskRegisterData:u,updateTaskRegisterData:d,updateTaskProgressValue:f,updateUserFormDataSubmit:h,userTaskSubmitFormData:g,TASK_PUBLISHED:v}=Ar(),{userSelectedLanguage:m}=sn(),[A,w]=O.useState(!1),[x,S]=O.useState(""),[T,C]=O.useState(0),[E,_]=O.useState(!1),M=()=>{_(!0)},k=()=>{_(!1)};O.useEffect(()=>{A||z();const be=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!==""&&du.test(x)===!0?e.isValid=1:e.isValid=0:e.isValid=1});return()=>{Te.remove(),be.remove()}});const[F,P]=O.useState(!1),H=be=>{P(be)},N=()=>{P(!1)},z=()=>{var be,Te,ye;if(i!=null&&i.rowIsRepeatable){if(i!=null&&i.repeatableFields){const de=[...i.repeatableFields],ne=_t.findIndex(de,function(U){return U.uuid===(e==null?void 0:e.uuid)});ne>=0&&de[ne].fieldData?S(de[ne].fieldData):S("")}}else{const de=g;if(de!=null&&de.length){for(const ne of de)if(ne.fieldId===t.field.uuid&&((be=ne==null?void 0:ne.postData[0])==null?void 0:be.postValue)!==""&&((Te=ne==null?void 0:ne.postData[0])!=null&&Te.postValue)){S((ye=ne==null?void 0:ne.postData[0])==null?void 0:ye.postValue),w(!0);break}}}w(!0)},$=(be,Te)=>{S(Te);const ye=g,de=_t.cloneDeep(u);if(ye!==null){if(Te){if(de[e==null?void 0:e.uuid]=Te,(ye==null?void 0:ye.length)>0)for(const ne of ye)ne.fieldId===t.field.uuid&&(ne.postData[0]={postValue:Te})}else if(delete de[e==null?void 0:e.uuid],(ye==null?void 0:ye.length)>0)for(const ne of ye)ne.fieldId===t.field.uuid&&(ne.postData[0]={postValue:""})}if(!(i!=null&&i.rowIsRepeatable)){d(de);const ne=Object.keys(de).length;f(ne)}},le=(be,Te,ye,de)=>{var oe;const ne=[...g],U=_t.findIndex(ne,function(ge){return ge.rowId===(i==null?void 0:i.uuid)});let ee=(oe=g[U])==null?void 0:oe.repeatableFields;ee={...ee,[ye==null?void 0:ye.uuid]:de},ne[U]={...ne[U],repeatableFields:ee},h(ne),S(de),de!==""&&du.test(de)===!0?e.isValid=1:e.isValid=0},R=o.jsxs("div",{onMouseOver:M,onMouseOut:k,children:[l&&E&&o.jsx(Wr,{handleFieldSettingsSidebar:H,...t}),o.jsx("div",{className:`field ${l&&" py-3 px-4 builder-element-wrapper "}${(e==null?void 0:e.isFluid)===!0&&" p-fluid"}`,children:o.jsxs("div",{className:"grid",children:[o.jsxs("div",{className:l?"col-12 p-fluid field-form-builder":"col-12 p-fluid",children:[(e==null?void 0:e.showHeaderText)&&o.jsx("h6",{children:(Y=e==null?void 0:e.headerText)==null?void 0:Y[m==null?void 0:m.type]}),(e==null?void 0:e.showLabel)&&o.jsxs("label",{htmlFor:e.uuid,className:"flex font-bold mb-3 text-gray-900 text-xl",children:[o.jsx(ca,{...t}),((se=e==null?void 0:e.attributes)==null?void 0:se.required)&&o.jsx("span",{className:"must-required mr-1",children:"*"})," ",l?o.jsx(aa,{...t}):o.jsx(o.Fragment,{children:(K=e==null?void 0:e.label)==null?void 0:K[m==null?void 0:m.type]}),o.jsx("span",{className:"ml-3",children:(e==null?void 0:e.showToolTip)&&o.jsx(zi,{message:(ie=e==null?void 0:e.toolTip)==null?void 0:ie[m==null?void 0:m.type],position:"right"})})]}),o.jsx(A6,{id:e==null?void 0:e.uuid,placeholder:(re=e==null?void 0:e.placeholder)==null?void 0:re[m==null?void 0:m.type],value:x,onFocus:()=>C(1),onChange:be=>{i!=null&&i.rowIsRepeatable?le(n,r,e,be.value):$(be,be.value)},className:T===1&&((Z=e==null?void 0:e.attributes)!=null&&Z.required)?x?"valid":"invalid":"valid'",readOnly:a,disabled:s||a}),((X=e==null?void 0:e.attributes)==null?void 0:X.required)&&o.jsx("div",{children:o.jsx("small",{className:"error",children:T===1&&!x?(W=e==null?void 0:e.validationMesssage)==null?void 0:W[m==null?void 0:m.type]:""})}),(e==null?void 0:e.showHelperText)&&o.jsx("div",{children:o.jsx("small",{children:(me=e==null?void 0:e.helperText)==null?void 0:me[m==null?void 0:m.type]})})]}),s&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(ki,{...t})]})]})})]});return o.jsxs(o.Fragment,{children:[F===!0&&o.jsx(Qi,{visibilty:F,closeSettingFieldSidebar:N,...t},e==null?void 0:e.uuid),o.jsx(xi,{...t,fieldWrap:R})]})},cye=t=>{var R,Y,se,K,ie,re;const{field:e,pageIndex:n,sectionIndex:r,row:i}=t,{isAdmin:a,isBuilderMode:s}=zt(),{task_status:l,taskRegisterData:c,updateTaskRegisterData:u,updateTaskProgressValue:d,updateUserFormDataSubmit:f,userTaskSubmitFormData:h,TASK_PUBLISHED:g}=Ar(),{userSelectedLanguage:v}=sn(),[m,A]=O.useState(!1),[w,x]=O.useState(""),[S,T]=O.useState(0),[C,E]=O.useState(!1),_=()=>{E(!0)},M=()=>{E(!1)};O.useEffect(()=>{m||N();const Z=Gt.addListener("clearRepeatableFields",W=>{W===(i==null?void 0:i.uuid)&&(x(""),T(0),e.isValid=0)}),X=Gt.addListener("onSubmitUserForm",()=>{var W;(W=e==null?void 0:e.attributes)!=null&&W.required&&(w!==""&&du.test(w)===!0?e.isValid=1:e.isValid=0)});return()=>{X.remove(),Z.remove()}});const[k,F]=O.useState(!1),P=Z=>{F(Z)},H=()=>{F(!1)},N=()=>{var Z,X,W;if(i!=null&&i.rowIsRepeatable){if(i!=null&&i.repeatableFields){const me=[...i.repeatableFields],be=_t.findIndex(me,function(Te){return Te.uuid===(e==null?void 0:e.uuid)});be>=0&&me[be].fieldData?x(me[be].fieldData):x("")}}else{const me=h;if(me!=null&&me.length){for(const be of me)if(be.fieldId===t.field.uuid&&((Z=be==null?void 0:be.postData[0])==null?void 0:Z.postValue)!==""&&((X=be==null?void 0:be.postData[0])!=null&&X.postValue)){x((W=be==null?void 0:be.postData[0])==null?void 0:W.postValue),A(!0);break}}}A(!0)},z=(Z,X)=>{x(X);const W=h,me=_t.cloneDeep(c);if(X){if(me[e==null?void 0:e.uuid]=X,(W==null?void 0:W.length)>0)for(const be of W)be.fieldId===t.field.uuid&&(be.postData[0]={postValue:X})}else if(delete me[e==null?void 0:e.uuid],(W==null?void 0:W.length)>0)for(const be of W)be.fieldId===t.field.uuid&&(be.postData[0]={postValue:""});if(!(i!=null&&i.rowIsRepeatable)){u(me);const be=Object.keys(me).length;d(be)}},$=(Z,X,W,me)=>{var de;const be=[...h],Te=_t.findIndex(be,function(ne){return ne.rowId===(i==null?void 0:i.uuid)});let ye=(de=h[Te])==null?void 0:de.repeatableFields;ye={...ye,[W==null?void 0:W.uuid]:me},be[Te]={...be[Te],repeatableFields:ye},f(be),x(me),me!==""&&du.test(me)===!0?e.isValid=1:e.isValid=0},le=o.jsxs("div",{onMouseOver:_,onMouseOut:M,children:[s&&C&&o.jsx(Wr,{handleFieldSettingsSidebar:P,...t}),o.jsxs("div",{className:`field ${s&&" py-3 px-4 builder-element-wrapper "}${(e==null?void 0:e.isFluid)===!0&&" p-fluid"}`,children:[o.jsxs("div",{className:s?"card p-fluid field-form-builder":"p-fluid",children:[s&&o.jsx("label",{className:"block font-medium mb-3 text-700 text-2xl",children:"Hidden field"}),o.jsx(wn,{type:s===!1?"hidden":"text",id:e==null?void 0:e.uuid,placeholder:(R=e==null?void 0:e.placeholder)==null?void 0:R[v==null?void 0:v.type],value:(Y=e==null?void 0:e.defaultValue)==null?void 0:Y[v==null?void 0:v.type],onFocus:()=>T(1),onLoad:()=>{i!=null&&i.rowIsRepeatable?$(n,r,e,e==null?void 0:e.defaultValue):z("",e==null?void 0:e.defaultValue)},className:S===1&&((se=e==null?void 0:e.attributes)!=null&&se.required)?w?"valid":"invalid":"valid'",readOnly:l===g}),((K=e==null?void 0:e.attributes)==null?void 0:K.required)&&o.jsx("div",{children:o.jsx("small",{className:"error",children:S===1&&!w?(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:(re=e==null?void 0:e.helperText)==null?void 0:re[v==null?void 0:v.type]})})]}),a&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(ki,{...t})]})]})]});return o.jsxs(o.Fragment,{children:[k===!0&&o.jsx(Qi,{visibilty:k,closeSettingFieldSidebar:H,...t}),o.jsx(xi,{...t,fieldWrap:le})]})},xU=t=>{var T;const{field:e,fieldIndex:n,pageIndex:r,sectionIndex:i,rowIndex:a,columnIndex:s,path:l,labelType:c}=t,[u,d]=O.useState(e),{isBuilderMode:f}=zt();O.useEffect(()=>{var C;return x((C=e[c])==null?void 0:C[h==null?void 0:h.type]),()=>{}},[e]);const{userSelectedLanguage:h,fieldSettingUpdate:g,fieldSettingUpdateInlineConditional:v,gridComponentFieldSettingUpdate:m}=sn(),A=(C,E,_)=>{d(M=>({...M,[C]:{...M[C],[E==null?void 0:E.type]:_}}))},[w,x]=O.useState((T=e[c])==null?void 0:T[h==null?void 0:h.type]);O.useEffect(()=>(S(),()=>{}),[u]);const S=()=>{const C=l.split("-").map(Number);(t==null?void 0:t.fieldContainer)==="inline-condition-container"?v(C[fa],C[ha],C[Ca],C[xa],C[Ta],C[Fa],C[Xo],C[wo],u):(C==null?void 0:C.length)>Fa&&(C==null?void 0:C.length)===Bl+1&&(e!=null&&e.componentType)&&(t==null?void 0:t.fieldContainer)==="grid-container"?m(C[fa],C[ha],C[Ca],C[xa],C[Ta],C[5],C[6],C[7],u):g(r,i,a,s,n,{...e,[c]:u[c]})};return o.jsx(o.Fragment,{children:o.jsx(D3,{style:{display:"inline-block"},className:"builder-input-label-edit",html:w,disabled:!f,onChange:C=>{var E;x(k3.sanitize((E=C==null?void 0:C.target)==null?void 0:E.value))},onBlur:C=>{var _;const E=k3.sanitize((_=C==null?void 0:C.target)==null?void 0:_.innerText);x(E),A(c,h,E)},tagName:"article"})})},uye=t=>{var re,Z,X,W,me,be,Te;const{taskRegisterData:e,updateTaskRegisterData:n,updateTaskProgressValue:r,updateUserFormDataSubmit:i,userTaskSubmitFormData:a}=Ar(),{userSelectedLanguage:s,fieldSettingUpdate:l}=sn(),{field:c,fieldIndex:u,sectionIndex:d,pageIndex:f,row:h,rowIndex:g,columnIndex:v,isDisabled:m}=t,{isBuilderMode:A,isAdmin:w}=zt(),[x,S]=O.useState(!1),[T,C]=O.useState(""),[E,_]=O.useState(0),[M,k]=O.useState(!1),[F,P]=O.useState(!1),H=()=>{P(!0)},N=()=>{P(!1)},z=()=>{var ye,de,ne;if(h!=null&&h.rowIsRepeatable){if(h!=null&&h.repeatableFields){const U=[...h.repeatableFields],ee=_t.findIndex(U,function(oe){return oe.uuid===(c==null?void 0:c.uuid)});ee>=0&&U[ee].fieldData?C(U[ee].fieldData):C("")}}else{const U=a;if(U!=null&&U.length){for(const ee of U)if(ee.fieldId===t.field.uuid&&((ye=ee==null?void 0:ee.postData[0])==null?void 0:ye.postValue)!==""&&((de=ee==null?void 0:ee.postData[0])!=null&&de.postValue)){C((ne=ee==null?void 0:ee.postData[0])==null?void 0:ne.postValue);break}}}k(!0)};O.useEffect(()=>{M||z();const ye=Gt.addListener("clearRepeatableFields",ee=>{ee===(h==null?void 0:h.uuid)&&(C(""),_(0),c.isValid=0,l(f,d,g,v,u,c))}),de=Gt.addListener("onSubmitUserForm",()=>{var ee;(ee=c==null?void 0:c.attributes)!=null&&ee.required?T?c.isValid=1:c.isValid=0:c.isValid=1}),ne=Gt.addListener("OnInvalidFieldCatch",ee=>{c.uuid===(ee==null?void 0:ee.fieldId)?_(1):_(0)}),U=Gt.addListener("OnGetFieldValue",ee=>{var ge;const oe=(ge=ee==null?void 0:ee.repeatableColumn)==null?void 0:ge.filter(_e=>(_e==null?void 0:_e.fieldUuid)===(c==null?void 0:c.uuid));oe!=null&&oe.length});return()=>{de.remove(),ne.remove(),U.remove(),ye.remove()}});const $=ye=>{S(ye)},le=()=>{S(!1)},R=ye=>{var U,ee;C(ye.target.value);const de=a,ne=_t.cloneDeep(e);if(de!==null){if((U=ye==null?void 0:ye.target)!=null&&U.value){if(ne[c==null?void 0:c.uuid]=(ee=ye==null?void 0:ye.target)==null?void 0:ee.value,(de==null?void 0:de.length)>0)for(const oe of de)oe.fieldId===t.field.uuid&&(oe.postData[0]={postValue:ye.target.value})}else if(delete ne[c==null?void 0:c.uuid],(de==null?void 0:de.length)>0)for(const oe of de)oe.fieldId===t.field.uuid&&(oe.postData[0]={postValue:""})}if(!(h!=null&&h.rowIsRepeatable)){n(ne);const oe=Object.keys(ne).length;r(oe)}},Y=(ye,de,ne,U)=>{var ee;if(a){const oe=[...a],ge=_t.findIndex(oe,function(Ne){return Ne.rowId===(h==null?void 0:h.uuid)});let _e=(ee=a[ge])==null?void 0:ee.repeatableFields;_e={..._e,[ne==null?void 0:ne.uuid]:U},oe[ge]={...oe[ge],repeatableFields:_e},i(oe)}C(U),U!==""?ne.isValid=1:ne.isValid=0},se=10,K=()=>{const ye=[];for(let de=0;de<=se;de++)ye.push(o.jsxs("label",{children:[o.jsx("input",{onChange:ne=>{h!=null&&h.rowIsRepeatable?Y(f,d,c,ne.target.value):R(ne)},checked:parseInt(T)===de,name:"liker-scale"+(c==null?void 0:c.uuid),type:"radio",value:de,disabled:m}),o.jsx("span",{children:de})]},`field-${c==null?void 0:c.uuid}-likertScale-${de} ${parseInt(T)===de?"scale-selected":""}`));return ye},ie=o.jsxs("div",{onMouseOver:H,onMouseOut:N,children:[A&&F&&o.jsx(Wr,{handleFieldSettingsSidebar:$,...t}),o.jsxs("div",{className:`field ${A&&" py-3 px-4 builder-element-wrapper "}${(c==null?void 0:c.isFluid)===!0&&" p-fluid"}`,children:[o.jsxs("div",{className:"",children:[(c==null?void 0:c.showHeaderText)&&o.jsx("h6",{children:(re=c==null?void 0:c.headerText)==null?void 0:re[s==null?void 0:s.type]}),(c==null?void 0:c.showLabel)&&o.jsxs("label",{htmlFor:u,className:"flex font-bold mb-3 text-gray-900 text-xl",children:[o.jsx(ca,{...t}),((Z=c==null?void 0:c.attributes)==null?void 0:Z.required)&&o.jsx("span",{className:"must-required mr-1",children:"*"})," ",A?o.jsx(aa,{...t}):o.jsx(o.Fragment,{children:(X=c==null?void 0:c.label)==null?void 0:X[s==null?void 0:s.type]}),o.jsx("span",{className:"ml-3",children:(c==null?void 0:c.showToolTip)&&o.jsx(zi,{message:(W=c==null?void 0:c.toolTip)==null?void 0:W[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(xU,{...t,labelType:"startingMessage"})}),o.jsx("div",{className:"font-medium text-900",children:o.jsx(xU,{...t,labelType:"endingMessage"})})]}),o.jsx("div",{className:"likert",children:K()})]})}),o.jsx("div",{children:((me=c==null?void 0:c.attributes)==null?void 0:me.required)&&o.jsx("small",{className:"error",children:E===1&&!T?(be=c==null?void 0:c.validationMesssage)==null?void 0:be.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]})})]}),w&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(ki,{...t})]})]})]});return o.jsxs(o.Fragment,{children:[x===!0&&o.jsx(Qi,{visibilty:x,closeSettingFieldSidebar:le,...t}),o.jsx(xi,{...t,fieldWrap:ie})]})},dye=t=>{var Z,X,W,me,be,Te,ye,de,ne,U,ee,oe;const{taskRegisterData:e,updateTaskRegisterData:n,updateTaskProgressValue:r,updateUserFormDataSubmit:i,userTaskSubmitFormData:a,task_status:s,TASK_PUBLISHED:l}=Ar(),{userSelectedLanguage:c,fieldSettingUpdate:u}=sn(),{field:d,fieldIndex:f,sectionIndex:h,pageIndex:g,row:v,rowIndex:m,columnIndex:A,isDisabled:w}=t,{isBuilderMode:x,isAdmin:S,isRenderView:T}=zt(),[C,E]=O.useState(!1),[_,M]=O.useState(""),[k,F]=O.useState(0),[P,H]=O.useState(!1),[N,z]=O.useState(!1),$=()=>{z(!0)},le=()=>{z(!1)},R=()=>{var ge,_e,Ne;if(v!=null&&v.rowIsRepeatable){if(v!=null&&v.repeatableFields){const ve=[...v.repeatableFields],Ae=_t.findIndex(ve,function(Be){return Be.uuid===(d==null?void 0:d.uuid)});Ae>=0&&ve[Ae].fieldData?M(ve[Ae].fieldData):M("")}}else{const ve=a;if(ve!=null&&ve.length){for(const Ae of ve)if(Ae.fieldId===t.field.uuid&&((ge=Ae==null?void 0:Ae.postData[0])==null?void 0:ge.postValue)!==""&&((_e=Ae==null?void 0:Ae.postData[0])!=null&&_e.postValue)){M((Ne=Ae==null?void 0:Ae.postData[0])==null?void 0:Ne.postValue);break}}}H(!0)};O.useEffect(()=>{P||R();const ge=Gt.addListener("clearRepeatableFields",Ae=>{Ae===(v==null?void 0:v.uuid)&&(M(""),F(0),d.isValid=0,u(g,h,m,A,f,d))}),_e=Gt.addListener("onSubmitUserForm",()=>{var Ae;(Ae=d==null?void 0:d.attributes)!=null&&Ae.required?_?d.isValid=1:d.isValid=0:d.isValid=1}),Ne=Gt.addListener("OnInvalidFieldCatch",Ae=>{d.uuid===(Ae==null?void 0:Ae.fieldId)?F(1):F(0)}),ve=Gt.addListener("OnGetFieldValue",Ae=>{var Ee;const Be=(Ee=Ae==null?void 0:Ae.repeatableColumn)==null?void 0:Ee.filter(B=>(B==null?void 0:B.fieldUuid)===(d==null?void 0:d.uuid));Be!=null&&Be.length});return()=>{_e.remove(),Ne.remove(),ve.remove(),ge.remove()}});const Y=ge=>{E(ge)},se=()=>{E(!1)},K=ge=>{var ve,Ae;M(ge.target.value);const _e=a,Ne=_t.cloneDeep(e);if(_e!==null){if((ve=ge==null?void 0:ge.target)!=null&&ve.value){if(Ne[d==null?void 0:d.uuid]=(Ae=ge==null?void 0:ge.target)==null?void 0:Ae.value,(_e==null?void 0:_e.length)>0)for(const Be of _e)Be.fieldId===t.field.uuid&&(Be.postData[0]={postValue:ge.target.value})}else if(delete Ne[d==null?void 0:d.uuid],(_e==null?void 0:_e.length)>0)for(const Be of _e)Be.fieldId===t.field.uuid&&(Be.postData[0]={postValue:""})}if(!(v!=null&&v.rowIsRepeatable)){n(Ne);const Be=Object.keys(Ne).length;r(Be)}},ie=(ge,_e)=>{var Ne;if(a){const ve=[...a],Ae=_t.findIndex(ve,function(Ee){return Ee.rowId===(v==null?void 0:v.uuid)});let Be=(Ne=a[Ae])==null?void 0:Ne.repeatableFields;Be={...Be,[ge==null?void 0:ge.uuid]:_e},ve[Ae]={...ve[Ae],repeatableFields:Be},i(ve)}M(_e),_e!==""?ge.isValid=1:ge.isValid=0},re=o.jsxs("div",{onMouseOver:$,onMouseOut:le,children:[x&&N&&o.jsx(Wr,{handleFieldSettingsSidebar:Y,...t}),o.jsxs("div",{className:`field ${x&&" py-3 px-4 builder-element-wrapper "}${(d==null?void 0:d.isFluid)===!0&&" p-fluid"}`,children:[o.jsx("div",{className:"grid",children:o.jsxs("div",{className:x?"col-12 p-fluid":"col-12 ",children:[(d==null?void 0:d.showHeaderText)&&o.jsx("h6",{children:(Z=d==null?void 0:d.headerText)==null?void 0:Z[c==null?void 0:c.type]}),(d==null?void 0:d.showLabel)&&o.jsxs("label",{htmlFor:f,className:"flex font-bold mb-3 text-gray-900 text-xl",children:[o.jsx(ca,{...t}),((X=d==null?void 0:d.attributes)==null?void 0:X.required)&&o.jsx("span",{className:"must-required mr-1",children:"*"})," ",x?o.jsx(aa,{...t}):o.jsx(o.Fragment,{children:(W=d==null?void 0:d.label)==null?void 0:W[c==null?void 0:c.type]}),o.jsx("span",{className:"ml-3",children:(d==null?void 0:d.showToolTip)&&o.jsx(zi,{message:(me=d==null?void 0:d.toolTip)==null?void 0:me[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=(be=d==null?void 0:d.icon)==null?void 0:be.properties)==null?void 0:Te.name)}),o.jsx(wn,{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:()=>F(1),onChange:ge=>{v!=null&&v.rowIsRepeatable?ie(d,ge.target.value):K(ge)},className:k===1&&((de=d==null?void 0:d.attributes)!=null&&de.required)?_?"valid mt-2 mr-2":"invalid mt-2":"valid mt-2",readOnly:w,disabled:S||w})]}),o.jsx("div",{children:((ne=d==null?void 0:d.attributes)==null?void 0:ne.required)&&o.jsx("small",{className:"error",children:k===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:(ee=d==null?void 0:d.helperText)==null?void 0:ee[c==null?void 0:c.type]})})]})]})}),o.jsx("p",{className:"text-center",children:o.jsx("span",{className:`${(oe=d==null?void 0:d.fontStyle)==null?void 0:oe.font} text-center`,style:{fontSize:d==null?void 0:d.fontSize},children:_})}),S&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(ki,{...t})]})]})]});return o.jsxs(o.Fragment,{children:[C===!0&&o.jsx(Qi,{visibilty:C,closeSettingFieldSidebar:se,...t}),o.jsx(xi,{...t,fieldWrap:re})]})},fye={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},hye=t=>{var ne,U,ee,oe,ge,_e,Ne,ve,Ae,Be,Ee,B,fe,he,ce,pe,Se;const{updateUserFormDataSubmit:e,taskRegisterData:n,updateTaskRegisterData:r,updateTaskProgressValue:i,userTaskSubmitFormData:a,TASK_PUBLISHED:s,task_status:l}=Ar(),{globalAlignment:c}=zt(),{userSelectedLanguage:u,fieldSettingUpdate:d}=sn(),{isAdmin:f,isBuilderMode:h}=zt(),g=De=>{const Me=De.collapsed?"pi pi-chevron-down":"pi pi-chevron-up",ze=`${De.className} justify-content-start`,rt=`${De.titleClassName} pl-1`;return o.jsxs("div",{className:ze,children:[o.jsxs("button",{className:De.togglerClassName,onClick:De.onTogglerClick,children:[o.jsx("span",{className:Me}),o.jsx(Qt,{})]}),o.jsx("span",{className:rt,children:Y})]})},{field:v,fieldIndex:m,sectionIndex:A,pageIndex:w,row:x,rowIndex:S,columnIndex:T,isDisabled:C}=t,[E,_]=O.useState(!1),[M,k]=O.useState(null),[F,P]=O.useState(fye),[H,N]=O.useState(!1),z=()=>{N(!0)},$=()=>{N(!1)},le=(De,Me)=>{var ze;if(a){const rt=[...a],it=_t.findIndex(rt,function(Ht){return Ht.rowId===(x==null?void 0:x.uuid)});let ht=(ze=a[it])==null?void 0:ze.repeatableFields;ht={...ht,[De==null?void 0:De.uuid]:`${Me==null?void 0:Me.addressOne}, ${Me==null?void 0:Me.addressTwo}, ${Me==null?void 0:Me.zipcode}`},rt[it]={...rt[it],repeatableFields:ht},e(rt)}P(Me)},R=(De,Me)=>{let ze={...F};ze={...ze,[De]:Me},P(ze),(ze==null?void 0:ze.addressOne)!==""&&(ze!=null&&ze.addressTwo)&&(ze!=null&&ze.zipcode)&&ye(ze==null?void 0:ze.zipcode)?(v.isValid=1,x!=null&&x.rowIsRepeatable?le(v,ze):me(ze,!0)):(v.isValid=0,x!=null&&x.rowIsRepeatable||me(null,!1))},[Y]=O.useState((ne=v==null?void 0:v.label)==null?void 0:ne[u==null?void 0:u.type]),[se,K]=O.useState(0),[ie,re]=O.useState(!1),Z=()=>{var De,Me;if(!(x!=null&&x.rowIsRepeatable)){const ze=a;if(ze!=null&&ze.length){for(const rt of ze)if(rt.fieldId===t.field.uuid&&((De=rt==null?void 0:rt.postData[0])!=null&&De.postValue)){P((Me=rt==null?void 0:rt.postData[0])==null?void 0:Me.postValue);break}}}re(!0)};O.useEffect(()=>{ie||Z();const De=Gt.addListener("clearRepeatableFields",ht=>{ht===(x==null?void 0:x.uuid)&&(K(0),v.isValid=0,d(w,A,S,T,m,v))}),Me=Gt.addListener("onSubmitUserForm",()=>{var ht;(ht=v==null?void 0:v.attributes)!=null&&ht.required?(F==null?void 0:F.addressOne)!==""&&(F==null?void 0:F.zipcode)!==""&&ye(F==null?void 0:F.zipcode)?v.isValid=1:v.isValid=0:v.isValid=1}),ze=Gt.addListener("OnInvalidFieldCatch",ht=>{v.uuid===(ht==null?void 0:ht.fieldId)?K(1):K(0)}),rt=Gt.addListener("OnGetFieldValue",ht=>{var hn;const Ht=(hn=ht==null?void 0:ht.repeatableColumn)==null?void 0:hn.filter(Ut=>(Ut==null?void 0:Ut.fieldUuid)===(v==null?void 0:v.uuid));Ht!=null&&Ht.length}),it=Gt.addListener("formFieldAdded",ht=>{M===null&&k(ht.uuid)});return()=>{Me.remove(),ze.remove(),rt.remove(),De.remove(),it.remove()}});const X=De=>{_(De)},W=()=>{_(!1)},me=(De,Me)=>{const ze=a,rt=_t.cloneDeep(n);if(Me){if(rt[v==null?void 0:v.uuid]=De,(ze==null?void 0:ze.length)>0)for(const it of ze)it.fieldId===t.field.uuid&&(it.postData[0]={postValue:De})}else if(delete rt[v==null?void 0:v.uuid],(ze==null?void 0:ze.length)>0)for(const it of ze)it.fieldId===t.field.uuid&&(it.postData[0]={postValue:De});if(!(x!=null&&x.rowIsRepeatable)){r(rt);const it=Object.keys(rt).length;i(it)}},be=()=>{let De="";return h&&(De=De+" field-form-builder"),l===s&&f===!0&&(De=De+" card"),De},Te=()=>{let De=!1;return F.addressOne!==""&&F.zipcode!==""&&ye(F.zipcode)&&(De=!0),De};function ye(De){const Me=/\d/.test(De),ze=/[a-zA-Z]/.test(De);return Me&&ze?!0:!!Me}O.useEffect(()=>(M!==null&&setTimeout(()=>{k(null)},1e3),()=>{}),[M]);const de=o.jsxs("div",{onMouseOver:z,onMouseOut:$,children:[h&&H&&o.jsx(Wr,{handleFieldSettingsSidebar:X,...t}),o.jsxs("div",{className:`field ${h&&" py-3 px-4 builder-element-wrapper "}${(v==null?void 0:v.isFluid)===!0&&" p-fluid"}`,children:[o.jsx("div",{className:"grid",children:o.jsxs("div",{className:`col-12 ${h&&"p-fluid"}`,children:[(v==null?void 0:v.showHeaderText)&&o.jsx("h6",{children:(U=v==null?void 0:v.headerText)==null?void 0:U[u==null?void 0:u.type]}),(v==null?void 0:v.showLabel)&&o.jsxs("label",{htmlFor:m,className:"flex font-bold mb-3 text-gray-900 text-xl",children:[o.jsx(ca,{...t}),((ee=v==null?void 0:v.attributes)==null?void 0:ee.required)&&o.jsx("span",{className:"must-required mr-1",children:"*"})," ",h?o.jsx(o.Fragment,{children:(oe=v==null?void 0:v.label)==null?void 0:oe[u==null?void 0:u.type]}):o.jsx(aa,{...t}),o.jsx("span",{className:"ml-3",children:(v==null?void 0:v.showToolTip)&&o.jsx(zi,{message:(ge=v==null?void 0:v.toolTip)==null?void 0:ge[u==null?void 0:u.type],position:"right"})})]}),o.jsxs("div",{className:"mt-3 p-fluid",children:[o.jsx("div",{children:o.jsx("label",{className:"w-full",htmlFor:"",children:(_e=v==null?void 0:v.addresslineFirstLabel)==null?void 0:_e[u==null?void 0:u.type]})}),o.jsx(wn,{value:F.addressOne||"",onChange:De=>R("addressOne",De.target.value),className:"my-2 ",readOnly:C,disabled:f||C}),o.jsx("div",{children:o.jsx("label",{htmlFor:"",children:(Ne=v==null?void 0:v.addresslineSecondLabel)==null?void 0:Ne[u==null?void 0:u.type]})}),o.jsx(wn,{value:F.addressTwo||"",onChange:De=>R("addressTwo",De.target.value),className:"my-2",readOnly:C,disabled:f||C}),o.jsx("div",{children:o.jsx("label",{htmlFor:"",children:(ve=v==null?void 0:v.postalcodeLabel)==null?void 0:ve[u==null?void 0:u.type]})}),o.jsx(wn,{value:F.zipcode||"",onChange:De=>R("zipcode",De.target.value),className:"my-2",readOnly:C,disabled:f||C}),o.jsx("p",{children:!ye(F.zipcode)&&o.jsx("small",{children:"Cannot be alphabetical only."})}),((Ae=v==null?void 0:v.attributes)==null?void 0:Ae.required)&&!Te()&&o.jsx("small",{className:"error",children:se===1?(Be=v==null?void 0:v.validationMesssage)==null?void 0:Be.language:""}),(v==null?void 0:v.showBillingAddress)===!0&&o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:"field-checkbox",children:[o.jsx(Yr,{inputId:"binary",checked:F.isBillingAddressSame,onChange:De=>{R("isBillingAddressSame",De.checked),De.checked?P(Me=>({...Me,billingCountry:F.country,billingCity:F.city,billingState:F.state,billingAddressOne:F.addressOne,billingAddressTwo:F.addressTwo,billingZipcode:F.zipcode})):P(Me=>({...Me,billingCountry:null,billingCity:null,billingState:null,billingAddressOne:null,billingAddressTwo:null,billingZipcode:null}))},disabled:f||C}),o.jsx("label",{htmlFor:"binary",children:"Is Billing Address Same"})]}),F.isBillingAddressSame===!1&&o.jsxs(o.Fragment,{children:[(v==null?void 0:v.showLabel)&&o.jsxs("label",{htmlFor:m,className:"flex font-medium mb-3 text-700 text-2xl",children:[((Ee=v==null?void 0:v.attributes)==null?void 0:Ee.required)&&o.jsx("span",{className:"must-required",children:"*"})," ",(B=v==null?void 0:v.billingLabel)==null?void 0:B[u==null?void 0:u.type],o.jsx("span",{className:"ml-3",children:(v==null?void 0:v.showToolTip)&&o.jsx(zi,{message:(fe=v==null?void 0:v.toolTip)==null?void 0:fe[u==null?void 0:u.type],position:"right"})})]}),o.jsx("label",{htmlFor:"",children:(he=v==null?void 0:v.addresslineFirstLabel)==null?void 0:he[u==null?void 0:u.type]}),o.jsx(wn,{value:F.billingAddressOne||"",onChange:De=>R("billingAddressOne",De.target.value),className:"my-2",readOnly:C,disabled:f||C}),o.jsx("label",{htmlFor:"",children:(ce=v==null?void 0:v.addresslineSecondLabel)==null?void 0:ce[u==null?void 0:u.type]}),o.jsx(wn,{value:F.billingAddressTwo||"",onChange:De=>R("billingAddressTwo",De.target.value),className:"my-2",readOnly:C,disabled:f||C}),o.jsx("label",{htmlFor:"",children:(pe=v==null?void 0:v.postalcodeLabel)==null?void 0:pe[u==null?void 0:u.type]}),o.jsx(wn,{value:F.billingZipcode||"",onChange:De=>R("billingZipcode",De.target.value),className:"my-2",readOnly:C,disabled:f||C}),!ye(F.billingZipcode)&&o.jsx("small",{children:"Cannot be alphabetical only."})]})]}),o.jsx("div",{}),o.jsx("div",{children:(v==null?void 0:v.showHelperText)&&o.jsx("small",{children:(Se=v==null?void 0:v.helperText)==null?void 0:Se[u==null?void 0:u.type]})})]})]})}),f&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(ki,{...t})]})]})]});return o.jsxs(o.Fragment,{children:[E===!0&&o.jsx(Qi,{visibilty:E,closeSettingFieldSidebar:W,...t}),o.jsx("div",{dir:c?"ltr":"rtl",className:be(),children:l===s&&f===!0?o.jsx(ci,{headerTemplate:g,toggleable:!0,children:de}):de})]})},pye=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:g,columnIndex:v}=t,{handleDrop:m}=sn(),{isAdvanceView:A,isBuilderMode:w}=zt(),x=(T,C)=>{s(T,C)};return o.jsxs("div",{className:"p-2 py-4",children:[n&&((S=a.children)==null?void 0:S.length)>0&&a.children.map((T,C)=>{const E=T[`${n.rowIndex}-${n.columnIndex}`];return E?o.jsx("div",{children:o.jsx(Lc,{type:"grid",showFieldIcons:!1,onChange:x,data:E,field:E,path:`${i}-${n.rowIndex}-${n.columnIndex}-${C}`,sectionIndex:l,page:c,column:d,row:u,section:f,pageIndex:h,rowIndex:g,columnIndex:v,fieldIndex:C,fieldContainer:"grid-container"})},`${n.rowIndex}-${n.columnIndex}-${C}`):null}),n&&w===!0&&o.jsx("div",{className:"py-5",children:o.jsx(Fr,{isAdvanceView:A,fieldDropArea:!0,data:{path:`${i}-${n.rowIndex}-${r}`,childrenCount:1,droppedField:e},onDrop:m})})]})},TU=t=>{var P,H,N,z,$,le,R;const{field:e,column:n,section:r,row:i,rowIndex:a,columnIndex:s,sectionIndex:l,userSelectedLanguage:c,fieldIndex:u,customColumnHeaderTemplate:d,onSetValuetoPostData:f,setAllFields:h,allFields:g,actionHeaderTemplate:v,actionBodyTemplate:m,isFocus:A,inputValue:w,handleFieldSettingsSidebar:x,isAdmin:S,emitSocketData:T,isRenderView:C}=t,[E,_]=O.useState(!1),{isBuilderMode:M}=zt(),k=()=>{_(!0)},F=()=>{_(!1)};return o.jsxs("div",{onMouseOver:k,onMouseOut:F,children:[M&&E&&o.jsx(Wr,{handleFieldSettingsSidebar:x,...t}),o.jsxs("div",{className:`field ${M&&" py-3 px-4 builder-element-wrapper "}${(e==null?void 0:e.isFluid)===!0&&" p-fluid"}`,children:[o.jsx("div",{className:"grid",children:o.jsxs("div",{className:"col-12",children:[(e==null?void 0:e.showHeaderText)&&o.jsx("h6",{children:(P=e==null?void 0:e.headerText)==null?void 0:P[c==null?void 0:c.type]}),(e==null?void 0:e.showLabel)&&o.jsxs("label",{htmlFor:u,className:"flex font-bold mb-3 text-gray-900 text-xl",children:[o.jsx(ca,{...t}),((H=e==null?void 0:e.attributes)==null?void 0:H.required)&&o.jsx("span",{className:"must-required mr-1",children:"*"})," ",M?o.jsx(aa,{...t}):o.jsx(o.Fragment,{children:(N=e==null?void 0:e.label)==null?void 0:N[c==null?void 0:c.type]}),o.jsx("span",{className:"ml-3",children:(e==null?void 0:e.showToolTip)&&o.jsx(zi,{message:(z=e==null?void 0:e.toolTip)==null?void 0:z[c==null?void 0:c.type],position:"right"})})]}),o.jsxs("div",{className:"mt-3",children:[o.jsxs(ro,{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((Y,se)=>o.jsx(xr,{style:{minWidth:350},header:d(Y,se),body:(K,ie)=>o.jsx(pye,{customColumn:Y,section:r,column:n,columnIndex:s,row:i,rowIndex:a,sectionIndex:l,e:K,indexes:ie,customColumnIndex:se,onSetValuetoPostData:f,setAllFields:h,allFields:g,emitSocketData:T,field:e,...t})},Y==null?void 0:Y.uuid)),M&&o.jsx(xr,{frozen:!0,header:Y=>v(Y),body:(Y,se)=>m(Y,se),headerStyle:{textAlign:"left"},bodyStyle:{textAlign:"left",overflow:"visible"}})]}),o.jsx("div",{children:(($=e==null?void 0:e.attributes)==null?void 0:$.required)&&o.jsx("small",{className:"error",children:A===1&&!w?(le=e==null?void 0:e.validationMesssage)==null?void 0:le.english:""})}),o.jsx("div",{children:(e==null?void 0:e.showHelperText)&&o.jsx("small",{children:(R=e==null?void 0:e.helperText)==null?void 0:R[c==null?void 0:c.type]})})]})]})}),S&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(ki,{...t})]})]})]})},gye=({showAddNewColumn:t,setShowAddNewColumn:e,customColumnEditModalData:n,onHandleChangeCustomColumnSetting:r})=>{const[i,a]=O.useState((n==null?void 0:n.customKey)||"");return o.jsx(Os,{maximizable:!0,header:"Update column title",visible:t,style:{width:"20vw"},footer:()=>o.jsx(Ft,{text:!0,label:"Save",onClick:()=>{r(n,i),e(!1)}}),onHide:()=>e(!1),children:o.jsx("div",{className:"p-fluid",children:o.jsx(wn,{value:i,onChange:s=>{a(s.target.value)}})})})},EU=t=>{var de;const{globalAlignment:e}=zt(),n=ne=>{const U=ne.collapsed?"pi pi-chevron-down":"pi pi-chevron-up",ee=`${ne.className} justify-content-start`,oe=`${ne.titleClassName} pl-1`;return o.jsxs("div",{className:ee,children:[o.jsxs("button",{className:ne.togglerClassName,onClick:ne.onTogglerClick,children:[o.jsx("span",{className:U}),o.jsx(Qt,{})]}),o.jsx("span",{className:oe,children:C})]})},{userTaskSubmitFormData:r,TASK_PUBLISHED:i,task_status:a}=Ar(),{userSelectedLanguage:s,fieldSettingUpdate:l}=sn(),{isBuilderMode:c}=zt(),{field:u,fieldIndex:d,sectionIndex:f,pageIndex:h,row:g,rowIndex:v,columnIndex:m,isAdmin:A}=t,[w,x]=O.useState(!1),[S,T]=O.useState(""),[C]=O.useState((de=u==null?void 0:u.label)==null?void 0:de[s==null?void 0:s.type]),[E,_]=O.useState(0),[M,k]=O.useState(!1),[F,P]=O.useState(null),[H,N]=O.useState([]),z=()=>{var ne,U,ee;if(g!=null&&g.rowIsRepeatable){if(g!=null&&g.repeatableFields){const oe=[...g.repeatableFields],ge=_t.findIndex(oe,function(_e){return _e.uuid===(u==null?void 0:u.uuid)});ge>=0&&oe[ge].fieldData?T(oe[ge].fieldData):T("")}}else{const oe=r;if(oe!=null&&oe.length){for(const ge of oe)if(ge.fieldId===t.field.uuid&&((ne=ge==null?void 0:ge.postData[0])==null?void 0:ne.postValue)!==""&&((U=ge==null?void 0:ge.postData[0])!=null&&U.postValue)){T((ee=ge==null?void 0:ge.postData[0])==null?void 0:ee.postValue);break}}}k(!0)},$=()=>{const ne=u;ne.customColumnsForOptions=[...ne.customColumnsForOptions,{customKey:"Column",uuid:tt()}],ye(ne)},[le,R]=O.useState(!1),Y=(ne,U)=>{var ee;return o.jsxs(o.Fragment,{children:[((ee=u==null?void 0:u.options)==null?void 0:ee.length)>1&&o.jsx(Ft,{text:!0,type:"button",className:"p-button-danger left-space ",icon:"pi pi-trash",onClick:()=>ie(ne==null?void 0:ne.uuid,U==null?void 0:U.rowIndex),rounded:!0,severity:"secondary","aria-label":"Bookmark",size:"small"}),o.jsx(Ft,{text:!0,type:"button",icon:"pi pi-plus",rounded:!0,severity:"secondary",onClick:()=>be(),"aria-label":"Add Row",size:"small"})]})},se=(ne,U)=>{var ee;return o.jsxs(o.Fragment,{children:[ne==null?void 0:ne.customKey,c===!0&&o.jsxs(o.Fragment,{children:[((ee=u==null?void 0:u.customColumnsForOptions)==null?void 0:ee.length)>1&&o.jsx("i",{className:"pi pi-trash ml-3",onClick:()=>re(ne==null?void 0:ne.uuid,U)}),o.jsx("i",{className:"pi pi-cog ml-3",onClick:()=>{P(ne),R(!0)}})]})]})},K=()=>o.jsx(o.Fragment,{children:o.jsx(Ft,{text:!0,icon:"pi pi-plus",onClick:()=>$(),rounded:!0,severity:"secondary","aria-label":"Cancel"})}),ie=(ne,U)=>{var Ne,ve;const ee=(Ne=u==null?void 0:u.customColumnsForOptions)==null?void 0:Ne.length,oe=[...(u==null?void 0:u.children)||[]];(ve=u==null?void 0:u.children)==null||ve.map(Ae=>{for(let Be=0;Be<ee;Be++)if(Ae[`${U}-${Be}`]!==void 0){const Ee=_t.findIndex(oe,function(B){return B[`${U}-${Be}`]!==void 0});oe.splice(Ee,1)}});for(let Ae=0;Ae<(oe==null?void 0:oe.length);Ae++){const Be=oe[Ae],B=Object.keys(Be)[0].split("-");parseInt(B[0])>U&&(oe[Ae]={[`${parseInt(B[0])-1}-${B[1]}`]:oe[Ae][`${parseInt(B[0])}-${B[1]}`]})}const ge=u==null?void 0:u.options.filter(function(Ae){return(Ae==null?void 0:Ae.uuid)!==ne}),_e={...u,children:[...oe]};_e.options=ge,ye(_e)},re=(ne,U)=>{var ve,Ae;const ee=_t.findIndex(u==null?void 0:u.customColumnsForOptions,Be=>Be.uuid===ne),oe=u==null?void 0:u.customColumnsForOptions.filter(function(Be,Ee){return Ee!==ee}),ge=(ve=u==null?void 0:u.options)==null?void 0:ve.length,_e=[...(u==null?void 0:u.children)||[]];(Ae=u==null?void 0:u.children)==null||Ae.map(Be=>{for(let Ee=0;Ee<ge;Ee++)if(Be[`${Ee}-${U}`]!==void 0){const B=_t.findIndex(_e,function(fe){return fe[`${Ee}-${U}`]!==void 0});_e.splice(B,1)}});for(let Be=0;Be<(_e==null?void 0:_e.length);Be++){const Ee=_e[Be],fe=Object.keys(Ee)[0].split("-");parseInt(fe[1])>U&&(_e[Be]={[`${parseInt(fe[0])}-${parseInt(fe[1])-1}`]:_e[Be][`${parseInt(fe[0])}-${fe[1]}`]})}const Ne={...u,children:[..._e]};Ne.customColumnsForOptions=oe,ye(Ne)};O.useEffect(()=>{M||z();const ne=Gt.addListener("clearRepeatableFields",ge=>{ge===(g==null?void 0:g.uuid)&&(T(""),_(0),u.isValid=0,l(h,f,v,m,d,u))}),U=Gt.addListener("onSubmitUserForm",()=>{var ge;(ge=u==null?void 0:u.attributes)!=null&&ge.required&&(u.isValid=1)}),ee=Gt.addListener("OnInvalidFieldCatch",ge=>{u.uuid===(ge==null?void 0:ge.fieldId)?_(1):_(0)}),oe=Gt.addListener("OnGetFieldValue",ge=>{var Ne;const _e=(Ne=ge==null?void 0:ge.repeatableColumn)==null?void 0:Ne.filter(ve=>(ve==null?void 0:ve.fieldUuid)===(u==null?void 0:u.uuid));_e!=null&&_e.length});return()=>{U.remove(),ee.remove(),oe.remove(),ne.remove()}});const Z=ne=>{x(ne)},X=()=>{x(!1)},W=(ne,U)=>{var oe;const ee=r;if((ee==null?void 0:ee.length)>0)for(const ge of ee)ge.fieldId===t.field.uuid&&(ge.postData[0]={postValue:{...(oe=ge.postData[0])==null?void 0:oe.postValue,[ne]:U}})},me=()=>{let ne="";return c&&(ne=ne+" field-form-builder"),a===i&&A===!0&&(ne=ne+" card"),ne},be=()=>{const ne=u;ne.options=[...ne.options,{uuid:tt(),custom_values:{}}],ye(ne)},Te=(ne,U)=>{P(_e=>_e===null?{customKey:U,uuid:""}:{..._e,customKey:U});const ee=u.customColumnsForOptions,oe=ee.findIndex(_e=>_e.uuid===ne.uuid);ee[oe]={...ee[oe],customKey:U};const ge=u;ge.customColumnsForOptions=ee,ye(ge)},ye=ne=>{l(h,f,v,m,d,ne)};return o.jsxs(o.Fragment,{children:[le&&o.jsx(gye,{showAddNewColumn:le,setShowAddNewColumn:R,customColumnEditModalData:F,onHandleChangeCustomColumnSetting:Te}),w&&o.jsx(Qi,{visibilty:w,closeSettingFieldSidebar:X,...t}),o.jsx("div",{dir:e,className:me(),children:a===i&&A===!0?o.jsx(ci,{headerTemplate:n,toggleable:!0,children:o.jsx(TU,{...t,field:u,userSelectedLanguage:s,fieldIndex:d,pageIndex:h,columnIndex:m,customColumnHeaderTemplate:se,onSetValuetoPostData:W,setAllFields:ne=>N(ne),allFields:H,actionHeaderTemplate:K,actionBodyTemplate:Y,addOption:be,isFocus:E,inputValue:S,handleFieldSettingsSidebar:Z,isAdmin:A})}):o.jsx(TU,{...t,field:u,userSelectedLanguage:s,fieldIndex:d,pageIndex:h,columnIndex:m,customColumnHeaderTemplate:se,onSetValuetoPostData:W,setAllFields:ne=>N(ne),allFields:H,actionHeaderTemplate:K,actionBodyTemplate:Y,addOption:be,isFocus:E,inputValue:S,handleFieldSettingsSidebar:Z,isAdmin:A})})]})},mye=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(Pa,{value:a[`${n==null?void 0:n.rowIndex}-${r}`],options:e.options,onChange:l=>s(l.value),optionLabel:"label",placeholder:"Select"})})},IU=t=>{var S,T,C,E,_,M,k;const{field:e,userSelectedLanguage:n,fieldIndex:r,customColumnHeaderTemplate:i,customColumnRowBodyTemplate:a,setAllFields:s,allFields:l,actionHeaderTemplate:c,actionBodyTemplate:u,isFocus:d,inputValue:f,handleFieldSettingsSidebar:h,isAdmin:g}=t,{isBuilderMode:v}=zt(),[m,A]=O.useState(!1),w=()=>{A(!0)},x=()=>{A(!1)};return o.jsxs("div",{onMouseOver:w,onMouseOut:x,children:[v&&m&&o.jsx(Wr,{handleFieldSettingsSidebar:h,...t}),o.jsxs("div",{className:`field ${v&&" py-3 px-4 builder-element-wrapper "}${(e==null?void 0:e.isFluid)===!0&&" p-fluid"}`,children:[o.jsx("div",{className:"grid",children:o.jsxs("div",{className:`col-12 ${v&&"p-fluid"}`,children:[(e==null?void 0:e.showHeaderText)&&o.jsx("h6",{children:(S=e==null?void 0:e.headerText)==null?void 0:S[n==null?void 0:n.type]}),(e==null?void 0:e.showLabel)&&o.jsxs("label",{htmlFor:r,className:"flex font-bold mb-3 text-gray-900 text-xl",children:[o.jsx(ca,{...t}),((T=e==null?void 0:e.attributes)==null?void 0:T.required)&&o.jsx("span",{className:"must-required",children:"*"})," ",v?o.jsx(aa,{...t}):o.jsx(o.Fragment,{children:(C=e==null?void 0:e.label)==null?void 0:C[n==null?void 0:n.type]}),o.jsx("span",{className:"ml-3",children:(e==null?void 0:e.showToolTip)&&o.jsx(zi,{message:(E=e==null?void 0:e.toolTip)==null?void 0:E[n==null?void 0:n.type],position:"right"})})]}),o.jsxs("div",{className:"mt-3",children:[o.jsxs(ro,{showGridlines:!0,value:e==null?void 0:e.rows,children:[o.jsx(xr,{frozen:!0,header:"",headerStyle:{textAlign:"left"},bodyStyle:{textAlign:"left",overflow:"visible"},body:F=>a(F)}),e==null?void 0:e.customColumns.map((F,P)=>o.jsx(xr,{header:i(F),headerStyle:{textAlign:"left"},bodyStyle:{textAlign:"left",overflow:"visible"},body:(H,N)=>o.jsx(mye,{customColumn:F,e:H,indexes:N,customColumnIndex:P,setAllFields:s,allFields:l,...t})},F==null?void 0:F.uuid)),v===!0&&o.jsx(xr,{frozen:!0,header:F=>c(F),body:F=>u(F),headerStyle:{textAlign:"left"},bodyStyle:{textAlign:"left",overflow:"visible"}})]}),o.jsx("div",{children:((_=e==null?void 0:e.attributes)==null?void 0:_.required)&&o.jsx("small",{className:"error",children:d===1&&!f?(M=e==null?void 0:e.validationMesssage)==null?void 0:M.english:""})}),o.jsx("div",{children:(e==null?void 0:e.showHelperText)&&o.jsx("small",{children:(k=e==null?void 0:e.helperText)==null?void 0:k[n==null?void 0:n.type]})})]})]})}),g&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(ki,{...t})]})]})]})},vye=(t,e)=>{var Be,Ee;const n=B=>{const fe=B.collapsed?"pi pi-chevron-down":"pi pi-chevron-up",he=`${B.className} justify-content-start`,ce=`${B.titleClassName} pl-1`;return o.jsxs("div",{className:he,children:[o.jsxs("button",{className:B.togglerClassName,onClick:B.onTogglerClick,children:[o.jsx("span",{className:fe}),o.jsx(Qt,{})]}),o.jsx("span",{className:ce,children:E})]})},{userTaskSubmitFormData:r,TASK_PUBLISHED:i,task_status:a}=Ar(),{globalAlignment:s,isAdmin:l,isBuilderMode:c}=zt(),{userSelectedLanguage:u,fieldSettingUpdate:d}=sn(),{field:f,fieldIndex:h,sectionIndex:g,pageIndex:v,row:m,rowIndex:A,columnIndex:w}=t,[x,S]=O.useState(!1),[T,C]=O.useState(""),[E]=O.useState((Be=f==null?void 0:f.label)==null?void 0:Be[u==null?void 0:u.type]),[_,M]=O.useState(0),[k,F]=O.useState(!1),[P,H]=O.useState(null),[N,z]=O.useState(null),[$,le]=O.useState({}),R=()=>{var B,fe,he;if(m!=null&&m.rowIsRepeatable){if(m!=null&&m.repeatableFields){const ce=[...m.repeatableFields],pe=_t.findIndex(ce,function(Se){return Se.uuid===(f==null?void 0:f.uuid)});pe>=0&&ce[pe].fieldData?C(ce[pe].fieldData):C("")}}else{const ce=r;if(ce!=null&&ce.length){for(const pe of ce)if(pe.fieldId===t.field.uuid&&((B=pe==null?void 0:pe.postData[0])==null?void 0:B.postValue)!==""&&((fe=pe==null?void 0:pe.postData[0])!=null&&fe.postValue)){C((he=pe==null?void 0:pe.postData[0])==null?void 0:he.postValue);break}}}F(!0)},Y=()=>{const B=f;B.customColumns=[...B.customColumns,{customKey:"Column",uuid:tt(),options:[]}],ge(B)},[se,K]=O.useState(!1),[ie,re]=O.useState(!1),Z=B=>{var fe;return o.jsxs(o.Fragment,{children:[((fe=f==null?void 0:f.rows)==null?void 0:fe.length)>1&&o.jsx(Ft,{text:!0,type:"button",icon:"pi pi-trash",rounded:!0,severity:"secondary",onClick:()=>be(B==null?void 0:B.uuid),"aria-label":"Add Row"}),o.jsx(Ft,{text:!0,type:"button",icon:"pi pi-plus",rounded:!0,severity:"secondary",onClick:()=>U(),"aria-label":"Add Row"})]})},X=B=>{var fe;return o.jsxs(o.Fragment,{children:[B==null?void 0:B.customKey,c===!0&&o.jsxs(o.Fragment,{children:[((fe=f==null?void 0:f.customColumns)==null?void 0:fe.length)>1&&o.jsx("i",{className:"pi pi-trash ml-3",onClick:()=>Te(B==null?void 0:B.uuid)}),o.jsx("i",{className:"pi pi-cog ml-3",onClick:()=>{H(B),K(!0)}})]})]})},W=()=>o.jsx(o.Fragment,{children:o.jsx(Ft,{text:!0,type:"button",icon:"pi pi-plus",rounded:!0,severity:"secondary",onClick:()=>Y(),"aria-label":"Add Column"})}),me=B=>o.jsxs(o.Fragment,{children:[B==null?void 0:B.rowHeading,c===!0&&o.jsx(o.Fragment,{children:o.jsx("i",{className:"pi pi-cog ml-3",onClick:()=>{z(B),re(!0)}})})]}),be=B=>{const fe=f==null?void 0:f.rows.filter(function(ce){return(ce==null?void 0:ce.uuid)!==B}),he=f;he.rows=fe,ge(he)},Te=B=>{const fe=_t.findIndex(f==null?void 0:f.customColumns,pe=>pe.uuid===B),he=f==null?void 0:f.customColumns.filter(function(pe,Se){return Se!==fe}),ce=f;ce.customColumns=he,ge(ce)};O.useEffect(()=>{k||R();const B=Gt.addListener("clearRepeatableFields",ce=>{ce===(m==null?void 0:m.uuid)&&(C(""),M(0),f.isValid=0,d(v,g,A,w,h,f))}),fe=Gt.addListener("OnInvalidFieldCatch",ce=>{f.uuid===(ce==null?void 0:ce.fieldId)?M(1):M(0)}),he=Gt.addListener("OnGetFieldValue",ce=>{var Se;const pe=(Se=ce==null?void 0:ce.repeatableColumn)==null?void 0:Se.filter(De=>(De==null?void 0:De.fieldUuid)===(f==null?void 0:f.uuid));pe!=null&&pe.length});return()=>{fe.remove(),he.remove(),B.remove()}});const ye=B=>{S(B)},de=()=>{S(!1)},ne=()=>{let B="";return c&&(B=B+" field-form-builder"),a===i&&l===!0&&(B=B+" card"),B},U=()=>{const B=f;B.rows=[...B.rows,{rowHeading:"Row",uuid:tt(),custom_values:{}}],ge(B)},ee=(B,fe)=>{H(Se=>Se===null?{customKey:fe,uuid:""}:{...Se,customKey:fe});const he=f.customColumns,ce=he.findIndex(Se=>Se.uuid===B.uuid);he[ce]={...he[ce],customKey:fe};const pe=f;pe.customColumns=he,ge(pe)},oe=(B,fe)=>{z(Se=>Se===null?{uuid:"",rowHeading:fe}:{...Se,rowHeading:fe});const he=f.rows,ce=he.findIndex(Se=>Se.uuid===B.uuid);he[ce]={...he[ce],rowHeading:fe};const pe=f;pe.rows=he,ge(pe)},ge=B=>{d(v,g,A,w,h,B)};function _e(B){return B.toLowerCase().replace(/ /g,"-").replace(/[^\w-]+/g,"")}const Ne=(B,fe,he)=>{const ce=f.customColumns,pe=ce.findIndex(De=>P&&De.uuid===P.uuid);ce[pe].options[he][fe]=B,ce[pe].options[he].value=_e(B);const Se=f;Se.customColumns=ce,ge(Se)},ve=()=>{const B=f.customColumns,fe=B.findIndex(ce=>P&&ce.uuid===P.uuid);B[fe].options.push({label:"",value:"",uuid:tt()});const he=f;he.customColumns=B,ge(he)},Ae=B=>{const fe=f.customColumns,he=fe.findIndex(pe=>P&&pe.uuid===P.uuid);if(he===-1){console.error("Custom column not found");return}fe[he].options=fe[he].options.filter(pe=>pe.uuid!==B);const ce=f;ce.customColumns=fe,ge(ce)};return o.jsxs(o.Fragment,{children:[o.jsxs(Os,{maximizable:!0,header:"Update column title",visible:se,style:{width:"20vw"},footer:()=>o.jsxs(o.Fragment,{children:[" ",o.jsx(Ft,{text:!0,label:"Add Option",icon:"pi pi-plus",onClick:()=>ve()}),o.jsx(Ft,{text:!0,label:"Save",onClick:()=>K(!1)})]}),onHide:()=>K(!1),children:[o.jsx("div",{className:"p-fluid",children:o.jsx(wn,{value:(P==null?void 0:P.customKey)||"",onChange:B=>ee(P,B.target.value)})}),o.jsx("hr",{}),o.jsx("h5",{children:"Options"}),(P==null?void 0:P.options)&&((Ee=P==null?void 0:P.options)==null?void 0:Ee.length)>0&&(P==null?void 0:P.options.map((B,fe)=>o.jsxs("div",{className:"my-2 flex p-fluid",children:[o.jsx("span",{children:fe+1}),o.jsx(wn,{value:(B==null?void 0:B.label)||"",className:"ml-2",onChange:he=>Ne(he.target.value,"label",fe)}),o.jsx(Ft,{text:!0,type:"button",icon:"pi pi-trash",rounded:!0,severity:"secondary",onClick:()=>Ae(B.uuid),"aria-label":"Add Column Option"})]},`custom_column_option_${fe}`)))]}),o.jsx(Os,{maximizable:!0,header:"Update Row Title",visible:ie,style:{width:"20vw"},footer:()=>o.jsx(Ft,{text:!0,label:"Save",onClick:()=>re(!1)}),onHide:()=>re(!1),children:o.jsx("div",{className:"p-fluid",children:o.jsx(wn,{value:(N==null?void 0:N.rowHeading)||"",onChange:B=>oe(N,B.target.value)})})}),o.jsx(Qi,{visibilty:x,closeSettingFieldSidebar:de,...t}),o.jsx("div",{dir:s,className:ne(),children:a===i&&l===!0?o.jsx(ci,{headerTemplate:n,toggleable:!0,children:o.jsx(IU,{ref:e,...t,field:f,userSelectedLanguage:u,fieldIndex:h,customColumnHeaderTemplate:X,customColumnRowBodyTemplate:me,setAllFields:le,allFields:$,actionHeaderTemplate:W,actionBodyTemplate:Z,isFocus:_,inputValue:T,handleFieldSettingsSidebar:ye,isAdmin:l})}):o.jsx(IU,{ref:e,...t,field:f,userSelectedLanguage:u,fieldIndex:h,customColumnHeaderTemplate:X,customColumnRowBodyTemplate:me,setAllFields:le,allFields:$,actionHeaderTemplate:W,actionBodyTemplate:Z,isFocus:_,inputValue:T,handleFieldSettingsSidebar:ye,isAdmin:l})})]})},bye=t=>{const{indexes:e,customColumnIndex:n,setAllFields:r,allFields:i}=t,a=s=>{const l={...i};l[`${e==null?void 0:e.rowIndex}-${n}`]=s,r(l)};return o.jsx("div",{children:o.jsx(wn,{value:i[`${e==null?void 0:e.rowIndex}-${n}`]||"",onChange:s=>a(s.target.value)})})},_U=t=>{var g,v,m,A,w,x,S;const{field:e,userSelectedLanguage:n,fieldIndex:r,customColumnHeaderTemplate:i,setAllFields:a,allFields:s,actionHeaderTemplate:l,actionBodyTemplate:c,isFocus:u,inputValue:d,isAdmin:f}=t,{isBuilderMode:h}=zt();return o.jsxs("div",{className:`field ${h&&" py-3 px-4 builder-element-wrapper "}${(e==null?void 0:e.isFluid)===!0&&" p-fluid"}`,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:(g=e==null?void 0:e.headerText)==null?void 0:g[n==null?void 0:n.type]}),(e==null?void 0:e.showLabel)&&o.jsxs("label",{htmlFor:r,className:"flex font-bold mb-3 text-gray-900 text-xl",children:[o.jsx(ca,{...t}),((v=e==null?void 0:e.attributes)==null?void 0:v.required)&&o.jsx("span",{className:"must-required",children:"*"})," ",h?o.jsx(aa,{path:"",...t}):o.jsx(o.Fragment,{children:(m=e==null?void 0:e.label)==null?void 0:m[n==null?void 0:n.type]}),o.jsx("span",{className:"ml-3",children:(e==null?void 0:e.showToolTip)&&o.jsx(zi,{message:(A=e==null?void 0:e.toolTip)==null?void 0:A[n==null?void 0:n.type],position:"right"})})]}),o.jsxs("div",{className:"mt-3",style:{backgroundColor:"#0a061a"},children:[o.jsxs(ro,{scrollable:!0,showGridlines:!0,value:e==null?void 0:e.rows,children:[e==null?void 0:e.customColumns.map((T,C)=>o.jsx(xr,{header:i(T),headerStyle:{textAlign:"left"},bodyStyle:{textAlign:"left",overflow:"visible"},body:(E,_)=>o.jsx(bye,{customColumn:T,e:E,indexes:_,customColumnIndex:C,setAllFields:a,allFields:s,...t})},T==null?void 0:T.uuid)),h===!0&&o.jsx(xr,{frozen:!0,header:T=>l(T),body:T=>c(T),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:u===1&&!d?(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[n==null?void 0:n.type]})})]})]})}),f&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(ki,{...t})]})]})},yye=({showAddNewRow:t,setShowAddNewRow:e,customRowEditModalData:n,onHandleChangeCustomRowSetting:r})=>{const[i,a]=O.useState((n==null?void 0:n.rowHeading)||"");return o.jsx(Os,{maximizable:!0,header:"Update Row Title",visible:t,style:{width:"20vw"},footer:()=>o.jsx(Ft,{text:!0,label:"Save",onClick:()=>{e(!1),r(n,i)}}),onHide:()=>e(!1),children:o.jsx("div",{className:"p-fluid",children:o.jsx(wn,{value:i||"",onChange:s=>a(s.target.value)})})})},Aye=({showAddNewColumn:t,setShowAddNewColumn:e,customColumnEditModalData:n,onHandleChangeCustomColumnSetting:r})=>{const i=E3({initialValues:{columnValue:(n==null?void 0:n.customKey)||""},validate:a=>{const s={};return a.columnValue||(s.columnValue="Column value is required"),s},onSubmit:a=>{e(!1),r(n,a.columnValue)}});return o.jsx(Os,{maximizable:!0,header:"Update column title",visible:t,style:{width:"20vw"},footer:()=>o.jsx(Ft,{text:!0,label:"Save",onClick:()=>i.handleSubmit()}),onHide:()=>e(!1),children:o.jsx("div",{className:"p-fluid",children:o.jsxs("div",{className:"field",children:[o.jsx("label",{htmlFor:"columnValue",children:"Column Title"}),o.jsx(wn,{id:"columnValue",name:"columnValue",value:i.values.columnValue,onChange:i.handleChange,onBlur:i.handleBlur,className:i.touched.columnValue&&i.errors.columnValue?"p-invalid":""}),i.touched.columnValue&&i.errors.columnValue?o.jsx("small",{className:"p-error",children:i.errors.columnValue}):null]})})})},wye=t=>{var ge;const e=_e=>{const Ne=_e.collapsed?"pi pi-chevron-down":"pi pi-chevron-up",ve=`${_e.className} justify-content-start`,Ae=`${_e.titleClassName} pl-1`;return o.jsxs("div",{className:ve,children:[o.jsxs("button",{className:_e.togglerClassName,onClick:_e.onTogglerClick,children:[o.jsx("span",{className:Ne}),o.jsx(Qt,{})]}),o.jsx("span",{className:Ae,children:S})]})},{TASK_PUBLISHED:n,task_status:r}=Ar(),{userSelectedLanguage:i,fieldSettingUpdate:a}=sn(),{globalAlignment:s,isAdmin:l,isBuilderMode:c}=zt(),{field:u,fieldIndex:d,sectionIndex:f,pageIndex:h,rowIndex:g,columnIndex:v}=t,[m,A]=O.useState(!1),[w,x]=O.useState(""),[S]=O.useState((ge=u==null?void 0:u.label)==null?void 0:ge[i==null?void 0:i.type]),[T,C]=O.useState(0),[E,_]=O.useState(null),[M,k]=O.useState(null),[F,P]=O.useState((u==null?void 0:u.allFields)||{}),[H,N]=O.useState(!1),z=()=>{const _e=u;_e.customColumns=[..._e.customColumns,{customKey:"Column",uuid:tt(),options:[]}],U(_e)},[$,le]=O.useState(!1),[R,Y]=O.useState(!1),se=O.useCallback(_t.debounce(_e=>{const Ne=u;Ne.allFields={..._e},U(Ne)},1e3),[]);O.useEffect(()=>{se(F)},[F,se]);const K=_e=>{var Ne;return o.jsxs(o.Fragment,{children:[((Ne=u==null?void 0:u.options)==null?void 0:Ne.length)>1&&o.jsx(Ft,{text:!0,type:"button",icon:"pi pi-trash",rounded:!0,severity:"secondary",onClick:()=>X(_e==null?void 0:_e.uuid),"aria-label":"Add Row",size:"small"}),o.jsx(Ft,{text:!0,type:"button",icon:"pi pi-plus",rounded:!0,severity:"secondary",onClick:()=>ye(),"aria-label":"Add Row",size:"small"})]})},ie=_e=>{var Ne;return o.jsxs(o.Fragment,{children:[_e==null?void 0:_e.customKey,c===!0&&o.jsxs(o.Fragment,{children:[((Ne=u==null?void 0:u.customColumns)==null?void 0:Ne.length)>1&&o.jsx("i",{className:"pi pi-trash ml-3",onClick:()=>W(_e==null?void 0:_e.uuid)}),o.jsx("i",{className:"pi pi-cog ml-3",onClick:()=>{_(_e),le(!0)}})]})]})},re=()=>o.jsx(o.Fragment,{children:o.jsx(Ft,{text:!0,size:"small",type:"button",icon:"pi pi-plus",rounded:!0,severity:"secondary",onClick:()=>z(),"aria-label":"Add Column"})}),Z=_e=>o.jsxs(o.Fragment,{children:[_e==null?void 0:_e.rowHeading,c===!0&&o.jsx(o.Fragment,{children:o.jsx("i",{className:"pi pi-cog ml-3",onClick:()=>{k(_e),Y(!0)}})})]}),X=_e=>{const Ne=u==null?void 0:u.rows.filter(function(Ae){return(Ae==null?void 0:Ae.uuid)!==_e}),ve=u;ve.rows=Ne,U(ve)},W=_e=>{const Ne=_t.findIndex(u==null?void 0:u.customColumns,Be=>Be.uuid===_e),ve=u==null?void 0:u.customColumns.filter(function(Be,Ee){return Ee!==Ne}),Ae=u;Ae.customColumns=ve,U(Ae)},me=_e=>{A(_e)},be=()=>{A(!1)},Te=()=>{let _e="";return c===!0&&(_e=_e+" field-form-builder"),r===n&&l===!0&&(_e=_e+" card"),_e},ye=()=>{const _e=u;_e.rows=[..._e.rows,{rowHeading:"Row",uuid:tt(),custom_values:{}}],U(_e)},de=(_e,Ne)=>{_(Ee=>Ee===null?{customKey:Ne,uuid:""}:{...Ee,customKey:Ne});const ve=u.customColumns,Ae=ve.findIndex(Ee=>Ee.uuid===_e.uuid);ve[Ae]={...ve[Ae],customKey:Ne};const Be=u;Be.customColumns=ve,U(Be)},ne=(_e,Ne)=>{k(Ee=>Ee===null?{uuid:"",rowHeading:Ne}:{...Ee,rowHeading:Ne});const ve=u.rows,Ae=ve.findIndex(Ee=>Ee.uuid===_e.uuid);ve[Ae]={...ve[Ae],rowHeading:Ne};const Be=u;Be.rows=ve,U(Be)},U=_e=>{a(h,f,g,v,d,_e)},ee=()=>{N(!0)},oe=()=>{N(!1)};return o.jsxs(o.Fragment,{children:[o.jsx(Os,{maximizable:!0,header:"Update column title",visible:$,style:{width:"20vw"},footer:()=>o.jsx(o.Fragment,{children:o.jsx(Ft,{text:!0,label:"Save",onClick:()=>le(!1)})}),onHide:()=>le(!1),children:o.jsx("div",{className:"p-fluid",children:o.jsx(wn,{value:(E==null?void 0:E.customKey)||"",onChange:_e=>de(E,_e.target.value)})})}),R&&o.jsx(yye,{showAddNewRow:R,setShowAddNewRow:Y,customRowEditModalData:M,onHandleChangeCustomRowSetting:ne}),$&&o.jsx(Aye,{showAddNewColumn:$,setShowAddNewColumn:le,customColumnEditModalData:E,onHandleChangeCustomColumnSetting:de}),o.jsx(Qi,{visibilty:m,closeSettingFieldSidebar:be,...t}),o.jsx("div",{className:"field-form-builder",children:o.jsxs("div",{onMouseOver:ee,onMouseOut:oe,children:[c&&H&&o.jsx(Wr,{handleFieldSettingsSidebar:me,...t}),o.jsx("div",{dir:s,className:Te(),children:r===n&&l===!0?o.jsx(ci,{headerTemplate:e,toggleable:!0,children:o.jsx(_U,{...t,field:u,userSelectedLanguage:i,fieldIndex:d,customColumnHeaderTemplate:ie,customColumnRowBodyTemplate:Z,setAllFields:P,allFields:F,actionHeaderTemplate:re,actionBodyTemplate:K,isFocus:T,inputValue:w,handleFieldSettingsSidebar:me,isAdmin:l})}):o.jsx(_U,{isAdmin:!1,...t,field:u,userSelectedLanguage:i,fieldIndex:d,customColumnHeaderTemplate:ie,customColumnRowBodyTemplate:Z,setAllFields:P,allFields:F,actionHeaderTemplate:re,actionBodyTemplate:K,isFocus:T,inputValue:w,handleFieldSettingsSidebar:me})})]})})]})},Sye=t=>{var de,ne,U,ee,oe,ge,_e,Ne,ve,Ae,Be;const{taskRegisterData:e,updateTaskRegisterData:n,updateTaskProgressValue:r,userTaskSubmitFormData:i,updateUserFormDataSubmit:a}=Ar(),[s,l]=O.useState([]),{field:c,fieldIndex:u,row:d,pageIndex:f,sectionIndex:h,section:g,page:v,rowIndex:m,columnIndex:A,path:w,update:x,value:S,isDisabled:T}=t,{isAdmin:C,isBuilderMode:E}=zt(),{userSelectedLanguage:_}=sn(),[M,k]=O.useState(!1),[F,P]=O.useState(""),[H,N]=O.useState(0),[z,$]=O.useState(!1),[le,R]=O.useState(!1),Y=()=>{R(!0)},se=()=>{R(!1)},K=Ee=>{k(Ee)},ie=()=>{k(!1)};O.useEffect(()=>((c==null?void 0:c.dataSourceType)==="custom"&&l(c==null?void 0:c.options),c==null||c.dataSourceType,()=>{}));const re=()=>{var B,fe,he,ce;let Ee=null;if(d!=null&&d.rowIsRepeatable){if(d!=null&&d.repeatableFields){const pe=[...d.repeatableFields],Se=_t.findIndex(pe,function(De){return De.uuid===(c==null?void 0:c.uuid)});Se>=0&&pe[Se].fieldData?(Ee=pe[Se].fieldData,P(pe[Se].fieldData)):(c.isValid=0,P(""))}}else{const pe=i,Se=_t.cloneDeep(e);if(pe!=null&&pe.length){for(const De of pe)if(De.fieldId===t.field.uuid&&((B=De==null?void 0:De.postData)!=null&&B.length)){Ee=(fe=De==null?void 0:De.postData[0])==null?void 0:fe.postValue,P((he=De==null?void 0:De.postData[0])==null?void 0:he.postValue),Se[c==null?void 0:c.uuid]=(ce=De==null?void 0:De.postData[0])==null?void 0:ce.postValue;const Me=Object.keys(Se).length;r(Me);break}}}P(Ee),setTimeout(()=>{$(!0)},2e3)};O.useEffect(()=>{!z&&(i==null?void 0:i.length)>0&&re();const Ee=Gt.addListener("clearRepeatableFields",he=>{he===(d==null?void 0:d.uuid)&&(P(""),N(0),c.isValid=1)}),B=Gt.addListener("onSubmitUserForm",()=>{var he;(he=c==null?void 0:c.attributes)!=null&&he.required?F?c.isValid=1:c.isValid=0:c.isValid=1}),fe=Gt.addListener("OnInvalidFieldCatch",he=>{c.uuid===(he==null?void 0:he.fieldId)?N(1):N(0)});return()=>{B.remove(),fe.remove(),Ee.remove()}});const Z=(Ee,B)=>{var fe;if(i){const he=[...i],ce=_t.findIndex(he,function(Se){return Se.rowId===(d==null?void 0:d.uuid)});let pe=(fe=i[ce])==null?void 0:fe.repeatableFields;pe={...pe,[Ee==null?void 0:Ee.uuid]:B},he[ce]={...he[ce],repeatableFields:pe},a(he)}P(B),B?Ee.isValid=1:Ee.isValid=0},X=Ee=>{var B;P(Ee.target.value),d!=null&&d.rowIsRepeatable?Z(c,(B=Ee==null?void 0:Ee.target)==null?void 0:B.value):Te(Ee.target.value)},W=()=>(c==null?void 0:c.dataSourceType)==="custom"?`optionText.${_.type}`:(c==null?void 0:c.dataSourceType)==="database"?`${c==null?void 0:c.optionLabel}`:"",me=()=>(c==null?void 0:c.dataSourceType)==="custom"?`optionText.${_.type}`:(c==null?void 0:c.dataSourceType)==="database"?`${c==null?void 0:c.optionLabel}`:"",be=()=>{var Ee,B,fe;if(((Ee=c==null?void 0:c.fieldType)==null?void 0:Ee.type)==="radio"){const he=[];return s.map((ce,pe)=>{var De,Me,ze,rt;const Se=F;he.push(o.jsxs("div",{className:"field-radiobutton field-radiobutton-builder",onClick:()=>{X({value:ce,target:{value:ce}})},style:(Se==null?void 0:Se.uuid)===(ce==null?void 0:ce.uuid)?{backgroundColor:"#0F8BFD",padding:15,borderRadius:8}:{padding:15},children:[o.jsx(ia,{onFocus:()=>N(1),inputId:`radio-option-${pe}-${ce==null?void 0:ce.uuid}-${E?"builder-radio":"preview"}`,onChange:it=>{X(it)},value:ce,name:`radio-option-${pe}-${ce==null?void 0:ce.uuid}-${E?"builder":"preview"}`,checked:(Se==null?void 0:Se.uuid)===(ce==null?void 0:ce.uuid),disabled:T}),((De=ce==null?void 0:ce.hyperlinkText)==null?void 0:De[_==null?void 0:_.type])===""?o.jsx("label",{htmlFor:`radio-option-${pe}-${ce==null?void 0:ce.uuid}-${E?"builder":"preview"}`,children:(Me=ce==null?void 0:ce.optionText)==null?void 0:Me[_==null?void 0:_.type]}):o.jsx("label",{children:o.jsx("a",{href:(ze=ce==null?void 0:ce.hyperlinkText)==null?void 0:ze[_==null?void 0:_.type],target:"_blank",rel:"noreferrer",children:(rt=ce==null?void 0:ce.optionText)==null?void 0:rt[_==null?void 0:_.type]})})]},pe))}),he}if(((B=c==null?void 0:c.fieldType)==null?void 0:B.type)==="dropdown")return o.jsx(Pa,{onFocus:()=>N(1),onChange:he=>{d!=null&&d.rowIsRepeatable?Z(c,he.target.value):Te(he.target.value)},options:s,optionLabel:me(),optionValue:W(),value:F,placeholder:(fe=c==null?void 0:c.placeholder)==null?void 0:fe[_==null?void 0:_.type],disabled:T})},Te=Ee=>{var he,ce;P(Ee.target.value);const B=i,fe=_t.cloneDeep(e);if(B!==null){if((he=Ee==null?void 0:Ee.target)!=null&&he.value){if(fe[c==null?void 0:c.uuid]=(ce=Ee==null?void 0:Ee.target)==null?void 0:ce.value,(B==null?void 0:B.length)>0)for(const pe of B)pe.fieldId===t.field.uuid&&(pe.postData[0]={postValue:Ee.target.value})}else if(delete fe[c==null?void 0:c.uuid],(B==null?void 0:B.length)>0)for(const pe of B)pe.fieldId===t.field.uuid&&(pe.postData[0]={postValue:""})}if(!(d!=null&&d.rowIsRepeatable)){n(fe);const pe=Object.keys(fe).length;r(pe)}},ye=o.jsxs("div",{onMouseOver:Y,onMouseOut:se,children:[E&&le&&o.jsx(Wr,{handleFieldSettingsSidebar:K,...t}),o.jsx("div",{className:`field ${!E&&" py-3 px-4 builder-element-wrapper "}${(c==null?void 0:c.isFluid)===!0&&" p-fluid"}`,children:o.jsxs("div",{className:"grid",children:[o.jsxs("div",{className:"col-12",children:[(c==null?void 0:c.showHeaderText)&&o.jsx("h6",{children:(de=c==null?void 0:c.headerText)==null?void 0:de[_==null?void 0:_.type]}),(c==null?void 0:c.showLabel)&&o.jsxs("label",{htmlFor:u,className:"flex font-medium mb-5 text-700 text-2xl",children:[o.jsx(ca,{sectionIndex:h,fieldIndex:u,field:c,update:x,value:S}),((ne=c==null?void 0:c.attributes)==null?void 0:ne.required)&&o.jsx("span",{className:"must-required mr-1",children:"*"})," ",E?o.jsx(aa,{...t}):o.jsx(o.Fragment,{children:(U=c==null?void 0:c.label)==null?void 0:U[_==null?void 0:_.type]}),o.jsx("span",{className:"ml-3",children:c!=null&&c.showToolTip?o.jsx(o.Fragment,{children:o.jsx(zi,{message:(ee=c==null?void 0:c.toolTip)==null?void 0:ee[_==null?void 0:_.type],position:"right"})}):""})]}),be(),o.jsx("div",{children:((oe=c==null?void 0:c.attributes)==null?void 0:oe.required)&&o.jsx("small",{className:"error",children:H===1&&!F?(ge=c==null?void 0:c.validationMesssage)==null?void 0:ge.language:""})}),o.jsx("div",{children:(c==null?void 0:c.showHelperText)&&o.jsx("small",{children:(_e=c==null?void 0:c.helperText)==null?void 0:_e[_==null?void 0:_.type]})}),((Ne=c==null?void 0:c.inlineConditionalRules)==null?void 0:Ne.rules.length)>0&&E===!0&&o.jsx("p",{children:"Inline conditional rules"}),z===!0&&((Ae=(ve=c==null?void 0:c.inlineConditionalRules)==null?void 0:ve.rules)==null?void 0:Ae.length)>0&&((Be=c==null?void 0:c.inlineConditionalRules)==null?void 0:Be.rules.map((Ee,B)=>{const fe=F;return E===!1?o.jsx("div",{children:Ee==null?void 0:Ee.conditions.map((he,ce)=>o.jsx(O.Fragment,{children:o.jsx(e0,{isConditionTrue:!!((fe==null?void 0:fe.value)==he.value||E),inputValue:F,condition:he,ruleIndex:B,conditionIndex:ce,field:c,section:g,page:v,row:d,pageIndex:f,sectionIndex:h,rowIndex:m,columnIndex:A,path:w,...t})},`select-rule-${B}-`+ce))},`rule-${B}`):o.jsx(ci,{className:"mt-4",header:`Rule ${B+1}`,children:o.jsx("div",{children:Ee==null?void 0:Ee.conditions.map((he,ce)=>o.jsx(O.Fragment,{children:o.jsx(e0,{isConditionTrue:!!((fe==null?void 0:fe.value)===he.value||E),inputValue:F,condition:he,ruleIndex:B,conditionIndex:ce,field:c,section:g,page:v,row:d,pageIndex:f,sectionIndex:h,rowIndex:m,columnIndex:A,path:w,...t})},`select-rule-${B}-`+ce))},`rule-${B}`)},B)}))]}),C&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(ki,{...t})]})]})})]});return o.jsxs(o.Fragment,{children:[M===!0&&o.jsx(Qi,{visibilty:M,closeSettingFieldSidebar:ie,...t},c==null?void 0:c.uuid),o.jsx(xi,{...t,fieldWrap:ye})]})},Cye=t=>{var z,$,le,R;const{taskRegisterData:e,updateTaskRegisterData:n,updateTaskProgressValue:r,userTaskSubmitFormData:i}=Ar(),{field:a,row:s,isDisabled:l=!1}=t,{isBuilderMode:c,isAdmin:u}=zt(),{userSelectedLanguage:d}=sn(),[f,h]=O.useState(!1),[g,v]=O.useState(""),[m,A]=O.useState(0),[w,x]=O.useState(!1),[S,T]=O.useState(!1),C=()=>{T(!0)},E=()=>{T(!1)},_=Y=>{h(Y)},M=()=>{h(!1)},k=()=>{var se,K,ie,re;let Y=null;if(s!=null&&s.rowIsRepeatable){if(s!=null&&s.repeatableFields){const Z=[...s.repeatableFields],X=_t.findIndex(Z,function(W){return W.uuid===(a==null?void 0:a.uuid)});X>=0&&Z[X].fieldData?(Y=Z[X].fieldData,v(Z[X].fieldData)):(a.isValid=0,v(""))}}else{const Z=i,X=_t.cloneDeep(e);if(Z!=null&&Z.length){for(const W of Z)if(W.fieldId===t.field.uuid&&((se=W==null?void 0:W.postData)!=null&&se.length)){Y=(K=W==null?void 0:W.postData[0])==null?void 0:K.postValue,v((ie=W==null?void 0:W.postData[0])==null?void 0:ie.postValue),X[a==null?void 0:a.uuid]=(re=W==null?void 0:W.postData[0])==null?void 0:re.postValue;const me=Object.keys(X).length;r(me);break}}}v(Y),setTimeout(()=>{x(!0)},2e3)};O.useEffect(()=>{w||k();const Y=Gt.addListener("clearRepeatableFields",ie=>{ie===(s==null?void 0:s.uuid)&&(v(""),A(0),a.isValid=1)}),se=Gt.addListener("onSubmitUserForm",()=>{var ie;if((ie=a==null?void 0:a.attributes)!=null&&ie.required){const re=g;re!=null&&re[a.uuid]?a.isValid=1:a.isValid=0}else a.isValid=1}),K=Gt.addListener("OnInvalidFieldCatch",ie=>{a.uuid===(ie==null?void 0:ie.fieldId)?A(1):A(0)});return()=>{se.remove(),K.remove(),Y.remove()}});const F=(Y,se,K,ie,re)=>ie==null?void 0:ie.map(Z=>{var X,W;return{...Z,children:Z!=null&&Z.children&&((X=Z==null?void 0:Z.children)==null?void 0:X.length)>0?[...((W=Z==null?void 0:Z.children)==null?void 0:W.map(me=>se===(Z==null?void 0:Z.uuid)||re===!0?(K!=null&&K[me==null?void 0:me.uuid]&&delete K[me==null?void 0:me.uuid],{...me,options:F(Y,se,K,(me==null?void 0:me.options)||[],!0)}):{...me,options:F(Y,se,K,(me==null?void 0:me.options)||[],!1)}))||[]]:[]}}),P=(Y,se)=>{const K={...g};F(Y,se,K,a==null?void 0:a.options,!1),K[Y]=se,v(K),s!=null&&s.rowIsRepeatable||H(K)},H=Y=>{const se=i,K=_t.cloneDeep(e);if(se!==null){if(Y){if(K[a==null?void 0:a.uuid]=Y,(se==null?void 0:se.length)>0)for(const ie of se)ie.fieldId===t.field.uuid&&(ie.postData[0]={postValue:Y})}else if(delete K[a==null?void 0:a.uuid],(se==null?void 0:se.length)>0)for(const ie of se)ie.fieldId===t.field.uuid&&(ie.postData[0]={postValue:""})}if(!(s!=null&&s.rowIsRepeatable)){n(K);const ie=Object.keys(K).length;r(ie)}},N=o.jsxs("div",{onMouseOver:C,onMouseOut:E,children:[c&&S&&o.jsx(Wr,{handleFieldSettingsSidebar:_,...t}),o.jsx("div",{className:`field ${c&&" py-3 px-4 builder-element-wrapper "}${(a==null?void 0:a.isFluid)===!0&&" p-fluid"}`,children:o.jsxs("div",{className:"grid",children:[o.jsxs("div",{className:"col-12",children:[(a==null?void 0:a.showHeaderText)&&o.jsx("h6",{children:(z=a==null?void 0:a.headerText)==null?void 0:z[d==null?void 0:d.type]}),o.jsx(m7,{...t,isDisabled:l,isFirst:!0,schema:a,field:a,value:g,update:(Y,se)=>{P(Y,se)}}),o.jsx("div",{children:(($=a==null?void 0:a.attributes)==null?void 0:$.required)&&o.jsx("small",{className:"error",children:m===1&&!g?(le=a==null?void 0:a.validationMesssage)==null?void 0:le.english:""})}),o.jsx("div",{children:(a==null?void 0:a.showHelperText)&&o.jsx("small",{children:(R=a==null?void 0:a.helperText)==null?void 0:R[d==null?void 0:d.type]})})]}),u&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(ki,{...t})]})]})})]});return o.jsxs(o.Fragment,{children:[o.jsx(Qi,{visibilty:f,closeSettingFieldSidebar:M,...t},a==null?void 0:a.uuid),o.jsx(xi,{...t,fieldWrap:N})]})},xye=t=>{var W,me,be,Te,ye,de,ne,U,ee,oe;const{field:e,fieldIndex:n,sectionIndex:r,pageIndex:i,row:a,rowIndex:s,columnIndex:l,isDisabled:c}=t,{isRenderView:u,isAdmin:d,isBuilderMode:f}=zt(),{taskRegisterData:h,updateTaskRegisterData:g,updateTaskProgressValue:v,updateUserFormDataSubmit:m,userTaskSubmitFormData:A,task_status:w,TASK_PUBLISHED:x}=Ar(),[S,T]=O.useState(!1),{userSelectedLanguage:C,fieldSettingUpdate:E}=sn(),[_,M]=O.useState(!1),[k,F]=O.useState(0),[P,H]=O.useState(),[N,z]=O.useState(!1),$=()=>{z(!0)},le=()=>{z(!1)},R=[{icon:"pi pi-thumbs-up",thumbValue:"up"},{icon:"pi pi-thumbs-down",thumbValue:"down"}],Y=ge=>o.jsx("span",{className:"m-2",children:o.jsx("i",{style:{fontSize:30},className:ge.icon})}),se=()=>{var ge,_e,Ne;if(a!=null&&a.rowIsRepeatable){if(a!=null&&a.repeatableFields){const ve=[...a.repeatableFields],Ae=_t.findIndex(ve,function(Be){return Be.uuid===(e==null?void 0:e.uuid)});Ae>=0&&ve[Ae].fieldData?H(ve[Ae].fieldData):H("")}}else{const ve=A;if(ve!=null&&ve.length){for(const Ae of ve)if(Ae.fieldId===t.field.uuid&&((ge=Ae==null?void 0:Ae.postData[0])==null?void 0:ge.postValue)!==""&&((_e=Ae==null?void 0:Ae.postData[0])!=null&&_e.postValue)){H((Ne=Ae==null?void 0:Ae.postData[0])==null?void 0:Ne.postValue);break}}}M(!0)};O.useEffect(()=>{_||se();const ge=Gt.addListener("clearRepeatableFields",Ae=>{Ae===(a==null?void 0:a.uuid)&&(H(""),F(0),e.isValid=0,E(i,r,s,l,n,e))}),_e=Gt.addListener("onSubmitUserForm",()=>{var Ae;(Ae=e==null?void 0:e.attributes)!=null&&Ae.required?P?e.isValid=1:e.isValid=0:e.isValid=1}),Ne=Gt.addListener("OnInvalidFieldCatch",Ae=>{e.uuid===(Ae==null?void 0:Ae.fieldId)?F(1):F(0)}),ve=Gt.addListener("OnGetFieldValue",Ae=>{var Ee;const Be=(Ee=Ae==null?void 0:Ae.repeatableColumn)==null?void 0:Ee.filter((B,fe)=>(B==null?void 0:B.fieldUuid)===(e==null?void 0:e.uuid));Be!=null&&Be.length});return()=>{_e.remove(),Ne.remove(),ve.remove(),ge.remove()}});const K=ge=>{H(ge.value);const _e=A,Ne=_t.cloneDeep(h);if(_e!==null){if(ge!=null&&ge.value){if(Ne[e==null?void 0:e.uuid]=ge==null?void 0:ge.value,(_e==null?void 0:_e.length)>0)for(const ve of _e)ve.fieldId===t.field.uuid&&(ve.postData[0]={postValue:ge.value})}else if(delete Ne[e==null?void 0:e.uuid],(_e==null?void 0:_e.length)>0)for(const ve of _e)ve.fieldId===t.field.uuid&&(ve.postData[0]={postValue:""})}if(!(a!=null&&a.rowIsRepeatable)){g(Ne);const ve=Object.keys(Ne).length;v(ve)}},ie=(ge,_e)=>{var Ne;if(A){const ve=[...A],Ae=_t.findIndex(ve,function(Ee){return Ee.rowId===(a==null?void 0:a.uuid)});let Be=(Ne=A[Ae])==null?void 0:Ne.repeatableFields;Be={...Be,[ge==null?void 0:ge.uuid]:_e},ve[Ae]={...ve[Ae],repeatableFields:Be},m(ve)}H(_e),_e!==""?ge.isValid=1:ge.isValid=0},re=ge=>{T(ge)},Z=()=>{T(!1)},X=o.jsxs("div",{onMouseOver:$,onMouseOut:le,children:[f&&N&&o.jsx(Wr,{handleFieldSettingsSidebar:re,...t}),o.jsx("div",{className:`field ${f&&" 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:d?"col-6 ":"col-12 p-fluid",children:[(e==null?void 0:e.showHeaderText)&&o.jsx("h6",{children:(W=e==null?void 0:e.headerText)==null?void 0:W[C==null?void 0:C.type]}),(e==null?void 0:e.showLabel)&&o.jsxs("label",{htmlFor:n,className:"flex font-bold mb-3 text-gray-900 text-xl",children:[o.jsx(ca,{...t}),((me=e==null?void 0:e.attributes)==null?void 0:me.required)&&o.jsx("span",{className:"must-required mr-1",children:"*"})," ",f?o.jsx(aa,{...t}):o.jsx(o.Fragment,{children:(be=e==null?void 0:e.label)==null?void 0:be[C==null?void 0:C.type]}),o.jsx("span",{className:"ml-3",children:(e==null?void 0:e.showToolTip)&&o.jsx(zi,{message:(Te=e==null?void 0:e.toolTip)==null?void 0:Te[C==null?void 0:C.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-"+((de=(ye=e==null?void 0:e.icon)==null?void 0:ye.properties)==null?void 0:de.name)}),o.jsx("div",{className:"card flex justify-content-start",children:o.jsx(tf,{value:P,onChange:ge=>{H(ge.value),a!=null&&a.rowIsRepeatable?ie(e,ge.value):K(ge)},itemTemplate:Y,disabled:d||c,optionLabel:"value",onFocus:()=>F(1),options:R,readOnly:c,className:k===1&&((ne=e==null?void 0:e.attributes)!=null&&ne.required)?P?"valid":"invalid":"valid'"})})]}),o.jsx("div",{children:((U=e==null?void 0:e.attributes)==null?void 0:U.required)&&o.jsx(o.Fragment,{children:o.jsx("small",{className:"error",children:k===1&&!P?(ee=e==null?void 0:e.validationMesssage)==null?void 0:ee.english:""})})}),o.jsx("div",{children:(e==null?void 0:e.showHelperText)&&o.jsx("small",{children:(oe=e==null?void 0:e.helperText)==null?void 0:oe[C==null?void 0:C.type]})})]}),d&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(ki,{...t})]})]})})]});return o.jsxs(o.Fragment,{children:[o.jsx(Qi,{visibilty:S,closeSettingFieldSidebar:Z,...t}),o.jsx(xi,{...t,fieldWrap:X})]})},Tye=t=>{var ie,re,Z,X,W,me,be;const{taskRegisterData:e,updateTaskRegisterData:n,updateTaskProgressValue:r,updateUserFormDataSubmit:i,userTaskSubmitFormData:a}=Ar(),{userSelectedLanguage:s,fieldSettingUpdate:l}=sn(),{field:c,fieldIndex:u,sectionIndex:d,pageIndex:f,row:h,rowIndex:g,columnIndex:v}=t,{isAdmin:m,isBuilderMode:A}=zt(),[w,x]=O.useState(!1),[S,T]=O.useState(""),[C,E]=O.useState(0),[_,M]=O.useState(!1),[k,F]=O.useState(!1),P=()=>{F(!0)},H=()=>{F(!1)},N=()=>{var Te,ye,de;if(h!=null&&h.rowIsRepeatable){if(h!=null&&h.repeatableFields){const ne=[...h.repeatableFields],U=_t.findIndex(ne,function(ee){return ee.uuid===(c==null?void 0:c.uuid)});U>=0&&ne[U].fieldData?T(ne[U].fieldData):T("")}}else{const ne=a;if(ne!=null&&ne.length){for(const U of ne)if(U.fieldId===t.field.uuid&&((Te=U==null?void 0:U.postData[0])==null?void 0:Te.postValue)!==""&&((ye=U==null?void 0:U.postData[0])!=null&&ye.postValue)){T((de=U==null?void 0:U.postData[0])==null?void 0:de.postValue);break}}}M(!0)};O.useEffect(()=>{_||N();const Te=Gt.addListener("clearRepeatableFields",U=>{U===(h==null?void 0:h.uuid)&&(T(""),E(0),c.isValid=0,l(f,d,g,v,u,c))}),ye=Gt.addListener("onSubmitUserForm",()=>{var U;(U=c==null?void 0:c.attributes)!=null&&U.required?S?c.isValid=1:c.isValid=0:c.isValid=1}),de=Gt.addListener("OnInvalidFieldCatch",U=>{c.uuid===(U==null?void 0:U.fieldId)?E(1):E(0)}),ne=Gt.addListener("OnGetFieldValue",U=>{var oe;const ee=(oe=U==null?void 0:U.repeatableColumn)==null?void 0:oe.filter(ge=>(ge==null?void 0:ge.fieldUuid)===(c==null?void 0:c.uuid));ee!=null&&ee.length});return()=>{ye.remove(),de.remove(),ne.remove(),Te.remove()}});const z=Te=>{x(Te)},$=()=>{x(!1)},le=Te=>{var ne,U;T(Te.target.value);const ye=a,de=_t.cloneDeep(e);if(ye!==null){if((ne=Te==null?void 0:Te.target)!=null&&ne.value){if(de[c==null?void 0:c.uuid]=(U=Te==null?void 0:Te.target)==null?void 0:U.value,(ye==null?void 0:ye.length)>0)for(const ee of ye)ee.fieldId===t.field.uuid&&(ee.postData[0]={postValue:Te.target.value})}else if(delete de[c==null?void 0:c.uuid],(ye==null?void 0:ye.length)>0)for(const ee of ye)ee.fieldId===t.field.uuid&&(ee.postData[0]={postValue:""})}if(!(h!=null&&h.rowIsRepeatable)){n(de);const ee=Object.keys(de).length;r(ee)}},R=(Te,ye,de,ne)=>{var U;if(a){const ee=[...a],oe=_t.findIndex(ee,function(_e){return _e.rowId===(h==null?void 0:h.uuid)});let ge=(U=a[oe])==null?void 0:U.repeatableFields;ge={...ge,[de==null?void 0:de.uuid]:ne},ee[oe]={...ee[oe],repeatableFields:ge},i(ee)}T(ne),ne!==""?de.isValid=1:de.isValid=0},Y=5,se=()=>{const Te=[],ye=[HT,zT,YT,$T,jT],de=["Awful","Not Very Good","Okay","Really Good","Fantastic"];for(let ne=0;ne<Y;ne++)Te.push(o.jsxs("label",{children:[o.jsx("input",{onChange:U=>{h!=null&&h.rowIsRepeatable?R(f,d,c,U.target.value):le(U)},checked:parseInt(S)===ne,name:"liker-Emoji-scale"+(c==null?void 0:c.uuid),type:"radio",value:ne}),o.jsxs("span",{className:"grid m-0",children:[o.jsx("div",{className:"col-12 flex justify-content-center",children:o.jsx("img",{src:ye[ne]})}),o.jsx("div",{children:de[ne]})]})]},`field-${c==null?void 0:c.uuid}-likertEmojiScale-${ne} ${parseInt(S)===ne?"scale-selected":""}`));return Te},K=o.jsxs("div",{onMouseOver:P,onMouseOut:H,children:[A&&k&&o.jsx(Wr,{handleFieldSettingsSidebar:z,...t}),o.jsxs("div",{className:`field ${A&&" py-3 px-4 builder-element-wrapper "}${(c==null?void 0:c.isFluid)===!0&&" p-fluid"}`,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-bold mb-3 text-gray-900 text-xl",children:[o.jsx(ca,{...t}),((re=c==null?void 0:c.attributes)==null?void 0:re.required)&&o.jsx("span",{className:"must-required mr-1",children:"*"})," ",A?o.jsx(aa,{...t}):o.jsx(o.Fragment,{children:(Z=c==null?void 0:c.label)==null?void 0:Z[s==null?void 0:s.type]}),o.jsx("span",{className:"ml-3",children:(c==null?void 0:c.showToolTip)&&o.jsx(zi,{message:(X=c==null?void 0:c.toolTip)==null?void 0:X[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:se()})}),o.jsx("div",{children:((W=c==null?void 0:c.attributes)==null?void 0:W.required)&&o.jsx("small",{className:"error",children:C===1&&!S?(me=c==null?void 0:c.validationMesssage)==null?void 0:me.english:""})}),o.jsx("div",{children:(c==null?void 0:c.showHelperText)&&o.jsx("small",{children:(be=c==null?void 0:c.helperText)==null?void 0:be[s==null?void 0:s.type]})})]})]})}),m&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(ki,{...t})]})]})]});return o.jsxs(o.Fragment,{children:[o.jsx(Qi,{visibilty:w,closeSettingFieldSidebar:$,...t}),o.jsx(xi,{...t,fieldWrap:K})]})},Eye=t=>{var N,z,$,le,R,Y,se,K,ie,re,Z;const{userTaskSubmitFormData:e}=Ar(),{userSelectedLanguage:n,fieldSettingUpdate:r}=sn(),{isAdmin:i,isBuilderMode:a}=zt(),{field:s,fieldIndex:l,sectionIndex:c,pageIndex:u,row:d,rowIndex:f,columnIndex:h}=t,[g,v]=O.useState(!1),[m,A]=O.useState(""),[w,x]=O.useState(0),[S,T]=O.useState(!1),[C,E]=O.useState(!1),_=()=>{E(!0)},M=()=>{E(!1)},k=()=>{var X,W,me;if(d!=null&&d.rowIsRepeatable){if(d!=null&&d.repeatableFields){const be=[...d.repeatableFields],Te=_t.findIndex(be,function(ye){return ye.uuid===(s==null?void 0:s.uuid)});Te>=0&&be[Te].fieldData?A(be[Te].fieldData):A("")}}else{const be=e;if(be!=null&&be.length){for(const Te of be)if(Te.fieldId===t.field.uuid&&((X=Te==null?void 0:Te.postData[0])==null?void 0:X.postValue)!==""&&((W=Te==null?void 0:Te.postData[0])!=null&&W.postValue)){A((me=Te==null?void 0:Te.postData[0])==null?void 0:me.postValue);break}}}T(!0)};O.useEffect(()=>{S||k();const X=Gt.addListener("clearRepeatableFields",Te=>{Te===(d==null?void 0:d.uuid)&&(A(""),x(0),s.isValid=0,r(u,c,f,h,l,s))}),W=Gt.addListener("onSubmitUserForm",()=>{var Te,ye;(Te=s==null?void 0:s.attributes)!=null&&Te.required?m&&(m==null?void 0:m.length)<((ye=s==null?void 0:s.attributes)==null?void 0:ye.minLength)?s.isValid=1:s.isValid=0:s.isValid=1}),me=Gt.addListener("OnInvalidFieldCatch",Te=>{s.uuid===(Te==null?void 0:Te.fieldId)?x(1):x(0)}),be=Gt.addListener("OnGetFieldValue",Te=>{var de;const ye=(de=Te==null?void 0:Te.repeatableColumn)==null?void 0:de.filter(ne=>(ne==null?void 0:ne.fieldUuid)===(s==null?void 0:s.uuid));ye!=null&&ye.length});return()=>{W.remove(),me.remove(),be.remove(),X.remove()}});const F=X=>{v(X)},P=()=>{v(!1)},H=o.jsxs("div",{onMouseOver:_,onMouseOut:M,children:[a&&C&&o.jsx(Wr,{handleFieldSettingsSidebar:F,...t}),o.jsxs("div",{className:`field ${a&&" py-3 px-4 builder-element-wrapper "}${(s==null?void 0:s.isFluid)===!0&&" p-fluid"}`,children:[o.jsx("div",{className:"grid",children:o.jsxs("div",{className:i?"col-6 ":"col-12 p-fluid",children:[(s==null?void 0:s.showHeaderText)&&o.jsx("h6",{children:(N=s==null?void 0:s.headerText)==null?void 0:N[n==null?void 0:n.type]}),(s==null?void 0:s.showLabel)&&o.jsxs("label",{htmlFor:l,className:"flex font-bold mb-3 text-gray-900 text-xl",children:[o.jsx(ca,{...t}),((z=s==null?void 0:s.attributes)==null?void 0:z.required)&&o.jsx("span",{className:"must-required mr-1",children:"*"})," ",a?o.jsx(aa,{...t}):o.jsx(o.Fragment,{children:($=s==null?void 0:s.label)==null?void 0:$[n==null?void 0:n.type]}),(s==null?void 0:s.showToolTip)&&o.jsx("span",{className:"ml-3",children:o.jsx(zi,{message:(le=s==null?void 0:s.toolTip)==null?void 0:le[n==null?void 0:n.type],position:"right"})})]}),o.jsxs("div",{className:"mt-3",children:[o.jsx("span",{className:"p-input-icon-"+(s==null?void 0:s.iconAlignment),children:(s==null?void 0:s.showIcon)&&o.jsx("i",{className:"pi pi-"+((Y=(R=s==null?void 0:s.icon)==null?void 0:R.properties)==null?void 0:Y.name)})}),o.jsx("div",{children:((se=s==null?void 0:s.attributes)==null?void 0:se.required)&&o.jsxs(o.Fragment,{children:[o.jsx("small",{className:"error",children:w===1&&!m?(K=s==null?void 0:s.validationMesssage)==null?void 0:K.english:""}),o.jsx("small",{className:"error",children:w===1&&(m==null?void 0:m.length)<((ie=s==null?void 0:s.attributes)==null?void 0:ie.minLength)?`Mini length ${(re=s==null?void 0:s.attributes)==null?void 0:re.minLength}`:""})]})}),o.jsx("div",{children:(s==null?void 0:s.showHelperText)&&o.jsx("small",{children:(Z=s==null?void 0:s.helperText)==null?void 0:Z[n==null?void 0:n.type]})})]})]})}),i&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(ki,{...t})]})]})]});return o.jsxs(o.Fragment,{children:[o.jsx(Qi,{visibilty:g,closeSettingFieldSidebar:P,...t}),o.jsx(xi,{...t,fieldWrap:H})]})},Iye=t=>{var H,N,z,$,le,R,Y;const{field:e,fieldIndex:n,columnIndex:r,sectionIndex:i,rowIndex:a,pageIndex:s,ref:l}=t,{isBuilderMode:c}=zt(),{userSelectedLanguage:u,fieldSettingUpdate:d}=sn(),{userTaskSubmitFormData:f}=Ar(),[h,g]=O.useState(!1),[v,m]=O.useState(""),[A,w]=O.useState(0),[x,S]=O.useState(!1),[T,C]=O.useState(!1),E=()=>{C(!0)},_=()=>{C(!1)},M=()=>{var K;const se=f;if(se.length){for(const ie of se)if(ie.fieldId===t.field.uuid){m((K=ie==null?void 0:ie.postData[0])==null?void 0:K.postValue),S(!0);break}}};O.useEffect(()=>{x||M();const se=Gt.addListener("onSubmitUserForm",()=>{var ie;(ie=e==null?void 0:e.attributes)!=null&&ie.required&&(v?e.isValid=1:e.isValid=0,d(s,i,a,r,n,e))}),K=Gt.addListener("OnInvalidFieldCatch",ie=>{e.uuid===(ie==null?void 0:ie.fieldId)?w(1):w(0)});return()=>{se.remove(),K.remove()}});const k=se=>{g(se)},F=()=>{g(!1)},P=o.jsxs("div",{onMouseOver:E,onMouseOut:_,children:[c&&T&&o.jsx(Wr,{handleFieldSettingsSidebar:k,...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-11":"col-12",children:[(e==null?void 0:e.showHeaderText)&&o.jsx("h6",{children:(H=e==null?void 0:e.headerText)==null?void 0:H[u==null?void 0:u.type]}),(e==null?void 0:e.showLabel)&&o.jsxs("label",{htmlFor:`${n}`,className:"flex font-bold mb-3 text-gray-900 text-xl",children:[((N=e==null?void 0:e.attributes)==null?void 0:N.required)&&o.jsx("span",{className:"must-required",children:"*"})," ",i+1,".",r+1,".",n+1," ",(z=e==null?void 0:e.label)==null?void 0:z[u==null?void 0:u.type],o.jsx("span",{className:"ml-3",children:(e==null?void 0:e.showToolTip)&&o.jsx(zi,{message:($=e==null?void 0:e.toolTip)==null?void 0:$[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:((le=e==null?void 0:e.attributes)==null?void 0:le.required)&&o.jsx("small",{className:"error",children:A===1&&!v?(R=e==null?void 0:e.validationMesssage)==null?void 0:R.language:""})}),o.jsx("div",{children:(e==null?void 0:e.showHelperText)&&o.jsx("small",{children:(Y=e==null?void 0:e.helperText)==null?void 0:Y[u==null?void 0:u.type]})})]})]})})})})]});return o.jsxs(o.Fragment,{children:[h&&o.jsx(Qi,{visibilty:h,closeSettingFieldSidebar:F,...t}),o.jsx(xi,{...t,fieldWrap:P})]})},Lc=t=>{const{data:e,path:n,field:r}=t,{renderType:i,isAdmin:a,isBuilderMode:s}=zt(),{task_status:l,TASK_PUBLISHED:c}=Ar(),u=O.useRef(null),[d,f]=O.useState(!1),[{isDragging:h},g]=ra({item:{...e,type:z1,uuid:e==null?void 0:e.uuid,path:n},type:z1,collect:T=>({isDragging:T.isDragging()})}),v=h&&s?.25:1;g(u);const m=l===c||a,A=T=>{switch(r==null?void 0:r.componentType){case"text":return o.jsx(Ise,{typeName:"Text",field:r,...T});case"number":return o.jsx(Fse,{typeName:"Number",field:r,...T});case"email":return o.jsx(Mue,{typeName:"Email",field:r,...T});case"textarea":return o.jsx(Lue,{typeName:"Text Area",field:r,...T});case"editor":return o.jsx(tde,{typeName:"Editor",field:r,...T});case"question":return o.jsx(Pde,{typeName:"Exam",field:r,...T});case"select":return o.jsx(zue,{typeName:"Select",field:r,...T});case"multi-select":return o.jsx(bde,{typeName:"Multi Select",field:r,...T});case"checkbox":return o.jsx(Ade,{typeName:"Checkbox",field:r,...T});case"radio":return o.jsx(Cde,{typeName:"Radio",field:r,...T});case"radio-hierarchal":return o.jsx(Cye,{typeName:"Radio Progressive",field:r,...T});case"href":return o.jsx(Ose,{typeName:"Hyperlink",field:r,...T});case"heading":return o.jsx(Ide,{typeName:"Heading",field:r,...T});case"paragraph":return o.jsx(G3e,{typeName:"Paragraph",field:r,...T});case"image":return o.jsx(XO,{typeName:"Image",field:r,...T});case"video":return o.jsx(Wge,{typeName:"Video",field:r,...T});case"hr":return o.jsx(Qge,{typeName:"Hr",field:r,...T});case"date-picker":return o.jsx(Jge,{typeName:"Date Picker",field:r,...T});case"signature":return o.jsx(Zge,{typeName:"Signature",field:r,...T});case"file-upload":return o.jsx(N6e,{typeName:"File Upload",field:r,...T});case"facebook-login":return o.jsx(Eye,{typeName:"Facebook Login",field:r,...T});case"anchor":return o.jsx(Iye,{ref:u,typeName:"Anchor Tag",field:r,...T});case"image-gallery":return o.jsx(K3e,{typeName:"Image gallery",field:r,...T});case"quiz":return o.jsx(H6e,{typeName:"Quiz",field:r,...T});case"document":return o.jsx(O6e,{typeName:"Document",field:r,...T});case"list":return o.jsx(X6e,{typeName:"List",field:r,...T});case"country":return o.jsx(Ese,{typeName:"Country",field:r,...T});case"phone":return o.jsx(nye,{typeName:"Phone",field:r,...T});case"web-url":return o.jsx(rye,{typeName:"Website Url",field:r,...T});case"rating":return o.jsx(oye,{typeName:"Rating",field:r,...T});case"slider":return o.jsx(lye,{typeName:"Rating",field:r,...T});case"hidden-field":return o.jsx(cye,{typeName:"Hidden Field",field:r,...T});case"likert-scale":return o.jsx(uye,{typeName:"Likert Scale Field",field:r,...T});case"type-signature":return o.jsx(dye,{typeName:"Likert Scale Field",field:r,...T});case"address":return o.jsx(hye,{typeName:"Address",field:r,...T});case"grid-component":return o.jsx(EU,{typeName:"Grid",field:r,...T});case"matrix-scale":return o.jsx(EU,{typeName:"Grid",field:r,...T});case"matrix-dropdown":return o.jsx(vye,{typeName:"Grid",field:r,...T});case"thumbs":return o.jsx(xye,{typeName:"Thumbs Up and Down",field:r,...T});case"likert-emoji-scale":return o.jsx(Tye,{typeName:"Thumbs Up and Down",field:r,...T});case"table":return o.jsx(wye,{typeName:"Grid",field:r,...T});case"dynamic-listing":return o.jsx(Sye,{typeName:"Grid",field:r,...T});default:return o.jsx(o.Fragment,{children:"Empty"})}},w=()=>{f(!0)},x=()=>{f(!1)},S=()=>{let T="";return s===!0?(T=T+" component draggable field-form-builder-not-preview",i===H1?T=T+" pdf-component":T=T+" px-2 pdf-component"):(T=T+" component ",i===H1?T=T+" ":T=T+" px-2 "),T};return o.jsx(o.Fragment,{children:o.jsxs("div",{style:{opacity:v},className:S(),onMouseOver:w,onMouseOut:x,children:[s&&d&&o.jsx("i",{ref:s===!0?u:null,className:"elementDrag-icon pi pi-arrows-alt cursor-move",style:{fontSize:"1em"}}),A({...t,isDisabled:m})]})})},_ye={position:"relative"},Dye=t=>{var M,k,F,P,H;const{data:e,path:n,pageIndex:r,sectionIndex:i,rowIndex:a,columnIndex:s,section:l,row:c,page:u}=t,d=O.useRef(null),{removeColumn:f,addColumn:h,cloneColumn:g,formBuilderFormLayout:v,handleDrop:m}=sn(),{isAdvanceView:A,isBuilderMode:w,emitSocketData:x}=zt(),[{isDragging:S},T]=ra({type:As,item:{type:As,uuid:e==null?void 0:e.uuid,children:e.children,path:n},collect:N=>({isDragging:N.isDragging()})}),C=S&&w?.25:1;T(d);const E=(N,z,$,le,R,Y,se)=>o.jsx(Lc,{page:u,type:"field",row:c,column:e,section:l,field:N,data:N,path:z,pageIndex:$,sectionIndex:le,rowIndex:R,columnIndex:Y,fieldIndex:se},`component-${n}-${N==null?void 0:N.uuid}`),_=(N,z,$,le,R)=>{var ie,re,Z,X;const Y=N.collapsed?"pi pi-chevron-down":"pi pi-chevron-up",se=`${N.className} justify-content-space-between`,K=`${N.titleClassName} pl-1 text-primary`;return o.jsxs(o.Fragment,{children:[o.jsx(cn,{target:".clone-tool"}),o.jsx(cn,{target:".add-column-tool"}),o.jsxs("div",{className:se,children:[o.jsxs("span",{ref:w===!0?d:null,children:[o.jsx("button",{className:N.togglerClassName,children:o.jsx("span",{className:"pi pi-sliders-h dragabble"})}),o.jsxs("button",{className:N.togglerClassName,onClick:N.onTogglerClick,children:[o.jsx("span",{className:Y}),o.jsx(Qt,{})]}),o.jsx("span",{className:K,children:"Column"})]}),w===!0&&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:N.togglerClassName,onClick:()=>{h(z,$,le),x()},children:[o.jsx("span",{className:"pi pi-plus"}),o.jsx(Qt,{})]})}),((X=(Z=(re=(ie=v[z])==null?void 0:ie.children[$])==null?void 0:re.children[le])==null?void 0:Z.children)==null?void 0:X.length)>1&&o.jsxs("button",{className:N.togglerClassName,onClick:()=>{f(z,$,le,R),x()},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:N.togglerClassName,onClick:()=>{g(e,z,$,le,R),x()},children:[o.jsx("span",{className:"pi pi-clone"}),o.jsx(Qt,{})]})})]})]})]})};return o.jsx("div",{style:A&&w?{..._ye,opacity:C}:{},className:w?"draggable form-builder-column container-column":"form-builder-column container-column",children:w===!0?o.jsx(o.Fragment,{children:A===!0?o.jsxs(ci,{className:"builder-row-column",header:"Column",toggleable:!0,headerTemplate:N=>_(N,r,i,a,s),children:[((M=e==null?void 0:e.children)==null?void 0:M.length)>0?(k=e==null?void 0:e.children)==null?void 0:k.map((N,z)=>{const $=`${n}-${z}`;return o.jsxs(O.Fragment,{children:[o.jsx(Fr,{isAdvanceView:A,fieldDropArea:!0,data:{path:$,childrenCount:e.children.length,droppedField:e},onDrop:m}),E(N,$,r,i,a,s,z)]},$)}):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(Fr,{isAdvanceView:A,fieldDropArea:!0,data:{path:`${n}-${e.children.length}`,childrenCount:e.children.length,droppedField:e},onDrop:m,isLast:!0})]}):o.jsx(o.Fragment,{children:o.jsxs("div",{children:[((F=e==null?void 0:e.children)==null?void 0:F.length)>0?(P=e==null?void 0:e.children)==null?void 0:P.map((N,z)=>{const $=`${n}-${z}`;return o.jsxs(O.Fragment,{children:[o.jsx(Fr,{isAdvanceView:A,fieldDropArea:!0,data:{path:$,childrenCount:e.children.length,droppedField:e},onDrop:m}),E(N,$,r,i,a,s,z)]},$)}):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(Fr,{isAdvanceView:A,dropHereLastField:!0,fieldDropArea:!0,data:{path:`${n}-${e.children.length}`,childrenCount:e.children.length,droppedField:e},onDrop:m,isLast:!0})]})})}):o.jsx(o.Fragment,{children:(H=e==null?void 0:e.children)==null?void 0:H.map((N,z)=>{const $=`${n}-${z}`;return o.jsx(O.Fragment,{children:E(N,$,r,i,a,s,z)},$)})})})},Nye=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(wn,{value:(i=r==null?void 0:r.heading)==null?void 0:i[e==null?void 0:e.type],placeholder:"Enter row heading",onChange:l=>n("heading",e,l.target.value)})]}),o.jsxs("div",{className:"field",children:[o.jsx("label",{children:"Row description"}),o.jsx(so,{value:(a=r==null?void 0:r.subHeadingText)==null?void 0:a[e==null?void 0:e.type],placeholder:"Enter row description",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(wn,{value:(s=r.addToListButtonLabel)==null?void 0:s[e==null?void 0:e.type],onChange:l=>n("addToListButtonLabel",e,l.target.value)})]})]})},Oye=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(Yr,{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(eo,{value:e==null?void 0:e.minimumEntries,onChange:i=>n("minimumEntries",i.value)})]}),o.jsxs("div",{className:"field-checkbox",children:[o.jsx(Yr,{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."," "]})]})]})},bg=t=>{var x;const{visibilty:e,setVisibility:n,row:r,pageIndex:i,sectionIndex:a,rowIndex:s}=t,{formBuilderSchemaLanguages:l,rowSettingUpdate:c,userSelectedLanguage:u,formBuilderPublishedStatus:d}=sn(),[f,h]=O.useState(r),{updateGlobalToast:g,emitSocketData:v}=zt(),m=(S,T,C)=>{h(E=>{const _=E[S];return Object.assign({},E,{[S]:Object.assign({},_,{[T==null?void 0:T.type]:C})})})},A=(S,T)=>{h(C=>({...C,[S]:T}))},w=()=>{const S={...f,children:r==null?void 0:r.children};c(i,a,s,S),v(),g({showToast:!0,toastMessage:"Updated",toastDetail:"Row updated",toastType:"success"})};return o.jsx(o.Fragment,{children:o.jsxs(To,{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 - ",(x=r==null?void 0:r.heading)==null?void 0:x[u==null?void 0:u.type]]})," "]}),!d&&o.jsx("div",{className:"flex align-items-center justify-content-center",children:o.jsx(Ft,{className:"mt-3",label:"Update",type:"button",onClick:()=>w(),"aria-label":"Update"})})]}),o.jsxs(ts,{children:[o.jsx(wr,{header:"Text",children:o.jsx(ao,{activeIndex:0,children:l!=null&&l.length?l.map((S,T)=>o.jsx(io,{tabIndex:T,header:S==null?void 0:S.language,children:o.jsx(Nye,{language:S,stateRow:f,onHandleChange:m,...t})},T)):""})}),o.jsx(wr,{header:"Advance",children:o.jsx(Oye,{stateRow:f,onHandleChangeAdvanceSettings:A})}),o.jsx(wr,{header:"Layout",children:o.jsxs("div",{className:"p-fluid",children:[o.jsxs("div",{className:"field-checkbox",children:[o.jsx(Yr,{inputId:"showRowTitle",checked:f==null?void 0:f.showRowTitle,onChange:S=>A("showRowTitle",S==null?void 0:S.checked)}),o.jsx("label",{htmlFor:"showRowTitle",children:"Show Row Title?"})]}),o.jsxs("div",{className:"field-checkbox",children:[o.jsx(Yr,{inputId:"showRowSubTitle",checked:f==null?void 0:f.showRowSubTitle,onChange:S=>A("showRowSubTitle",S==null?void 0:S.checked)}),o.jsx("label",{htmlFor:"showRowSubTitle",children:"Show Row Sub Title?"})]})]})})]})]})})},Fye={},kye=t=>{var ye,de,ne,U,ee,oe,ge,_e,Ne,ve,Ae,Be,Ee;const{data:e,path:n,pageIndex:r,sectionIndex:i,rowIndex:a,section:s,page:l}=t,c=O.useRef(null),{removeRow:u,addRow:d,cloneRow:f,formBuilderFormLayout:h,userSelectedLanguage:g,handleDrop:v}=sn(),{userTaskSubmitFormData:m,taskRegisterData:A,updateTaskRegisterData:w,updateTaskProgressValue:x,addUserDataFormSectionRepeatableData:S,removeUserDataFormSectionRepeatableData:T,task_status:C,TASK_PUBLISHED:E}=Ar(),{isRenderView:_,isAdvanceView:M,isBuilderMode:k,renderType:F,isAdmin:P,emitSocketData:H}=zt(),[N,z]=O.useState(!1),[$,le]=O.useState(!1),[{isDragging:R},Y]=ra({type:Ao,item:{type:Ao,uuid:e.uuid,children:e.children,path:n,data:e},collect:B=>({isDragging:B.isDragging()})}),se=R?.25:1;Y(c);const K=(B,fe,he,ce,pe,Se)=>o.jsx(Dye,{page:l,row:e,section:s,data:B,path:fe,pageIndex:he,sectionIndex:ce,rowIndex:pe,columnIndex:Se,isAdmin:P,emitSocketData:H},`column-${n}-${B.uuid}`),ie=(B,fe,he,ce)=>{var Me,ze,rt,it;const pe=B.collapsed?"pi pi-chevron-down":"pi pi-chevron-up",Se=`${B.className} justify-content-space-between`,De=`${B.titleClassName} pl-1 text-primary`;return o.jsxs(o.Fragment,{children:[o.jsx(cn,{target:".clone-tool"}),o.jsx(cn,{target:".setting-tool"}),o.jsx(cn,{target:".add-row-tool"}),o.jsxs("div",{className:Se,children:[o.jsxs("span",{ref:k===!0?c:null,children:[o.jsx("button",{className:B.togglerClassName,children:o.jsx("span",{className:"pi pi-sliders-h dragabble"})}),o.jsxs("button",{className:B.togglerClassName,onClick:B.onTogglerClick,children:[o.jsx("span",{className:pe}),o.jsx(Qt,{})]}),o.jsxs("span",{className:De,children:["Row:"," ",((Me=e==null?void 0:e.heading)==null?void 0:Me[g==null?void 0:g.type])!==""?(ze=e==null?void 0:e.heading)==null?void 0:ze[g==null?void 0:g.type]:"Untitled"]})]}),k===!0&&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:B.togglerClassName,onClick:()=>{d(fe,he),H()},children:[o.jsx("span",{className:"pi pi-plus"}),o.jsx(Qt,{})]})}),((it=(rt=h[fe])==null?void 0:rt.children[he])==null?void 0:it.children.length)>1&&o.jsxs("button",{className:B.togglerClassName,onClick:()=>{u(fe,he,ce),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:B.togglerClassName,onClick:()=>{f(e,fe,he,ce),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:()=>z(!0),className:B.togglerClassName,children:[o.jsx("span",{className:"pi pi-cog"}),o.jsx(Qt,{})]})})]})]})]})},re=_t.findIndex(m,function(B){return(B==null?void 0:B.rowId)===(e==null?void 0:e.uuid)}),Z=()=>{var he,ce,pe;const B=_t.cloneDeep(A);((ce=(he=m[re])==null?void 0:he.repeatableFieldsData)==null?void 0:ce.length)>=(e==null?void 0:e.minimumEntries)?B[e==null?void 0:e.uuid]=(pe=m[re])==null?void 0:pe.repeatableFields:delete B[e==null?void 0:e.uuid];const fe=Object.keys(B).length;w(B),x(fe)},X=(ye=e==null?void 0:e.repeatableFields)==null?void 0:ye.map(B=>{var fe;return{fieldUuid:B==null?void 0:B.uuid,field:B==null?void 0:B.uuid,header:(fe=B==null?void 0:B.label)==null?void 0:fe.english}}),W=(B,fe)=>o.jsx(o.Fragment,{children:o.jsx("div",{className:"post__content_repetable",dangerouslySetInnerHTML:{__html:B[fe==null?void 0:fe.field]}})}),me=X==null?void 0:X.map(B=>o.jsx(xr,{field:B.field,header:B.header,body:fe=>W(fe,B)},B.field)),be=()=>{var ce;const B=[...m],fe=[];let he=!0;e:for(const[,pe]of e.children.entries()){for(const[,Se]of pe.children.entries())if(console.log("field",Se),Se!=null&&Se.isPostField&&Se.isValid!==1){const De={fieldId:Se.uuid,rowIndex:a};console.log("inValidData",De),fe.push(De),Gt.emit("OnInvalidFieldCatch",De),he=!1;break e}he=!0}he&&(fe==null?void 0:fe.length)===0&&(alert("addToSectionRepeatableList"+(e==null?void 0:e.uuid)),S(e==null?void 0:e.uuid,(ce=B[re])==null?void 0:ce.repeatableFields),Gt.emit("clearRepeatableFields",e==null?void 0:e.uuid),Z())},Te=B=>o.jsx(o.Fragment,{children:!P&&o.jsx(Ft,{text:!0,size:"small",type:"button",className:"p-button-danger ",onClick:()=>{T(e==null?void 0:e.uuid,B==null?void 0:B.rowIndex),setTimeout(()=>{Z()},1e3)},icon:"pi pi-trash"})});return o.jsxs("div",{style:{...Fye,opacity:se,marginTop:`${(de=e==null?void 0:e.margin)==null?void 0:de.top}px`,marginBottom:`${(ne=e==null?void 0:e.margin)==null?void 0:ne.bottom}px`,marginLeft:`${(U=e==null?void 0:e.margin)==null?void 0:U.left}px`,marginRight:`${(ee=e==null?void 0:e.margin)==null?void 0:ee.right}px`},className:_?"row container-row":"draggable row container-row",children:[N&&o.jsx(bg,{renderType:F,visibilty:N,setVisibility:z,row:e,pageIndex:r,sectionIndex:i,rowIndex:a,emitSocketData:H},"row_settings_"+r+i+a),k===!0?o.jsx(o.Fragment,{children:M===!0?o.jsx(ci,{header:"Row",toggleable:!0,headerTemplate:B=>ie(B,r,i,a),children:o.jsxs("div",{className:"form-builder-columns",style:{overflowX:"auto"},children:[(oe=e==null?void 0:e.children)==null?void 0:oe.map((B,fe)=>{const he=`${n}-${fe}`;return o.jsxs(O.Fragment,{children:[o.jsx(Fr,{isAdvanceView:M,data:{path:he,childrenCount:e.children.length},onDrop:v,className:"horizontalDrag"}),K(B,he,r,i,a,fe)]},he)}),o.jsx(Fr,{isAdvanceView:M,data:{path:`${n}-${e.children.length}`,childrenCount:e.children.length},onDrop:v,className:"horizontalDrag",isLast:!0})]})}):o.jsx(o.Fragment,{children:o.jsx("div",{className:M?"form-builder-columns":"",style:M?{overflowX:"auto"}:{},children:(ge=e==null?void 0:e.children)==null?void 0:ge.map((B,fe)=>{const he=`${n}-${fe}`;return o.jsx(O.Fragment,{children:K(B,he,r,i,a,fe)},he)})})})}):o.jsx(o.Fragment,{children:e!=null&&e.rowIsRepeatable?o.jsx(o.Fragment,{children:o.jsx(Os,{header:((ve=e==null?void 0:e.heading)==null?void 0:ve[g==null?void 0:g.type])||"Untitled",footer:()=>{var B;return o.jsx(o.Fragment,{children:(e==null?void 0:e.rowIsRepeatable)&&C!==E&&o.jsx(Ft,{size:"small",type:"button",outlined:!0,className:" mb-3",onClick:()=>{be()},label:(B=e.addToListButtonLabel)==null?void 0:B[g==null?void 0:g.type]})})},visible:$,style:{width:"50vw"},onHide:()=>{$&&le(!1)},children:o.jsxs(o.Fragment,{children:[o.jsx("h5",{children:(Ae=e==null?void 0:e.heading)==null?void 0:Ae[g==null?void 0:g.type]}),o.jsx("span",{children:(Be=e==null?void 0:e.subHeadingText)==null?void 0:Be[g==null?void 0:g.type]}),o.jsx("div",{className:"form-builder-columns p-3",style:{maxHeight:"500px",overflowY:"scroll"},children:e.children.map((B,fe)=>{const he=`${n}-${fe}`;return o.jsx(O.Fragment,{children:K(B,he,r,i,a,fe)},he)})})]})})}):o.jsxs(o.Fragment,{children:[o.jsx("h5",{children:(_e=e==null?void 0:e.heading)==null?void 0:_e[g==null?void 0:g.type]}),o.jsx("span",{children:(Ne=e==null?void 0:e.subHeadingText)==null?void 0:Ne[g==null?void 0:g.type]}),o.jsx("div",{className:"form-builder-columns",children:e.children.map((B,fe)=>{const he=`${n}-${fe}`;return o.jsx(O.Fragment,{children:K(B,he,r,i,a,fe)},he)})})]})}),!P&&(e==null?void 0:e.rowIsRepeatable)&&C!==E&&o.jsx("div",{className:"text-right mb-2",children:o.jsx(Ft,{outlined:!0,size:"small",type:"button",className:"",onClick:()=>le(!0),label:"Add Record"})}),(e==null?void 0:e.rowIsRepeatable)&&o.jsxs("div",{children:[o.jsxs(ro,{scrollable:!0,reorderableRows:!P,value:(m==null?void 0:m.length)>0?(Ee=m[re])==null?void 0:Ee.repeatableFieldsData:[],children:[me,C!==E&&o.jsx(xr,{frozen:!0,style:{width:"10%"},headerStyle:{textAlign:"center"},bodyStyle:{textAlign:"left",overflow:"visible"},body:(B,fe)=>Te(fe)})]}),P&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(ki,{field:e})]})]})]})},Pye=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(wn,{value:(i=r.heading)==null?void 0:i[e==null?void 0:e.type],placeholder:"Enter section heading",onChange:s=>n("heading",e,s.target.value)})]}),o.jsxs("div",{className:"field",children:[o.jsx("label",{children:"Section description"}),o.jsx(so,{value:(a=r.subHeadingText)==null?void 0:a[e==null?void 0:e.type],placeholder:"Enter section description",onChange:s=>n("subHeadingText",e,s.target.value)})]})]})},Ih=t=>{const{visibilty:e,setVisibility:n,section:r,pageIndex:i,sectionIndex:a}=t,[s,l]=O.useState(r),{formBuilderSchemaLanguages:c,sectionSettingUpdate:u,userSelectedLanguage:d,formBuilderPublishedStatus:f}=sn(),{emitSocketData:h}=zt(),{updateGlobalToast:g}=zt(),v=(w,x,S)=>{l(T=>Object.assign({},T,{[w]:Object.assign({},T[w],{[x==null?void 0:x.type]:S})}))},m=(w,x)=>{l(S=>({...S,[w]:x}))},A=()=>{const w={...s,children:r==null?void 0:r.children};u(i,a,w),h(),g({showToast:!0,toastMessage:"Updated",toastDetail:"Section updated",toastType:"success"})};return o.jsx(o.Fragment,{children:o.jsxs(To,{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(Ft,{className:"mt-3",label:"Update",type:"button",onClick:()=>A(),"aria-label":"Update"})})]}),o.jsxs(ts,{children:[o.jsx(wr,{header:"Text",children:o.jsx(ao,{activeIndex:0,children:c!=null&&c.length?c.map((w,x)=>o.jsx(io,{tabIndex:x,header:w==null?void 0:w.language,children:o.jsx(Pye,{language:w,stateSection:s,onHandleChange:v,...t})},x)):""})}),o.jsx(wr,{header:"Layout",children:o.jsxs("div",{className:"p-fluid",children:[o.jsxs("div",{className:"field-checkbox",children:[o.jsx(Yr,{inputId:"showSectionTitle",checked:s==null?void 0:s.showSectionHeader,onChange:w=>m("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(Yr,{inputId:"showSectionTitle",checked:s==null?void 0:s.showSectionTitle,onChange:w=>m("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(Yr,{inputId:"showSectionSubTitle",checked:s==null?void 0:s.showSectionSubTitle,onChange:w=>m("showSectionSubTitle",w==null?void 0:w.checked)}),o.jsx("label",{htmlFor:"showSectionSubTitle",children:"Show section sub title?"})]})]})})]})]})})},_h=t=>{const{saveBuilderElementModalData:e,saveElementModal:n,setSaveElementModal:r}=t,{saveComponent:i}=zt(),a=E3({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(Ft,{text:!0,className:"p-button-success",label:"Save",icon:"pi pi-file",onClick:()=>{a.handleSubmit()},autoFocus:!0})});return o.jsxs(Os,{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(wn,{id:"builder_element_title",name:"builder_element_title",value:a.values.builder_element_title,onChange:a.handleChange,className:`${u3({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(so,{id:"builder_element_description",name:"builder_element_description",value:a.values.builder_element_description,onChange:a.handleChange,className:`${u3({invalid:s("builder_element_title")})} w-full`})]})]})},Mye=t=>{var le,R,Y,se,K,ie,re,Z;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}=sn(),{isAdvanceView:g,renderType:v,isBuilderMode:m,emitSocketData:A}=zt(),[w,x]=O.useState(!1),[S,T]=O.useState(!1),[C,E]=O.useState(null),[_,M]=O.useState(!1),k=O.useRef(null),F=(X,W)=>{E(me=>({...me,[X]:W}))},[{isDragging:P},H]=ra({type:na,item:{type:na,uuid:e.uuid,children:e.children,path:n},collect:X=>({isDragging:X.isDragging()})}),N=P&&m||e!=null&&e.isHidden?.25:1;H(k);const z=(X,W,me,be,Te)=>o.jsx(kye,{page:s,section:a,data:X,path:W,pageIndex:me,sectionIndex:be,rowIndex:Te},`row-${n}-${X.uuid}`),$=(X,W,me)=>{var de,ne;const be=X.collapsed?"pi pi-chevron-down":"pi pi-chevron-up",Te=`${X.className} justify-content-space-between panel-tab-section`,ye=`${X.titleClassName} pl-1 text-primary`;return o.jsxs("div",{className:Te,children:[o.jsxs("span",{ref:m===!0?k:null,children:[o.jsx("button",{className:X.togglerClassName,children:o.jsx("span",{className:"pi pi-sliders-h dragabble"})}),o.jsxs("button",{className:X.togglerClassName,onClick:X.onTogglerClick,children:[o.jsx("span",{className:be}),o.jsx(Qt,{})]}),o.jsxs("span",{className:ye,children:[me+1," ",(de=e==null?void 0:e.heading)==null?void 0:de[f==null?void 0:f.type]]})]}),m===!0&&o.jsxs(o.Fragment,{children:[o.jsx(cn,{target:".clone-tool"}),o.jsx(cn,{target:".del-tool"}),o.jsx(cn,{target:".setting-tool"}),o.jsx(cn,{target:".add-section-tool"}),o.jsx(cn,{target:".save-tool"}),o.jsx(cn,{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:X.togglerClassName,onClick:()=>{c(W),A()},children:[o.jsx("span",{className:"pi pi-plus"}),o.jsx(Qt,{})]})}),((ne=d[W])==null?void 0:ne.children.length)>1&&o.jsx("span",{className:"del-tool","data-pr-tooltip":"Delete",children:o.jsxs("button",{className:X.togglerClassName,onClick:()=>{l(W,me),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:X.togglerClassName,onClick:()=>{F("reusable_template_schema",e),T(!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:X.togglerClassName,onClick:()=>{u(e,W,me),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:X.togglerClassName,onClick:()=>x(!0),children:[o.jsx("span",{className:"pi pi-cog"}),o.jsx(Qt,{})]})})]})]})]})};return o.jsxs("div",{style:{opacity:N,marginBottom:20},className:m&&g?"draggable row":"",children:[m===!0&&o.jsx(_h,{saveBuilderElementModalData:C,setSaveBuilderElementModalData:E,saveElementModal:S,setSaveElementModal:T}),w===!0&&m===!0&&o.jsx(Ih,{renderType:v,visibilty:w,setVisibility:x,section:e,pageIndex:r,sectionIndex:i,emitSocketData:A},"section_settings_"+r+i),m===!0?o.jsx(o.Fragment,{children:g===!0?o.jsxs(ci,{header:(le=e==null?void 0:e.heading)==null?void 0:le.english,toggleable:!0,headerTemplate:X=>$(X,r,i),onMouseEnter:()=>M(!0),onMouseLeave:()=>M(!1),children:[((R=e==null?void 0:e.subHeadingText)==null?void 0:R[f==null?void 0:f.type])&&o.jsx("p",{children:(Y=e==null?void 0:e.subHeadingText)==null?void 0:Y[f==null?void 0:f.type]}),o.jsxs("div",{children:[e.children.map((X,W)=>{const me=`${n}-${W}`;return o.jsxs(O.Fragment,{children:[o.jsx(Fr,{isAdvanceView:g,data:{path:me,childrenCount:e.children.length},onDrop:h}),z(X,me,r,i,W)]},me)}),o.jsx(Fr,{isAdvanceView:g,data:{path:`${n}-${e.children.length}`,childrenCount:e.children.length,droppedField:e},onDrop:h,isLast:!0})]}),_&&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,{})})}),((se=d[r])==null?void 0:se.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:[((K=e==null?void 0:e.subHeadingText)==null?void 0:K[f==null?void 0:f.type])&&o.jsx("p",{children:(ie=e==null?void 0:e.subHeadingText)==null?void 0:ie[f==null?void 0:f.type]}),o.jsx("div",{children:e.children.map((X,W)=>{const me=`${n}-${W}`;return o.jsx(O.Fragment,{children:z(X,me,r,i,W)},me)})})]})}):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:(re=e==null?void 0:e.heading)==null?void 0:re[f==null?void 0:f.type]}),o.jsx("p",{children:(Z=e==null?void 0:e.subHeadingText)==null?void 0:Z[f==null?void 0:f.type]}),o.jsx("hr",{})]}),e.children.map((X,W)=>{const me=`${n}-${W}`;return o.jsx(O.Fragment,{children:o.jsx("div",{className:"",children:z(X,me,r,i,W)},me)},me)})]})})]})},Lye={position:"relative"},Bye=t=>{var S,T,C;const{data:e,data:n,path:r,pageIndex:i,sectionIndex:a,rowIndex:s,columnIndex:l,section:c,row:u,page:d}=t,f=O.useRef(null),{handleDrop:h}=sn(),{isAdvanceView:g,isBuilderMode:v}=zt(),[{isDragging:m},A]=ra({type:As,item:{type:As,uuid:e==null?void 0:e.uuid,children:e.children,path:r},collect:E=>({isDragging:E.isDragging()})}),w=m&&v?.25:1;A(f);const x=(E,_,M,k,F,P,H)=>o.jsx(Lc,{page:d,section:c,row:u,column:n,field:E,pageIndex:M,sectionIndex:k,rowIndex:F,columnIndex:P,fieldIndex:H,type:"field",data:E,path:_},`component-${r}-${E==null?void 0:E.uuid}`);return o.jsx("div",{style:g?{...Lye,opacity:w}:{},className:v&&"draggable column container-column",children:v===!0?o.jsx(o.Fragment,{children:o.jsxs("div",{children:[((S=e==null?void 0:e.children)==null?void 0:S.length)>0?(T=e==null?void 0:e.children)==null?void 0:T.map((E,_)=>{const M=`${r}-${_}`;return o.jsxs(O.Fragment,{children:[o.jsx(Fr,{isAdvanceView:g,fieldDropArea:!0,data:{path:M,childrenCount:e.children.length,droppedField:e},onDrop:h}),x(E,M,i,a,s,l,_)]},M)}):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"}})})]})}),v&&o.jsx(Fr,{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:(C=e==null?void 0:e.children)==null?void 0:C.map((E,_)=>{const M=`${r}-${_}`;return o.jsx(O.Fragment,{children:x(E,M,i,a,s,l,_)},M)})})})},Vye=t=>{var l;const{isAdvanceView:e}=zt(),{data:n,page:r,path:i,pageIndex:a}=t,s=(c,u,d,f,h,g,v,m)=>o.jsx(Bye,{page:r,row:m,section:v,data:c,path:`${d}-${f}-${h}-${g}`,pageIndex:d,sectionIndex:f,rowIndex:h,columnIndex:g},`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 g;return o.jsx("div",{className:e?"columns":"",style:e?{overflowX:"auto"}:{},children:(g=f==null?void 0:f.children)==null?void 0:g.map((v,m)=>{const A=`${i}-${u}-${h}-${m}`;return o.jsx(O.Fragment,{children:s(v,A,a,u,h,m,c,f)},A)})},`basic_view_section_${i}-${u}-${h}`)})})})},qye=t=>{const{data:e,path:n,pageIndex:r}=t,{isAdvanceView:i,isBuilderMode:a}=zt(),{formBuilderFormSchema:s,handleDrop:l}=sn(),c=O.useRef(null),[u,d]=ra({type:na,item:{type:na,uuid:e.uuid,children:e.children,path:n},collect:h=>({isDragging:h.isDragging()})});d(c);const f=(h,g,v,m)=>o.jsx(Mye,{data:h,page:e,section:h,path:g,pageIndex:v,sectionIndex:m},`section_${v}_${m}`);return o.jsx("div",{style:{overflowX:"auto"},className:`${a&&"draggable p-3 pb-4"}`,"data-image-src":e==null?void 0:e.bgImage,"data-bg-color":`#${e==null?void 0:e.bgColor}`,children:a===!0?o.jsx(o.Fragment,{children:i?o.jsxs(o.Fragment,{children:[e.children.map((h,g)=>{const v=`${n}-${g}`;return o.jsxs(O.Fragment,{children:[o.jsx(Fr,{isAdvanceView:i,data:{path:v,childrenCount:e.children.length},onDrop:l}),f(h,v,r,g)]},`section-${g}-${h.uuid}`)}),o.jsx(Fr,{isAdvanceView:i,data:{path:`${n}-${e.children.length}`,childrenCount:e.children.length,droppedField:e},onDrop:l,isLast:!0})]}):o.jsx(Vye,{page:e,path:n,data:e,pageIndex:r},`basic_view-${r}-${e.uuid}`)}):o.jsx(o.Fragment,{children:o.jsx("div",{className:"p-1",children:e.children.map((h,g)=>{const v=`${n}-${g}`;return o.jsx(O.Fragment,{children:s!=null&&s.showConditionalFields?o.jsx("div",{children:f(h,v,r,g)}):((h==null?void 0:h.isHidden)===!1||a)&&f(h,v,r,g)},`section-${g}-${h.uuid}`)})})})})},Uye=()=>{const{isAdvanceView:t,isBuilderMode:e,isPreview:n}=zt(),[r,i]=O.useState(!1),[a,s]=O.useState(!1),[l,c]=O.useState(0),{formBuilderFormLayout:u}=sn(),{emitSocketData:d}=zt(),f=["Mobile","Desktop"],[h,g]=O.useState(f[1]),v=(m,A,w)=>o.jsx(qye,{data:m,path:A,pageIndex:w},`page-${m.uuid}`);return o.jsxs("div",{children:[n===!0&&o.jsx("div",{className:"flex justify-content-center align-items-center",children:o.jsx(tf,{value:h,onChange:m=>g(m.value),options:f})}),(u==null?void 0:u.length)===S9&&e===!1?o.jsx(o.Fragment,{children:o.jsx("div",{className:"mt-3 flex card justify-content-center",children:(u==null?void 0:u.length)&&u.map((m,A)=>{const w=`${A}`;return o.jsx("div",{className:"flex flex-column justify-content-start",style:{width:h==="Mobile"?375:800},children:o.jsx("div",{className:"w-full",children:v(m,w,A)})},`preview-${m.uuid}-${A}`)})})}):o.jsx(o.Fragment,{children:t===!0&&e===!0?o.jsx(ts,{scrollable:!0,activeIndex:l,onTabChange:m=>c(m.index),children:(u==null?void 0:u.length)&&u.map((m,A)=>{const w=`${A}`;return o.jsxs(wr,{disabled:!((m==null?void 0:m.isHidden)===!1||e),header:"Page",headerTemplate:x=>o.jsx(F8,{options:x,pageIndex:A,setTabSidebarSetting:i,setPageActiveIndex:c,page:m,pages:u}),children:[e===!0&&o.jsx(mf,{reusableBuilderElementModalVisibility:a,setReusableBuilderElementModalVisibility:s,pageIndex:A}),e===!0&&o.jsx(j0,{setVisibility:i,visibilty:r,pageIndex:A,page:m,emitSocketData:d}),v(m,w,A)]},`advanced_${m.uuid}-${A}`)})}):o.jsx(o.Fragment,{children:(u==null?void 0:u.length)>0&&(u==null?void 0:u.map((m,A)=>{const w=`${A}`;return o.jsxs(O.Fragment,{children:[e===!0&&o.jsx(mf,{reusableBuilderElementModalVisibility:a,setReusableBuilderElementModalVisibility:s,pageIndex:A}),e===!0&&o.jsx(j0,{setVisibility:i,visibilty:r,pageIndex:A,page:m,emitSocketData:d}),v(m,w,A)]},`basic_${m.uuid}-${A}`)}))})})]})},$ye={position:"relative"},jye=t=>{var k,F,P,H,N;const{isAdvanceView:e,isBuilderMode:n,emitSocketData:r,isRenderView:i}=zt(),{data:a,path:s,pageIndex:l,sectionIndex:c,rowIndex:u,columnIndex:d,section:f,row:h,page:g}=t,v=O.useRef(null),{removeColumn:m,addColumn:A,cloneColumn:w,formBuilderFormLayout:x,handleDrop:S}=sn(),[{isDragging:T},C]=ra({type:As,item:{type:As,uuid:a==null?void 0:a.uuid,children:a.children,path:s},collect:z=>({isDragging:z.isDragging()})}),E=T&&!i?.25:1;C(v);const _=(z,$,le,R,Y,se,K)=>o.jsx(Lc,{page:g,column:a,type:"field",row:h,section:f,field:z,data:z,path:$,pageIndex:le,sectionIndex:R,rowIndex:Y,columnIndex:se,fieldIndex:K},`component-${s}-${z==null?void 0:z.uuid}`),M=(z,$,le,R,Y)=>{var re,Z,X,W;const se=z.collapsed?"pi pi-chevron-down":"pi pi-chevron-up",K=`${z.className} justify-content-space-between`,ie=`${z.titleClassName} pl-1 text-primary`;return o.jsxs(o.Fragment,{children:[o.jsx(cn,{target:".clone-tool"}),o.jsx(cn,{target:".add-column-tool"}),o.jsxs("div",{className:K,children:[o.jsxs("span",{ref:n===!0?v:null,children:[o.jsx("button",{className:z.togglerClassName,children:o.jsx("span",{className:"pi pi-sliders-h dragabble"})}),o.jsxs("button",{className:z.togglerClassName,onClick:z.onTogglerClick,children:[o.jsx("span",{className:se}),o.jsx(Qt,{})]}),o.jsx("span",{className:ie,children:"Column"})]}),n===!0&&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:z.togglerClassName,onClick:()=>{A($,le,R),r()},children:[o.jsx("span",{className:"pi pi-plus"}),o.jsx(Qt,{})]})}),((W=(X=(Z=(re=x[$])==null?void 0:re.children[le])==null?void 0:Z.children[R])==null?void 0:X.children)==null?void 0:W.length)>1&&o.jsxs("button",{className:z.togglerClassName,onClick:()=>{m($,le,R,Y),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:z.togglerClassName,onClick:()=>{w(a,$,le,R,Y),r()},children:[o.jsx("span",{className:"pi pi-clone"}),o.jsx(Qt,{})]})})]})]})]})};return o.jsx("div",{style:e?{...$ye,opacity:E}:{},className:i?"form-builder-column container-column":"draggable form-builder-column container-column",children:n===!0?o.jsx(o.Fragment,{children:e===!0?o.jsxs(ci,{className:"builder-row-column",header:"Column",toggleable:!0,headerTemplate:z=>M(z,l,c,u,d),children:[((k=a==null?void 0:a.children)==null?void 0:k.length)>0?(F=a==null?void 0:a.children)==null?void 0:F.map((z,$)=>{const le=`${s}-${$}`;return o.jsxs(O.Fragment,{children:[o.jsx(Fr,{isAdvanceView:e,fieldDropArea:!0,data:{path:le,childrenCount:a.children.length,droppedField:a},onDrop:S}),_(z,le,l,c,u,d,$)]},le)}):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(Fr,{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:[((P=a==null?void 0:a.children)==null?void 0:P.length)>0?(H=a==null?void 0:a.children)==null?void 0:H.map((z,$)=>{const le=`${s}-${$}`;return o.jsxs(O.Fragment,{children:[o.jsx(Fr,{isAdvanceView:e,fieldDropArea:!0,data:{path:le,childrenCount:a.children.length,droppedField:a},onDrop:S}),_(z,le,l,c,u,d,$)]},le)}):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(Fr,{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:(N=a==null?void 0:a.children)==null?void 0:N.map((z,$)=>{const le=`${s}-${$}`;return o.jsx(O.Fragment,{children:_(z,le,l,c,u,d,$)},le)})})})},zye={},Hye=t=>{var me,be,Te,ye,de,ne,U,ee,oe,ge,_e,Ne,ve,Ae,Be,Ee;const{data:e,path:n,pageIndex:r,sectionIndex:i,rowIndex:a,section:s,page:l}=t,{isRenderView:c,isAdvanceView:u,isAdmin:d,isBuilderMode:f,emitSocketData:h,renderType:g}=zt(),v=O.useRef(null),{removeRow:m,addRow:A,cloneRow:w,formBuilderFormLayout:x,userSelectedLanguage:S,handleDrop:T}=sn(),{userTaskSubmitFormData:C,taskRegisterData:E,updateTaskRegisterData:_,updateTaskProgressValue:M,addUserDataFormSectionRepeatableData:k,removeUserDataFormSectionRepeatableData:F,task_status:P,TASK_PUBLISHED:H}=Ar(),[N,z]=O.useState(!1),[{isDragging:$},le]=ra({type:Ao,item:{type:Ao,uuid:e.uuid,children:e.children,path:n,data:e},collect:B=>({isDragging:B.isDragging()})}),R=$?.25:1;le(v);const Y=(B,fe,he,ce,pe,Se)=>o.jsx(jye,{page:l,row:e,section:s,data:B,path:fe,pageIndex:he,sectionIndex:ce,rowIndex:pe,columnIndex:Se,isAdmin:d,emitSocketData:h},`column-${n}-${B.uuid}`),se=(B,fe,he,ce)=>{var Me,ze,rt,it;const pe=B.collapsed?"pi pi-chevron-down":"pi pi-chevron-up",Se=`${B.className} justify-content-space-between`,De=`${B.titleClassName} pl-1 text-primary`;return o.jsxs(o.Fragment,{children:[o.jsx(cn,{target:".clone-tool"}),o.jsx(cn,{target:".setting-tool"}),o.jsx(cn,{target:".add-row-tool"}),o.jsxs("div",{className:Se,children:[o.jsxs("span",{ref:f===!0?v:null,children:[o.jsx("button",{className:B.togglerClassName,children:o.jsx("span",{className:"pi pi-sliders-h dragabble"})}),o.jsxs("button",{className:B.togglerClassName,onClick:B.onTogglerClick,children:[o.jsx("span",{className:pe}),o.jsx(Qt,{})]}),o.jsxs("span",{className:De,children:["Row:"," ",((Me=e==null?void 0:e.heading)==null?void 0:Me[S==null?void 0:S.type])!==""?(ze=e==null?void 0:e.heading)==null?void 0:ze[S==null?void 0:S.type]:"Untitled"]})]}),f===!0&&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:B.togglerClassName,onClick:()=>{A(fe,he),h()},children:[o.jsx("span",{className:"pi pi-plus"}),o.jsx(Qt,{})]})}),((it=(rt=x[fe])==null?void 0:rt.children[he])==null?void 0:it.children.length)>1&&o.jsxs("button",{className:B.togglerClassName,onClick:()=>{m(fe,he,ce),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:B.togglerClassName,onClick:()=>{w(e,fe,he,ce),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:()=>z(!0),className:B.togglerClassName,children:[o.jsx("span",{className:"pi pi-cog"}),o.jsx(Qt,{})]})})]})]})]})},K=_t.findIndex(C,function(B){return(B==null?void 0:B.rowId)===(e==null?void 0:e.uuid)}),ie=()=>{var he,ce,pe;const B=_t.cloneDeep(E);((ce=(he=C[K])==null?void 0:he.repeatableFieldsData)==null?void 0:ce.length)>=(e==null?void 0:e.minimumEntries)?B[e==null?void 0:e.uuid]=(pe=C[K])==null?void 0:pe.repeatableFields:delete B[e==null?void 0:e.uuid];const fe=Object.keys(B).length;_(B),M(fe)},re=(me=e==null?void 0:e.repeatableFields)==null?void 0:me.map(B=>{var fe;return{fieldUuid:B==null?void 0:B.uuid,field:B==null?void 0:B.uuid,header:(fe=B==null?void 0:B.label)==null?void 0:fe.english}}),Z=re==null?void 0:re.map(B=>o.jsx(xr,{field:B.field,header:B.header,body:fe=>o.jsx(o.Fragment,{children:o.jsx("div",{className:"post__content_repetable",dangerouslySetInnerHTML:{__html:fe[B==null?void 0:B.field]}})})},B.field)),X=()=>{var ce;const B=[...C],fe=[];let he=!0;e:for(const[,pe]of e.children.entries()){for(const[,Se]of pe.children.entries())if(Se!=null&&Se.isPostField&&Se.isValid!==1){const De={fieldId:Se.uuid,rowIndex:a};fe.push(De),Gt.emit("OnInvalidFieldCatch",De),he=!1;break e}he=!0}he&&(fe==null?void 0:fe.length)===0&&(k(e==null?void 0:e.uuid,(ce=B[K])==null?void 0:ce.repeatableFields),Gt.emit("clearRepeatableFields",e==null?void 0:e.uuid),ie())},W=B=>o.jsx(o.Fragment,{children:o.jsx(Ft,{text:!0,size:"small",type:"button",className:"p-button-danger ",onClick:()=>{F(e==null?void 0:e.uuid,B==null?void 0:B.rowIndex),setTimeout(()=>{ie()},1e3)},icon:"pi pi-trash"})});return o.jsxs("div",{style:{...zye,opacity:R,marginTop:`${(be=e==null?void 0:e.margin)==null?void 0:be.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:`${(de=e==null?void 0:e.margin)==null?void 0:de.right}px`},className:c?"row container-row":"draggable row container-row",children:[N&&o.jsx(bg,{renderType:g,visibilty:N,setVisibility:z,row:e,pageIndex:r,sectionIndex:i,rowIndex:a,emitSocketData:h},"row_settings_"+r+i+a),g===im&&o.jsxs("div",{className:"form-builder-columns",children:[e.children.map((B,fe)=>{const he=`${n}-${fe}`;return o.jsxs(O.Fragment,{children:[g===zd&&o.jsx(Fr,{isAdvanceView:u,data:{path:he,childrenCount:e.children.length},onDrop:T,className:"horizontalDrag"}),Y(B,he,r,i,a,fe)]},he)}),o.jsx(Fr,{isAdvanceView:u,data:{path:`${n}-${e.children.length}`,childrenCount:e.children.length},onDrop:T,className:"horizontalDrag",isLast:!0})]}),(g===k0||g===F0||g===rm||g===w9||g===Gh)&&(f===!0?o.jsx(o.Fragment,{children:u===!0?o.jsx(ci,{header:"Row",toggleable:!0,headerTemplate:B=>se(B,r,i,a),children:o.jsxs("div",{className:"form-builder-columns",style:{overflowX:"auto"},children:[(ne=e==null?void 0:e.children)==null?void 0:ne.map((B,fe)=>{const he=`${n}-${fe}`;return o.jsxs(O.Fragment,{children:[o.jsx(Fr,{isAdvanceView:u,data:{path:he,childrenCount:e.children.length},onDrop:T,className:"horizontalDrag"}),Y(B,he,r,i,a,fe)]},he)}),o.jsx(Fr,{isAdvanceView:u,data:{path:`${n}-${e.children.length}`,childrenCount:e.children.length},onDrop:T,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((B,fe)=>{const he=`${n}-${fe}`;return o.jsx(O.Fragment,{children:Y(B,he,r,i,a,fe)},he)})})})}):o.jsx(o.Fragment,{children:!(e!=null&&e.rowIsRepeatable&&P===H)&&o.jsxs(o.Fragment,{children:[o.jsx("h5",{children:(ee=e==null?void 0:e.heading)==null?void 0:ee[S==null?void 0:S.type]}),o.jsx("span",{children:(oe=e==null?void 0:e.subHeadingText)==null?void 0:oe[S==null?void 0:S.type]}),o.jsx("div",{className:"form-builder-columns",children:e.children.map((B,fe)=>{const he=`${n}-${fe}`;return o.jsx(O.Fragment,{children:Y(B,he,r,i,a,fe)},he)})})]})})),g===H1&&(f===!0?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,{})]}),((_e=(ge=x[r])==null?void 0:ge.children[i])==null?void 0:_e.children.length)>1&&o.jsxs("button",{onClick:()=>{m(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:()=>z(!0),children:[o.jsx("span",{className:"pi pi-cog"}),o.jsx(Qt,{})]})]})}),o.jsx("div",{className:"form-builder-columns",children:(Ne=e==null?void 0:e.children)==null?void 0:Ne.map((B,fe)=>{const he=`${n}-${fe}`;return o.jsx(O.Fragment,{children:Y(B,he,r,i,a,fe)},he)})})]}):o.jsx(o.Fragment,{children:!(e!=null&&e.rowIsRepeatable&&P===H)&&o.jsxs(o.Fragment,{children:[o.jsx("h5",{children:(ve=e==null?void 0:e.heading)==null?void 0:ve[S==null?void 0:S.type]}),o.jsx("span",{children:(Ae=e==null?void 0:e.subHeadingText)==null?void 0:Ae[S==null?void 0:S.type]}),o.jsx("div",{className:"form-builder-columns",children:e.children.map((B,fe)=>{const he=`${n}-${fe}`;return o.jsx(O.Fragment,{children:Y(B,he,r,i,a,fe)},he)})})]})})),g===zd&&o.jsx("div",{className:"form-builder-columns",children:e.children.map((B,fe)=>{const he=`${n}-${fe}`;return o.jsx(O.Fragment,{children:Y(B,he,r,i,a,fe)},he)})}),(e==null?void 0:e.rowIsRepeatable)&&P!==H&&o.jsx(Ft,{text:!0,size:"small",type:"button",className:"p-button-success mb-3",onClick:()=>X(),label:(Be=e.addToListButtonLabel)==null?void 0:Be[S==null?void 0:S.type]}),(e==null?void 0:e.rowIsRepeatable)&&o.jsxs("div",{className:"card",children:[o.jsxs(ro,{value:(C==null?void 0:C.length)>0?(Ee=C[K])==null?void 0:Ee.repeatableFieldsData:[],children:[Z,P!==H&&o.jsx(xr,{style:{width:"10%"},headerStyle:{textAlign:"center"},bodyStyle:{textAlign:"left",overflow:"visible"},body:B=>W(B)})]}),d&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(ki,{field:e})]})]})]})},Yye=t=>{var le,R,Y,se,K,ie,re,Z;const{isAdvanceView:e,isBuilderMode:n,renderType:r,emitSocketData:i}=zt(),{handleDrop:a}=sn(),{data:s,path:l,pageIndex:c,sectionIndex:u,section:d,page:f}=t,{removeSection:h,addSection:g,cloneSection:v,formBuilderFormLayout:m,userSelectedLanguage:A}=sn(),[w,x]=O.useState(!1),[S,T]=O.useState(!1),[C,E]=O.useState({reusable_template_schema:""}),[_,M]=O.useState(!1),k=O.useRef(null),F=(X,W)=>{E(me=>({...me,[X]:W}))},[{isDragging:P},H]=ra({type:na,item:{type:na,uuid:s.uuid,children:s.children,path:l},collect:X=>({isDragging:X.isDragging()})}),N=P?.25:1;H(k);const z=(X,W,me,be,Te)=>o.jsx(Hye,{page:f,section:d,data:X,path:W,pageIndex:me,sectionIndex:be,rowIndex:Te},`row-${l}-${X.uuid}`),$=(X,W,me)=>{var de,ne;const be=X.collapsed?"pi pi-chevron-down":"pi pi-chevron-up",Te=`${X.className} justify-content-space-between panel-tab-section`,ye=`${X.titleClassName} pl-1 text-primary`;return o.jsxs("div",{className:Te,children:[o.jsxs("span",{ref:n===!0?k:null,children:[o.jsx("button",{className:X.togglerClassName,children:o.jsx("span",{className:"pi pi-sliders-h dragabble"})}),o.jsxs("button",{className:X.togglerClassName,onClick:X.onTogglerClick,children:[o.jsx("span",{className:be}),o.jsx(Qt,{})]}),o.jsxs("span",{className:ye,children:[me+1," ",(de=s==null?void 0:s.heading)==null?void 0:de[A==null?void 0:A.type]]})]}),n===!0&&o.jsxs(o.Fragment,{children:[o.jsx(cn,{target:".clone-tool"}),o.jsx(cn,{target:".del-tool"}),o.jsx(cn,{target:".setting-tool"}),o.jsx(cn,{target:".add-section-tool"}),o.jsx(cn,{target:".save-tool"}),o.jsx(cn,{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:X.togglerClassName,onClick:()=>{g(W),i()},children:[o.jsx("span",{className:"pi pi-plus"}),o.jsx(Qt,{})]})}),((ne=m[W])==null?void 0:ne.children.length)>1&&o.jsx("span",{className:"del-tool","data-pr-tooltip":"Delete",children:o.jsxs("button",{className:X.togglerClassName,onClick:()=>{h(W,me),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:X.togglerClassName,onClick:()=>{F("reusable_template_schema",s),T(!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:X.togglerClassName,onClick:()=>{v(s,W,me),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:X.togglerClassName,onClick:()=>x(!0),children:[o.jsx("span",{className:"pi pi-cog"}),o.jsx(Qt,{})]})})]})]})]})};return o.jsxs("div",{style:{opacity:N,marginBottom:20},className:e?"draggable row":"",children:[n===!0&&o.jsx(_h,{saveBuilderElementModalData:C,setSaveBuilderElementModalData:E,saveElementModal:S,setSaveElementModal:T}),w===!0&&n===!0&&o.jsx(Ih,{renderType:r,visibilty:w,setVisibility:x,section:s,pageIndex:c,sectionIndex:u,emitSocketData:i},"section_settings_"+c+u),n===!0?o.jsx(o.Fragment,{children:e===!0?o.jsxs(ci,{header:(le=s==null?void 0:s.heading)==null?void 0:le.english,toggleable:!0,headerTemplate:X=>$(X,c,u),onMouseEnter:()=>M(!0),onMouseLeave:()=>M(!1),children:[((R=s==null?void 0:s.subHeadingText)==null?void 0:R[A==null?void 0:A.type])&&o.jsx("p",{children:(Y=s==null?void 0:s.subHeadingText)==null?void 0:Y[A==null?void 0:A.type]}),o.jsxs("div",{children:[s.children.map((X,W)=>{const me=`${l}-${W}`;return o.jsxs(O.Fragment,{children:[o.jsx(Fr,{isAdvanceView:e,data:{path:me,childrenCount:s.children.length},onDrop:a}),z(X,me,c,u,W)]},me)}),o.jsx(Fr,{isAdvanceView:e,data:{path:`${l}-${s.children.length}`,childrenCount:s.children.length,droppedField:s},onDrop:a,isLast:!0})]}),_&&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:()=>{g(c),i()},children:o.jsx(Qt,{})})}),((se=m[c])==null?void 0:se.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:[((K=s==null?void 0:s.subHeadingText)==null?void 0:K[A==null?void 0:A.type])&&o.jsx("p",{children:(ie=s==null?void 0:s.subHeadingText)==null?void 0:ie[A==null?void 0:A.type]}),o.jsx("div",{children:s.children.map((X,W)=>{const me=`${l}-${W}`;return o.jsx(O.Fragment,{children:z(X,me,c,u,W)},me)})})]})}):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:(re=s==null?void 0:s.heading)==null?void 0:re[A==null?void 0:A.type]}),o.jsx("p",{children:(Z=s==null?void 0:s.subHeadingText)==null?void 0:Z[A==null?void 0:A.type]}),o.jsx("hr",{})]}),s.children.map((X,W)=>{const me=`${l}-${W}`;return o.jsx(O.Fragment,{children:o.jsx("div",{className:"",children:z(X,me,c,u,W)},me)},me)})]})})]})},Kye=t=>{var s;const{data:e,currentPath:n,pageIndex:r,page:i}=t,a=O.useRef(null);return o.jsx(o.Fragment,{children:o.jsxs(DA,{ref:a,modules:[CB,z3e],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((g,v)=>{var m;return(m=g==null?void 0:g.children)==null?void 0:m.map((A,w)=>{const x=`${n}-${c}-${f}-${v}-${w}`;return o.jsx(NA,{children:o.jsx("div",{className:"",children:o.jsx(Lc,{page:i,column:g,type:"field",row:d,section:l,field:A,data:A,path:x,pageIndex:r,sectionIndex:c,rowIndex:f,columnIndex:v,fieldIndex:w},`component-${x}-${A==null?void 0:A.uuid}`)})},`swiper_slide_${x}`)})})})}),o.jsxs("div",{className:"flex justify-content-center",children:[o.jsx(Ft,{className:"mr-2 p-button-info prev",size:"large",label:"Previous",icon:"pi pi-arrow-left",onClick:()=>{}}),o.jsx(Ft,{size:"large",className:"p-button-info next",icon:"pi pi-arrow-right",label:"Next"})]})]})})},Xye=t=>{const{isAdvanceView:e,isBuilderMode:n}=zt(),{handleDrop:r}=sn(),{data:i,path:a,pageIndex:s}=t,{formBuilderFormSchema:l}=sn(),c=O.useRef(null),[{},u]=ra({type:na,item:{type:na,uuid:i.uuid,children:i.children,path:a},collect:f=>({isDragging:f.isDragging()})});u(c);const d=(f,h,g,v)=>o.jsx(Yye,{data:f,section:f,path:h,page:i,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":i==null?void 0:i.bgImage,"data-bg-color":`#${i==null?void 0:i.bgColor}`,children:n===!0?o.jsxs(o.Fragment,{children:[i.children.map((f,h)=>{const g=`${a}-${h}`;return o.jsxs(O.Fragment,{children:[o.jsx(Fr,{isAdvanceView:e,data:{path:g,childrenCount:i.children.length},onDrop:r}),d(f,g,s,h)]},`section-${h}-${f.uuid}`)}),o.jsx(Fr,{isAdvanceView:e,data:{path:`${a}-${i.children.length}`,childrenCount:i.children.length,droppedField:i},onDrop:r,isLast:!0})]}):o.jsx(o.Fragment,{children:(l==null?void 0:l.surveyQuestionSlide)===!0?o.jsx(o.Fragment,{children:o.jsx(Kye,{page:i,data:i,currentPath:a,pageIndex:s})}):o.jsx("div",{className:"p-1",children:i.children.map((f,h)=>{const g=`${a}-${h}`;return o.jsx(O.Fragment,{children:((f==null?void 0:f.isHidden)===!1||!n)&&d(f,g,s,h)},`section-${h}-${f.uuid}`)})})})})},Rye=()=>{const[t,e]=O.useState(!1),{isAdvanceView:n,isBuilderMode:r,emitSocketData:i}=zt(),[a,s]=O.useState(!1),[l,c]=O.useState(0),{removePage:u,userSelectedLanguage:d,formBuilderFormLayout:f,formBuilderFormLayout:h,clonePage:g}=sn(),v=(m,A,w)=>o.jsx(Xye,{data:m,path:A,pageIndex:w},`page-${m.uuid}`);return o.jsx(o.Fragment,{children:o.jsx("div",{className:"page",children:(h==null?void 0:h.length)===S9&&r===!1?o.jsx(o.Fragment,{children:(h==null?void 0:h.length)&&h.map((m,A)=>{const w=`${A}`;return o.jsx("div",{children:v(m,w,A)},`${m.uuid}-${A}`)})}):o.jsx(o.Fragment,{children:n===!0||r===!1?o.jsx(ts,{scrollable:!0,activeIndex:l,onTabChange:m=>c(m.index),children:(h==null?void 0:h.length)&&h.map((m,A)=>{const w=`${A}`;return o.jsxs(wr,{disabled:!((m==null?void 0:m.isHidden)===!1||r),header:"Page",headerTemplate:x=>o.jsx(F8,{options:x,pageIndex:A,page:m,setTabSidebarSetting:s,clonePage:g,emitSocketData:i,formBuilderFormLayout:f,userSelectedLanguage:d,removePage:u,setPageActiveIndex:c,pages:h}),children:[r===!0&&o.jsx(mf,{reusableBuilderElementModalVisibility:t,setReusableBuilderElementModalVisibility:e,pageIndex:A}),o.jsx(j0,{setVisibility:s,visibilty:a,pageIndex:A,page:m,emitSocketData:i}),v(m,w,A)]},`${m.uuid}-${A}`)})}):o.jsx(o.Fragment,{children:(h==null?void 0:h.length)>0&&(h==null?void 0:h.map((m,A)=>{const w=`${A}`;return o.jsxs(O.Fragment,{children:[r===!0&&o.jsx(mf,{reusableBuilderElementModalVisibility:t,setReusableBuilderElementModalVisibility:e,pageIndex:A}),o.jsx(j0,{setVisibility:s,visibilty:a,pageIndex:A,page:m,emitSocketData:i}),v(m,w,A)]},`${m.uuid}-${A}`)}))})})})})},Gye={position:"relative"},Wye=t=>{var S,T,C;const{data:e,path:n,pageIndex:r,sectionIndex:i,rowIndex:a,columnIndex:s,section:l,row:c,page:u}=t,d=O.useRef(null),{handleDrop:f}=sn(),{isRenderView:h,isAdvanceView:g,isBuilderMode:v}=zt(),[{isDragging:m},A]=ra({type:As,item:{type:As,uuid:e==null?void 0:e.uuid,children:e.children,path:n},collect:E=>({isDragging:E.isDragging()})}),w=m&&v?.25:1;A(d);const x=(E,_,M,k,F,P,H)=>o.jsx(Lc,{page:u,type:"field",row:c,section:l,field:E,data:E,path:_,pageIndex:M,sectionIndex:k,rowIndex:F,columnIndex:P,fieldIndex:H},`component-${n}-${E==null?void 0:E.uuid}`);return o.jsx("div",{style:g?{...Gye,opacity:w}:{},className:h?"form-builder-column container-column":"draggable form-builder-column container-column",children:v===!0?o.jsxs("div",{className:"builder-row-column",children:[((S=e==null?void 0:e.children)==null?void 0:S.length)>0?(T=e==null?void 0:e.children)==null?void 0:T.map((E,_)=>{const M=`${n}-${_}`;return o.jsxs(O.Fragment,{children:[o.jsx(Fr,{isAdvanceView:g,data:{path:M,childrenCount:e.children.length,droppedField:e},onDrop:f}),x(E,M,r,i,a,s,_)]},M)}):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(Fr,{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((E,_)=>{const M=`${n}-${_}`;return o.jsx(O.Fragment,{children:x(E,M,r,i,a,s,_)},M)})})})},Qye={},Jye=t=>{var M,k,F,P,H,N,z,$,le;const{data:e,path:n,pageIndex:r,sectionIndex:i,rowIndex:a,section:s,page:l}=t,c=O.useRef(null),{removeRow:u,addRow:d,cloneRow:f,formBuilderFormLayout:h,userSelectedLanguage:g}=sn(),{isRenderView:v,isBuilderMode:m}=zt(),{task_status:A,TASK_PUBLISHED:w}=Ar(),[x,S]=O.useState(!1),[{isDragging:T},C]=ra({type:Ao,item:{type:Ao,uuid:e.uuid,children:e.children,path:n,data:e},collect:R=>({isDragging:R.isDragging()})}),E=T?.25:1;C(c);const _=(R,Y,se,K,ie,re)=>o.jsx(Wye,{page:l,row:e,section:s,data:R,path:Y,pageIndex:se,sectionIndex:K,rowIndex:ie,columnIndex:re},`column-${n}-${R.uuid}`);return o.jsxs("div",{style:{...Qye,opacity:E,marginTop:`${(M=e==null?void 0:e.margin)==null?void 0:M.top}px`,marginBottom:`${(k=e==null?void 0:e.margin)==null?void 0:k.bottom}px`,marginLeft:`${(F=e==null?void 0:e.margin)==null?void 0:F.left}px`,marginRight:`${(P=e==null?void 0:e.margin)==null?void 0:P.right}px`},className:v?"row container-row":"draggable row container-row",children:[x&&o.jsx(bg,{visibilty:x,setVisibility:S,row:e,pageIndex:r,sectionIndex:i,rowIndex:a},"row_settings_"+r+i+a),m===!0?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,{})]}),((N=(H=h[r])==null?void 0:H.children[i])==null?void 0:N.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:(z=e==null?void 0:e.children)==null?void 0:z.map((R,Y)=>{const se=`${n}-${Y}`;return o.jsx(O.Fragment,{children:_(R,se,r,i,a,Y)},se)})})]}):o.jsx(o.Fragment,{children:!(e!=null&&e.rowIsRepeatable&&A===w)&&o.jsxs(o.Fragment,{children:[o.jsx("h5",{children:($=e==null?void 0:e.heading)==null?void 0:$[g==null?void 0:g.type]}),o.jsx("span",{children:(le=e==null?void 0:e.subHeadingText)==null?void 0:le[g==null?void 0:g.type]}),o.jsx("div",{className:"form-builder-columns",children:e.children.map((R,Y)=>{const se=`${n}-${Y}`;return o.jsx(O.Fragment,{children:_(R,se,r,i,a,Y)},se)})})]})})]})},Zye=t=>{var C,E,_;const{data:e,path:n,pageIndex:r,sectionIndex:i,section:a,page:s}=t,{userSelectedLanguage:l}=sn(),{isAdvanceView:c,isBuilderMode:u}=zt(),[d,f]=O.useState(!1),[h,g]=O.useState(!1),[v,m]=O.useState(null),A=O.useRef(null),[{isDragging:w},x]=ra({type:na,item:{type:na,uuid:e.uuid,children:e.children,path:n},collect:M=>({isDragging:M.isDragging()})}),S=w?.25:1;x(A);const T=(M,k,F,P,H)=>o.jsx(Jye,{page:s,section:a,data:M,path:k,pageIndex:F,sectionIndex:P,rowIndex:H},`row-${n}-${M.uuid}`);return o.jsxs("div",{style:{opacity:S,marginBottom:20},className:c?"draggable row":"",children:[u===!0&&o.jsx(_h,{saveBuilderElementModalData:v,setSaveBuilderElementModalData:m,saveElementModal:h,setSaveElementModal:g}),d===!0&&o.jsx(Ih,{visibilty:d,setVisibility:f,section:e,pageIndex:r,sectionIndex:i},"section_settings_"+r+i),u===!0?o.jsx("div",{children:o.jsx("div",{children:e.children.map((M,k)=>{const F=`${n}-${k}`;return o.jsx(O.Fragment,{children:T(M,F,r,i,k)},F)})})}):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=e==null?void 0:e.subHeadingText)==null?void 0:E[l==null?void 0:l.type])&&o.jsx("p",{children:(_=e==null?void 0:e.subHeadingText)==null?void 0:_[l==null?void 0:l.type]}),o.jsx("hr",{})]}),e.children.map((M,k)=>{const F=`${n}-${k}`;return o.jsx(O.Fragment,{children:o.jsx("div",{className:"",children:T(M,F,r,i,k)},F)},F)})]})})]})},v5={},b5={height:"1280px",width:"100%"},eAe=t=>{var d,f,h,g;const{data:e,path:n,pageIndex:r}=t,{isBuilderMode:i}=zt(),a=O.useRef(null),[{isDragging:s},l]=ra({type:na,item:{type:na,uuid:e.uuid,children:e.children,path:n},collect:v=>({isDragging:v.isDragging()})}),c=s?0:1;l(a);const u=(v,m,A,w)=>o.jsx(Zye,{data:v,section:v,path:m,page:e,pageIndex:A,sectionIndex:w},`section_${A}_${w}`);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:"pdf flex justify-content-center",children:i===!0?o.jsx("div",{id:e==null?void 0:e.uuid,className:"page-block ",style:(e==null?void 0:e.bgType)==="image"?{...v5,...b5,opacity:c,backgroundImage:`url("${e==null?void 0:e.bgImage}")`}:{...v5,...b5,opacity:c,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,m)=>{const A=`${n}-${m}`;return o.jsx(O.Fragment,{children:u(v,A,r,m)},`section-${m}-${v.uuid}`)})})}):o.jsx(o.Fragment,{children:o.jsx("div",{className:"page-block",style:(e==null?void 0:e.bgType)==="image"?{...v5,...b5,opacity:c,backgroundImage:`url("${e==null?void 0:e.bgImage}")`,backgroundSize:"cover"}:{...v5,...b5,opacity:c,backgroundColor:`#${e==null?void 0:e.bgColor}`},children:o.jsx("div",{style:{marginTop:`${(d=e==null?void 0:e.margin)==null?void 0:d.top}px`,marginBottom:`${(f=e==null?void 0:e.margin)==null?void 0:f.bottom}px`,marginLeft:`${(h=e==null?void 0:e.margin)==null?void 0:h.left}px`,marginRight:`${(g=e==null?void 0:e.margin)==null?void 0:g.right}px`},children:e.children.map((v,m)=>{const A=`${n}-${m}`;return o.jsx(O.Fragment,{children:((v==null?void 0:v.isHidden)===!1||i)&&u(v,A,r,m)},`section-${m}-${v.uuid}`)})})})})})})},tAe=()=>{const{isBuilderMode:t}=zt(),[e,n]=O.useState(!1),[r,i]=O.useState(0),[a,s]=O.useState(!1),{formBuilderFormLayout:l}=sn(),c=(u,d,f)=>o.jsx(eAe,{data:u,path:d,pageIndex:f},`page-${u.uuid}`);return o.jsx("div",{className:"page",children:(l==null?void 0:l.length)===S9&&t===!1?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===!0?o.jsx(ts,{scrollable:!0,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(wr,{header:"Page",headerTemplate:h=>o.jsx(F8,{options:h,pageIndex:d,page:u,setTabSidebarSetting:n,setPageActiveIndex:i,pages:l}),children:[t===!0&&o.jsx(mf,{reusableBuilderElementModalVisibility:a,setReusableBuilderElementModalVisibility:s,pageIndex:d}),o.jsxs("div",{className:"p-3",children:[o.jsx(j0,{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===!0&&o.jsx(mf,{reusableBuilderElementModalVisibility:a,setReusableBuilderElementModalVisibility:s,pageIndex:d}),o.jsxs("div",{className:"p-3",children:[o.jsx(j0,{setVisibility:n,visibilty:e,pageIndex:d,page:u}),o.jsx("div",{children:c(u,f,d)})]})]},`${u.uuid}-${d}`)})})})})},nAe=t=>{var w,x,S,T;const e=O.useRef(null),{removeColumn:n,addColumn:r,cloneColumn:i,formBuilderFormLayout:a}=sn(),{emitSocketData:s,isBuilderMode:l}=zt(),{options:c,pageIndex:u,sectionIndex:d,rowIndex:f,columnIndex:h,data:g}=t,v=c.collapsed?"pi pi-chevron-down":"pi pi-chevron-up",m=`${c.className} justify-content-space-between`,A=`${c.titleClassName} pl-1 text-primary`;return o.jsxs(o.Fragment,{children:[o.jsx(cn,{target:".clone-tool"}),o.jsx(cn,{target:".add-column-tool"}),o.jsxs("div",{className:m,children:[o.jsxs("span",{ref:l===!0?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:v}),o.jsx(Qt,{})]}),o.jsx("span",{className:A,children:"Column"})]}),l===!0&&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),s()},children:[o.jsx("span",{className:"pi pi-plus"}),o.jsx(Qt,{})]})}),((T=(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:T.length)>1&&o.jsxs("button",{className:c.togglerClassName,onClick:()=>{n(u,d,f,h),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:c.togglerClassName,onClick:()=>{i(g,u,d,f,h),s()},children:[o.jsx("span",{className:"pi pi-clone"}),o.jsx(Qt,{})]})})]})]})]})},rAe={position:"relative"},iAe=t=>{var S,T,C,E,_;const{isAdvanceView:e,isRenderView:n,isBuilderMode:r}=zt(),{handleDrop:i}=sn(),{data:a,path:s,pageIndex:l,sectionIndex:c,rowIndex:u,columnIndex:d,section:f,row:h,page:g}=t,v=O.useRef(null),[{isDragging:m},A]=ra({type:As,item:{type:As,uuid:a==null?void 0:a.uuid,children:a.children,path:s},collect:M=>({isDragging:M.isDragging()})}),w=m&&!n?.25:1;A(v);const x=(M,k,F,P,H,N,z)=>o.jsx(Lc,{page:g,column:a,type:"field",row:h,section:f,field:M,data:M,path:k,pageIndex:F,sectionIndex:P,rowIndex:H,columnIndex:N,fieldIndex:z},`component-${s}-${M==null?void 0:M.uuid}`);return o.jsx("div",{style:e?{...rAe,opacity:w}:{},className:n?"form-builder-column container-column":"draggable form-builder-column container-column",children:r===!0?o.jsx(o.Fragment,{children:e===!0?o.jsxs(ci,{className:"builder-row-column",header:"Column",toggleable:!0,headerTemplate:M=>o.jsx(nAe,{options:M,pageIndex:l,sectionIndex:c,rowIndex:u,data:a,columnIndex:d}),children:[((S=a==null?void 0:a.children)==null?void 0:S.length)>0?(T=a==null?void 0:a.children)==null?void 0:T.map((M,k)=>{const F=`${s}-${k}`;return o.jsxs(O.Fragment,{children:[o.jsx(Fr,{isAdvanceView:e,fieldDropArea:!0,data:{path:F,childrenCount:a.children.length,droppedField:a},onDrop:i}),x(M,F,l,c,u,d,k)]},F)}):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(Fr,{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?(E=a==null?void 0:a.children)==null?void 0:E.map((M,k)=>{const F=`${s}-${k}`;return o.jsxs(O.Fragment,{children:[o.jsx(Fr,{isAdvanceView:e,fieldDropArea:!0,data:{path:F,childrenCount:a.children.length,droppedField:a},onDrop:i}),x(M,F,l,c,u,d,k)]},F)}):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(Fr,{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:(_=a==null?void 0:a.children)==null?void 0:_.map((M,k)=>{const F=`${s}-${k}`;return o.jsx(O.Fragment,{children:x(M,F,l,c,u,d,k)},F)})})})},aAe=t=>{var x,S,T,C;const{options:e,pageIndex:n,sectionIndex:r,rowIndex:i,data:a}=t,[,s]=O.useState(!1),l=O.useRef(null),{isBuilderMode:c,emitSocketData:u}=zt(),{removeRow:d,addRow:f,cloneRow:h,formBuilderFormLayout:g,userSelectedLanguage:v}=sn(),m=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(cn,{target:".clone-tool"}),o.jsx(cn,{target:".setting-tool"}),o.jsx(cn,{target:".add-row-tool"}),o.jsxs("div",{className:A,children:[o.jsxs("span",{ref:c===!0?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:m}),o.jsx(Qt,{})]}),o.jsxs("span",{className:w,children:["Row:"," ",((x=a==null?void 0:a.heading)==null?void 0:x[v==null?void 0:v.type])!==""?(S=a==null?void 0:a.heading)==null?void 0:S[v==null?void 0:v.type]:"Untitled"]})]}),c===!0&&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=(T=g[n])==null?void 0:T.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,{})]})})]})]})]})},sAe={},oAe=t=>{var ie,re,Z,X,W,me,be,Te,ye,de,ne;const{isAdvanceView:e,isRenderView:n,isBuilderMode:r,isAdmin:i,renderType:a,emitSocketData:s}=zt(),{handleDrop:l}=sn(),{data:c,path:u,pageIndex:d,sectionIndex:f,rowIndex:h,section:g,page:v}=t,m=O.useRef(null),{userSelectedLanguage:A}=sn(),{userTaskSubmitFormData:w,taskRegisterData:x,updateTaskRegisterData:S,updateTaskProgressValue:T,addUserDataFormSectionRepeatableData:C,removeUserDataFormSectionRepeatableData:E,task_status:_,TASK_PUBLISHED:M}=Ar(),[k,F]=O.useState(!1),[{isDragging:P},H]=ra({type:Ao,item:{type:Ao,uuid:c.uuid,children:c.children,path:u,data:c},collect:U=>({isDragging:U.isDragging()})}),N=P?.25:1;H(m);const z=(U,ee,oe,ge,_e,Ne)=>o.jsx(iAe,{page:v,row:c,section:g,data:U,path:ee,pageIndex:oe,sectionIndex:ge,rowIndex:_e,columnIndex:Ne,emitSocketData:s},`column-${u}-${U.uuid}`),$=_t.findIndex(w,function(U){return(U==null?void 0:U.rowId)===(c==null?void 0:c.uuid)}),le=()=>{var oe,ge,_e;const U=_t.cloneDeep(x);((ge=(oe=w[$])==null?void 0:oe.repeatableFieldsData)==null?void 0:ge.length)>=(c==null?void 0:c.minimumEntries)?U[c==null?void 0:c.uuid]=(_e=w[$])==null?void 0:_e.repeatableFields:delete U[c==null?void 0:c.uuid];const ee=Object.keys(U).length;S(U),T(ee)},R=(ie=c==null?void 0:c.repeatableFields)==null?void 0:ie.map(U=>{var ee;return{fieldUuid:U==null?void 0:U.uuid,field:U==null?void 0:U.uuid,header:(ee=U==null?void 0:U.label)==null?void 0:ee.english}}),Y=R==null?void 0:R.map(U=>o.jsx(xr,{field:U.field,header:U.header,body:ee=>o.jsx(o.Fragment,{children:o.jsx("div",{className:"post__content_repetable",dangerouslySetInnerHTML:{__html:ee[U==null?void 0:U.field]}})})},U.field)),se=()=>{var ge;const U=[...w],ee=[];let oe=!0;e:for(const[,_e]of c.children.entries()){for(const[,Ne]of _e.children.entries())if(Ne!=null&&Ne.isPostField&&Ne.isValid!==1){const ve={fieldId:Ne.uuid,rowIndex:h};console.log("inValidData",ve),ee.push(ve),Gt.emit("OnInvalidFieldCatch",ve),oe=!1;break e}oe=!0}oe&&(ee==null?void 0:ee.length)===0&&(C(c==null?void 0:c.uuid,(ge=U[$])==null?void 0:ge.repeatableFields),Gt.emit("clearRepeatableFields",c==null?void 0:c.uuid),le())},K=U=>o.jsx(o.Fragment,{children:o.jsx(Ft,{text:!0,size:"small",type:"button",className:"p-button-danger ",onClick:()=>{E(c==null?void 0:c.uuid,U==null?void 0:U.rowIndex),setTimeout(()=>{le()},1e3)},icon:"pi pi-trash"})});return o.jsxs("div",{style:{...sAe,opacity:N,marginTop:`${(re=c==null?void 0:c.margin)==null?void 0:re.top}px`,marginBottom:`${(Z=c==null?void 0:c.margin)==null?void 0:Z.bottom}px`,marginLeft:`${(X=c==null?void 0:c.margin)==null?void 0:X.left}px`,marginRight:`${(W=c==null?void 0:c.margin)==null?void 0:W.right}px`},className:n?"row container-row":"draggable row container-row",children:[k&&o.jsx(bg,{renderType:a,visibilty:k,setVisibility:F,row:c,pageIndex:d,sectionIndex:f,rowIndex:h,emitSocketData:s},"row_settings_"+d+f+h),r===!0?o.jsx(o.Fragment,{children:e===!0?o.jsx(ci,{header:"Row",toggleable:!0,headerTemplate:U=>o.jsx(aAe,{options:U,pageIndex:d,sectionIndex:f,rowIndex:h,data:c}),children:o.jsxs("div",{className:"form-builder-columns",style:{overflowX:"auto"},children:[(me=c==null?void 0:c.children)==null?void 0:me.map((U,ee)=>{const oe=`${u}-${ee}`;return o.jsxs(O.Fragment,{children:[o.jsx(Fr,{isAdvanceView:e,data:{path:oe,childrenCount:c.children.length},onDrop:l,className:"horizontalDrag"}),z(U,oe,d,f,h,ee)]},oe)}),o.jsx(Fr,{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:(be=c==null?void 0:c.children)==null?void 0:be.map((U,ee)=>{const oe=`${u}-${ee}`;return o.jsx(O.Fragment,{children:z(U,oe,d,f,h,ee)},oe)})})})}):o.jsx(o.Fragment,{children:!(c!=null&&c.rowIsRepeatable&&_===M)&&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,ee)=>{const oe=`${u}-${ee}`;return o.jsx(O.Fragment,{children:z(U,oe,d,f,h,ee)},oe)})})]})}),(c==null?void 0:c.rowIsRepeatable)&&_!==M&&o.jsx(Ft,{text:!0,size:"small",type:"button",className:"p-button-success mb-3",onClick:()=>se(),label:((de=c.addToListButtonLabel)==null?void 0:de[A==null?void 0:A.type])+"9999999999"}),(c==null?void 0:c.rowIsRepeatable)&&o.jsxs("div",{className:"card",children:[o.jsxs(ro,{value:(w==null?void 0:w.length)>0?(ne=w[$])==null?void 0:ne.repeatableFieldsData:[],children:[Y,_!==M&&o.jsx(xr,{style:{width:"10%"},headerStyle:{textAlign:"center"},bodyStyle:{textAlign:"left",overflow:"visible"},body:U=>K(U)})]}),i&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(ki,{field:c})]})]})]})},lAe=t=>{var le,R,Y,se,K,ie,re,Z;const{isAdvanceView:e,isBuilderMode:n,renderType:r,emitSocketData:i}=zt(),{handleDrop:a}=sn(),{data:s,path:l,pageIndex:c,sectionIndex:u,section:d,page:f}=t,{removeSection:h,addSection:g,cloneSection:v,formBuilderFormLayout:m,userSelectedLanguage:A}=sn(),[w,x]=O.useState(!1),[S,T]=O.useState(!1),[C,E]=O.useState({reusable_template_schema:""}),[_,M]=O.useState(!1),k=O.useRef(null),F=(X,W)=>{E(me=>({...me,[X]:W}))},[{isDragging:P},H]=ra({type:na,item:{type:na,uuid:s.uuid,children:s.children,path:l},collect:X=>({isDragging:X.isDragging()})}),N=P?.25:1;H(k);const z=(X,W,me,be,Te)=>o.jsx(oAe,{page:f,section:d,data:X,path:W,pageIndex:me,sectionIndex:be,rowIndex:Te,emitSocketData:i},`row-${l}-${X.uuid}`),$=(X,W,me)=>{var de,ne;const be=X.collapsed?"pi pi-chevron-down":"pi pi-chevron-up",Te=`${X.className} justify-content-space-between panel-tab-section`,ye=`${X.titleClassName} pl-1 text-primary`;return o.jsxs("div",{className:Te,children:[o.jsxs("span",{ref:n===!0?k:null,children:[o.jsx("button",{className:X.togglerClassName,children:o.jsx("span",{className:"pi pi-sliders-h dragabble"})}),o.jsxs("button",{className:X.togglerClassName,onClick:X.onTogglerClick,children:[o.jsx("span",{className:be}),o.jsx(Qt,{})]}),o.jsxs("span",{className:ye,children:[me+1," ",(de=s==null?void 0:s.heading)==null?void 0:de[A==null?void 0:A.type]]})]}),n===!0&&o.jsxs(o.Fragment,{children:[o.jsx(cn,{target:".clone-tool"}),o.jsx(cn,{target:".del-tool"}),o.jsx(cn,{target:".setting-tool"}),o.jsx(cn,{target:".add-section-tool"}),o.jsx(cn,{target:".save-tool"}),o.jsx(cn,{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:X.togglerClassName,onClick:()=>{g(W),i()},children:[o.jsx("span",{className:"pi pi-plus"}),o.jsx(Qt,{})]})}),((ne=m[W])==null?void 0:ne.children.length)>1&&o.jsx("span",{className:"del-tool","data-pr-tooltip":"Delete",children:o.jsxs("button",{className:X.togglerClassName,onClick:()=>{h(W,me),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:X.togglerClassName,onClick:()=>{F("reusable_template_schema",s),T(!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:X.togglerClassName,onClick:()=>{v(s,W,me),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:X.togglerClassName,onClick:()=>x(!0),children:[o.jsx("span",{className:"pi pi-cog"}),o.jsx(Qt,{})]})})]})]})]})};return o.jsxs("div",{style:{opacity:N,marginBottom:20},className:e?"draggable row":"",children:[n===!0&&o.jsx(_h,{saveBuilderElementModalData:C,setSaveBuilderElementModalData:E,saveElementModal:S,setSaveElementModal:T}),w===!0&&n===!0&&o.jsx(Ih,{renderType:r,visibilty:w,setVisibility:x,section:s,pageIndex:c,sectionIndex:u,emitSocketData:i},"section_settings_"+c+u),n===!0?o.jsx(o.Fragment,{children:e===!0?o.jsxs(ci,{header:(le=s==null?void 0:s.heading)==null?void 0:le.english,toggleable:!0,headerTemplate:X=>$(X,c,u),onMouseEnter:()=>M(!0),onMouseLeave:()=>M(!1),children:[((R=s==null?void 0:s.subHeadingText)==null?void 0:R[A==null?void 0:A.type])&&o.jsx("p",{children:(Y=s==null?void 0:s.subHeadingText)==null?void 0:Y[A==null?void 0:A.type]}),o.jsxs("div",{children:[s.children.map((X,W)=>{const me=`${l}-${W}`;return o.jsxs(O.Fragment,{children:[o.jsx(Fr,{isAdvanceView:e,data:{path:me,childrenCount:s.children.length},onDrop:a}),z(X,me,c,u,W)]},me)}),o.jsx(Fr,{isAdvanceView:e,data:{path:`${l}-${s.children.length}`,childrenCount:s.children.length,droppedField:s},onDrop:a,isLast:!0})]}),_&&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:()=>{g(c),i()},children:o.jsx(Qt,{})})}),((se=m[c])==null?void 0:se.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:[((K=s==null?void 0:s.subHeadingText)==null?void 0:K[A==null?void 0:A.type])&&o.jsx("p",{children:(ie=s==null?void 0:s.subHeadingText)==null?void 0:ie[A==null?void 0:A.type]}),o.jsx("div",{children:s.children.map((X,W)=>{const me=`${l}-${W}`;return o.jsx(O.Fragment,{children:z(X,me,c,u,W)},me)})})]})}):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:(re=s==null?void 0:s.heading)==null?void 0:re[A==null?void 0:A.type]}),o.jsx("p",{children:(Z=s==null?void 0:s.subHeadingText)==null?void 0:Z[A==null?void 0:A.type]}),o.jsx("hr",{})]}),s.children.map((X,W)=>{const me=`${l}-${W}`;return o.jsx(O.Fragment,{children:o.jsx("div",{className:"",children:z(X,me,c,u,W)},me)},me)})]})})]})},cAe={position:"relative"},uAe=t=>{var S,T,C;const{isAdvanceView:e,isRenderView:n,isBuilderMode:r}=zt(),{handleDrop:i}=sn(),{data:a,path:s,pageIndex:l,sectionIndex:c,rowIndex:u,columnIndex:d,section:f,row:h,page:g}=t,v=O.useRef(null),[{isDragging:m},A]=ra({type:As,item:{type:As,uuid:a==null?void 0:a.uuid,children:a.children,path:s},collect:E=>({isDragging:E.isDragging()})}),w=m&&!n?.25:1;A(v);const x=(E,_,M,k,F,P,H)=>o.jsx(Lc,{page:g,type:"field",row:h,column:a,section:f,field:E,data:E,path:_,pageIndex:M,sectionIndex:k,rowIndex:F,columnIndex:P,fieldIndex:H},`component-${s}-${E==null?void 0:E.uuid}`);return o.jsx("div",{style:e?{...cAe,opacity:w}:{},className:n?"":"draggable column container-column",children:r===!0?o.jsx(o.Fragment,{children:o.jsxs("div",{children:[((S=a==null?void 0:a.children)==null?void 0:S.length)>0?(T=a==null?void 0:a.children)==null?void 0:T.map((E,_)=>{const M=`${s}-${_}`;return o.jsxs(O.Fragment,{children:[o.jsx(Fr,{isAdvanceView:e,fieldDropArea:!0,data:{path:M,childrenCount:a.children.length,droppedField:a},onDrop:i}),x(E,M,l,c,u,d,_)]},M)}):o.jsx(o.Fragment,{}),o.jsx(Fr,{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((E,_)=>{const M=`${s}-${_}`;return o.jsx(O.Fragment,{children:x(E,M,l,c,u,d,_)},M)})})})},dAe=t=>{var l;const{isAdvanceView:e}=zt(),{data:n,page:r,currentPath:i,pageIndex:a}=t,s=(c,u,d,f,h,g,v,m)=>o.jsx(uAe,{page:r,row:m,section:v,data:c,path:`${d}-${f}-${h}-${g}`,pageIndex:d,sectionIndex:f,rowIndex:h,columnIndex:g},`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 g;return o.jsx(o.Fragment,{children:o.jsx("div",{className:e?"columns":"",style:e?{overflowX:"auto"}:{},children:(g=f==null?void 0:f.children)==null?void 0:g.map((v,m)=>{const A=`${i}-${u}-${h}-${m}`;return o.jsx(O.Fragment,{children:s(v,A,a,u,h,m,c,f)},A)})})})})})})},fAe=t=>{const{data:e,path:n,pageIndex:r}=t,{isAdvanceView:i,isBuilderMode:a}=zt(),{formBuilderFormSchema:s,handleDrop:l}=sn(),c=O.useRef(null),[{},u]=ra({type:na,item:{type:na,uuid:e.uuid,children:e.children,path:n},collect:f=>({isDragging:f.isDragging()})});u(c);const d=(f,h,g,v)=>o.jsx(lAe,{data:f,section:f,path:h,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:a===!0?o.jsx(o.Fragment,{children:i?o.jsxs(o.Fragment,{children:[e.children.map((f,h)=>{const g=`${n}-${h}`;return o.jsxs(O.Fragment,{children:[i===!0&&o.jsx(Fr,{isAdvanceView:i,data:{path:g,childrenCount:e.children.length},onDrop:l}),d(f,g,r,h)]},`section-${h}-${f.uuid}`)}),i===!0&&o.jsx(Fr,{isAdvanceView:i,data:{path:`${n}-${e.children.length}`,childrenCount:e.children.length,droppedField:e},onDrop:l,isLast:!0})]}):o.jsx(o.Fragment,{children:o.jsx(dAe,{page:e,data:e,path:n,pageIndex:r})})}):o.jsx(o.Fragment,{children:o.jsx("div",{className:"p-1",children:e.children.map((f,h)=>{const g=`${n}-${h}`;return o.jsx(O.Fragment,{children:s!=null&&s.showConditionalFields?o.jsx(o.Fragment,{children:o.jsx("div",{children:d(f,g,r,h)})}):((f==null?void 0:f.isHidden)===!1||!a)&&d(f,g,r,h)},`section-${h}-${f.uuid}`)})})})})},hAe=()=>{const[t,e]=O.useState(!1),{formBuilderFormLayout:n}=sn(),{isBuilderMode:r}=zt(),i=()=>{},a=(s,l,c)=>o.jsx(fAe,{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(j0,{setVisibility:e,visibilty:t,pageIndex:l,page:s,emitSocketData:i}),a(s,c,l)]},`policie-page-${l}`)})})})})},pAe={position:"relative"},gAe=t=>{var S;const{isRenderView:e,isAdvanceView:n,isBuilderMode:r}=zt(),{data:i,path:a,pageIndex:s,sectionIndex:l,rowIndex:c,columnIndex:u,section:d,row:f,page:h}=t,g=O.useRef(null),{handleDrop:v}=sn(),[{isDragging:m},A]=ra({type:As,item:{type:As,uuid:i==null?void 0:i.uuid,children:i.children,path:a},collect:T=>({isDragging:T.isDragging()})}),w=m&&!e?.25:1;A(g);const x=(T,C,E,_,M,k,F)=>o.jsx(Lc,{page:h,type:"field",row:f,section:d,field:T,data:T,path:C,pageIndex:E,sectionIndex:_,rowIndex:M,columnIndex:k,fieldIndex:F},`component-${a}-${T==null?void 0:T.uuid}`);return o.jsx("div",{style:n?{...pAe,opacity:w}:{},className:e?"form-builder-column container-column":"draggable form-builder-column container-column",children:r&&o.jsxs("div",{children:[(S=i==null?void 0:i.children)==null?void 0:S.map((T,C)=>{const E=`${a}-${C}`;return o.jsxs(O.Fragment,{children:[o.jsx(Fr,{fieldDropArea:!0,isAdvanceView:n,data:{path:E,childrenCount:i.children.length,droppedField:i},onDrop:v}),x(T,E,s,l,c,u,C)]},E)}),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(Fr,{fieldDropArea:!0,isAdvanceView:n,data:{path:`${a}-${i.children.length}`,childrenCount:i.children.length,droppedField:i},onDrop:v,isLast:!0})]})})},mAe={},vAe=t=>{var K,ie,re,Z,X,W,me;const{data:e,path:n,pageIndex:r,sectionIndex:i,rowIndex:a,section:s,page:l}=t,c=O.useRef(null),{userSelectedLanguage:u,handleDrop:d}=sn(),{userTaskSubmitFormData:f,taskRegisterData:h,updateTaskRegisterData:g,updateTaskProgressValue:v,addUserDataFormSectionRepeatableData:m,removeUserDataFormSectionRepeatableData:A,task_status:w,TASK_PUBLISHED:x}=Ar(),{isRenderView:S,isAdmin:T,isAdvanceView:C,emitSocketData:E,renderType:_}=zt(),[M,k]=O.useState(!1),[{isDragging:F},P]=ra({type:Ao,item:{type:Ao,uuid:e.uuid,children:e.children,path:n,data:e},collect:be=>({isDragging:be.isDragging()})}),H=F?.25:1;P(c);const N=(be,Te,ye,de,ne,U)=>o.jsx(gAe,{page:l,row:e,section:s,data:be,path:Te,pageIndex:ye,sectionIndex:de,rowIndex:ne,columnIndex:U},`column-${n}-${be.uuid}`),z=_t.findIndex(f,function(be){return(be==null?void 0:be.rowId)===(e==null?void 0:e.uuid)}),$=()=>{var ye,de,ne;const be=_t.cloneDeep(h);((de=(ye=f[z])==null?void 0:ye.repeatableFieldsData)==null?void 0:de.length)>=(e==null?void 0:e.minimumEntries)?be[e==null?void 0:e.uuid]=(ne=f[z])==null?void 0:ne.repeatableFields:delete be[e==null?void 0:e.uuid];const Te=Object.keys(be).length;g(be),v(Te)},le=(K=e==null?void 0:e.repeatableFields)==null?void 0:K.map(be=>{var Te;return{fieldUuid:be==null?void 0:be.uuid,field:be==null?void 0:be.uuid,header:(Te=be==null?void 0:be.label)==null?void 0:Te.english}}),R=le==null?void 0:le.map(be=>o.jsx(xr,{field:be.field,header:be.header,body:Te=>o.jsx(o.Fragment,{children:o.jsx("div",{className:"post__content_repetable",dangerouslySetInnerHTML:{__html:Te[be==null?void 0:be.field]}})})},be.field)),Y=()=>{var de;const be=[...f],Te=[];let ye=!0;e:for(const[,ne]of e.children.entries()){for(const[,U]of ne.children.entries())if(U!=null&&U.isPostField&&U.isValid!==1){const ee={fieldId:U.uuid,rowIndex:a};Te.push(ee),Gt.emit("OnInvalidFieldCatch",ee),ye=!1;break e}ye=!0}ye&&(Te==null?void 0:Te.length)===0&&(m(e==null?void 0:e.uuid,(de=be[z])==null?void 0:de.repeatableFields),Gt.emit("clearRepeatableFields",e==null?void 0:e.uuid),$())},se=be=>o.jsx(o.Fragment,{children:o.jsx(Ft,{text:!0,type:"button",size:"small",className:"p-button-danger ",onClick:()=>{A(e==null?void 0:e.uuid,be==null?void 0:be.rowIndex),setTimeout(()=>{$()},1e3)},icon:"pi pi-trash"})});return o.jsxs("div",{style:{...mAe,opacity:H,marginTop:`${(ie=e==null?void 0:e.margin)==null?void 0:ie.top}px`,marginBottom:`${(re=e==null?void 0:e.margin)==null?void 0:re.bottom}px`,marginLeft:`${(Z=e==null?void 0:e.margin)==null?void 0:Z.left}px`,marginRight:`${(X=e==null?void 0:e.margin)==null?void 0:X.right}px`},className:S?"row container-row":"draggable row container-row",children:[M&&o.jsx(bg,{renderType:_,visibilty:M,setVisibility:k,row:e,pageIndex:r,sectionIndex:i,rowIndex:a,emitSocketData:E},"row_settings_"+r+i+a),o.jsxs("div",{className:"form-builder-columns",children:[e.children.map((be,Te)=>{const ye=`${n}-${Te}`;return o.jsxs(O.Fragment,{children:[_===zd&&o.jsx(Fr,{isAdvanceView:C,data:{path:ye,childrenCount:e.children.length},onDrop:d,className:"horizontalDrag"}),N(be,ye,r,i,a,Te)]},ye)}),o.jsx(Fr,{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(Ft,{text:!0,size:"small",type:"button",className:"p-button-success mb-3",onClick:()=>Y(),label:(W=e.addToListButtonLabel)==null?void 0:W[u==null?void 0:u.type]}),(e==null?void 0:e.rowIsRepeatable)&&o.jsxs("div",{className:"card",children:[o.jsxs(ro,{value:(f==null?void 0:f.length)>0?(me=f[z])==null?void 0:me.repeatableFieldsData:[],children:[R,w!==x&&o.jsx(xr,{style:{width:"10%"},headerStyle:{textAlign:"center"},bodyStyle:{textAlign:"left",overflow:"visible"},body:be=>se(be)})]}),T&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(ki,{field:e})]})]})]})},bAe=t=>{var N,z;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}=sn(),{isBuilderMode:g,isAdvanceView:v,renderType:m,emitSocketData:A}=zt(),[w,x]=O.useState(!1),[S,T]=O.useState(!1),[C,E]=O.useState({reusable_template_schema:""}),_=O.useRef(null),[{isDragging:M},k]=ra({type:na,item:{type:na,uuid:e.uuid,children:e.children,path:n},collect:$=>({isDragging:$.isDragging()})}),F=M?.25:1;k(_);const P=($,le,R,Y,se)=>o.jsx(vAe,{page:s,section:a,data:$,path:le,pageIndex:R,sectionIndex:Y,rowIndex:se},`row-${n}-${$.uuid}`),H=($,le,R)=>{var ie,re;const Y=$.collapsed?"pi pi-chevron-down":"pi pi-chevron-up",se=`${$.className} justify-content-space-between panel-tab-section`,K=`${$.titleClassName} pl-1 text-primary`;return o.jsxs("div",{className:se,children:[o.jsxs("span",{ref:g===!0?_:null,children:[o.jsx("button",{className:$.togglerClassName,children:o.jsx("span",{className:"pi pi-sliders-h dragabble"})}),o.jsxs("button",{className:$.togglerClassName,onClick:$.onTogglerClick,children:[o.jsx("span",{className:Y}),o.jsx(Qt,{})]}),o.jsxs("span",{className:K,children:[R+1," ",(ie=e==null?void 0:e.heading)==null?void 0:ie[f==null?void 0:f.type]]})]}),g===!0&&o.jsxs(o.Fragment,{children:[o.jsx(cn,{target:".clone-tool"}),o.jsx(cn,{target:".del-tool"}),o.jsx(cn,{target:".setting-tool"}),o.jsx(cn,{target:".add-section-tool"}),o.jsx(cn,{target:".save-tool"}),o.jsx(cn,{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:$.togglerClassName,onClick:()=>{c(le),A()},children:[o.jsx("span",{className:"pi pi-plus"}),o.jsx(Qt,{})]})}),((re=d[le])==null?void 0:re.children.length)>1&&o.jsx("span",{className:"del-tool","data-pr-tooltip":"Delete",children:o.jsxs("button",{className:$.togglerClassName,onClick:()=>{l(le,R),A()},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:$.togglerClassName,onClick:()=>{u(e,le,R),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:$.togglerClassName,onClick:()=>x(!0),children:[o.jsx("span",{className:"pi pi-cog"}),o.jsx(Qt,{})]})})]})]})]})};return o.jsxs("div",{style:{opacity:F,marginBottom:20},className:v?"draggable row":"",children:[g===!0&&o.jsx(_h,{saveBuilderElementModalData:C,setSaveBuilderElementModalData:E,saveElementModal:S,setSaveElementModal:T}),w===!0&&g===!0&&o.jsx(Ih,{renderType:m,visibilty:w,setVisibility:x,section:e,pageIndex:r,sectionIndex:i,emitSocketData:A},"section_settings_"+r+i),g===!0&&o.jsxs(ci,{className:"mb-5",header:(N=e==null?void 0:e.heading)==null?void 0:N.english,toggleable:!0,headerTemplate:$=>H($,r,i),children:[o.jsx("p",{children:(z=e==null?void 0:e.subHeadingText)==null?void 0:z[f==null?void 0:f.type]}),o.jsxs("div",{className:"",children:[e.children.map(($,le)=>{const R=`${n}-${le}`;return o.jsx(O.Fragment,{children:P($,R,r,i,le)},R)}),o.jsx(Fr,{isAdvanceView:v,data:{path:`${n}-${e.children.length}`,childrenCount:e.children.length},onDrop:h,className:"horizontalDrag",isLast:!0})]})]})]})},yAe=t=>{const{isRenderView:e,isBuilderMode:n}=zt(),{data:r,path:i,pageIndex:a}=t,s=O.useRef(null),[,l]=ra({type:na,item:{type:na,uuid:r.uuid,children:r.children,path:i},collect:u=>({isDragging:u.isDragging()})});l(s);const c=(u,d,f,h)=>o.jsx(bAe,{data:u,section:u,path:d,pageIndex:f,sectionIndex:h,page:r},`section_${f}_${h}`);return o.jsx("div",{style:{overflowX:"auto"},className:`${n&&"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("div",{className:"p-1",children:r.children.map((u,d)=>{const f=`${i}-${d}`;return o.jsx(O.Fragment,{children:c(u,f,a,d)},`section-${d}-${u.uuid}`)})}):o.jsx(o.Fragment,{})})},y5=t=>{const{handleSelectCourseItem:e,icon:n,currentItem:r,field:i,fieldIndex:a,title:s}=t,[l,c]=O.useState(!1),{userTrainingSaveData:u}=Ar(),d=h=>{var g,v;if(u!==null&&h){const m=u==null?void 0:u.findIndex(A=>(A==null?void 0:A.fieldId)===(h==null?void 0:h.uuid));return(g=u[m])!=null&&g.isSeen?(v=u[m])==null?void 0:v.isSeen:!1}else return!1},f=()=>{let h=[];if(u!==null){const v=u.findIndex(m=>(m==null?void 0:m.fieldId)===(i==null?void 0:i.uuid));h=u[v].logs}else h=[];return h==null?void 0:h.map((v,m)=>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:[v==null?void 0:v.action," on ",((v==null?void 0:v.videoTime)/60).toFixed(3)," seconds"]}),o.jsx("span",{className:"text-600",children:Ln(v==null?void 0:v.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:(v==null?void 0:v.action)==="Play"?"bg-green-500 h-full":"bg-orange-500 h-full",style:{width:`${Math.floor((v==null?void 0:v.videoTime)/(v==null?void 0:v.totalTime)*100)}%`}})}),o.jsxs("span",{className:"text-orange-500 ml-3 font-medium",children:[Math.floor((v==null?void 0:v.videoTime)/(v==null?void 0:v.totalTime)*100),"%"]})]})]},`logs_${m}`))};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(Ft,{text:!0,size:"small",type:"button",icon:"pi pi-check",className:"p-button-rounded p-button-primary mr-2 p-button-outlined","aria-label":"Search"}):o.jsx(Ft,{text:!0,size:"small",type:"button",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(Ft,{text:!0,size:"small",type:"button",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(Ft,{text:!0,size:"small",type:"button",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}`)},AAe=t=>{var S,T,C,E,_,M;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}=Ar(),g=(S=d==null?void 0:d.training)!=null&&S.getAssessmentSelectedQuiz?(T=d==null?void 0:d.training)==null?void 0:T.getAssessmentSelectedQuiz:()=>{},v=k=>{if(f!==null){const F=[...f],P=F.findIndex(H=>(H==null?void 0:H.fieldId)===(k==null?void 0:k.uuid));P>=0&&(F[P]={...F[P],isSeen:!0}),h([...F])}},m=k=>{var F;i(k),a(l),s({autoplay:!1,controls:!0,responsive:!0,fluid:!0,sources:[{src:(F=k==null?void 0:k.media_url)==null?void 0:F.english}]})},A=k=>{var F;v(k),i(k),c((F=k==null?void 0:k.media_url)==null?void 0:F.english),a(l)},w=k=>{v(k),i(k),u(k==null?void 0:k.documents),a(l)},x=k=>{var F,P;(F=k==null?void 0:k.quizSchema)!=null&&F.assessment_id&&(g((P=k==null?void 0:k.quizSchema)==null?void 0:P.assessment_id),a(l),i(k))};switch(e==null?void 0:e.componentType){case"video":return o.jsx(y5,{title:(C=e==null?void 0:e.title)==null?void 0:C.english,type:"video",icon:"pi pi-video",handleSelectCourseItem:m,field:e,fieldIndex:n,currentItem:r,userTrainingSaveData:f},`${e==null?void 0:e.uuid}-list`);case"image":return o.jsx(y5,{title:(E=e==null?void 0:e.title)==null?void 0:E.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(y5,{title:(_=e==null?void 0:e.title)==null?void 0:_.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(y5,{title:(M=e==null?void 0:e.quizSchema)==null?void 0:M.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,{})}},wAe=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(AAe,{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}`))})})},SAe=t=>{var v,m,A,w,x,S,T,C,E,_;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(),g=(v=h==null?void 0:h.image)!=null&&v.MediaImage?(m=h==null?void 0:h.image)==null?void 0:m.MediaImage:o.jsx(o.Fragment,{});return o.jsxs("div",{onClick:M=>{e(k=>{var F;return(F=n==null?void 0:n.answersText)==null?void 0:F[r==null?void 0:r.type]}),i(M,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(ia,{inputId:s,value:n.answersText,checked:((x=n.answersText)==null?void 0:x[r==null?void 0:r.type])===f,onChange:M=>{u({isCorrect:null,text:null}),e(k=>{var F;return(F=M.target.value)==null?void 0:F[r==null?void 0:r.type]}),i(M,s,l,n,c),a(!0)}}),((S=n.answersTextImage)==null?void 0:S[r==null?void 0:r.type])&&((T=n.answersTextImage)==null?void 0:T[r==null?void 0:r.type])!==""&&o.jsx(g,{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:(E=n.answersText)==null?void 0:E[r==null?void 0:r.type]}),o.jsx("span",{style:{position:"absolute",right:10},children:(d==null?void 0:d.text)===((_=n.answersText)==null?void 0:_[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)},CAe=t=>{var g,v,m,A,w,x,S;const{media:e}=zt(),n=(g=e==null?void 0:e.image)!=null&&g.MediaImage?(v=e==null?void 0:e.image)==null?void 0:v.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 O.useEffect(()=>(Array.isArray(f)||r([]),()=>{}),[]),o.jsx(o.Fragment,{children:Array.isArray(f)&&o.jsxs("div",{onClick:()=>{var T;h(!(f!=null&&f.some(C=>{var E;return C===((E=i.answersText)==null?void 0:E[a==null?void 0:a.type])})),(T=i==null?void 0:i.answersText)==null?void 0:T[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(T=>{var C;return(T==null?void 0:T.text)===((C=i.answersText)==null?void 0:C[a==null?void 0:a.type])}))?d!=null&&d.some(T=>{var C;return(T==null?void 0:T.text)===((C=i.answersText)==null?void 0:C[a==null?void 0:a.type])&&(T==null?void 0:T.isCorrect)===!0})?{borderColor:"green",borderWidth:1,borderStyle:"solid",position:"relative"}:{borderColor:"red",borderWidth:1,borderStyle:"solid",position:"relative"}:((m=i.answersText)==null?void 0:m[a==null?void 0:a.type])===f?{backgroundColor:"#0F8BFD"}:{},children:[o.jsx(Yr,{inputId:l,value:i.answersText,checked:f==null?void 0:f.some(T=>{var C;return T===((C=i.answersText)==null?void 0:C[a==null?void 0:a.type])}),onChange:T=>{var C;h(T.checked,(C=T.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(T=>{var C;return(T==null?void 0:T.text)===((C=i.answersText)==null?void 0:C[a==null?void 0:a.type])}))?d!=null&&d.some(T=>{var C;return(T==null?void 0:T.text)===((C=i.answersText)==null?void 0:C[a==null?void 0:a.type])&&(T==null?void 0:T.isCorrect)===!0})?o.jsx("span",{style:{color:"green"},children:" Correct Answer"}):o.jsx("span",{style:{color:"red"},children:" Wrong Answer"}):""})]},l)})};function DU(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function xAe(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 NU(t,e,n){return e&&xAe(t.prototype,e),t}function OU(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Lw(t,e)}function A5(t){return A5=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},A5(t)}function Lw(t,e){return Lw=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Lw(t,e)}function TAe(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function EAe(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function IAe(t,e){return e&&(typeof e=="object"||typeof e=="function")?e:EAe(t)}function FU(t){var e=TAe();return function(){var r=A5(t),i;if(e){var a=A5(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return IAe(this,i)}}function _Ae(t){return DAe(t)||NAe(t)||OAe(t)||FAe()}function DAe(t){if(Array.isArray(t))return Bw(t)}function NAe(t){if(typeof Symbol<"u"&&Symbol.iterator in Object(t))return Array.from(t)}function OAe(t,e){if(t){if(typeof t=="string")return Bw(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 Bw(t,e)}}function Bw(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 FAe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
4267
4267
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function yg(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2,n=String(t);if(e===0)return n;var r=n.match(/(.*?)([0-9]+)(.*)/),i=r?r[1]:"",a=r?r[3]:"",s=r?r[2]:n,l=s.length>=e?s:(_Ae(Array(e)).map(function(){return"0"}).join("")+s).slice(e*-1);return"".concat(i).concat(l).concat(a)}var kU={daysInHours:!1,zeroPadTime:2};function kAe(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.now,r=n===void 0?Date.now:n,i=e.precision,a=i===void 0?0:i,s=e.controlled,l=e.offsetTime,c=l===void 0?0:l,u=e.overtime,d;typeof t=="string"?d=new Date(t).getTime():t instanceof Date?d=t.getTime():d=t,s||(d+=c);var f=s?d:d-r(),h=Math.min(20,Math.max(0,a)),g=Math.round(parseFloat(((u?f:Math.max(0,f))/1e3).toFixed(h))*1e3),v=Math.abs(g)/1e3;return{total:g,days:Math.floor(v/(3600*24)),hours:Math.floor(v/3600%24),minutes:Math.floor(v/60%60),seconds:Math.floor(v%60),milliseconds:Number((v%1*1e3).toFixed()),completed:g<=0}}function PAe(t,e){var n=t.days,r=t.hours,i=t.minutes,a=t.seconds,s=Object.assign(Object.assign({},kU),e),l=s.daysInHours,c=s.zeroPadTime,u=s.zeroPadDays,d=u===void 0?c:u,f=Math.min(2,c),h=l?yg(r+n*24,c):yg(r,f);return{days:l?"":yg(n,d),hours:h,minutes:yg(i,f),seconds:yg(a,f)}}var PU=function(t){OU(n,t);var e=FU(n);function n(){var r;return DU(this,n),r=e.apply(this,arguments),r.state={count:r.props.count||3},r.startCountdown=function(){r.interval=window.setInterval(function(){var i=r.state.count-1;i===0?(r.stopCountdown(),r.props.onComplete&&r.props.onComplete()):r.setState(function(a){return{count:a.count-1}})},1e3)},r.stopCountdown=function(){clearInterval(r.interval)},r.addTime=function(i){r.stopCountdown(),r.setState(function(a){return{count:a.count+i}},r.startCountdown)},r}return NU(n,[{key:"componentDidMount",value:function(){this.startCountdown()}},{key:"componentWillUnmount",value:function(){clearInterval(this.interval)}},{key:"render",value:function(){return this.props.children?O.cloneElement(this.props.children,{count:this.state.count}):null}}]),n}(O.Component);PU.propTypes={count:la.number,children:la.element,onComplete:la.func};var Ag=function(t){OU(n,t);var e=FU(n);function n(r){var i;if(DU(this,n),i=e.call(this,r),i.mounted=!1,i.initialTimestamp=i.calcOffsetStartTimestamp(),i.offsetStartTimestamp=i.props.autoStart?0:i.initialTimestamp,i.offsetTime=0,i.legacyMode=!1,i.legacyCountdownRef=null,i.tick=function(){var s=i.calcTimeDelta(),l=s.completed&&!i.props.overtime?void 0:i.props.onTick;i.setTimeDeltaState(s,void 0,l)},i.setLegacyCountdownRef=function(s){i.legacyCountdownRef=s},i.start=function(){if(!i.isStarted()){var s=i.offsetStartTimestamp;i.offsetStartTimestamp=0,i.offsetTime+=s?i.calcOffsetStartTimestamp()-s:0;var l=i.calcTimeDelta();i.setTimeDeltaState(l,"STARTED",i.props.onStart),!i.props.controlled&&(!l.completed||i.props.overtime)&&(i.clearTimer(),i.interval=window.setInterval(i.tick,i.props.intervalDelay))}},i.pause=function(){i.isPaused()||(i.clearTimer(),i.offsetStartTimestamp=i.calcOffsetStartTimestamp(),i.setTimeDeltaState(i.state.timeDelta,"PAUSED",i.props.onPause))},i.stop=function(){i.isStopped()||(i.clearTimer(),i.offsetStartTimestamp=i.calcOffsetStartTimestamp(),i.offsetTime=i.offsetStartTimestamp-i.initialTimestamp,i.setTimeDeltaState(i.calcTimeDelta(),"STOPPED",i.props.onStop))},i.isStarted=function(){return i.isStatus("STARTED")},i.isPaused=function(){return i.isStatus("PAUSED")},i.isStopped=function(){return i.isStatus("STOPPED")},i.isCompleted=function(){return i.isStatus("COMPLETED")},r.date){var a=i.calcTimeDelta();i.state={timeDelta:a,status:a.completed?"COMPLETED":"STOPPED"}}else i.legacyMode=!0;return i}return NU(n,[{key:"componentDidMount",value:function(){this.legacyMode||(this.mounted=!0,this.props.onMount&&this.props.onMount(this.calcTimeDelta()),this.props.autoStart&&this.start())}},{key:"componentDidUpdate",value:function(i){this.legacyMode||this.props.date!==i.date&&(this.initialTimestamp=this.calcOffsetStartTimestamp(),this.offsetStartTimestamp=this.initialTimestamp,this.offsetTime=0,this.setTimeDeltaState(this.calcTimeDelta()))}},{key:"componentWillUnmount",value:function(){this.legacyMode||(this.mounted=!1,this.clearTimer())}},{key:"calcTimeDelta",value:function(){var i=this.props,a=i.date,s=i.now,l=i.precision,c=i.controlled,u=i.overtime;return kAe(a,{now:s,precision:l,controlled:c,offsetTime:this.offsetTime,overtime:u})}},{key:"calcOffsetStartTimestamp",value:function(){return Date.now()}},{key:"addTime",value:function(i){this.legacyCountdownRef.addTime(i)}},{key:"clearTimer",value:function(){window.clearInterval(this.interval)}},{key:"isStatus",value:function(i){return this.state.status===i}},{key:"setTimeDeltaState",value:function(i,a,s){var l=this;if(this.mounted){var c=i.completed&&!this.state.timeDelta.completed,u=i.completed&&a==="STARTED";c&&!this.props.overtime&&this.clearTimer();var d=function(){s&&s(l.state.timeDelta),l.props.onComplete&&(c||u)&&l.props.onComplete(i,u)};return this.setState(function(f){var h=a||f.status;return i.completed&&!l.props.overtime?h="COMPLETED":!a&&h==="COMPLETED"&&(h="STOPPED"),{timeDelta:i,status:h}},d)}}},{key:"getApi",value:function(){return this.api=this.api||{start:this.start,pause:this.pause,stop:this.stop,isStarted:this.isStarted,isPaused:this.isPaused,isStopped:this.isStopped,isCompleted:this.isCompleted}}},{key:"getRenderProps",value:function(){var i=this.props,a=i.daysInHours,s=i.zeroPadTime,l=i.zeroPadDays,c=this.state.timeDelta;return Object.assign(Object.assign({},c),{api:this.getApi(),props:this.props,formatted:PAe(c,{daysInHours:a,zeroPadTime:s,zeroPadDays:l})})}},{key:"render",value:function(){if(this.legacyMode){var i=this.props,a=i.count,s=i.children,l=i.onComplete;return O.createElement(PU,{ref:this.setLegacyCountdownRef,count:a,onComplete:l},s)}var c=this.props,u=c.className,d=c.overtime,f=c.children,h=c.renderer,g=this.getRenderProps();if(h)return h(g);if(f&&this.state.timeDelta.completed&&!d)return O.cloneElement(f,{countdown:g});var v=g.formatted,m=v.days,A=v.hours,w=v.minutes,x=v.seconds;return O.createElement("span",{className:u},g.total<0?"-":"",m,m?":":"",A,":",w,":",x)}}]),n}(O.Component);Ag.defaultProps=Object.assign(Object.assign({},kU),{controlled:!1,intervalDelay:1e3,precision:0,autoStart:!0}),Ag.propTypes={date:la.oneOfType([la.instanceOf(Date),la.string,la.number]),daysInHours:la.bool,zeroPadTime:la.number,zeroPadDays:la.number,controlled:la.bool,intervalDelay:la.number,precision:la.number,autoStart:la.bool,overtime:la.bool,className:la.string,children:la.element,renderer:la.func,now:la.func,onMount:la.func,onStart:la.func,onPause:la.func,onStop:la.func,onTick:la.func,onComplete:la.func};const MAe=({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(Ag,{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})})},LAe=O.memo(MAe),BAe=t=>{var d,f,h,g;const{assessmentData:e,onNextQuestion:n,currentQuestionIndex:r}=t,[i,a]=O.useState(Date.now()),[s,l]=O.useState(!1),c=O.useCallback(()=>{a(Date.now()),l(!1)},[r]);O.useEffect(()=>{c()},[r,c]);const u=v=>(v.seconds<10&&(v.seconds="0"+v.seconds),v.minutes===0&&(v.minutes="0"+v.minutes),v.completed&&!s?(l(!0),setTimeout(()=>{n()},500),o.jsx(o.Fragment,{})):o.jsxs("span",{children:["Time Remaining:"," ",o.jsxs("span",{style:{color:"black"},children:[v.minutes,":",v.seconds]})]}));return o.jsx(o.Fragment,{children:((f=(d=e==null?void 0:e.time_limit)==null?void 0:d.type)==null?void 0:f.key)==="PerQuestion"&&o.jsx(Ag,{renderer:u,date:i+parseInt((g=(h=e==null?void 0:e.time_limit)==null?void 0:h.time_limit_info)==null?void 0:g.time_per_question)*1e3,intervalDelay:0},i)})},VAe=()=>{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(()=>{}).catch(s=>{console.info("Not Played,"+s.error+s.name)})};return{socketConnection:t,socketDisconnect:e,errorOcurred:n,quizStartAlert:r}},qAe="1",MU=t=>{var Ae,Be,Ee,B,fe,he,ce,pe,Se,De;const e=Me=>{const[ze,rt]=O.useState(Me),it=O.useRef(ze);return O.useEffect(()=>{it.current=ze},[ze]),[ze,it,rt]},{endQuiz:n,AddUserAssessmentAnswer:r,assessmentData:i,taskData:a}=Ar(),[s,l]=O.useState(new Date),{session_id:c,quizData:u,saveProgress:d,renderIn:f,onOpenQuiz:h,setDisplay:g,setAssessmentModal:v=()=>{},saveNewQuizData:m}=t,{quizStartAlert:A}=VAe(),{userSelectedLanguage:w}=sn(),[x,,S]=e(0),{media:T}=zt(),C=(Ae=T==null?void 0:T.image)!=null&&Ae.MediaImage?(Be=T==null?void 0:T.image)==null?void 0:Be.MediaImage:o.jsx(o.Fragment,{}),[E,_,M]=e(null),[k,F]=O.useState(!1),[P,H,N]=e([]),[z,$]=O.useState(!1),[le,R]=O.useState(!1),[Y,se]=O.useState(0),[K,ie]=O.useState(0),[re,Z]=O.useState(0),[X,W]=O.useState(!1),[me,be]=O.useState({isCorrect:null,text:null});window.onbeforeunload=function(){return!1},O.useEffect(()=>{z||$(!0)},[P,k,z]),O.useEffect(()=>{u!==null&&(A(),Te())},[]);const Te=()=>{ie(u.quizConfiguration.quizPassMark)},ye=O.useCallback((Me,ze,rt,it,ht)=>{const Ht=[...P];if((ht==null?void 0:ht.answerInputType)!=="checkbox"){const hn={uuid:ht==null?void 0:ht.uuid,question:ht==null?void 0:ht.questionText,isCorrect:it.isCorrect,selectedAnswer:it.answersText,viewed:!0},Ut=P.findIndex(mn=>(mn==null?void 0:mn.uuid)===ht.uuid);Ut>=0?(Ht[Ut]={...Ht[Ut],...hn},N(Ht)):N([...P,hn])}},[E]),de=()=>{if(x===0)return;const Me=x-1,ze=u.quizElements[Me],rt=H.current.find(it=>it.uuid===ze.uuid);if(rt){const it=rt.selectedAnswer;M(Array.isArray(it)?it:it[w.type]??it),F(!0)}else M(null),F(!1);S(Me)},ne=Me=>{for(const ze of P)if(ze.questionIndex===x+Me){M(ze.selectedAnswerEnglish);break}},U=(Me,ze,rt,it)=>{var hn;const ht=[...E];if(Me)ht.push(ze);else{const Ut=ht.findIndex(mn=>mn===ze);Ut>=0&&ht.splice(Ut,1)}M(ht);const Ht=[...P];if((it==null?void 0:it.answerInputType)==="checkbox"){let Ut=!1;for(const[,Tt]of(it==null?void 0:it.answerOptions.entries())||[])if(Tt.isCorrect===!0)if(_t.includes(ht,(hn=Tt==null?void 0:Tt.answersText)==null?void 0:hn[w==null?void 0:w.type]))Ut=!0;else{Ut=!1;break}const mn={uuid:it==null?void 0:it.uuid,question:it==null?void 0:it.questionText,isCorrect:Ut,selectedAnswer:rt.answersText,viewed:!0},En=P.findIndex(Tt=>(Tt==null?void 0:Tt.uuid)===it.uuid);En>=0?(Ht[En]={...Ht[En],...mn},N(Ht)):N([...P,mn])}},ee=O.useCallback(()=>{var hn,Ut,mn,En,Tt,je,He,ot,rn,nn,Jt,_n;const Me=_.current,ze=_t.findIndex((hn=u==null?void 0:u.quizElements[x])==null?void 0:hn.answerOptions,function(wt){return wt.isCorrect===!0}),rt=u==null?void 0:u.quizElements[x],it=(mn=(Ut=rt==null?void 0:rt.answerOptions[ze])==null?void 0:Ut.answersText)!=null&&mn[w==null?void 0:w.type]?(Tt=(En=rt==null?void 0:rt.answerOptions[ze])==null?void 0:En.answersText)==null?void 0:Tt[w==null?void 0:w.type]:"",ht=P.findIndex(wt=>(wt==null?void 0:wt.uuid)===rt.uuid),Ht=(je=P[ht])!=null&&je.isCorrect?1:0;if(u!=null&&u.quizElements&&x+1!==(u==null?void 0:u.quizElements.length)){const wt={assessment_user_attempt_id:(ot=i==null?void 0:i.assesment_user_attempts[((He=i==null?void 0:i.assesment_user_attempts)==null?void 0:He.length)-1])==null?void 0:ot.assessment_user_attempt_id,session_id:c,assessment_id:1,question:(rn=rt.questionText)==null?void 0:rn[w==null?void 0:w.type],question_uid:rt==null?void 0:rt.uuid,start_time:s,finish_time:new Date,correct_answer:it,selected_answer:Array.isArray(Me)?Me.toString():Me,is_correct_answer:Ht};r(wt),M(null),S(x+1),l(new Date),ne(2)}else if((u==null?void 0:u.quizElements.length)===x+1){const wt={assessment_user_attempt_id:(Jt=i==null?void 0:i.assesment_user_attempts[((nn=i==null?void 0:i.assesment_user_attempts)==null?void 0:nn.length)-1])==null?void 0:Jt.assessment_user_attempt_id,session_id:c,assessment_id:1,question_uid:rt==null?void 0:rt.uuid,question:(_n=rt.questionText)==null?void 0:_n[w==null?void 0:w.type],start_time:s,finish_time:new Date,correct_answer:it,selected_answer:Array.isArray(Me)?Me.toString():Me,is_correct_answer:Ht};r(wt),oe(),_e()}if(F(!1),x+1<u.quizElements.length){const wt=x+1,Ke=u.quizElements[wt],st=P.find(vt=>vt.uuid===Ke.uuid);if(st){const vt=st.selectedAnswer,Vt=Array.isArray(vt)?vt:vt[w.type]??vt;M(Vt),F(!0)}else M(null),F(!1)}},[x,P]),oe=()=>{R(!0)},ge=()=>{ve?(g(Jm),m(),$(!0),A(),Te(),S(0),M(null),F(!1),N([]),R(!1),se(0),Z(0),W(!1),be({isCorrect:null,text:null})):(g(Cp),v(!1))},_e=()=>{var ht,Ht;let Me=0,ze=0,rt=!1;for(const hn of P)hn!=null&&hn.isCorrect&&Me++;se(Me),ze=Me/((ht=u==null?void 0:u.quizElements)==null?void 0:ht.length)*100,ze=Math.round(ze),Z(ze),rt=ze>=K,W(rt);const it={...u,...i,result:ze,status:rt,selectedAnswers:P};d(it),n({session_id:c,is_pass:rt?1:0,score:Me,out_of:(Ht=u==null?void 0:u.quizElements)==null?void 0:Ht.length,finish_time:new Date,status:1})},Ne=()=>{var Me,ze,rt,it,ht,Ht,hn;if(((Me=u==null?void 0:u.quizElements[x])==null?void 0:Me.answerInputType)==="radio"){const Ut=_t.findIndex((ze=u==null?void 0:u.quizElements[x])==null?void 0:ze.answerOptions,function(mn){return mn.isCorrect===!0});E===((ht=(it=(rt=u==null?void 0:u.quizElements[x])==null?void 0:rt.answerOptions[Ut])==null?void 0:it.answersText)==null?void 0:ht[w==null?void 0:w.type])?be({isCorrect:!0,text:E}):be({isCorrect:!1,text:E})}if(((Ht=u==null?void 0:u.quizElements[x])==null?void 0:Ht.answerInputType)==="checkbox"){const Ut=(hn=u==null?void 0:u.quizElements[x])==null?void 0:hn.answerOptions.filter(mn=>mn.isCorrect===!0);if(E!=null&&E.length){const mn=E==null?void 0:E.map(En=>({isCorrect:Ut==null?void 0:Ut.some(Tt=>{var je;return((je=Tt==null?void 0:Tt.answersText)==null?void 0:je[w==null?void 0:w.type])===En}),text:En}));be(mn)}}},ve=(i==null?void 0:i.noOfAttempts)-((Ee=i==null?void 0:i.assesment_user_attempts)==null?void 0:Ee.length)>0&&!X;return o.jsx(o.Fragment,{children:u!==null&&o.jsxs("div",{children:[le&&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"," ",(B=a==null?void 0:a.assessment)==null?void 0:B.assessment_title]}),o.jsxs("div",{children:[o.jsxs("p",{children:["You answered ",Y," out of"," ",(fe=u==null?void 0:u.quizElements)==null?void 0:fe.length," questions"]}),o.jsxs("p",{children:["Your assessment result: ",re,"%"]}),o.jsxs("p",{children:["Score Needed To Pass: ",K,"%"]}),o.jsx("br",{}),o.jsxs("p",{children:["Status:"," ",X?o.jsx(fu,{severity:"success",value:"Passed"}):o.jsx(fu,{severity:"danger",value:"Failed"})]}),X&&o.jsx("p",{children:"Congratulations you have passed!"}),o.jsx(o.Fragment,{children:le&&o.jsx("div",{className:"text-center my-5",children:o.jsx(Ft,{label:ve?"Restart":"End",onClick:()=>ge()})})})]})]})})}),le&&((he=i==null?void 0:i.assessment_type)==null?void 0:he.key)===qAe&&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:P==null?void 0:P.map((Me,ze)=>{var rt,it;return o.jsxs("div",{className:"card",children:[o.jsxs("span",{className:"text-strong",children:[o.jsx("b",{children:"Question:"})," ",o.jsx("br",{}),(rt=Me==null?void 0:Me.question)==null?void 0:rt[w==null?void 0:w.type]]}),o.jsx("br",{}),o.jsx("br",{}),o.jsxs("span",{children:[o.jsx("b",{children:"Selected Answer:"})," ",o.jsx("br",{}),(it=Me==null?void 0:Me.selectedAnswer)==null?void 0:it[w==null?void 0:w.type]]}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("p",{children:"In Correct:"}),Me!=null&&Me.isCorrect?o.jsxs(o.Fragment,{children:[o.jsx(l4,{value:"",severity:"success",className:"mr-2"})," ","Yes"]}):o.jsxs(o.Fragment,{children:[o.jsx(l4,{value:"",severity:"danger",className:"mr-2"})," ","No"]})]},ze)})})})]}),f!==I_?o.jsx(o.Fragment,{children:le&&o.jsx("div",{className:"text-center my-5",children:o.jsx(Ft,{text:!0,className:"p-button-danger",icon:"pi pi-times",label:"Close",onClick:()=>{g(Cp)}})})}):o.jsx(o.Fragment,{}),z&&!le&&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(LAe,{assessmentData:i,setDisplaySummary:R}),o.jsx(BAe,{currentQuestionIndex:x,assessmentData:i,onNextQuestion:ee})]})}),o.jsxs("h2",{className:"text-center pb-6",children:[u==null?void 0:u.name," "]}),(ce=u==null?void 0:u.quizElements)==null?void 0:ce.map((Me,ze)=>{var rt,it,ht,Ht,hn;return o.jsxs("div",{className:"quiz-card-box",children:[x===ze&&((rt=Me==null?void 0:Me.questionTextImage)==null?void 0:rt[w==null?void 0:w.type])&&((it=Me==null?void 0:Me.questionTextImage)==null?void 0:it[w==null?void 0:w.type])!==""&&o.jsx("div",{className:"text-center assessment_image_container",children:o.jsx(C,{mediaId:(ht=Me==null?void 0:Me.questionTextImage)==null?void 0:ht[w==null?void 0:w.type],style:{height:"100px",width:"100px",objectFit:"cover",borderRadius:100},className:"text-center",alt:"questionImage"})}),o.jsx("h3",{className:"mb-5",children:x===ze&&((Ht=Me==null?void 0:Me.questionText)==null?void 0:Ht[w==null?void 0:w.type])}),x===ze&&((hn=Me==null?void 0:Me.answerOptions)==null?void 0:hn.map((Ut,mn)=>(Me==null?void 0:Me.answerInputType)==="checkbox"?o.jsx(O.Fragment,{children:o.jsx(CAe,{onChangeCheckbox:U,setSelectedOption:M,quiz:Ut,userSelectedLanguage:w,onSetAnswer:ye,setIsOptionSelected:F,index:mn,eleIndex:ze,ele:Me,setCorrectAnswerCheck:be,correctAnswerCheck:me,selectedOption:E})},`checkbox-question-${mn}`):o.jsx(O.Fragment,{children:o.jsx(SAe,{setSelectedOption:M,quiz:Ut,userSelectedLanguage:w,onSetAnswer:ye,setIsOptionSelected:F,index:mn,eleIndex:ze,ele:Me,setCorrectAnswerCheck:be,correctAnswerCheck:me,selectedOption:E})},`radio-question-${mn}`)))]},ze)})]})}),o.jsxs("div",{className:"text-center my-5",children:[o.jsxs("div",{className:"mb-1",children:["Question :"," ",x+1+"/"+(u==null?void 0:u.quizElements.length)]}),o.jsx("br",{}),x>0&&((Se=(pe=i==null?void 0:i.time_limit)==null?void 0:pe.type)==null?void 0:Se.key)!=="PerQuestion"&&o.jsx(Ft,{size:"large",className:"mx-2",label:"Previous",onClick:Me=>de()}),((i==null?void 0:i.skippable)===!0||k===!0)&&o.jsx(Ft,{size:"large",label:(u==null?void 0:u.quizElements.length)===x+1?"Finish":k===!0?"Next":"Skip",onClick:ee}),k===!0&&((De=i==null?void 0:i.assessment_type)==null?void 0:De.key)==="1"&&o.jsx(Ft,{size:"large",className:"ml-2 p-button-info",label:"Check Answer",onClick:()=>Ne()})]})]})]})})},UAe=t=>{const{getAssessmentByIdFromStore:e,quizSchema:n,setQuizSchema:r,renderIn:i,updateTrainingProgress:a,currentItem:s}=t,{userTrainingSaveData:l}=Ar();O.useEffect(()=>(c(),()=>{}),[]);const c=()=>{var g,v,m,A;const d=JSON.parse(e.form_template_schema),f=JSON.parse(e.assessment_meta_data);let h=[...((A=(m=(v=(g=d==null?void 0:d.layout[0])==null?void 0:g.children[0])==null?void 0:v.children[0])==null?void 0:m.children[0])==null?void 0:A.children)||[]];f!=null&&f.randomiseQuestions&&(h=tm.shuffle(h).map((w,x)=>({...w}))),f!=null&&f.randomiseAnswers&&(h=h.map((w,x)=>({...w,answerOptions:tm.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(g=>(g==null?void 0:g.fieldId)===(s==null?void 0:s.uuid));h>=0&&(l[h]={...l[h],isSeen:!0})}a()}};return o.jsx("div",{children:n&&o.jsx(MU,{renderIn:i,quizData:n,taskSchema:e==null?void 0:e.form_template_schema,saveProgress:d=>{u(d)}})})},$Ae=t=>{var m,A;const{currentItem:e,videoJsOptions:n}=t,r=O.useRef(null),{userTrainingSaveData:i,updateUserTraining:a,taskRegisterData:s}=Ar(),{media:l}=zt(),c=(m=l==null?void 0:l.video)!=null&&m.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(T=>(T==null?void 0:T.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(T=>(T==null?void 0:T.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(T=>(T==null?void 0:T.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})},g=w=>{const{mediaId:x}=w,[S,T]=O.useState(!1);return O.useEffect(()=>{if(!S&&i!==null){const C=i.findIndex(E=>(E==null?void 0:E.fieldId)===(e==null?void 0:e.uuid));if(C>=0){T(!0);const E=r.current;E.currentTime=i[C].seenTime}T(!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})},v=O.useCallback(w=>o.jsx(g,{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:v(e==null?void 0:e.media_file_id)}):o.jsx(o.Fragment,{children:o.jsx(XL,{onUpdate:()=>{},options:n,onReady:u,currentItem:e},e==null?void 0:e.uuid)})})},LU=t=>{var _,M,k,F,P,H;const{sections:e,showInfoPanel:n,updateTrainingProgress:r}=t,{taskOptions:i}=Ar(),[a]=O.useState(!1),[,s]=O.useState(c4),[l,c]=O.useState([]),[u,d]=O.useState(null),{userSelectedLanguage:f}=sn(),{isAdmin:h}=zt(),[g,v]=O.useState(null),[m,A]=O.useState(null),w=(_=i==null?void 0:i.training)!=null&&_.getAssessmentByIdFromStore?(M=i==null?void 0:i.training)==null?void 0:M.getAssessmentByIdFromStore:()=>{},x=(k=i==null?void 0:i.training)!=null&&k.TrainingOverView?(F=i==null?void 0:i.training)==null?void 0:F.TrainingOverView:()=>o.jsx(o.Fragment,{}),[S,T]=O.useState({autoplay:!1,controls:!0,responsive:!0,fluid:!0,sources:[{src:"http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4"}]});O.useEffect(()=>{a||C()},[a]);const C=()=>{var N,z,$,le,R,Y,se,K,ie,re,Z,X,W,me,be,Te,ye,de,ne,U,ee;switch(v(($=(z=(N=e[0])==null?void 0:N.children[0])==null?void 0:z.children[0])==null?void 0:$.children[0]),A(e[0]),(se=(Y=(R=(le=e[0])==null?void 0:le.children[0])==null?void 0:R.children[0])==null?void 0:Y.children[0])==null?void 0:se.componentType){case"video":T({autoplay:!1,controls:!0,responsive:!0,fluid:!0,sources:[{src:(X=(Z=(re=(ie=(K=e[0])==null?void 0:K.children[0])==null?void 0:ie.children[0])==null?void 0:re.children[0])==null?void 0:Z.media_url)==null?void 0:X.english}]});break;case"image":s((ye=(Te=(be=(me=(W=e[0])==null?void 0:W.children[0])==null?void 0:me.children[0])==null?void 0:be.children[0])==null?void 0:Te.media_url)==null?void 0:ye.english);break;case"document":c((ee=(U=(ne=(de=e[0])==null?void 0:de.children[0])==null?void 0:ne.children[0])==null?void 0:U.children[0])==null?void 0:ee.documents);break}},E=N=>{switch(N==null?void 0:N.componentType){case"video":return o.jsx("div",{children:o.jsx($Ae,{videoJsOptions:S,currentItem:N},N==null?void 0:N.uuid)});case"image":return o.jsx(XO,{field:N});case"document":return o.jsxs("div",{children:[o.jsx("h6",{children:"Documents"}),o.jsx("ul",{children:(l==null?void 0:l.length)>0&&l.map((z,$)=>o.jsx("li",{children:o.jsx("a",{href:z==null?void 0:z.url,children:z==null?void 0:z.url})},`document-item-${$}`))})]});case"quiz":return w!=null&&w.form_template_schema?o.jsx(UAe,{renderIn:I_,getAssessmentByIdFromStore:w,quizSchema:u,setQuizSchema:d,updateTrainingProgress:r,currentItem:N}):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("div",{className:"flex justify-content-center text-2xl font-bold mb-3",children:[(P=m==null?void 0:m.heading)==null?void 0:P[f==null?void 0:f.type]," -"," ",(H=g==null?void 0:g.title)==null?void 0:H[f==null?void 0:f.type]," "]}),E(g),!h&&n&&o.jsx(x,{})]}),o.jsx("div",{className:"col-4 scroll-height-100",children:e.map((N,z)=>{var $,le;return o.jsxs(ci,{className:"mb-2",header:($=N==null?void 0:N.heading)==null?void 0:$.english,toggleable:!0,children:[o.jsxs("div",{children:[(le=N==null?void 0:N.subHeadingText)==null?void 0:le[f==null?void 0:f.type],"333-999"]}),N.children.map((R,Y)=>{const se=`${Y}`;return o.jsx("div",{children:R.children.map((K,ie)=>{const re=`${Y}-${se}`;return o.jsx(wAe,{setCurrentSection:A,section:N,setCurrentItem:v,currentItem:g,path:re,fields:K.children,setvideoJsOptions:T,setImage:s,setDocuments:c,setQuizSchema:d,updateTrainingProgress:r},`training-sidebar-${ie}`)})},`training-sidebar-container-${Y}`)})]},`train-sidebar-panel-${z}`)})})]})},jAe=()=>{var r;const{formBuilderFormLayout:t}=sn(),{isBuilderMode:e}=zt(),n=(i,a,s)=>o.jsx(yAe,{data:i,path:a,pageIndex:s},`page-${i.uuid}`);return e?o.jsx(o.Fragment,{children:o.jsx("div",{className:"page",children:(t==null?void 0:t.length)&&t.map((i,a)=>{const s=`${a}`;return o.jsx("div",{children:n(i,s,a)},`exam-page-${a}`)})})}):o.jsx(LU,{sections:((r=t[0])==null?void 0:r.children)||[],showInfoPanel:!1,updateTrainingProgress:()=>{}})},zAe=t=>{var E,_,M,k,F;const{userSelectedLanguage:e,formBuilderConfigurationType:n,builderTemplateName:r,formBuilderFormSchema:i}=sn(),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]=O.useState(),[u,d]=O.useState([]),{media:f}=zt(),h=(E=f==null?void 0:f.image)!=null&&E.MediaImage?(_=f==null?void 0:f.image)==null?void 0:_.MediaImage:o.jsx(o.Fragment,{}),g={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},[v,m]=O.useState(0),[A,w]=O.useState(!1);function x(P,H){return(P==null?void 0:P.length)<=H?P:(P==null?void 0:P.slice(0,H))+"..."}O.useEffect(()=>{w(!0)},[]);const S=()=>{v!==0&&m(v-1)},T=()=>{if(g!=null&&g.quizElements&&v+1!==(g==null?void 0:g.quizElements.length))m(v+1);else if((g==null?void 0:g.quizElements.length)===v+1)return},C=(P,H)=>{let N=[...u];P.checked?N.push(H):N=N.filter(z=>(z==null?void 0:z[e==null?void 0:e.type])!==(H==null?void 0:H[e==null?void 0:e.type])),d(N)};return o.jsxs("div",{className:"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:[g==null?void 0:g.name," "]}),(M=g==null?void 0:g.quizElements)==null?void 0:M.map((P,H)=>{var N,z,$,le,R,Y,se,K,ie;return(P==null?void 0:P.answerInputType)==="radio"?o.jsxs("div",{className:v===H?"card":" flex align-items-center p-field-radiobutton",children:[((N=P==null?void 0:P.questionTextImage)==null?void 0:N[e==null?void 0:e.type])&&((z=P==null?void 0:P.questionTextImage)==null?void 0:z[e==null?void 0:e.type])!==""&&o.jsx("div",{className:"text-center assessment_image_container",children:o.jsx(h,{mediaId:($=P==null?void 0:P.questionTextImage)==null?void 0:$[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:v===H&&((le=P==null?void 0:P.questionText)==null?void 0:le[e==null?void 0:e.type])}),v===H&&((R=P==null?void 0:P.answerOptions)==null?void 0:R.map((re,Z)=>{var X,W,me,be;return o.jsxs("div",{className:"field-radiobutton",children:[o.jsx(ia,{inputId:`${Z}-preview`,value:re==null?void 0:re.answersText,checked:l===Z,onChange:()=>{c(Z)}}),((X=re.answersTextImage)==null?void 0:X[e==null?void 0:e.type])&&((W=re.answersTextImage)==null?void 0:W[e==null?void 0:e.type])!==""&&o.jsx(h,{mediaId:(me=re.answersTextImage)==null?void 0:me[e==null?void 0:e.type],className:"mx-3",alt:"questionImage",style:{width:"50px",height:"50px",borderRadius:50}}),o.jsx("label",{htmlFor:`${Z}-preview`,children:(be=re.answersText)==null?void 0:be[e==null?void 0:e.type]})]},Z)}))]},H):(P==null?void 0:P.answerInputType)==="checkbox"?o.jsxs("div",{className:v===H?"card":" flex align-items-center p-field-radiobutton",children:[o.jsx("h3",{className:"mb-5",children:v===H&&((Y=P==null?void 0:P.questionText)==null?void 0:Y[e==null?void 0:e.type])}),v===H&&((se=P==null?void 0:P.answerOptions)==null?void 0:se.map((re,Z)=>{var X,W,me,be;return o.jsxs("div",{className:"field-radiobutton",children:[o.jsx(Yr,{inputId:Z,value:re==null?void 0:re.answersText,onChange:Te=>{C(Te,re==null?void 0:re.answersText)},checked:u.some(Te=>{var ye;return(Te==null?void 0:Te[e==null?void 0:e.type])===((ye=re==null?void 0:re.answersText)==null?void 0:ye[e==null?void 0:e.type])})}),((X=re.answersTextImage)==null?void 0:X[e==null?void 0:e.type])&&((W=re.answersTextImage)==null?void 0:W[e==null?void 0:e.type])!==""&&o.jsx(h,{mediaId:(me=re.answersTextImage)==null?void 0:me[e==null?void 0:e.type],className:"mx-3",alt:"questionImage",style:{width:"50px",height:"50px",borderRadius:50}}),o.jsx("label",{htmlFor:Z,children:(be=re.answersText)==null?void 0:be[e==null?void 0:e.type]})]},Z)}))]},H):o.jsxs("div",{className:v===H?"card":"",children:[o.jsx("h3",{className:"mb-5",children:v===H&&((K=P==null?void 0:P.questionText)==null?void 0:K[e==null?void 0:e.type])}),v===H&&((ie=P==null?void 0:P.answerOptions)==null?void 0:ie.map((re,Z)=>{var X,W,me,be;return o.jsxs("div",{className:"field-radiobutton",children:[o.jsx(ia,{inputId:Z,value:re==null?void 0:re.answersText,onChange:()=>{}}),((X=re.answersTextImage)==null?void 0:X[e==null?void 0:e.type])&&((W=re.answersTextImage)==null?void 0:W[e==null?void 0:e.type])!==""&&o.jsx(h,{mediaId:(me=re.answersTextImage)==null?void 0:me[e==null?void 0:e.type],className:"mx-3",alt:"questionImage",style:{width:"50px",height:"50px",borderRadius:50}}),o.jsx("label",{htmlFor:Z,children:(be=re.answersText)==null?void 0:be[e==null?void 0:e.type]})]},Z)}))]},H)})]})}),o.jsxs("div",{className:"text-center my-5",children:[o.jsxs("div",{className:"mb-1",children:["Viewing:"," ",v+1+"/"+(g==null?void 0:g.quizElements.length)]}),o.jsx("br",{}),v>0&&o.jsx(Ft,{text:!0,className:"mx-2",label:"Previous",onClick:()=>S()}),o.jsx(Ft,{outlined:!0,label:(g==null?void 0:g.quizElements.length)===v+1?"Finish":"Next",onClick:()=>T()})]})]}),o.jsxs("div",{className:"surface-card p-4 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:(k=g==null?void 0:g.quizElements)==null?void 0:k.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(fu,{className:"mr-2",severity:"success",value:"True"}):o.jsx(fu,{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:(F=g==null?void 0:g.quizElements)==null?void 0:F.map((P,H)=>{var N;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(((N=P==null?void 0:P.questionText)==null?void 0:N[e==null?void 0:e.type])||"",30)})})},`preview-question-${H}`)})})})]})]})]})]})},HAe=t=>{var T;const{data:e,path:n,pageIndex:r,sectionIndex:i,rowIndex:a,columnIndex:s,section:l,row:c,page:u}=t,d=O.useRef(null),{handleDrop:f}=sn(),{isRenderView:h,isAdvanceView:g,isBuilderMode:v}=zt(),[{isDragging:m},A]=ra({type:As,item:{type:As,uuid:e==null?void 0:e.uuid,children:e.children,path:n},collect:C=>({isDragging:C.isDragging()})}),x={position:"relative",opacity:m&&!h?.25:1};A(d);const S=(C,E,_,M,k,F,P)=>o.jsx(Lc,{page:u,type:"field",row:c,section:l,field:C,data:C,path:E,pageIndex:_,sectionIndex:M,rowIndex:k,columnIndex:F,fieldIndex:P},`component-${n}-${C==null?void 0:C.uuid}`);return o.jsx("div",{style:g?x:{},className:v?"draggable form-builder-column container-column":"form-builder-column container-column",children:v===!0?o.jsxs("div",{children:[e.children.length>0&&((T=e==null?void 0:e.children)==null?void 0:T.map((C,E)=>{const _=`${n}-${E}`;return o.jsxs(O.Fragment,{children:[o.jsx(Fr,{isAdvanceView:g,fieldDropArea:!0,data:{path:_,childrenCount:e.children.length,droppedField:e},onDrop:f}),S(C,_,r,i,a,s,E)]},_)})),e.children.length===0&&o.jsx("p",{className:"text-center",children:"Drag and drop from sidebar items"}),o.jsx(Fr,{isAdvanceView:g,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(zAe,{questions:e.children}):o.jsx("p",{className:"text-center",children:"No items to show"})})})},YAe={},KAe=t=>{var v,m,A,w;const{data:e,path:n,pageIndex:r,sectionIndex:i,rowIndex:a,section:s,page:l}=t,c=O.useRef(null),{isRenderView:u}=zt(),[{isDragging:d},f]=ra({type:Ao,item:{type:Ao,uuid:e.uuid,children:e.children,path:n,data:e},collect:x=>({isDragging:x.isDragging()})}),h=d?.25:1;f(c);const g=(x,S,T,C,E,_)=>o.jsx(HAe,{page:l,row:e,section:s,data:x,path:S,pageIndex:T,sectionIndex:C,rowIndex:E,columnIndex:_},`column-${n}-${x.uuid}`);return o.jsx("div",{style:{...YAe,opacity:h,marginTop:`${(v=e==null?void 0:e.margin)==null?void 0:v.top}px`,marginBottom:`${(m=e==null?void 0:e.margin)==null?void 0:m.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 T=`${n}-${S}`;return o.jsx(O.Fragment,{children:g(x,T,r,i,a,S)},T)})})})},XAe=t=>{const{data:e,path:n,pageIndex:r,sectionIndex:i,section:a,page:s}=t,{renderType:l,emitSocketData:c,isAdvanceView:u,isBuilderMode:d}=zt(),[f,h]=O.useState(!1),[g,v]=O.useState(!1),[m,A]=O.useState(null),w=O.useRef(null),[{isDragging:x},S]=ra({type:na,item:{type:na,uuid:e.uuid,children:e.children,path:n},collect:E=>({isDragging:E.isDragging()})}),T=x?.25:1;S(w);const C=(E,_,M,k,F)=>o.jsx(KAe,{page:s,section:a,data:E,path:_,pageIndex:M,sectionIndex:k,rowIndex:F},`row-${n}-${E.uuid}`);return o.jsxs("div",{style:{opacity:T,marginBottom:20},className:u?"draggable row":"",children:[d===!0&&o.jsx(_h,{saveBuilderElementModalData:m,setSaveBuilderElementModalData:A,saveElementModal:g,setSaveElementModal:v}),d===!0&&f===!0&&o.jsx(Ih,{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((E,_)=>{const M=`${n}-${_}`;return o.jsx(O.Fragment,{children:C(E,M,r,i,_)},M)})})]})},RAe=t=>{const{data:e,path:n,pageIndex:r}=t,{isBuilderMode:i}=zt(),a=O.useRef(null),[{},s]=ra({type:na,item:{type:na,uuid:e.uuid,children:e.children,path:n},collect:c=>({isDragging:c.isDragging()})});s(a);const l=(c,u,d,f)=>o.jsx(XAe,{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(O.Fragment,{children:l(c,d,r,u)},`section-${u}-${c.uuid}`)})})})},GAe=()=>{const{formBuilderFormLayout:t}=sn(),e=(n,r,i)=>o.jsx(RAe,{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}`)})})})},w5=()=>{const{renderType:t}=zt();switch(t){case F0:return o.jsx(Uye,{});case k0:return o.jsx(Rye,{});case H1:return o.jsx(tAe,{});case rm:return o.jsx(hAe,{});case im:return o.jsx(jAe,{});case zd:return o.jsx(GAe,{})}},WAe=t=>{var l;const{taskSchema:e,taskId:n,endPoints:r}=t,{userTrainingSaveData:i,saveProgressDataHook:a,updateTaskProgressValue:s}=Ar();return O.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(LU,{updateTrainingProgress:()=>{},sections:(l=e==null?void 0:e.layout[0])==null?void 0:l.children})})},QAe=({taskId:t,onStart:e})=>{var w,x,S,T,C,E,_,M,k,F,P,H,N,z,$,le;const[n,r]=O.useState(Cp),[i,a]=O.useState(null),{examComplete:s,assessmentData:l,taskSchema:c,taskData:u,startQuiz:d}=Ar();O.useEffect(()=>{var R,Y,se,K,ie;if(((R=c==null?void 0:c.formType)==null?void 0:R.key)==="exam"){let re=[...((K=(se=(Y=c==null?void 0:c.layout[0])==null?void 0:Y.children[0])==null?void 0:se.children[0])==null?void 0:K.children[0].children)||[]];l!=null&&l.randomiseQuestions&&(re=tm.shuffle(re).map(Z=>({...Z}))),l!=null&&l.randomiseAnswers&&(re=re.map(Z=>({...Z,answerOptions:tm.shuffle(Z==null?void 0:Z.answerOptions)}))),l!=null&&l.enableNoOfAssessmentQuestions&&(re=re.slice(0,parseInt(l==null?void 0:l.noOfAssessmentQuestions))),a({assessment_id:1,name:(ie=u==null?void 0:u.assessment)==null?void 0:ie.assessment_title,label:"assessment_title",quizConfiguration:c==null?void 0:c.quizConfiguration,quizElements:re})}},[c]);const f=o.jsxs("div",{children:[o.jsx(Ft,{text:!0,label:"Cancel",icon:"pi pi-times",className:"mx-2 p-button-danger",onClick:()=>r(Cp)}),o.jsx(Ft,{label:"Start Immediately",onClick:()=>{g(),r(Jm)}})]}),h=R=>R.completed?(g(),r(Jm),o.jsx(o.Fragment,{})):o.jsxs("span",{className:"text-2xl",children:["Your quiz is about to start in ",R.seconds," seconds"]}),g=()=>{const R={task_id:t,session_id:tt(),start_time:new Date,finish_time:new Date};a(Y=>({...Y,...R})),d(R,a)},v=()=>{r(T8),g()},m=((w=l==null?void 0:l.assesment_user_attempts)==null?void 0:w.length)>0?(x=l==null?void 0:l.assesment_user_attempts)==null?void 0:x.some(R=>(R==null?void 0:R.is_pass)===1):!1;function A(){var K;const R=l==null?void 0:l.assesment_user_attempts[((K=l==null?void 0:l.assesment_user_attempts)==null?void 0:K.length)-1],Y=R==null?void 0:R.start_time,se=R==null?void 0:R.finish_time;return Pue(Y,se)}return o.jsxs(o.Fragment,{children:[n===T8&&o.jsx(o.Fragment,{children:o.jsx("div",{className:"card surface-section flex justify-content-center align-items-center",style:{minHeight:"100vh"},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(Ag,{date:Date.now()+15e3,renderer:h}),f]})})})})}),o.jsxs("div",{children:[n===Cp&&o.jsx("div",{className:" fadein animation-duration-500 animation-iteration-1 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-12 md:col-6 md:col-offset-3 sm:col-12 sm:col-offset-0",children:o.jsxs("div",{className:"text-center",children:[o.jsxs("div",{children:[o.jsx("h3",{children:(S=u==null?void 0:u.assessment)==null?void 0:S.assessment_title}),o.jsxs("div",{className:"card",children:[o.jsx("h3",{children:"Overview"}),o.jsx("div",{dangerouslySetInnerHTML:{__html:c==null?void 0:c.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 ",l==null?void 0:l.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:Ln(u==null?void 0:u.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:l==null?void 0:l.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:(T=l==null?void 0:l.assesment_user_attempts)==null?void 0:T.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:(l==null?void 0:l.noOfAttempts)-((C=l==null?void 0:l.assesment_user_attempts)==null?void 0:C.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:(E=i==null?void 0:i.quizElements)==null?void 0:E.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:[" ",l&&((M=(_=l==null?void 0:l.time_limit)==null?void 0:_.type)==null?void 0:M.key)==="PerExam"&&o.jsxs(o.Fragment,{children:[Math.floor((F=(k=l==null?void 0:l.time_limit)==null?void 0:k.time_limit_info)==null?void 0:F.num_of_mins)," ","mins"]}),l&&((H=(P=l==null?void 0:l.time_limit)==null?void 0:P.type)==null?void 0:H.key)==="PerQuestion"&&o.jsx(o.Fragment,{children:(()=>{var K,ie,re;const R=((ie=(K=l==null?void 0:l.time_limit)==null?void 0:K.time_limit_info)==null?void 0:ie.time_per_question)*((re=i==null?void 0:i.quizElements)==null?void 0:re.length),Y=Math.floor(R/60),se=R%60;return o.jsxs(o.Fragment,{children:[Y," min",se>0&&` ${se} sec`]})})()}),l&&((z=(N=l==null?void 0:l.time_limit)==null?void 0:N.type)==null?void 0:z.key)==="NoTimeLimit"&&o.jsx(o.Fragment,{children:"No time limit"})]})]}),(($=l==null?void 0:l.assesment_user_attempts)==null?void 0:$.length)>0&&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:"Time taken:"}),o.jsx("div",{className:"text-900 w-full md:w-9",children:A()})]})]})]})]}),o.jsx("div",{className:"my-5",children:(l==null?void 0:l.noOfAttempts)-((le=l==null?void 0:l.assesment_user_attempts)==null?void 0:le.length)>0?o.jsx(o.Fragment,{children:o.jsx(Ft,{size:"large",label:m===!0?"Passed":"Start now",disabled:m,className:"p-button-info",onClick:()=>{r(T8),e&&e()}})}):o.jsx(_8,{classes:"text-2xl p-3",value:"No attempts remaining",level:"info"})})]})})})}),n===Jm&&i!==null&&o.jsx("div",{className:"fadein animation-duration-500",children:o.jsx(MU,{session_id:i==null?void 0:i.session_id,setDisplay:r,onOpenQuiz:v,saveNewQuizData:g,quizData:i,taskSchema:c,saveProgress:s,setAssessmentModal:()=>{}})})]})]})},JAe=t=>{var F,P,H,N,z,$,le,R,Y,se;const{taskId:e,endPoints:n,isRenderView:r,showFieldsAfterSubmit:i=!1,className:a="",onStart:s,showFromTitle:l=!0}=t,{setLayout:c}=sn(),{isAdmin:u}=zt(),{taskProgressValue:d,taskRegisterData:f,task_status:h,taskSchema:g,taskData:v,updateTaskFormData:m,TasksLoading:A,userTaskSubmitFormData:w,TasksHTTPRequest:x,TasksSubmitLoading:S,clearTaskSchema:T,TASK_PUBLISHED:C,saveProgressDataHook:E,taskOptions:_}=Ar(),M=_!=null&&_.successMessage?_==null?void 0:_.successMessage:"Submitted Successfully";O.useEffect(()=>{if(g!==null&&c((g==null?void 0:g.layout)||[]),h!==x8&&!u&&e){const ie={viewed_at:new Date().toISOString()};m(w,e,n==null?void 0:n.updateFormData,Qm,()=>{},ie)}return()=>{T()}},[e]);const k=()=>o.jsx(o.Fragment,{children:o.jsxs("div",{className:"w-full",children:[o.jsx("p",{children:"Loading form data....."}),o.jsx(Ci,{className:"mb-2"}),o.jsx(Ci,{className:"mb-2"}),o.jsx(Ci,{className:"mb-2"}),o.jsx(Ci,{className:"mb-5"}),o.jsx(Ci,{className:"mb-2"}),o.jsx(Ci,{className:"mb-2"}),o.jsx(Ci,{className:"mb-2"}),o.jsx(Ci,{className:"mb-2"}),o.jsx(Ci,{className:"mb-2"}),o.jsx(Ci,{className:"mb-2"}),o.jsx(Ci,{className:"mb-2"})]})});return o.jsx("div",{className:"relative",children:A||S||x?o.jsx("div",{className:"w-full",children:o.jsx(k,{})}):o.jsxs(o.Fragment,{children:[(((F=g==null?void 0:g.formType)==null?void 0:F.key)===e3||((P=g==null?void 0:g.formType)==null?void 0:P.key)===I8)&&o.jsx(o.Fragment,{children:o.jsxs("div",{className:`px-0 ${r===!1&&"builder_container"}`,children:[o.jsxs("div",{className:"flex justify-content-center mb-2 align-items-center",children:[l===!0&&o.jsx("div",{className:"text-center text-900 text-3xl font-medium",children:v==null?void 0:v.task_title}),o.jsx("div",{className:"ml-4 ",children:h===x8&&o.jsx(_8,{classes:"",value:"Completed",level:"success"})})]}),h===x8&&o.jsx("div",{className:"flex justify-content-center mb-2 align-items-center",children:o.jsxs("div",{className:"text-center text-900 text-xl",children:["Submitted on ",Ln(v==null?void 0:v.submitted_date).format("Do MMM YYYY HH:mm")]})}),i===!1&&h===C?o.jsx(o.Fragment,{children:o.jsx("h3",{className:"text-center mt-5",children:M})}):o.jsx("div",{className:"grid",children:o.jsxs("div",{className:"col-12",children:[A&&o.jsx(k,{}),!A&&o.jsxs(o.Fragment,{children:[o.jsx(SZ,{}),o.jsx("div",{className:`${a} mt-2 mb-2`,children:g!==null&&((H=g==null?void 0:g.layout)==null?void 0:H.length)&&o.jsx(w5,{})})]})]})})]})}),((N=g==null?void 0:g.formType)==null?void 0:N.key)===E_&&o.jsx("div",{className:"grid",children:o.jsx("div",{className:"col-12",children:o.jsx("div",{className:"card",children:o.jsx("div",{className:`${a} mt-2 mb-2`,children:o.jsx(wp,{backend:Sp,children:g!==null&&((z=g==null?void 0:g.layout)==null?void 0:z.length)&&o.jsx(w5,{})})})})})}),((($=g==null?void 0:g.formType)==null?void 0:$.key)==="page"||((le=g==null?void 0:g.formType)==null?void 0:le.key)==="pdf")&&o.jsx("div",{className:"grid",children:o.jsx("div",{className:"col-12",children:o.jsx("div",{className:"card",children:o.jsx(wp,{backend:Sp,children:g!==null&&((R=g==null?void 0:g.layout)==null?void 0:R.length)&&o.jsx(w5,{})})})})}),((Y=g==null?void 0:g.formType)==null?void 0:Y.key)==="training"&&o.jsx(WAe,{renderIn:pZ,taskSchema:g,taskId:e,endPoints:n}),((se=g==null?void 0:g.formType)==null?void 0:se.key)==="exam"&&o.jsx(QAe,{taskId:e,endPoints:n,onStart:s})]})})},ZAe=t=>{var H;const[e,n]=O.useState(!1),r=O.useRef(!1),{taskId:i,endPoints:a,messageWhileSubmittingForm:s,showProgressSavedToast:l=!0,showTaskSubmitToast:c=!0,showProgressSave:u=!0,showTaskSubmit:d=!0,submitLabel:f="Submit",afterSubmit:h=()=>{}}=t,g=(N,z,$,le)=>{var se,K;let R=le;const Y={fieldId:N.uuid};if($!=null&&$[N==null?void 0:N.uuid]){if((z==null?void 0:z.length)>0){e:for(const[,ie]of z.entries())if(((se=ie==null?void 0:ie.children)==null?void 0:se.length)>0&&(ie==null?void 0:ie.enableConditionalField)===!0){for(const[,re]of(ie==null?void 0:ie.children.entries())||[])if((K=re==null?void 0:re.attributes)!=null&&K.required&&(R=g(re,re==null?void 0:re.options,$,R),R===!1))break e}}}else Gt.emit("OnInvalidFieldCatch",Y),R=!1,_();return R},{task_status:v,taskProgressLoading:m,taskSchema:A,updateTaskFormData:w,submitTaskFormData:x,userTaskSubmitFormData:S,TasksSubmitLoading:T,taskOptions:C}=Ar(),E=()=>o.jsxs("div",{className:"text-right",children:[o.jsx(Ft,{text:!0,label:"No",icon:"pi pi-times",onClick:()=>n(!1),className:"p-button-danger"}),o.jsx(Ft,{label:"Yes",icon:"pi pi-check",onClick:()=>F(),autoFocus:!0})]}),_=(N="One or more field is required")=>{r.current.show({severity:"error",summary:"Alert",detail:N,life:3e3})},M=O.useCallback(()=>{var z,$,le,R,Y,se,K,ie,re,Z,X,W,me,be,Te,ye,de,ne,U,ee,oe,ge,_e,Ne;let N=!1;e:for(const[ve,Ae]of A.layout.entries())if((Ae==null?void 0:Ae.isHidden)===!1)for(const[Be,Ee]of Ae.children.entries())for(const[,B]of Ee.children.entries())if(B!=null&&B.rowIsRepeatable){const fe=S.findIndex(he=>(he==null?void 0:he.rowId)===B.uuid);if(fe>=0){if(((z=S[fe].repeatableFieldsData)==null?void 0:z.length)<(B==null?void 0:B.minimumEntries)){_(`Need minimun ${B==null?void 0:B.minimumEntries} entries`),N=!1;break e}N=!0}}else for(const[,fe]of B.children.entries())for(const[,he]of fe.children.entries()){if(he.isValid===0&&he.isPostField===!0&&(he==null?void 0:he.componentType)!=="hidden-field"){console.log("field",he);const ce={pageIndex:ve,fieldId:he.uuid,sectionIndex:Be},pe=S.findIndex(Se=>(Se==null?void 0:Se.fieldId)===he.uuid);if(console.log("userTaskSubmitFormData![foundFieldIndex]?.postData",($=S[pe])==null?void 0:$.postData),!(pe===-1||(le=S[pe])!=null&&le.postData[0]&&(((Y=(R=S[pe])==null?void 0:R.postData[0].postValue)==null?void 0:Y.length)>0||((se=S[pe])==null?void 0:se.postData[0].postValue)>0||(ie=(K=S[pe])==null?void 0:K.postData[0].postValue)!=null&&ie.name))){console.log("inValidData",ce),Gt.emit("OnInvalidFieldCatch",ce),N=!1,_();break e}}if((he==null?void 0:he.componentType)==="radio-hierarchal"){const ce=S.findIndex(pe=>(pe==null?void 0:pe.fieldId)===he.uuid);if(ce>=0&&(N=g(he,he==null?void 0:he.options,(re=S[ce])==null?void 0:re.postData[0].postValue,!0),!N))break e}if(((Z=he==null?void 0:he.children)==null?void 0:Z.length)>0)for(const[,ce]of he.children.entries()){const pe=Object.keys(ce);if(pe[0]){const Se=ce[pe[0]],De={fieldId:Se.uuid,sectionIndex:Be},Me=S.findIndex(ze=>(ze==null?void 0:ze.fieldId)===Se.uuid);if(!((X=S[Me])!=null&&X.postData[0]&&(((me=(W=S[Me])==null?void 0:W.postData[0].postValue)==null?void 0:me.length)>0||((be=S[Me])==null?void 0:be.postData[0].postValue)>0||((de=(ye=(Te=S[Me])==null?void 0:Te.postData[0])==null?void 0:ye.postValue)==null?void 0:de.addressOne)!==""))){Gt.emit("OnInvalidFieldCatch",De),N=!1,_();break e}}}if(he!=null&&he.inlineConditionalRules&&((U=(ne=he==null?void 0:he.inlineConditionalRules)==null?void 0:ne.rules)==null?void 0:U.length)>0){for(const[,ce]of((ee=he==null?void 0:he.inlineConditionalRules)==null?void 0:ee.rules.entries())||[])for(const[,pe]of(ce==null?void 0:ce.conditions.entries())||[])for(const[,Se]of(pe==null?void 0:pe.children.entries())||[])if(Se.isValid===0){const De={fieldId:Se.uuid,sectionIndex:Be},Me=S.findIndex(ze=>(ze==null?void 0:ze.fieldId)===Se.uuid);if(Me>=0&&!((oe=S[Me])!=null&&oe.postData[0]&&(((_e=(ge=S[Me])==null?void 0:ge.postData[0].postValue)==null?void 0:_e.length)>0||((Ne=S[Me])==null?void 0:Ne.postData[0].postValue)>0))){Gt.emit("OnInvalidFieldCatch",De),N=!1,_();break e}}}N=!0}N&&n(!0)},[S]),k=()=>{Gt.emit("onSubmitUserForm","complete"),M()},F=()=>{x(S,i,a==null?void 0:a.submitFormData),n(!1),h()},P=N=>{w(N,i,a==null?void 0:a.updateFormData,Qm,()=>{var z;l&&((z=r==null?void 0:r.current)==null||z.show({severity:"success",summary:"Progress Saved",detail:"",life:3e3}))})};return o.jsxs("div",{children:[e&&o.jsxs("div",{style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:"30vw",padding:"20px",backgroundColor:"white",boxShadow:"0 4px 8px rgba(0, 0, 0, 0.1)",borderRadius:"8px",zIndex:1e3},children:[o.jsx("p",{className:"text-center",children:s}),E()]}),o.jsx(o5,{ref:r}),((H=A==null?void 0:A.formType)==null?void 0:H.key)!==""&&(v===Qm||v===null)&&o.jsx("span",{children:o.jsxs("div",{className:" flex justify-content-center",children:[u===!0&&o.jsx(Ft,{text:!0,className:"mr-2 p-button-info",label:"Save progress",onClick:()=>P(S),loading:m,disabled:T}),d===!0&&o.jsx(Ft,{label:`${f}`,type:"button",onClick:()=>k(),disabled:m,loading:T})]})})]})};/**
4268
4268
  * React Router v6.28.0
4269
4269
  *