cft-builder 0.2.74 → 0.2.76

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.
@@ -24,7 +24,7 @@ __p += '`),Ti&&(vn+=`' +
24
24
  function print() { __p += __j.call(arguments, '') }
25
25
  `:`;
26
26
  `)+vn+`return __p
27
- }`;var ni=MY(function(){return xe(qe,or+"return "+vn).apply(n,Je)});if(ni.source=vn,CC(ni))throw ni;return ni}function dFe(p){return ta(p).toLowerCase()}function fFe(p){return ta(p).toUpperCase()}function hFe(p,y,N){if(p=ta(p),p&&(N||y===n))return Zn(p);if(!p||!(y=Wl(y)))return p;var G=Eo(p),we=Eo(y),qe=fi(G,we),Je=Ha(G,we)+1;return X0(G,qe,Je).join("")}function pFe(p,y,N){if(p=ta(p),p&&(N||y===n))return p.slice(0,bp(p)+1);if(!p||!(y=Wl(y)))return p;var G=Eo(p),we=Ha(G,Eo(y))+1;return X0(G,0,we).join("")}function gFe(p,y,N){if(p=ta(p),p&&(N||y===n))return p.replace(Gn,"");if(!p||!(y=Wl(y)))return p;var G=Eo(p),we=fi(G,Eo(y));return X0(G,we).join("")}function mFe(p,y){var N=L,G=V;if(Qa(y)){var we="separator"in y?y.separator:we;N="length"in y?Jr(y.length):N,G="omission"in y?Wl(y.omission):G}p=ta(p);var qe=p.length;if(Cc(p)){var Je=Eo(p);qe=Je.length}if(N>=qe)return p;var st=N-eo(G);if(st<1)return G;var St=Je?X0(Je,0,st).join(""):p.slice(0,st);if(we===n)return St+G;if(Je&&(st+=St.length-st),TC(we)){if(p.slice(st).search(we)){var an,cn=St;for(we.global||(we=Tt(we.source,ta(Mt.exec(we))+"g")),we.lastIndex=0;an=we.exec(cn);)var vn=an.index;St=St.slice(0,vn===n?st:vn)}}else if(p.indexOf(Wl(we),st)!=st){var Ln=St.lastIndexOf(we);Ln>-1&&(St=St.slice(0,Ln))}return St+G}function vFe(p){return p=ta(p),p&&En.test(p)?p.replace(dn,Sm):p}var bFe=Ep(function(p,y,N){return p+(N?" ":"")+y.toUpperCase()}),_C=LH("toUpperCase");function PY(p,y,N){return p=ta(p),y=N?n:y,y===n?Gu(p)?Cm(p):zd(p):p.match(y)||[]}var MY=li(function(p,y){try{return Ci(p,n,y)}catch(N){return CC(N)?N:new X(N)}}),yFe=Gd(function(p,y){return ga(y,function(N){N=id(N),Xd(p,N,SC(p[N],p))}),p});function AFe(p){var y=p==null?0:p.length,N=xr();return p=y?Fi(p,function(G){if(typeof G[1]!="function")throw new Xt(s);return[N(G[0]),G[1]]}):[],li(function(G){for(var we=-1;++we<y;){var qe=p[we];if(Ci(qe[0],this,G))return Ci(qe[1],this,G)}})}function wFe(p){return KIe(Ic(p,f))}function DC(p){return function(){return p}}function SFe(p,y){return p==null||p!==p?y:p}var xFe=VH(),CFe=VH(!0);function Cl(p){return p}function NC(p){return pH(typeof p=="function"?p:Ic(p,f))}function TFe(p){return mH(Ic(p,f))}function EFe(p,y){return vH(p,Ic(y,f))}var IFe=li(function(p,y){return function(N){return Nm(N,p,y)}}),_Fe=li(function(p,y){return function(N){return Nm(p,N,y)}});function OC(p,y,N){var G=Hs(y),we=X6(y,G);N==null&&!(Qa(y)&&(we.length||!G.length))&&(N=y,y=p,p=this,we=X6(y,Hs(y)));var qe=!(Qa(N)&&"chain"in N)||!!N.chain,Je=Qd(p);return ga(we,function(st){var St=y[st];p[st]=St,Je&&(p.prototype[st]=function(){var an=this.__chain__;if(qe||an){var cn=p(this.__wrapped__),vn=cn.__actions__=wl(this.__actions__);return vn.push({func:St,args:arguments,thisArg:p}),cn.__chain__=an,cn}return St.apply(p,Zs([this.value()],arguments))})}),p}function DFe(){return Vr._===this&&(Vr._=Io),this}function FC(){}function NFe(p){return p=Jr(p),li(function(y){return bH(y,p)})}var OFe=cC(Fi),FFe=cC(jd),kFe=cC(zl);function LY(p){return mC(p)?vt(id(p)):c_e(p)}function PFe(p){return function(y){return p==null?n:uf(p,y)}}var MFe=qH(),LFe=qH(!0);function kC(){return[]}function PC(){return!1}function BFe(){return{}}function VFe(){return""}function UFe(){return!0}function qFe(p,y){if(p=Jr(p),p<1||p>Q)return[];var N=he,G=zs(p,he);y=xr(y),p-=he;for(var we=xn(G,y);++N<p;)y(N);return we}function $Fe(p){return jr(p)?Fi(p,id):Ql(p)?[p]:wl(nY(ta(p)))}function jFe(p){var y=++Ga;return ta(p)+y}var zFe=Z6(function(p,y){return p+y},0),HFe=uC("ceil"),YFe=Z6(function(p,y){return p/y},1),KFe=uC("floor");function XFe(p){return p&&p.length?K6(p,Cl,Gx):n}function RFe(p,y){return p&&p.length?K6(p,xr(y,2),Gx):n}function GFe(p){return Re(p,Cl)}function WFe(p,y){return Re(p,xr(y,2))}function QFe(p){return p&&p.length?K6(p,Cl,Zx):n}function JFe(p,y){return p&&p.length?K6(p,xr(y,2),Zx):n}var ZFe=Z6(function(p,y){return p*y},1),eke=uC("round"),tke=Z6(function(p,y){return p-y},0);function nke(p){return p&&p.length?fn(p,Cl):0}function rke(p,y){return p&&p.length?fn(p,xr(y,2)):0}return ke.after=TNe,ke.ary=hY,ke.assign=fOe,ke.assignIn=IY,ke.assignInWith=f9,ke.assignWith=hOe,ke.at=pOe,ke.before=pY,ke.bind=SC,ke.bindAll=yFe,ke.bindKey=gY,ke.castArray=BNe,ke.chain=uY,ke.chunk=K_e,ke.compact=X_e,ke.concat=R_e,ke.cond=AFe,ke.conforms=wFe,ke.constant=DC,ke.countBy=nNe,ke.create=gOe,ke.curry=mY,ke.curryRight=vY,ke.debounce=bY,ke.defaults=mOe,ke.defaultsDeep=vOe,ke.defer=ENe,ke.delay=INe,ke.difference=G_e,ke.differenceBy=W_e,ke.differenceWith=Q_e,ke.drop=J_e,ke.dropRight=Z_e,ke.dropRightWhile=eDe,ke.dropWhile=tDe,ke.fill=nDe,ke.filter=iNe,ke.flatMap=oNe,ke.flatMapDeep=lNe,ke.flatMapDepth=cNe,ke.flatten=sY,ke.flattenDeep=rDe,ke.flattenDepth=iDe,ke.flip=_Ne,ke.flow=xFe,ke.flowRight=CFe,ke.fromPairs=aDe,ke.functions=COe,ke.functionsIn=TOe,ke.groupBy=uNe,ke.initial=oDe,ke.intersection=lDe,ke.intersectionBy=cDe,ke.intersectionWith=uDe,ke.invert=IOe,ke.invertBy=_Oe,ke.invokeMap=fNe,ke.iteratee=NC,ke.keyBy=hNe,ke.keys=Hs,ke.keysIn=xl,ke.map=s9,ke.mapKeys=NOe,ke.mapValues=OOe,ke.matches=TFe,ke.matchesProperty=EFe,ke.memoize=l9,ke.merge=FOe,ke.mergeWith=_Y,ke.method=IFe,ke.methodOf=_Fe,ke.mixin=OC,ke.negate=c9,ke.nthArg=NFe,ke.omit=kOe,ke.omitBy=POe,ke.once=DNe,ke.orderBy=pNe,ke.over=OFe,ke.overArgs=NNe,ke.overEvery=FFe,ke.overSome=kFe,ke.partial=xC,ke.partialRight=yY,ke.partition=gNe,ke.pick=MOe,ke.pickBy=DY,ke.property=LY,ke.propertyOf=PFe,ke.pull=pDe,ke.pullAll=lY,ke.pullAllBy=gDe,ke.pullAllWith=mDe,ke.pullAt=vDe,ke.range=MFe,ke.rangeRight=LFe,ke.rearg=ONe,ke.reject=bNe,ke.remove=bDe,ke.rest=FNe,ke.reverse=AC,ke.sampleSize=ANe,ke.set=BOe,ke.setWith=VOe,ke.shuffle=wNe,ke.slice=yDe,ke.sortBy=CNe,ke.sortedUniq=EDe,ke.sortedUniqBy=IDe,ke.split=oFe,ke.spread=kNe,ke.tail=_De,ke.take=DDe,ke.takeRight=NDe,ke.takeRightWhile=ODe,ke.takeWhile=FDe,ke.tap=XDe,ke.throttle=PNe,ke.thru=a9,ke.toArray=CY,ke.toPairs=NY,ke.toPairsIn=OY,ke.toPath=$Fe,ke.toPlainObject=EY,ke.transform=UOe,ke.unary=MNe,ke.union=kDe,ke.unionBy=PDe,ke.unionWith=MDe,ke.uniq=LDe,ke.uniqBy=BDe,ke.uniqWith=VDe,ke.unset=qOe,ke.unzip=wC,ke.unzipWith=cY,ke.update=$Oe,ke.updateWith=jOe,ke.values=Dp,ke.valuesIn=zOe,ke.without=UDe,ke.words=PY,ke.wrap=LNe,ke.xor=qDe,ke.xorBy=$De,ke.xorWith=jDe,ke.zip=zDe,ke.zipObject=HDe,ke.zipObjectDeep=YDe,ke.zipWith=KDe,ke.entries=NY,ke.entriesIn=OY,ke.extend=IY,ke.extendWith=f9,OC(ke,ke),ke.add=zFe,ke.attempt=MY,ke.camelCase=XOe,ke.capitalize=FY,ke.ceil=HFe,ke.clamp=HOe,ke.clone=VNe,ke.cloneDeep=qNe,ke.cloneDeepWith=$Ne,ke.cloneWith=UNe,ke.conformsTo=jNe,ke.deburr=kY,ke.defaultTo=SFe,ke.divide=YFe,ke.endsWith=ROe,ke.eq=du,ke.escape=GOe,ke.escapeRegExp=WOe,ke.every=rNe,ke.find=aNe,ke.findIndex=iY,ke.findKey=bOe,ke.findLast=sNe,ke.findLastIndex=aY,ke.findLastKey=yOe,ke.floor=KFe,ke.forEach=dY,ke.forEachRight=fY,ke.forIn=AOe,ke.forInRight=wOe,ke.forOwn=SOe,ke.forOwnRight=xOe,ke.get=EC,ke.gt=zNe,ke.gte=HNe,ke.has=EOe,ke.hasIn=IC,ke.head=oY,ke.identity=Cl,ke.includes=dNe,ke.indexOf=sDe,ke.inRange=YOe,ke.invoke=DOe,ke.isArguments=hf,ke.isArray=jr,ke.isArrayBuffer=YNe,ke.isArrayLike=Sl,ke.isArrayLikeObject=ps,ke.isBoolean=KNe,ke.isBuffer=R0,ke.isDate=XNe,ke.isElement=RNe,ke.isEmpty=GNe,ke.isEqual=WNe,ke.isEqualWith=QNe,ke.isError=CC,ke.isFinite=JNe,ke.isFunction=Qd,ke.isInteger=AY,ke.isLength=u9,ke.isMap=wY,ke.isMatch=ZNe,ke.isMatchWith=eOe,ke.isNaN=tOe,ke.isNative=nOe,ke.isNil=iOe,ke.isNull=rOe,ke.isNumber=SY,ke.isObject=Qa,ke.isObjectLike=ns,ke.isPlainObject=Lm,ke.isRegExp=TC,ke.isSafeInteger=aOe,ke.isSet=xY,ke.isString=d9,ke.isSymbol=Ql,ke.isTypedArray=_p,ke.isUndefined=sOe,ke.isWeakMap=oOe,ke.isWeakSet=lOe,ke.join=dDe,ke.kebabCase=QOe,ke.last=Dc,ke.lastIndexOf=fDe,ke.lowerCase=JOe,ke.lowerFirst=ZOe,ke.lt=cOe,ke.lte=uOe,ke.max=XFe,ke.maxBy=RFe,ke.mean=GFe,ke.meanBy=WFe,ke.min=QFe,ke.minBy=JFe,ke.stubArray=kC,ke.stubFalse=PC,ke.stubObject=BFe,ke.stubString=VFe,ke.stubTrue=UFe,ke.multiply=ZFe,ke.nth=hDe,ke.noConflict=DFe,ke.noop=FC,ke.now=o9,ke.pad=eFe,ke.padEnd=tFe,ke.padStart=nFe,ke.parseInt=rFe,ke.random=KOe,ke.reduce=mNe,ke.reduceRight=vNe,ke.repeat=iFe,ke.replace=aFe,ke.result=LOe,ke.round=eke,ke.runInContext=gt,ke.sample=yNe,ke.size=SNe,ke.snakeCase=sFe,ke.some=xNe,ke.sortedIndex=ADe,ke.sortedIndexBy=wDe,ke.sortedIndexOf=SDe,ke.sortedLastIndex=xDe,ke.sortedLastIndexBy=CDe,ke.sortedLastIndexOf=TDe,ke.startCase=lFe,ke.startsWith=cFe,ke.subtract=tke,ke.sum=nke,ke.sumBy=rke,ke.template=uFe,ke.times=qFe,ke.toFinite=Jd,ke.toInteger=Jr,ke.toLength=TY,ke.toLower=dFe,ke.toNumber=Nc,ke.toSafeInteger=dOe,ke.toString=ta,ke.toUpper=fFe,ke.trim=hFe,ke.trimEnd=pFe,ke.trimStart=gFe,ke.truncate=mFe,ke.unescape=vFe,ke.uniqueId=jFe,ke.upperCase=bFe,ke.upperFirst=_C,ke.each=dY,ke.eachRight=fY,ke.first=oY,OC(ke,function(){var p={};return nd(ke,function(y,N){Sr.call(ke.prototype,N)||(p[N]=y)}),p}(),{chain:!1}),ke.VERSION=r,ga(["bind","bindKey","curry","curryRight","partial","partialRight"],function(p){ke[p].placeholder=ke}),ga(["drop","take"],function(p,y){hi.prototype[p]=function(N){N=N===n?1:fs(Jr(N),0);var G=this.__filtered__&&!y?new hi(this):this.clone();return G.__filtered__?G.__takeCount__=zs(N,G.__takeCount__):G.__views__.push({size:zs(N,he),type:p+(G.__dir__<0?"Right":"")}),G},hi.prototype[p+"Right"]=function(N){return this.reverse()[p](N).reverse()}}),ga(["filter","map","takeWhile"],function(p,y){var N=y+1,G=N==q||N==ge;hi.prototype[p]=function(we){var qe=this.clone();return qe.__iteratees__.push({iteratee:xr(we,3),type:N}),qe.__filtered__=qe.__filtered__||G,qe}}),ga(["head","last"],function(p,y){var N="take"+(y?"Right":"");hi.prototype[p]=function(){return this[N](1).value()[0]}}),ga(["initial","tail"],function(p,y){var N="drop"+(y?"":"Right");hi.prototype[p]=function(){return this.__filtered__?new hi(this):this[N](1)}}),hi.prototype.compact=function(){return this.filter(Cl)},hi.prototype.find=function(p){return this.filter(p).head()},hi.prototype.findLast=function(p){return this.reverse().find(p)},hi.prototype.invokeMap=li(function(p,y){return typeof p=="function"?new hi(this):this.map(function(N){return Nm(N,p,y)})}),hi.prototype.reject=function(p){return this.filter(c9(xr(p)))},hi.prototype.slice=function(p,y){p=Jr(p);var N=this;return N.__filtered__&&(p>0||y<0)?new hi(N):(p<0?N=N.takeRight(-p):p&&(N=N.drop(p)),y!==n&&(y=Jr(y),N=y<0?N.dropRight(-y):N.take(y-p)),N)},hi.prototype.takeRightWhile=function(p){return this.reverse().takeWhile(p).reverse()},hi.prototype.toArray=function(){return this.take(he)},nd(hi.prototype,function(p,y){var N=/^(?:filter|find|map|reject)|While$/.test(y),G=/^(?:head|last)$/.test(y),we=ke[G?"take"+(y=="last"?"Right":""):y],qe=G||/^find/.test(y);we&&(ke.prototype[y]=function(){var Je=this.__wrapped__,st=G?[1]:arguments,St=Je instanceof hi,an=st[0],cn=St||jr(Je),vn=function(bi){var Ti=we.apply(ke,Zs([bi],st));return G&&Ln?Ti[0]:Ti};cn&&N&&typeof an=="function"&&an.length!=1&&(St=cn=!1);var Ln=this.__chain__,or=!!this.__actions__.length,Er=qe&&!Ln,ni=St&&!or;if(!qe&&cn){Je=ni?Je:new hi(this);var Ir=p.apply(Je,st);return Ir.__actions__.push({func:a9,args:[vn],thisArg:n}),new yl(Ir,Ln)}return Er&&ni?p.apply(this,st):(Ir=this.thru(vn),Er?G?Ir.value()[0]:Ir.value():Ir)})}),ga(["pop","push","shift","sort","splice","unshift"],function(p){var y=Yn[p],N=/^(?:push|sort|unshift)$/.test(p)?"tap":"thru",G=/^(?:pop|shift)$/.test(p);ke.prototype[p]=function(){var we=arguments;if(G&&!this.__chain__){var qe=this.value();return y.apply(jr(qe)?qe:[],we)}return this[N](function(Je){return y.apply(jr(Je)?Je:[],we)})}}),nd(hi.prototype,function(p,y){var N=ke[y];if(N){var G=N.name+"";Sr.call(ed,G)||(ed[G]=[]),ed[G].push({name:y,func:N})}}),ed[J6(n,w).name]=[{name:"wrapper",func:n}],hi.prototype.clone=jx,hi.prototype.reverse=zx,hi.prototype.value=Hx,ke.prototype.at=RDe,ke.prototype.chain=GDe,ke.prototype.commit=WDe,ke.prototype.next=QDe,ke.prototype.plant=ZDe,ke.prototype.reverse=eNe,ke.prototype.toJSON=ke.prototype.valueOf=ke.prototype.value=tNe,ke.prototype.first=ke.prototype.head,Do&&(ke.prototype[Do]=JDe),ke},Wu=Tm();ti?((ti.exports=Wu)._=Wu,$r._=Wu):Vr._=Wu}).call(Di)}(Vm,Vm.exports);var It=Vm.exports;const Um=ao(It);for(var W0=256,uT=[],dT=256,qm;W0--;)uT[W0]=(W0+256).toString(16).substring(1);function et(t){var e=0,n=11;if(!qm||W0+n>dT*2)for(qm="",W0=0;e<dT;e++)qm+=uT[Math.random()*256|0];return qm.substring(W0,W0+++n)}const Rn="SIDEBAR_ITEM",na="SECTION",Oo="ROW",ws="COLUMN",fT="PAGE",gf="COMPONENT",hT="CONDITIONAL_COMPONENT",zY="reusable_builder_section",Q0="form",t0="survey",$m="policies",g9="page",mf="pdf",Op="service",jm="training",vf="exam",ma=0,va=1,Ca=2,Ta=3,Ea=4,Oa=5,Zo=6,Fo=7,pT=5,gT=6,mT=7,tc=7,m9=1,Hi={isSortable:!1,isFilterable:!1,resizableColumns:!1,columnResizeMode:"fit",reorderableColumns:!1,colToggle:!1,freezeColumn:!1},ki={showHeaderText:!1,showHelperText:!1,showToolTip:!1,showLabel:!0,label:{english:"Field label"},abbreviationLabel:{english:""},helperText:{english:"Helper Text"},guidelines:{english:""},headerText:{english:"Header Text"},textTable:{english:""},toolTip:{english:""},validationMesssage:{english:"This field is required"},placeholder:{english:""},abbreviationLabelPlaceHolder:{english:"Abbreviation label"},helperTextPlaceHolder:{english:"Helper Text"},guidelinesPlaceHolder:{english:"Guidelines Text"},headerTextPlaceHolder:{english:"Header Text"},textTablePlaceHolder:{english:"Text for table"},toolTipPlaceHolder:{english:"Tool Tip"},validationMesssagePlaceHolder:{english:"This field is required"},placeholderPlaceHolder:{english:"Placeholder text"},isLayoutTabEnabled:!0,isValidationTabEnabled:!0,isDynamicListingTabEnabled:!1,isConditionalTabEnabled:!1,isHierarchalCondionalTabEnabled:!1};({uuid:et(),...Hi,...ki});const Yi={title:"",id:"",className:"",name:"",enumeration:"",style:"",required:!0,readOnly:!1,hidden:!1,disabled:!1,pattern:""},vT={isPostField:!0,isValid:0,uuid:et(),componentType:"checkbox",...ki,...Hi,fieldType:{element:"checkbox"},label:{english:"Checkbox label"},inlineConditionalRules:{rules:[]},conditionalTabRules:{rules:[{conditions:[]}]},conditionalSectionRules:{rules:[{conditions:[]}]},options:[],customColumnsForOptions:[],data:[{uuid:et(),dataKey:"",value:""}],attributes:{...Yi}},Oc={showIcon:!1,icon:"",iconAlignment:"left"},HY={isPostField:!0,uuid:et(),isValid:0,isFluid:!0,showBillingAddress:!1,componentType:"address",...ki,...Oc,...Hi,label:{english:"Home Address"},billingLabel:{english:"Secondary Address"},countryLabel:{english:"Country"},stateLabel:{english:"State"},cityLabel:{english:"City"},postalcodeLabel:{english:"Postcode"},addresslineFirstLabel:{english:"Address line 1"},addresslineSecondLabel:{english:"Address line 2"},fieldType:{element:"address",type:"address"},attributes:{...Yi}},YY=[{name:"Ascension Island",code:"AC",emoji:"🇦🇨",unicode:"U+1F1E6 U+1F1E8",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AC.svg"},{name:"Andorra",code:"AD",emoji:"🇦🇩",unicode:"U+1F1E6 U+1F1E9",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AD.svg"},{name:"United Arab Emirates",code:"AE",emoji:"🇦🇪",unicode:"U+1F1E6 U+1F1EA",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AE.svg"},{name:"Afghanistan",code:"AF",emoji:"🇦🇫",unicode:"U+1F1E6 U+1F1EB",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AF.svg"},{name:"Antigua & Barbuda",code:"AG",emoji:"🇦🇬",unicode:"U+1F1E6 U+1F1EC",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AG.svg"},{name:"Anguilla",code:"AI",emoji:"🇦🇮",unicode:"U+1F1E6 U+1F1EE",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AI.svg"},{name:"Albania",code:"AL",emoji:"🇦🇱",unicode:"U+1F1E6 U+1F1F1",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AL.svg"},{name:"Armenia",code:"AM",emoji:"🇦🇲",unicode:"U+1F1E6 U+1F1F2",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AM.svg"},{name:"Angola",code:"AO",emoji:"🇦🇴",unicode:"U+1F1E6 U+1F1F4",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AO.svg"},{name:"Antarctica",code:"AQ",emoji:"🇦🇶",unicode:"U+1F1E6 U+1F1F6",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AQ.svg"},{name:"Argentina",code:"AR",emoji:"🇦🇷",unicode:"U+1F1E6 U+1F1F7",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AR.svg"},{name:"American Samoa",code:"AS",emoji:"🇦🇸",unicode:"U+1F1E6 U+1F1F8",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AS.svg"},{name:"Austria",code:"AT",emoji:"🇦🇹",unicode:"U+1F1E6 U+1F1F9",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AT.svg"},{name:"Australia",code:"AU",emoji:"🇦🇺",unicode:"U+1F1E6 U+1F1FA",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AU.svg"},{name:"Aruba",code:"AW",emoji:"🇦🇼",unicode:"U+1F1E6 U+1F1FC",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AW.svg"},{name:"Åland Islands",code:"AX",emoji:"🇦🇽",unicode:"U+1F1E6 U+1F1FD",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AX.svg"},{name:"Azerbaijan",code:"AZ",emoji:"🇦🇿",unicode:"U+1F1E6 U+1F1FF",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AZ.svg"},{name:"Bosnia & Herzegovina",code:"BA",emoji:"🇧🇦",unicode:"U+1F1E7 U+1F1E6",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BA.svg"},{name:"Barbados",code:"BB",emoji:"🇧🇧",unicode:"U+1F1E7 U+1F1E7",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BB.svg"},{name:"Bangladesh",code:"BD",emoji:"🇧🇩",unicode:"U+1F1E7 U+1F1E9",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BD.svg"},{name:"Belgium",code:"BE",emoji:"🇧🇪",unicode:"U+1F1E7 U+1F1EA",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BE.svg"},{name:"Burkina Faso",code:"BF",emoji:"🇧🇫",unicode:"U+1F1E7 U+1F1EB",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BF.svg"},{name:"Bulgaria",code:"BG",emoji:"🇧🇬",unicode:"U+1F1E7 U+1F1EC",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BG.svg"},{name:"Bahrain",code:"BH",emoji:"🇧🇭",unicode:"U+1F1E7 U+1F1ED",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BH.svg"},{name:"Burundi",code:"BI",emoji:"🇧🇮",unicode:"U+1F1E7 U+1F1EE",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BI.svg"},{name:"Benin",code:"BJ",emoji:"🇧🇯",unicode:"U+1F1E7 U+1F1EF",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BJ.svg"},{name:"St. Barthélemy",code:"BL",emoji:"🇧🇱",unicode:"U+1F1E7 U+1F1F1",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BL.svg"},{name:"Bermuda",code:"BM",emoji:"🇧🇲",unicode:"U+1F1E7 U+1F1F2",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BM.svg"},{name:"Brunei",code:"BN",emoji:"🇧🇳",unicode:"U+1F1E7 U+1F1F3",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BN.svg"},{name:"Bolivia",code:"BO",emoji:"🇧🇴",unicode:"U+1F1E7 U+1F1F4",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BO.svg"},{name:"Caribbean Netherlands",code:"BQ",emoji:"🇧🇶",unicode:"U+1F1E7 U+1F1F6",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BQ.svg"},{name:"Brazil",code:"BR",emoji:"🇧🇷",unicode:"U+1F1E7 U+1F1F7",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BR.svg"},{name:"Bahamas",code:"BS",emoji:"🇧🇸",unicode:"U+1F1E7 U+1F1F8",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BS.svg"},{name:"Bhutan",code:"BT",emoji:"🇧🇹",unicode:"U+1F1E7 U+1F1F9",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BT.svg"},{name:"Bouvet Island",code:"BV",emoji:"🇧🇻",unicode:"U+1F1E7 U+1F1FB",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BV.svg"},{name:"Botswana",code:"BW",emoji:"🇧🇼",unicode:"U+1F1E7 U+1F1FC",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BW.svg"},{name:"Belarus",code:"BY",emoji:"🇧🇾",unicode:"U+1F1E7 U+1F1FE",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BY.svg"},{name:"Belize",code:"BZ",emoji:"🇧🇿",unicode:"U+1F1E7 U+1F1FF",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BZ.svg"},{name:"Canada",code:"CA",emoji:"🇨🇦",unicode:"U+1F1E8 U+1F1E6",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CA.svg"},{name:"Cocos (Keeling) Islands",code:"CC",emoji:"🇨🇨",unicode:"U+1F1E8 U+1F1E8",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CC.svg"},{name:"Congo - Kinshasa",code:"CD",emoji:"🇨🇩",unicode:"U+1F1E8 U+1F1E9",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CD.svg"},{name:"Central African Republic",code:"CF",emoji:"🇨🇫",unicode:"U+1F1E8 U+1F1EB",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CF.svg"},{name:"Congo - Brazzaville",code:"CG",emoji:"🇨🇬",unicode:"U+1F1E8 U+1F1EC",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CG.svg"},{name:"Switzerland",code:"CH",emoji:"🇨🇭",unicode:"U+1F1E8 U+1F1ED",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CH.svg"},{name:"Côte d’Ivoire",code:"CI",emoji:"🇨🇮",unicode:"U+1F1E8 U+1F1EE",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CI.svg"},{name:"Cook Islands",code:"CK",emoji:"🇨🇰",unicode:"U+1F1E8 U+1F1F0",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CK.svg"},{name:"Chile",code:"CL",emoji:"🇨🇱",unicode:"U+1F1E8 U+1F1F1",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CL.svg"},{name:"Cameroon",code:"CM",emoji:"🇨🇲",unicode:"U+1F1E8 U+1F1F2",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CM.svg"},{name:"China",code:"CN",emoji:"🇨🇳",unicode:"U+1F1E8 U+1F1F3",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CN.svg"},{name:"Colombia",code:"CO",emoji:"🇨🇴",unicode:"U+1F1E8 U+1F1F4",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CO.svg"},{name:"Clipperton Island",code:"CP",emoji:"🇨🇵",unicode:"U+1F1E8 U+1F1F5",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CP.svg"},{name:"Costa Rica",code:"CR",emoji:"🇨🇷",unicode:"U+1F1E8 U+1F1F7",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CR.svg"},{name:"Cuba",code:"CU",emoji:"🇨🇺",unicode:"U+1F1E8 U+1F1FA",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CU.svg"},{name:"Cape Verde",code:"CV",emoji:"🇨🇻",unicode:"U+1F1E8 U+1F1FB",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CV.svg"},{name:"Curaçao",code:"CW",emoji:"🇨🇼",unicode:"U+1F1E8 U+1F1FC",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CW.svg"},{name:"Christmas Island",code:"CX",emoji:"🇨🇽",unicode:"U+1F1E8 U+1F1FD",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CX.svg"},{name:"Cyprus",code:"CY",emoji:"🇨🇾",unicode:"U+1F1E8 U+1F1FE",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CY.svg"},{name:"Czechia",code:"CZ",emoji:"🇨🇿",unicode:"U+1F1E8 U+1F1FF",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CZ.svg"},{name:"Germany",code:"DE",emoji:"🇩🇪",unicode:"U+1F1E9 U+1F1EA",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/DE.svg"},{name:"Diego Garcia",code:"DG",emoji:"🇩🇬",unicode:"U+1F1E9 U+1F1EC",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/DG.svg"},{name:"Djibouti",code:"DJ",emoji:"🇩🇯",unicode:"U+1F1E9 U+1F1EF",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/DJ.svg"},{name:"Denmark",code:"DK",emoji:"🇩🇰",unicode:"U+1F1E9 U+1F1F0",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/DK.svg"},{name:"Dominica",code:"DM",emoji:"🇩🇲",unicode:"U+1F1E9 U+1F1F2",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/DM.svg"},{name:"Dominican Republic",code:"DO",emoji:"🇩🇴",unicode:"U+1F1E9 U+1F1F4",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/DO.svg"},{name:"Algeria",code:"DZ",emoji:"🇩🇿",unicode:"U+1F1E9 U+1F1FF",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/DZ.svg"},{name:"Ceuta & Melilla",code:"EA",emoji:"🇪🇦",unicode:"U+1F1EA U+1F1E6",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/EA.svg"},{name:"Ecuador",code:"EC",emoji:"🇪🇨",unicode:"U+1F1EA U+1F1E8",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/EC.svg"},{name:"Estonia",code:"EE",emoji:"🇪🇪",unicode:"U+1F1EA U+1F1EA",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/EE.svg"},{name:"Egypt",code:"EG",emoji:"🇪🇬",unicode:"U+1F1EA U+1F1EC",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/EG.svg"},{name:"Western Sahara",code:"EH",emoji:"🇪🇭",unicode:"U+1F1EA U+1F1ED",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/EH.svg"},{name:"Eritrea",code:"ER",emoji:"🇪🇷",unicode:"U+1F1EA U+1F1F7",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/ER.svg"},{name:"Spain",code:"ES",emoji:"🇪🇸",unicode:"U+1F1EA U+1F1F8",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/ES.svg"},{name:"Ethiopia",code:"ET",emoji:"🇪🇹",unicode:"U+1F1EA U+1F1F9",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/ET.svg"},{name:"European Union",code:"EU",emoji:"🇪🇺",unicode:"U+1F1EA U+1F1FA",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/EU.svg"},{name:"Finland",code:"FI",emoji:"🇫🇮",unicode:"U+1F1EB U+1F1EE",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/FI.svg"},{name:"Fiji",code:"FJ",emoji:"🇫🇯",unicode:"U+1F1EB U+1F1EF",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/FJ.svg"},{name:"Falkland Islands",code:"FK",emoji:"🇫🇰",unicode:"U+1F1EB U+1F1F0",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/FK.svg"},{name:"Micronesia",code:"FM",emoji:"🇫🇲",unicode:"U+1F1EB U+1F1F2",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/FM.svg"},{name:"Faroe Islands",code:"FO",emoji:"🇫🇴",unicode:"U+1F1EB U+1F1F4",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/FO.svg"},{name:"France",code:"FR",emoji:"🇫🇷",unicode:"U+1F1EB U+1F1F7",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/FR.svg"},{name:"Gabon",code:"GA",emoji:"🇬🇦",unicode:"U+1F1EC U+1F1E6",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GA.svg"},{name:"United Kingdom",code:"GB",emoji:"🇬🇧",unicode:"U+1F1EC U+1F1E7",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GB.svg"},{name:"Grenada",code:"GD",emoji:"🇬🇩",unicode:"U+1F1EC U+1F1E9",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GD.svg"},{name:"Georgia",code:"GE",emoji:"🇬🇪",unicode:"U+1F1EC U+1F1EA",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GE.svg"},{name:"French Guiana",code:"GF",emoji:"🇬🇫",unicode:"U+1F1EC U+1F1EB",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GF.svg"},{name:"Guernsey",code:"GG",emoji:"🇬🇬",unicode:"U+1F1EC U+1F1EC",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GG.svg"},{name:"Ghana",code:"GH",emoji:"🇬🇭",unicode:"U+1F1EC U+1F1ED",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GH.svg"},{name:"Gibraltar",code:"GI",emoji:"🇬🇮",unicode:"U+1F1EC U+1F1EE",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GI.svg"},{name:"Greenland",code:"GL",emoji:"🇬🇱",unicode:"U+1F1EC U+1F1F1",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GL.svg"},{name:"Gambia",code:"GM",emoji:"🇬🇲",unicode:"U+1F1EC U+1F1F2",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GM.svg"},{name:"Guinea",code:"GN",emoji:"🇬🇳",unicode:"U+1F1EC U+1F1F3",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GN.svg"},{name:"Guadeloupe",code:"GP",emoji:"🇬🇵",unicode:"U+1F1EC U+1F1F5",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GP.svg"},{name:"Equatorial Guinea",code:"GQ",emoji:"🇬🇶",unicode:"U+1F1EC U+1F1F6",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GQ.svg"},{name:"Greece",code:"GR",emoji:"🇬🇷",unicode:"U+1F1EC U+1F1F7",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GR.svg"},{name:"South Georgia & South Sandwich Islands",code:"GS",emoji:"🇬🇸",unicode:"U+1F1EC U+1F1F8",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GS.svg"},{name:"Guatemala",code:"GT",emoji:"🇬🇹",unicode:"U+1F1EC U+1F1F9",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GT.svg"},{name:"Guam",code:"GU",emoji:"🇬🇺",unicode:"U+1F1EC U+1F1FA",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GU.svg"},{name:"Guinea-Bissau",code:"GW",emoji:"🇬🇼",unicode:"U+1F1EC U+1F1FC",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GW.svg"},{name:"Guyana",code:"GY",emoji:"🇬🇾",unicode:"U+1F1EC U+1F1FE",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GY.svg"},{name:"Hong Kong SAR China",code:"HK",emoji:"🇭🇰",unicode:"U+1F1ED U+1F1F0",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/HK.svg"},{name:"Heard & McDonald Islands",code:"HM",emoji:"🇭🇲",unicode:"U+1F1ED U+1F1F2",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/HM.svg"},{name:"Honduras",code:"HN",emoji:"🇭🇳",unicode:"U+1F1ED U+1F1F3",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/HN.svg"},{name:"Croatia",code:"HR",emoji:"🇭🇷",unicode:"U+1F1ED U+1F1F7",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/HR.svg"},{name:"Haiti",code:"HT",emoji:"🇭🇹",unicode:"U+1F1ED U+1F1F9",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/HT.svg"},{name:"Hungary",code:"HU",emoji:"🇭🇺",unicode:"U+1F1ED U+1F1FA",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/HU.svg"},{name:"Canary Islands",code:"IC",emoji:"🇮🇨",unicode:"U+1F1EE U+1F1E8",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/IC.svg"},{name:"Indonesia",code:"ID",emoji:"🇮🇩",unicode:"U+1F1EE U+1F1E9",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/ID.svg"},{name:"Ireland",code:"IE",emoji:"🇮🇪",unicode:"U+1F1EE U+1F1EA",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/IE.svg"},{name:"Israel",code:"IL",emoji:"🇮🇱",unicode:"U+1F1EE U+1F1F1",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/IL.svg"},{name:"Isle of Man",code:"IM",emoji:"🇮🇲",unicode:"U+1F1EE U+1F1F2",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/IM.svg"},{name:"India",code:"IN",emoji:"🇮🇳",unicode:"U+1F1EE U+1F1F3",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/IN.svg"},{name:"British Indian Ocean Territory",code:"IO",emoji:"🇮🇴",unicode:"U+1F1EE U+1F1F4",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/IO.svg"},{name:"Iraq",code:"IQ",emoji:"🇮🇶",unicode:"U+1F1EE U+1F1F6",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/IQ.svg"},{name:"Iran",code:"IR",emoji:"🇮🇷",unicode:"U+1F1EE U+1F1F7",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/IR.svg"},{name:"Iceland",code:"IS",emoji:"🇮🇸",unicode:"U+1F1EE U+1F1F8",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/IS.svg"},{name:"Italy",code:"IT",emoji:"🇮🇹",unicode:"U+1F1EE U+1F1F9",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/IT.svg"},{name:"Jersey",code:"JE",emoji:"🇯🇪",unicode:"U+1F1EF U+1F1EA",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/JE.svg"},{name:"Jamaica",code:"JM",emoji:"🇯🇲",unicode:"U+1F1EF U+1F1F2",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/JM.svg"},{name:"Jordan",code:"JO",emoji:"🇯🇴",unicode:"U+1F1EF U+1F1F4",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/JO.svg"},{name:"Japan",code:"JP",emoji:"🇯🇵",unicode:"U+1F1EF U+1F1F5",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/JP.svg"},{name:"Kenya",code:"KE",emoji:"🇰🇪",unicode:"U+1F1F0 U+1F1EA",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/KE.svg"},{name:"Kyrgyzstan",code:"KG",emoji:"🇰🇬",unicode:"U+1F1F0 U+1F1EC",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/KG.svg"},{name:"Cambodia",code:"KH",emoji:"🇰🇭",unicode:"U+1F1F0 U+1F1ED",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/KH.svg"},{name:"Kiribati",code:"KI",emoji:"🇰🇮",unicode:"U+1F1F0 U+1F1EE",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/KI.svg"},{name:"Comoros",code:"KM",emoji:"🇰🇲",unicode:"U+1F1F0 U+1F1F2",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/KM.svg"},{name:"St. Kitts & Nevis",code:"KN",emoji:"🇰🇳",unicode:"U+1F1F0 U+1F1F3",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/KN.svg"},{name:"North Korea",code:"KP",emoji:"🇰🇵",unicode:"U+1F1F0 U+1F1F5",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/KP.svg"},{name:"South Korea",code:"KR",emoji:"🇰🇷",unicode:"U+1F1F0 U+1F1F7",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/KR.svg"},{name:"Kuwait",code:"KW",emoji:"🇰🇼",unicode:"U+1F1F0 U+1F1FC",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/KW.svg"},{name:"Cayman Islands",code:"KY",emoji:"🇰🇾",unicode:"U+1F1F0 U+1F1FE",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/KY.svg"},{name:"Kazakhstan",code:"KZ",emoji:"🇰🇿",unicode:"U+1F1F0 U+1F1FF",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/KZ.svg"},{name:"Laos",code:"LA",emoji:"🇱🇦",unicode:"U+1F1F1 U+1F1E6",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/LA.svg"},{name:"Lebanon",code:"LB",emoji:"🇱🇧",unicode:"U+1F1F1 U+1F1E7",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/LB.svg"},{name:"St. Lucia",code:"LC",emoji:"🇱🇨",unicode:"U+1F1F1 U+1F1E8",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/LC.svg"},{name:"Liechtenstein",code:"LI",emoji:"🇱🇮",unicode:"U+1F1F1 U+1F1EE",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/LI.svg"},{name:"Sri Lanka",code:"LK",emoji:"🇱🇰",unicode:"U+1F1F1 U+1F1F0",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/LK.svg"},{name:"Liberia",code:"LR",emoji:"🇱🇷",unicode:"U+1F1F1 U+1F1F7",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/LR.svg"},{name:"Lesotho",code:"LS",emoji:"🇱🇸",unicode:"U+1F1F1 U+1F1F8",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/LS.svg"},{name:"Lithuania",code:"LT",emoji:"🇱🇹",unicode:"U+1F1F1 U+1F1F9",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/LT.svg"},{name:"Luxembourg",code:"LU",emoji:"🇱🇺",unicode:"U+1F1F1 U+1F1FA",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/LU.svg"},{name:"Latvia",code:"LV",emoji:"🇱🇻",unicode:"U+1F1F1 U+1F1FB",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/LV.svg"},{name:"Libya",code:"LY",emoji:"🇱🇾",unicode:"U+1F1F1 U+1F1FE",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/LY.svg"},{name:"Morocco",code:"MA",emoji:"🇲🇦",unicode:"U+1F1F2 U+1F1E6",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MA.svg"},{name:"Monaco",code:"MC",emoji:"🇲🇨",unicode:"U+1F1F2 U+1F1E8",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MC.svg"},{name:"Moldova",code:"MD",emoji:"🇲🇩",unicode:"U+1F1F2 U+1F1E9",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MD.svg"},{name:"Montenegro",code:"ME",emoji:"🇲🇪",unicode:"U+1F1F2 U+1F1EA",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/ME.svg"},{name:"St. Martin",code:"MF",emoji:"🇲🇫",unicode:"U+1F1F2 U+1F1EB",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MF.svg"},{name:"Madagascar",code:"MG",emoji:"🇲🇬",unicode:"U+1F1F2 U+1F1EC",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MG.svg"},{name:"Marshall Islands",code:"MH",emoji:"🇲🇭",unicode:"U+1F1F2 U+1F1ED",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MH.svg"},{name:"North Macedonia",code:"MK",emoji:"🇲🇰",unicode:"U+1F1F2 U+1F1F0",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MK.svg"},{name:"Mali",code:"ML",emoji:"🇲🇱",unicode:"U+1F1F2 U+1F1F1",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/ML.svg"},{name:"Myanmar (Burma)",code:"MM",emoji:"🇲🇲",unicode:"U+1F1F2 U+1F1F2",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MM.svg"},{name:"Mongolia",code:"MN",emoji:"🇲🇳",unicode:"U+1F1F2 U+1F1F3",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MN.svg"},{name:"Macao SAR China",code:"MO",emoji:"🇲🇴",unicode:"U+1F1F2 U+1F1F4",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MO.svg"},{name:"Northern Mariana Islands",code:"MP",emoji:"🇲🇵",unicode:"U+1F1F2 U+1F1F5",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MP.svg"},{name:"Martinique",code:"MQ",emoji:"🇲🇶",unicode:"U+1F1F2 U+1F1F6",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MQ.svg"},{name:"Mauritania",code:"MR",emoji:"🇲🇷",unicode:"U+1F1F2 U+1F1F7",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MR.svg"},{name:"Montserrat",code:"MS",emoji:"🇲🇸",unicode:"U+1F1F2 U+1F1F8",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MS.svg"},{name:"Malta",code:"MT",emoji:"🇲🇹",unicode:"U+1F1F2 U+1F1F9",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MT.svg"},{name:"Mauritius",code:"MU",emoji:"🇲🇺",unicode:"U+1F1F2 U+1F1FA",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MU.svg"},{name:"Maldives",code:"MV",emoji:"🇲🇻",unicode:"U+1F1F2 U+1F1FB",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MV.svg"},{name:"Malawi",code:"MW",emoji:"🇲🇼",unicode:"U+1F1F2 U+1F1FC",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MW.svg"},{name:"Mexico",code:"MX",emoji:"🇲🇽",unicode:"U+1F1F2 U+1F1FD",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MX.svg"},{name:"Malaysia",code:"MY",emoji:"🇲🇾",unicode:"U+1F1F2 U+1F1FE",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MY.svg"},{name:"Mozambique",code:"MZ",emoji:"🇲🇿",unicode:"U+1F1F2 U+1F1FF",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MZ.svg"},{name:"Namibia",code:"NA",emoji:"🇳🇦",unicode:"U+1F1F3 U+1F1E6",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/NA.svg"},{name:"New Caledonia",code:"NC",emoji:"🇳🇨",unicode:"U+1F1F3 U+1F1E8",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/NC.svg"},{name:"Niger",code:"NE",emoji:"🇳🇪",unicode:"U+1F1F3 U+1F1EA",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/NE.svg"},{name:"Norfolk Island",code:"NF",emoji:"🇳🇫",unicode:"U+1F1F3 U+1F1EB",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/NF.svg"},{name:"Nigeria",code:"NG",emoji:"🇳🇬",unicode:"U+1F1F3 U+1F1EC",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/NG.svg"},{name:"Nicaragua",code:"NI",emoji:"🇳🇮",unicode:"U+1F1F3 U+1F1EE",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/NI.svg"},{name:"Netherlands",code:"NL",emoji:"🇳🇱",unicode:"U+1F1F3 U+1F1F1",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/NL.svg"},{name:"Norway",code:"NO",emoji:"🇳🇴",unicode:"U+1F1F3 U+1F1F4",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/NO.svg"},{name:"Nepal",code:"NP",emoji:"🇳🇵",unicode:"U+1F1F3 U+1F1F5",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/NP.svg"},{name:"Nauru",code:"NR",emoji:"🇳🇷",unicode:"U+1F1F3 U+1F1F7",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/NR.svg"},{name:"Niue",code:"NU",emoji:"🇳🇺",unicode:"U+1F1F3 U+1F1FA",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/NU.svg"},{name:"New Zealand",code:"NZ",emoji:"🇳🇿",unicode:"U+1F1F3 U+1F1FF",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/NZ.svg"},{name:"Oman",code:"OM",emoji:"🇴🇲",unicode:"U+1F1F4 U+1F1F2",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/OM.svg"},{name:"Panama",code:"PA",emoji:"🇵🇦",unicode:"U+1F1F5 U+1F1E6",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/PA.svg"},{name:"Peru",code:"PE",emoji:"🇵🇪",unicode:"U+1F1F5 U+1F1EA",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/PE.svg"},{name:"French Polynesia",code:"PF",emoji:"🇵🇫",unicode:"U+1F1F5 U+1F1EB",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/PF.svg"},{name:"Papua New Guinea",code:"PG",emoji:"🇵🇬",unicode:"U+1F1F5 U+1F1EC",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/PG.svg"},{name:"Philippines",code:"PH",emoji:"🇵🇭",unicode:"U+1F1F5 U+1F1ED",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/PH.svg"},{name:"Pakistan",code:"PK",emoji:"🇵🇰",unicode:"U+1F1F5 U+1F1F0",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/PK.svg"},{name:"Poland",code:"PL",emoji:"🇵🇱",unicode:"U+1F1F5 U+1F1F1",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/PL.svg"},{name:"St. Pierre & Miquelon",code:"PM",emoji:"🇵🇲",unicode:"U+1F1F5 U+1F1F2",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/PM.svg"},{name:"Pitcairn Islands",code:"PN",emoji:"🇵🇳",unicode:"U+1F1F5 U+1F1F3",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/PN.svg"},{name:"Puerto Rico",code:"PR",emoji:"🇵🇷",unicode:"U+1F1F5 U+1F1F7",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/PR.svg"},{name:"Palestinian Territories",code:"PS",emoji:"🇵🇸",unicode:"U+1F1F5 U+1F1F8",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/PS.svg"},{name:"Portugal",code:"PT",emoji:"🇵🇹",unicode:"U+1F1F5 U+1F1F9",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/PT.svg"},{name:"Palau",code:"PW",emoji:"🇵🇼",unicode:"U+1F1F5 U+1F1FC",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/PW.svg"},{name:"Paraguay",code:"PY",emoji:"🇵🇾",unicode:"U+1F1F5 U+1F1FE",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/PY.svg"},{name:"Qatar",code:"QA",emoji:"🇶🇦",unicode:"U+1F1F6 U+1F1E6",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/QA.svg"},{name:"Réunion",code:"RE",emoji:"🇷🇪",unicode:"U+1F1F7 U+1F1EA",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/RE.svg"},{name:"Romania",code:"RO",emoji:"🇷🇴",unicode:"U+1F1F7 U+1F1F4",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/RO.svg"},{name:"Serbia",code:"RS",emoji:"🇷🇸",unicode:"U+1F1F7 U+1F1F8",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/RS.svg"},{name:"Russia",code:"RU",emoji:"🇷🇺",unicode:"U+1F1F7 U+1F1FA",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/RU.svg"},{name:"Rwanda",code:"RW",emoji:"🇷🇼",unicode:"U+1F1F7 U+1F1FC",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/RW.svg"},{name:"Saudi Arabia",code:"SA",emoji:"🇸🇦",unicode:"U+1F1F8 U+1F1E6",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SA.svg"},{name:"Solomon Islands",code:"SB",emoji:"🇸🇧",unicode:"U+1F1F8 U+1F1E7",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SB.svg"},{name:"Seychelles",code:"SC",emoji:"🇸🇨",unicode:"U+1F1F8 U+1F1E8",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SC.svg"},{name:"Sudan",code:"SD",emoji:"🇸🇩",unicode:"U+1F1F8 U+1F1E9",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SD.svg"},{name:"Sweden",code:"SE",emoji:"🇸🇪",unicode:"U+1F1F8 U+1F1EA",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SE.svg"},{name:"Singapore",code:"SG",emoji:"🇸🇬",unicode:"U+1F1F8 U+1F1EC",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SG.svg"},{name:"St. Helena",code:"SH",emoji:"🇸🇭",unicode:"U+1F1F8 U+1F1ED",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SH.svg"},{name:"Slovenia",code:"SI",emoji:"🇸🇮",unicode:"U+1F1F8 U+1F1EE",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SI.svg"},{name:"Svalbard & Jan Mayen",code:"SJ",emoji:"🇸🇯",unicode:"U+1F1F8 U+1F1EF",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SJ.svg"},{name:"Slovakia",code:"SK",emoji:"🇸🇰",unicode:"U+1F1F8 U+1F1F0",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SK.svg"},{name:"Sierra Leone",code:"SL",emoji:"🇸🇱",unicode:"U+1F1F8 U+1F1F1",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SL.svg"},{name:"San Marino",code:"SM",emoji:"🇸🇲",unicode:"U+1F1F8 U+1F1F2",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SM.svg"},{name:"Senegal",code:"SN",emoji:"🇸🇳",unicode:"U+1F1F8 U+1F1F3",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SN.svg"},{name:"Somalia",code:"SO",emoji:"🇸🇴",unicode:"U+1F1F8 U+1F1F4",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SO.svg"},{name:"Suriname",code:"SR",emoji:"🇸🇷",unicode:"U+1F1F8 U+1F1F7",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SR.svg"},{name:"South Sudan",code:"SS",emoji:"🇸🇸",unicode:"U+1F1F8 U+1F1F8",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SS.svg"},{name:"São Tomé & Príncipe",code:"ST",emoji:"🇸🇹",unicode:"U+1F1F8 U+1F1F9",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/ST.svg"},{name:"El Salvador",code:"SV",emoji:"🇸🇻",unicode:"U+1F1F8 U+1F1FB",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SV.svg"},{name:"Sint Maarten",code:"SX",emoji:"🇸🇽",unicode:"U+1F1F8 U+1F1FD",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SX.svg"},{name:"Syria",code:"SY",emoji:"🇸🇾",unicode:"U+1F1F8 U+1F1FE",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SY.svg"},{name:"Eswatini",code:"SZ",emoji:"🇸🇿",unicode:"U+1F1F8 U+1F1FF",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SZ.svg"},{name:"Tristan da Cunha",code:"TA",emoji:"🇹🇦",unicode:"U+1F1F9 U+1F1E6",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TA.svg"},{name:"Turks & Caicos Islands",code:"TC",emoji:"🇹🇨",unicode:"U+1F1F9 U+1F1E8",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TC.svg"},{name:"Chad",code:"TD",emoji:"🇹🇩",unicode:"U+1F1F9 U+1F1E9",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TD.svg"},{name:"French Southern Territories",code:"TF",emoji:"🇹🇫",unicode:"U+1F1F9 U+1F1EB",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TF.svg"},{name:"Togo",code:"TG",emoji:"🇹🇬",unicode:"U+1F1F9 U+1F1EC",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TG.svg"},{name:"Thailand",code:"TH",emoji:"🇹🇭",unicode:"U+1F1F9 U+1F1ED",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TH.svg"},{name:"Tajikistan",code:"TJ",emoji:"🇹🇯",unicode:"U+1F1F9 U+1F1EF",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TJ.svg"},{name:"Tokelau",code:"TK",emoji:"🇹🇰",unicode:"U+1F1F9 U+1F1F0",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TK.svg"},{name:"Timor-Leste",code:"TL",emoji:"🇹🇱",unicode:"U+1F1F9 U+1F1F1",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TL.svg"},{name:"Turkmenistan",code:"TM",emoji:"🇹🇲",unicode:"U+1F1F9 U+1F1F2",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TM.svg"},{name:"Tunisia",code:"TN",emoji:"🇹🇳",unicode:"U+1F1F9 U+1F1F3",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TN.svg"},{name:"Tonga",code:"TO",emoji:"🇹🇴",unicode:"U+1F1F9 U+1F1F4",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TO.svg"},{name:"Turkey",code:"TR",emoji:"🇹🇷",unicode:"U+1F1F9 U+1F1F7",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TR.svg"},{name:"Trinidad & Tobago",code:"TT",emoji:"🇹🇹",unicode:"U+1F1F9 U+1F1F9",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TT.svg"},{name:"Tuvalu",code:"TV",emoji:"🇹🇻",unicode:"U+1F1F9 U+1F1FB",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TV.svg"},{name:"Taiwan",code:"TW",emoji:"🇹🇼",unicode:"U+1F1F9 U+1F1FC",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TW.svg"},{name:"Tanzania",code:"TZ",emoji:"🇹🇿",unicode:"U+1F1F9 U+1F1FF",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TZ.svg"},{name:"Ukraine",code:"UA",emoji:"🇺🇦",unicode:"U+1F1FA U+1F1E6",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/UA.svg"},{name:"Uganda",code:"UG",emoji:"🇺🇬",unicode:"U+1F1FA U+1F1EC",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/UG.svg"},{name:"U.S. Outlying Islands",code:"UM",emoji:"🇺🇲",unicode:"U+1F1FA U+1F1F2",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/UM.svg"},{name:"United Nations",code:"UN",emoji:"🇺🇳",unicode:"U+1F1FA U+1F1F3",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/UN.svg"},{name:"United States",code:"US",emoji:"🇺🇸",unicode:"U+1F1FA U+1F1F8",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/US.svg"},{name:"Uruguay",code:"UY",emoji:"🇺🇾",unicode:"U+1F1FA U+1F1FE",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/UY.svg"},{name:"Uzbekistan",code:"UZ",emoji:"🇺🇿",unicode:"U+1F1FA U+1F1FF",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/UZ.svg"},{name:"Vatican City",code:"VA",emoji:"🇻🇦",unicode:"U+1F1FB U+1F1E6",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/VA.svg"},{name:"St. Vincent & Grenadines",code:"VC",emoji:"🇻🇨",unicode:"U+1F1FB U+1F1E8",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/VC.svg"},{name:"Venezuela",code:"VE",emoji:"🇻🇪",unicode:"U+1F1FB U+1F1EA",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/VE.svg"},{name:"British Virgin Islands",code:"VG",emoji:"🇻🇬",unicode:"U+1F1FB U+1F1EC",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/VG.svg"},{name:"U.S. Virgin Islands",code:"VI",emoji:"🇻🇮",unicode:"U+1F1FB U+1F1EE",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/VI.svg"},{name:"Vietnam",code:"VN",emoji:"🇻🇳",unicode:"U+1F1FB U+1F1F3",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/VN.svg"},{name:"Vanuatu",code:"VU",emoji:"🇻🇺",unicode:"U+1F1FB U+1F1FA",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/VU.svg"},{name:"Wallis & Futuna",code:"WF",emoji:"🇼🇫",unicode:"U+1F1FC U+1F1EB",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/WF.svg"},{name:"Samoa",code:"WS",emoji:"🇼🇸",unicode:"U+1F1FC U+1F1F8",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/WS.svg"},{name:"Kosovo",code:"XK",emoji:"🇽🇰",unicode:"U+1F1FD U+1F1F0",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/XK.svg"},{name:"Yemen",code:"YE",emoji:"🇾🇪",unicode:"U+1F1FE U+1F1EA",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/YE.svg"},{name:"Mayotte",code:"YT",emoji:"🇾🇹",unicode:"U+1F1FE U+1F1F9",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/YT.svg"},{name:"South Africa",code:"ZA",emoji:"🇿🇦",unicode:"U+1F1FF U+1F1E6",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/ZA.svg"},{name:"Zambia",code:"ZM",emoji:"🇿🇲",unicode:"U+1F1FF U+1F1F2",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/ZM.svg"},{name:"Zimbabwe",code:"ZW",emoji:"🇿🇼",unicode:"U+1F1FF U+1F1FC",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/ZW.svg"},{name:"England",code:"ENGLAND",emoji:"🏴󠁧󠁢󠁥󠁮󠁧󠁿",unicode:"U+1F3F4 U+E0067 U+E0062 U+E0065 U+E006E U+E0067 U+E007F",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/ENGLAND.svg"},{name:"Scotland",code:"SCOTLAND",emoji:"🏴󠁧󠁢󠁳󠁣󠁴󠁿",unicode:"U+1F3F4 U+E0067 U+E0062 U+E0073 U+E0063 U+E0074 U+E007F",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SCOTLAND.svg"},{name:"Wales",code:"WALES",emoji:"🏴󠁧󠁢󠁷󠁬󠁳󠁿",unicode:"U+1F3F4 U+E0067 U+E0062 U+E0077 U+E006C U+E0073 U+E007F",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/WALES.svg"}],bT={isPostField:!0,isValid:0,uuid:et(),componentType:"country",isFluid:!0,...ki,...Hi,...Oc,label:{english:"Countries"},fieldType:{element:"country",type:"country"},countries:[...YY],attributes:{...Yi}},KY={isPostField:!0,isValid:0,isIcon:!0,isTodayBtn:!1,noOfMonths:1,dateRange:"single",calenderView:"date",dateFormat:"D dd M yy",minDate:"",maxDate:"",componentType:"date-picker",fieldType:{element:"date-picker"},uuid:et(),isFluid:!0,...ki,...Hi,...Oc,label:{english:"Date Field Label"},data:[{uuid:et(),dataKey:"",value:""}],attributes:{...Yi}},yT={isPostField:!1,uuid:et(),componentType:"document",showHeaderText:!1,showHelperText:!1,showToolTip:!1,showLabel:!0,isValid:0,title:{english:"Course resources"},document_id:null,document_url:null,documents:[]},XY={isPostField:!0,isValid:0,uuid:et(),isFluid:!0,componentType:"dynamic-listing",...ki,...Hi,isDynamicListingTabEnabled:!0,isLayoutTabEnabled:!1,label:{english:"Dynamic Radio"},optionLabel:"label",optionValue:"value",fieldType:{element:"dynamic-listing",type:"radio"},options:[],dynamicOtions:[],dataSourceType:"custom",dataSource:null,customColumnsForOptions:[],attributes:{...Yi}},RY={isPostField:!0,uuid:et(),timeLimit:3,score:1,componentType:"question",answerInputType:"radio",sequenceType:"order",isFluid:!0,isAllowMultipleAnswer:!1,noOfMultpleAnswer:2,correctAnswerComment:{english:""},questionText:{english:"Sample Question"},...ki,fieldType:{element:"question",type:"question"},subject_id:null,course_category_id:null,created_by_id:null,date_created:null,customColumnsForOptions:[],conditionalOptions:{enableConditional:!1,inline:{logic:{trigger:{selectedOptionIndexes:[0,2,3,4],actions:{showInlineColumns:!0,showSelectedSections:[],showSelectedPages:[]}}},columns:[{fields:[]}]}},answerOptions:[{uuid:et(),answersText:{english:"Hot and humid"},isAnswer:""},{uuid:et(),answersText:{english:"Cold and wet"},isAnswer:""}],attributes:{required:!0,readOnly:!1,disabled:!1}},GY={isPostField:!0,isValid:0,uuid:et(),isFluid:!0,componentType:"facebook-login",...ki,...Hi,fieldType:{element:"login",type:"social-login"},data:[{uuid:et(),dataKey:"",value:""}],attributes:{...Yi,minLength:0,maxLength:50}},WY={...ki,...Hi,isPostField:!0,isValid:0,componentType:"file-upload",fieldType:{element:"file-upload"},label:{english:"File Upload"},uuid:et(),attributes:{...Yi},uploadedFiles:[]},QY={isPostField:!1,uuid:et(),componentType:"grid-component",isFluid:!0,options:[],data:[{uuid:et(),dataKey:"",value:""}],customColumnsForOptions:[{customKey:"Column 1",uuid:et()}],children:[],...ki,...Hi,label:{english:"Grid Component"},fieldType:{element:"grid-component",type:"grid-component"},attributes:{...Yi}},AT={isPostField:!1,componentType:"heading",headingType:"h1",fieldType:{element:"heading"},uuid:et(),text:{english:"Heading text"},hrefLink:{english:""},style:"",color:"",openInNewTab:!1,underLined:!1,bold:!1},JY={isPostField:!0,isValid:0,uuid:et(),componentType:"hidden-field",isFluid:!0,isLayoutTabEnabled:!1,defaultValue:{english:""},fieldType:{element:"hidden-field",type:"hidden-field"},attributes:{...Yi,required:!1}},wT={isPostField:!1,uuid:et(),componentType:"hr",fieldType:{element:"hr",type:"hr"}},ST={isPostField:!1,componentType:"href",fieldType:{element:"href"},uuid:et(),text:{english:"Hyper link text"},hrefLink:{english:""},style:"",color:null,fontSize:18,openInNewTab:!1,underLined:!1,bold:!1},ZY={isPostField:!0,isValid:0,uuid:et(),componentType:"editor",boldOption:!0,sizeOption:!0,italicOption:!0,underlineOption:!0,listOption:!0,alignOption:!0,colorOption:!0,fontOption:!0,...ki,...Hi,fieldType:{element:"textHtmlEditor"},label:{english:"Html Editor Label"},data:[{uuid:et(),dataKey:"",value:""}],attributes:{required:!0,readOnly:!1,hidden:!1,disabled:!1}},xT={isPostField:!1,uuid:et(),componentType:"image-gallery",isValid:0,...ki,fieldType:{element:"image-gallery",type:"image-gallery"},data:[{uuid:null,dataKey:"",value:""}],isLayoutTabEnabled:!1,isValidationTabEnabled:!1,documents:[],attributes:{...Yi,minLength:null,maxLength:null}},v9={isPostField:!1,isValid:0,isExternalSource:!1,media_file_id:null,uuid:et(),componentType:"image",showHeaderText:!1,showHelperText:!1,showToolTip:!1,showLabel:!0,isLayoutTabEnabled:!1,title:{english:"Course image"},media_url:{english:""}},eK={isPostField:!0,isValid:0,uuid:et(),componentType:"email",isFluid:!0,...ki,...Hi,...Oc,fieldType:{element:"input",type:"email"},data:[{uuid:et(),dataKey:"",value:""}],label:{english:"Email Field Label"},attributes:{...Yi}},tK={isPostField:!0,isValid:0,uuid:et(),isFluid:!0,componentType:"number",...ki,...Hi,...Oc,fieldType:{element:"input",type:"number"},label:{english:"Number Field Label"},data:[{uuid:et(),dataKey:"",value:""}],enableCurrency:!1,attributes:{...Yi,mode:"decimal",currency:"USD",currencyDisplay:"code",useGrouping:!1,minFractionDigits:0,maxFractionDigits:5,min:null,max:null,locale:"en-US",suffix:"",prefix:"",showButtons:!1,decrementButtonClassName:"p-button-danger",incrementButtonClassName:"p-button-success",incrementButtonIcon:"pi pi-plus",decrementButtonIcon:"pi pi-minus"}},nK={isPostField:!0,isValid:0,uuid:et(),isFluid:!0,componentType:"text",...ki,...Hi,...Oc,fieldType:{element:"input",type:"text"},data:[{uuid:et(),dataKey:"",value:""}],attributes:{...Yi,minLength:0,maxLength:50}},CT={isPostField:!0,isValid:0,uuid:et(),componentType:"likert-emoji-scale",isFluid:!0,...ki,...Hi,label:{english:"Likert Emoji Scale"},fieldType:{element:"likert-emoji-scale",type:"likert-emoji-scale"},attributes:{...Yi}},TT={isPostField:!0,isValid:0,uuid:et(),componentType:"likert-scale",isFluid:!0,...ki,...Hi,label:{english:"Likert Scale"},startingMessage:{english:"Very Bad"},endingMessage:{english:"Very Good"},fieldType:{element:"likert-scale",type:"likert-scale"},attributes:{...Yi}},rK={isPostField:!0,uuid:et(),componentType:"matrix-dropdown",isFluid:!0,options:[],customColumns:[{customKey:"Column 1",uuid:et(),options:[]}],data:[{uuid:et(),dataKey:"",value:""}],rows:[{rowHeading:"Row",optionValue:null,uuid:et()}],...ki,...Hi,label:{english:"Matrix Dropdown"},fieldType:{element:"matrix-dropdown",type:"matrix-dropdown"},attributes:{...Yi}};({uuid:et(),customColumnsForOptions:et(),data:et(),...ki,...Hi,attributes:{...Yi}});const ET={isPostField:!0,isValid:0,uuid:et(),componentType:"multi-select",...ki,...Hi,...Oc,fieldType:{element:"multi-select",type:"multi-select"},label:{english:"Multi Select Label"},options:[{uuid:et(),optionText:{english:"option 1"},value:"option 1",abbreviationText:{english:""},custom_values:{}},{uuid:et(),optionText:{english:"option 2"},value:"option 2",abbreviationText:{english:""},custom_values:{}},{uuid:et(),optionText:{english:"option 3"},value:"option 3",abbreviationText:{english:""},custom_values:{}},{uuid:et(),optionText:{english:"option 4"},value:"option 4",abbreviationText:{english:""},custom_values:{}}],inlineConditionalRules:{rules:[]},conditionalTabRules:{rules:[{conditions:[]}]},conditionalSectionRules:{rules:[{conditions:[]}]},customColumnsForOptions:[],data:[{uuid:et(),dataKey:"",value:""}],attributes:{...Yi}},IT={isPostField:!1,componentType:"paragraph",fieldType:{element:"paragraph"},uuid:et(),text:{english:"Paragraph Text"},hrefLink:"",style:"",color:"",openInNewTab:!1,underLined:!1,bold:!1},iK={isPostField:!0,isValid:0,uuid:et(),componentType:"phone",isFluid:!0,...ki,...Hi,...Oc,fieldType:{element:"phone",type:"phone"},label:{english:"Phone Number"},attributes:{...Yi}},aK={isPostField:!0,uuid:et(),componentType:"quiz",showHeaderText:!1,showHelperText:!1,showToolTip:!1,showLabel:!0,isValid:0,assessment_id:null},_T={isPostField:!0,isValid:0,uuid:et(),isFluid:!0,componentType:"radio",...ki,...Hi,label:{english:"Radio label"},fieldType:{element:"radio",type:"radio"},options:[],customColumnsForOptions:[],inlineConditionalRules:{rules:[]},conditionalTabRules:{rules:[{conditions:[]}]},conditionalSectionRules:{rules:[{conditions:[]}]},data:[{uuid:et(),dataKey:"",value:""}],attributes:{...Yi}},sK={isPostField:!0,isValid:0,uuid:et(),isFluid:!0,componentType:"radio-hierarchal",...ki,...Hi,isHierarchalCondionalTabEnabled:!0,label:{english:"Hierarchal Radio"},fieldType:{element:"radio-hierarchal",type:"radio-hierarchal"},options:[],customColumnsForOptions:[],attributes:{...Yi}},DT={isPostField:!0,isValid:0,uuid:et(),componentType:"rating",isFluid:!0,...ki,...Hi,isLayoutTabEnabled:!1,attributes:{...Yi},label:{english:"Rate"},fieldType:{element:"rating",type:"rating"}},NT={isPostField:!0,isValid:0,uuid:et(),componentType:"select",isFluid:!0,...ki,...Hi,...Oc,fieldType:{element:"select",type:"select"},label:{english:"Dropdown"},options:[],inlineConditionalRules:{rules:[]},conditionalTabRules:{rules:[{conditions:[]}]},conditionalSectionRules:{rules:[{conditions:[]}]},customColumnsForOptions:[],data:[{uuid:et(),dataKey:"",value:""}],attributes:{...Yi}},OT={isPostField:!0,componentType:"signature",fieldType:{element:"signature"},uuid:et(),clearSignatureButtonLabel:{english:"Clear Signature"},penColor:"000",canvasWidth:"300",canvasHeight:"200",backgroundColor:{r:209,g:209,b:209},isValid:0,...ki,...Hi,label:{english:"Draw Signature"},attributes:{...Yi}},FT={isPostField:!0,isValid:0,uuid:et(),componentType:"slider",isFluid:!0,...ki,...Hi,isLayoutTabEnabled:!1,label:{english:"Slider"},fieldType:{element:"slider",type:"slider"},attributes:{...Yi}},oK={isPostField:!0,uuid:et(),componentType:"table",isFluid:!0,options:[],customColumns:[{customKey:"Column 1",uuid:et(),options:[]}],data:[{uuid:et(),dataKey:"",value:""}],rows:[{rowHeading:"Row",optionValue:null,uuid:et()}],allFields:{},...ki,...Hi,label:{english:"Table"},fieldType:{element:"table",type:"table"},attributes:{...Yi}},lK={isPostField:!0,isValid:0,uuid:et(),componentType:"textarea",isFluid:!0,textareaCols:3,textareaRows:2,resizable:!0,...ki,...Hi,fieldType:{element:"textArea"},label:{english:"Text Field Label"},data:[{uuid:et(),dataKey:"",value:""}],attributes:{...Yi,minRows:5,maxRows:10}},kT={isPostField:!0,isValid:0,uuid:et(),componentType:"thumbs",isFluid:!0,...ki,label:{english:"Thumbs"},fieldType:{element:"thumbs",type:"thumbs"},attributes:{...Yi},...Hi},cK={isPostField:!0,isValid:0,componentType:"type-signature",fieldType:{element:"type-signature"},uuid:et(),clearSignatureButtonLabel:{english:"Clear Signature"},fontStyle:{name:"Yellowtail",font:"yellowtail"},fontSize:30,...ki,...Oc,...Hi,label:{english:"Type Signature"},attributes:{...Yi}},uK={isPostField:!1,componentType:"list",fieldType:{element:"list"},uuid:et(),options:[],style:"",color:null,fontSize:null,underLined:!1,bold:!1},b9={isPostField:!1,isExternalSource:!1,media_file_id:null,uuid:et(),componentType:"video",showHeaderText:!1,showHelperText:!1,showToolTip:!1,showLabel:!0,title:{english:""},videoDuration:"",isValid:0,media_url:{english:""}},dK={isPostField:!0,isValid:0,uuid:et(),componentType:"web-url",isFluid:!0,...ki,...Hi,...Oc,label:{english:"Website Url"},fieldType:{element:"web-url",type:"web-url"},attributes:{...Yi}},fK=[{label:"New Quiz",icon:"pi pi-fw pi-file",expanded:!0,items:[{label:"New Q & A",icon:"pi pi-fw pi-trash",element:"question",schema:RY,uuid:et(),type:Rn}]}],hK=[{label:"HTML",icon:"pi pi-fw pi-file",expanded:!0,items:[{label:"<a>",icon:"pi pi-fw pi-plus",element:"a",schema:ST,uuid:et(),type:Rn},{label:"<p>",icon:"pi pi-fw pi-trash",element:"paragraph",schema:IT,uuid:et(),type:Rn},{label:"Table",icon:"pi pi-fw pi-external-link",element:"table",schema:oK,uuid:et(),type:Rn},{label:"<heading>",icon:"pi pi-fw pi-external-link",element:"h",schema:AT,uuid:et(),type:Rn},{label:"divider",icon:"pi pi-fw pi-external-link",element:"hr",schema:wT,uuid:et(),type:Rn},{label:"Signature",icon:"pi pi-fw pi-trash",element:"signature",schema:OT,uuid:et(),type:Rn},{label:"Image",icon:"pi pi-fw pi-user-plus",element:"image",schema:v9,uuid:et(),type:Rn},{label:"Image Gallery",icon:"pi pi-fw pi-user-plus",element:"image-gallery",schema:xT,uuid:et(),type:Rn},{label:"Video",icon:"pi pi-fw pi-user-minus",element:"video",schema:b9,uuid:et(),type:Rn}]}];function pK(t){if(Array.isArray(t))return t}function gK(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 y9(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function PT(t,e){if(t){if(typeof t=="string")return y9(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)?y9(t,e):void 0}}function mK(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
27
+ }`;var ni=MY(function(){return xe(qe,or+"return "+vn).apply(n,Je)});if(ni.source=vn,CC(ni))throw ni;return ni}function dFe(p){return ta(p).toLowerCase()}function fFe(p){return ta(p).toUpperCase()}function hFe(p,y,N){if(p=ta(p),p&&(N||y===n))return Zn(p);if(!p||!(y=Wl(y)))return p;var G=Eo(p),we=Eo(y),qe=fi(G,we),Je=Ha(G,we)+1;return X0(G,qe,Je).join("")}function pFe(p,y,N){if(p=ta(p),p&&(N||y===n))return p.slice(0,bp(p)+1);if(!p||!(y=Wl(y)))return p;var G=Eo(p),we=Ha(G,Eo(y))+1;return X0(G,0,we).join("")}function gFe(p,y,N){if(p=ta(p),p&&(N||y===n))return p.replace(Gn,"");if(!p||!(y=Wl(y)))return p;var G=Eo(p),we=fi(G,Eo(y));return X0(G,we).join("")}function mFe(p,y){var N=L,G=V;if(Qa(y)){var we="separator"in y?y.separator:we;N="length"in y?Jr(y.length):N,G="omission"in y?Wl(y.omission):G}p=ta(p);var qe=p.length;if(Cc(p)){var Je=Eo(p);qe=Je.length}if(N>=qe)return p;var st=N-eo(G);if(st<1)return G;var St=Je?X0(Je,0,st).join(""):p.slice(0,st);if(we===n)return St+G;if(Je&&(st+=St.length-st),TC(we)){if(p.slice(st).search(we)){var an,cn=St;for(we.global||(we=Tt(we.source,ta(Mt.exec(we))+"g")),we.lastIndex=0;an=we.exec(cn);)var vn=an.index;St=St.slice(0,vn===n?st:vn)}}else if(p.indexOf(Wl(we),st)!=st){var Ln=St.lastIndexOf(we);Ln>-1&&(St=St.slice(0,Ln))}return St+G}function vFe(p){return p=ta(p),p&&En.test(p)?p.replace(dn,Sm):p}var bFe=Ep(function(p,y,N){return p+(N?" ":"")+y.toUpperCase()}),_C=LH("toUpperCase");function PY(p,y,N){return p=ta(p),y=N?n:y,y===n?Gu(p)?Cm(p):zd(p):p.match(y)||[]}var MY=li(function(p,y){try{return Ci(p,n,y)}catch(N){return CC(N)?N:new X(N)}}),yFe=Gd(function(p,y){return ga(y,function(N){N=id(N),Xd(p,N,SC(p[N],p))}),p});function AFe(p){var y=p==null?0:p.length,N=xr();return p=y?Fi(p,function(G){if(typeof G[1]!="function")throw new Xt(s);return[N(G[0]),G[1]]}):[],li(function(G){for(var we=-1;++we<y;){var qe=p[we];if(Ci(qe[0],this,G))return Ci(qe[1],this,G)}})}function wFe(p){return KIe(Ic(p,f))}function DC(p){return function(){return p}}function SFe(p,y){return p==null||p!==p?y:p}var xFe=VH(),CFe=VH(!0);function Cl(p){return p}function NC(p){return pH(typeof p=="function"?p:Ic(p,f))}function TFe(p){return mH(Ic(p,f))}function EFe(p,y){return vH(p,Ic(y,f))}var IFe=li(function(p,y){return function(N){return Nm(N,p,y)}}),_Fe=li(function(p,y){return function(N){return Nm(p,N,y)}});function OC(p,y,N){var G=Hs(y),we=X6(y,G);N==null&&!(Qa(y)&&(we.length||!G.length))&&(N=y,y=p,p=this,we=X6(y,Hs(y)));var qe=!(Qa(N)&&"chain"in N)||!!N.chain,Je=Qd(p);return ga(we,function(st){var St=y[st];p[st]=St,Je&&(p.prototype[st]=function(){var an=this.__chain__;if(qe||an){var cn=p(this.__wrapped__),vn=cn.__actions__=wl(this.__actions__);return vn.push({func:St,args:arguments,thisArg:p}),cn.__chain__=an,cn}return St.apply(p,Zs([this.value()],arguments))})}),p}function DFe(){return Vr._===this&&(Vr._=Io),this}function FC(){}function NFe(p){return p=Jr(p),li(function(y){return bH(y,p)})}var OFe=cC(Fi),FFe=cC(jd),kFe=cC(zl);function LY(p){return mC(p)?vt(id(p)):c_e(p)}function PFe(p){return function(y){return p==null?n:uf(p,y)}}var MFe=qH(),LFe=qH(!0);function kC(){return[]}function PC(){return!1}function BFe(){return{}}function VFe(){return""}function UFe(){return!0}function qFe(p,y){if(p=Jr(p),p<1||p>Q)return[];var N=he,G=zs(p,he);y=xr(y),p-=he;for(var we=xn(G,y);++N<p;)y(N);return we}function $Fe(p){return jr(p)?Fi(p,id):Ql(p)?[p]:wl(nY(ta(p)))}function jFe(p){var y=++Ga;return ta(p)+y}var zFe=Z6(function(p,y){return p+y},0),HFe=uC("ceil"),YFe=Z6(function(p,y){return p/y},1),KFe=uC("floor");function XFe(p){return p&&p.length?K6(p,Cl,Gx):n}function RFe(p,y){return p&&p.length?K6(p,xr(y,2),Gx):n}function GFe(p){return Re(p,Cl)}function WFe(p,y){return Re(p,xr(y,2))}function QFe(p){return p&&p.length?K6(p,Cl,Zx):n}function JFe(p,y){return p&&p.length?K6(p,xr(y,2),Zx):n}var ZFe=Z6(function(p,y){return p*y},1),eke=uC("round"),tke=Z6(function(p,y){return p-y},0);function nke(p){return p&&p.length?fn(p,Cl):0}function rke(p,y){return p&&p.length?fn(p,xr(y,2)):0}return ke.after=TNe,ke.ary=hY,ke.assign=fOe,ke.assignIn=IY,ke.assignInWith=f9,ke.assignWith=hOe,ke.at=pOe,ke.before=pY,ke.bind=SC,ke.bindAll=yFe,ke.bindKey=gY,ke.castArray=BNe,ke.chain=uY,ke.chunk=K_e,ke.compact=X_e,ke.concat=R_e,ke.cond=AFe,ke.conforms=wFe,ke.constant=DC,ke.countBy=nNe,ke.create=gOe,ke.curry=mY,ke.curryRight=vY,ke.debounce=bY,ke.defaults=mOe,ke.defaultsDeep=vOe,ke.defer=ENe,ke.delay=INe,ke.difference=G_e,ke.differenceBy=W_e,ke.differenceWith=Q_e,ke.drop=J_e,ke.dropRight=Z_e,ke.dropRightWhile=eDe,ke.dropWhile=tDe,ke.fill=nDe,ke.filter=iNe,ke.flatMap=oNe,ke.flatMapDeep=lNe,ke.flatMapDepth=cNe,ke.flatten=sY,ke.flattenDeep=rDe,ke.flattenDepth=iDe,ke.flip=_Ne,ke.flow=xFe,ke.flowRight=CFe,ke.fromPairs=aDe,ke.functions=COe,ke.functionsIn=TOe,ke.groupBy=uNe,ke.initial=oDe,ke.intersection=lDe,ke.intersectionBy=cDe,ke.intersectionWith=uDe,ke.invert=IOe,ke.invertBy=_Oe,ke.invokeMap=fNe,ke.iteratee=NC,ke.keyBy=hNe,ke.keys=Hs,ke.keysIn=xl,ke.map=s9,ke.mapKeys=NOe,ke.mapValues=OOe,ke.matches=TFe,ke.matchesProperty=EFe,ke.memoize=l9,ke.merge=FOe,ke.mergeWith=_Y,ke.method=IFe,ke.methodOf=_Fe,ke.mixin=OC,ke.negate=c9,ke.nthArg=NFe,ke.omit=kOe,ke.omitBy=POe,ke.once=DNe,ke.orderBy=pNe,ke.over=OFe,ke.overArgs=NNe,ke.overEvery=FFe,ke.overSome=kFe,ke.partial=xC,ke.partialRight=yY,ke.partition=gNe,ke.pick=MOe,ke.pickBy=DY,ke.property=LY,ke.propertyOf=PFe,ke.pull=pDe,ke.pullAll=lY,ke.pullAllBy=gDe,ke.pullAllWith=mDe,ke.pullAt=vDe,ke.range=MFe,ke.rangeRight=LFe,ke.rearg=ONe,ke.reject=bNe,ke.remove=bDe,ke.rest=FNe,ke.reverse=AC,ke.sampleSize=ANe,ke.set=BOe,ke.setWith=VOe,ke.shuffle=wNe,ke.slice=yDe,ke.sortBy=CNe,ke.sortedUniq=EDe,ke.sortedUniqBy=IDe,ke.split=oFe,ke.spread=kNe,ke.tail=_De,ke.take=DDe,ke.takeRight=NDe,ke.takeRightWhile=ODe,ke.takeWhile=FDe,ke.tap=XDe,ke.throttle=PNe,ke.thru=a9,ke.toArray=CY,ke.toPairs=NY,ke.toPairsIn=OY,ke.toPath=$Fe,ke.toPlainObject=EY,ke.transform=UOe,ke.unary=MNe,ke.union=kDe,ke.unionBy=PDe,ke.unionWith=MDe,ke.uniq=LDe,ke.uniqBy=BDe,ke.uniqWith=VDe,ke.unset=qOe,ke.unzip=wC,ke.unzipWith=cY,ke.update=$Oe,ke.updateWith=jOe,ke.values=Dp,ke.valuesIn=zOe,ke.without=UDe,ke.words=PY,ke.wrap=LNe,ke.xor=qDe,ke.xorBy=$De,ke.xorWith=jDe,ke.zip=zDe,ke.zipObject=HDe,ke.zipObjectDeep=YDe,ke.zipWith=KDe,ke.entries=NY,ke.entriesIn=OY,ke.extend=IY,ke.extendWith=f9,OC(ke,ke),ke.add=zFe,ke.attempt=MY,ke.camelCase=XOe,ke.capitalize=FY,ke.ceil=HFe,ke.clamp=HOe,ke.clone=VNe,ke.cloneDeep=qNe,ke.cloneDeepWith=$Ne,ke.cloneWith=UNe,ke.conformsTo=jNe,ke.deburr=kY,ke.defaultTo=SFe,ke.divide=YFe,ke.endsWith=ROe,ke.eq=du,ke.escape=GOe,ke.escapeRegExp=WOe,ke.every=rNe,ke.find=aNe,ke.findIndex=iY,ke.findKey=bOe,ke.findLast=sNe,ke.findLastIndex=aY,ke.findLastKey=yOe,ke.floor=KFe,ke.forEach=dY,ke.forEachRight=fY,ke.forIn=AOe,ke.forInRight=wOe,ke.forOwn=SOe,ke.forOwnRight=xOe,ke.get=EC,ke.gt=zNe,ke.gte=HNe,ke.has=EOe,ke.hasIn=IC,ke.head=oY,ke.identity=Cl,ke.includes=dNe,ke.indexOf=sDe,ke.inRange=YOe,ke.invoke=DOe,ke.isArguments=hf,ke.isArray=jr,ke.isArrayBuffer=YNe,ke.isArrayLike=Sl,ke.isArrayLikeObject=ps,ke.isBoolean=KNe,ke.isBuffer=R0,ke.isDate=XNe,ke.isElement=RNe,ke.isEmpty=GNe,ke.isEqual=WNe,ke.isEqualWith=QNe,ke.isError=CC,ke.isFinite=JNe,ke.isFunction=Qd,ke.isInteger=AY,ke.isLength=u9,ke.isMap=wY,ke.isMatch=ZNe,ke.isMatchWith=eOe,ke.isNaN=tOe,ke.isNative=nOe,ke.isNil=iOe,ke.isNull=rOe,ke.isNumber=SY,ke.isObject=Qa,ke.isObjectLike=ns,ke.isPlainObject=Lm,ke.isRegExp=TC,ke.isSafeInteger=aOe,ke.isSet=xY,ke.isString=d9,ke.isSymbol=Ql,ke.isTypedArray=_p,ke.isUndefined=sOe,ke.isWeakMap=oOe,ke.isWeakSet=lOe,ke.join=dDe,ke.kebabCase=QOe,ke.last=Dc,ke.lastIndexOf=fDe,ke.lowerCase=JOe,ke.lowerFirst=ZOe,ke.lt=cOe,ke.lte=uOe,ke.max=XFe,ke.maxBy=RFe,ke.mean=GFe,ke.meanBy=WFe,ke.min=QFe,ke.minBy=JFe,ke.stubArray=kC,ke.stubFalse=PC,ke.stubObject=BFe,ke.stubString=VFe,ke.stubTrue=UFe,ke.multiply=ZFe,ke.nth=hDe,ke.noConflict=DFe,ke.noop=FC,ke.now=o9,ke.pad=eFe,ke.padEnd=tFe,ke.padStart=nFe,ke.parseInt=rFe,ke.random=KOe,ke.reduce=mNe,ke.reduceRight=vNe,ke.repeat=iFe,ke.replace=aFe,ke.result=LOe,ke.round=eke,ke.runInContext=gt,ke.sample=yNe,ke.size=SNe,ke.snakeCase=sFe,ke.some=xNe,ke.sortedIndex=ADe,ke.sortedIndexBy=wDe,ke.sortedIndexOf=SDe,ke.sortedLastIndex=xDe,ke.sortedLastIndexBy=CDe,ke.sortedLastIndexOf=TDe,ke.startCase=lFe,ke.startsWith=cFe,ke.subtract=tke,ke.sum=nke,ke.sumBy=rke,ke.template=uFe,ke.times=qFe,ke.toFinite=Jd,ke.toInteger=Jr,ke.toLength=TY,ke.toLower=dFe,ke.toNumber=Nc,ke.toSafeInteger=dOe,ke.toString=ta,ke.toUpper=fFe,ke.trim=hFe,ke.trimEnd=pFe,ke.trimStart=gFe,ke.truncate=mFe,ke.unescape=vFe,ke.uniqueId=jFe,ke.upperCase=bFe,ke.upperFirst=_C,ke.each=dY,ke.eachRight=fY,ke.first=oY,OC(ke,function(){var p={};return nd(ke,function(y,N){Sr.call(ke.prototype,N)||(p[N]=y)}),p}(),{chain:!1}),ke.VERSION=r,ga(["bind","bindKey","curry","curryRight","partial","partialRight"],function(p){ke[p].placeholder=ke}),ga(["drop","take"],function(p,y){hi.prototype[p]=function(N){N=N===n?1:fs(Jr(N),0);var G=this.__filtered__&&!y?new hi(this):this.clone();return G.__filtered__?G.__takeCount__=zs(N,G.__takeCount__):G.__views__.push({size:zs(N,he),type:p+(G.__dir__<0?"Right":"")}),G},hi.prototype[p+"Right"]=function(N){return this.reverse()[p](N).reverse()}}),ga(["filter","map","takeWhile"],function(p,y){var N=y+1,G=N==q||N==ge;hi.prototype[p]=function(we){var qe=this.clone();return qe.__iteratees__.push({iteratee:xr(we,3),type:N}),qe.__filtered__=qe.__filtered__||G,qe}}),ga(["head","last"],function(p,y){var N="take"+(y?"Right":"");hi.prototype[p]=function(){return this[N](1).value()[0]}}),ga(["initial","tail"],function(p,y){var N="drop"+(y?"":"Right");hi.prototype[p]=function(){return this.__filtered__?new hi(this):this[N](1)}}),hi.prototype.compact=function(){return this.filter(Cl)},hi.prototype.find=function(p){return this.filter(p).head()},hi.prototype.findLast=function(p){return this.reverse().find(p)},hi.prototype.invokeMap=li(function(p,y){return typeof p=="function"?new hi(this):this.map(function(N){return Nm(N,p,y)})}),hi.prototype.reject=function(p){return this.filter(c9(xr(p)))},hi.prototype.slice=function(p,y){p=Jr(p);var N=this;return N.__filtered__&&(p>0||y<0)?new hi(N):(p<0?N=N.takeRight(-p):p&&(N=N.drop(p)),y!==n&&(y=Jr(y),N=y<0?N.dropRight(-y):N.take(y-p)),N)},hi.prototype.takeRightWhile=function(p){return this.reverse().takeWhile(p).reverse()},hi.prototype.toArray=function(){return this.take(he)},nd(hi.prototype,function(p,y){var N=/^(?:filter|find|map|reject)|While$/.test(y),G=/^(?:head|last)$/.test(y),we=ke[G?"take"+(y=="last"?"Right":""):y],qe=G||/^find/.test(y);we&&(ke.prototype[y]=function(){var Je=this.__wrapped__,st=G?[1]:arguments,St=Je instanceof hi,an=st[0],cn=St||jr(Je),vn=function(bi){var Ti=we.apply(ke,Zs([bi],st));return G&&Ln?Ti[0]:Ti};cn&&N&&typeof an=="function"&&an.length!=1&&(St=cn=!1);var Ln=this.__chain__,or=!!this.__actions__.length,Er=qe&&!Ln,ni=St&&!or;if(!qe&&cn){Je=ni?Je:new hi(this);var Ir=p.apply(Je,st);return Ir.__actions__.push({func:a9,args:[vn],thisArg:n}),new yl(Ir,Ln)}return Er&&ni?p.apply(this,st):(Ir=this.thru(vn),Er?G?Ir.value()[0]:Ir.value():Ir)})}),ga(["pop","push","shift","sort","splice","unshift"],function(p){var y=Yn[p],N=/^(?:push|sort|unshift)$/.test(p)?"tap":"thru",G=/^(?:pop|shift)$/.test(p);ke.prototype[p]=function(){var we=arguments;if(G&&!this.__chain__){var qe=this.value();return y.apply(jr(qe)?qe:[],we)}return this[N](function(Je){return y.apply(jr(Je)?Je:[],we)})}}),nd(hi.prototype,function(p,y){var N=ke[y];if(N){var G=N.name+"";Sr.call(ed,G)||(ed[G]=[]),ed[G].push({name:y,func:N})}}),ed[J6(n,w).name]=[{name:"wrapper",func:n}],hi.prototype.clone=jx,hi.prototype.reverse=zx,hi.prototype.value=Hx,ke.prototype.at=RDe,ke.prototype.chain=GDe,ke.prototype.commit=WDe,ke.prototype.next=QDe,ke.prototype.plant=ZDe,ke.prototype.reverse=eNe,ke.prototype.toJSON=ke.prototype.valueOf=ke.prototype.value=tNe,ke.prototype.first=ke.prototype.head,Do&&(ke.prototype[Do]=JDe),ke},Wu=Tm();ti?((ti.exports=Wu)._=Wu,$r._=Wu):Vr._=Wu}).call(Di)}(Vm,Vm.exports);var It=Vm.exports;const Um=ao(It);for(var W0=256,uT=[],dT=256,qm;W0--;)uT[W0]=(W0+256).toString(16).substring(1);function et(t){var e=0,n=11;if(!qm||W0+n>dT*2)for(qm="",W0=0;e<dT;e++)qm+=uT[Math.random()*256|0];return qm.substring(W0,W0+++n)}const Rn="SIDEBAR_ITEM",na="SECTION",Oo="ROW",ws="COLUMN",fT="PAGE",gf="COMPONENT",hT="CONDITIONAL_COMPONENT",zY="reusable_builder_section",Q0="form",mf="survey",$m="policies",g9="page",vf="pdf",Op="service",jm="training",t0="exam",ma=0,va=1,Ca=2,Ta=3,Ea=4,Oa=5,Zo=6,Fo=7,pT=5,gT=6,mT=7,tc=7,m9=1,Hi={isSortable:!1,isFilterable:!1,resizableColumns:!1,columnResizeMode:"fit",reorderableColumns:!1,colToggle:!1,freezeColumn:!1},ki={showHeaderText:!1,showHelperText:!1,showToolTip:!1,showLabel:!0,label:{english:"Field label"},abbreviationLabel:{english:""},helperText:{english:"Helper Text"},guidelines:{english:""},headerText:{english:"Header Text"},textTable:{english:""},toolTip:{english:""},validationMesssage:{english:"This field is required"},placeholder:{english:""},abbreviationLabelPlaceHolder:{english:"Abbreviation label"},helperTextPlaceHolder:{english:"Helper Text"},guidelinesPlaceHolder:{english:"Guidelines Text"},headerTextPlaceHolder:{english:"Header Text"},textTablePlaceHolder:{english:"Text for table"},toolTipPlaceHolder:{english:"Tool Tip"},validationMesssagePlaceHolder:{english:"This field is required"},placeholderPlaceHolder:{english:"Placeholder text"},isLayoutTabEnabled:!0,isValidationTabEnabled:!0,isDynamicListingTabEnabled:!1,isConditionalTabEnabled:!1,isHierarchalCondionalTabEnabled:!1};({uuid:et(),...Hi,...ki});const Yi={title:"",id:"",className:"",name:"",enumeration:"",style:"",required:!0,readOnly:!1,hidden:!1,disabled:!1,pattern:""},vT={isPostField:!0,isValid:0,uuid:et(),componentType:"checkbox",...ki,...Hi,fieldType:{element:"checkbox"},label:{english:"Checkbox label"},inlineConditionalRules:{rules:[]},conditionalTabRules:{rules:[{conditions:[]}]},conditionalSectionRules:{rules:[{conditions:[]}]},options:[],customColumnsForOptions:[],data:[{uuid:et(),dataKey:"",value:""}],attributes:{...Yi}},Oc={showIcon:!1,icon:"",iconAlignment:"left"},HY={isPostField:!0,uuid:et(),isValid:0,isFluid:!0,showBillingAddress:!1,componentType:"address",...ki,...Oc,...Hi,label:{english:"Home Address"},billingLabel:{english:"Secondary Address"},countryLabel:{english:"Country"},stateLabel:{english:"State"},cityLabel:{english:"City"},postalcodeLabel:{english:"Postcode"},addresslineFirstLabel:{english:"Address line 1"},addresslineSecondLabel:{english:"Address line 2"},fieldType:{element:"address",type:"address"},attributes:{...Yi}},YY=[{name:"Ascension Island",code:"AC",emoji:"🇦🇨",unicode:"U+1F1E6 U+1F1E8",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AC.svg"},{name:"Andorra",code:"AD",emoji:"🇦🇩",unicode:"U+1F1E6 U+1F1E9",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AD.svg"},{name:"United Arab Emirates",code:"AE",emoji:"🇦🇪",unicode:"U+1F1E6 U+1F1EA",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AE.svg"},{name:"Afghanistan",code:"AF",emoji:"🇦🇫",unicode:"U+1F1E6 U+1F1EB",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AF.svg"},{name:"Antigua & Barbuda",code:"AG",emoji:"🇦🇬",unicode:"U+1F1E6 U+1F1EC",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AG.svg"},{name:"Anguilla",code:"AI",emoji:"🇦🇮",unicode:"U+1F1E6 U+1F1EE",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AI.svg"},{name:"Albania",code:"AL",emoji:"🇦🇱",unicode:"U+1F1E6 U+1F1F1",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AL.svg"},{name:"Armenia",code:"AM",emoji:"🇦🇲",unicode:"U+1F1E6 U+1F1F2",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AM.svg"},{name:"Angola",code:"AO",emoji:"🇦🇴",unicode:"U+1F1E6 U+1F1F4",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AO.svg"},{name:"Antarctica",code:"AQ",emoji:"🇦🇶",unicode:"U+1F1E6 U+1F1F6",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AQ.svg"},{name:"Argentina",code:"AR",emoji:"🇦🇷",unicode:"U+1F1E6 U+1F1F7",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AR.svg"},{name:"American Samoa",code:"AS",emoji:"🇦🇸",unicode:"U+1F1E6 U+1F1F8",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AS.svg"},{name:"Austria",code:"AT",emoji:"🇦🇹",unicode:"U+1F1E6 U+1F1F9",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AT.svg"},{name:"Australia",code:"AU",emoji:"🇦🇺",unicode:"U+1F1E6 U+1F1FA",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AU.svg"},{name:"Aruba",code:"AW",emoji:"🇦🇼",unicode:"U+1F1E6 U+1F1FC",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AW.svg"},{name:"Åland Islands",code:"AX",emoji:"🇦🇽",unicode:"U+1F1E6 U+1F1FD",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AX.svg"},{name:"Azerbaijan",code:"AZ",emoji:"🇦🇿",unicode:"U+1F1E6 U+1F1FF",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/AZ.svg"},{name:"Bosnia & Herzegovina",code:"BA",emoji:"🇧🇦",unicode:"U+1F1E7 U+1F1E6",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BA.svg"},{name:"Barbados",code:"BB",emoji:"🇧🇧",unicode:"U+1F1E7 U+1F1E7",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BB.svg"},{name:"Bangladesh",code:"BD",emoji:"🇧🇩",unicode:"U+1F1E7 U+1F1E9",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BD.svg"},{name:"Belgium",code:"BE",emoji:"🇧🇪",unicode:"U+1F1E7 U+1F1EA",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BE.svg"},{name:"Burkina Faso",code:"BF",emoji:"🇧🇫",unicode:"U+1F1E7 U+1F1EB",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BF.svg"},{name:"Bulgaria",code:"BG",emoji:"🇧🇬",unicode:"U+1F1E7 U+1F1EC",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BG.svg"},{name:"Bahrain",code:"BH",emoji:"🇧🇭",unicode:"U+1F1E7 U+1F1ED",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BH.svg"},{name:"Burundi",code:"BI",emoji:"🇧🇮",unicode:"U+1F1E7 U+1F1EE",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BI.svg"},{name:"Benin",code:"BJ",emoji:"🇧🇯",unicode:"U+1F1E7 U+1F1EF",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BJ.svg"},{name:"St. Barthélemy",code:"BL",emoji:"🇧🇱",unicode:"U+1F1E7 U+1F1F1",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BL.svg"},{name:"Bermuda",code:"BM",emoji:"🇧🇲",unicode:"U+1F1E7 U+1F1F2",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BM.svg"},{name:"Brunei",code:"BN",emoji:"🇧🇳",unicode:"U+1F1E7 U+1F1F3",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BN.svg"},{name:"Bolivia",code:"BO",emoji:"🇧🇴",unicode:"U+1F1E7 U+1F1F4",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BO.svg"},{name:"Caribbean Netherlands",code:"BQ",emoji:"🇧🇶",unicode:"U+1F1E7 U+1F1F6",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BQ.svg"},{name:"Brazil",code:"BR",emoji:"🇧🇷",unicode:"U+1F1E7 U+1F1F7",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BR.svg"},{name:"Bahamas",code:"BS",emoji:"🇧🇸",unicode:"U+1F1E7 U+1F1F8",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BS.svg"},{name:"Bhutan",code:"BT",emoji:"🇧🇹",unicode:"U+1F1E7 U+1F1F9",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BT.svg"},{name:"Bouvet Island",code:"BV",emoji:"🇧🇻",unicode:"U+1F1E7 U+1F1FB",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BV.svg"},{name:"Botswana",code:"BW",emoji:"🇧🇼",unicode:"U+1F1E7 U+1F1FC",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BW.svg"},{name:"Belarus",code:"BY",emoji:"🇧🇾",unicode:"U+1F1E7 U+1F1FE",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BY.svg"},{name:"Belize",code:"BZ",emoji:"🇧🇿",unicode:"U+1F1E7 U+1F1FF",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/BZ.svg"},{name:"Canada",code:"CA",emoji:"🇨🇦",unicode:"U+1F1E8 U+1F1E6",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CA.svg"},{name:"Cocos (Keeling) Islands",code:"CC",emoji:"🇨🇨",unicode:"U+1F1E8 U+1F1E8",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CC.svg"},{name:"Congo - Kinshasa",code:"CD",emoji:"🇨🇩",unicode:"U+1F1E8 U+1F1E9",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CD.svg"},{name:"Central African Republic",code:"CF",emoji:"🇨🇫",unicode:"U+1F1E8 U+1F1EB",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CF.svg"},{name:"Congo - Brazzaville",code:"CG",emoji:"🇨🇬",unicode:"U+1F1E8 U+1F1EC",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CG.svg"},{name:"Switzerland",code:"CH",emoji:"🇨🇭",unicode:"U+1F1E8 U+1F1ED",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CH.svg"},{name:"Côte d’Ivoire",code:"CI",emoji:"🇨🇮",unicode:"U+1F1E8 U+1F1EE",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CI.svg"},{name:"Cook Islands",code:"CK",emoji:"🇨🇰",unicode:"U+1F1E8 U+1F1F0",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CK.svg"},{name:"Chile",code:"CL",emoji:"🇨🇱",unicode:"U+1F1E8 U+1F1F1",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CL.svg"},{name:"Cameroon",code:"CM",emoji:"🇨🇲",unicode:"U+1F1E8 U+1F1F2",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CM.svg"},{name:"China",code:"CN",emoji:"🇨🇳",unicode:"U+1F1E8 U+1F1F3",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CN.svg"},{name:"Colombia",code:"CO",emoji:"🇨🇴",unicode:"U+1F1E8 U+1F1F4",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CO.svg"},{name:"Clipperton Island",code:"CP",emoji:"🇨🇵",unicode:"U+1F1E8 U+1F1F5",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CP.svg"},{name:"Costa Rica",code:"CR",emoji:"🇨🇷",unicode:"U+1F1E8 U+1F1F7",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CR.svg"},{name:"Cuba",code:"CU",emoji:"🇨🇺",unicode:"U+1F1E8 U+1F1FA",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CU.svg"},{name:"Cape Verde",code:"CV",emoji:"🇨🇻",unicode:"U+1F1E8 U+1F1FB",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CV.svg"},{name:"Curaçao",code:"CW",emoji:"🇨🇼",unicode:"U+1F1E8 U+1F1FC",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CW.svg"},{name:"Christmas Island",code:"CX",emoji:"🇨🇽",unicode:"U+1F1E8 U+1F1FD",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CX.svg"},{name:"Cyprus",code:"CY",emoji:"🇨🇾",unicode:"U+1F1E8 U+1F1FE",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CY.svg"},{name:"Czechia",code:"CZ",emoji:"🇨🇿",unicode:"U+1F1E8 U+1F1FF",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/CZ.svg"},{name:"Germany",code:"DE",emoji:"🇩🇪",unicode:"U+1F1E9 U+1F1EA",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/DE.svg"},{name:"Diego Garcia",code:"DG",emoji:"🇩🇬",unicode:"U+1F1E9 U+1F1EC",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/DG.svg"},{name:"Djibouti",code:"DJ",emoji:"🇩🇯",unicode:"U+1F1E9 U+1F1EF",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/DJ.svg"},{name:"Denmark",code:"DK",emoji:"🇩🇰",unicode:"U+1F1E9 U+1F1F0",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/DK.svg"},{name:"Dominica",code:"DM",emoji:"🇩🇲",unicode:"U+1F1E9 U+1F1F2",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/DM.svg"},{name:"Dominican Republic",code:"DO",emoji:"🇩🇴",unicode:"U+1F1E9 U+1F1F4",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/DO.svg"},{name:"Algeria",code:"DZ",emoji:"🇩🇿",unicode:"U+1F1E9 U+1F1FF",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/DZ.svg"},{name:"Ceuta & Melilla",code:"EA",emoji:"🇪🇦",unicode:"U+1F1EA U+1F1E6",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/EA.svg"},{name:"Ecuador",code:"EC",emoji:"🇪🇨",unicode:"U+1F1EA U+1F1E8",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/EC.svg"},{name:"Estonia",code:"EE",emoji:"🇪🇪",unicode:"U+1F1EA U+1F1EA",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/EE.svg"},{name:"Egypt",code:"EG",emoji:"🇪🇬",unicode:"U+1F1EA U+1F1EC",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/EG.svg"},{name:"Western Sahara",code:"EH",emoji:"🇪🇭",unicode:"U+1F1EA U+1F1ED",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/EH.svg"},{name:"Eritrea",code:"ER",emoji:"🇪🇷",unicode:"U+1F1EA U+1F1F7",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/ER.svg"},{name:"Spain",code:"ES",emoji:"🇪🇸",unicode:"U+1F1EA U+1F1F8",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/ES.svg"},{name:"Ethiopia",code:"ET",emoji:"🇪🇹",unicode:"U+1F1EA U+1F1F9",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/ET.svg"},{name:"European Union",code:"EU",emoji:"🇪🇺",unicode:"U+1F1EA U+1F1FA",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/EU.svg"},{name:"Finland",code:"FI",emoji:"🇫🇮",unicode:"U+1F1EB U+1F1EE",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/FI.svg"},{name:"Fiji",code:"FJ",emoji:"🇫🇯",unicode:"U+1F1EB U+1F1EF",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/FJ.svg"},{name:"Falkland Islands",code:"FK",emoji:"🇫🇰",unicode:"U+1F1EB U+1F1F0",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/FK.svg"},{name:"Micronesia",code:"FM",emoji:"🇫🇲",unicode:"U+1F1EB U+1F1F2",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/FM.svg"},{name:"Faroe Islands",code:"FO",emoji:"🇫🇴",unicode:"U+1F1EB U+1F1F4",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/FO.svg"},{name:"France",code:"FR",emoji:"🇫🇷",unicode:"U+1F1EB U+1F1F7",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/FR.svg"},{name:"Gabon",code:"GA",emoji:"🇬🇦",unicode:"U+1F1EC U+1F1E6",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GA.svg"},{name:"United Kingdom",code:"GB",emoji:"🇬🇧",unicode:"U+1F1EC U+1F1E7",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GB.svg"},{name:"Grenada",code:"GD",emoji:"🇬🇩",unicode:"U+1F1EC U+1F1E9",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GD.svg"},{name:"Georgia",code:"GE",emoji:"🇬🇪",unicode:"U+1F1EC U+1F1EA",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GE.svg"},{name:"French Guiana",code:"GF",emoji:"🇬🇫",unicode:"U+1F1EC U+1F1EB",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GF.svg"},{name:"Guernsey",code:"GG",emoji:"🇬🇬",unicode:"U+1F1EC U+1F1EC",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GG.svg"},{name:"Ghana",code:"GH",emoji:"🇬🇭",unicode:"U+1F1EC U+1F1ED",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GH.svg"},{name:"Gibraltar",code:"GI",emoji:"🇬🇮",unicode:"U+1F1EC U+1F1EE",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GI.svg"},{name:"Greenland",code:"GL",emoji:"🇬🇱",unicode:"U+1F1EC U+1F1F1",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GL.svg"},{name:"Gambia",code:"GM",emoji:"🇬🇲",unicode:"U+1F1EC U+1F1F2",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GM.svg"},{name:"Guinea",code:"GN",emoji:"🇬🇳",unicode:"U+1F1EC U+1F1F3",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GN.svg"},{name:"Guadeloupe",code:"GP",emoji:"🇬🇵",unicode:"U+1F1EC U+1F1F5",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GP.svg"},{name:"Equatorial Guinea",code:"GQ",emoji:"🇬🇶",unicode:"U+1F1EC U+1F1F6",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GQ.svg"},{name:"Greece",code:"GR",emoji:"🇬🇷",unicode:"U+1F1EC U+1F1F7",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GR.svg"},{name:"South Georgia & South Sandwich Islands",code:"GS",emoji:"🇬🇸",unicode:"U+1F1EC U+1F1F8",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GS.svg"},{name:"Guatemala",code:"GT",emoji:"🇬🇹",unicode:"U+1F1EC U+1F1F9",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GT.svg"},{name:"Guam",code:"GU",emoji:"🇬🇺",unicode:"U+1F1EC U+1F1FA",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GU.svg"},{name:"Guinea-Bissau",code:"GW",emoji:"🇬🇼",unicode:"U+1F1EC U+1F1FC",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GW.svg"},{name:"Guyana",code:"GY",emoji:"🇬🇾",unicode:"U+1F1EC U+1F1FE",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/GY.svg"},{name:"Hong Kong SAR China",code:"HK",emoji:"🇭🇰",unicode:"U+1F1ED U+1F1F0",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/HK.svg"},{name:"Heard & McDonald Islands",code:"HM",emoji:"🇭🇲",unicode:"U+1F1ED U+1F1F2",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/HM.svg"},{name:"Honduras",code:"HN",emoji:"🇭🇳",unicode:"U+1F1ED U+1F1F3",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/HN.svg"},{name:"Croatia",code:"HR",emoji:"🇭🇷",unicode:"U+1F1ED U+1F1F7",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/HR.svg"},{name:"Haiti",code:"HT",emoji:"🇭🇹",unicode:"U+1F1ED U+1F1F9",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/HT.svg"},{name:"Hungary",code:"HU",emoji:"🇭🇺",unicode:"U+1F1ED U+1F1FA",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/HU.svg"},{name:"Canary Islands",code:"IC",emoji:"🇮🇨",unicode:"U+1F1EE U+1F1E8",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/IC.svg"},{name:"Indonesia",code:"ID",emoji:"🇮🇩",unicode:"U+1F1EE U+1F1E9",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/ID.svg"},{name:"Ireland",code:"IE",emoji:"🇮🇪",unicode:"U+1F1EE U+1F1EA",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/IE.svg"},{name:"Israel",code:"IL",emoji:"🇮🇱",unicode:"U+1F1EE U+1F1F1",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/IL.svg"},{name:"Isle of Man",code:"IM",emoji:"🇮🇲",unicode:"U+1F1EE U+1F1F2",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/IM.svg"},{name:"India",code:"IN",emoji:"🇮🇳",unicode:"U+1F1EE U+1F1F3",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/IN.svg"},{name:"British Indian Ocean Territory",code:"IO",emoji:"🇮🇴",unicode:"U+1F1EE U+1F1F4",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/IO.svg"},{name:"Iraq",code:"IQ",emoji:"🇮🇶",unicode:"U+1F1EE U+1F1F6",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/IQ.svg"},{name:"Iran",code:"IR",emoji:"🇮🇷",unicode:"U+1F1EE U+1F1F7",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/IR.svg"},{name:"Iceland",code:"IS",emoji:"🇮🇸",unicode:"U+1F1EE U+1F1F8",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/IS.svg"},{name:"Italy",code:"IT",emoji:"🇮🇹",unicode:"U+1F1EE U+1F1F9",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/IT.svg"},{name:"Jersey",code:"JE",emoji:"🇯🇪",unicode:"U+1F1EF U+1F1EA",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/JE.svg"},{name:"Jamaica",code:"JM",emoji:"🇯🇲",unicode:"U+1F1EF U+1F1F2",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/JM.svg"},{name:"Jordan",code:"JO",emoji:"🇯🇴",unicode:"U+1F1EF U+1F1F4",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/JO.svg"},{name:"Japan",code:"JP",emoji:"🇯🇵",unicode:"U+1F1EF U+1F1F5",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/JP.svg"},{name:"Kenya",code:"KE",emoji:"🇰🇪",unicode:"U+1F1F0 U+1F1EA",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/KE.svg"},{name:"Kyrgyzstan",code:"KG",emoji:"🇰🇬",unicode:"U+1F1F0 U+1F1EC",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/KG.svg"},{name:"Cambodia",code:"KH",emoji:"🇰🇭",unicode:"U+1F1F0 U+1F1ED",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/KH.svg"},{name:"Kiribati",code:"KI",emoji:"🇰🇮",unicode:"U+1F1F0 U+1F1EE",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/KI.svg"},{name:"Comoros",code:"KM",emoji:"🇰🇲",unicode:"U+1F1F0 U+1F1F2",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/KM.svg"},{name:"St. Kitts & Nevis",code:"KN",emoji:"🇰🇳",unicode:"U+1F1F0 U+1F1F3",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/KN.svg"},{name:"North Korea",code:"KP",emoji:"🇰🇵",unicode:"U+1F1F0 U+1F1F5",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/KP.svg"},{name:"South Korea",code:"KR",emoji:"🇰🇷",unicode:"U+1F1F0 U+1F1F7",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/KR.svg"},{name:"Kuwait",code:"KW",emoji:"🇰🇼",unicode:"U+1F1F0 U+1F1FC",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/KW.svg"},{name:"Cayman Islands",code:"KY",emoji:"🇰🇾",unicode:"U+1F1F0 U+1F1FE",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/KY.svg"},{name:"Kazakhstan",code:"KZ",emoji:"🇰🇿",unicode:"U+1F1F0 U+1F1FF",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/KZ.svg"},{name:"Laos",code:"LA",emoji:"🇱🇦",unicode:"U+1F1F1 U+1F1E6",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/LA.svg"},{name:"Lebanon",code:"LB",emoji:"🇱🇧",unicode:"U+1F1F1 U+1F1E7",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/LB.svg"},{name:"St. Lucia",code:"LC",emoji:"🇱🇨",unicode:"U+1F1F1 U+1F1E8",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/LC.svg"},{name:"Liechtenstein",code:"LI",emoji:"🇱🇮",unicode:"U+1F1F1 U+1F1EE",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/LI.svg"},{name:"Sri Lanka",code:"LK",emoji:"🇱🇰",unicode:"U+1F1F1 U+1F1F0",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/LK.svg"},{name:"Liberia",code:"LR",emoji:"🇱🇷",unicode:"U+1F1F1 U+1F1F7",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/LR.svg"},{name:"Lesotho",code:"LS",emoji:"🇱🇸",unicode:"U+1F1F1 U+1F1F8",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/LS.svg"},{name:"Lithuania",code:"LT",emoji:"🇱🇹",unicode:"U+1F1F1 U+1F1F9",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/LT.svg"},{name:"Luxembourg",code:"LU",emoji:"🇱🇺",unicode:"U+1F1F1 U+1F1FA",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/LU.svg"},{name:"Latvia",code:"LV",emoji:"🇱🇻",unicode:"U+1F1F1 U+1F1FB",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/LV.svg"},{name:"Libya",code:"LY",emoji:"🇱🇾",unicode:"U+1F1F1 U+1F1FE",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/LY.svg"},{name:"Morocco",code:"MA",emoji:"🇲🇦",unicode:"U+1F1F2 U+1F1E6",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MA.svg"},{name:"Monaco",code:"MC",emoji:"🇲🇨",unicode:"U+1F1F2 U+1F1E8",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MC.svg"},{name:"Moldova",code:"MD",emoji:"🇲🇩",unicode:"U+1F1F2 U+1F1E9",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MD.svg"},{name:"Montenegro",code:"ME",emoji:"🇲🇪",unicode:"U+1F1F2 U+1F1EA",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/ME.svg"},{name:"St. Martin",code:"MF",emoji:"🇲🇫",unicode:"U+1F1F2 U+1F1EB",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MF.svg"},{name:"Madagascar",code:"MG",emoji:"🇲🇬",unicode:"U+1F1F2 U+1F1EC",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MG.svg"},{name:"Marshall Islands",code:"MH",emoji:"🇲🇭",unicode:"U+1F1F2 U+1F1ED",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MH.svg"},{name:"North Macedonia",code:"MK",emoji:"🇲🇰",unicode:"U+1F1F2 U+1F1F0",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MK.svg"},{name:"Mali",code:"ML",emoji:"🇲🇱",unicode:"U+1F1F2 U+1F1F1",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/ML.svg"},{name:"Myanmar (Burma)",code:"MM",emoji:"🇲🇲",unicode:"U+1F1F2 U+1F1F2",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MM.svg"},{name:"Mongolia",code:"MN",emoji:"🇲🇳",unicode:"U+1F1F2 U+1F1F3",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MN.svg"},{name:"Macao SAR China",code:"MO",emoji:"🇲🇴",unicode:"U+1F1F2 U+1F1F4",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MO.svg"},{name:"Northern Mariana Islands",code:"MP",emoji:"🇲🇵",unicode:"U+1F1F2 U+1F1F5",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MP.svg"},{name:"Martinique",code:"MQ",emoji:"🇲🇶",unicode:"U+1F1F2 U+1F1F6",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MQ.svg"},{name:"Mauritania",code:"MR",emoji:"🇲🇷",unicode:"U+1F1F2 U+1F1F7",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MR.svg"},{name:"Montserrat",code:"MS",emoji:"🇲🇸",unicode:"U+1F1F2 U+1F1F8",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MS.svg"},{name:"Malta",code:"MT",emoji:"🇲🇹",unicode:"U+1F1F2 U+1F1F9",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MT.svg"},{name:"Mauritius",code:"MU",emoji:"🇲🇺",unicode:"U+1F1F2 U+1F1FA",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MU.svg"},{name:"Maldives",code:"MV",emoji:"🇲🇻",unicode:"U+1F1F2 U+1F1FB",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MV.svg"},{name:"Malawi",code:"MW",emoji:"🇲🇼",unicode:"U+1F1F2 U+1F1FC",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MW.svg"},{name:"Mexico",code:"MX",emoji:"🇲🇽",unicode:"U+1F1F2 U+1F1FD",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MX.svg"},{name:"Malaysia",code:"MY",emoji:"🇲🇾",unicode:"U+1F1F2 U+1F1FE",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MY.svg"},{name:"Mozambique",code:"MZ",emoji:"🇲🇿",unicode:"U+1F1F2 U+1F1FF",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/MZ.svg"},{name:"Namibia",code:"NA",emoji:"🇳🇦",unicode:"U+1F1F3 U+1F1E6",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/NA.svg"},{name:"New Caledonia",code:"NC",emoji:"🇳🇨",unicode:"U+1F1F3 U+1F1E8",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/NC.svg"},{name:"Niger",code:"NE",emoji:"🇳🇪",unicode:"U+1F1F3 U+1F1EA",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/NE.svg"},{name:"Norfolk Island",code:"NF",emoji:"🇳🇫",unicode:"U+1F1F3 U+1F1EB",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/NF.svg"},{name:"Nigeria",code:"NG",emoji:"🇳🇬",unicode:"U+1F1F3 U+1F1EC",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/NG.svg"},{name:"Nicaragua",code:"NI",emoji:"🇳🇮",unicode:"U+1F1F3 U+1F1EE",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/NI.svg"},{name:"Netherlands",code:"NL",emoji:"🇳🇱",unicode:"U+1F1F3 U+1F1F1",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/NL.svg"},{name:"Norway",code:"NO",emoji:"🇳🇴",unicode:"U+1F1F3 U+1F1F4",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/NO.svg"},{name:"Nepal",code:"NP",emoji:"🇳🇵",unicode:"U+1F1F3 U+1F1F5",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/NP.svg"},{name:"Nauru",code:"NR",emoji:"🇳🇷",unicode:"U+1F1F3 U+1F1F7",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/NR.svg"},{name:"Niue",code:"NU",emoji:"🇳🇺",unicode:"U+1F1F3 U+1F1FA",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/NU.svg"},{name:"New Zealand",code:"NZ",emoji:"🇳🇿",unicode:"U+1F1F3 U+1F1FF",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/NZ.svg"},{name:"Oman",code:"OM",emoji:"🇴🇲",unicode:"U+1F1F4 U+1F1F2",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/OM.svg"},{name:"Panama",code:"PA",emoji:"🇵🇦",unicode:"U+1F1F5 U+1F1E6",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/PA.svg"},{name:"Peru",code:"PE",emoji:"🇵🇪",unicode:"U+1F1F5 U+1F1EA",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/PE.svg"},{name:"French Polynesia",code:"PF",emoji:"🇵🇫",unicode:"U+1F1F5 U+1F1EB",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/PF.svg"},{name:"Papua New Guinea",code:"PG",emoji:"🇵🇬",unicode:"U+1F1F5 U+1F1EC",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/PG.svg"},{name:"Philippines",code:"PH",emoji:"🇵🇭",unicode:"U+1F1F5 U+1F1ED",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/PH.svg"},{name:"Pakistan",code:"PK",emoji:"🇵🇰",unicode:"U+1F1F5 U+1F1F0",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/PK.svg"},{name:"Poland",code:"PL",emoji:"🇵🇱",unicode:"U+1F1F5 U+1F1F1",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/PL.svg"},{name:"St. Pierre & Miquelon",code:"PM",emoji:"🇵🇲",unicode:"U+1F1F5 U+1F1F2",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/PM.svg"},{name:"Pitcairn Islands",code:"PN",emoji:"🇵🇳",unicode:"U+1F1F5 U+1F1F3",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/PN.svg"},{name:"Puerto Rico",code:"PR",emoji:"🇵🇷",unicode:"U+1F1F5 U+1F1F7",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/PR.svg"},{name:"Palestinian Territories",code:"PS",emoji:"🇵🇸",unicode:"U+1F1F5 U+1F1F8",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/PS.svg"},{name:"Portugal",code:"PT",emoji:"🇵🇹",unicode:"U+1F1F5 U+1F1F9",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/PT.svg"},{name:"Palau",code:"PW",emoji:"🇵🇼",unicode:"U+1F1F5 U+1F1FC",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/PW.svg"},{name:"Paraguay",code:"PY",emoji:"🇵🇾",unicode:"U+1F1F5 U+1F1FE",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/PY.svg"},{name:"Qatar",code:"QA",emoji:"🇶🇦",unicode:"U+1F1F6 U+1F1E6",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/QA.svg"},{name:"Réunion",code:"RE",emoji:"🇷🇪",unicode:"U+1F1F7 U+1F1EA",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/RE.svg"},{name:"Romania",code:"RO",emoji:"🇷🇴",unicode:"U+1F1F7 U+1F1F4",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/RO.svg"},{name:"Serbia",code:"RS",emoji:"🇷🇸",unicode:"U+1F1F7 U+1F1F8",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/RS.svg"},{name:"Russia",code:"RU",emoji:"🇷🇺",unicode:"U+1F1F7 U+1F1FA",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/RU.svg"},{name:"Rwanda",code:"RW",emoji:"🇷🇼",unicode:"U+1F1F7 U+1F1FC",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/RW.svg"},{name:"Saudi Arabia",code:"SA",emoji:"🇸🇦",unicode:"U+1F1F8 U+1F1E6",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SA.svg"},{name:"Solomon Islands",code:"SB",emoji:"🇸🇧",unicode:"U+1F1F8 U+1F1E7",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SB.svg"},{name:"Seychelles",code:"SC",emoji:"🇸🇨",unicode:"U+1F1F8 U+1F1E8",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SC.svg"},{name:"Sudan",code:"SD",emoji:"🇸🇩",unicode:"U+1F1F8 U+1F1E9",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SD.svg"},{name:"Sweden",code:"SE",emoji:"🇸🇪",unicode:"U+1F1F8 U+1F1EA",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SE.svg"},{name:"Singapore",code:"SG",emoji:"🇸🇬",unicode:"U+1F1F8 U+1F1EC",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SG.svg"},{name:"St. Helena",code:"SH",emoji:"🇸🇭",unicode:"U+1F1F8 U+1F1ED",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SH.svg"},{name:"Slovenia",code:"SI",emoji:"🇸🇮",unicode:"U+1F1F8 U+1F1EE",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SI.svg"},{name:"Svalbard & Jan Mayen",code:"SJ",emoji:"🇸🇯",unicode:"U+1F1F8 U+1F1EF",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SJ.svg"},{name:"Slovakia",code:"SK",emoji:"🇸🇰",unicode:"U+1F1F8 U+1F1F0",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SK.svg"},{name:"Sierra Leone",code:"SL",emoji:"🇸🇱",unicode:"U+1F1F8 U+1F1F1",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SL.svg"},{name:"San Marino",code:"SM",emoji:"🇸🇲",unicode:"U+1F1F8 U+1F1F2",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SM.svg"},{name:"Senegal",code:"SN",emoji:"🇸🇳",unicode:"U+1F1F8 U+1F1F3",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SN.svg"},{name:"Somalia",code:"SO",emoji:"🇸🇴",unicode:"U+1F1F8 U+1F1F4",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SO.svg"},{name:"Suriname",code:"SR",emoji:"🇸🇷",unicode:"U+1F1F8 U+1F1F7",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SR.svg"},{name:"South Sudan",code:"SS",emoji:"🇸🇸",unicode:"U+1F1F8 U+1F1F8",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SS.svg"},{name:"São Tomé & Príncipe",code:"ST",emoji:"🇸🇹",unicode:"U+1F1F8 U+1F1F9",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/ST.svg"},{name:"El Salvador",code:"SV",emoji:"🇸🇻",unicode:"U+1F1F8 U+1F1FB",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SV.svg"},{name:"Sint Maarten",code:"SX",emoji:"🇸🇽",unicode:"U+1F1F8 U+1F1FD",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SX.svg"},{name:"Syria",code:"SY",emoji:"🇸🇾",unicode:"U+1F1F8 U+1F1FE",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SY.svg"},{name:"Eswatini",code:"SZ",emoji:"🇸🇿",unicode:"U+1F1F8 U+1F1FF",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SZ.svg"},{name:"Tristan da Cunha",code:"TA",emoji:"🇹🇦",unicode:"U+1F1F9 U+1F1E6",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TA.svg"},{name:"Turks & Caicos Islands",code:"TC",emoji:"🇹🇨",unicode:"U+1F1F9 U+1F1E8",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TC.svg"},{name:"Chad",code:"TD",emoji:"🇹🇩",unicode:"U+1F1F9 U+1F1E9",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TD.svg"},{name:"French Southern Territories",code:"TF",emoji:"🇹🇫",unicode:"U+1F1F9 U+1F1EB",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TF.svg"},{name:"Togo",code:"TG",emoji:"🇹🇬",unicode:"U+1F1F9 U+1F1EC",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TG.svg"},{name:"Thailand",code:"TH",emoji:"🇹🇭",unicode:"U+1F1F9 U+1F1ED",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TH.svg"},{name:"Tajikistan",code:"TJ",emoji:"🇹🇯",unicode:"U+1F1F9 U+1F1EF",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TJ.svg"},{name:"Tokelau",code:"TK",emoji:"🇹🇰",unicode:"U+1F1F9 U+1F1F0",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TK.svg"},{name:"Timor-Leste",code:"TL",emoji:"🇹🇱",unicode:"U+1F1F9 U+1F1F1",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TL.svg"},{name:"Turkmenistan",code:"TM",emoji:"🇹🇲",unicode:"U+1F1F9 U+1F1F2",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TM.svg"},{name:"Tunisia",code:"TN",emoji:"🇹🇳",unicode:"U+1F1F9 U+1F1F3",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TN.svg"},{name:"Tonga",code:"TO",emoji:"🇹🇴",unicode:"U+1F1F9 U+1F1F4",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TO.svg"},{name:"Turkey",code:"TR",emoji:"🇹🇷",unicode:"U+1F1F9 U+1F1F7",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TR.svg"},{name:"Trinidad & Tobago",code:"TT",emoji:"🇹🇹",unicode:"U+1F1F9 U+1F1F9",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TT.svg"},{name:"Tuvalu",code:"TV",emoji:"🇹🇻",unicode:"U+1F1F9 U+1F1FB",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TV.svg"},{name:"Taiwan",code:"TW",emoji:"🇹🇼",unicode:"U+1F1F9 U+1F1FC",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TW.svg"},{name:"Tanzania",code:"TZ",emoji:"🇹🇿",unicode:"U+1F1F9 U+1F1FF",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/TZ.svg"},{name:"Ukraine",code:"UA",emoji:"🇺🇦",unicode:"U+1F1FA U+1F1E6",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/UA.svg"},{name:"Uganda",code:"UG",emoji:"🇺🇬",unicode:"U+1F1FA U+1F1EC",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/UG.svg"},{name:"U.S. Outlying Islands",code:"UM",emoji:"🇺🇲",unicode:"U+1F1FA U+1F1F2",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/UM.svg"},{name:"United Nations",code:"UN",emoji:"🇺🇳",unicode:"U+1F1FA U+1F1F3",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/UN.svg"},{name:"United States",code:"US",emoji:"🇺🇸",unicode:"U+1F1FA U+1F1F8",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/US.svg"},{name:"Uruguay",code:"UY",emoji:"🇺🇾",unicode:"U+1F1FA U+1F1FE",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/UY.svg"},{name:"Uzbekistan",code:"UZ",emoji:"🇺🇿",unicode:"U+1F1FA U+1F1FF",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/UZ.svg"},{name:"Vatican City",code:"VA",emoji:"🇻🇦",unicode:"U+1F1FB U+1F1E6",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/VA.svg"},{name:"St. Vincent & Grenadines",code:"VC",emoji:"🇻🇨",unicode:"U+1F1FB U+1F1E8",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/VC.svg"},{name:"Venezuela",code:"VE",emoji:"🇻🇪",unicode:"U+1F1FB U+1F1EA",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/VE.svg"},{name:"British Virgin Islands",code:"VG",emoji:"🇻🇬",unicode:"U+1F1FB U+1F1EC",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/VG.svg"},{name:"U.S. Virgin Islands",code:"VI",emoji:"🇻🇮",unicode:"U+1F1FB U+1F1EE",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/VI.svg"},{name:"Vietnam",code:"VN",emoji:"🇻🇳",unicode:"U+1F1FB U+1F1F3",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/VN.svg"},{name:"Vanuatu",code:"VU",emoji:"🇻🇺",unicode:"U+1F1FB U+1F1FA",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/VU.svg"},{name:"Wallis & Futuna",code:"WF",emoji:"🇼🇫",unicode:"U+1F1FC U+1F1EB",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/WF.svg"},{name:"Samoa",code:"WS",emoji:"🇼🇸",unicode:"U+1F1FC U+1F1F8",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/WS.svg"},{name:"Kosovo",code:"XK",emoji:"🇽🇰",unicode:"U+1F1FD U+1F1F0",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/XK.svg"},{name:"Yemen",code:"YE",emoji:"🇾🇪",unicode:"U+1F1FE U+1F1EA",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/YE.svg"},{name:"Mayotte",code:"YT",emoji:"🇾🇹",unicode:"U+1F1FE U+1F1F9",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/YT.svg"},{name:"South Africa",code:"ZA",emoji:"🇿🇦",unicode:"U+1F1FF U+1F1E6",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/ZA.svg"},{name:"Zambia",code:"ZM",emoji:"🇿🇲",unicode:"U+1F1FF U+1F1F2",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/ZM.svg"},{name:"Zimbabwe",code:"ZW",emoji:"🇿🇼",unicode:"U+1F1FF U+1F1FC",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/ZW.svg"},{name:"England",code:"ENGLAND",emoji:"🏴󠁧󠁢󠁥󠁮󠁧󠁿",unicode:"U+1F3F4 U+E0067 U+E0062 U+E0065 U+E006E U+E0067 U+E007F",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/ENGLAND.svg"},{name:"Scotland",code:"SCOTLAND",emoji:"🏴󠁧󠁢󠁳󠁣󠁴󠁿",unicode:"U+1F3F4 U+E0067 U+E0062 U+E0073 U+E0063 U+E0074 U+E007F",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/SCOTLAND.svg"},{name:"Wales",code:"WALES",emoji:"🏴󠁧󠁢󠁷󠁬󠁳󠁿",unicode:"U+1F3F4 U+E0067 U+E0062 U+E0077 U+E006C U+E0073 U+E007F",image:"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@2.0.0/dist/images/WALES.svg"}],bT={isPostField:!0,isValid:0,uuid:et(),componentType:"country",isFluid:!0,...ki,...Hi,...Oc,label:{english:"Countries"},fieldType:{element:"country",type:"country"},countries:[...YY],attributes:{...Yi}},KY={isPostField:!0,isValid:0,isIcon:!0,isTodayBtn:!1,noOfMonths:1,dateRange:"single",calenderView:"date",dateFormat:"D dd M yy",minDate:"",maxDate:"",componentType:"date-picker",fieldType:{element:"date-picker"},uuid:et(),isFluid:!0,...ki,...Hi,...Oc,label:{english:"Date Field Label"},data:[{uuid:et(),dataKey:"",value:""}],attributes:{...Yi}},yT={isPostField:!1,uuid:et(),componentType:"document",showHeaderText:!1,showHelperText:!1,showToolTip:!1,showLabel:!0,isValid:0,title:{english:"Course resources"},document_id:null,document_url:null,documents:[]},XY={isPostField:!0,isValid:0,uuid:et(),isFluid:!0,componentType:"dynamic-listing",...ki,...Hi,isDynamicListingTabEnabled:!0,isLayoutTabEnabled:!1,label:{english:"Dynamic Radio"},optionLabel:"label",optionValue:"value",fieldType:{element:"dynamic-listing",type:"radio"},options:[],dynamicOtions:[],dataSourceType:"custom",dataSource:null,customColumnsForOptions:[],attributes:{...Yi}},RY={isPostField:!0,uuid:et(),timeLimit:3,score:1,componentType:"question",answerInputType:"radio",sequenceType:"order",isFluid:!0,isAllowMultipleAnswer:!1,noOfMultpleAnswer:2,correctAnswerComment:{english:""},questionText:{english:"Sample Question"},...ki,fieldType:{element:"question",type:"question"},subject_id:null,course_category_id:null,created_by_id:null,date_created:null,customColumnsForOptions:[],conditionalOptions:{enableConditional:!1,inline:{logic:{trigger:{selectedOptionIndexes:[0,2,3,4],actions:{showInlineColumns:!0,showSelectedSections:[],showSelectedPages:[]}}},columns:[{fields:[]}]}},answerOptions:[{uuid:et(),answersText:{english:"Hot and humid"},isAnswer:""},{uuid:et(),answersText:{english:"Cold and wet"},isAnswer:""}],attributes:{required:!0,readOnly:!1,disabled:!1}},GY={isPostField:!0,isValid:0,uuid:et(),isFluid:!0,componentType:"facebook-login",...ki,...Hi,fieldType:{element:"login",type:"social-login"},data:[{uuid:et(),dataKey:"",value:""}],attributes:{...Yi,minLength:0,maxLength:50}},WY={...ki,...Hi,isPostField:!0,isValid:0,componentType:"file-upload",fieldType:{element:"file-upload"},label:{english:"File Upload"},uuid:et(),attributes:{...Yi},uploadedFiles:[]},QY={isPostField:!1,uuid:et(),componentType:"grid-component",isFluid:!0,options:[],data:[{uuid:et(),dataKey:"",value:""}],customColumnsForOptions:[{customKey:"Column 1",uuid:et()}],children:[],...ki,...Hi,label:{english:"Grid Component"},fieldType:{element:"grid-component",type:"grid-component"},attributes:{...Yi}},AT={isPostField:!1,componentType:"heading",headingType:"h1",fieldType:{element:"heading"},uuid:et(),text:{english:"Heading text"},hrefLink:{english:""},style:"",color:"",openInNewTab:!1,underLined:!1,bold:!1},JY={isPostField:!0,isValid:0,uuid:et(),componentType:"hidden-field",isFluid:!0,isLayoutTabEnabled:!1,defaultValue:{english:""},fieldType:{element:"hidden-field",type:"hidden-field"},attributes:{...Yi,required:!1}},wT={isPostField:!1,uuid:et(),componentType:"hr",fieldType:{element:"hr",type:"hr"}},ST={isPostField:!1,componentType:"href",fieldType:{element:"href"},uuid:et(),text:{english:"Hyper link text"},hrefLink:{english:""},style:"",color:null,fontSize:18,openInNewTab:!1,underLined:!1,bold:!1},ZY={isPostField:!0,isValid:0,uuid:et(),componentType:"editor",boldOption:!0,sizeOption:!0,italicOption:!0,underlineOption:!0,listOption:!0,alignOption:!0,colorOption:!0,fontOption:!0,...ki,...Hi,fieldType:{element:"textHtmlEditor"},label:{english:"Html Editor Label"},data:[{uuid:et(),dataKey:"",value:""}],attributes:{required:!0,readOnly:!1,hidden:!1,disabled:!1}},xT={isPostField:!1,uuid:et(),componentType:"image-gallery",isValid:0,...ki,fieldType:{element:"image-gallery",type:"image-gallery"},data:[{uuid:null,dataKey:"",value:""}],isLayoutTabEnabled:!1,isValidationTabEnabled:!1,documents:[],attributes:{...Yi,minLength:null,maxLength:null}},v9={isPostField:!1,isValid:0,isExternalSource:!1,media_file_id:null,uuid:et(),componentType:"image",showHeaderText:!1,showHelperText:!1,showToolTip:!1,showLabel:!0,isLayoutTabEnabled:!1,title:{english:"Course image"},media_url:{english:""}},eK={isPostField:!0,isValid:0,uuid:et(),componentType:"email",isFluid:!0,...ki,...Hi,...Oc,fieldType:{element:"input",type:"email"},data:[{uuid:et(),dataKey:"",value:""}],label:{english:"Email Field Label"},attributes:{...Yi}},tK={isPostField:!0,isValid:0,uuid:et(),isFluid:!0,componentType:"number",...ki,...Hi,...Oc,fieldType:{element:"input",type:"number"},label:{english:"Number Field Label"},data:[{uuid:et(),dataKey:"",value:""}],enableCurrency:!1,attributes:{...Yi,mode:"decimal",currency:"USD",currencyDisplay:"code",useGrouping:!1,minFractionDigits:0,maxFractionDigits:5,min:null,max:null,locale:"en-US",suffix:"",prefix:"",showButtons:!1,decrementButtonClassName:"p-button-danger",incrementButtonClassName:"p-button-success",incrementButtonIcon:"pi pi-plus",decrementButtonIcon:"pi pi-minus"}},nK={isPostField:!0,isValid:0,uuid:et(),isFluid:!0,componentType:"text",...ki,...Hi,...Oc,fieldType:{element:"input",type:"text"},data:[{uuid:et(),dataKey:"",value:""}],attributes:{...Yi,minLength:0,maxLength:50}},CT={isPostField:!0,isValid:0,uuid:et(),componentType:"likert-emoji-scale",isFluid:!0,...ki,...Hi,label:{english:"Likert Emoji Scale"},fieldType:{element:"likert-emoji-scale",type:"likert-emoji-scale"},attributes:{...Yi}},TT={isPostField:!0,isValid:0,uuid:et(),componentType:"likert-scale",isFluid:!0,...ki,...Hi,label:{english:"Likert Scale"},startingMessage:{english:"Very Bad"},endingMessage:{english:"Very Good"},fieldType:{element:"likert-scale",type:"likert-scale"},attributes:{...Yi}},rK={isPostField:!0,uuid:et(),componentType:"matrix-dropdown",isFluid:!0,options:[],customColumns:[{customKey:"Column 1",uuid:et(),options:[]}],data:[{uuid:et(),dataKey:"",value:""}],rows:[{rowHeading:"Row",optionValue:null,uuid:et()}],...ki,...Hi,label:{english:"Matrix Dropdown"},fieldType:{element:"matrix-dropdown",type:"matrix-dropdown"},attributes:{...Yi}};({uuid:et(),customColumnsForOptions:et(),data:et(),...ki,...Hi,attributes:{...Yi}});const ET={isPostField:!0,isValid:0,uuid:et(),componentType:"multi-select",...ki,...Hi,...Oc,fieldType:{element:"multi-select",type:"multi-select"},label:{english:"Multi Select Label"},options:[{uuid:et(),optionText:{english:"option 1"},value:"option 1",abbreviationText:{english:""},custom_values:{}},{uuid:et(),optionText:{english:"option 2"},value:"option 2",abbreviationText:{english:""},custom_values:{}},{uuid:et(),optionText:{english:"option 3"},value:"option 3",abbreviationText:{english:""},custom_values:{}},{uuid:et(),optionText:{english:"option 4"},value:"option 4",abbreviationText:{english:""},custom_values:{}}],inlineConditionalRules:{rules:[]},conditionalTabRules:{rules:[{conditions:[]}]},conditionalSectionRules:{rules:[{conditions:[]}]},customColumnsForOptions:[],data:[{uuid:et(),dataKey:"",value:""}],attributes:{...Yi}},IT={isPostField:!1,componentType:"paragraph",fieldType:{element:"paragraph"},uuid:et(),text:{english:"Paragraph Text"},hrefLink:"",style:"",color:"",openInNewTab:!1,underLined:!1,bold:!1},iK={isPostField:!0,isValid:0,uuid:et(),componentType:"phone",isFluid:!0,...ki,...Hi,...Oc,fieldType:{element:"phone",type:"phone"},label:{english:"Phone Number"},attributes:{...Yi}},aK={isPostField:!0,uuid:et(),componentType:"quiz",showHeaderText:!1,showHelperText:!1,showToolTip:!1,showLabel:!0,isValid:0,assessment_id:null},_T={isPostField:!0,isValid:0,uuid:et(),isFluid:!0,componentType:"radio",...ki,...Hi,label:{english:"Radio label"},fieldType:{element:"radio",type:"radio"},options:[],customColumnsForOptions:[],inlineConditionalRules:{rules:[]},conditionalTabRules:{rules:[{conditions:[]}]},conditionalSectionRules:{rules:[{conditions:[]}]},data:[{uuid:et(),dataKey:"",value:""}],attributes:{...Yi}},sK={isPostField:!0,isValid:0,uuid:et(),isFluid:!0,componentType:"radio-hierarchal",...ki,...Hi,isHierarchalCondionalTabEnabled:!0,label:{english:"Hierarchal Radio"},fieldType:{element:"radio-hierarchal",type:"radio-hierarchal"},options:[],customColumnsForOptions:[],attributes:{...Yi}},DT={isPostField:!0,isValid:0,uuid:et(),componentType:"rating",isFluid:!0,...ki,...Hi,isLayoutTabEnabled:!1,attributes:{...Yi},label:{english:"Rate"},fieldType:{element:"rating",type:"rating"}},NT={isPostField:!0,isValid:0,uuid:et(),componentType:"select",isFluid:!0,...ki,...Hi,...Oc,fieldType:{element:"select",type:"select"},label:{english:"Dropdown"},options:[],inlineConditionalRules:{rules:[]},conditionalTabRules:{rules:[{conditions:[]}]},conditionalSectionRules:{rules:[{conditions:[]}]},customColumnsForOptions:[],data:[{uuid:et(),dataKey:"",value:""}],attributes:{...Yi}},OT={isPostField:!0,componentType:"signature",fieldType:{element:"signature"},uuid:et(),clearSignatureButtonLabel:{english:"Clear Signature"},penColor:"000",canvasWidth:"300",canvasHeight:"200",backgroundColor:{r:209,g:209,b:209},isValid:0,...ki,...Hi,label:{english:"Draw Signature"},attributes:{...Yi}},FT={isPostField:!0,isValid:0,uuid:et(),componentType:"slider",isFluid:!0,...ki,...Hi,isLayoutTabEnabled:!1,label:{english:"Slider"},fieldType:{element:"slider",type:"slider"},attributes:{...Yi}},oK={isPostField:!0,uuid:et(),componentType:"table",isFluid:!0,options:[],customColumns:[{customKey:"Column 1",uuid:et(),options:[]}],data:[{uuid:et(),dataKey:"",value:""}],rows:[{rowHeading:"Row",optionValue:null,uuid:et()}],allFields:{},...ki,...Hi,label:{english:"Table"},fieldType:{element:"table",type:"table"},attributes:{...Yi}},lK={isPostField:!0,isValid:0,uuid:et(),componentType:"textarea",isFluid:!0,textareaCols:3,textareaRows:2,resizable:!0,...ki,...Hi,fieldType:{element:"textArea"},label:{english:"Text Field Label"},data:[{uuid:et(),dataKey:"",value:""}],attributes:{...Yi,minRows:5,maxRows:10}},kT={isPostField:!0,isValid:0,uuid:et(),componentType:"thumbs",isFluid:!0,...ki,label:{english:"Thumbs"},fieldType:{element:"thumbs",type:"thumbs"},attributes:{...Yi},...Hi},cK={isPostField:!0,isValid:0,componentType:"type-signature",fieldType:{element:"type-signature"},uuid:et(),clearSignatureButtonLabel:{english:"Clear Signature"},fontStyle:{name:"Yellowtail",font:"yellowtail"},fontSize:30,...ki,...Oc,...Hi,label:{english:"Type Signature"},attributes:{...Yi}},uK={isPostField:!1,componentType:"list",fieldType:{element:"list"},uuid:et(),options:[],style:"",color:null,fontSize:null,underLined:!1,bold:!1},b9={isPostField:!1,isExternalSource:!1,media_file_id:null,uuid:et(),componentType:"video",showHeaderText:!1,showHelperText:!1,showToolTip:!1,showLabel:!0,title:{english:""},videoDuration:"",isValid:0,media_url:{english:""}},dK={isPostField:!0,isValid:0,uuid:et(),componentType:"web-url",isFluid:!0,...ki,...Hi,...Oc,label:{english:"Website Url"},fieldType:{element:"web-url",type:"web-url"},attributes:{...Yi}},fK=[{label:"New Quiz",icon:"pi pi-fw pi-file",expanded:!0,items:[{label:"New Q & A",icon:"pi pi-fw pi-trash",element:"question",schema:RY,uuid:et(),type:Rn}]}],hK=[{label:"HTML",icon:"pi pi-fw pi-file",expanded:!0,items:[{label:"<a>",icon:"pi pi-fw pi-plus",element:"a",schema:ST,uuid:et(),type:Rn},{label:"<p>",icon:"pi pi-fw pi-trash",element:"paragraph",schema:IT,uuid:et(),type:Rn},{label:"Table",icon:"pi pi-fw pi-external-link",element:"table",schema:oK,uuid:et(),type:Rn},{label:"<heading>",icon:"pi pi-fw pi-external-link",element:"h",schema:AT,uuid:et(),type:Rn},{label:"divider",icon:"pi pi-fw pi-external-link",element:"hr",schema:wT,uuid:et(),type:Rn},{label:"Signature",icon:"pi pi-fw pi-trash",element:"signature",schema:OT,uuid:et(),type:Rn},{label:"Image",icon:"pi pi-fw pi-user-plus",element:"image",schema:v9,uuid:et(),type:Rn},{label:"Image Gallery",icon:"pi pi-fw pi-user-plus",element:"image-gallery",schema:xT,uuid:et(),type:Rn},{label:"Video",icon:"pi pi-fw pi-user-minus",element:"video",schema:b9,uuid:et(),type:Rn}]}];function pK(t){if(Array.isArray(t))return t}function gK(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 y9(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function PT(t,e){if(t){if(typeof t=="string")return y9(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)?y9(t,e):void 0}}function mK(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
28
28
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function zm(t,e){return pK(t)||gK(t,e)||PT(t,e)||mK()}function Ns(t){"@babel/helpers - typeof";return Ns=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},Ns(t)}function dt(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];if(e){for(var r=[],i=0;i<e.length;i++){var a=e[i];if(a){var s=Ns(a);if(s==="string"||s==="number")r.push(a);else if(s==="object"){var l=Array.isArray(a)?a:Object.entries(a).map(function(c){var u=zm(c,2),d=u[0],f=u[1];return f?d:null});r=l.length?r.concat(l.filter(function(c){return!!c})):r}}}return r.join(" ").trim()}}function vK(t){if(Array.isArray(t))return y9(t)}function bK(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function yK(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
29
29
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Hm(t){return vK(t)||bK(t)||PT(t)||yK()}function A9(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function AK(t,e){if(Ns(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Ns(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function MT(t){var e=AK(t,"string");return Ns(e)=="symbol"?e:e+""}function wK(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,MT(r.key),r)}}function w9(t,e,n){return n&&wK(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function Fp(t,e,n){return(e=MT(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function S9(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=SK(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.
30
30
  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 SK(t,e){if(t){if(typeof t=="string")return LT(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)?LT(t,e):void 0}}function LT(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 Ce=function(){function t(){A9(this,t)}return w9(t,null,[{key:"innerWidth",value:function(n){if(n){var r=n.offsetWidth,i=getComputedStyle(n);return r=r+(parseFloat(i.paddingLeft)+parseFloat(i.paddingRight)),r}return 0}},{key:"width",value:function(n){if(n){var r=n.offsetWidth,i=getComputedStyle(n);return r=r-(parseFloat(i.paddingLeft)+parseFloat(i.paddingRight)),r}return 0}},{key:"getBrowserLanguage",value:function(){return navigator.userLanguage||navigator.languages&&navigator.languages.length&&navigator.languages[0]||navigator.language||navigator.browserLanguage||navigator.systemLanguage||"en"}},{key:"getWindowScrollTop",value:function(){var n=document.documentElement;return(window.pageYOffset||n.scrollTop)-(n.clientTop||0)}},{key:"getWindowScrollLeft",value:function(){var n=document.documentElement;return(window.pageXOffset||n.scrollLeft)-(n.clientLeft||0)}},{key:"getOuterWidth",value:function(n,r){if(n){var i=n.getBoundingClientRect().width||n.offsetWidth;if(r){var a=getComputedStyle(n);i=i+(parseFloat(a.marginLeft)+parseFloat(a.marginRight))}return i}return 0}},{key:"getOuterHeight",value:function(n,r){if(n){var i=n.getBoundingClientRect().height||n.offsetHeight;if(r){var a=getComputedStyle(n);i=i+(parseFloat(a.marginTop)+parseFloat(a.marginBottom))}return i}return 0}},{key:"getClientHeight",value:function(n,r){if(n){var i=n.clientHeight;if(r){var a=getComputedStyle(n);i=i+(parseFloat(a.marginTop)+parseFloat(a.marginBottom))}return i}return 0}},{key:"getClientWidth",value:function(n,r){if(n){var i=n.clientWidth;if(r){var a=getComputedStyle(n);i=i+(parseFloat(a.marginLeft)+parseFloat(a.marginRight))}return i}return 0}},{key:"getViewport",value:function(){var n=window,r=document,i=r.documentElement,a=r.getElementsByTagName("body")[0],s=n.innerWidth||i.clientWidth||a.clientWidth,l=n.innerHeight||i.clientHeight||a.clientHeight;return{width:s,height:l}}},{key:"getOffset",value:function(n){if(n){var r=n.getBoundingClientRect();return{top:r.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),left:r.left+(window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0)}}return{top:"auto",left:"auto"}}},{key:"index",value:function(n){if(n)for(var r=n.parentNode.childNodes,i=0,a=0;a<r.length;a++){if(r[a]===n)return i;r[a].nodeType===1&&i++}return-1}},{key:"addMultipleClasses",value:function(n,r){if(n&&r)if(n.classList)for(var i=r.split(" "),a=0;a<i.length;a++)n.classList.add(i[a]);else for(var s=r.split(" "),l=0;l<s.length;l++)n.className=n.className+(" "+s[l])}},{key:"removeMultipleClasses",value:function(n,r){if(n&&r)if(n.classList)for(var i=r.split(" "),a=0;a<i.length;a++)n.classList.remove(i[a]);else for(var s=r.split(" "),l=0;l<s.length;l++)n.className=n.className.replace(new RegExp("(^|\\b)"+s[l].split(" ").join("|")+"(\\b|$)","gi")," ")}},{key:"addClass",value:function(n,r){n&&r&&(n.classList?n.classList.add(r):n.className=n.className+(" "+r))}},{key:"removeClass",value:function(n,r){n&&r&&(n.classList?n.classList.remove(r):n.className=n.className.replace(new RegExp("(^|\\b)"+r.split(" ").join("|")+"(\\b|$)","gi")," "))}},{key:"hasClass",value:function(n,r){return n?n.classList?n.classList.contains(r):new RegExp("(^| )"+r+"( |$)","gi").test(n.className):!1}},{key:"addStyles",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};n&&Object.entries(r).forEach(function(i){var a=zm(i,2),s=a[0],l=a[1];return n.style[s]=l})}},{key:"find",value:function(n,r){return n?Array.from(n.querySelectorAll(r)):[]}},{key:"findSingle",value:function(n,r){return n?n.querySelector(r):null}},{key:"setAttributes",value:function(n){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(n){var a=function(l,c){var u,d,f=n!=null&&(u=n.$attrs)!==null&&u!==void 0&&u[l]?[n==null||(d=n.$attrs)===null||d===void 0?void 0:d[l]]:[];return[c].flat().reduce(function(h,g){if(g!=null){var v=Ns(g);if(v==="string"||v==="number")h.push(g);else if(v==="object"){var m=Array.isArray(g)?a(l,g):Object.entries(g).map(function(A){var w=zm(A,2),E=w[0],x=w[1];return l==="style"&&(x||x===0)?"".concat(E.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),":").concat(x):x?E:void 0});h=m.length?h.concat(m.filter(function(A){return!!A})):h}}return h},f)};Object.entries(i).forEach(function(s){var l=zm(s,2),c=l[0],u=l[1];if(u!=null){var d=c.match(/^on(.+)/);d?n.addEventListener(d[1].toLowerCase(),u):c==="p-bind"?r.setAttributes(n,u):(u=c==="class"?Hm(new Set(a("class",u))).join(" ").trim():c==="style"?a("style",u).join(";").trim():u,(n.$attrs=n.$attrs||{})&&(n.$attrs[c]=u),n.setAttribute(c,u))}})}}},{key:"getAttribute",value:function(n,r){if(n){var i=n.getAttribute(r);return isNaN(i)?i==="true"||i==="false"?i==="true":i:+i}}},{key:"isAttributeEquals",value:function(n,r,i){return n?this.getAttribute(n,r)===i:!1}},{key:"isAttributeNotEquals",value:function(n,r,i){return!this.isAttributeEquals(n,r,i)}},{key:"getHeight",value:function(n){if(n){var r=n.offsetHeight,i=getComputedStyle(n);return r=r-(parseFloat(i.paddingTop)+parseFloat(i.paddingBottom)+parseFloat(i.borderTopWidth)+parseFloat(i.borderBottomWidth)),r}return 0}},{key:"getWidth",value:function(n){if(n){var r=n.offsetWidth,i=getComputedStyle(n);return r=r-(parseFloat(i.paddingLeft)+parseFloat(i.paddingRight)+parseFloat(i.borderLeftWidth)+parseFloat(i.borderRightWidth)),r}return 0}},{key:"alignOverlay",value:function(n,r,i){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0;n&&r&&(i==="self"?this.relativePosition(n,r):(a&&(n.style.minWidth=t.getOuterWidth(r)+"px"),this.absolutePosition(n,r)))}},{key:"absolutePosition",value:function(n,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"left";if(n&&r){var a=n.offsetParent?{width:n.offsetWidth,height:n.offsetHeight}:this.getHiddenElementDimensions(n),s=a.height,l=a.width,c=r.offsetHeight,u=r.offsetWidth,d=r.getBoundingClientRect(),f=this.getWindowScrollTop(),h=this.getWindowScrollLeft(),g=this.getViewport(),v,m;d.top+c+s>g.height?(v=d.top+f-s,v<0&&(v=f),n.style.transformOrigin="bottom"):(v=c+d.top+f,n.style.transformOrigin="top");var A=d.left,w=i==="left"?0:l-u;A+u+l>g.width?m=Math.max(0,A+h+u-l):m=A-w+h,n.style.top=v+"px",n.style.left=m+"px"}}},{key:"relativePosition",value:function(n,r){if(n&&r){var i=n.offsetParent?{width:n.offsetWidth,height:n.offsetHeight}:this.getHiddenElementDimensions(n),a=r.offsetHeight,s=r.getBoundingClientRect(),l=this.getViewport(),c,u;s.top+a+i.height>l.height?(c=-1*i.height,s.top+c<0&&(c=-1*s.top),n.style.transformOrigin="bottom"):(c=a,n.style.transformOrigin="top"),i.width>l.width?u=s.left*-1:s.left+i.width>l.width?u=(s.left+i.width-l.width)*-1:u=0,n.style.top=c+"px",n.style.left=u+"px"}}},{key:"flipfitCollision",value:function(n,r){var i=this,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"left top",s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"left bottom",l=arguments.length>4?arguments[4]:void 0;if(n&&r){var c=r.getBoundingClientRect(),u=this.getViewport(),d=a.split(" "),f=s.split(" "),h=function(w,E){return E?+w.substring(w.search(/(\+|-)/g))||0:w.substring(0,w.search(/(\+|-)/g))||w},g={my:{x:h(d[0]),y:h(d[1]||d[0]),offsetX:h(d[0],!0),offsetY:h(d[1]||d[0],!0)},at:{x:h(f[0]),y:h(f[1]||f[0]),offsetX:h(f[0],!0),offsetY:h(f[1]||f[0],!0)}},v={left:function(){var w=g.my.offsetX+g.at.offsetX;return w+c.left+(g.my.x==="left"?0:-1*(g.my.x==="center"?i.getOuterWidth(n)/2:i.getOuterWidth(n)))},top:function(){var w=g.my.offsetY+g.at.offsetY;return w+c.top+(g.my.y==="top"?0:-1*(g.my.y==="center"?i.getOuterHeight(n)/2:i.getOuterHeight(n)))}},m={count:{x:0,y:0},left:function(){var w=v.left(),E=t.getWindowScrollLeft();n.style.left=w+E+"px",this.count.x===2?(n.style.left=E+"px",this.count.x=0):w<0&&(this.count.x++,g.my.x="left",g.at.x="right",g.my.offsetX*=-1,g.at.offsetX*=-1,this.right())},right:function(){var w=v.left()+t.getOuterWidth(r),E=t.getWindowScrollLeft();n.style.left=w+E+"px",this.count.x===2?(n.style.left=u.width-t.getOuterWidth(n)+E+"px",this.count.x=0):w+t.getOuterWidth(n)>u.width&&(this.count.x++,g.my.x="right",g.at.x="left",g.my.offsetX*=-1,g.at.offsetX*=-1,this.left())},top:function(){var w=v.top(),E=t.getWindowScrollTop();n.style.top=w+E+"px",this.count.y===2?(n.style.left=E+"px",this.count.y=0):w<0&&(this.count.y++,g.my.y="top",g.at.y="bottom",g.my.offsetY*=-1,g.at.offsetY*=-1,this.bottom())},bottom:function(){var w=v.top()+t.getOuterHeight(r),E=t.getWindowScrollTop();n.style.top=w+E+"px",this.count.y===2?(n.style.left=u.height-t.getOuterHeight(n)+E+"px",this.count.y=0):w+t.getOuterHeight(r)>u.height&&(this.count.y++,g.my.y="bottom",g.at.y="top",g.my.offsetY*=-1,g.at.offsetY*=-1,this.top())},center:function(w){if(w==="y"){var E=v.top()+t.getOuterHeight(r)/2;n.style.top=E+t.getWindowScrollTop()+"px",E<0?this.bottom():E+t.getOuterHeight(r)>u.height&&this.top()}else{var x=v.left()+t.getOuterWidth(r)/2;n.style.left=x+t.getWindowScrollLeft()+"px",x<0?this.left():x+t.getOuterWidth(n)>u.width&&this.right()}}};m[g.at.x]("x"),m[g.at.y]("y"),this.isFunction(l)&&l(g)}}},{key:"findCollisionPosition",value:function(n){if(n){var r=n==="top"||n==="bottom",i=n==="left"?"right":"left",a=n==="top"?"bottom":"top";return r?{axis:"y",my:"center ".concat(a),at:"center ".concat(n)}:{axis:"x",my:"".concat(i," center"),at:"".concat(n," center")}}}},{key:"getParents",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return n.parentNode===null?r:this.getParents(n.parentNode,r.concat([n.parentNode]))}},{key:"getScrollableParents",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,i=[];if(n){var a=this.getParents(n),s=/(auto|scroll)/,l=function(x){var C=x?getComputedStyle(x):null;return C&&(s.test(C.getPropertyValue("overflow"))||s.test(C.getPropertyValue("overflow-x"))||s.test(C.getPropertyValue("overflow-y")))},c=function(x){r?i.push(x.nodeName==="BODY"||x.nodeName==="HTML"||x.nodeType===9?window:x):i.push(x)},u=S9(a),d;try{for(u.s();!(d=u.n()).done;){var f=d.value,h=f.nodeType===1&&f.dataset.scrollselectors;if(h){var g=h.split(","),v=S9(g),m;try{for(v.s();!(m=v.n()).done;){var A=m.value,w=this.findSingle(f,A);w&&l(w)&&c(w)}}catch(E){v.e(E)}finally{v.f()}}f.nodeType===1&&l(f)&&c(f)}}catch(E){u.e(E)}finally{u.f()}}return i.some(function(E){return E===document.body||E===window})||i.push(window),i}},{key:"getHiddenElementOuterHeight",value:function(n){if(n){n.style.visibility="hidden",n.style.display="block";var r=n.offsetHeight;return n.style.display="none",n.style.visibility="visible",r}return 0}},{key:"getHiddenElementOuterWidth",value:function(n){if(n){n.style.visibility="hidden",n.style.display="block";var r=n.offsetWidth;return n.style.display="none",n.style.visibility="visible",r}return 0}},{key:"getHiddenElementDimensions",value:function(n){var r={};return n&&(n.style.visibility="hidden",n.style.display="block",r.width=n.offsetWidth,r.height=n.offsetHeight,n.style.display="none",n.style.visibility="visible"),r}},{key:"fadeIn",value:function(n,r){if(n){n.style.opacity=0;var i=+new Date,a=0,s=function(){a=+n.style.opacity+(new Date().getTime()-i)/r,n.style.opacity=a,i=+new Date,+a<1&&(window.requestAnimationFrame&&requestAnimationFrame(s)||setTimeout(s,16))};s()}}},{key:"fadeOut",value:function(n,r){if(n)var i=1,a=50,s=a/r,l=setInterval(function(){i=i-s,i<=0&&(i=0,clearInterval(l)),n.style.opacity=i},a)}},{key:"getUserAgent",value:function(){return navigator.userAgent}},{key:"isIOS",value:function(){return/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream}},{key:"isAndroid",value:function(){return/(android)/i.test(navigator.userAgent)}},{key:"isChrome",value:function(){return/(chrome)/i.test(navigator.userAgent)}},{key:"isClient",value:function(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}},{key:"isTouchDevice",value:function(){return"ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0}},{key:"isFunction",value:function(n){return!!(n&&n.constructor&&n.call&&n.apply)}},{key:"appendChild",value:function(n,r){if(this.isElement(r))r.appendChild(n);else if(r.el&&r.el.nativeElement)r.el.nativeElement.appendChild(n);else throw new Error("Cannot append "+r+" to "+n)}},{key:"removeChild",value:function(n,r){if(this.isElement(r))r.removeChild(n);else if(r.el&&r.el.nativeElement)r.el.nativeElement.removeChild(n);else throw new Error("Cannot remove "+n+" from "+r)}},{key:"isElement",value:function(n){return(typeof HTMLElement>"u"?"undefined":Ns(HTMLElement))==="object"?n instanceof HTMLElement:n&&Ns(n)==="object"&&n!==null&&n.nodeType===1&&typeof n.nodeName=="string"}},{key:"scrollInView",value:function(n,r){var i=getComputedStyle(n).getPropertyValue("border-top-width"),a=i?parseFloat(i):0,s=getComputedStyle(n).getPropertyValue("padding-top"),l=s?parseFloat(s):0,c=n.getBoundingClientRect(),u=r.getBoundingClientRect(),d=u.top+document.body.scrollTop-(c.top+document.body.scrollTop)-a-l,f=n.scrollTop,h=n.clientHeight,g=this.getOuterHeight(r);d<0?n.scrollTop=f+d:d+g>h&&(n.scrollTop=f+d-h+g)}},{key:"clearSelection",value:function(){if(window.getSelection)window.getSelection().empty?window.getSelection().empty():window.getSelection().removeAllRanges&&window.getSelection().rangeCount>0&&window.getSelection().getRangeAt(0).getClientRects().length>0&&window.getSelection().removeAllRanges();else if(document.selection&&document.selection.empty)try{document.selection.empty()}catch{}}},{key:"calculateScrollbarWidth",value:function(n){if(n){var r=getComputedStyle(n);return n.offsetWidth-n.clientWidth-parseFloat(r.borderLeftWidth)-parseFloat(r.borderRightWidth)}if(this.calculatedScrollbarWidth!=null)return this.calculatedScrollbarWidth;var i=document.createElement("div");i.className="p-scrollbar-measure",document.body.appendChild(i);var a=i.offsetWidth-i.clientWidth;return document.body.removeChild(i),this.calculatedScrollbarWidth=a,a}},{key:"calculateBodyScrollbarWidth",value:function(){return window.innerWidth-document.documentElement.offsetWidth}},{key:"getBrowser",value:function(){if(!this.browser){var n=this.resolveUserAgent();this.browser={},n.browser&&(this.browser[n.browser]=!0,this.browser.version=n.version),this.browser.chrome?this.browser.webkit=!0:this.browser.webkit&&(this.browser.safari=!0)}return this.browser}},{key:"resolveUserAgent",value:function(){var n=navigator.userAgent.toLowerCase(),r=/(chrome)[ ]([\w.]+)/.exec(n)||/(webkit)[ ]([\w.]+)/.exec(n)||/(opera)(?:.*version|)[ ]([\w.]+)/.exec(n)||/(msie) ([\w.]+)/.exec(n)||n.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(n)||[];return{browser:r[1]||"",version:r[2]||"0"}}},{key:"blockBodyScroll",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"p-overflow-hidden",r=!!document.body.style.getPropertyValue("--scrollbar-width");!r&&document.body.style.setProperty("--scrollbar-width",this.calculateBodyScrollbarWidth()+"px"),this.addClass(document.body,n)}},{key:"unblockBodyScroll",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"p-overflow-hidden";document.body.style.removeProperty("--scrollbar-width"),this.removeClass(document.body,n)}},{key:"isVisible",value:function(n){return n&&(n.clientHeight!==0||n.getClientRects().length!==0||getComputedStyle(n).display!=="none")}},{key:"isExist",value:function(n){return!!(n!==null&&typeof n<"u"&&n.nodeName&&n.parentNode)}},{key:"getFocusableElements",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",i=t.find(n,'button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])'.concat(r,`,
@@ -1598,7 +1598,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
1598
1598
  }
1599
1599
  }
1600
1600
  `}}),G8=b.forwardRef(function(t,e){var n=Un(),r=b.useContext(nr),i=I3.getProps(t,r),a=b.useState(i.id),s=__(a,2),l=s[0],c=s[1],u=b.useState(i.collapsed),d=__(u,2),f=d[0],h=d[1],g=i.toggleable?i.onToggle?i.collapsed:f:!1,v=b.useRef(null),m=b.useRef(null),A=l+"_header",w=l+"_content",E=I3.setMetaData({props:i,state:{id:l,collapsed:g}}),x=E.ptm,C=E.cx,S=E.isUnstyled;ci(I3.css.styles,S,{name:"fieldset"});var _=function(Q){i.toggleable&&(g?I(Q):F(Q),i.onToggle&&i.onToggle({originalEvent:Q,value:!g})),Q.preventDefault()},I=function(Q){i.onToggle||h(!1),i.onExpand&&i.onExpand(Q)},F=function(Q){i.onToggle||h(!0),i.onCollapse&&i.onCollapse(Q)};Pi(function(){i.id||c(el())});var M=function(Q){(Q.code==="Enter"||Q.code==="NumpadEnter"||Q.code==="Space")&&(_(Q),Q.preventDefault())},L=function(){var Q=n({className:C("content")},x("content")),ce=n({ref:m,id:w,role:"region","aria-labelledby":A,className:C("toggleableContent")},x("toggleableContent")),K=n({classNames:C("transition"),timeout:{enter:1e3,exit:450},in:!g,unmountOnExit:!0,options:i.transitionOptions},x("transition"));return b.createElement(tl,E3({nodeRef:m},K),b.createElement("div",ce,b.createElement("div",Q,i.children)))},V=function(){if(i.toggleable){var Q=n({className:C("togglericon")},x("togglericon")),ce=g?i.expandIcon||b.createElement(A3,Q):i.collapseIcon||b.createElement(R8,Q),K=Wn.getJSXIcon(ce,Q,{props:i});return K}return null},U=function(){var Q=n({className:C("legendTitle")},x("legendTitle")),ce=n({id:A,role:"button","aria-expanded":!g,"aria-controls":w,onKeyDown:M,onClick:_,"aria-label":i.legend,tabIndex:0},x("toggler"));if(i.toggleable){var K=V();return b.createElement("a",ce,K,b.createElement("span",Q,i.legend),b.createElement(tn,null))}return b.createElement("span",E3({},Q,{id:A}),i.legend)},O=function(){var Q=n({className:C("legend")},x("legend"));if(i.legend!=null||i.toggleable){var ce=U();return b.createElement("legend",Q,ce)}};b.useImperativeHandle(e,function(){return{props:i,getElement:function(){return v.current},getContent:function(){return m.current}}});var q=n({id:l,ref:v,style:i.style,className:dt(i.className,C("root")),onClick:i.onClick},I3.getOtherProps(i),x("root")),ie=O(),ge=L();return b.createElement("fieldset",q,ie,ge)});G8.displayName="Fieldset";const hQ=t=>o.jsx(sn,{target:`.${t==null?void 0:t.element}`,position:"right",children:o.jsxs("div",{style:{width:400},className:"m-3",children:[o.jsx("div",{className:"text-900 font-medium text-2xl mb-2",children:t==null?void 0:t.label}),o.jsx("div",{children:"Dynamic Listing Component"}),o.jsx(ra,{}),o.jsxs("div",{className:"p-fluid",children:[o.jsx("label",{children:t==null?void 0:t.label}),o.jsxs("div",{children:[o.jsxs(G8,{children:[o.jsx("div",{className:"pi pi-circle",children:" Option 1"}),o.jsx("br",{})]}),o.jsx("br",{}),o.jsx(G8,{children:o.jsx("div",{className:"pi pi-circle",children:" Option 2"})})]})]})]})}),pQ=t=>o.jsx(sn,{target:`.${t==null?void 0:t.element}`,position:"right",children:o.jsxs("div",{style:{width:400},className:"m-3",children:[o.jsx("div",{className:"text-900 font-medium text-2xl mb-2",children:t==null?void 0:t.label}),o.jsx("div",{children:"Documents"}),o.jsx(ra,{}),o.jsxs("div",{className:"p-fluid",children:[o.jsx("label",{children:t==null?void 0:t.label}),o.jsxs("div",{children:["1.Hr Cv.docx",o.jsx("br",{}),"2.Readme.txt",o.jsx("br",{}),"3.Cover.jpg"]})]})]})}),gQ=[{label:"Free form inputs",icon:"pi pi-fw pi-file",expanded:!0,items:[{label:"Text",icon:"pi pi-fw pi-plus",element:"input",schema:nK,uuid:et(),type:Rn,toolTip:t=>kX(t)},{label:"Number",icon:"pi pi-fw pi-trash",element:"number",schema:tK,uuid:et(),type:Rn,toolTip:t=>PX(t)},{label:"Email",icon:"pi pi-fw pi-external-link",element:"email",schema:eK,uuid:et(),type:Rn,toolTip:t=>MX(t)},{label:"Text Area",icon:"pi pi-fw pi-external-link",element:"textArea",schema:lK,uuid:et(),type:Rn,toolTip:t=>LX(t)},{label:"Text Editor",icon:"pi pi-fw pi-external-link",element:"textHtmlEditor",schema:ZY,uuid:et(),type:Rn,toolTip:t=>BX(t)},{label:"Date Picker",icon:"pi pi-fw pi-user-plus",element:"date-picker",schema:KY,uuid:et(),type:Rn,toolTip:t=>LR(t)},{label:"Draw Signature",icon:"pi pi-fw pi-trash",element:"signature",schema:OT,uuid:et(),type:Rn,toolTip:t=>$R(t)},{label:"Type Signature",icon:"pi pi-fw pi-trash",element:"type-signature",schema:cK,uuid:et(),type:Rn,toolTip:t=>jR(t)},{label:"File Upload",icon:"pi pi-fw pi-trash",element:"file-upload",schema:WY,uuid:et(),type:Rn,toolTip:t=>zR(t)},{label:"Phone Number",icon:"pi pi-fw pi-trash",element:"phone",schema:iK,uuid:et(),type:Rn,PhoneNumberToolTip:PE,toolTip:t=>PE(t)},{label:"Website Url",icon:"pi pi-fw pi-trash",element:"web-url",schema:dK,uuid:et(),type:Rn,toolTip:t=>YR(t)},{label:"Hidden Field",icon:"pi pi-fw pi-trash",element:"hidden-field",schema:JY,uuid:et(),type:Rn,toolTip:t=>xG(t)},{label:"Address",icon:"pi pi-fw pi-trash",element:"address",schema:HY,uuid:et(),type:Rn,toolTip:t=>CG(t)},{label:"Grid Component",icon:"pi pi-fw pi-trash",element:"grid-component",schema:QY,uuid:et(),type:Rn,toolTip:t=>oQ(t)},{label:"Matrix Dropdown",icon:"pi pi-fw pi-trash",element:"matrix-dropdown",schema:rK,uuid:et(),type:Rn,toolTip:t=>lQ(t)}]},{label:"Controlled inputs",icon:"pi pi-fw pi-pencil",items:[{label:"Countries",icon:"pi pi-fw pi-align-left",element:"country",schema:bT,uuid:et(),type:Rn,toolTip:t=>x_(t)},{label:"Dropdown",icon:"pi pi-fw pi-align-left",element:"select",schema:NT,uuid:et(),type:Rn,toolTip:t=>C_(t)},{label:"Multi Select",icon:"pi pi-fw pi-align-right",element:"multi-select",schema:ET,uuid:et(),type:Rn,toolTip:t=>T_(t)},{label:"CheckBox",icon:"pi pi-fw pi-align-left",element:"checkbox",schema:vT,uuid:et(),type:Rn,toolTip:t=>E_(t)},{label:"Radio Button",icon:"pi pi-fw pi-align-left",element:"radio",schema:_T,uuid:et(),type:Rn,toolTip:t=>K8(t)},{label:"Hierarchal Radio",icon:"pi pi-fw pi-align-left",element:"radio-hierarchal",schema:sK,uuid:et(),type:Rn,toolTip:t=>K8(t)},{label:"Dynamic Radio",icon:"pi pi-fw pi-align-left",element:"dynamic-listing",schema:XY,uuid:et(),type:Rn,toolTip:t=>hQ(t)}]},{label:"Rating Inputs",icon:"pi pi-fw pi-pencil",items:[{label:"Likert Scale",icon:"pi pi-fw pi-trash",element:"likert-scale",schema:TT,uuid:et(),type:Rn,toolTip:t=>v8(t)},{label:"Slider",icon:"pi pi-fw pi-trash",element:"slider",schema:FT,uuid:et(),type:Rn,toolTip:t=>HE(t)},{label:"Rating",icon:"pi pi-fw pi-trash",element:"rating",schema:DT,uuid:et(),type:Rn,toolTip:t=>$E(t)},{label:"Thumbs Up and Down",icon:"pi pi-fw pi-align-left",element:"thumbs",schema:kT,uuid:et(),type:Rn,toolTip:t=>wG(t)},{label:"Likert Emoji Scale",icon:"pi pi-fw pi-align-left",element:"likert-emoji-scale",schema:CT,uuid:et(),type:Rn,toolTip:t=>SG(t)}]},{label:"Social Logins",icon:"pi pi-fw pi-pencil",items:[{label:"Facebook Login",icon:"pi pi-fw pi-trash",element:"facebook-login",schema:GY,uuid:et(),type:Rn,toolTip:t=>v8(t)}]},{label:"Media",icon:"pi pi-fw pi-user",items:[{label:"Document",icon:"pi pi-fw pi-trash",element:"document",schema:yT,uuid:et(),type:Rn,toolTip:t=>pQ(t)}]}],mQ=[{label:"HTML",icon:"pi pi-fw pi-file",expanded:!0,items:[{label:"<a>",icon:"pi pi-fw pi-plus",element:"a",schema:ST,uuid:et(),type:Rn},{label:"<p>",icon:"pi pi-fw pi-trash",element:"paragraph",schema:IT,uuid:et(),type:Rn},{label:"<heading>",icon:"pi pi-fw pi-external-link",element:"h",schema:AT,uuid:et(),type:Rn},{label:"<li>",icon:"pi pi-fw pi-external-link",element:"list",schema:uK,uuid:et(),type:Rn},{label:"divider",icon:"pi pi-fw pi-external-link",element:"hr",schema:wT,uuid:et(),type:Rn},{label:"Image",icon:"pi pi-fw pi-user-plus",element:"image",schema:v9,uuid:et(),type:Rn},{label:"Image Gallery",icon:"pi pi-fw pi-user-plus",element:"image-gallery",schema:xT,uuid:et(),type:Rn},{label:"Video",icon:"pi pi-fw pi-user-minus",element:"video",schema:b9,uuid:et(),type:Rn}]}],vQ=[{label:"Controlled inputs",icon:"pi pi-fw pi-pencil",items:[{label:"Countries",icon:"pi pi-fw pi-align-left",element:"country",schema:bT,uuid:et(),type:Rn,toolTip:t=>x_(t)},{label:"Dropdown",icon:"pi pi-fw pi-align-left",element:"select",schema:NT,uuid:et(),type:Rn,toolTip:t=>C_(t)},{label:"Multi Select",icon:"pi pi-fw pi-align-right",element:"multi-select",schema:ET,uuid:et(),type:Rn,toolTip:t=>T_(t)},{label:"CheckBox",icon:"pi pi-fw pi-align-left",element:"checkbox",schema:vT,uuid:et(),type:Rn,toolTip:t=>E_(t)},{label:"Radio Button",icon:"pi pi-fw pi-align-left",element:"radio",schema:_T,uuid:et(),type:Rn,toolTip:t=>K8(t)}]},{label:"Rating Inputs",icon:"pi pi-fw pi-pencil",items:[{label:"Likert Scale",icon:"pi pi-fw pi-trash",element:"likert-scale",schema:TT,uuid:et(),type:Rn,toolTip:t=>v8(t)},{label:"Slider",icon:"pi pi-fw pi-trash",element:"slider",schema:FT,uuid:et(),type:Rn,toolTip:t=>HE(t)},{label:"Rating",icon:"pi pi-fw pi-trash",element:"rating",schema:DT,uuid:et(),type:Rn,toolTip:t=>$E(t)},{label:"Thumbs Up and Down",icon:"pi pi-fw pi-align-left",element:"thumbs",schema:kT,uuid:et(),type:Rn},{label:"Likert Emoji Scale",icon:"pi pi-fw pi-align-left",element:"likert-emoji-scale",schema:CT,uuid:et(),type:Rn}]}],bQ=[{label:"Media",icon:"pi pi-fw pi-user",items:[{label:"Image",icon:"pi pi-fw pi-user-plus",element:"image",schema:v9,uuid:et(),type:Rn},{label:"Video",icon:"pi pi-fw pi-user-minus",element:"video",schema:b9,uuid:et(),type:Rn},{label:"Quiz",icon:"pi pi-fw pi-trash",element:"quiz",schema:aK,uuid:et(),type:Rn},{label:"Document",icon:"pi pi-fw pi-trash",element:"document",schema:yT,uuid:et(),type:Rn}]}],yQ=[{label:"Left",icon:"pi pi-align-left",value:"left"},{label:"Right",icon:"pi pi-align-right",value:"right"}],AQ=[{key:1,language:"English",type:"english"},{key:2,language:"Urdu",type:"urdu"},{key:3,language:"Hindi",type:"hindi"},{key:4,language:"Arabic",type:"arabic"},{key:5,language:"French",type:"french"},{key:6,language:"Italian",type:"italian"},{key:7,language:"Spanish",type:"spanish"}],wQ=[{name:"Bad Script",font:"bad-script"},{name:"Bilbo Swash Caps",font:"bilbo-swash-caps"},{name:"caveat",font:"caveat"},{name:"Covered By Your Grace",font:"covered-by-your-grace"},{name:"Dancing Script",font:"dancing-script"},{name:"Gochi Hand",font:"gochi-hand"},{name:"Great Vibes",font:"great-vibes"},{name:"Handlee",font:"handlee"},{name:"Just Another Hand",font:"just-another-hand"},{name:"Kalam",font:"kalam"},{name:"La Belle Aurore",font:"la-belle-aurore"},{name:"Marck Script",font:"marck-script"},{name:"Nothing You Could Do",font:"nothing-you-could-do"},{name:"Qwigley",font:"qwigley"},{name:"Sacramento",font:"sacramento"},{name:"Shadows Into Light",font:"shadows-into-light"},{name:"Stalemate",font:"stalemate"},{name:"Yellowtail",font:"yellowtail"}],_3={type:fT,isCoverPage:!1,margin:{left:0,right:0,top:0,bottom:0},isVisible:!0,isHidden:!1,isValid:!1,displayRules:[],title:{english:"Page 1"}},kf={type:na,showSectionHeader:!1,isVisible:!0,isHidden:!1,isValid:!1,showSectionTitle:!1,showSectionSubTitle:!1,heading:{english:"Section header"},subHeadingText:{english:""},isCollapsed:!1},mu={type:Oo,isHidden:!1,isValid:!1,isRequired:!1,isCollapsed:!1,showRowTitle:!0,showRowSubTitle:!0,heading:{english:""},subHeadingText:{english:""},rowIsRepeatable:!1,repeatableFields:[],repeatableFieldsData:[],isMinimumEntries:!1,minimumEntries:5,addToListButtonLabel:{english:"Add To List"},reviewerChecklist:[]},Bc={type:ws,isCollapsed:!1},SQ=t=>{let e=t;e={...e,uuid:et()};const n=e.children.map(r=>({...r,uuid:et(),children:r.children.map(i=>({...i,uuid:et(),children:i.children.map(a=>{var s;return{...a,uuid:et(),...((s=a==null?void 0:a.children)==null?void 0:s.length)>0?{children:a.children.map(l=>{var c;return{...l,uuid:et(),...((c=l.options)==null?void 0:c.length)>0?{options:l.options.map(u=>({...u,uuid:et()}))}:{}}})}:{}}})}))}));return e={...e,children:n},e};function xQ(t){return e=>{const n={..._3,uuid:et(),title:{english:`Page ${t+1}`},children:[{...kf,uuid:et(),children:[{...mu,uuid:et(),children:[{...Bc,uuid:et(),children:[]}]}]}]};e({type:HC,payLoad:n})}}function CQ(t){return e=>{const n=[];for(const[,i]of t.entries())for(const[,a]of i.children.entries())for(const[,s]of a.children.entries())for(const[,l]of s.children.entries())for(const[,c]of l.children.entries())s!=null&&s.rowIsRepeatable||n.push(c);e({type:cT,payLoad:{tableFields:n}})}}function TQ(t,e){return(n,r)=>{const i=t;let a=It.cloneDeep(i);const{layout:s}=r;a={...a,title:{english:`Page ${(s==null?void 0:s.length)+1}`}},a=SQ(a),n({type:RC,payLoad:{page:a,pageIndex:e}})}}function EQ(t,e){return n=>{n({type:lT,payLoad:{pageIndex:t,page:e}})}}function IQ(t){return e=>{e({type:BC,payLoad:{pageIndex:t}})}}const D_=t=>{let e=t;e={...e,uuid:et()};const n=e.children.map(r=>({...r,uuid:et(),children:r.children.map(i=>{var a;return{...i,uuid:et(),...((a=i==null?void 0:i.children)==null?void 0:a.length)>0?{children:i.children.map(s=>{var l;return{...s,uuid:et(),...((l=s.options)==null?void 0:l.length)>0?{options:s.options.map(c=>({...c,uuid:et()}))}:{}}})}:{}}})}));return e={...e,children:n},e};function _Q(t,e){return n=>{n({type:VC,payLoad:{pageIndex:t,sectionIndex:e}})}}function DQ(t){return e=>{const n={...kf,uuid:et(),children:[{...mu,uuid:et(),children:[{...Bc,uuid:et(),children:[]}]}]};e({type:YC,payLoad:{pageIndex:t,section:n}})}}function NQ(t,e,n){return r=>{r({type:zC,payLoad:{pageIndex:t,sectionIndex:e,section:n}})}}function OQ(t,e,n){return r=>{const i=t;let a=It.cloneDeep(i);a=D_(a),r({type:GC,payLoad:{section:a,pageIndex:e,sectionIndex:n}})}}function FQ(t,e){return n=>{const r=t;let i=It.cloneDeep(r);i=D_(i),n({type:WC,payLoad:{section:i,pageIndex:e}})}}const kQ=t=>{let e=t;e={...e,uuid:et()};const n=e.children.map(r=>{var i;return{...r,uuid:et(),...((i=r==null?void 0:r.children)==null?void 0:i.length)>0?{children:r.children.map(a=>{var s;return{...a,uuid:et(),...((s=a.options)==null?void 0:s.length)>0?{options:a.options.map(l=>({...l,uuid:et()}))}:{}}})}:{}}});return e={...e,children:n},e};function PQ(t,e,n,r){return i=>{const a=t;let s=It.cloneDeep(a);s=kQ(s),i({type:QC,payLoad:{row:s,pageIndex:e,sectionIndex:n,rowIndex:r}})}}function MQ(t,e,n,r){return i=>{i({type:h9,payLoad:{pageIndex:t,sectionIndex:e,rowIndex:n,row:r}})}}function LQ(t,e,n){return r=>{r({type:UC,payLoad:{pageIndex:t,sectionIndex:e,rowIndex:n}})}}function BQ(t,e){return n=>{const r={...mu,uuid:et(),isCollapsed:!1,children:[{...Bc,uuid:et(),children:[]}]};n({type:KC,payLoad:{pageIndex:t,sectionIndex:e,row:r}})}}function VQ(t,e,n,r){return i=>{i({type:tT,payLoad:{pageIndex:t,sectionIndex:e,rowIndex:n,fieldItem:r}})}}const UQ=t=>{var r;let e=t;e={...e,uuid:et()};const n=((r=e==null?void 0:e.children)==null?void 0:r.length)>0?e.children.map((i,a)=>{var s;return{...i,uuid:et(),...((s=i.options)==null?void 0:s.length)>0?{options:i.options.map((l,c)=>({...l,uuid:et()}))}:{}}}):[];return e={...e,children:n},e};function qQ(t,e,n){return r=>{const i={...Bc,uuid:et(),children:[]};r({type:XC,payLoad:{pageIndex:t,sectionIndex:e,rowIndex:n,column:i}})}}function $Q(t,e,n,r,i){return a=>{const s=t;let l=It.cloneDeep(s);l=UQ(l),a({type:JC,payLoad:{column:l,pageIndex:e,sectionIndex:n,rowIndex:r,columnIndex:i}})}}function jQ(t,e,n,r){return i=>{i({type:qC,payLoad:{pageIndex:t,sectionIndex:e,rowIndex:n,columnIndex:r}})}}function N_(t,e,n,r){return i=>{i({type:h9,payLoad:{pageIndex:t,sectionIndex:e,rowIndex:n,row:r}})}}function zQ(t,e,n,r,i){return(a,s)=>{var g,v,m,A;const{layout:l,tableFields:c}=s;let u=(g=l[t])==null?void 0:g.children[e].children[n];const d=(A=(m=(v=l[t])==null?void 0:v.children[e])==null?void 0:m.children[n])==null?void 0:A.children[r].children[i];if((u==null?void 0:u.rowIsRepeatable)===!0){const w=[...u.repeatableFields],E=It.findIndex(w,function(x){return x.uuid===(d==null?void 0:d.uuid)});w.splice(E,1),u={...u,repeatableFields:w},a(N_(t,e,n,u))}const f=It.findIndex(c,function(w){return w.uuid===(d==null?void 0:d.uuid)});c.splice(f,1),a({type:$C,payLoad:{pageIndex:t,sectionIndex:e,rowIndex:n,columnIndex:r,fieldIndex:i}})}}function HQ(t,e,n,r,i,a){return(s,l)=>{var g,v,m,A;const{layout:c,tableFields:u}=l;let d=(g=c[t])==null?void 0:g.children[e].children[n];if((d==null?void 0:d.rowIsRepeatable)===!0){const w=(A=(m=(v=c[t])==null?void 0:v.children[e])==null?void 0:m.children[n])==null?void 0:A.children[r].children[i],E=[...d.repeatableFields],x=It.findIndex(E,function(C){return C.uuid===(w==null?void 0:w.uuid)});x===-1?E.splice(i,0,a):E[x]=a,E[x]=a,d={...d,repeatableFields:E},s(N_(t,e,n,d))}const f={type:jC,payLoad:{pageIndex:t,sectionIndex:e,rowIndex:n,columnIndex:r,fieldIndex:i,field:a}},h=u.findIndex(w=>w.uuid===a.uuid);h>=0&&(u[h]=a),s(f)}}function YQ(t,e,n,r,i,a){return s=>{var d;const l=t;let c=It.cloneDeep(l);if(c={...c,uuid:et()},c!=null&&c.options&&((d=c==null?void 0:c.options)==null?void 0:d.length)>0){const f=c==null?void 0:c.options.map(h=>({...h,uuid:et()}));c={...c,options:f}}s({type:ZC,payLoad:{field:c,pageIndex:e,sectionIndex:n,rowIndex:r,columnIndex:i,fieldIndex:a}})}}function KQ(t,e,n,r,i,a,s,l){return c=>{c({type:nT,payLoad:{pageIndex:t,sectionIndex:e,rowIndex:n,columnIndex:r,fieldIndex:i,ruleIndex:a,conditionIndex:s,field:l}})}}function XQ(t,e,n,r,i,a,s,l){return c=>{c({type:rT,payLoad:{pageIndex:t,sectionIndex:e,rowIndex:n,columnIndex:r,fieldIndex:i,gridColumnIndex:s,gridRowIndex:a,field:l}})}}function RQ(t,e,n,r,i,a,s,l,c){return u=>{u({type:sT,payLoad:{pageIndex:t,sectionIndex:e,rowIndex:n,columnIndex:r,fieldIndex:i,gridRowIndex:a,gridColumnIndex:s,fieldChildrenIndex:l,field:c}})}}function GQ(t,e,n,r,i,a,s,l){return c=>{c({type:oT,payLoad:{pageIndex:t,sectionIndex:e,rowIndex:n,columnIndex:r,fieldIndex:i,gridRowIndex:a,gridColumnIndex:s,fieldChildrenIndex:l}})}}function WQ(t,e,n,r,i,a,s,l,c){return u=>{u({type:iT,payLoad:{pageIndex:t,sectionIndex:e,rowIndex:n,columnIndex:r,fieldIndex:i,ruleIndex:a,conditionIndex:s,inlineFieldIndex:l,field:c}})}}function QQ(t,e,n,r,i,a,s,l){return c=>{c({type:aT,payLoad:{pageIndex:t,sectionIndex:e,rowIndex:n,columnIndex:r,fieldIndex:i,ruleIndex:a,conditionIndex:s,inlineFieldIndex:l}})}}function JQ(t){return e=>{e({type:pf,payLoad:{formSchema:t}})}}function ZQ(t){return e=>{e({type:pf,payLoad:{layout:t}})}}function eJ(t){return(e,n)=>{const{languages:r}=n,i={type:pf,payLoad:{languages:[...r,t]}};e(i)}}function tJ(t){return(e,n)=>{const{languages:r}=n,i=It.findIndex(r,l=>l.key===t.key),a=[...r];a.splice(i,1),e({type:pf,payLoad:{languages:a}})}}function nJ(t){return e=>{const n={type:pf,payLoad:{userSelectedLanguage:t.value}};e(n)}}function rJ(t){return e=>{e({type:Bm,payLoad:{formType:t}})}}function iJ(t){return e=>{e({type:Bm,payLoad:t})}}function aJ(t){return e=>{e({type:Bm,payLoad:{editing_by:t}})}}function sJ(){return t=>{t({type:eT,payLoad:null})}}const W8={loading:!1,intro:"",editing_by:0,isChangesSaved:!1,enableReviewTask:!1,enableAutoSave:!1,enableAutoSaveBuilderSetting:!1,surveyQuestionSlide:!1,enableFormFluid:!0,showConditionalFields:!0,isAdvanceView:!1,models:[],fieldMappings:[],version_name:null,showIntroTab:!1,published_status:!1,formType:null,randomiseQuestions:!1,randomiseAnswers:!1,enableNoOfAssessmentQuestions:!1,noOfAssessmentQuestions:null,tableFields:[],tableConfiguration:{stripedRows:!1,gridLines:!1,flexScroll:!1,isResponsive:!1,rowReorder:!1},builderTemplateName:"",quizConfiguration:{quizPassMark:75,quizTimeLimit:2,quizMaxAttempts:99,quizSequentialAnswer:0,isAllCorrectMandatory:!0,quizRandomiseQuestions:1,quizUniqueAnswersPerAttempt:"1"},header:[],languages:[{key:1,language:"English",type:"english"}],userSelectedLanguage:{key:1,language:"English",type:"english"},layout:[{uuid:et(),..._3,children:[{uuid:et(),...kf,children:[{uuid:et(),...mu,children:[{uuid:et(),...Bc,children:[]}]}]}]}],conditionalTabsRules:[],conditionalSectionsRules:[]},oJ=(t=W8,e)=>{var n,r;switch(e.type){case $Y:return{...t,...e.payLoad};case qY:return{...t,...e.payLoad};case eT:return{...t,...W8};case pf:return{...t,...e.payLoad};case Bm:return{...t,...e.payLoad};case BC:{const{pageIndex:i}=e.payLoad;return{...t,layout:t.layout.filter((a,s)=>s!==i)}}case HC:return{...t,layout:[...t.layout,e.payLoad]};case YC:{const{pageIndex:i,section:a}=e.payLoad,s=[...t.layout];return s[i].children=[...s[i].children,a],{...t,layout:s}}case tT:{const{pageIndex:i,sectionIndex:a,rowIndex:s,fieldItem:l}=e.payLoad,c=[...t.layout],u=Array.isArray((n=c[i].children[a].children[s])==null?void 0:n.repeatableFields)?[...((r=c[i].children[a].children[s])==null?void 0:r.repeatableFields)||[],l]:l?[l]:[];return c[i].children[a].children[s]={...c[i].children[a].children[s],repeatableFields:u},{...t,layout:c}}case jY:{const{fieldItem:i}=e.payLoad;let a=[...t.tableFields];return a=[...a,i],{...t,tableFields:a}}case cT:return{...t,...e.payLoad};case KC:{const{pageIndex:i,sectionIndex:a,row:s}=e.payLoad,l=[...t.layout];return l[i].children[a].children=[...l[i].children[a].children,s],{...t,layout:l}}case XC:{const{pageIndex:i,sectionIndex:a,rowIndex:s,column:l}=e.payLoad,c=[...t.layout];return c[i].children[a].children[s].children=[...c[i].children[a].children[s].children,l],{...t,layout:c}}case nT:{const{pageIndex:i,sectionIndex:a,rowIndex:s,columnIndex:l,fieldIndex:c,ruleIndex:u,conditionIndex:d,field:f}=e.payLoad,h=[...t.layout];return h[i].children[a].children[s].children[l].children[c].inlineConditionalRules.rules[u].conditions[d].children=[...h[i].children[a].children[s].children[l].children[c].inlineConditionalRules.rules[u].conditions[d].children,f],{...t,layout:h}}case rT:{const{pageIndex:i,sectionIndex:a,rowIndex:s,columnIndex:l,fieldIndex:c,gridRowIndex:u,gridColumnIndex:d,field:f}=e.payLoad,h=[...t.layout];return h[i].children[a].children[s].children[l].children[c].children.push({[`${u}-${d}`]:f}),{...t,layout:h}}case iT:{const{pageIndex:i,sectionIndex:a,rowIndex:s,columnIndex:l,fieldIndex:c,ruleIndex:u,conditionIndex:d,inlineFieldIndex:f,field:h}=e.payLoad,g=[...t.layout];return g[i].children[a].children[s].children[l].children[c].inlineConditionalRules.rules[u].conditions[d].children[f]=h,{...t,layout:g}}case sT:{const{pageIndex:i,sectionIndex:a,rowIndex:s,columnIndex:l,fieldIndex:c,gridRowIndex:u,gridColumnIndex:d,fieldChildrenIndex:f,field:h}=e.payLoad,g=[...t.layout];return g[i].children[a].children[s].children[l].children[c].children[f]={[`${u}-${d}`]:h},{...t,layout:g}}case aT:{const{pageIndex:i,sectionIndex:a,rowIndex:s,columnIndex:l,fieldIndex:c,ruleIndex:u,conditionIndex:d,inlineFieldIndex:f}=e.payLoad,h=[...t.layout];return h[i].children[a].children[s].children[l].children[c].inlineConditionalRules.rules[u].conditions[d].children.splice(f,1),{...t,layout:h}}case oT:{const{pageIndex:i,sectionIndex:a,rowIndex:s,columnIndex:l,fieldIndex:c,fieldChildrenIndex:u}=e.payLoad,d=[...t.layout];return d[i].children[a].children[s].children[l].children[c].children.splice(u,1),{...t,layout:d}}case VC:{const{pageIndex:i,sectionIndex:a}=e.payLoad,s=[...t.layout];return s[i].children.splice(a,1),{...t,layout:s}}case UC:{const{pageIndex:i,sectionIndex:a,rowIndex:s}=e.payLoad,l=[...t.layout];return l[i].children[a].children.splice(s,1),{...t,layout:l}}case qC:{const{pageIndex:i,sectionIndex:a,rowIndex:s,columnIndex:l}=e.payLoad,c=[...t.layout];return c[i].children[a].children[s].children.splice(l,1),{...t,layout:c}}case $C:{const{pageIndex:i,sectionIndex:a,rowIndex:s,columnIndex:l,fieldIndex:c}=e.payLoad,u=[...t.layout];return u[i].children[a].children[s].children[l].children.splice(c,1),{...t,layout:u}}case jC:{const{pageIndex:i,sectionIndex:a,rowIndex:s,columnIndex:l,fieldIndex:c,field:u}=e.payLoad,d=[...t.layout];return d[i].children[a].children[s].children[l].children[c]=u,{...t,layout:d}}case zC:{const{pageIndex:i,sectionIndex:a,section:s}=e.payLoad,l=[...t.layout];return l[i].children[a]=s,{...t,layout:l}}case h9:{const{pageIndex:i,sectionIndex:a,rowIndex:s,row:l}=e.payLoad,c=[...t.layout];return c[i].children[a].children[s]=l,{...t,layout:c}}case lT:{const{pageIndex:i,page:a}=e.payLoad,s=[...t.layout];return s[i]=a,{...t,layout:s}}case RC:{const{page:i,pageIndex:a}=e.payLoad,s=[...t.layout];return s.splice(a+1,0,i),{...t,layout:s}}case GC:{const{section:i,pageIndex:a,sectionIndex:s}=e.payLoad,l=[...t.layout];return l[a].children.splice(s+1,0,i),{...t,layout:l}}case WC:{const{section:i,pageIndex:a}=e.payLoad,s=[...t.layout];return s[a].children.push(i),{...t,layout:s}}case QC:{const{row:i,pageIndex:a,sectionIndex:s,rowIndex:l}=e.payLoad,c=[...t.layout];return c[a].children[s].children.splice(l+1,0,i),{...t,layout:c}}case JC:{const{column:i,pageIndex:a,sectionIndex:s,rowIndex:l,columnIndex:c}=e.payLoad,u=[...t.layout];return u[a].children[s].children[l].children.splice(c+1,0,i),{...t,layout:u}}case ZC:{const{field:i,pageIndex:a,sectionIndex:s,rowIndex:l,columnIndex:c,fieldIndex:u}=e.payLoad,d=[...t.layout];return d[a].children[s].children[l].children[c].children.splice(u+1,0,i),{...t,layout:d}}}return t},O_=P.createContext({dragDropManager:void 0});function vu(t){"@babel/helpers - typeof";return vu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},vu(t)}function lJ(t,e){if(vu(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(vu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function cJ(t){var e=lJ(t,"string");return vu(e)=="symbol"?e:e+""}function uJ(t,e,n){return(e=cJ(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function F_(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function k_(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?F_(Object(n),!0).forEach(function(r){uJ(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):F_(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function rc(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}var P_=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Q8=function(){return Math.random().toString(36).substring(7).split("").join(".")},M_={INIT:"@@redux/INIT"+Q8(),REPLACE:"@@redux/REPLACE"+Q8(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Q8()}};function dJ(t){if(typeof t!="object"||t===null)return!1;for(var e=t;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function fJ(t){if(t===void 0)return"undefined";if(t===null)return"null";var e=typeof t;switch(e){case"boolean":case"string":case"number":case"symbol":case"function":return e}if(Array.isArray(t))return"array";if(gJ(t))return"date";if(pJ(t))return"error";var n=hJ(t);switch(n){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return n}return e.slice(8,-1).toLowerCase().replace(/\s/g,"")}function hJ(t){return typeof t.constructor=="function"?t.constructor.name:null}function pJ(t){return t instanceof Error||typeof t.message=="string"&&t.constructor&&typeof t.constructor.stackTraceLimit=="number"}function gJ(t){return t instanceof Date?!0:typeof t.toDateString=="function"&&typeof t.getDate=="function"&&typeof t.setDate=="function"}function Pf(t){var e=typeof t;return process.env.NODE_ENV!=="production"&&(e=fJ(t)),e}function L_(t,e,n){var r;if(typeof e=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?rc(0):"It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if(typeof e=="function"&&typeof n>"u"&&(n=e,e=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(process.env.NODE_ENV==="production"?rc(1):"Expected the enhancer to be a function. Instead, received: '"+Pf(n)+"'");return n(L_)(t,e)}if(typeof t!="function")throw new Error(process.env.NODE_ENV==="production"?rc(2):"Expected the root reducer to be a function. Instead, received: '"+Pf(t)+"'");var i=t,a=e,s=[],l=s,c=!1;function u(){l===s&&(l=s.slice())}function d(){if(c)throw new Error(process.env.NODE_ENV==="production"?rc(3):"You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return a}function f(m){if(typeof m!="function")throw new Error(process.env.NODE_ENV==="production"?rc(4):"Expected the listener to be a function. Instead, received: '"+Pf(m)+"'");if(c)throw new Error(process.env.NODE_ENV==="production"?rc(5):"You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");var A=!0;return u(),l.push(m),function(){if(A){if(c)throw new Error(process.env.NODE_ENV==="production"?rc(6):"You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");A=!1,u();var E=l.indexOf(m);l.splice(E,1),s=null}}}function h(m){if(!dJ(m))throw new Error(process.env.NODE_ENV==="production"?rc(7):"Actions must be plain objects. Instead, the actual type was: '"+Pf(m)+"'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.");if(typeof m.type>"u")throw new Error(process.env.NODE_ENV==="production"?rc(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(c)throw new Error(process.env.NODE_ENV==="production"?rc(9):"Reducers may not dispatch actions.");try{c=!0,a=i(a,m)}finally{c=!1}for(var A=s=l,w=0;w<A.length;w++){var E=A[w];E()}return m}function g(m){if(typeof m!="function")throw new Error(process.env.NODE_ENV==="production"?rc(10):"Expected the nextReducer to be a function. Instead, received: '"+Pf(m));i=m,h({type:M_.REPLACE})}function v(){var m,A=f;return m={subscribe:function(E){if(typeof E!="object"||E===null)throw new Error(process.env.NODE_ENV==="production"?rc(11):"Expected the observer to be an object. Instead, received: '"+Pf(E)+"'");function x(){E.next&&E.next(d())}x();var C=A(x);return{unsubscribe:C}}},m[P_]=function(){return this},m}return h({type:M_.INIT}),r={dispatch:h,subscribe:f,getState:d,replaceReducer:g},r[P_]=v,r}function zr(t,e,...n){if(mJ()&&e===void 0)throw new Error("invariant requires an error message argument");if(!t){let r;if(e===void 0)r=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{let i=0;r=new Error(e.replace(/%s/g,function(){return n[i++]})),r.name="Invariant Violation"}throw r.framesToPop=1,r}}function mJ(){return typeof process<"u"&&process.env.NODE_ENV==="production"}function vJ(t,e,n){return e.split(".").reduce((r,i)=>r&&r[i]?r[i]:n||null,t)}function bJ(t,e){return t.filter(n=>n!==e)}function B_(t){return typeof t=="object"}function yJ(t,e){const n=new Map,r=a=>{n.set(a,n.has(a)?n.get(a)+1:1)};t.forEach(r),e.forEach(r);const i=[];return n.forEach((a,s)=>{a===1&&i.push(s)}),i}function AJ(t,e){return t.filter(n=>e.indexOf(n)>-1)}const J8="dnd-core/INIT_COORDS",D3="dnd-core/BEGIN_DRAG",Z8="dnd-core/PUBLISH_DRAG_SOURCE",N3="dnd-core/HOVER",O3="dnd-core/DROP",F3="dnd-core/END_DRAG";function V_(t,e){return{type:J8,payload:{sourceClientOffset:e||null,clientOffset:t||null}}}const wJ={type:J8,payload:{clientOffset:null,sourceClientOffset:null}};function SJ(t){return function(n=[],r={publishSource:!0}){const{publishSource:i=!0,clientOffset:a,getSourceClientOffset:s}=r,l=t.getMonitor(),c=t.getRegistry();t.dispatch(V_(a)),xJ(n,l,c);const u=EJ(n,l);if(u==null){t.dispatch(wJ);return}let d=null;if(a){if(!s)throw new Error("getSourceClientOffset must be defined");CJ(s),d=s(u)}t.dispatch(V_(a,d));const h=c.getSource(u).beginDrag(l,u);if(h==null)return;TJ(h),c.pinSource(u);const g=c.getSourceType(u);return{type:D3,payload:{itemType:g,item:h,sourceId:u,clientOffset:a||null,sourceClientOffset:d||null,isSourcePublic:!!i}}}}function xJ(t,e,n){zr(!e.isDragging(),"Cannot call beginDrag while dragging."),t.forEach(function(r){zr(n.getSource(r),"Expected sourceIds to be registered.")})}function CJ(t){zr(typeof t=="function","When clientOffset is provided, getSourceClientOffset must be a function.")}function TJ(t){zr(B_(t),"Item must be an object.")}function EJ(t,e){let n=null;for(let r=t.length-1;r>=0;r--)if(e.canDragSource(t[r])){n=t[r];break}return n}function IJ(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function _J(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){IJ(t,i,n[i])})}return t}function DJ(t){return function(n={}){const r=t.getMonitor(),i=t.getRegistry();NJ(r),kJ(r).forEach((s,l)=>{const c=OJ(s,l,i,r),u={type:O3,payload:{dropResult:_J({},n,c)}};t.dispatch(u)})}}function NJ(t){zr(t.isDragging(),"Cannot call drop while not dragging."),zr(!t.didDrop(),"Cannot call drop twice during one drag operation.")}function OJ(t,e,n,r){const i=n.getTarget(t);let a=i?i.drop(r,t):void 0;return FJ(a),typeof a>"u"&&(a=e===0?{}:r.getDropResult()),a}function FJ(t){zr(typeof t>"u"||B_(t),"Drop result must either be an object or undefined.")}function kJ(t){const e=t.getTargetIds().filter(t.canDropOnTarget,t);return e.reverse(),e}function PJ(t){return function(){const n=t.getMonitor(),r=t.getRegistry();MJ(n);const i=n.getSourceId();return i!=null&&(r.getSource(i,!0).endDrag(n,i),r.unpinSource()),{type:F3}}}function MJ(t){zr(t.isDragging(),"Cannot call endDrag while not dragging.")}function e7(t,e){return e===null?t===null:Array.isArray(t)?t.some(n=>n===e):t===e}function LJ(t){return function(n,{clientOffset:r}={}){BJ(n);const i=n.slice(0),a=t.getMonitor(),s=t.getRegistry(),l=a.getItemType();return UJ(i,s,l),VJ(i,a,s),qJ(i,a,s),{type:N3,payload:{targetIds:i,clientOffset:r||null}}}}function BJ(t){zr(Array.isArray(t),"Expected targetIds to be an array.")}function VJ(t,e,n){zr(e.isDragging(),"Cannot call hover while not dragging."),zr(!e.didDrop(),"Cannot call hover after drop.");for(let r=0;r<t.length;r++){const i=t[r];zr(t.lastIndexOf(i)===r,"Expected targetIds to be unique in the passed array.");const a=n.getTarget(i);zr(a,"Expected targetIds to be registered.")}}function UJ(t,e,n){for(let r=t.length-1;r>=0;r--){const i=t[r],a=e.getTargetType(i);e7(a,n)||t.splice(r,1)}}function qJ(t,e,n){t.forEach(function(r){n.getTarget(r).hover(e,r)})}function $J(t){return function(){if(t.getMonitor().isDragging())return{type:Z8}}}function jJ(t){return{beginDrag:SJ(t),publishDragSource:$J(t),hover:LJ(t),drop:DJ(t),endDrag:PJ(t)}}class zJ{receiveBackend(e){this.backend=e}getMonitor(){return this.monitor}getBackend(){return this.backend}getRegistry(){return this.monitor.registry}getActions(){const e=this,{dispatch:n}=this.store;function r(a){return(...s)=>{const l=a.apply(e,s);typeof l<"u"&&n(l)}}const i=jJ(this);return Object.keys(i).reduce((a,s)=>{const l=i[s];return a[s]=r(l),a},{})}dispatch(e){this.store.dispatch(e)}constructor(e,n){this.isSetUp=!1,this.handleRefCountChange=()=>{const r=this.store.getState().refCount>0;this.backend&&(r&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!r&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1))},this.store=e,this.monitor=n,e.subscribe(this.handleRefCountChange)}}function HJ(t,e){return{x:t.x+e.x,y:t.y+e.y}}function U_(t,e){return{x:t.x-e.x,y:t.y-e.y}}function YJ(t){const{clientOffset:e,initialClientOffset:n,initialSourceClientOffset:r}=t;return!e||!n||!r?null:U_(HJ(e,r),n)}function KJ(t){const{clientOffset:e,initialClientOffset:n}=t;return!e||!n?null:U_(e,n)}const t2=[],t7=[];t2.__IS_NONE__=!0,t7.__IS_ALL__=!0;function XJ(t,e){return t===t2?!1:t===t7||typeof e>"u"?!0:AJ(e,t).length>0}class RJ{subscribeToStateChange(e,n={}){const{handlerIds:r}=n;zr(typeof e=="function","listener must be a function."),zr(typeof r>"u"||Array.isArray(r),"handlerIds, when specified, must be an array of strings.");let i=this.store.getState().stateId;const a=()=>{const s=this.store.getState(),l=s.stateId;try{l===i||l===i+1&&!XJ(s.dirtyHandlerIds,r)||e()}finally{i=l}};return this.store.subscribe(a)}subscribeToOffsetChange(e){zr(typeof e=="function","listener must be a function.");let n=this.store.getState().dragOffset;const r=()=>{const i=this.store.getState().dragOffset;i!==n&&(n=i,e())};return this.store.subscribe(r)}canDragSource(e){if(!e)return!1;const n=this.registry.getSource(e);return zr(n,`Expected to find a valid source. sourceId=${e}`),this.isDragging()?!1:n.canDrag(this,e)}canDropOnTarget(e){if(!e)return!1;const n=this.registry.getTarget(e);if(zr(n,`Expected to find a valid target. targetId=${e}`),!this.isDragging()||this.didDrop())return!1;const r=this.registry.getTargetType(e),i=this.getItemType();return e7(r,i)&&n.canDrop(this,e)}isDragging(){return!!this.getItemType()}isDraggingSource(e){if(!e)return!1;const n=this.registry.getSource(e,!0);if(zr(n,`Expected to find a valid source. sourceId=${e}`),!this.isDragging()||!this.isSourcePublic())return!1;const r=this.registry.getSourceType(e),i=this.getItemType();return r!==i?!1:n.isDragging(this,e)}isOverTarget(e,n={shallow:!1}){if(!e)return!1;const{shallow:r}=n;if(!this.isDragging())return!1;const i=this.registry.getTargetType(e),a=this.getItemType();if(a&&!e7(i,a))return!1;const s=this.getTargetIds();if(!s.length)return!1;const l=s.indexOf(e);return r?l===s.length-1:l>-1}getItemType(){return this.store.getState().dragOperation.itemType}getItem(){return this.store.getState().dragOperation.item}getSourceId(){return this.store.getState().dragOperation.sourceId}getTargetIds(){return this.store.getState().dragOperation.targetIds}getDropResult(){return this.store.getState().dragOperation.dropResult}didDrop(){return this.store.getState().dragOperation.didDrop}isSourcePublic(){return!!this.store.getState().dragOperation.isSourcePublic}getInitialClientOffset(){return this.store.getState().dragOffset.initialClientOffset}getInitialSourceClientOffset(){return this.store.getState().dragOffset.initialSourceClientOffset}getClientOffset(){return this.store.getState().dragOffset.clientOffset}getSourceClientOffset(){return YJ(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return KJ(this.store.getState().dragOffset)}constructor(e,n){this.store=e,this.registry=n}}const q_=typeof global<"u"?global:self,$_=q_.MutationObserver||q_.WebKitMutationObserver;function j_(t){return function(){const n=setTimeout(i,0),r=setInterval(i,50);function i(){clearTimeout(n),clearInterval(r),t()}}}function GJ(t){let e=1;const n=new $_(t),r=document.createTextNode("");return n.observe(r,{characterData:!0}),function(){e=-e,r.data=e}}const WJ=typeof $_=="function"?GJ:j_;class QJ{enqueueTask(e){const{queue:n,requestFlush:r}=this;n.length||(r(),this.flushing=!0),n[n.length]=e}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:e}=this;for(;this.index<e.length;){const n=this.index;if(this.index++,e[n].call(),this.index>this.capacity){for(let r=0,i=e.length-this.index;r<i;r++)e[r]=e[r+this.index];e.length-=this.index,this.index=0}}e.length=0,this.index=0,this.flushing=!1},this.registerPendingError=e=>{this.pendingErrors.push(e),this.requestErrorThrow()},this.requestFlush=WJ(this.flush),this.requestErrorThrow=j_(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}}class JJ{call(){try{this.task&&this.task()}catch(e){this.onError(e)}finally{this.task=null,this.release(this)}}constructor(e,n){this.onError=e,this.release=n,this.task=null}}class ZJ{create(e){const n=this.freeTasks,r=n.length?n.pop():new JJ(this.onError,i=>n[n.length]=i);return r.task=e,r}constructor(e){this.onError=e,this.freeTasks=[]}}const z_=new QJ,eZ=new ZJ(z_.registerPendingError);function tZ(t){z_.enqueueTask(eZ.create(t))}const n7="dnd-core/ADD_SOURCE",r7="dnd-core/ADD_TARGET",i7="dnd-core/REMOVE_SOURCE",k3="dnd-core/REMOVE_TARGET";function nZ(t){return{type:n7,payload:{sourceId:t}}}function rZ(t){return{type:r7,payload:{targetId:t}}}function iZ(t){return{type:i7,payload:{sourceId:t}}}function aZ(t){return{type:k3,payload:{targetId:t}}}function sZ(t){zr(typeof t.canDrag=="function","Expected canDrag to be a function."),zr(typeof t.beginDrag=="function","Expected beginDrag to be a function."),zr(typeof t.endDrag=="function","Expected endDrag to be a function.")}function oZ(t){zr(typeof t.canDrop=="function","Expected canDrop to be a function."),zr(typeof t.hover=="function","Expected hover to be a function."),zr(typeof t.drop=="function","Expected beginDrag to be a function.")}function a7(t,e){if(e&&Array.isArray(t)){t.forEach(n=>a7(n,!1));return}zr(typeof t=="string"||typeof t=="symbol",e?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}var ic;(function(t){t.SOURCE="SOURCE",t.TARGET="TARGET"})(ic||(ic={}));let lZ=0;function cZ(){return lZ++}function uZ(t){const e=cZ().toString();switch(t){case ic.SOURCE:return`S${e}`;case ic.TARGET:return`T${e}`;default:throw new Error(`Unknown Handler Role: ${t}`)}}function H_(t){switch(t[0]){case"S":return ic.SOURCE;case"T":return ic.TARGET;default:throw new Error(`Cannot parse handler ID: ${t}`)}}function Y_(t,e){const n=t.entries();let r=!1;do{const{done:i,value:[,a]}=n.next();if(a===e)return!0;r=!!i}while(!r);return!1}class dZ{addSource(e,n){a7(e),sZ(n);const r=this.addHandler(ic.SOURCE,e,n);return this.store.dispatch(nZ(r)),r}addTarget(e,n){a7(e,!0),oZ(n);const r=this.addHandler(ic.TARGET,e,n);return this.store.dispatch(rZ(r)),r}containsHandler(e){return Y_(this.dragSources,e)||Y_(this.dropTargets,e)}getSource(e,n=!1){return zr(this.isSourceId(e),"Expected a valid source ID."),n&&e===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(e)}getTarget(e){return zr(this.isTargetId(e),"Expected a valid target ID."),this.dropTargets.get(e)}getSourceType(e){return zr(this.isSourceId(e),"Expected a valid source ID."),this.types.get(e)}getTargetType(e){return zr(this.isTargetId(e),"Expected a valid target ID."),this.types.get(e)}isSourceId(e){return H_(e)===ic.SOURCE}isTargetId(e){return H_(e)===ic.TARGET}removeSource(e){zr(this.getSource(e),"Expected an existing source."),this.store.dispatch(iZ(e)),tZ(()=>{this.dragSources.delete(e),this.types.delete(e)})}removeTarget(e){zr(this.getTarget(e),"Expected an existing target."),this.store.dispatch(aZ(e)),this.dropTargets.delete(e),this.types.delete(e)}pinSource(e){const n=this.getSource(e);zr(n,"Expected an existing source."),this.pinnedSourceId=e,this.pinnedSource=n}unpinSource(){zr(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(e,n,r){const i=uZ(e);return this.types.set(i,n),e===ic.SOURCE?this.dragSources.set(i,r):e===ic.TARGET&&this.dropTargets.set(i,r),i}constructor(e){this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=e}}const fZ=(t,e)=>t===e;function hZ(t,e){return!t&&!e?!0:!t||!e?!1:t.x===e.x&&t.y===e.y}function pZ(t,e,n=fZ){if(t.length!==e.length)return!1;for(let r=0;r<t.length;++r)if(!n(t[r],e[r]))return!1;return!0}function gZ(t=t2,e){switch(e.type){case N3:break;case n7:case r7:case k3:case i7:return t2;case D3:case Z8:case F3:case O3:default:return t7}const{targetIds:n=[],prevTargetIds:r=[]}=e.payload,i=yJ(n,r);if(!(i.length>0||!pZ(n,r)))return t2;const s=r[r.length-1],l=n[n.length-1];return s!==l&&(s&&i.push(s),l&&i.push(l)),i}function mZ(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function vZ(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){mZ(t,i,n[i])})}return t}const K_={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function bZ(t=K_,e){const{payload:n}=e;switch(e.type){case J8:case D3:return{initialSourceClientOffset:n.sourceClientOffset,initialClientOffset:n.clientOffset,clientOffset:n.clientOffset};case N3:return hZ(t.clientOffset,n.clientOffset)?t:vZ({},t,{clientOffset:n.clientOffset});case F3:case O3:return K_;default:return t}}function yZ(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Mf(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){yZ(t,i,n[i])})}return t}const AZ={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function wZ(t=AZ,e){const{payload:n}=e;switch(e.type){case D3:return Mf({},t,{itemType:n.itemType,item:n.item,sourceId:n.sourceId,isSourcePublic:n.isSourcePublic,dropResult:null,didDrop:!1});case Z8:return Mf({},t,{isSourcePublic:!0});case N3:return Mf({},t,{targetIds:n.targetIds});case k3:return t.targetIds.indexOf(n.targetId)===-1?t:Mf({},t,{targetIds:bJ(t.targetIds,n.targetId)});case O3:return Mf({},t,{dropResult:n.dropResult,didDrop:!0,targetIds:[]});case F3:return Mf({},t,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return t}}function SZ(t=0,e){switch(e.type){case n7:case r7:return t+1;case i7:case k3:return t-1;default:return t}}function xZ(t=0){return t+1}function CZ(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function TZ(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){CZ(t,i,n[i])})}return t}function EZ(t={},e){return{dirtyHandlerIds:gZ(t.dirtyHandlerIds,{type:e.type,payload:TZ({},e.payload,{prevTargetIds:vJ(t,"dragOperation.targetIds",[])})}),dragOffset:bZ(t.dragOffset,e),refCount:SZ(t.refCount,e),dragOperation:wZ(t.dragOperation,e),stateId:xZ(t.stateId)}}function IZ(t,e=void 0,n={},r=!1){const i=_Z(r),a=new RJ(i,new dZ(i)),s=new zJ(i,a),l=t(s,e,n);return s.receiveBackend(l),s}function _Z(t){const e=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__;return L_(EZ,t&&e&&e({name:"dnd-core",instanceId:"dnd-core"}))}function DZ(t,e){if(t==null)return{};var n=NZ(t,e),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)r=a[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function NZ(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,a;for(a=0;a<r.length;a++)i=r[a],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}let X_=0;const P3=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");var Lf=P.memo(function(e){var{children:n}=e,r=DZ(e,["children"]);const[i,a]=OZ(r);return P.useEffect(()=>{if(a){const s=R_();return++X_,()=>{--X_===0&&(s[P3]=null)}}},[]),o.jsx(O_.Provider,{value:i,children:n})});function OZ(t){if("manager"in t)return[{dragDropManager:t.manager},!1];const e=FZ(t.backend,t.context,t.options,t.debugMode),n=!t.context;return[e,n]}function FZ(t,e=R_(),n,r){const i=e;return i[P3]||(i[P3]={dragDropManager:IZ(t,e,n,r)}),i[P3]}function R_(){return typeof global<"u"?global:window}var G_=function t(e,n){if(e===n)return!0;if(e&&n&&typeof e=="object"&&typeof n=="object"){if(e.constructor!==n.constructor)return!1;var r,i,a;if(Array.isArray(e)){if(r=e.length,r!=n.length)return!1;for(i=r;i--!==0;)if(!t(e[i],n[i]))return!1;return!0}if(e.constructor===RegExp)return e.source===n.source&&e.flags===n.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===n.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===n.toString();if(a=Object.keys(e),r=a.length,r!==Object.keys(n).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(n,a[i]))return!1;for(i=r;i--!==0;){var s=a[i];if(!t(e[s],n[s]))return!1}return!0}return e!==e&&n!==n};const kZ=ao(G_),s1=typeof window<"u"?P.useLayoutEffect:P.useEffect;function PZ(t,e,n){const[r,i]=P.useState(()=>e(t)),a=P.useCallback(()=>{const s=e(t);kZ(r,s)||(i(s),n&&n())},[r,t,n]);return s1(a),[r,a]}function MZ(t,e,n){const[r,i]=PZ(t,e,n);return s1(function(){const s=t.getHandlerId();if(s!=null)return t.subscribeToStateChange(i,{handlerIds:[s]})},[t,i]),r}function W_(t,e,n){return MZ(e,t||(()=>({})),()=>n.reconnect())}function Q_(t,e){const n=[];return typeof t!="function"&&n.push(t),P.useMemo(()=>typeof t=="function"?t():t,n)}function LZ(t){return P.useMemo(()=>t.hooks.dragSource(),[t])}function BZ(t){return P.useMemo(()=>t.hooks.dragPreview(),[t])}let s7=!1,o7=!1;class VZ{receiveHandlerId(e){this.sourceId=e}getHandlerId(){return this.sourceId}canDrag(){zr(!s7,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return s7=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{s7=!1}}isDragging(){if(!this.sourceId)return!1;zr(!o7,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return o7=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{o7=!1}}subscribeToStateChange(e,n){return this.internalMonitor.subscribeToStateChange(e,n)}isDraggingSource(e){return this.internalMonitor.isDraggingSource(e)}isOverTarget(e,n){return this.internalMonitor.isOverTarget(e,n)}getTargetIds(){return this.internalMonitor.getTargetIds()}isSourcePublic(){return this.internalMonitor.isSourcePublic()}getSourceId(){return this.internalMonitor.getSourceId()}subscribeToOffsetChange(e){return this.internalMonitor.subscribeToOffsetChange(e)}canDragSource(e){return this.internalMonitor.canDragSource(e)}canDropOnTarget(e){return this.internalMonitor.canDropOnTarget(e)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(e){this.sourceId=null,this.internalMonitor=e.getMonitor()}}let l7=!1;class UZ{receiveHandlerId(e){this.targetId=e}getHandlerId(){return this.targetId}subscribeToStateChange(e,n){return this.internalMonitor.subscribeToStateChange(e,n)}canDrop(){if(!this.targetId)return!1;zr(!l7,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return l7=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{l7=!1}}isOver(e){return this.targetId?this.internalMonitor.isOverTarget(this.targetId,e):!1}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(e){this.targetId=null,this.internalMonitor=e.getMonitor()}}function qZ(t,e,n){const r=n.getRegistry(),i=r.addTarget(t,e);return[i,()=>r.removeTarget(i)]}function $Z(t,e,n){const r=n.getRegistry(),i=r.addSource(t,e);return[i,()=>r.removeSource(i)]}function c7(t,e,n,r){let i;if(i!==void 0)return!!i;if(t===e)return!0;if(typeof t!="object"||!t||typeof e!="object"||!e)return!1;const a=Object.keys(t),s=Object.keys(e);if(a.length!==s.length)return!1;const l=Object.prototype.hasOwnProperty.bind(e);for(let c=0;c<a.length;c++){const u=a[c];if(!l(u))return!1;const d=t[u],f=e[u];if(i=void 0,i===!1||i===void 0&&d!==f)return!1}return!0}function u7(t){return t!==null&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function jZ(t){if(typeof t.type=="string")return;const e=t.type.displayName||t.type.name||"the component";throw new Error(`Only native element nodes can now be passed to React DnD connectors.You can either wrap ${e} into a <div>, or turn it into a drag source or a drop target itself.`)}function zZ(t){return(e=null,n=null)=>{if(!P.isValidElement(e)){const a=e;return t(a,n),a}const r=e;return jZ(r),HZ(r,n?a=>t(a,n):t)}}function J_(t){const e={};return Object.keys(t).forEach(n=>{const r=t[n];if(n.endsWith("Ref"))e[n]=t[n];else{const i=zZ(r);e[n]=()=>i}}),e}function Z_(t,e){typeof t=="function"?t(e):t.current=e}function HZ(t,e){const n=t.ref;return zr(typeof n!="string","Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"),n?P.cloneElement(t,{ref:r=>{Z_(n,r),Z_(e,r)}}):P.cloneElement(t,{ref:e})}class YZ{receiveHandlerId(e){this.handlerId!==e&&(this.handlerId=e,this.reconnect())}get connectTarget(){return this.dragSource}get dragSourceOptions(){return this.dragSourceOptionsInternal}set dragSourceOptions(e){this.dragSourceOptionsInternal=e}get dragPreviewOptions(){return this.dragPreviewOptionsInternal}set dragPreviewOptions(e){this.dragPreviewOptionsInternal=e}reconnect(){const e=this.reconnectDragSource();this.reconnectDragPreview(e)}reconnectDragSource(){const e=this.dragSource,n=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();return n&&this.disconnectDragSource(),this.handlerId?e?(n&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=e,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,e,this.dragSourceOptions)),n):(this.lastConnectedDragSource=e,n):n}reconnectDragPreview(e=!1){const n=this.dragPreview,r=e||this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();if(r&&this.disconnectDragPreview(),!!this.handlerId){if(!n){this.lastConnectedDragPreview=n;return}r&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=n,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,n,this.dragPreviewOptions))}}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didConnectedDragSourceChange(){return this.lastConnectedDragSource!==this.dragSource}didConnectedDragPreviewChange(){return this.lastConnectedDragPreview!==this.dragPreview}didDragSourceOptionsChange(){return!c7(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}didDragPreviewOptionsChange(){return!c7(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}disconnectDragSource(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}disconnectDragPreview(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}get dragSource(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}get dragPreview(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}clearDragSource(){this.dragSourceNode=null,this.dragSourceRef=null}clearDragPreview(){this.dragPreviewNode=null,this.dragPreviewRef=null}constructor(e){this.hooks=J_({dragSource:(n,r)=>{this.clearDragSource(),this.dragSourceOptions=r||null,u7(n)?this.dragSourceRef=n:this.dragSourceNode=n,this.reconnectDragSource()},dragPreview:(n,r)=>{this.clearDragPreview(),this.dragPreviewOptions=r||null,u7(n)?this.dragPreviewRef=n:this.dragPreviewNode=n,this.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceRef=null,this.dragSourceOptionsInternal=null,this.dragPreviewRef=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=e}}class KZ{get connectTarget(){return this.dropTarget}reconnect(){const e=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();e&&this.disconnectDropTarget();const n=this.dropTarget;if(this.handlerId){if(!n){this.lastConnectedDropTarget=n;return}e&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=n,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,n,this.dropTargetOptions))}}receiveHandlerId(e){e!==this.handlerId&&(this.handlerId=e,this.reconnect())}get dropTargetOptions(){return this.dropTargetOptionsInternal}set dropTargetOptions(e){this.dropTargetOptionsInternal=e}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didDropTargetChange(){return this.lastConnectedDropTarget!==this.dropTarget}didOptionsChange(){return!c7(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}disconnectDropTarget(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}get dropTarget(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}clearDropTarget(){this.dropTargetRef=null,this.dropTargetNode=null}constructor(e){this.hooks=J_({dropTarget:(n,r)=>{this.clearDropTarget(),this.dropTargetOptions=r,u7(n)?this.dropTargetRef=n:this.dropTargetNode=n,this.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=e}}function Bf(){const{dragDropManager:t}=P.useContext(O_);return zr(t!=null,"Expected drag drop context"),t}function XZ(t,e){const n=Bf(),r=P.useMemo(()=>new YZ(n.getBackend()),[n]);return s1(()=>(r.dragSourceOptions=t||null,r.reconnect(),()=>r.disconnectDragSource()),[r,t]),s1(()=>(r.dragPreviewOptions=e||null,r.reconnect(),()=>r.disconnectDragPreview()),[r,e]),r}function RZ(){const t=Bf();return P.useMemo(()=>new VZ(t),[t])}class GZ{beginDrag(){const e=this.spec,n=this.monitor;let r=null;return typeof e.item=="object"?r=e.item:typeof e.item=="function"?r=e.item(n):r={},r??null}canDrag(){const e=this.spec,n=this.monitor;return typeof e.canDrag=="boolean"?e.canDrag:typeof e.canDrag=="function"?e.canDrag(n):!0}isDragging(e,n){const r=this.spec,i=this.monitor,{isDragging:a}=r;return a?a(i):n===e.getSourceId()}endDrag(){const e=this.spec,n=this.monitor,r=this.connector,{end:i}=e;i&&i(n.getItem(),n),r.reconnect()}constructor(e,n,r){this.spec=e,this.monitor=n,this.connector=r}}function WZ(t,e,n){const r=P.useMemo(()=>new GZ(t,e,n),[e,n]);return P.useEffect(()=>{r.spec=t},[t]),r}function QZ(t){return P.useMemo(()=>{const e=t.type;return zr(e!=null,"spec.type must be defined"),e},[t])}function JZ(t,e,n){const r=Bf(),i=WZ(t,e,n),a=QZ(t);s1(function(){if(a!=null){const[l,c]=$Z(a,i,r);return e.receiveHandlerId(l),n.receiveHandlerId(l),c}},[r,e,n,i,a])}function ia(t,e){const n=Q_(t);zr(!n.begin,"useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)");const r=RZ(),i=XZ(n.options,n.previewOptions);return JZ(n,r,i),[W_(n.collect,r,i),LZ(i),BZ(i)]}function ZZ(t){return P.useMemo(()=>t.hooks.dropTarget(),[t])}function eee(t){const e=Bf(),n=P.useMemo(()=>new KZ(e.getBackend()),[e]);return s1(()=>(n.dropTargetOptions=t||null,n.reconnect(),()=>n.disconnectDropTarget()),[t]),n}function tee(){const t=Bf();return P.useMemo(()=>new UZ(t),[t])}function nee(t){const{accept:e}=t;return P.useMemo(()=>(zr(t.accept!=null,"accept must be defined"),Array.isArray(e)?e:[e]),[e])}class ree{canDrop(){const e=this.spec,n=this.monitor;return e.canDrop?e.canDrop(n.getItem(),n):!0}hover(){const e=this.spec,n=this.monitor;e.hover&&e.hover(n.getItem(),n)}drop(){const e=this.spec,n=this.monitor;if(e.drop)return e.drop(n.getItem(),n)}constructor(e,n){this.spec=e,this.monitor=n}}function iee(t,e){const n=P.useMemo(()=>new ree(t,e),[e]);return P.useEffect(()=>{n.spec=t},[t]),n}function aee(t,e,n){const r=Bf(),i=iee(t,e),a=nee(t);s1(function(){const[l,c]=qZ(a,i,r);return e.receiveHandlerId(l),n.receiveHandlerId(l),c},[r,e,i,n,a.map(s=>s.toString()).join("|")])}function see(t,e){const n=Q_(t),r=tee(),i=eee(n.options);return aee(n,r,i),[W_(n.collect,r,i),ZZ(i)]}function eD(t){let e=null;return()=>(e==null&&(e=t()),e)}function oee(t,e){return t.filter(n=>n!==e)}function lee(t,e){const n=new Set,r=a=>n.add(a);t.forEach(r),e.forEach(r);const i=[];return n.forEach(a=>i.push(a)),i}class cee{enter(e){const n=this.entered.length,r=i=>this.isNodeInDocument(i)&&(!i.contains||i.contains(e));return this.entered=lee(this.entered.filter(r),[e]),n===0&&this.entered.length>0}leave(e){const n=this.entered.length;return this.entered=oee(this.entered.filter(this.isNodeInDocument),e),n>0&&this.entered.length===0}reset(){this.entered=[]}constructor(e){this.entered=[],this.isNodeInDocument=e}}class uee{initializeExposedProperties(){Object.keys(this.config.exposeProperties).forEach(e=>{Object.defineProperty(this.item,e,{configurable:!0,enumerable:!0,get(){return console.warn(`Browser doesn't allow reading "${e}" until the drop event.`),null}})})}loadDataTransfer(e){if(e){const n={};Object.keys(this.config.exposeProperties).forEach(r=>{const i=this.config.exposeProperties[r];i!=null&&(n[r]={value:i(e,this.config.matchesTypes),configurable:!0,enumerable:!0})}),Object.defineProperties(this.item,n)}}canDrag(){return!0}beginDrag(){return this.item}isDragging(e,n){return n===e.getSourceId()}endDrag(){}constructor(e){this.config=e,this.item={},this.initializeExposedProperties()}}const tD="__NATIVE_FILE__",nD="__NATIVE_URL__",rD="__NATIVE_TEXT__",iD="__NATIVE_HTML__",aD=Object.freeze(Object.defineProperty({__proto__:null,FILE:tD,HTML:iD,TEXT:rD,URL:nD},Symbol.toStringTag,{value:"Module"}));function d7(t,e,n){const r=e.reduce((i,a)=>i||t.getData(a),"");return r??n}const f7={[tD]:{exposeProperties:{files:t=>Array.prototype.slice.call(t.files),items:t=>t.items,dataTransfer:t=>t},matchesTypes:["Files"]},[iD]:{exposeProperties:{html:(t,e)=>d7(t,e,""),dataTransfer:t=>t},matchesTypes:["Html","text/html"]},[nD]:{exposeProperties:{urls:(t,e)=>d7(t,e,"").split(`
1601
- `),dataTransfer:t=>t},matchesTypes:["Url","text/uri-list"]},[rD]:{exposeProperties:{text:(t,e)=>d7(t,e,""),dataTransfer:t=>t},matchesTypes:["Text","text/plain"]}};function dee(t,e){const n=f7[t];if(!n)throw new Error(`native type ${t} has no configuration`);const r=new uee(n);return r.loadDataTransfer(e),r}function h7(t){if(!t)return null;const e=Array.prototype.slice.call(t.types||[]);return Object.keys(f7).filter(n=>{const r=f7[n];return r!=null&&r.matchesTypes?r.matchesTypes.some(i=>e.indexOf(i)>-1):!1})[0]||null}const fee=eD(()=>/firefox/i.test(navigator.userAgent)),sD=eD(()=>!!window.safari);class oD{interpolate(e){const{xs:n,ys:r,c1s:i,c2s:a,c3s:s}=this;let l=n.length-1;if(e===n[l])return r[l];let c=0,u=s.length-1,d;for(;c<=u;){d=Math.floor(.5*(c+u));const g=n[d];if(g<e)c=d+1;else if(g>e)u=d-1;else return r[d]}l=Math.max(0,u);const f=e-n[l],h=f*f;return r[l]+i[l]*f+a[l]*h+s[l]*f*h}constructor(e,n){const{length:r}=e,i=[];for(let g=0;g<r;g++)i.push(g);i.sort((g,v)=>e[g]<e[v]?-1:1);const a=[],s=[];let l,c;for(let g=0;g<r-1;g++)l=e[g+1]-e[g],c=n[g+1]-n[g],a.push(l),s.push(c/l);const u=[s[0]];for(let g=0;g<a.length-1;g++){const v=s[g],m=s[g+1];if(v*m<=0)u.push(0);else{l=a[g];const A=a[g+1],w=l+A;u.push(3*w/((w+A)/v+(w+l)/m))}}u.push(s[s.length-1]);const d=[],f=[];let h;for(let g=0;g<u.length-1;g++){h=s[g];const v=u[g],m=1/a[g],A=v+u[g+1]-h-h;d.push((h-v-A)*m),f.push(A*m*m)}this.xs=e,this.ys=n,this.c1s=u,this.c2s=d,this.c3s=f}}const hee=1;function lD(t){const e=t.nodeType===hee?t:t.parentElement;if(!e)return null;const{top:n,left:r}=e.getBoundingClientRect();return{x:r,y:n}}function M3(t){return{x:t.clientX,y:t.clientY}}function pee(t){var e;return t.nodeName==="IMG"&&(fee()||!(!((e=document.documentElement)===null||e===void 0)&&e.contains(t)))}function gee(t,e,n,r){let i=t?e.width:n,a=t?e.height:r;return sD()&&t&&(a/=window.devicePixelRatio,i/=window.devicePixelRatio),{dragPreviewWidth:i,dragPreviewHeight:a}}function mee(t,e,n,r,i){const a=pee(e),l=lD(a?t:e),c={x:n.x-l.x,y:n.y-l.y},{offsetWidth:u,offsetHeight:d}=t,{anchorX:f,anchorY:h}=r,{dragPreviewWidth:g,dragPreviewHeight:v}=gee(a,e,u,d),m=()=>{let _=new oD([0,.5,1],[c.y,c.y/d*v,c.y+v-d]).interpolate(h);return sD()&&a&&(_+=(window.devicePixelRatio-1)*v),_},A=()=>new oD([0,.5,1],[c.x,c.x/u*g,c.x+g-u]).interpolate(f),{offsetX:w,offsetY:E}=i,x=w===0||w,C=E===0||E;return{x:x?w:A(),y:C?E:m()}}class vee{get window(){if(this.globalContext)return this.globalContext;if(typeof window<"u")return window}get document(){var e;return!((e=this.globalContext)===null||e===void 0)&&e.document?this.globalContext.document:this.window?this.window.document:void 0}get rootElement(){var e;return((e=this.optionsArgs)===null||e===void 0?void 0:e.rootElement)||this.window}constructor(e,n){this.ownerDocument=null,this.globalContext=e,this.optionsArgs=n}}function bee(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function cD(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){bee(t,i,n[i])})}return t}class yee{profile(){var e,n;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:((e=this.dragStartSourceIds)===null||e===void 0?void 0:e.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:((n=this.dragOverTargetIds)===null||n===void 0?void 0:n.length)||0}}get window(){return this.options.window}get document(){return this.options.document}get rootElement(){return this.options.rootElement}setup(){const e=this.rootElement;if(e!==void 0){if(e.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");e.__isReactDndBackendSetUp=!0,this.addEventListeners(e)}}teardown(){const e=this.rootElement;if(e!==void 0&&(e.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.rootElement),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId)){var n;(n=this.window)===null||n===void 0||n.cancelAnimationFrame(this.asyncEndDragFrameId)}}connectDragPreview(e,n,r){return this.sourcePreviewNodeOptions.set(e,r),this.sourcePreviewNodes.set(e,n),()=>{this.sourcePreviewNodes.delete(e),this.sourcePreviewNodeOptions.delete(e)}}connectDragSource(e,n,r){this.sourceNodes.set(e,n),this.sourceNodeOptions.set(e,r);const i=s=>this.handleDragStart(s,e),a=s=>this.handleSelectStart(s);return n.setAttribute("draggable","true"),n.addEventListener("dragstart",i),n.addEventListener("selectstart",a),()=>{this.sourceNodes.delete(e),this.sourceNodeOptions.delete(e),n.removeEventListener("dragstart",i),n.removeEventListener("selectstart",a),n.setAttribute("draggable","false")}}connectDropTarget(e,n){const r=s=>this.handleDragEnter(s,e),i=s=>this.handleDragOver(s,e),a=s=>this.handleDrop(s,e);return n.addEventListener("dragenter",r),n.addEventListener("dragover",i),n.addEventListener("drop",a),()=>{n.removeEventListener("dragenter",r),n.removeEventListener("dragover",i),n.removeEventListener("drop",a)}}addEventListeners(e){e.addEventListener&&(e.addEventListener("dragstart",this.handleTopDragStart),e.addEventListener("dragstart",this.handleTopDragStartCapture,!0),e.addEventListener("dragend",this.handleTopDragEndCapture,!0),e.addEventListener("dragenter",this.handleTopDragEnter),e.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.addEventListener("dragover",this.handleTopDragOver),e.addEventListener("dragover",this.handleTopDragOverCapture,!0),e.addEventListener("drop",this.handleTopDrop),e.addEventListener("drop",this.handleTopDropCapture,!0))}removeEventListeners(e){e.removeEventListener&&(e.removeEventListener("dragstart",this.handleTopDragStart),e.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),e.removeEventListener("dragend",this.handleTopDragEndCapture,!0),e.removeEventListener("dragenter",this.handleTopDragEnter),e.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.removeEventListener("dragover",this.handleTopDragOver),e.removeEventListener("dragover",this.handleTopDragOverCapture,!0),e.removeEventListener("drop",this.handleTopDrop),e.removeEventListener("drop",this.handleTopDropCapture,!0))}getCurrentSourceNodeOptions(){const e=this.monitor.getSourceId(),n=this.sourceNodeOptions.get(e);return cD({dropEffect:this.altKeyPressed?"copy":"move"},n||{})}getCurrentDropEffect(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}getCurrentSourcePreviewNodeOptions(){const e=this.monitor.getSourceId(),n=this.sourcePreviewNodeOptions.get(e);return cD({anchorX:.5,anchorY:.5,captureDraggingState:!1},n||{})}isDraggingNativeItem(){const e=this.monitor.getItemType();return Object.keys(aD).some(n=>aD[n]===e)}beginDragNativeItem(e,n){this.clearCurrentDragSourceNode(),this.currentNativeSource=dee(e,n),this.currentNativeHandle=this.registry.addSource(e,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}setCurrentDragSourceNode(e){this.clearCurrentDragSourceNode(),this.currentDragSourceNode=e;const n=1e3;this.mouseMoveTimeoutTimer=setTimeout(()=>{var r;return(r=this.rootElement)===null||r===void 0?void 0:r.addEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)},n)}clearCurrentDragSourceNode(){if(this.currentDragSourceNode){if(this.currentDragSourceNode=null,this.rootElement){var e;(e=this.window)===null||e===void 0||e.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)}return this.mouseMoveTimeoutTimer=null,!0}return!1}handleDragStart(e,n){e.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(n))}handleDragEnter(e,n){this.dragEnterTargetIds.unshift(n)}handleDragOver(e,n){this.dragOverTargetIds===null&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(n)}handleDrop(e,n){this.dropTargetIds.unshift(n)}constructor(e,n,r){this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.sourceNodes=new Map,this.sourceNodeOptions=new Map,this.dragStartSourceIds=null,this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.altKeyPressed=!1,this.mouseMoveTimeoutTimer=null,this.asyncEndDragFrameId=null,this.dragOverTargetIds=null,this.lastClientOffset=null,this.hoverRafId=null,this.getSourceClientOffset=i=>{const a=this.sourceNodes.get(i);return a&&lD(a)||null},this.endDragNativeItem=()=>{this.isDraggingNativeItem()&&(this.actions.endDrag(),this.currentNativeHandle&&this.registry.removeSource(this.currentNativeHandle),this.currentNativeHandle=null,this.currentNativeSource=null)},this.isNodeInDocument=i=>!!(i&&this.document&&this.document.body&&this.document.body.contains(i)),this.endDragIfSourceWasRemovedFromDOM=()=>{const i=this.currentDragSourceNode;i==null||this.isNodeInDocument(i)||(this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover())},this.scheduleHover=i=>{this.hoverRafId===null&&typeof requestAnimationFrame<"u"&&(this.hoverRafId=requestAnimationFrame(()=>{this.monitor.isDragging()&&this.actions.hover(i||[],{clientOffset:this.lastClientOffset}),this.hoverRafId=null}))},this.cancelHover=()=>{this.hoverRafId!==null&&typeof cancelAnimationFrame<"u"&&(cancelAnimationFrame(this.hoverRafId),this.hoverRafId=null)},this.handleTopDragStartCapture=()=>{this.clearCurrentDragSourceNode(),this.dragStartSourceIds=[]},this.handleTopDragStart=i=>{if(i.defaultPrevented)return;const{dragStartSourceIds:a}=this;this.dragStartSourceIds=null;const s=M3(i);this.monitor.isDragging()&&(this.actions.endDrag(),this.cancelHover()),this.actions.beginDrag(a||[],{publishSource:!1,getSourceClientOffset:this.getSourceClientOffset,clientOffset:s});const{dataTransfer:l}=i,c=h7(l);if(this.monitor.isDragging()){if(l&&typeof l.setDragImage=="function"){const d=this.monitor.getSourceId(),f=this.sourceNodes.get(d),h=this.sourcePreviewNodes.get(d)||f;if(h){const{anchorX:g,anchorY:v,offsetX:m,offsetY:A}=this.getCurrentSourcePreviewNodeOptions(),x=mee(f,h,s,{anchorX:g,anchorY:v},{offsetX:m,offsetY:A});l.setDragImage(h,x.x,x.y)}}try{l==null||l.setData("application/json",{})}catch{}this.setCurrentDragSourceNode(i.target);const{captureDraggingState:u}=this.getCurrentSourcePreviewNodeOptions();u?this.actions.publishDragSource():setTimeout(()=>this.actions.publishDragSource(),0)}else if(c)this.beginDragNativeItem(c);else{if(l&&!l.types&&(i.target&&!i.target.hasAttribute||!i.target.hasAttribute("draggable")))return;i.preventDefault()}},this.handleTopDragEndCapture=()=>{this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleTopDragEnterCapture=i=>{if(this.dragEnterTargetIds=[],this.isDraggingNativeItem()){var a;(a=this.currentNativeSource)===null||a===void 0||a.loadDataTransfer(i.dataTransfer)}if(!this.enterLeaveCounter.enter(i.target)||this.monitor.isDragging())return;const{dataTransfer:l}=i,c=h7(l);c&&this.beginDragNativeItem(c,l)},this.handleTopDragEnter=i=>{const{dragEnterTargetIds:a}=this;if(this.dragEnterTargetIds=[],!this.monitor.isDragging())return;this.altKeyPressed=i.altKey,a.length>0&&this.actions.hover(a,{clientOffset:M3(i)}),a.some(l=>this.monitor.canDropOnTarget(l))&&(i.preventDefault(),i.dataTransfer&&(i.dataTransfer.dropEffect=this.getCurrentDropEffect()))},this.handleTopDragOverCapture=i=>{if(this.dragOverTargetIds=[],this.isDraggingNativeItem()){var a;(a=this.currentNativeSource)===null||a===void 0||a.loadDataTransfer(i.dataTransfer)}},this.handleTopDragOver=i=>{const{dragOverTargetIds:a}=this;if(this.dragOverTargetIds=[],!this.monitor.isDragging()){i.preventDefault(),i.dataTransfer&&(i.dataTransfer.dropEffect="none");return}this.altKeyPressed=i.altKey,this.lastClientOffset=M3(i),this.scheduleHover(a),(a||[]).some(l=>this.monitor.canDropOnTarget(l))?(i.preventDefault(),i.dataTransfer&&(i.dataTransfer.dropEffect=this.getCurrentDropEffect())):this.isDraggingNativeItem()?i.preventDefault():(i.preventDefault(),i.dataTransfer&&(i.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=i=>{this.isDraggingNativeItem()&&i.preventDefault(),this.enterLeaveCounter.leave(i.target)&&(this.isDraggingNativeItem()&&setTimeout(()=>this.endDragNativeItem(),0),this.cancelHover())},this.handleTopDropCapture=i=>{if(this.dropTargetIds=[],this.isDraggingNativeItem()){var a;i.preventDefault(),(a=this.currentNativeSource)===null||a===void 0||a.loadDataTransfer(i.dataTransfer)}else h7(i.dataTransfer)&&i.preventDefault();this.enterLeaveCounter.reset()},this.handleTopDrop=i=>{const{dropTargetIds:a}=this;this.dropTargetIds=[],this.actions.hover(a,{clientOffset:M3(i)}),this.actions.drop({dropEffect:this.getCurrentDropEffect()}),this.isDraggingNativeItem()?this.endDragNativeItem():this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleSelectStart=i=>{const a=i.target;typeof a.dragDrop=="function"&&(a.tagName==="INPUT"||a.tagName==="SELECT"||a.tagName==="TEXTAREA"||a.isContentEditable||(i.preventDefault(),a.dragDrop()))},this.options=new vee(n,r),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.registry=e.getRegistry(),this.enterLeaveCounter=new cee(this.isNodeInDocument)}}const Vf=function(e,n,r){return new yee(e,n,r)},uD=P.createContext(void 0),dD=({children:t,option:e,saveFormBuilderSchema:n,templateSchema:r,onChange:i,isHTML5BackendDisabled:a=!1})=>{const s={...W8,...r},[l,c]=P.useReducer(oJ,s);P.useEffect(()=>{n&&n(l)},[l]);const{isPreview:u,isAdmin:d,isRenderView:f,renderType:h,isAdvanceView:g,globalAlignment:v="ltr",emitSocketData:m,media:A,exam:w={},reusableComponent:E,saveFormProgress:x,showSettings:C,training:S}=e;return o.jsx(uD.Provider,{value:{media:A,isPreview:u,isAdmin:d,isRenderView:f,renderType:h,isAdvanceView:g,globalAlignment:v,emitSocketData:m,reusableComponent:E,state:l,dispatch:c,onChange:i,saveFormProgress:x,showSettings:C,training:S},children:a?o.jsx(o.Fragment,{children:t}):o.jsx(Lf,{backend:Vf,children:t})})},fD=()=>P.useContext(uD),Aee=(t,e,n)=>{const r=Array.from(t),[i]=r.splice(e,1);return r.splice(n,0,i),r},wee=(t,e)=>[...t.slice(0,e),...t.slice(e+1)],See=(t,e,n)=>[...t.slice(0,e),n,...t.slice(e)],hD=(t,e,n)=>{if(e.length===1){const c=Number(e[0]),u=Number(n[0]);return Aee(t,u,c)}const r=[...t],i=Number(e.slice(0,1)),a=e.slice(1),s=n.slice(1),l=r[i];return r[i]={...l,children:hD(l.children,a,s)},r},pD=(t,e)=>{if(e.length===1){const s=Number(e[0]);return wee(t,s)}const n=[...t],r=Number(e.slice(0,1)),i=e.slice(1),a=n[r];return n[r]={...a,children:pD(a.children,i)},n},p7=(t,e,n)=>{if(e.length===1){const l=Number(e[0]);return See(t,l,n)}const r=[...t],i=Number(e.slice(0,1)),a=e.slice(1),s=r[i];return r[i]={...s,children:p7(s.children,a,n)},r},xee=(t,e,n)=>{let r=[...t],i=r[n[ma]].children[n[va]].children[n[Ca]].children[n[Ta]].children[n[Ea]].inlineConditionalRules.rules[n[Oa]].conditions[n[Zo]].children[n[Fo]];return r[n[ma]].children[n[va]].children[n[Ca]].children[n[Ta]].children[n[Ea]].inlineConditionalRules.rules[n[Oa]].conditions[n[Zo]].children.splice([n[Fo]],1),r[e[ma]].children[e[va]].children[e[Ca]].children[e[Ta]].children[e[Ea]].inlineConditionalRules.rules[e[Oa]].conditions[e[Zo]].children.splice(e[Fo],0,i),r},Cee=(t,e,n)=>hD(t,e,n),Tee=t=>{const e=[...t],n={type:ws,uuid:et(),children:[]};return e.map(r=>(r.children.length||(r.children=[n]),r))},gD=(t,e,n,r)=>{var h,g,v,m,A,w;let i;const a={...Bc,uuid:et(),children:[r]},s={...mu,uuid:et()},l={...mu,uuid:et(),children:[a]},c={...kf,uuid:et(),children:[l]},u={..._3,uuid:et(),children:[c]};switch(e.length){case 1:{r.type===fT?i={...c,children:[r]}:i={...c,children:[s]};break}case 2:{r.type===na?i={...u,children:[c]}:i={...u,children:[c]};break}case 3:{r.type===Oo?i={...c,children:[l]}:i={...mu,uuid:et(),children:[{...Bc,uuid:et(),children:[r]}]};break}case 4:{r.type===gf?i=a:i=r;break}case 5:{i=r;break}default:i=r}let d=t;return n.length>5?(w=(A=(m=(v=(g=(h=d[n[ma]])==null?void 0:h.children[n[va]])==null?void 0:g.children[n[Ca]])==null?void 0:v.children[n[Ta]])==null?void 0:m.children[n[Ea]])==null?void 0:A.inlineConditionalRules)==null||w.rules[n[Oa]].conditions[n[Zo]].children.splice(n[Fo],1):d=pD(d,n),d=Tee(d),d=p7(d,e,i),d},Eee=(t,e,n)=>{let r;switch(e.length){case 1:{r={..._3,uuid:et(),children:[{...kf,uuid:et(),children:[{...mu,uuid:et(),children:[{...Bc,uuid:et(),children:[n]}]}]}]};break}case 2:{r={...kf,uuid:et(),children:[{...mu,uuid:et(),children:[{...Bc,uuid:et(),children:[n]}]}]};break}case 3:{r={...mu,uuid:et(),children:[{...Bc,uuid:et(),children:[n]}]};break}case 4:{r={...Bc,uuid:et(),children:[n]};break}default:r=n}return p7(t,e,r)},on=()=>{const{state:t,dispatch:e,onChange:n,saveFormProgress:r}=fD(),{updateGlobalToast:i,emitSocketData:a}=Qt();if(t===void 0)throw new Error("Must be wrapped in builder provider");const s=t.builderTemplateName,l=t.isChangesSaved,c=t.editing_by,u=t.version_name,d=t.loading,f=t.published_status,h=t,g=t,v=t.formType,m=t==null?void 0:t.userSelectedLanguage,A=t==null?void 0:t.languages,w=t.layout,E=P.useCallback(me=>JQ(me)(e),[e]),x=P.useCallback(me=>CQ(me)(e),[e]),C=P.useCallback(me=>ZQ(me)(e),[e]),S=P.useCallback((me,Se)=>{var yt,qt,dn,mn,En,Vn,hn,Jt;const De=me.path.split("-"),j=De.slice(0,-1).join("-"),oe={uuid:Se.uuid,type:Se.type,reviewerChecklist:[]},pe=0,ue=1,le=2,se=3,Oe=4,Ne=5,Ke=6,ut=8,pt=7,ft=5,kt=6,Sn=8;if(Se.type===na&&(Se==null?void 0:Se.schema)!==void 0){U(JSON.parse(Se==null?void 0:Se.schema),parseInt(De[pe]));return}if(((yt=Se==null?void 0:Se.schema)==null?void 0:yt.componentType)==="question"&&((Vn=(En=(mn=(dn=(qt=w[0])==null?void 0:qt.children[0])==null?void 0:dn.children[0])==null?void 0:mn.children[0])==null?void 0:En.children)!=null&&Vn.some(Xe=>{var tt,ht,jt;return((tt=Xe==null?void 0:Xe.questionText)==null?void 0:tt[m.type])===((jt=(ht=Se==null?void 0:Se.schema)==null?void 0:ht.questionText)==null?void 0:jt[m.type])}))){i({showToast:!0,toastMessage:"Exist",toastDetail:"Question text cannot be same for more than one element",toastType:"warn"});return}if(Se.type===Rn){let Xe={type:gf,reviewerChecklist:[],...It.cloneDeep(Se.schema)};if(Xe!=null&&Xe.options&&(Xe={...Xe,options:[{uuid:et(),optionText:{english:"Option 1"},value:"Option1",hyperlinkText:{english:""},abbreviationText:{english:"Option 1"},custom_values:{}},{uuid:et(),optionText:{english:"Option 2"},value:"Option2",hyperlinkText:{english:""},abbreviationText:{english:"Option 1"},custom_values:{}}]}),Xe.componentType==="grid-component"&&(Xe={...Xe,children:[],options:[{uuid:et(),custom_values:{}}]}),Xe.componentType==="radio-hierarchal"&&(Xe={...Xe,type:"radio",children:[],options:[{uuid:et(),label:"Yes",value:null,enableConditionalField:!0,children:[]},{uuid:et(),label:"No",value:null,enableConditionalField:!0,children:[]}]}),Xe={...Xe,uuid:et()},De.length===ut){W(parseInt(De[pe]),parseInt(De[ue]),parseInt(De[le]),parseInt(De[se]),parseInt(De[Oe]),parseInt(De[Ne]),parseInt(De[Ke]),Xe),a();return}if(De.length===pt){de(parseInt(De[pe]),parseInt(De[ue]),parseInt(De[le]),parseInt(De[se]),parseInt(De[Oe]),parseInt(De[ft]),parseInt(De[kt]),Xe),a();return}if((Jt=(hn=w[De[pe]].children[De[ue]])==null?void 0:hn.children[De[le]])!=null&&Jt.rowIsRepeatable&&(Xe==null?void 0:Xe.componentType)==="editor"){i({showToast:!0,toastMessage:"Forbidden",toastDetail:"This Field cannot be applied in repeatable",toastType:"error"});return}C(Eee(w,De,Xe)),a(),De.length>1&&ye(De[pe],De[ue],De[le],Xe);return}const Vt=Se.path.split("-"),Nt=Vt.slice(0,-1).join("-");if(Vt.length===De.length){if(Nt===j){if((Vt==null?void 0:Vt.length)===Sn){C(xee(w,De,Vt));return}C(Cee(w,De,Vt));return}const Xe={...oe,...Se};(Se==null?void 0:Se.id)===void 0&&(Xe.id=et()),C(gD(w,De,Vt,Xe));return}if((Vt==null?void 0:Vt.length)===8){const Xe={type:gf,reviewerChecklist:[],...Se};de(parseInt(De[pe]),parseInt(De[ue]),parseInt(De[le]),parseInt(De[se]),parseInt(De[Oe]),parseInt(De[ft]),parseInt(De[kt]),Xe),$(Vt[ma],Vt[va],Vt[Ca],Vt[Ta],Vt[Ea],Vt[ft],Vt[kt],Vt[tc]);return}const $e={...oe,...Se};(Se==null?void 0:Se.id)===void 0&&($e.id=et()),C(gD(w,De,Vt,$e))},[w,m.type]),_=P.useCallback(()=>sJ()(e),[e]),I=P.useCallback(me=>eJ(me)(e,t),[e]),F=P.useCallback(me=>tJ(me)(e,t),[e]),M=P.useCallback(me=>nJ(me)(e),[e]),L=P.useCallback(me=>xQ(me)(e),[e]),V=P.useCallback(me=>DQ(me)(e),[e]),U=P.useCallback((me,Se)=>FQ(me,Se)(e),[e]),O=P.useCallback((me,Se)=>BQ(me,Se)(e),[e]),q=P.useCallback((me,Se,De)=>qQ(me,Se,De)(e),[e]),ie=P.useCallback(me=>IQ(me)(e),[e]),ge=P.useCallback((me,Se)=>_Q(me,Se)(e),[e]),Z=P.useCallback((me,Se,De)=>LQ(me,Se,De)(e),[e]),Q=P.useCallback((me,Se,De,j)=>jQ(me,Se,De,j)(e),[e]),ce=P.useCallback((me,Se,De,j,oe)=>zQ(me,Se,De,j,oe)(e,t),[e]),K=P.useCallback((me,Se,De,j,oe,pe)=>HQ(me,Se,De,j,oe,pe)(e,t),[e]),he=P.useCallback((me,Se,De)=>NQ(me,Se,De)(e),[e]),ee=P.useCallback((me,Se,De,j)=>MQ(me,Se,De,j)(e),[e]),te=P.useCallback((me,Se)=>EQ(me,Se)(e),[e]),Y=P.useCallback((me,Se,De,j,oe,pe)=>YQ(me,Se,De,j,oe,pe)(e),[e]),R=P.useCallback((me,Se,De,j,oe)=>$Q(me,Se,De,j,oe)(e),[e]),fe=P.useCallback((me,Se,De,j)=>PQ(me,Se,De,j)(e),[e]),be=P.useCallback((me,Se,De)=>OQ(me,Se,De)(e),[e]),Te=P.useCallback((me,Se)=>TQ(me,Se)(e,t),[e]),ye=P.useCallback((me,Se,De,j)=>VQ(me,Se,De,j)(e),[e]),Ae=P.useCallback((me,Se,De,j,oe,pe,ue,le,se)=>WQ(me,Se,De,j,oe,pe,ue,le,se)(e),[e]),ne=P.useCallback((me,Se,De,j,oe,pe,ue,le,se)=>RQ(me,Se,De,j,oe,pe,ue,le,se)(e),[e]),$=P.useCallback((me,Se,De,j,oe,pe,ue,le)=>GQ(me,Se,De,j,oe,pe,ue,le)(e),[e]),re=P.useCallback((me,Se,De,j,oe,pe,ue,le)=>QQ(me,Se,De,j,oe,pe,ue,le)(e),[e]),W=P.useCallback((me,Se,De,j,oe,pe,ue,le)=>KQ(me,Se,De,j,oe,pe,ue,le)(e),[e]),de=P.useCallback((me,Se,De,j,oe,pe,ue,le)=>XQ(me,Se,De,j,oe,pe,ue,le)(e),[e]),Ie=P.useCallback(me=>rJ(me)(e),[e]),Ee=P.useCallback(me=>iJ(me)(e),[e]),ve=P.useCallback(me=>aJ(me)(e),[e]);return{builderIsChangesSaved:l,builderTemplateName:s,formBuilderFormSchema:h,formBuilderFormLayout:w,formBuilderSchemaLanguages:A,saveFormTemplateNewVersion:g,userSelectedLanguage:m,formBuilderConfigurationType:v,formBuilderLoading:d,formBuilderPublishedStatus:f,builderEditingBy:c,builderVersionName:u,handleDrop:S,formatTableFieldsHook:x,saveFormBuilderSchema:E,removePage:ie,removeSection:ge,removeRow:Z,removeColumn:Q,removeField:ce,updateEditingBy:ve,addTabs:L,addSection:V,addRow:O,addColumn:q,cloneField:Y,cloneColumn:R,cloneRow:fe,cloneSection:be,clonePage:Te,sectionImport:U,setLayout:C,fieldSettingUpdate:K,selectFormBuilderLanguage:I,unselectFormBuilderLanguage:F,updateUserFormSelectedLanguage:M,updateFormType:Ie,schemaBuilderUpdate:Ee,pageSettingUpdate:te,saveFormProgress:r,sectionSettingUpdate:he,rowSettingUpdate:ee,clearBuilderSchema:_,addFieldToRowRepeaptable:ye,addFieldToInlineRuleCondtionFields:W,fieldSettingUpdateInlineConditional:Ae,fieldSettingDeleteInlineConditional:re,addFieldToGridComponentHook:de,gridComponentFieldSettingUpdate:ne,gridComponentFieldDelete:$}},Qt=()=>{var x,C,S;const{isPreview:t,isAdmin:e,isRenderView:n,renderType:r,isAdvanceView:i,media:a,exam:s,globalAlignment:l,reusableComponent:c,showSettings:u,training:d}=fD();if(t===void 0)throw new Error("Must be wrapped in builder provider");const f=r==null?void 0:r.key,{saveComponent:h,componentList:g,sectionsList:v}=c,m=()=>{},A=_=>{u!=null&&u.showToast&&(u==null||u.showToast(_))},w=((x=d==null?void 0:d.quiz)==null?void 0:x.quizList)||[],E=(C=d==null?void 0:d.quiz)!=null&&C.getQuizList?(S=d==null?void 0:d.quiz)==null?void 0:S.getQuizList:()=>{};return{quizlist:w,getQuizList:E,isPreview:t,isAdmin:e,isRenderView:n,renderType:f,isAdvanceView:i,globalAlignment:l,media:a,exam:s,saveComponent:h,componentList:g,sectionsList:v,emitSocketData:m,updateGlobalToast:A}},Iee="TASKS_LOADING",_ee="TASKS_ADD",Dee="TASKS_GET_PAGINATED_LIST",Nee="TASKS_DELETE",Oee="TASKS_PAGNIATION_UPDATE",Fee="TASKS_UPDATE",kee="TASKS_SUCCESS_GET",Pee="TASK_GET_TEMPLATE",Mee="TASK_SET_DATA",Lee="TASKS_FORM_SUBMIT",Bee="TASKS_FORM_HTTP_REQUEST",g7="TASK_SET_PROGRESS_VALUE",mD="TASK_SET_MAX_PROGRESS_VALUE",vD="TASK_SET_REGISTER_DATA",bD="TASK_SET_SCHEMA",m7="TASK_UPDATE_USER_FORM_SUBMIT_DATA",yD="CLEAR_TASK",AD="TASK_USER_SUBMIT_FORM_REPEATABLE_ADD",wD="TASK_USER_SUBMIT_FORM_REPEATABLE_REMOVE_INDEX",SD="TASK_USER_TRAINING_DATA",xD="TASK_FIELD_UPDATE",Vee=6,L3=1,n2="DISPLAY_TYPE_START_DETAILS",B3="DISPLAY_TYPE_QUIZ",v7="DISPLAY_TYPE_START_TIMER";function Uee(t,e,n,r,i,a){return s=>{s({type:xD,payLoad:{pageIndex:t,sectionIndex:e,rowIndex:n,columnIndex:r,fieldIndex:i,field:a}})}}function CD(t){return(e,n)=>{const r={type:m7,payLoad:{userTaskSubmitFormData:[...t]}};e(r)}}function qee(t){return(e,n)=>{const{TasksReducer:r}=n(),{taskData:i}=r,a={type:m7,payLoad:{taskData:{...i,...t}}};e(a)}}function $ee(t,e){return(n,r)=>{const{TasksReducer:i}=r(),{userTaskSubmitFormData:a}=i,s=It.findIndex(a,function(c){return c.rowId===t});n({type:wD,payLoad:{userSubmitFormIndex:s,repeatableDataRowIndex:e}})}}function jee(t,e){return(n,r)=>{const{TasksReducer:i}=r(),{userTaskSubmitFormData:a}=i,s=It.findIndex(a,function(c){return c.rowId===t});n({type:AD,payLoad:{userSubmitFormIndex:s,repeatableData:e}})}}function zee(){return t=>{t({type:yD,payLoad:null})}}const TD=t=>e=>{console.log("updateProgresValue",t),e({type:g7,payLoad:{progressValue:t}})},Hee=t=>e=>{e({type:g7,payLoad:t})},Yee=t=>e=>{e({type:SD,payLoad:{userTrainingSaveData:t}})},ED=t=>e=>{e({type:vD,payLoad:{registerData:t}})},Kee=(t,e,n)=>(r,i)=>{var d;const{TasksReducer:a}=i(),{userTaskSubmitFormData:s}=a,l=[...s],c=It.findIndex(l,function(f){var h;return f.rowId===((h=t==null?void 0:t.row)==null?void 0:h.uuid)});let u=(d=s[c])==null?void 0:d.repeatableFields;u={...u,[e==null?void 0:e.uuid]:`<div>${n}</div>`},l[c]={...l[c],repeatableFields:u},r(CD(l))},Xee=(t,e,n)=>(r,i)=>{const{TasksReducer:a}=i(),{userTaskSubmitFormData:s,registerData:l}=a,c=s,u=It.cloneDeep(l);if(n&&(c==null?void 0:c.length)>0){u[e==null?void 0:e.uuid]=n;for(const f of c)f.fieldId===e.uuid&&(f.postData[0]={postValue:n})}else if((c==null?void 0:c.length)>0){for(const f of c)f.fieldId===e.uuid&&(f.postData[0]={postValue:""});delete u[e==null?void 0:e.uuid]}r(ED(u));const d=Object.keys(u).length;r(TD(d))},Ree=t=>e=>{e({type:mD,payLoad:{progressMaxValue:t}})},b7={submitting:!1,httpRequest:!1,taskData:null,taskUpdateLoading:!1,loading:!1,progressLoading:!1,list:[],filter:"",sort:"task.created_at|desc",total_records:0,page:1,per_page:10,success:!1,success_message:"",userTaskSubmitFormData:null,taskSchema:null,progressMaxValue:0,maxTabs:0,registerData:{},progressValue:0,tabNoOfFieldsData:[],noOfTotalElements:0,sortField:null,sortOrder:null,userTrainingSaveData:null,assessmentData:null,task_status:1},Gee=(t=b7,e)=>{switch(e.type){case yD:return{...t,...b7,list:[...t.list],page:t.page,per_page:t.per_page,filter:t.filter,sort:t.sort,total_records:t.total_records};case kee:return{...t,...e.payLoad};case m7:return{...t,...e.payLoad};case bD:return{...t,...e.payLoad};case g7:return{...t,...e.payLoad};case vD:return{...t,registerData:e.payLoad.registerData};case mD:return{...t,...e.payLoad};case Iee:return{...t,...e.payLoad};case Lee:return{...t,...e.payLoad};case Bee:return{...t,...e.payLoad};case _ee:{const{record:n}=e.payLoad;return{...t,list:[...n,...t.list]}}case Dee:return{...t,...e.payLoad};case Mee:return{...t,taskData:e.payLoad};case Oee:return{...t,...e.payLoad};case Nee:{const n=t.list.filter(r=>r.task_id!==e.payLoad.task_id);return{...t,list:[...n]}}case SD:return{...t,...e.payLoad};case xD:{const{pageIndex:n,sectionIndex:r,rowIndex:i,columnIndex:a,fieldIndex:s,field:l}=e.payLoad,c=[...t.taskSchema.layout];c[n].children[r].children[i].children[a].children[s]=l;const u={...t.taskSchema,layout:c};return{...t,taskSchema:u}}case AD:{const{userSubmitFormIndex:n,repeatableData:r}=e.payLoad,i=t.userTaskSubmitFormData[n].repeatableFieldsData?t.userTaskSubmitFormData[n].repeatableFieldsData:[];return i.push(r),t.userTaskSubmitFormData[n].repeatableFieldsData=i,t}case wD:{const{userSubmitFormIndex:n,repeatableDataRowIndex:r}=e.payLoad,i=[...t.userTaskSubmitFormData],a=[...i[n].repeatableFieldsData];return a.splice(r,1),i[n]={...i[n],repeatableFieldsData:a},{...t,userTaskSubmitFormData:i}}case Fee:{const{row:n,eventIndex:r}=e.payLoad,i=t.list[r];return t.list[r]={...i,...n},t}case Pee:return{...t,...e.payLoad}}return t},ID=P.createContext(void 0),Wee=({option:t,taskOptions:e,saveFormBuilderSchema:n,templateSchema:r,taskValue:i,children:a,isHTML5BackendDisabled:s=!1})=>{const[l,c]=P.useReducer(Gee,{...b7,...i}),{progressMaxValue:u=0,progressValue:d=0,registerData:f=null,...h}=i||{};return P.useEffect(()=>{c({type:bD,payLoad:h})},[i]),o.jsx(ID.Provider,{value:{taskOptions:e,state:l,dispatch:c},children:o.jsx(dD,{isHTML5BackendDisabled:s,option:t,saveFormBuilderSchema:n,templateSchema:r,onChange:()=>{},children:a})})},Qee=()=>P.useContext(ID),yr=()=>{var Ae,ne,$,re,W,de,Ie,Ee;const{taskOptions:n,state:r,dispatch:i}=Qee();if(r===void 0)throw new Error("Must be wrapped in task render provider");const a=r.task_status,s=r.task_status,l=r.userTaskSubmitFormData,c=r.userTrainingSaveData,u=r.taskSchema,d=r.assessmentData,f=r.progressLoading,h=r.submitting,g=r.httpRequest,v=r.taskData,m=r.progressMaxValue,A=r.maxTabs,w=r.tabNoOfFieldsData,E=r.registerData,x=r.progressValue,C=r.noOfTotalElements,S=r.menuList,_=r.loading,I=r.submitting,F=r.success,M=r.success_message,L=(Ae=n==null?void 0:n.exam)!=null&&Ae.startQuiz?(ne=n==null?void 0:n.exam)==null?void 0:ne.startQuiz:()=>{},V=($=n==null?void 0:n.exam)!=null&&$.AddUserAssessmentAnswer?(re=n==null?void 0:n.exam)==null?void 0:re.AddUserAssessmentAnswer:()=>{},U=(W=n==null?void 0:n.exam)!=null&&W.endQuiz?(de=n==null?void 0:n.exam)==null?void 0:de.endQuiz:()=>{},O=(Ie=n==null?void 0:n.exam)!=null&&Ie.examComplete?(Ee=n==null?void 0:n.exam)==null?void 0:Ee.examComplete:ve=>{},q=n!=null&&n.updateTaskFormData?n==null?void 0:n.updateTaskFormData:(ve,me,Se,De,j,oe)=>{},ie=n!=null&&n.submitTaskFormData?n==null?void 0:n.submitTaskFormData:(ve,me,Se)=>{},ge=P.useCallback(ve=>i(qee(ve)),[i]),Z=P.useCallback((ve,me,Se)=>{},[i]),Q=P.useCallback(()=>i(zee()),[i]),ce=P.useCallback((ve,me)=>i(jee(ve,me)),[i]),K=P.useCallback((ve,me)=>i($ee(ve,me)),[i]),he=P.useCallback(ve=>{TD(ve)(i)},[i]),ee=P.useCallback(ve=>i(Hee(ve)),[i]),te=P.useCallback(ve=>i(ED(ve)),[i]),Y=P.useCallback(ve=>i(CD(ve)),[i]),R=P.useCallback(ve=>i(Ree(ve)),[i]),fe=P.useCallback(ve=>i(Yee(ve)),[i]),be=P.useCallback((ve,me,Se)=>i(Kee(ve,me,Se)),[i]),Te=P.useCallback((ve,me,Se)=>i(Xee(ve,me,Se)),[i]),ye=P.useCallback((ve,me,Se,De,j,oe)=>i(Uee(ve,me,Se,De,j,oe)),[i]);return{examComplete:O,taskOptions:n,TASK_PUBLISHED:6,TASK_PENDING:1,taskStatus:s,assessmentData:d,taskSchema:u,taskData:v,TasksList:S,TasksLoading:_,TasksSuccess:F,TasksSuccessMessage:M,taskProgressMaxValue:m,taskRegisterData:E,taskProgressValue:x,taskMaxTabs:A,noOfTotalElements:C,taskTabRequiredFieldsData:w,userTaskSubmitFormData:l,userTrainingSaveData:c,TasksSubmitLoading:I,updateTaskDataSchema:ge,submitTaskFormData:ie,updateTaskFormData:q,TasksSubmit:h,TasksHTTPRequest:g,updateTaskRegisterData:te,updateTaskProgressValue:he,updateTaskProgressMaxValue:R,updateUserFormDataSubmit:Y,removeUserDataFormSectionRepeatableData:K,addUserDataFormSectionRepeatableData:ce,onSetValuetoRepeatableData:be,onSetValuetoPostDataHook:Te,clearTaskSchema:Q,taskProgressLoading:f,task_status:a,startQuiz:L,endQuiz:U,AddUserAssessmentAnswer:V,updateUserTraining:fe,taskFieldUpdateHook:ye,updateProgressDataValuesHook:ee,saveProgressDataHook:Z}};function y7(){return y7=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},y7.apply(null,arguments)}var _D=b.memo(b.forwardRef(function(t,e){var n=ri.getPTI(t);return b.createElement("svg",y7({ref:e,width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),b.createElement("path",{d:"M13.4018 13.1893H0.598161C0.49329 13.189 0.390283 13.1615 0.299143 13.1097C0.208003 13.0578 0.131826 12.9832 0.0780112 12.8932C0.0268539 12.8015 0 12.6982 0 12.5931C0 12.4881 0.0268539 12.3848 0.0780112 12.293L6.47985 1.08982C6.53679 1.00399 6.61408 0.933574 6.70484 0.884867C6.7956 0.836159 6.897 0.810669 7 0.810669C7.103 0.810669 7.2044 0.836159 7.29516 0.884867C7.38592 0.933574 7.46321 1.00399 7.52015 1.08982L13.922 12.293C13.9731 12.3848 14 12.4881 14 12.5931C14 12.6982 13.9731 12.8015 13.922 12.8932C13.8682 12.9832 13.792 13.0578 13.7009 13.1097C13.6097 13.1615 13.5067 13.189 13.4018 13.1893ZM1.63046 11.989H12.3695L7 2.59425L1.63046 11.989Z",fill:"currentColor"}),b.createElement("path",{d:"M6.99996 8.78801C6.84143 8.78594 6.68997 8.72204 6.57787 8.60993C6.46576 8.49782 6.40186 8.34637 6.39979 8.18784V5.38703C6.39979 5.22786 6.46302 5.0752 6.57557 4.96265C6.68813 4.85009 6.84078 4.78686 6.99996 4.78686C7.15914 4.78686 7.31179 4.85009 7.42435 4.96265C7.5369 5.0752 7.60013 5.22786 7.60013 5.38703V8.18784C7.59806 8.34637 7.53416 8.49782 7.42205 8.60993C7.30995 8.72204 7.15849 8.78594 6.99996 8.78801Z",fill:"currentColor"}),b.createElement("path",{d:"M6.99996 11.1887C6.84143 11.1866 6.68997 11.1227 6.57787 11.0106C6.46576 10.8985 6.40186 10.7471 6.39979 10.5885V10.1884C6.39979 10.0292 6.46302 9.87658 6.57557 9.76403C6.68813 9.65147 6.84078 9.58824 6.99996 9.58824C7.15914 9.58824 7.31179 9.65147 7.42435 9.76403C7.5369 9.87658 7.60013 10.0292 7.60013 10.1884V10.5885C7.59806 10.7471 7.53416 10.8985 7.42205 11.0106C7.30995 11.1227 7.15849 11.1866 6.99996 11.1887Z",fill:"currentColor"}))}));_D.displayName="ExclamationTriangleIcon";function A7(){return A7=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},A7.apply(null,arguments)}var DD=b.memo(b.forwardRef(function(t,e){var n=ri.getPTI(t);return b.createElement("svg",A7({ref:e,width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),b.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.11101 12.8203C4.26215 13.5895 5.61553 14 7 14C8.85652 14 10.637 13.2625 11.9497 11.9497C13.2625 10.637 14 8.85652 14 7C14 5.61553 13.5895 4.26215 12.8203 3.11101C12.0511 1.95987 10.9579 1.06266 9.67879 0.532846C8.3997 0.00303296 6.99224 -0.13559 5.63437 0.134506C4.2765 0.404603 3.02922 1.07129 2.05026 2.05026C1.07129 3.02922 0.404603 4.2765 0.134506 5.63437C-0.13559 6.99224 0.00303296 8.3997 0.532846 9.67879C1.06266 10.9579 1.95987 12.0511 3.11101 12.8203ZM3.75918 2.14976C4.71846 1.50879 5.84628 1.16667 7 1.16667C8.5471 1.16667 10.0308 1.78125 11.1248 2.87521C12.2188 3.96918 12.8333 5.45291 12.8333 7C12.8333 8.15373 12.4912 9.28154 11.8502 10.2408C11.2093 11.2001 10.2982 11.9478 9.23232 12.3893C8.16642 12.8308 6.99353 12.9463 5.86198 12.7212C4.73042 12.4962 3.69102 11.9406 2.87521 11.1248C2.05941 10.309 1.50384 9.26958 1.27876 8.13803C1.05367 7.00647 1.16919 5.83358 1.61071 4.76768C2.05222 3.70178 2.79989 2.79074 3.75918 2.14976ZM7.00002 4.8611C6.84594 4.85908 6.69873 4.79698 6.58977 4.68801C6.48081 4.57905 6.4187 4.43185 6.41669 4.27776V3.88888C6.41669 3.73417 6.47815 3.58579 6.58754 3.4764C6.69694 3.367 6.84531 3.30554 7.00002 3.30554C7.15473 3.30554 7.3031 3.367 7.4125 3.4764C7.52189 3.58579 7.58335 3.73417 7.58335 3.88888V4.27776C7.58134 4.43185 7.51923 4.57905 7.41027 4.68801C7.30131 4.79698 7.1541 4.85908 7.00002 4.8611ZM7.00002 10.6945C6.84594 10.6925 6.69873 10.6304 6.58977 10.5214C6.48081 10.4124 6.4187 10.2652 6.41669 10.1111V6.22225C6.41669 6.06754 6.47815 5.91917 6.58754 5.80977C6.69694 5.70037 6.84531 5.63892 7.00002 5.63892C7.15473 5.63892 7.3031 5.70037 7.4125 5.80977C7.52189 5.91917 7.58335 6.06754 7.58335 6.22225V10.1111C7.58134 10.2652 7.51923 10.4124 7.41027 10.5214C7.30131 10.6304 7.1541 10.6925 7.00002 10.6945Z",fill:"currentColor"}))}));DD.displayName="InfoCircleIcon";function w7(){return w7=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},w7.apply(null,arguments)}var S7=b.memo(b.forwardRef(function(t,e){var n=ri.getPTI(t);return b.createElement("svg",w7({ref:e,width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),b.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 14C5.61553 14 4.26215 13.5895 3.11101 12.8203C1.95987 12.0511 1.06266 10.9579 0.532846 9.67879C0.00303296 8.3997 -0.13559 6.99224 0.134506 5.63437C0.404603 4.2765 1.07129 3.02922 2.05026 2.05026C3.02922 1.07129 4.2765 0.404603 5.63437 0.134506C6.99224 -0.13559 8.3997 0.00303296 9.67879 0.532846C10.9579 1.06266 12.0511 1.95987 12.8203 3.11101C13.5895 4.26215 14 5.61553 14 7C14 8.85652 13.2625 10.637 11.9497 11.9497C10.637 13.2625 8.85652 14 7 14ZM7 1.16667C5.84628 1.16667 4.71846 1.50879 3.75918 2.14976C2.79989 2.79074 2.05222 3.70178 1.61071 4.76768C1.16919 5.83358 1.05367 7.00647 1.27876 8.13803C1.50384 9.26958 2.05941 10.309 2.87521 11.1248C3.69102 11.9406 4.73042 12.4962 5.86198 12.7212C6.99353 12.9463 8.16642 12.8308 9.23232 12.3893C10.2982 11.9478 11.2093 11.2001 11.8502 10.2408C12.4912 9.28154 12.8333 8.15373 12.8333 7C12.8333 5.45291 12.2188 3.96918 11.1248 2.87521C10.0308 1.78125 8.5471 1.16667 7 1.16667ZM4.66662 9.91668C4.58998 9.91704 4.51404 9.90209 4.44325 9.87271C4.37246 9.84333 4.30826 9.8001 4.2544 9.74557C4.14516 9.6362 4.0838 9.48793 4.0838 9.33335C4.0838 9.17876 4.14516 9.0305 4.2544 8.92113L6.17553 7L4.25443 5.07891C4.15139 4.96832 4.09529 4.82207 4.09796 4.67094C4.10063 4.51982 4.16185 4.37563 4.26872 4.26876C4.3756 4.16188 4.51979 4.10066 4.67091 4.09799C4.82204 4.09532 4.96829 4.15142 5.07887 4.25446L6.99997 6.17556L8.92106 4.25446C9.03164 4.15142 9.1779 4.09532 9.32903 4.09799C9.48015 4.10066 9.62434 4.16188 9.73121 4.26876C9.83809 4.37563 9.89931 4.51982 9.90198 4.67094C9.90464 4.82207 9.84855 4.96832 9.74551 5.07891L7.82441 7L9.74554 8.92113C9.85478 9.0305 9.91614 9.17876 9.91614 9.33335C9.91614 9.48793 9.85478 9.6362 9.74554 9.74557C9.69168 9.8001 9.62748 9.84333 9.55669 9.87271C9.4859 9.90209 9.40996 9.91704 9.33332 9.91668C9.25668 9.91704 9.18073 9.90209 9.10995 9.87271C9.03916 9.84333 8.97495 9.8001 8.9211 9.74557L6.99997 7.82444L5.07884 9.74557C5.02499 9.8001 4.96078 9.84333 4.88999 9.87271C4.81921 9.90209 4.74326 9.91704 4.66662 9.91668Z",fill:"currentColor"}))}));S7.displayName="TimesCircleIcon";function x7(){return x7=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},x7.apply(null,arguments)}function C7(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function Jee(t){if(Array.isArray(t))return C7(t)}function Zee(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function ND(t,e){if(t){if(typeof t=="string")return C7(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?C7(t,e):void 0}}function ete(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
1601
+ `),dataTransfer:t=>t},matchesTypes:["Url","text/uri-list"]},[rD]:{exposeProperties:{text:(t,e)=>d7(t,e,""),dataTransfer:t=>t},matchesTypes:["Text","text/plain"]}};function dee(t,e){const n=f7[t];if(!n)throw new Error(`native type ${t} has no configuration`);const r=new uee(n);return r.loadDataTransfer(e),r}function h7(t){if(!t)return null;const e=Array.prototype.slice.call(t.types||[]);return Object.keys(f7).filter(n=>{const r=f7[n];return r!=null&&r.matchesTypes?r.matchesTypes.some(i=>e.indexOf(i)>-1):!1})[0]||null}const fee=eD(()=>/firefox/i.test(navigator.userAgent)),sD=eD(()=>!!window.safari);class oD{interpolate(e){const{xs:n,ys:r,c1s:i,c2s:a,c3s:s}=this;let l=n.length-1;if(e===n[l])return r[l];let c=0,u=s.length-1,d;for(;c<=u;){d=Math.floor(.5*(c+u));const g=n[d];if(g<e)c=d+1;else if(g>e)u=d-1;else return r[d]}l=Math.max(0,u);const f=e-n[l],h=f*f;return r[l]+i[l]*f+a[l]*h+s[l]*f*h}constructor(e,n){const{length:r}=e,i=[];for(let g=0;g<r;g++)i.push(g);i.sort((g,v)=>e[g]<e[v]?-1:1);const a=[],s=[];let l,c;for(let g=0;g<r-1;g++)l=e[g+1]-e[g],c=n[g+1]-n[g],a.push(l),s.push(c/l);const u=[s[0]];for(let g=0;g<a.length-1;g++){const v=s[g],m=s[g+1];if(v*m<=0)u.push(0);else{l=a[g];const A=a[g+1],w=l+A;u.push(3*w/((w+A)/v+(w+l)/m))}}u.push(s[s.length-1]);const d=[],f=[];let h;for(let g=0;g<u.length-1;g++){h=s[g];const v=u[g],m=1/a[g],A=v+u[g+1]-h-h;d.push((h-v-A)*m),f.push(A*m*m)}this.xs=e,this.ys=n,this.c1s=u,this.c2s=d,this.c3s=f}}const hee=1;function lD(t){const e=t.nodeType===hee?t:t.parentElement;if(!e)return null;const{top:n,left:r}=e.getBoundingClientRect();return{x:r,y:n}}function M3(t){return{x:t.clientX,y:t.clientY}}function pee(t){var e;return t.nodeName==="IMG"&&(fee()||!(!((e=document.documentElement)===null||e===void 0)&&e.contains(t)))}function gee(t,e,n,r){let i=t?e.width:n,a=t?e.height:r;return sD()&&t&&(a/=window.devicePixelRatio,i/=window.devicePixelRatio),{dragPreviewWidth:i,dragPreviewHeight:a}}function mee(t,e,n,r,i){const a=pee(e),l=lD(a?t:e),c={x:n.x-l.x,y:n.y-l.y},{offsetWidth:u,offsetHeight:d}=t,{anchorX:f,anchorY:h}=r,{dragPreviewWidth:g,dragPreviewHeight:v}=gee(a,e,u,d),m=()=>{let _=new oD([0,.5,1],[c.y,c.y/d*v,c.y+v-d]).interpolate(h);return sD()&&a&&(_+=(window.devicePixelRatio-1)*v),_},A=()=>new oD([0,.5,1],[c.x,c.x/u*g,c.x+g-u]).interpolate(f),{offsetX:w,offsetY:E}=i,x=w===0||w,C=E===0||E;return{x:x?w:A(),y:C?E:m()}}class vee{get window(){if(this.globalContext)return this.globalContext;if(typeof window<"u")return window}get document(){var e;return!((e=this.globalContext)===null||e===void 0)&&e.document?this.globalContext.document:this.window?this.window.document:void 0}get rootElement(){var e;return((e=this.optionsArgs)===null||e===void 0?void 0:e.rootElement)||this.window}constructor(e,n){this.ownerDocument=null,this.globalContext=e,this.optionsArgs=n}}function bee(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function cD(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){bee(t,i,n[i])})}return t}class yee{profile(){var e,n;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:((e=this.dragStartSourceIds)===null||e===void 0?void 0:e.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:((n=this.dragOverTargetIds)===null||n===void 0?void 0:n.length)||0}}get window(){return this.options.window}get document(){return this.options.document}get rootElement(){return this.options.rootElement}setup(){const e=this.rootElement;if(e!==void 0){if(e.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");e.__isReactDndBackendSetUp=!0,this.addEventListeners(e)}}teardown(){const e=this.rootElement;if(e!==void 0&&(e.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.rootElement),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId)){var n;(n=this.window)===null||n===void 0||n.cancelAnimationFrame(this.asyncEndDragFrameId)}}connectDragPreview(e,n,r){return this.sourcePreviewNodeOptions.set(e,r),this.sourcePreviewNodes.set(e,n),()=>{this.sourcePreviewNodes.delete(e),this.sourcePreviewNodeOptions.delete(e)}}connectDragSource(e,n,r){this.sourceNodes.set(e,n),this.sourceNodeOptions.set(e,r);const i=s=>this.handleDragStart(s,e),a=s=>this.handleSelectStart(s);return n.setAttribute("draggable","true"),n.addEventListener("dragstart",i),n.addEventListener("selectstart",a),()=>{this.sourceNodes.delete(e),this.sourceNodeOptions.delete(e),n.removeEventListener("dragstart",i),n.removeEventListener("selectstart",a),n.setAttribute("draggable","false")}}connectDropTarget(e,n){const r=s=>this.handleDragEnter(s,e),i=s=>this.handleDragOver(s,e),a=s=>this.handleDrop(s,e);return n.addEventListener("dragenter",r),n.addEventListener("dragover",i),n.addEventListener("drop",a),()=>{n.removeEventListener("dragenter",r),n.removeEventListener("dragover",i),n.removeEventListener("drop",a)}}addEventListeners(e){e.addEventListener&&(e.addEventListener("dragstart",this.handleTopDragStart),e.addEventListener("dragstart",this.handleTopDragStartCapture,!0),e.addEventListener("dragend",this.handleTopDragEndCapture,!0),e.addEventListener("dragenter",this.handleTopDragEnter),e.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.addEventListener("dragover",this.handleTopDragOver),e.addEventListener("dragover",this.handleTopDragOverCapture,!0),e.addEventListener("drop",this.handleTopDrop),e.addEventListener("drop",this.handleTopDropCapture,!0))}removeEventListeners(e){e.removeEventListener&&(e.removeEventListener("dragstart",this.handleTopDragStart),e.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),e.removeEventListener("dragend",this.handleTopDragEndCapture,!0),e.removeEventListener("dragenter",this.handleTopDragEnter),e.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.removeEventListener("dragover",this.handleTopDragOver),e.removeEventListener("dragover",this.handleTopDragOverCapture,!0),e.removeEventListener("drop",this.handleTopDrop),e.removeEventListener("drop",this.handleTopDropCapture,!0))}getCurrentSourceNodeOptions(){const e=this.monitor.getSourceId(),n=this.sourceNodeOptions.get(e);return cD({dropEffect:this.altKeyPressed?"copy":"move"},n||{})}getCurrentDropEffect(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}getCurrentSourcePreviewNodeOptions(){const e=this.monitor.getSourceId(),n=this.sourcePreviewNodeOptions.get(e);return cD({anchorX:.5,anchorY:.5,captureDraggingState:!1},n||{})}isDraggingNativeItem(){const e=this.monitor.getItemType();return Object.keys(aD).some(n=>aD[n]===e)}beginDragNativeItem(e,n){this.clearCurrentDragSourceNode(),this.currentNativeSource=dee(e,n),this.currentNativeHandle=this.registry.addSource(e,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}setCurrentDragSourceNode(e){this.clearCurrentDragSourceNode(),this.currentDragSourceNode=e;const n=1e3;this.mouseMoveTimeoutTimer=setTimeout(()=>{var r;return(r=this.rootElement)===null||r===void 0?void 0:r.addEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)},n)}clearCurrentDragSourceNode(){if(this.currentDragSourceNode){if(this.currentDragSourceNode=null,this.rootElement){var e;(e=this.window)===null||e===void 0||e.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)}return this.mouseMoveTimeoutTimer=null,!0}return!1}handleDragStart(e,n){e.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(n))}handleDragEnter(e,n){this.dragEnterTargetIds.unshift(n)}handleDragOver(e,n){this.dragOverTargetIds===null&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(n)}handleDrop(e,n){this.dropTargetIds.unshift(n)}constructor(e,n,r){this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.sourceNodes=new Map,this.sourceNodeOptions=new Map,this.dragStartSourceIds=null,this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.altKeyPressed=!1,this.mouseMoveTimeoutTimer=null,this.asyncEndDragFrameId=null,this.dragOverTargetIds=null,this.lastClientOffset=null,this.hoverRafId=null,this.getSourceClientOffset=i=>{const a=this.sourceNodes.get(i);return a&&lD(a)||null},this.endDragNativeItem=()=>{this.isDraggingNativeItem()&&(this.actions.endDrag(),this.currentNativeHandle&&this.registry.removeSource(this.currentNativeHandle),this.currentNativeHandle=null,this.currentNativeSource=null)},this.isNodeInDocument=i=>!!(i&&this.document&&this.document.body&&this.document.body.contains(i)),this.endDragIfSourceWasRemovedFromDOM=()=>{const i=this.currentDragSourceNode;i==null||this.isNodeInDocument(i)||(this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover())},this.scheduleHover=i=>{this.hoverRafId===null&&typeof requestAnimationFrame<"u"&&(this.hoverRafId=requestAnimationFrame(()=>{this.monitor.isDragging()&&this.actions.hover(i||[],{clientOffset:this.lastClientOffset}),this.hoverRafId=null}))},this.cancelHover=()=>{this.hoverRafId!==null&&typeof cancelAnimationFrame<"u"&&(cancelAnimationFrame(this.hoverRafId),this.hoverRafId=null)},this.handleTopDragStartCapture=()=>{this.clearCurrentDragSourceNode(),this.dragStartSourceIds=[]},this.handleTopDragStart=i=>{if(i.defaultPrevented)return;const{dragStartSourceIds:a}=this;this.dragStartSourceIds=null;const s=M3(i);this.monitor.isDragging()&&(this.actions.endDrag(),this.cancelHover()),this.actions.beginDrag(a||[],{publishSource:!1,getSourceClientOffset:this.getSourceClientOffset,clientOffset:s});const{dataTransfer:l}=i,c=h7(l);if(this.monitor.isDragging()){if(l&&typeof l.setDragImage=="function"){const d=this.monitor.getSourceId(),f=this.sourceNodes.get(d),h=this.sourcePreviewNodes.get(d)||f;if(h){const{anchorX:g,anchorY:v,offsetX:m,offsetY:A}=this.getCurrentSourcePreviewNodeOptions(),x=mee(f,h,s,{anchorX:g,anchorY:v},{offsetX:m,offsetY:A});l.setDragImage(h,x.x,x.y)}}try{l==null||l.setData("application/json",{})}catch{}this.setCurrentDragSourceNode(i.target);const{captureDraggingState:u}=this.getCurrentSourcePreviewNodeOptions();u?this.actions.publishDragSource():setTimeout(()=>this.actions.publishDragSource(),0)}else if(c)this.beginDragNativeItem(c);else{if(l&&!l.types&&(i.target&&!i.target.hasAttribute||!i.target.hasAttribute("draggable")))return;i.preventDefault()}},this.handleTopDragEndCapture=()=>{this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleTopDragEnterCapture=i=>{if(this.dragEnterTargetIds=[],this.isDraggingNativeItem()){var a;(a=this.currentNativeSource)===null||a===void 0||a.loadDataTransfer(i.dataTransfer)}if(!this.enterLeaveCounter.enter(i.target)||this.monitor.isDragging())return;const{dataTransfer:l}=i,c=h7(l);c&&this.beginDragNativeItem(c,l)},this.handleTopDragEnter=i=>{const{dragEnterTargetIds:a}=this;if(this.dragEnterTargetIds=[],!this.monitor.isDragging())return;this.altKeyPressed=i.altKey,a.length>0&&this.actions.hover(a,{clientOffset:M3(i)}),a.some(l=>this.monitor.canDropOnTarget(l))&&(i.preventDefault(),i.dataTransfer&&(i.dataTransfer.dropEffect=this.getCurrentDropEffect()))},this.handleTopDragOverCapture=i=>{if(this.dragOverTargetIds=[],this.isDraggingNativeItem()){var a;(a=this.currentNativeSource)===null||a===void 0||a.loadDataTransfer(i.dataTransfer)}},this.handleTopDragOver=i=>{const{dragOverTargetIds:a}=this;if(this.dragOverTargetIds=[],!this.monitor.isDragging()){i.preventDefault(),i.dataTransfer&&(i.dataTransfer.dropEffect="none");return}this.altKeyPressed=i.altKey,this.lastClientOffset=M3(i),this.scheduleHover(a),(a||[]).some(l=>this.monitor.canDropOnTarget(l))?(i.preventDefault(),i.dataTransfer&&(i.dataTransfer.dropEffect=this.getCurrentDropEffect())):this.isDraggingNativeItem()?i.preventDefault():(i.preventDefault(),i.dataTransfer&&(i.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=i=>{this.isDraggingNativeItem()&&i.preventDefault(),this.enterLeaveCounter.leave(i.target)&&(this.isDraggingNativeItem()&&setTimeout(()=>this.endDragNativeItem(),0),this.cancelHover())},this.handleTopDropCapture=i=>{if(this.dropTargetIds=[],this.isDraggingNativeItem()){var a;i.preventDefault(),(a=this.currentNativeSource)===null||a===void 0||a.loadDataTransfer(i.dataTransfer)}else h7(i.dataTransfer)&&i.preventDefault();this.enterLeaveCounter.reset()},this.handleTopDrop=i=>{const{dropTargetIds:a}=this;this.dropTargetIds=[],this.actions.hover(a,{clientOffset:M3(i)}),this.actions.drop({dropEffect:this.getCurrentDropEffect()}),this.isDraggingNativeItem()?this.endDragNativeItem():this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleSelectStart=i=>{const a=i.target;typeof a.dragDrop=="function"&&(a.tagName==="INPUT"||a.tagName==="SELECT"||a.tagName==="TEXTAREA"||a.isContentEditable||(i.preventDefault(),a.dragDrop()))},this.options=new vee(n,r),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.registry=e.getRegistry(),this.enterLeaveCounter=new cee(this.isNodeInDocument)}}const Vf=function(e,n,r){return new yee(e,n,r)},uD=P.createContext(void 0),dD=({children:t,option:e,saveFormBuilderSchema:n,templateSchema:r,onChange:i,isHTML5BackendDisabled:a=!1})=>{const s={...W8,...r},[l,c]=P.useReducer(oJ,s);P.useEffect(()=>{n&&n(l)},[l]);const{isPreview:u,isAdmin:d,isRenderView:f,renderType:h,isAdvanceView:g,globalAlignment:v="ltr",emitSocketData:m,media:A,exam:w={},reusableComponent:E,saveFormProgress:x,showSettings:C,training:S}=e;return o.jsx(uD.Provider,{value:{media:A,isPreview:u,isAdmin:d,isRenderView:f,renderType:h,isAdvanceView:g,globalAlignment:v,exam:w,emitSocketData:m,reusableComponent:E,state:l,dispatch:c,onChange:i,saveFormProgress:x,showSettings:C,training:S},children:a?o.jsx(o.Fragment,{children:t}):o.jsx(Lf,{backend:Vf,children:t})})},fD=()=>P.useContext(uD),Aee=(t,e,n)=>{const r=Array.from(t),[i]=r.splice(e,1);return r.splice(n,0,i),r},wee=(t,e)=>[...t.slice(0,e),...t.slice(e+1)],See=(t,e,n)=>[...t.slice(0,e),n,...t.slice(e)],hD=(t,e,n)=>{if(e.length===1){const c=Number(e[0]),u=Number(n[0]);return Aee(t,u,c)}const r=[...t],i=Number(e.slice(0,1)),a=e.slice(1),s=n.slice(1),l=r[i];return r[i]={...l,children:hD(l.children,a,s)},r},pD=(t,e)=>{if(e.length===1){const s=Number(e[0]);return wee(t,s)}const n=[...t],r=Number(e.slice(0,1)),i=e.slice(1),a=n[r];return n[r]={...a,children:pD(a.children,i)},n},p7=(t,e,n)=>{if(e.length===1){const l=Number(e[0]);return See(t,l,n)}const r=[...t],i=Number(e.slice(0,1)),a=e.slice(1),s=r[i];return r[i]={...s,children:p7(s.children,a,n)},r},xee=(t,e,n)=>{let r=[...t],i=r[n[ma]].children[n[va]].children[n[Ca]].children[n[Ta]].children[n[Ea]].inlineConditionalRules.rules[n[Oa]].conditions[n[Zo]].children[n[Fo]];return r[n[ma]].children[n[va]].children[n[Ca]].children[n[Ta]].children[n[Ea]].inlineConditionalRules.rules[n[Oa]].conditions[n[Zo]].children.splice([n[Fo]],1),r[e[ma]].children[e[va]].children[e[Ca]].children[e[Ta]].children[e[Ea]].inlineConditionalRules.rules[e[Oa]].conditions[e[Zo]].children.splice(e[Fo],0,i),r},Cee=(t,e,n)=>hD(t,e,n),Tee=t=>{const e=[...t],n={type:ws,uuid:et(),children:[]};return e.map(r=>(r.children.length||(r.children=[n]),r))},gD=(t,e,n,r)=>{var h,g,v,m,A,w;let i;const a={...Bc,uuid:et(),children:[r]},s={...mu,uuid:et()},l={...mu,uuid:et(),children:[a]},c={...kf,uuid:et(),children:[l]},u={..._3,uuid:et(),children:[c]};switch(e.length){case 1:{r.type===fT?i={...c,children:[r]}:i={...c,children:[s]};break}case 2:{r.type===na?i={...u,children:[c]}:i={...u,children:[c]};break}case 3:{r.type===Oo?i={...c,children:[l]}:i={...mu,uuid:et(),children:[{...Bc,uuid:et(),children:[r]}]};break}case 4:{r.type===gf?i=a:i=r;break}case 5:{i=r;break}default:i=r}let d=t;return n.length>5?(w=(A=(m=(v=(g=(h=d[n[ma]])==null?void 0:h.children[n[va]])==null?void 0:g.children[n[Ca]])==null?void 0:v.children[n[Ta]])==null?void 0:m.children[n[Ea]])==null?void 0:A.inlineConditionalRules)==null||w.rules[n[Oa]].conditions[n[Zo]].children.splice(n[Fo],1):d=pD(d,n),d=Tee(d),d=p7(d,e,i),d},Eee=(t,e,n)=>{let r;switch(e.length){case 1:{r={..._3,uuid:et(),children:[{...kf,uuid:et(),children:[{...mu,uuid:et(),children:[{...Bc,uuid:et(),children:[n]}]}]}]};break}case 2:{r={...kf,uuid:et(),children:[{...mu,uuid:et(),children:[{...Bc,uuid:et(),children:[n]}]}]};break}case 3:{r={...mu,uuid:et(),children:[{...Bc,uuid:et(),children:[n]}]};break}case 4:{r={...Bc,uuid:et(),children:[n]};break}default:r=n}return p7(t,e,r)},on=()=>{const{state:t,dispatch:e,onChange:n,saveFormProgress:r}=fD(),{updateGlobalToast:i,emitSocketData:a}=Qt();if(t===void 0)throw new Error("Must be wrapped in builder provider");const s=t.builderTemplateName,l=t.isChangesSaved,c=t.editing_by,u=t.version_name,d=t.loading,f=t.published_status,h=t,g=t,v=t.formType,m=t==null?void 0:t.userSelectedLanguage,A=t==null?void 0:t.languages,w=t.layout,E=P.useCallback(me=>JQ(me)(e),[e]),x=P.useCallback(me=>CQ(me)(e),[e]),C=P.useCallback(me=>ZQ(me)(e),[e]),S=P.useCallback((me,Se)=>{var yt,qt,dn,mn,En,Vn,hn,Jt;const De=me.path.split("-"),j=De.slice(0,-1).join("-"),oe={uuid:Se.uuid,type:Se.type,reviewerChecklist:[]},pe=0,ue=1,le=2,se=3,Oe=4,Ne=5,Ke=6,ut=8,pt=7,ft=5,kt=6,Sn=8;if(Se.type===na&&(Se==null?void 0:Se.schema)!==void 0){U(JSON.parse(Se==null?void 0:Se.schema),parseInt(De[pe]));return}if(((yt=Se==null?void 0:Se.schema)==null?void 0:yt.componentType)==="question"&&((Vn=(En=(mn=(dn=(qt=w[0])==null?void 0:qt.children[0])==null?void 0:dn.children[0])==null?void 0:mn.children[0])==null?void 0:En.children)!=null&&Vn.some(Xe=>{var tt,ht,jt;return((tt=Xe==null?void 0:Xe.questionText)==null?void 0:tt[m.type])===((jt=(ht=Se==null?void 0:Se.schema)==null?void 0:ht.questionText)==null?void 0:jt[m.type])}))){i({showToast:!0,toastMessage:"Exist",toastDetail:"Question text cannot be same for more than one element",toastType:"warn"});return}if(Se.type===Rn){let Xe={type:gf,reviewerChecklist:[],...It.cloneDeep(Se.schema)};if(Xe!=null&&Xe.options&&(Xe={...Xe,options:[{uuid:et(),optionText:{english:"Option 1"},value:"Option1",hyperlinkText:{english:""},abbreviationText:{english:"Option 1"},custom_values:{}},{uuid:et(),optionText:{english:"Option 2"},value:"Option2",hyperlinkText:{english:""},abbreviationText:{english:"Option 1"},custom_values:{}}]}),Xe.componentType==="grid-component"&&(Xe={...Xe,children:[],options:[{uuid:et(),custom_values:{}}]}),Xe.componentType==="radio-hierarchal"&&(Xe={...Xe,type:"radio",children:[],options:[{uuid:et(),label:"Yes",value:null,enableConditionalField:!0,children:[]},{uuid:et(),label:"No",value:null,enableConditionalField:!0,children:[]}]}),Xe={...Xe,uuid:et()},De.length===ut){W(parseInt(De[pe]),parseInt(De[ue]),parseInt(De[le]),parseInt(De[se]),parseInt(De[Oe]),parseInt(De[Ne]),parseInt(De[Ke]),Xe),a();return}if(De.length===pt){de(parseInt(De[pe]),parseInt(De[ue]),parseInt(De[le]),parseInt(De[se]),parseInt(De[Oe]),parseInt(De[ft]),parseInt(De[kt]),Xe),a();return}if((Jt=(hn=w[De[pe]].children[De[ue]])==null?void 0:hn.children[De[le]])!=null&&Jt.rowIsRepeatable&&(Xe==null?void 0:Xe.componentType)==="editor"){i({showToast:!0,toastMessage:"Forbidden",toastDetail:"This Field cannot be applied in repeatable",toastType:"error"});return}C(Eee(w,De,Xe)),a(),De.length>1&&ye(De[pe],De[ue],De[le],Xe);return}const Vt=Se.path.split("-"),Nt=Vt.slice(0,-1).join("-");if(Vt.length===De.length){if(Nt===j){if((Vt==null?void 0:Vt.length)===Sn){C(xee(w,De,Vt));return}C(Cee(w,De,Vt));return}const Xe={...oe,...Se};(Se==null?void 0:Se.id)===void 0&&(Xe.id=et()),C(gD(w,De,Vt,Xe));return}if((Vt==null?void 0:Vt.length)===8){const Xe={type:gf,reviewerChecklist:[],...Se};de(parseInt(De[pe]),parseInt(De[ue]),parseInt(De[le]),parseInt(De[se]),parseInt(De[Oe]),parseInt(De[ft]),parseInt(De[kt]),Xe),$(Vt[ma],Vt[va],Vt[Ca],Vt[Ta],Vt[Ea],Vt[ft],Vt[kt],Vt[tc]);return}const $e={...oe,...Se};(Se==null?void 0:Se.id)===void 0&&($e.id=et()),C(gD(w,De,Vt,$e))},[w,m.type]),_=P.useCallback(()=>sJ()(e),[e]),I=P.useCallback(me=>eJ(me)(e,t),[e]),F=P.useCallback(me=>tJ(me)(e,t),[e]),M=P.useCallback(me=>nJ(me)(e),[e]),L=P.useCallback(me=>xQ(me)(e),[e]),V=P.useCallback(me=>DQ(me)(e),[e]),U=P.useCallback((me,Se)=>FQ(me,Se)(e),[e]),O=P.useCallback((me,Se)=>BQ(me,Se)(e),[e]),q=P.useCallback((me,Se,De)=>qQ(me,Se,De)(e),[e]),ie=P.useCallback(me=>IQ(me)(e),[e]),ge=P.useCallback((me,Se)=>_Q(me,Se)(e),[e]),Z=P.useCallback((me,Se,De)=>LQ(me,Se,De)(e),[e]),Q=P.useCallback((me,Se,De,j)=>jQ(me,Se,De,j)(e),[e]),ce=P.useCallback((me,Se,De,j,oe)=>zQ(me,Se,De,j,oe)(e,t),[e]),K=P.useCallback((me,Se,De,j,oe,pe)=>HQ(me,Se,De,j,oe,pe)(e,t),[e]),he=P.useCallback((me,Se,De)=>NQ(me,Se,De)(e),[e]),ee=P.useCallback((me,Se,De,j)=>MQ(me,Se,De,j)(e),[e]),te=P.useCallback((me,Se)=>EQ(me,Se)(e),[e]),Y=P.useCallback((me,Se,De,j,oe,pe)=>YQ(me,Se,De,j,oe,pe)(e),[e]),R=P.useCallback((me,Se,De,j,oe)=>$Q(me,Se,De,j,oe)(e),[e]),fe=P.useCallback((me,Se,De,j)=>PQ(me,Se,De,j)(e),[e]),be=P.useCallback((me,Se,De)=>OQ(me,Se,De)(e),[e]),Te=P.useCallback((me,Se)=>TQ(me,Se)(e,t),[e]),ye=P.useCallback((me,Se,De,j)=>VQ(me,Se,De,j)(e),[e]),Ae=P.useCallback((me,Se,De,j,oe,pe,ue,le,se)=>WQ(me,Se,De,j,oe,pe,ue,le,se)(e),[e]),ne=P.useCallback((me,Se,De,j,oe,pe,ue,le,se)=>RQ(me,Se,De,j,oe,pe,ue,le,se)(e),[e]),$=P.useCallback((me,Se,De,j,oe,pe,ue,le)=>GQ(me,Se,De,j,oe,pe,ue,le)(e),[e]),re=P.useCallback((me,Se,De,j,oe,pe,ue,le)=>QQ(me,Se,De,j,oe,pe,ue,le)(e),[e]),W=P.useCallback((me,Se,De,j,oe,pe,ue,le)=>KQ(me,Se,De,j,oe,pe,ue,le)(e),[e]),de=P.useCallback((me,Se,De,j,oe,pe,ue,le)=>XQ(me,Se,De,j,oe,pe,ue,le)(e),[e]),Ie=P.useCallback(me=>rJ(me)(e),[e]),Ee=P.useCallback(me=>iJ(me)(e),[e]),ve=P.useCallback(me=>aJ(me)(e),[e]);return{builderIsChangesSaved:l,builderTemplateName:s,formBuilderFormSchema:h,formBuilderFormLayout:w,formBuilderSchemaLanguages:A,saveFormTemplateNewVersion:g,userSelectedLanguage:m,formBuilderConfigurationType:v,formBuilderLoading:d,formBuilderPublishedStatus:f,builderEditingBy:c,builderVersionName:u,handleDrop:S,formatTableFieldsHook:x,saveFormBuilderSchema:E,removePage:ie,removeSection:ge,removeRow:Z,removeColumn:Q,removeField:ce,updateEditingBy:ve,addTabs:L,addSection:V,addRow:O,addColumn:q,cloneField:Y,cloneColumn:R,cloneRow:fe,cloneSection:be,clonePage:Te,sectionImport:U,setLayout:C,fieldSettingUpdate:K,selectFormBuilderLanguage:I,unselectFormBuilderLanguage:F,updateUserFormSelectedLanguage:M,updateFormType:Ie,schemaBuilderUpdate:Ee,pageSettingUpdate:te,saveFormProgress:r,sectionSettingUpdate:he,rowSettingUpdate:ee,clearBuilderSchema:_,addFieldToRowRepeaptable:ye,addFieldToInlineRuleCondtionFields:W,fieldSettingUpdateInlineConditional:Ae,fieldSettingDeleteInlineConditional:re,addFieldToGridComponentHook:de,gridComponentFieldSettingUpdate:ne,gridComponentFieldDelete:$}},Qt=()=>{var x,C,S;const{isPreview:t,isAdmin:e,isRenderView:n,renderType:r,isAdvanceView:i,media:a,exam:s,globalAlignment:l,reusableComponent:c,showSettings:u,training:d}=fD();if(t===void 0)throw new Error("Must be wrapped in builder provider");const f=r==null?void 0:r.key,{saveComponent:h,componentList:g,sectionsList:v}=c,m=()=>{},A=_=>{u!=null&&u.showToast&&(u==null||u.showToast(_))},w=((x=d==null?void 0:d.quiz)==null?void 0:x.quizList)||[],E=(C=d==null?void 0:d.quiz)!=null&&C.getQuizList?(S=d==null?void 0:d.quiz)==null?void 0:S.getQuizList:()=>{};return{quizlist:w,getQuizList:E,isPreview:t,isAdmin:e,isRenderView:n,renderType:f,isAdvanceView:i,globalAlignment:l,media:a,exam:s,saveComponent:h,componentList:g,sectionsList:v,emitSocketData:m,updateGlobalToast:A}},Iee="TASKS_LOADING",_ee="TASKS_ADD",Dee="TASKS_GET_PAGINATED_LIST",Nee="TASKS_DELETE",Oee="TASKS_PAGNIATION_UPDATE",Fee="TASKS_UPDATE",kee="TASKS_SUCCESS_GET",Pee="TASK_GET_TEMPLATE",Mee="TASK_SET_DATA",Lee="TASKS_FORM_SUBMIT",Bee="TASKS_FORM_HTTP_REQUEST",g7="TASK_SET_PROGRESS_VALUE",mD="TASK_SET_MAX_PROGRESS_VALUE",vD="TASK_SET_REGISTER_DATA",bD="TASK_SET_SCHEMA",m7="TASK_UPDATE_USER_FORM_SUBMIT_DATA",yD="CLEAR_TASK",AD="TASK_USER_SUBMIT_FORM_REPEATABLE_ADD",wD="TASK_USER_SUBMIT_FORM_REPEATABLE_REMOVE_INDEX",SD="TASK_USER_TRAINING_DATA",xD="TASK_FIELD_UPDATE",Vee=6,L3=1,n2="DISPLAY_TYPE_START_DETAILS",B3="DISPLAY_TYPE_QUIZ",v7="DISPLAY_TYPE_START_TIMER";function Uee(t,e,n,r,i,a){return s=>{s({type:xD,payLoad:{pageIndex:t,sectionIndex:e,rowIndex:n,columnIndex:r,fieldIndex:i,field:a}})}}function CD(t){return(e,n)=>{const r={type:m7,payLoad:{userTaskSubmitFormData:[...t]}};e(r)}}function qee(t){return(e,n)=>{const{TasksReducer:r}=n(),{taskData:i}=r,a={type:m7,payLoad:{taskData:{...i,...t}}};e(a)}}function $ee(t,e){return(n,r)=>{const{TasksReducer:i}=r(),{userTaskSubmitFormData:a}=i,s=It.findIndex(a,function(c){return c.rowId===t});n({type:wD,payLoad:{userSubmitFormIndex:s,repeatableDataRowIndex:e}})}}function jee(t,e){return(n,r)=>{const{TasksReducer:i}=r(),{userTaskSubmitFormData:a}=i,s=It.findIndex(a,function(c){return c.rowId===t});n({type:AD,payLoad:{userSubmitFormIndex:s,repeatableData:e}})}}function zee(){return t=>{t({type:yD,payLoad:null})}}const TD=t=>e=>{console.log("updateProgresValue",t),e({type:g7,payLoad:{progressValue:t}})},Hee=t=>e=>{e({type:g7,payLoad:t})},Yee=t=>e=>{e({type:SD,payLoad:{userTrainingSaveData:t}})},ED=t=>e=>{e({type:vD,payLoad:{registerData:t}})},Kee=(t,e,n)=>(r,i)=>{var d;const{TasksReducer:a}=i(),{userTaskSubmitFormData:s}=a,l=[...s],c=It.findIndex(l,function(f){var h;return f.rowId===((h=t==null?void 0:t.row)==null?void 0:h.uuid)});let u=(d=s[c])==null?void 0:d.repeatableFields;u={...u,[e==null?void 0:e.uuid]:`<div>${n}</div>`},l[c]={...l[c],repeatableFields:u},r(CD(l))},Xee=(t,e,n)=>(r,i)=>{const{TasksReducer:a}=i(),{userTaskSubmitFormData:s,registerData:l}=a,c=s,u=It.cloneDeep(l);if(n&&(c==null?void 0:c.length)>0){u[e==null?void 0:e.uuid]=n;for(const f of c)f.fieldId===e.uuid&&(f.postData[0]={postValue:n})}else if((c==null?void 0:c.length)>0){for(const f of c)f.fieldId===e.uuid&&(f.postData[0]={postValue:""});delete u[e==null?void 0:e.uuid]}r(ED(u));const d=Object.keys(u).length;r(TD(d))},Ree=t=>e=>{e({type:mD,payLoad:{progressMaxValue:t}})},b7={submitting:!1,httpRequest:!1,taskData:null,taskUpdateLoading:!1,loading:!1,progressLoading:!1,list:[],filter:"",sort:"task.created_at|desc",total_records:0,page:1,per_page:10,success:!1,success_message:"",userTaskSubmitFormData:null,taskSchema:null,progressMaxValue:0,maxTabs:0,registerData:{},progressValue:0,tabNoOfFieldsData:[],noOfTotalElements:0,sortField:null,sortOrder:null,userTrainingSaveData:null,assessmentData:null,task_status:1},Gee=(t=b7,e)=>{switch(e.type){case yD:return{...t,...b7,list:[...t.list],page:t.page,per_page:t.per_page,filter:t.filter,sort:t.sort,total_records:t.total_records};case kee:return{...t,...e.payLoad};case m7:return{...t,...e.payLoad};case bD:return{...t,...e.payLoad};case g7:return{...t,...e.payLoad};case vD:return{...t,registerData:e.payLoad.registerData};case mD:return{...t,...e.payLoad};case Iee:return{...t,...e.payLoad};case Lee:return{...t,...e.payLoad};case Bee:return{...t,...e.payLoad};case _ee:{const{record:n}=e.payLoad;return{...t,list:[...n,...t.list]}}case Dee:return{...t,...e.payLoad};case Mee:return{...t,taskData:e.payLoad};case Oee:return{...t,...e.payLoad};case Nee:{const n=t.list.filter(r=>r.task_id!==e.payLoad.task_id);return{...t,list:[...n]}}case SD:return{...t,...e.payLoad};case xD:{const{pageIndex:n,sectionIndex:r,rowIndex:i,columnIndex:a,fieldIndex:s,field:l}=e.payLoad,c=[...t.taskSchema.layout];c[n].children[r].children[i].children[a].children[s]=l;const u={...t.taskSchema,layout:c};return{...t,taskSchema:u}}case AD:{const{userSubmitFormIndex:n,repeatableData:r}=e.payLoad,i=t.userTaskSubmitFormData[n].repeatableFieldsData?t.userTaskSubmitFormData[n].repeatableFieldsData:[];return i.push(r),t.userTaskSubmitFormData[n].repeatableFieldsData=i,t}case wD:{const{userSubmitFormIndex:n,repeatableDataRowIndex:r}=e.payLoad,i=[...t.userTaskSubmitFormData],a=[...i[n].repeatableFieldsData];return a.splice(r,1),i[n]={...i[n],repeatableFieldsData:a},{...t,userTaskSubmitFormData:i}}case Fee:{const{row:n,eventIndex:r}=e.payLoad,i=t.list[r];return t.list[r]={...i,...n},t}case Pee:return{...t,...e.payLoad}}return t},ID=P.createContext(void 0),Wee=({option:t,taskOptions:e,saveFormBuilderSchema:n,templateSchema:r,taskValue:i,children:a,isHTML5BackendDisabled:s=!1})=>{const[l,c]=P.useReducer(Gee,{...b7,...i}),{progressMaxValue:u=0,progressValue:d=0,registerData:f=null,...h}=i||{};return P.useEffect(()=>{c({type:bD,payLoad:h})},[i]),o.jsx(ID.Provider,{value:{taskOptions:e,state:l,dispatch:c},children:o.jsx(dD,{isHTML5BackendDisabled:s,option:t,saveFormBuilderSchema:n,templateSchema:r,onChange:()=>{},children:a})})},Qee=()=>P.useContext(ID),yr=()=>{var Ae,ne,$,re,W,de,Ie,Ee;const{taskOptions:n,state:r,dispatch:i}=Qee();if(r===void 0)throw new Error("Must be wrapped in task render provider");const a=r.task_status,s=r.task_status,l=r.userTaskSubmitFormData,c=r.userTrainingSaveData,u=r.taskSchema,d=r.assessmentData,f=r.progressLoading,h=r.submitting,g=r.httpRequest,v=r.taskData,m=r.progressMaxValue,A=r.maxTabs,w=r.tabNoOfFieldsData,E=r.registerData,x=r.progressValue,C=r.noOfTotalElements,S=r.menuList,_=r.loading,I=r.submitting,F=r.success,M=r.success_message,L=(Ae=n==null?void 0:n.exam)!=null&&Ae.startQuiz?(ne=n==null?void 0:n.exam)==null?void 0:ne.startQuiz:()=>{},V=($=n==null?void 0:n.exam)!=null&&$.AddUserAssessmentAnswer?(re=n==null?void 0:n.exam)==null?void 0:re.AddUserAssessmentAnswer:()=>{},U=(W=n==null?void 0:n.exam)!=null&&W.endQuiz?(de=n==null?void 0:n.exam)==null?void 0:de.endQuiz:()=>{},O=(Ie=n==null?void 0:n.exam)!=null&&Ie.examComplete?(Ee=n==null?void 0:n.exam)==null?void 0:Ee.examComplete:ve=>{},q=n!=null&&n.updateTaskFormData?n==null?void 0:n.updateTaskFormData:(ve,me,Se,De,j,oe)=>{},ie=n!=null&&n.submitTaskFormData?n==null?void 0:n.submitTaskFormData:(ve,me,Se)=>{},ge=P.useCallback(ve=>i(qee(ve)),[i]),Z=P.useCallback((ve,me,Se)=>{},[i]),Q=P.useCallback(()=>i(zee()),[i]),ce=P.useCallback((ve,me)=>i(jee(ve,me)),[i]),K=P.useCallback((ve,me)=>i($ee(ve,me)),[i]),he=P.useCallback(ve=>{TD(ve)(i)},[i]),ee=P.useCallback(ve=>i(Hee(ve)),[i]),te=P.useCallback(ve=>i(ED(ve)),[i]),Y=P.useCallback(ve=>i(CD(ve)),[i]),R=P.useCallback(ve=>i(Ree(ve)),[i]),fe=P.useCallback(ve=>i(Yee(ve)),[i]),be=P.useCallback((ve,me,Se)=>i(Kee(ve,me,Se)),[i]),Te=P.useCallback((ve,me,Se)=>i(Xee(ve,me,Se)),[i]),ye=P.useCallback((ve,me,Se,De,j,oe)=>i(Uee(ve,me,Se,De,j,oe)),[i]);return{examComplete:O,taskOptions:n,TASK_PUBLISHED:6,TASK_PENDING:1,taskStatus:s,assessmentData:d,taskSchema:u,taskData:v,TasksList:S,TasksLoading:_,TasksSuccess:F,TasksSuccessMessage:M,taskProgressMaxValue:m,taskRegisterData:E,taskProgressValue:x,taskMaxTabs:A,noOfTotalElements:C,taskTabRequiredFieldsData:w,userTaskSubmitFormData:l,userTrainingSaveData:c,TasksSubmitLoading:I,updateTaskDataSchema:ge,submitTaskFormData:ie,updateTaskFormData:q,TasksSubmit:h,TasksHTTPRequest:g,updateTaskRegisterData:te,updateTaskProgressValue:he,updateTaskProgressMaxValue:R,updateUserFormDataSubmit:Y,removeUserDataFormSectionRepeatableData:K,addUserDataFormSectionRepeatableData:ce,onSetValuetoRepeatableData:be,onSetValuetoPostDataHook:Te,clearTaskSchema:Q,taskProgressLoading:f,task_status:a,startQuiz:L,endQuiz:U,AddUserAssessmentAnswer:V,updateUserTraining:fe,taskFieldUpdateHook:ye,updateProgressDataValuesHook:ee,saveProgressDataHook:Z}};function y7(){return y7=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},y7.apply(null,arguments)}var _D=b.memo(b.forwardRef(function(t,e){var n=ri.getPTI(t);return b.createElement("svg",y7({ref:e,width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),b.createElement("path",{d:"M13.4018 13.1893H0.598161C0.49329 13.189 0.390283 13.1615 0.299143 13.1097C0.208003 13.0578 0.131826 12.9832 0.0780112 12.8932C0.0268539 12.8015 0 12.6982 0 12.5931C0 12.4881 0.0268539 12.3848 0.0780112 12.293L6.47985 1.08982C6.53679 1.00399 6.61408 0.933574 6.70484 0.884867C6.7956 0.836159 6.897 0.810669 7 0.810669C7.103 0.810669 7.2044 0.836159 7.29516 0.884867C7.38592 0.933574 7.46321 1.00399 7.52015 1.08982L13.922 12.293C13.9731 12.3848 14 12.4881 14 12.5931C14 12.6982 13.9731 12.8015 13.922 12.8932C13.8682 12.9832 13.792 13.0578 13.7009 13.1097C13.6097 13.1615 13.5067 13.189 13.4018 13.1893ZM1.63046 11.989H12.3695L7 2.59425L1.63046 11.989Z",fill:"currentColor"}),b.createElement("path",{d:"M6.99996 8.78801C6.84143 8.78594 6.68997 8.72204 6.57787 8.60993C6.46576 8.49782 6.40186 8.34637 6.39979 8.18784V5.38703C6.39979 5.22786 6.46302 5.0752 6.57557 4.96265C6.68813 4.85009 6.84078 4.78686 6.99996 4.78686C7.15914 4.78686 7.31179 4.85009 7.42435 4.96265C7.5369 5.0752 7.60013 5.22786 7.60013 5.38703V8.18784C7.59806 8.34637 7.53416 8.49782 7.42205 8.60993C7.30995 8.72204 7.15849 8.78594 6.99996 8.78801Z",fill:"currentColor"}),b.createElement("path",{d:"M6.99996 11.1887C6.84143 11.1866 6.68997 11.1227 6.57787 11.0106C6.46576 10.8985 6.40186 10.7471 6.39979 10.5885V10.1884C6.39979 10.0292 6.46302 9.87658 6.57557 9.76403C6.68813 9.65147 6.84078 9.58824 6.99996 9.58824C7.15914 9.58824 7.31179 9.65147 7.42435 9.76403C7.5369 9.87658 7.60013 10.0292 7.60013 10.1884V10.5885C7.59806 10.7471 7.53416 10.8985 7.42205 11.0106C7.30995 11.1227 7.15849 11.1866 6.99996 11.1887Z",fill:"currentColor"}))}));_D.displayName="ExclamationTriangleIcon";function A7(){return A7=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},A7.apply(null,arguments)}var DD=b.memo(b.forwardRef(function(t,e){var n=ri.getPTI(t);return b.createElement("svg",A7({ref:e,width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),b.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.11101 12.8203C4.26215 13.5895 5.61553 14 7 14C8.85652 14 10.637 13.2625 11.9497 11.9497C13.2625 10.637 14 8.85652 14 7C14 5.61553 13.5895 4.26215 12.8203 3.11101C12.0511 1.95987 10.9579 1.06266 9.67879 0.532846C8.3997 0.00303296 6.99224 -0.13559 5.63437 0.134506C4.2765 0.404603 3.02922 1.07129 2.05026 2.05026C1.07129 3.02922 0.404603 4.2765 0.134506 5.63437C-0.13559 6.99224 0.00303296 8.3997 0.532846 9.67879C1.06266 10.9579 1.95987 12.0511 3.11101 12.8203ZM3.75918 2.14976C4.71846 1.50879 5.84628 1.16667 7 1.16667C8.5471 1.16667 10.0308 1.78125 11.1248 2.87521C12.2188 3.96918 12.8333 5.45291 12.8333 7C12.8333 8.15373 12.4912 9.28154 11.8502 10.2408C11.2093 11.2001 10.2982 11.9478 9.23232 12.3893C8.16642 12.8308 6.99353 12.9463 5.86198 12.7212C4.73042 12.4962 3.69102 11.9406 2.87521 11.1248C2.05941 10.309 1.50384 9.26958 1.27876 8.13803C1.05367 7.00647 1.16919 5.83358 1.61071 4.76768C2.05222 3.70178 2.79989 2.79074 3.75918 2.14976ZM7.00002 4.8611C6.84594 4.85908 6.69873 4.79698 6.58977 4.68801C6.48081 4.57905 6.4187 4.43185 6.41669 4.27776V3.88888C6.41669 3.73417 6.47815 3.58579 6.58754 3.4764C6.69694 3.367 6.84531 3.30554 7.00002 3.30554C7.15473 3.30554 7.3031 3.367 7.4125 3.4764C7.52189 3.58579 7.58335 3.73417 7.58335 3.88888V4.27776C7.58134 4.43185 7.51923 4.57905 7.41027 4.68801C7.30131 4.79698 7.1541 4.85908 7.00002 4.8611ZM7.00002 10.6945C6.84594 10.6925 6.69873 10.6304 6.58977 10.5214C6.48081 10.4124 6.4187 10.2652 6.41669 10.1111V6.22225C6.41669 6.06754 6.47815 5.91917 6.58754 5.80977C6.69694 5.70037 6.84531 5.63892 7.00002 5.63892C7.15473 5.63892 7.3031 5.70037 7.4125 5.80977C7.52189 5.91917 7.58335 6.06754 7.58335 6.22225V10.1111C7.58134 10.2652 7.51923 10.4124 7.41027 10.5214C7.30131 10.6304 7.1541 10.6925 7.00002 10.6945Z",fill:"currentColor"}))}));DD.displayName="InfoCircleIcon";function w7(){return w7=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},w7.apply(null,arguments)}var S7=b.memo(b.forwardRef(function(t,e){var n=ri.getPTI(t);return b.createElement("svg",w7({ref:e,width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),b.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 14C5.61553 14 4.26215 13.5895 3.11101 12.8203C1.95987 12.0511 1.06266 10.9579 0.532846 9.67879C0.00303296 8.3997 -0.13559 6.99224 0.134506 5.63437C0.404603 4.2765 1.07129 3.02922 2.05026 2.05026C3.02922 1.07129 4.2765 0.404603 5.63437 0.134506C6.99224 -0.13559 8.3997 0.00303296 9.67879 0.532846C10.9579 1.06266 12.0511 1.95987 12.8203 3.11101C13.5895 4.26215 14 5.61553 14 7C14 8.85652 13.2625 10.637 11.9497 11.9497C10.637 13.2625 8.85652 14 7 14ZM7 1.16667C5.84628 1.16667 4.71846 1.50879 3.75918 2.14976C2.79989 2.79074 2.05222 3.70178 1.61071 4.76768C1.16919 5.83358 1.05367 7.00647 1.27876 8.13803C1.50384 9.26958 2.05941 10.309 2.87521 11.1248C3.69102 11.9406 4.73042 12.4962 5.86198 12.7212C6.99353 12.9463 8.16642 12.8308 9.23232 12.3893C10.2982 11.9478 11.2093 11.2001 11.8502 10.2408C12.4912 9.28154 12.8333 8.15373 12.8333 7C12.8333 5.45291 12.2188 3.96918 11.1248 2.87521C10.0308 1.78125 8.5471 1.16667 7 1.16667ZM4.66662 9.91668C4.58998 9.91704 4.51404 9.90209 4.44325 9.87271C4.37246 9.84333 4.30826 9.8001 4.2544 9.74557C4.14516 9.6362 4.0838 9.48793 4.0838 9.33335C4.0838 9.17876 4.14516 9.0305 4.2544 8.92113L6.17553 7L4.25443 5.07891C4.15139 4.96832 4.09529 4.82207 4.09796 4.67094C4.10063 4.51982 4.16185 4.37563 4.26872 4.26876C4.3756 4.16188 4.51979 4.10066 4.67091 4.09799C4.82204 4.09532 4.96829 4.15142 5.07887 4.25446L6.99997 6.17556L8.92106 4.25446C9.03164 4.15142 9.1779 4.09532 9.32903 4.09799C9.48015 4.10066 9.62434 4.16188 9.73121 4.26876C9.83809 4.37563 9.89931 4.51982 9.90198 4.67094C9.90464 4.82207 9.84855 4.96832 9.74551 5.07891L7.82441 7L9.74554 8.92113C9.85478 9.0305 9.91614 9.17876 9.91614 9.33335C9.91614 9.48793 9.85478 9.6362 9.74554 9.74557C9.69168 9.8001 9.62748 9.84333 9.55669 9.87271C9.4859 9.90209 9.40996 9.91704 9.33332 9.91668C9.25668 9.91704 9.18073 9.90209 9.10995 9.87271C9.03916 9.84333 8.97495 9.8001 8.9211 9.74557L6.99997 7.82444L5.07884 9.74557C5.02499 9.8001 4.96078 9.84333 4.88999 9.87271C4.81921 9.90209 4.74326 9.91704 4.66662 9.91668Z",fill:"currentColor"}))}));S7.displayName="TimesCircleIcon";function x7(){return x7=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},x7.apply(null,arguments)}function C7(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function Jee(t){if(Array.isArray(t))return C7(t)}function Zee(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function ND(t,e){if(t){if(typeof t=="string")return C7(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?C7(t,e):void 0}}function ete(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
1602
1602
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function T7(t){return Jee(t)||Zee(t)||ND(t)||ete()}function tte(t){if(Array.isArray(t))return t}function nte(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,a,s,l=[],c=!0,u=!1;try{if(a=(n=n.call(t)).next,e===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==e);c=!0);}catch(d){u=!0,i=d}finally{try{if(!c&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw i}}return l}}function rte(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1603
1603
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function E7(t,e){return tte(t)||nte(t,e)||ND(t,e)||rte()}function r2(t){"@babel/helpers - typeof";return r2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r2(t)}function ite(t,e){if(r2(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(r2(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function ate(t){var e=ite(t,"string");return r2(e)=="symbol"?e:e+""}function Lo(t,e,n){return(e=ate(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var ste=`
1604
1604
  @layer primereact {
@@ -4284,8 +4284,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4284
4284
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function nwe(t,e){if(t){if(typeof t=="string")return rj(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 rj(t,e)}}function rj(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 rwe(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function iwe(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 awe(t,e,n){return e&&iwe(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}var BS="9",swe=15,owe=s6(BS,swe),lwe=/[- ]/,cwe=function(){return/\[([^\[\]])*\]/g},uwe=function(){return/\d(?=[^,}][^,}])/g},dwe=new RegExp("["+D0+"]*\\$1["+D0+"]*(\\$\\d["+D0+"]*)*$"),ij=3,fwe=function(){function t(e){e.state;var n=e.metadata;rwe(this,t),this.metadata=n,this.resetFormat()}return awe(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($Ae(r.nationalSignificantNumber,this.metadata))for(var a=nj(this.matchingFormats),s;!(s=a()).done;){var l=s.value,c=qAe(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,eu),r),this.populatedNationalNumberTemplate=c,this.populatedNationalNumberTemplatePosition=this.template.lastIndexOf(eu),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-ij;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<ij)try{return new twe(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":dwe.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=nj(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()&&lwe.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(eu,r+1),i++;return J$(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,eu)+s6(eu,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(cwe(),"\\d").replace(uwe(),"\\d");var u=owe.match(c)[0];if(!(i.length>u.length)){var d=new RegExp("^"+c+"$"),f=i.replace(/\d/g,BS);d.test(f)&&(u=f);var h=this.getFormatFormat(n,a),g;if(this.shouldTryNationalPrefixFormattingRule(n,{international:a,nationalPrefix:s})){var v=h.replace(V$,n.nationalPrefixFormattingRule());if(Z1(n.nationalPrefixFormattingRule())===(s||"")+Z1("$1")&&(h=v,g=!0,s))for(var m=s.length;m>0;)h=h.replace(/\d/,eu),m--}var A=u.replace(new RegExp(c),h).replace(new RegExp(BS,"g"),eu);return g||(l?A=s6(eu,l.length)+" "+A:s&&(A=s6(eu,s.length)+this.getSeparatorAfterNationalPrefix(n)+A)),a&&(A=B$(A)),A}}},{key:"formatNextNationalNumberDigits",value:function(n){var r=UAe(this.populatedNationalNumberTemplate,this.populatedNationalNumberTemplatePosition,n);if(!r){this.resetFormat();return}return this.populatedNationalNumberTemplate=r[0],this.populatedNationalNumberTemplatePosition=r[1],J$(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 aj(t,e){return mwe(t)||gwe(t,e)||pwe(t,e)||hwe()}function hwe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
4285
4285
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function pwe(t,e){if(t){if(typeof t=="string")return sj(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 sj(t,e)}}function sj(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 gwe(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 mwe(t){if(Array.isArray(t))return t}function vwe(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function bwe(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 ywe(t,e,n){return e&&bwe(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}var Awe="["+D0+Jg+"]+",wwe=new RegExp("^"+Awe+"$","i"),Swe="(?:["+Bye+"]["+D0+Jg+"]*|["+D0+Jg+"]+)",xwe=new RegExp("[^"+D0+Jg+"]+.*$"),Cwe=/[^\d\[\]]/,Twe=function(){function t(e){var n=e.defaultCountry,r=e.defaultCallingCode,i=e.metadata,a=e.onNationalSignificantNumberChange;vwe(this,t),this.defaultCountry=n,this.defaultCallingCode=r,this.metadata=i,this.onNationalSignificantNumberChange=a}return ywe(t,[{key:"input",value:function(n,r){var i=_we(n),a=aj(i,2),s=a[0],l=a[1],c=Z1(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=_Ae("+"+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&&Cwe.test(r)}else this.hasSelectedNumberingPlan=void 0,this.couldPossiblyExtractAnotherNationalSignificantNumber=void 0}},{key:"extractNationalSignificantNumber",value:function(n,r){if(this.hasSelectedNumberingPlan){var i=kS(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=kS(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=K$(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=R$(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 Ewe(t){var e=t.search(Swe);if(!(e<0)){t=t.slice(e);var n;return t[0]==="+"&&(n=!0,t=t.slice(1)),t=t.replace(xwe,""),n&&(t="+"+t),t}}function Iwe(t){var e=Ewe(t)||"";return e[0]==="+"?[e.slice(1),!0]:[e]}function _we(t){var e=Iwe(t),n=aj(e,2),r=n[0],i=n[1];return wwe.test(r)||(r=""),[r,i]}function Dwe(t,e){return kwe(t)||Fwe(t,e)||Owe(t,e)||Nwe()}function Nwe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
4286
4286
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Owe(t,e){if(t){if(typeof t=="string")return oj(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 oj(t,e)}}function oj(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 Fwe(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 kwe(t){if(Array.isArray(t))return t}function Pwe(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Mwe(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 Lwe(t,e,n){return e&&Mwe(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}var o6=function(){function t(e,n){Pwe(this,t),this.metadata=new Ao(n);var r=this.getCountryAndCallingCode(e),i=Dwe(r,2),a=i[0],s=i[1];this.defaultCountry=a,this.defaultCallingCode=s,this.reset()}return Lwe(t,[{key:"getCountryAndCallingCode",value:function(n){var r,i;return n&&(t6(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 MAe({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 fwe({state:this.state,metadata:this.metadata}),this.parser=new Twe({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,eu)}},{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(OAe(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 Ao(this.metadata.metadata);l.selectNumberingPlan(s);var c=l.numberingPlan.callingCode(),u=this.metadata.getCountryCodesForCallingCode(c);if(u.length>1){var d=W$(r,{countries:u,defaultCountry:this.defaultCountry,metadata:this.metadata.metadata});d&&(s=d)}}var f=new SAe(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 Bwe(t,e,n){return n||(n=e,e=void 0),new o6(e,n).input(t)}function lj(t){var e=t.inputFormat,n=t.country,r=t.metadata;return e==="NATIONAL_PART_OF_INTERNATIONAL"?"+".concat(J1(n,r)):""}function l6(t,e){return e&&(t=t.slice(e.length),t[0]===" "&&(t=t.slice(1))),t}function Vwe(t,e,n){if(!(n&&n.ignoreRest)){var r=function(a){if(n)switch(a){case"end":n.ignoreRest=!0;break}};return M$(t,e,r)}}function cj(t){var e=t.onKeyDown,n=t.inputFormat;return P.useCallback(function(r){if(r.keyCode===qwe&&n==="INTERNATIONAL"&&r.target instanceof HTMLInputElement&&Uwe(r.target)===$we.length){r.preventDefault();return}e&&e(r)},[e,n])}function Uwe(t){return t.selectionStart}var qwe=8,$we="+",jwe=["onKeyDown","country","inputFormat","metadata","international","withCountryCallingCode"];function VS(){return VS=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},VS.apply(this,arguments)}function zwe(t,e){if(t==null)return{};var n=Hwe(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 Hwe(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 Ywe(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=zwe(n,jwe),d=P.useCallback(function(h){var g=new o6(a,c),v=lj({inputFormat:s,country:a,metadata:c}),m=g.input(v+h),A=g.getTemplate();return v&&(m=l6(m,v),A&&(A=l6(A,v))),{text:m,template:A}},[a,c]),f=cj({onKeyDown:i,inputFormat:s});return P.createElement(Qg,VS({},u,{ref:r,parse:Vwe,format:d,onKeyDown:f}))}return e=P.forwardRef(e),e.propTypes={value:Cn.string.isRequired,onChange:Cn.func.isRequired,onKeyDown:Cn.func,country:Cn.string,inputFormat:Cn.oneOf(["INTERNATIONAL","NATIONAL_PART_OF_INTERNATIONAL","NATIONAL","INTERNATIONAL_OR_NATIONAL"]).isRequired,metadata:Cn.object},e}const Kwe=Ywe();var Xwe=["value","onChange","onKeyDown","country","inputFormat","metadata","inputComponent","international","withCountryCallingCode"];function US(){return US=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},US.apply(this,arguments)}function Rwe(t,e){if(t==null)return{};var n=Gwe(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 Gwe(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 Wwe(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=Rwe(n,Xwe),v=lj({inputFormat:c,country:l,metadata:d}),m=P.useCallback(function(w){var E=Zye(w.target.value);if(E===i){var x=uj(v,E,l,d);x.indexOf(w.target.value)===0&&(E=E.slice(0,-1))}a(E)},[v,i,a,l,d]),A=cj({onKeyDown:s,inputFormat:c});return P.createElement(h,US({},g,{ref:r,value:uj(v,i,l,d),onChange:m,onKeyDown:A}))}return e=P.forwardRef(e),e.propTypes={value:Cn.string.isRequired,onChange:Cn.func.isRequired,onKeyDown:Cn.func,country:Cn.string,inputFormat:Cn.oneOf(["INTERNATIONAL","NATIONAL_PART_OF_INTERNATIONAL","NATIONAL","INTERNATIONAL_OR_NATIONAL"]).isRequired,metadata:Cn.object,inputComponent:Cn.elementType},e}const Qwe=Wwe();function uj(t,e,n,r){return l6(Bwe(t+e,n,r),t)}function Jwe(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 Zwe(t){Jwe(t)||console.error("[react-phone-number-input] Expected the initial `value` to be a E.164 phone number. Got",t)}var eSe=Cn.shape({country_calling_codes:Cn.object.isRequired,countries:Cn.object.isRequired});Cn.objectOf(Cn.string);function qS(t,e){var n="+"+J1(t,e);return n}function Zg(t,e){return iSe(t)||rSe(t,e)||nSe(t,e)||tSe()}function tSe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
4287
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function nSe(t,e){if(t){if(typeof t=="string")return dj(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 dj(t,e)}}function dj(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 rSe(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 iSe(t){if(Array.isArray(t))return t}function aSe(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=oSe({international:s,country:i,defaultCountry:a,withCountryCallingCode:l}),f=P.useRef(),h=function(he,ee,te){console.error("[react-phone-number-input] Expected phone number ".concat(he," to correspond to country ").concat(ee," but ").concat(te?"in reality it corresponds to country "+te:"it doesn't",".")),f.current=!0},g=function(he){return n&&Zwe(n),sSe(n,i,a,d,c,u,function(){he&&he.onCountryMismatch&&he.onCountryMismatch();for(var ee=arguments.length,te=new Array(ee),Y=0;Y<ee;Y++)te[Y]=arguments[Y];h.apply(e,te)})},v=P.useState(i),m=Zg(v,2),A=m[0],w=m[1],E=P.useState(a),x=Zg(E,2),C=x[0],S=x[1],_=P.useState(g()),I=Zg(_,2),F=I[0],M=I[1],L=P.useState(n),V=Zg(L,2),U=V[0],O=V[1],q=P.useState(),ie=Zg(q,2);ie[0];var ge=ie[1],Z=P.useCallback(function(){return ge({})},[ge]);function Q(K){if(K){d==="NATIONAL_PART_OF_INTERNATIONAL"&&(K="+".concat(J1(i,u)).concat(K));var he=new o6(i||a,u);return he.input(K),he.getNumberValue()}}P.useEffect(function(){n!==U&&(O(n),M(g()))},[n]),P.useEffect(function(){if(i!==A){w(i);var K,he=g({onCountryMismatch:function(){K=!0}});M(he),K&&O(Q(he))}},[i]),P.useEffect(function(){a!==C&&(S(a),M(g()))},[a]),P.useEffect(function(){U!==n&&r(U)},[U]);var ce=P.useCallback(function(K){var he;if(i)if(d==="INTERNATIONAL"){var ee=qS(i,u);if(K.indexOf(ee)!==0){if(K&&K[0]!=="+")K=ee+K;else if(!f.current)return M(ee),O(void 0),Z()}}else K&&K[0]==="+"&&(K=K.slice(1));else a||K&&K[0]!=="+"&&(K="+"+K);K&&(he=Q(K)),M(K),O(he)},[i,d,a,u,M,O,Z,f]);return{phoneDigits:F,setPhoneDigits:ce,inputFormat:d}}function sSe(t,e,n,r,i,a,s){if(e&&r==="INTERNATIONAL"){var l=qS(e,a);return t?(t.indexOf(l)!==0&&s(t,e),t):l}if(!t)return"";if(!e&&!n)return t;var c=new o6(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!==J1(e,a)&&s(t,e),r){case"NATIONAL":return Z1(u.formatNational());case"NATIONAL_PART_OF_INTERNATIONAL":return Z1(l6(u.formatInternational(),qS(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===J1(n,a)&&i?Z1(u.formatNational()):t;else return""}function oSe(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 lSe=["Component","country","defaultCountry","useNationalFormatForDefaultCountryValue","value","onChange","metadata","international","withCountryCallingCode"];function $S(){return $S=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},$S.apply(this,arguments)}function cSe(t,e){if(t==null)return{};var n=uSe(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 uSe(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 c6(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=cSe(t,lSe),g=aSe({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 P.createElement(n,$S({},h,{ref:e,metadata:u,inputFormat:A,international:d,withCountryCallingCode:f,country:r||i,value:v,onChange:m}))}c6=P.forwardRef(c6),c6.propTypes={value:Cn.string,onChange:Cn.func.isRequired,country:Cn.string,defaultCountry:Cn.string,international:Cn.bool,withCountryCallingCode:Cn.bool,Component:Cn.elementType.isRequired,useNationalFormatForDefaultCountryValue:Cn.bool,metadata:eSe};var dSe=["type","autoComplete","smartCaret","metadata"];function jS(){return jS=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},jS.apply(this,arguments)}function fSe(t,e){if(t==null)return{};var n=hSe(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 hSe(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 fj(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=fSe(n,dSe);return P.createElement(c6,jS({},h,{type:a,autoComplete:l,metadata:f,ref:r,Component:u?Kwe:Qwe}))}return e=P.forwardRef(e),e.propTypes={type:Cn.string,autoComplete:Cn.string,smartCaret:Cn.bool,metadata:Cn.object},e}fj();const pSe=fj(oye),gSe=t=>{var Y,R,fe,be,Te,ye,Ae,ne,$,re,W;const{taskRegisterData:e,updateTaskRegisterData:n,updateTaskProgressValue:r,updateUserFormDataSubmit:i,userTaskSubmitFormData:a,TASK_PUBLISHED:s,task_status:l}=yr(),{userSelectedLanguage:c,fieldSettingUpdate:u}=on(),{field:d,fieldIndex:f,sectionIndex:h,pageIndex:g,row:v,rowIndex:m,columnIndex:A,isDisabled:w}=t,{isAdmin:E,isRenderView:x,isPreview:C}=Qt(),[S,_]=P.useState(!1),[I,F]=P.useState(""),[M,L]=P.useState(0),[V,U]=P.useState(!1),[O,q]=P.useState(!1),ie=()=>{q(!0)},ge=()=>{q(!1)},Z=()=>{var de,Ie,Ee;if(v!=null&&v.rowIsRepeatable){if(v!=null&&v.repeatableFields){const ve=[...v.repeatableFields],me=It.findIndex(ve,function(Se){return Se.uuid===(d==null?void 0:d.uuid)});me>=0&&ve[me].fieldData?F(ve[me].fieldData):F("")}}else{const ve=a;if(ve!=null&&ve.length){for(const me of ve)if(me.fieldId===t.field.uuid&&((de=me==null?void 0:me.postData[0])==null?void 0:de.postValue)!==""&&((Ie=me==null?void 0:me.postData[0])!=null&&Ie.postValue)){F((Ee=me==null?void 0:me.postData[0])==null?void 0:Ee.postValue);break}}}U(!0)};P.useEffect(()=>{V||Z();const de=Zt.addListener("clearRepeatableFields",me=>{me===(v==null?void 0:v.uuid)&&(F(""),L(0),d.isValid=0,u(g,h,m,A,f,d))}),Ie=Zt.addListener("onSubmitUserForm",()=>{var me;(me=d==null?void 0:d.attributes)!=null&&me.required?I?d.isValid=1:d.isValid=0:d.isValid=1}),Ee=Zt.addListener("OnInvalidFieldCatch",me=>{d.uuid===(me==null?void 0:me.fieldId)?L(1):L(0)}),ve=Zt.addListener("OnGetFieldValue",me=>{var De;const Se=(De=me==null?void 0:me.repeatableColumn)==null?void 0:De.filter(j=>(j==null?void 0:j.fieldUuid)===(d==null?void 0:d.uuid));Se!=null&&Se.length});return()=>{Ie.remove(),Ee.remove(),ve.remove(),de.remove()}});const Q=de=>{_(de)},ce=()=>{_(!1)},K=(de,Ie)=>{const Ee=a,ve=It.cloneDeep(e);if(ve[d==null?void 0:d.uuid]=de,(Ee==null?void 0:Ee.length)>0)for(const me of Ee)me.fieldId===t.field.uuid&&(me.postData[0]={postValue:de});if(!(v!=null&&v.rowIsRepeatable)){n(ve);const me=Object.keys(ve).length;r(me)}},he=(de,Ie)=>{var Ee;if(a){const ve=[...a],me=It.findIndex(ve,function(De){return De.rowId===(v==null?void 0:v.uuid)});let Se=(Ee=a[me])==null?void 0:Ee.repeatableFields;Se={...Se,[de==null?void 0:de.uuid]:Ie},ve[me]={...ve[me],repeatableFields:Se},i(ve)}F(Ie),Ie!==""?de.isValid=1:de.isValid=0},ee=de=>{v!=null&&v.rowIsRepeatable?he(d,de):K(de)},te=o.jsxs("div",{onMouseOver:ie,onMouseOut:ge,children:[!x&&!C&&O&&o.jsx(Xr,{handleFieldSettingsSidebar:Q,...t}),o.jsxs("div",{className:`field ${C?" ":" builder-element-wrapper "}${(d==null?void 0:d.isFluid)===!0?" card py-3 px-4 p-fluid":"card py-3 px-4"}`,children:[o.jsx("div",{className:"grid",children:o.jsxs("div",{className:C?"col-12 ":"col-12 p-fluid",children:[(d==null?void 0:d.showHeaderText)&&o.jsx("h6",{children:(Y=d==null?void 0:d.headerText)==null?void 0:Y[c==null?void 0:c.type]}),(d==null?void 0:d.showLabel)&&o.jsxs("label",{htmlFor:f,className:"flex font-medium mb-3 text-700 text-2xl",children:[o.jsx(da,{...t}),((R=d==null?void 0:d.attributes)==null?void 0:R.required)&&o.jsx("span",{className:"must-required mr-1",children:"*"})," ",C?o.jsx(o.Fragment,{children:(fe=d==null?void 0:d.label)==null?void 0:fe[c==null?void 0:c.type]}):o.jsx(sa,{...t}),o.jsx("span",{className:"ml-3",children:(d==null?void 0:d.showToolTip)&&o.jsx(Mi,{message:(be=d==null?void 0:d.toolTip)==null?void 0:be[c==null?void 0:c.type],position:"right"})})]}),o.jsxs("div",{className:"mt-3",children:[o.jsxs("span",{className:"p-input-icon-"+(d==null?void 0:d.iconAlignment),children:[(d==null?void 0:d.showIcon)&&o.jsx("i",{className:"pi pi-"+((ye=(Te=d==null?void 0:d.icon)==null?void 0:Te.properties)==null?void 0:ye.name)}),o.jsx(pSe,{id:d==null?void 0:d.uuid,placeholder:(Ae=d==null?void 0:d.placeholder)==null?void 0:Ae[c==null?void 0:c.type],value:I,onFocus:()=>L(1),onChange:ee,international:!0,className:`${M===1&&((ne=d==null?void 0:d.attributes)!=null&&ne.required)?I?"valid":"invalid":"valid'"} p-inputtext`,readOnly:w})]}),o.jsx("div",{children:(($=d==null?void 0:d.attributes)==null?void 0:$.required)&&o.jsx("small",{className:"error",children:M===1&&!I?(re=d==null?void 0:d.validationMesssage)==null?void 0:re.english:""})}),o.jsx("div",{children:(d==null?void 0:d.showHelperText)&&o.jsx("small",{children:(W=d==null?void 0:d.helperText)==null?void 0:W[c==null?void 0:c.type]})})]})]})}),E&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(Ni,{...t})]})]})]});return o.jsxs(o.Fragment,{children:[S===!0&&o.jsx(Wi,{visibilty:S,closeSettingFieldSidebar:ce,...t}),o.jsx(Si,{...t,fieldWrap:te})]})},mSe=t=>{var K,he,ee,te,Y,R,fe,be,Te,ye,Ae;const{field:e,fieldIndex:n,pageIndex:r,sectionIndex:i,row:a,isDisabled:s}=t,{isPreview:l,isAdmin:c,isRenderView:u}=Qt(),{task_status:d,taskRegisterData:f,updateTaskRegisterData:h,updateTaskProgressValue:g,updateUserFormDataSubmit:v,userTaskSubmitFormData:m,TASK_PUBLISHED:A}=yr(),{userSelectedLanguage:w}=on(),[E,x]=P.useState(!1),[C,S]=P.useState(""),[_,I]=P.useState(0),[F,M]=P.useState(!1),L=()=>{M(!0)},V=()=>{M(!1)};P.useEffect(()=>{E||ge();const ne=Zt.addListener("clearRepeatableFields",re=>{re===(a==null?void 0:a.uuid)&&(S(""),I(0),e.isValid=0)}),$=Zt.addListener("onSubmitUserForm",()=>{var re;(re=e==null?void 0:e.attributes)!=null&&re.required?C!==""&&xu.test(C)===!0?e.isValid=1:e.isValid=0:e.isValid=1});return()=>{$.remove(),ne.remove()}});const[U,O]=P.useState(!1),q=ne=>{O(ne)},ie=()=>{O(!1)},ge=()=>{var ne,$,re;if(a!=null&&a.rowIsRepeatable){if(a!=null&&a.repeatableFields){const W=[...a.repeatableFields],de=It.findIndex(W,function(Ie){return Ie.uuid===(e==null?void 0:e.uuid)});de>=0&&W[de].fieldData?S(W[de].fieldData):S("")}}else{const W=m;if(W!=null&&W.length){for(const de of W)if(de.fieldId===t.field.uuid&&((ne=de==null?void 0:de.postData[0])==null?void 0:ne.postValue)!==""&&(($=de==null?void 0:de.postData[0])!=null&&$.postValue)){S((re=de==null?void 0:de.postData[0])==null?void 0:re.postValue),x(!0);break}}}x(!0)},Z=ne=>{S(ne);const $=m,re=It.cloneDeep(f);if(ne!==""&&xu.test(ne)===!0){if(re[e==null?void 0:e.uuid]=ne,($==null?void 0:$.length)>0)for(const W of $)W.fieldId===t.field.uuid&&(W.postData[0]={postValue:ne})}else if(delete re[e==null?void 0:e.uuid],($==null?void 0:$.length)>0)for(const W of $)W.fieldId===t.field.uuid&&(W.postData[0]={postValue:""});if(!(a!=null&&a.rowIsRepeatable)){h(re);const W=Object.keys(re).length;g(W)}},Q=(ne,$)=>{var ve;const re=[...m],W=It.findIndex(re,function(me){return me.rowId===(a==null?void 0:a.uuid)});let de=(ve=m[W])==null?void 0:ve.repeatableFields;const Ie=ne,Ee=Ie==null?void 0:Ie.uuid;de={...de,[Ee]:$},re[W]={...re[W],repeatableFields:de},v(re),S($),$!==""&&xu.test($)===!0?e.isValid=1:e.isValid=0},ce=o.jsxs("div",{onMouseOver:L,onMouseOut:V,children:[!u&&!l&&F&&o.jsx(Xr,{handleFieldSettingsSidebar:q,...t}),o.jsxs("div",{className:`field ${l?" ":" builder-element-wrapper "}${(e==null?void 0:e.isFluid)===!0?" card py-3 px-4 p-fluid":"card py-3 px-4"}`,children:[o.jsx("div",{className:"grid"}),(e==null?void 0:e.showHeaderText)&&o.jsx("h6",{children:(K=e==null?void 0:e.headerText)==null?void 0:K[w==null?void 0:w.type]}),(e==null?void 0:e.showLabel)&&o.jsxs("label",{htmlFor:n,className:"flex font-medium mb-3 text-700 text-2xl",children:[o.jsx(da,{...t}),((he=e==null?void 0:e.attributes)==null?void 0:he.required)&&o.jsx("span",{className:"must-required mr-1",children:"*"})," ",l?o.jsx(o.Fragment,{children:(ee=e==null?void 0:e.label)==null?void 0:ee[w==null?void 0:w.type]}):o.jsx(sa,{...t}),o.jsx("span",{className:"ml-3",children:(e==null?void 0:e.showToolTip)&&o.jsx(Mi,{message:(te=e==null?void 0:e.toolTip)==null?void 0:te[w==null?void 0:w.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-"+((R=(Y=e==null?void 0:e.icon)==null?void 0:Y.properties)==null?void 0:R.name)}),o.jsx(bn,{id:e==null?void 0:e.uuid,placeholder:(fe=e==null?void 0:e.placeholder)==null?void 0:fe[w==null?void 0:w.type],value:C,onFocus:()=>I(1),onChange:ne=>{a!=null&&a.rowIsRepeatable?Q(r,i):Z(ne.target.value)},className:_===1&&((be=e==null?void 0:e.attributes)!=null&&be.required)?C?"valid":"invalid":"valid'",readOnly:s})]}),((Te=e==null?void 0:e.attributes)==null?void 0:Te.required)&&o.jsx("div",{children:o.jsx("small",{className:"error",children:_===1&&!C?(ye=e==null?void 0:e.validationMesssage)==null?void 0:ye[w==null?void 0:w.type]:""})}),C!==""&&_===1&&xu.test(C)===!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:(Ae=e==null?void 0:e.helperText)==null?void 0:Ae[w==null?void 0:w.type]})})]}),c&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(Ni,{...t})]})]});return o.jsxs(o.Fragment,{children:[U===!0&&o.jsx(Wi,{visibilty:U,closeSettingFieldSidebar:ie,...t},e==null?void 0:e.uuid),o.jsx(Si,{...t,fieldWrap:ce})]})},vSe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAwAAAAMACAYAAACTgQCOAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAABmJLR0QA/wD/AP+gvaeTAACAAElEQVR42u3deXxcdb3/8ffnTLaWthSUVVuaTMIWKc2cpLWi/oqIeK+4XisuoKDodUNx38H9Ku67IhdwB6NeF1xBqQrWNjOTUgxbM0kLyKp0b7PMnM/vj1ZFtiazZc7M6/l4+LhXxTZ5nzPnfN9zvt/vMQEAakI6DJv3j6L5gft8NTfPN/f5cp8fuR+gIJhv7vNdag7M5sm91aXZkvaTe4uk/c2sSdL+kuRSQtK8h/hr5khqfsB/Nilpx0P8s9tMKuz9/7e6e17SVplNSNpp0i6ZjUfu20yadLMtiqItgdlmmW1xsy2anNwSmW3ZGgRbejOZSY4yAMw8IwIAqAxfuTKxcePGg6IoOsjMDlUUHeJBcJBJh8n9YHc/2MwOdelgSfMl7VfnkeyUtMWke1y606R73f1uBcFdFkX3Kgjudve7giC4d9GiRfdaf3+BswgAKAAAUDM2HXfcARNtbYcH0mFeKHRYEBxu0mEeRR1m1uHSQklNJFW0zZJGJI2YdKdLd5g04tKdhSC4o2tgYKNJETEBAAUAAMoiHYbN892PkNQZSEkPgk65d7qUNKld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p9YzgPR4n0EbwXuzJ0H2MIvfRBQv1kA+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==",ASe=t=>{var ce,K,he,ee,te,Y,R,fe,be;const{field:e,pageIndex:n,sectionIndex:r,row:i,isDisabled:a}=t,{isAdmin:s,isPreview:l,isRenderView:c}=Qt(),{task_status:u,taskRegisterData:d,updateTaskRegisterData:f,updateTaskProgressValue:h,updateUserFormDataSubmit:g,userTaskSubmitFormData:v,TASK_PUBLISHED:m}=yr(),{userSelectedLanguage:A}=on(),[w,E]=P.useState(!1),[x,C]=P.useState(""),[S,_]=P.useState(0),[I,F]=P.useState(!1),M=()=>{F(!0)},L=()=>{F(!1)};P.useEffect(()=>{w||ie();const Te=Zt.addListener("clearRepeatableFields",Ae=>{Ae===(i==null?void 0:i.uuid)&&(C(""),_(0),e.isValid=0)}),ye=Zt.addListener("onSubmitUserForm",()=>{var Ae;(Ae=e==null?void 0:e.attributes)!=null&&Ae.required?x!==""&&xu.test(x)===!0?e.isValid=1:e.isValid=0:e.isValid=1});return()=>{ye.remove(),Te.remove()}});const[V,U]=P.useState(!1),O=Te=>{U(Te)},q=()=>{U(!1)},ie=()=>{var Te,ye,Ae;if(i!=null&&i.rowIsRepeatable){const ne=[...(i==null?void 0:i.repeatableFields)||[]],$=It.findIndex(ne,function(re){return re.uuid===(e==null?void 0:e.uuid)});$>=0&&ne[$].fieldData?C(ne[$].fieldData):C("")}else{const ne=v;if(ne!=null&&ne.length){for(const $ of ne)if($.fieldId===t.field.uuid&&((Te=$==null?void 0:$.postData[0])==null?void 0:Te.postValue)!==""&&((ye=$==null?void 0:$.postData[0])!=null&&ye.postValue)){C((Ae=$==null?void 0:$.postData[0])==null?void 0:Ae.postValue),E(!0);break}}}E(!0)},ge=(Te,ye)=>{C(ye);const Ae=v,ne=It.cloneDeep(d);if(Ae!==null){if(ye){if(ne[e==null?void 0:e.uuid]=ye,(Ae==null?void 0:Ae.length)>0)for(const $ of Ae)$.fieldId===t.field.uuid&&($.postData[0]={postValue:ye})}else if(delete ne[e==null?void 0:e.uuid],(Ae==null?void 0:Ae.length)>0)for(const $ of Ae)$.fieldId===t.field.uuid&&($.postData[0]={postValue:""})}if(!(i!=null&&i.rowIsRepeatable)){f(ne);const $=Object.keys(ne).length;h($)}},Z=(Te,ye,Ae,ne)=>{var de;const $=[...v],re=It.findIndex($,function(Ie){return Ie.rowId===(i==null?void 0:i.uuid)});let W=(de=v[re])==null?void 0:de.repeatableFields;W={...W,[Ae==null?void 0:Ae.uuid]:ne},$[re]={...$[re],repeatableFields:W},g($),C(ne),ne!==""&&xu.test(ne)===!0?e.isValid=1:e.isValid=0},Q=o.jsxs("div",{onMouseOver:M,onMouseOut:L,children:[!c&&!l&&I&&o.jsx(Xr,{handleFieldSettingsSidebar:O,...t}),o.jsxs("div",{className:`field ${l?" ":" builder-element-wrapper "}${(e==null?void 0:e.isFluid)===!0?" card py-3 px-4 p-fluid":"card py-3 px-4"}`,children:[o.jsx("div",{className:"grid",children:o.jsxs("div",{className:s?"col-6 ":"col-12 p-fluid",children:[(e==null?void 0:e.showHeaderText)&&o.jsx("h6",{children:(ce=e==null?void 0:e.headerText)==null?void 0:ce[A==null?void 0:A.type]}),(e==null?void 0:e.showLabel)&&o.jsxs("label",{htmlFor:e.uuid,className:"flex font-medium mb-3 text-700 text-2xl",children:[o.jsx(da,{...t}),((K=e==null?void 0:e.attributes)==null?void 0:K.required)&&o.jsx("span",{className:"must-required mr-1",children:"*"})," ",l?o.jsx(o.Fragment,{children:(he=e==null?void 0:e.label)==null?void 0:he[A==null?void 0:A.type]}):o.jsx(sa,{...t}),(e==null?void 0:e.showToolTip)&&o.jsx("span",{className:"ml-3",children:o.jsx(Mi,{message:(ee=e==null?void 0:e.toolTip)==null?void 0:ee[A==null?void 0:A.type],position:"right"})})]}),o.jsx("div",{children:o.jsx(d8,{cancelIcon:o.jsx("img",{src:vSe,alt:"custom-cancel-image",width:"25px",height:"25px"}),offIcon:o.jsx("img",{src:bSe,alt:"custom-image-active",width:"25px",height:"25px"}),onIcon:o.jsx("img",{src:ySe,alt:"custom-image",width:"25px",height:"25px"}),id:e==null?void 0:e.uuid,placeholder:(te=e==null?void 0:e.placeholder)==null?void 0:te[A==null?void 0:A.type],value:x,onFocus:()=>_(1),onChange:Te=>{i!=null&&i.rowIsRepeatable?Z(n,r,e,Te.value):ge(Te,Te.value)},className:S===1&&((Y=e==null?void 0:e.attributes)!=null&&Y.required)?x?"valid":"invalid":"valid'",readOnly:a})}),((R=e==null?void 0:e.attributes)==null?void 0:R.required)&&o.jsx("div",{children:o.jsx("small",{className:"error",children:S===1&&!x?(fe=e==null?void 0:e.validationMesssage)==null?void 0:fe[A==null?void 0:A.type]:""})}),(e==null?void 0:e.showHelperText)&&o.jsx("div",{children:o.jsx("small",{children:(be=e==null?void 0:e.helperText)==null?void 0:be[A==null?void 0:A.type]})})]})}),s&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(Ni,{...t})]})]})]});return o.jsxs(o.Fragment,{children:[V===!0&&o.jsx(Wi,{visibilty:V,closeSettingFieldSidebar:q,...t},e==null?void 0:e.uuid),o.jsx(Si,{...t,fieldWrap:Q})]})},wSe=t=>{var ce,K,he,ee,te,Y,R,fe,be;const{field:e,pageIndex:n,sectionIndex:r,row:i,isDisabled:a}=t,{isPreview:s,isAdmin:l,isRenderView:c}=Qt(),{task_status:u,taskRegisterData:d,updateTaskRegisterData:f,updateTaskProgressValue:h,updateUserFormDataSubmit:g,userTaskSubmitFormData:v,TASK_PUBLISHED:m}=yr(),{userSelectedLanguage:A}=on(),[w,E]=P.useState(!1),[x,C]=P.useState(""),[S,_]=P.useState(0),[I,F]=P.useState(!1),M=()=>{F(!0)},L=()=>{F(!1)};P.useEffect(()=>{w||ie();const Te=Zt.addListener("clearRepeatableFields",Ae=>{Ae===(i==null?void 0:i.uuid)&&(C(""),_(0),e.isValid=0)}),ye=Zt.addListener("onSubmitUserForm",()=>{var Ae;(Ae=e==null?void 0:e.attributes)!=null&&Ae.required?x!==""&&xu.test(x)===!0?e.isValid=1:e.isValid=0:e.isValid=1});return()=>{ye.remove(),Te.remove()}});const[V,U]=P.useState(!1),O=Te=>{U(Te)},q=()=>{U(!1)},ie=()=>{var Te,ye,Ae;if(i!=null&&i.rowIsRepeatable){if(i!=null&&i.repeatableFields){const ne=[...i.repeatableFields],$=It.findIndex(ne,function(re){return re.uuid===(e==null?void 0:e.uuid)});$>=0&&ne[$].fieldData?C(ne[$].fieldData):C("")}}else{const ne=v;if(ne!=null&&ne.length){for(const $ of ne)if($.fieldId===t.field.uuid&&((Te=$==null?void 0:$.postData[0])==null?void 0:Te.postValue)!==""&&((ye=$==null?void 0:$.postData[0])!=null&&ye.postValue)){C((Ae=$==null?void 0:$.postData[0])==null?void 0:Ae.postValue),E(!0);break}}}E(!0)},ge=(Te,ye)=>{C(ye);const Ae=v,ne=It.cloneDeep(d);if(Ae!==null){if(ye){if(ne[e==null?void 0:e.uuid]=ye,(Ae==null?void 0:Ae.length)>0)for(const $ of Ae)$.fieldId===t.field.uuid&&($.postData[0]={postValue:ye})}else if(delete ne[e==null?void 0:e.uuid],(Ae==null?void 0:Ae.length)>0)for(const $ of Ae)$.fieldId===t.field.uuid&&($.postData[0]={postValue:""})}if(!(i!=null&&i.rowIsRepeatable)){f(ne);const $=Object.keys(ne).length;h($)}},Z=(Te,ye,Ae,ne)=>{var de;const $=[...v],re=It.findIndex($,function(Ie){return Ie.rowId===(i==null?void 0:i.uuid)});let W=(de=v[re])==null?void 0:de.repeatableFields;W={...W,[Ae==null?void 0:Ae.uuid]:ne},$[re]={...$[re],repeatableFields:W},g($),C(ne),ne!==""&&xu.test(ne)===!0?e.isValid=1:e.isValid=0},Q=o.jsxs("div",{onMouseOver:M,onMouseOut:L,children:[!c&&!s&&I&&o.jsx(Xr,{handleFieldSettingsSidebar:O,...t}),o.jsx("div",{className:`field ${s?" ":" builder-element-wrapper "}${(e==null?void 0:e.isFluid)===!0?" card py-3 px-4 p-fluid":"card py-3 px-4"}`,children:o.jsxs("div",{className:"grid",children:[o.jsxs("div",{className:s?"col-12 p-fluid":"col-12 p-fluid field-form-builder",children:[(e==null?void 0:e.showHeaderText)&&o.jsx("h6",{children:(ce=e==null?void 0:e.headerText)==null?void 0:ce[A==null?void 0:A.type]}),(e==null?void 0:e.showLabel)&&o.jsxs("label",{htmlFor:e.uuid,className:"flex font-medium mb-3 text-700 text-2xl",children:[o.jsx(da,{...t}),((K=e==null?void 0:e.attributes)==null?void 0:K.required)&&o.jsx("span",{className:"must-required mr-1",children:"*"})," ",s?o.jsx(o.Fragment,{children:(he=e==null?void 0:e.label)==null?void 0:he[A==null?void 0:A.type]}):o.jsx(sa,{...t}),o.jsx("span",{className:"ml-3",children:(e==null?void 0:e.showToolTip)&&o.jsx(Mi,{message:(ee=e==null?void 0:e.toolTip)==null?void 0:ee[A==null?void 0:A.type],position:"right"})})]}),o.jsx(p8,{id:e==null?void 0:e.uuid,placeholder:(te=e==null?void 0:e.placeholder)==null?void 0:te[A==null?void 0:A.type],value:x,onFocus:()=>_(1),onChange:Te=>{i!=null&&i.rowIsRepeatable?Z(n,r,e,Te.value):ge(Te,Te.value)},className:S===1&&((Y=e==null?void 0:e.attributes)!=null&&Y.required)?x?"valid":"invalid":"valid'",readOnly:a}),((R=e==null?void 0:e.attributes)==null?void 0:R.required)&&o.jsx("div",{children:o.jsx("small",{className:"error",children:S===1&&!x?(fe=e==null?void 0:e.validationMesssage)==null?void 0:fe[A==null?void 0:A.type]:""})}),(e==null?void 0:e.showHelperText)&&o.jsx("div",{children:o.jsx("small",{children:(be=e==null?void 0:e.helperText)==null?void 0:be[A==null?void 0:A.type]})})]}),l&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(Ni,{...t})]})]})})]});return o.jsxs(o.Fragment,{children:[V===!0&&o.jsx(Wi,{visibilty:V,closeSettingFieldSidebar:q,...t},e==null?void 0:e.uuid),o.jsx(Si,{...t,fieldWrap:Q})]})},SSe=t=>{var Q,ce,K,he,ee,te;const{field:e,pageIndex:n,sectionIndex:r,row:i}=t,{isPreview:a,isAdmin:s,isRenderView:l}=Qt(),{task_status:c,taskRegisterData:u,updateTaskRegisterData:d,updateTaskProgressValue:f,updateUserFormDataSubmit:h,userTaskSubmitFormData:g,TASK_PUBLISHED:v}=yr(),{userSelectedLanguage:m}=on(),[A,w]=P.useState(!1),[E,x]=P.useState(""),[C,S]=P.useState(0),[_,I]=P.useState(!1),F=()=>{I(!0)},M=()=>{I(!1)};P.useEffect(()=>{A||q();const Y=Zt.addListener("clearRepeatableFields",fe=>{fe===(i==null?void 0:i.uuid)&&(x(""),S(0),e.isValid=0)}),R=Zt.addListener("onSubmitUserForm",()=>{var fe;(fe=e==null?void 0:e.attributes)!=null&&fe.required&&(E!==""&&xu.test(E)===!0?e.isValid=1:e.isValid=0)});return()=>{R.remove(),Y.remove()}});const[L,V]=P.useState(!1),U=Y=>{V(Y)},O=()=>{V(!1)},q=()=>{var Y,R,fe;if(i!=null&&i.rowIsRepeatable){if(i!=null&&i.repeatableFields){const be=[...i.repeatableFields],Te=It.findIndex(be,function(ye){return ye.uuid===(e==null?void 0:e.uuid)});Te>=0&&be[Te].fieldData?x(be[Te].fieldData):x("")}}else{const be=g;if(be!=null&&be.length){for(const Te of be)if(Te.fieldId===t.field.uuid&&((Y=Te==null?void 0:Te.postData[0])==null?void 0:Y.postValue)!==""&&((R=Te==null?void 0:Te.postData[0])!=null&&R.postValue)){x((fe=Te==null?void 0:Te.postData[0])==null?void 0:fe.postValue),w(!0);break}}}w(!0)},ie=(Y,R)=>{x(R);const fe=g,be=It.cloneDeep(u);if(R){if(be[e==null?void 0:e.uuid]=R,(fe==null?void 0:fe.length)>0)for(const Te of fe)Te.fieldId===t.field.uuid&&(Te.postData[0]={postValue:R})}else if(delete be[e==null?void 0:e.uuid],(fe==null?void 0:fe.length)>0)for(const Te of fe)Te.fieldId===t.field.uuid&&(Te.postData[0]={postValue:""});if(!(i!=null&&i.rowIsRepeatable)){d(be);const Te=Object.keys(be).length;f(Te)}},ge=(Y,R,fe,be)=>{var ne;const Te=[...g],ye=It.findIndex(Te,function($){return $.rowId===(i==null?void 0:i.uuid)});let Ae=(ne=g[ye])==null?void 0:ne.repeatableFields;Ae={...Ae,[fe==null?void 0:fe.uuid]:be},Te[ye]={...Te[ye],repeatableFields:Ae},h(Te),x(be),be!==""&&xu.test(be)===!0?e.isValid=1:e.isValid=0},Z=o.jsxs("div",{onMouseOver:F,onMouseOut:M,children:[!l&&!a&&_&&o.jsx(Xr,{handleFieldSettingsSidebar:U,...t}),o.jsxs("div",{className:`field ${a?" ":" builder-element-wrapper "}${(e==null?void 0:e.isFluid)===!0?" p-fluid ":" "} ${l?" ":" py-6 px-4 card"}`,children:[o.jsxs("div",{className:a?"p-fluid":"card p-fluid field-form-builder",children:[!a&&o.jsx("label",{className:"block font-medium mb-3 text-700 text-2xl",children:"Hidden field"}),o.jsx(bn,{type:a===!0?"hidden":"text",id:e==null?void 0:e.uuid,placeholder:(Q=e==null?void 0:e.placeholder)==null?void 0:Q[m==null?void 0:m.type],value:(ce=e==null?void 0:e.defaultValue)==null?void 0:ce[m==null?void 0:m.type],onFocus:()=>S(1),onLoad:()=>{i!=null&&i.rowIsRepeatable?ge(n,r,e,e==null?void 0:e.defaultValue):ie("",e==null?void 0:e.defaultValue)},className:C===1&&((K=e==null?void 0:e.attributes)!=null&&K.required)?E?"valid":"invalid":"valid'",readOnly:c===v}),((he=e==null?void 0:e.attributes)==null?void 0:he.required)&&o.jsx("div",{children:o.jsx("small",{className:"error",children:C===1&&!E?(ee=e==null?void 0:e.validationMesssage)==null?void 0:ee[m==null?void 0:m.type]:""})}),(e==null?void 0:e.showHelperText)&&o.jsx("div",{children:o.jsx("small",{children:(te=e==null?void 0:e.helperText)==null?void 0:te[m==null?void 0:m.type]})})]}),s&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(Ni,{...t})]})]})]});return o.jsxs(o.Fragment,{children:[L===!0&&o.jsx(Wi,{visibilty:L,closeSettingFieldSidebar:O,...t}),o.jsx(Si,{...t,fieldWrap:Z})]})},hj=t=>{var C;const{field:e,fieldIndex:n,pageIndex:r,sectionIndex:i,rowIndex:a,columnIndex:s,path:l,labelType:c}=t,[u,d]=P.useState(e),{isPreview:f}=Qt();P.useEffect(()=>{var S;return E((S=e[c])==null?void 0:S[h==null?void 0:h.type]),()=>{}},[e]);const{userSelectedLanguage:h,fieldSettingUpdate:g,fieldSettingUpdateInlineConditional:v,gridComponentFieldSettingUpdate:m}=on(),A=(S,_,I)=>{d(F=>({...F,[S]:{...F[S],[_==null?void 0:_.type]:I}}))},[w,E]=P.useState((C=e[c])==null?void 0:C[h==null?void 0:h.type]);P.useEffect(()=>(x(),()=>{}),[u]);const x=()=>{const S=l.split("-").map(Number);(t==null?void 0:t.fieldContainer)==="inline-condition-container"?v(S[ma],S[va],S[Ca],S[Ta],S[Ea],S[Oa],S[Zo],S[Fo],u):(S==null?void 0:S.length)>Oa&&(S==null?void 0:S.length)===tc+1&&(e!=null&&e.componentType)&&(t==null?void 0:t.fieldContainer)==="grid-container"?m(S[ma],S[va],S[Ca],S[Ta],S[Ea],S[5],S[6],S[7],u):g(r,i,a,s,n,{...e,[c]:u[c]})};return o.jsx(o.Fragment,{children:o.jsx(p4,{style:{display:"inline-block"},className:"builder-input-label-edit",html:w,disabled:f,onChange:S=>{var _;E(b4.sanitize((_=S==null?void 0:S.target)==null?void 0:_.value))},onBlur:S=>{var I;const _=b4.sanitize((I=S==null?void 0:S.target)==null?void 0:I.innerText);E(_),A(c,h,_)},tagName:"article"})})},xSe=t=>{var te,Y,R,fe,be,Te,ye;const{taskRegisterData:e,updateTaskRegisterData:n,updateTaskProgressValue:r,updateUserFormDataSubmit:i,userTaskSubmitFormData:a}=yr(),{userSelectedLanguage:s,fieldSettingUpdate:l}=on(),{field:c,fieldIndex:u,sectionIndex:d,pageIndex:f,row:h,rowIndex:g,columnIndex:v,isDisabled:m}=t,{isPreview:A,isAdmin:w,isRenderView:E}=Qt(),[x,C]=P.useState(!1),[S,_]=P.useState(""),[I,F]=P.useState(0),[M,L]=P.useState(!1),[V,U]=P.useState(!1),O=()=>{U(!0)},q=()=>{U(!1)},ie=()=>{var Ae,ne,$;if(h!=null&&h.rowIsRepeatable){if(h!=null&&h.repeatableFields){const re=[...h.repeatableFields],W=It.findIndex(re,function(de){return de.uuid===(c==null?void 0:c.uuid)});W>=0&&re[W].fieldData?_(re[W].fieldData):_("")}}else{const re=a;if(re!=null&&re.length){for(const W of re)if(W.fieldId===t.field.uuid&&((Ae=W==null?void 0:W.postData[0])==null?void 0:Ae.postValue)!==""&&((ne=W==null?void 0:W.postData[0])!=null&&ne.postValue)){_(($=W==null?void 0:W.postData[0])==null?void 0:$.postValue);break}}}L(!0)};P.useEffect(()=>{M||ie();const Ae=Zt.addListener("clearRepeatableFields",W=>{W===(h==null?void 0:h.uuid)&&(_(""),F(0),c.isValid=0,l(f,d,g,v,u,c))}),ne=Zt.addListener("onSubmitUserForm",()=>{var W;(W=c==null?void 0:c.attributes)!=null&&W.required?S?c.isValid=1:c.isValid=0:c.isValid=1}),$=Zt.addListener("OnInvalidFieldCatch",W=>{c.uuid===(W==null?void 0:W.fieldId)?F(1):F(0)}),re=Zt.addListener("OnGetFieldValue",W=>{var Ie;const de=(Ie=W==null?void 0:W.repeatableColumn)==null?void 0:Ie.filter(Ee=>(Ee==null?void 0:Ee.fieldUuid)===(c==null?void 0:c.uuid));de!=null&&de.length});return()=>{ne.remove(),$.remove(),re.remove(),Ae.remove()}});const ge=Ae=>{C(Ae)},Z=()=>{C(!1)},Q=Ae=>{var re,W;_(Ae.target.value);const ne=a,$=It.cloneDeep(e);if(ne!==null){if((re=Ae==null?void 0:Ae.target)!=null&&re.value){if($[c==null?void 0:c.uuid]=(W=Ae==null?void 0:Ae.target)==null?void 0:W.value,(ne==null?void 0:ne.length)>0)for(const de of ne)de.fieldId===t.field.uuid&&(de.postData[0]={postValue:Ae.target.value})}else if(delete $[c==null?void 0:c.uuid],(ne==null?void 0:ne.length)>0)for(const de of ne)de.fieldId===t.field.uuid&&(de.postData[0]={postValue:""})}if(!(h!=null&&h.rowIsRepeatable)){n($);const de=Object.keys($).length;r(de)}},ce=(Ae,ne,$,re)=>{var W;if(a){const de=[...a],Ie=It.findIndex(de,function(ve){return ve.rowId===(h==null?void 0:h.uuid)});let Ee=(W=a[Ie])==null?void 0:W.repeatableFields;Ee={...Ee,[$==null?void 0:$.uuid]:re},de[Ie]={...de[Ie],repeatableFields:Ee},i(de)}_(re),re!==""?$.isValid=1:$.isValid=0},K=10,he=()=>{const Ae=[];for(let ne=0;ne<=K;ne++)Ae.push(o.jsxs("label",{children:[o.jsx("input",{onChange:$=>{h!=null&&h.rowIsRepeatable?ce(f,d,c,$.target.value):Q($)},checked:parseInt(S)===ne,name:"liker-scale"+(c==null?void 0:c.uuid),type:"radio",value:ne,disabled:m}),o.jsx("span",{children:ne})]},`field-${c==null?void 0:c.uuid}-likertScale-${ne} ${parseInt(S)===ne?"scale-selected":""}`));return Ae},ee=o.jsxs("div",{onMouseOver:O,onMouseOut:q,children:[!E&&!A&&V&&o.jsx(Xr,{handleFieldSettingsSidebar:ge,...t}),o.jsxs("div",{className:`field ${A?" ":" builder-element-wrapper "}${(c==null?void 0:c.isFluid)===!0?" card py-3 px-4 p-fluid":"card py-3 px-4"}`,children:[o.jsxs("div",{className:"",children:[(c==null?void 0:c.showHeaderText)&&o.jsx("h6",{children:(te=c==null?void 0:c.headerText)==null?void 0:te[s==null?void 0:s.type]}),(c==null?void 0:c.showLabel)&&o.jsxs("label",{htmlFor:u,className:"flex font-medium mb-3 text-700 text-2xl",children:[o.jsx(da,{...t}),((Y=c==null?void 0:c.attributes)==null?void 0:Y.required)&&o.jsx("span",{className:"must-required mr-1",children:"*"})," ",A?o.jsx(o.Fragment,{children:(R=c==null?void 0:c.label)==null?void 0:R[s==null?void 0:s.type]}):o.jsx(sa,{...t}),o.jsx("span",{className:"ml-3",children:(c==null?void 0:c.showToolTip)&&o.jsx(Mi,{message:(fe=c==null?void 0:c.toolTip)==null?void 0:fe[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(hj,{...t,labelType:"startingMessage"})}),o.jsx("div",{className:"font-medium text-900",children:o.jsx(hj,{...t,labelType:"endingMessage"})})]}),o.jsx("div",{className:"likert",children:he()})]})}),o.jsx("div",{children:((be=c==null?void 0:c.attributes)==null?void 0:be.required)&&o.jsx("small",{className:"error",children:I===1&&!S?(Te=c==null?void 0:c.validationMesssage)==null?void 0:Te.language:""})}),o.jsx("div",{children:(c==null?void 0:c.showHelperText)&&o.jsx("small",{children:(ye=c==null?void 0:c.helperText)==null?void 0:ye[s==null?void 0:s.type]})})]}),w&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(Ni,{...t})]})]})]});return o.jsxs(o.Fragment,{children:[x===!0&&o.jsx(Wi,{visibilty:x,closeSettingFieldSidebar:Z,...t}),o.jsx(Si,{...t,fieldWrap:ee})]})},CSe=t=>{var te,Y,R,fe,be,Te,ye,Ae,ne,$,re,W;const{taskRegisterData:e,updateTaskRegisterData:n,updateTaskProgressValue:r,updateUserFormDataSubmit:i,userTaskSubmitFormData:a,task_status:s,TASK_PUBLISHED:l}=yr(),{userSelectedLanguage:c,fieldSettingUpdate:u}=on(),{field:d,fieldIndex:f,sectionIndex:h,pageIndex:g,row:v,rowIndex:m,columnIndex:A,isDisabled:w}=t,{isPreview:E,isAdmin:x,isRenderView:C}=Qt(),[S,_]=P.useState(!1),[I,F]=P.useState(""),[M,L]=P.useState(0),[V,U]=P.useState(!1),[O,q]=P.useState(!1),ie=()=>{q(!0)},ge=()=>{q(!1)},Z=()=>{var de,Ie,Ee;if(v!=null&&v.rowIsRepeatable){if(v!=null&&v.repeatableFields){const ve=[...v.repeatableFields],me=It.findIndex(ve,function(Se){return Se.uuid===(d==null?void 0:d.uuid)});me>=0&&ve[me].fieldData?F(ve[me].fieldData):F("")}}else{const ve=a;if(ve!=null&&ve.length){for(const me of ve)if(me.fieldId===t.field.uuid&&((de=me==null?void 0:me.postData[0])==null?void 0:de.postValue)!==""&&((Ie=me==null?void 0:me.postData[0])!=null&&Ie.postValue)){F((Ee=me==null?void 0:me.postData[0])==null?void 0:Ee.postValue);break}}}U(!0)};P.useEffect(()=>{V||Z();const de=Zt.addListener("clearRepeatableFields",me=>{me===(v==null?void 0:v.uuid)&&(F(""),L(0),d.isValid=0,u(g,h,m,A,f,d))}),Ie=Zt.addListener("onSubmitUserForm",()=>{var me;(me=d==null?void 0:d.attributes)!=null&&me.required?I?d.isValid=1:d.isValid=0:d.isValid=1}),Ee=Zt.addListener("OnInvalidFieldCatch",me=>{d.uuid===(me==null?void 0:me.fieldId)?L(1):L(0)}),ve=Zt.addListener("OnGetFieldValue",me=>{var De;const Se=(De=me==null?void 0:me.repeatableColumn)==null?void 0:De.filter(j=>(j==null?void 0:j.fieldUuid)===(d==null?void 0:d.uuid));Se!=null&&Se.length});return()=>{Ie.remove(),Ee.remove(),ve.remove(),de.remove()}});const Q=de=>{_(de)},ce=()=>{_(!1)},K=de=>{var ve,me;F(de.target.value);const Ie=a,Ee=It.cloneDeep(e);if(Ie!==null){if((ve=de==null?void 0:de.target)!=null&&ve.value){if(Ee[d==null?void 0:d.uuid]=(me=de==null?void 0:de.target)==null?void 0:me.value,(Ie==null?void 0:Ie.length)>0)for(const Se of Ie)Se.fieldId===t.field.uuid&&(Se.postData[0]={postValue:de.target.value})}else if(delete Ee[d==null?void 0:d.uuid],(Ie==null?void 0:Ie.length)>0)for(const Se of Ie)Se.fieldId===t.field.uuid&&(Se.postData[0]={postValue:""})}if(!(v!=null&&v.rowIsRepeatable)){n(Ee);const Se=Object.keys(Ee).length;r(Se)}},he=(de,Ie)=>{var Ee;if(a){const ve=[...a],me=It.findIndex(ve,function(De){return De.rowId===(v==null?void 0:v.uuid)});let Se=(Ee=a[me])==null?void 0:Ee.repeatableFields;Se={...Se,[de==null?void 0:de.uuid]:Ie},ve[me]={...ve[me],repeatableFields:Se},i(ve)}F(Ie),Ie!==""?de.isValid=1:de.isValid=0},ee=o.jsxs("div",{onMouseOver:ie,onMouseOut:ge,children:[!C&&!E&&O&&o.jsx(Xr,{handleFieldSettingsSidebar:Q,...t}),o.jsxs("div",{className:`field ${E?" ":" builder-element-wrapper "}${(d==null?void 0:d.isFluid)===!0?" card py-3 px-4 p-fluid":"card py-3 px-4"}`,children:[o.jsx("div",{className:"grid",children:o.jsxs("div",{className:E?"col-12 ":"col-12 p-fluid",children:[(d==null?void 0:d.showHeaderText)&&o.jsx("h6",{children:(te=d==null?void 0:d.headerText)==null?void 0:te[c==null?void 0:c.type]}),(d==null?void 0:d.showLabel)&&o.jsxs("label",{htmlFor:f,className:"flex font-medium mb-3 text-700 text-2xl",children:[o.jsx(da,{...t}),((Y=d==null?void 0:d.attributes)==null?void 0:Y.required)&&o.jsx("span",{className:"must-required mr-1",children:"*"})," ",E?o.jsx(o.Fragment,{children:(R=d==null?void 0:d.label)==null?void 0:R[c==null?void 0:c.type]}):o.jsx(sa,{...t}),o.jsx("span",{className:"ml-3",children:(d==null?void 0:d.showToolTip)&&o.jsx(Mi,{message:(fe=d==null?void 0:d.toolTip)==null?void 0:fe[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(bn,{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:I,onFocus:()=>L(1),onChange:de=>{v!=null&&v.rowIsRepeatable?he(d,de.target.value):K(de)},className:M===1&&((Ae=d==null?void 0:d.attributes)!=null&&Ae.required)?I?"valid mt-2 mr-2":"invalid mt-2":"valid mt-2",readOnly: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&&!I?($=d==null?void 0:d.validationMesssage)==null?void 0:$.english:""})}),o.jsx("div",{children:(d==null?void 0:d.showHelperText)&&o.jsx("small",{children:(re=d==null?void 0:d.helperText)==null?void 0:re[c==null?void 0:c.type]})})]})]})}),o.jsx("p",{className:"text-center",children:o.jsx("span",{className:`${(W=d==null?void 0:d.fontStyle)==null?void 0:W.font} text-center`,style:{fontSize:d==null?void 0:d.fontSize},children:I})}),x&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(Ni,{...t})]})]})]});return o.jsxs(o.Fragment,{children:[S===!0&&o.jsx(Wi,{visibilty:S,closeSettingFieldSidebar:ce,...t}),o.jsx(Si,{...t,fieldWrap:ee})]})},TSe=t=>{var Ae,ne,$,re,W,de,Ie,Ee,ve,me,Se,De,j,oe,pe,ue,le;const{taskRegisterData:e,updateTaskRegisterData:n,updateTaskProgressValue:r,userTaskSubmitFormData:i,TASK_PUBLISHED:a,task_status:s}=yr(),{globalAlignment:l}=Qt(),{userSelectedLanguage:c,fieldSettingUpdate:u}=on(),{isRenderView:d,isAdmin:f,isPreview:h}=Qt(),g=se=>{const Oe=se.collapsed?"pi pi-chevron-down":"pi pi-chevron-up",Ne=`${se.className} justify-content-start`,Ke=`${se.titleClassName} pl-1`;return o.jsxs("div",{className:Ne,children:[o.jsxs("button",{className:se.togglerClassName,onClick:se.onTogglerClick,children:[o.jsx("span",{className:Oe}),o.jsx(tn,{})]}),o.jsx("span",{className:Ke,children:Z})]})},{field:v,fieldIndex:m,sectionIndex:A,pageIndex:w,row:E,rowIndex:x,columnIndex:C,isDisabled:S}=t,[_,I]=P.useState(!1),[F,M]=P.useState(null),[L,V]=P.useState({country:null,city:null,state:null,addressOne:null,addressTwo:null,zipcode:null,isBillingAddressSame:!1,billingCountry:null,billingCity:null,billingState:null,billingAddressOne:null,billingAddressTwo:null,billingZipcode:null}),[U,O]=P.useState(!1),q=()=>{O(!0)},ie=()=>{O(!1)},ge=(se,Oe)=>{let Ne={...L};Ne={...Ne,[se]:Oe},V(Ne),(Ne==null?void 0:Ne.addressOne)!==""&&(Ne!=null&&Ne.addressTwo)&&(Ne!=null&&Ne.zipcode)&&Te(Ne==null?void 0:Ne.zipcode)?(v.isValid=1,R(Ne,!0)):(v.isValid=0,R(null,!1))},[Z]=P.useState((Ae=v==null?void 0:v.label)==null?void 0:Ae[c==null?void 0:c.type]),[Q,ce]=P.useState(0),[K,he]=P.useState(!1),ee=()=>{var se,Oe;if(!(E!=null&&E.rowIsRepeatable)){const Ne=i;if(Ne!=null&&Ne.length){for(const Ke of Ne)if(Ke.fieldId===t.field.uuid&&((se=Ke==null?void 0:Ke.postData[0])!=null&&se.postValue)){V((Oe=Ke==null?void 0:Ke.postData[0])==null?void 0:Oe.postValue);break}}}he(!0)};P.useEffect(()=>{K||ee();const se=Zt.addListener("clearRepeatableFields",pt=>{pt===(E==null?void 0:E.uuid)&&(ce(0),v.isValid=0,u(w,A,x,C,m,v))}),Oe=Zt.addListener("onSubmitUserForm",()=>{var pt;(pt=v==null?void 0:v.attributes)!=null&&pt.required?(L==null?void 0:L.addressOne)!==""&&(L==null?void 0:L.zipcode)!==""&&Te(L==null?void 0:L.zipcode)?v.isValid=1:v.isValid=0:v.isValid=1}),Ne=Zt.addListener("OnInvalidFieldCatch",pt=>{v.uuid===(pt==null?void 0:pt.fieldId)?ce(1):ce(0)}),Ke=Zt.addListener("OnGetFieldValue",pt=>{var kt;const ft=(kt=pt==null?void 0:pt.repeatableColumn)==null?void 0:kt.filter(Sn=>(Sn==null?void 0:Sn.fieldUuid)===(v==null?void 0:v.uuid));ft!=null&&ft.length}),ut=Zt.addListener("formFieldAdded",pt=>{F===null&&M(pt.uuid)});return()=>{Oe.remove(),Ne.remove(),Ke.remove(),se.remove(),ut.remove()}});const te=se=>{I(se)},Y=()=>{I(!1)},R=(se,Oe)=>{const Ne=i,Ke=It.cloneDeep(e);if(Oe){if(Ke[v==null?void 0:v.uuid]=se,(Ne==null?void 0:Ne.length)>0)for(const ut of Ne)ut.fieldId===t.field.uuid&&(ut.postData[0]={postValue:se})}else if(delete Ke[v==null?void 0:v.uuid],(Ne==null?void 0:Ne.length)>0)for(const ut of Ne)ut.fieldId===t.field.uuid&&(ut.postData[0]={postValue:se});if(!(E!=null&&E.rowIsRepeatable)){n(Ke);const ut=Object.keys(Ke).length;r(ut)}},fe=()=>{let se="";return h||(se=se+" field-form-builder"),s===a&&f===!0&&(se=se+" card"),se},be=()=>{let se=!1;return L.addressOne!==""&&L.zipcode!==""&&Te(L.zipcode)&&(se=!0),se};function Te(se){const Oe=/\d/.test(se),Ne=/[a-zA-Z]/.test(se);return Oe&&Ne?!0:!!Oe}P.useEffect(()=>(F!==null&&setTimeout(()=>{M(null)},1e3),()=>{}),[F]);const ye=o.jsxs("div",{onMouseOver:q,onMouseOut:ie,children:[!d&&!h&&U&&o.jsx(Xr,{handleFieldSettingsSidebar:te,...t}),o.jsxs("div",{className:`field ${h?" ":" builder-element-wrapper "} ${(v==null?void 0:v.isFluid)===!0?" card py-3 px-4 p-fluid":"card p-4"} ${F===(v==null?void 0:v.uuid)?" new-field ":" card "}`,children:[o.jsx("div",{className:"grid",children:o.jsxs("div",{className:h?"col-12 ":"col-11 p-fluid",children:[(v==null?void 0:v.showHeaderText)&&o.jsx("h6",{children:(ne=v==null?void 0:v.headerText)==null?void 0:ne[c==null?void 0:c.type]}),(v==null?void 0:v.showLabel)&&o.jsxs("label",{htmlFor:m,className:"flex font-medium mb-3 text-700 text-2xl",children:[o.jsx(da,{...t}),(($=v==null?void 0:v.attributes)==null?void 0:$.required)&&o.jsx("span",{className:"must-required mr-1",children:"*"})," ",h?o.jsx(o.Fragment,{children:(re=v==null?void 0:v.label)==null?void 0:re[c==null?void 0:c.type]}):o.jsx(sa,{...t}),o.jsx("span",{className:"ml-3",children:(v==null?void 0:v.showToolTip)&&o.jsx(Mi,{message:(W=v==null?void 0:v.toolTip)==null?void 0:W[c==null?void 0:c.type],position:"right"})})]}),o.jsxs("div",{className:"mt-3 p-fluid",children:[o.jsx("div",{children:o.jsx("label",{className:"w-full",htmlFor:"",children:(de=v==null?void 0:v.addresslineFirstLabel)==null?void 0:de[c==null?void 0:c.type]})}),o.jsx(bn,{value:L.addressOne||"",onChange:se=>ge("addressOne",se.target.value),className:"my-2 ",readOnly:S}),o.jsx("div",{children:o.jsx("label",{htmlFor:"",children:(Ie=v==null?void 0:v.addresslineSecondLabel)==null?void 0:Ie[c==null?void 0:c.type]})}),o.jsx(bn,{value:L.addressTwo||"",onChange:se=>ge("addressTwo",se.target.value),className:"my-2",readOnly:S}),o.jsx("div",{children:o.jsx("label",{htmlFor:"",children:(Ee=v==null?void 0:v.postalcodeLabel)==null?void 0:Ee[c==null?void 0:c.type]})}),o.jsx(bn,{value:L.zipcode||"",onChange:se=>ge("zipcode",se.target.value),className:"my-2",readOnly:S}),o.jsx("p",{children:!Te(L.zipcode)&&o.jsx("small",{children:"Cannot be alphabetical only."})}),((ve=v==null?void 0:v.attributes)==null?void 0:ve.required)&&!be()&&o.jsx("small",{className:"error",children:Q===1?(me=v==null?void 0:v.validationMesssage)==null?void 0:me.language:""}),(v==null?void 0:v.showBillingAddress)===!0&&o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:"field-checkbox",children:[o.jsx(Br,{inputId:"binary",checked:L.isBillingAddressSame,onChange:se=>{ge("isBillingAddressSame",se.checked),se.checked?V(Oe=>({...Oe,billingCountry:L.country,billingCity:L.city,billingState:L.state,billingAddressOne:L.addressOne,billingAddressTwo:L.addressTwo,billingZipcode:L.zipcode})):V(Oe=>({...Oe,billingCountry:null,billingCity:null,billingState:null,billingAddressOne:null,billingAddressTwo:null,billingZipcode:null}))},disabled:S}),o.jsx("label",{htmlFor:"binary",children:"Is Billing Address Same"})]}),L.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:[((Se=v==null?void 0:v.attributes)==null?void 0:Se.required)&&o.jsx("span",{className:"must-required",children:"*"})," ",(De=v==null?void 0:v.billingLabel)==null?void 0:De[c==null?void 0:c.type],o.jsx("span",{className:"ml-3",children:(v==null?void 0:v.showToolTip)&&o.jsx(Mi,{message:(j=v==null?void 0:v.toolTip)==null?void 0:j[c==null?void 0:c.type],position:"right"})})]}),o.jsx("label",{htmlFor:"",children:(oe=v==null?void 0:v.addresslineFirstLabel)==null?void 0:oe[c==null?void 0:c.type]}),o.jsx(bn,{value:L.billingAddressOne||"",onChange:se=>ge("billingAddressOne",se.target.value),className:"my-2",readOnly:S}),o.jsx("label",{htmlFor:"",children:(pe=v==null?void 0:v.addresslineSecondLabel)==null?void 0:pe[c==null?void 0:c.type]}),o.jsx(bn,{value:L.billingAddressTwo||"",onChange:se=>ge("billingAddressTwo",se.target.value),className:"my-2",readOnly:S}),o.jsx("label",{htmlFor:"",children:(ue=v==null?void 0:v.postalcodeLabel)==null?void 0:ue[c==null?void 0:c.type]}),o.jsx(bn,{value:L.billingZipcode||"",onChange:se=>ge("billingZipcode",se.target.value),className:"my-2",readOnly:S}),!Te(L.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:(le=v==null?void 0:v.helperText)==null?void 0:le[c==null?void 0:c.type]})})]})]})}),f&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(Ni,{...t})]})]})]});return o.jsxs(o.Fragment,{children:[_===!0&&o.jsx(Wi,{visibilty:_,closeSettingFieldSidebar:Y,...t}),o.jsx("div",{dir:l?"ltr":"rtl",className:fe(),children:s===a&&f===!0?o.jsx(ui,{headerTemplate:g,toggleable:!0,children:ye}):ye})]})},ESe=t=>{var x;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}=on(),{isPreview:A,isAdvanceView:w}=Qt(),E=(C,S)=>{s(C,S)};return o.jsxs("div",{className:"p-2 py-4",children:[n&&((x=a.children)==null?void 0:x.length)>0&&a.children.map((C,S)=>{const _=C[`${n.rowIndex}-${n.columnIndex}`];return _?o.jsx("div",{children:o.jsx(tu,{type:"grid",showFieldIcons:!1,onChange:E,data:_,field:_,path:`${i}-${n.rowIndex}-${n.columnIndex}-${S}`,sectionIndex:l,page:c,column:d,row:u,section:f,pageIndex:h,rowIndex:g,columnIndex:v,fieldIndex:S,fieldContainer:"grid-container"})},`${n.rowIndex}-${n.columnIndex}-${S}`):null}),n&&A===!1&&o.jsx("div",{className:"py-5",children:o.jsx(Fr,{isAdvanceView:w,fieldDropArea:!0,data:{path:`${i}-${n.rowIndex}-${r}`,childrenCount:1,droppedField:e},onDrop:m})})]})},pj=t=>{var V,U,O,q,ie,ge,Z;const{field:e,column:n,section:r,row:i,rowIndex:a,columnIndex:s,sectionIndex:l,isPreview:c,userSelectedLanguage:u,fieldIndex:d,customColumnHeaderTemplate:f,onSetValuetoPostData:h,setAllFields:g,allFields:v,actionHeaderTemplate:m,actionBodyTemplate:A,isFocus:w,inputValue:E,handleFieldSettingsSidebar:x,isAdmin:C,emitSocketData:S,isRenderView:_}=t,[I,F]=P.useState(!1),M=()=>{F(!0)},L=()=>{F(!1)};return o.jsxs("div",{onMouseOver:M,onMouseOut:L,children:[!_&&!c&&I&&o.jsx(Xr,{handleFieldSettingsSidebar:x,...t}),o.jsxs("div",{className:`field ${c?" ":" builder-element-wrapper "}${(e==null?void 0:e.isFluid)===!0?" card py-3 px-4 ":"card py-3 px-4"}`,children:[o.jsx("div",{className:"grid",children:o.jsxs("div",{className:"col-12 ",children:[(e==null?void 0:e.showHeaderText)&&o.jsx("h6",{children:(V=e==null?void 0:e.headerText)==null?void 0:V[u==null?void 0:u.type]}),(e==null?void 0:e.showLabel)&&o.jsxs("label",{htmlFor:d,className:"flex font-medium mb-3 text-700 text-2xl",children:[o.jsx(da,{...t}),((U=e==null?void 0:e.attributes)==null?void 0:U.required)&&o.jsx("span",{className:"must-required mr-1",children:"*"})," ",c?o.jsx(o.Fragment,{children:(O=e==null?void 0:e.label)==null?void 0:O[u==null?void 0:u.type]}):o.jsx(sa,{...t}),o.jsx("span",{className:"ml-3",children:(e==null?void 0:e.showToolTip)&&o.jsx(Mi,{message:(q=e==null?void 0:e.toolTip)==null?void 0:q[u==null?void 0:u.type],position:"right"})})]}),o.jsxs("div",{className:"mt-3",children:[o.jsxs(Ks,{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((Q,ce)=>o.jsx(dr,{style:{minWidth:350},header:f(Q,ce),body:(K,he)=>o.jsx(ESe,{customColumn:Q,section:r,column:n,columnIndex:s,row:i,rowIndex:a,sectionIndex:l,e:K,indexes:he,customColumnIndex:ce,onSetValuetoPostData:h,setAllFields:g,allFields:v,emitSocketData:S,field:e,...t})},Q==null?void 0:Q.uuid)),!c&&o.jsx(dr,{frozen:!0,header:Q=>m(Q),body:(Q,ce)=>A(Q,ce),headerStyle:{textAlign:"left"},bodyStyle:{textAlign:"left",overflow:"visible"}})]}),o.jsx("div",{children:((ie=e==null?void 0:e.attributes)==null?void 0:ie.required)&&o.jsx("small",{className:"error",children:w===1&&!E?(ge=e==null?void 0:e.validationMesssage)==null?void 0:ge.english:""})}),o.jsx("div",{children:(e==null?void 0:e.showHelperText)&&o.jsx("small",{children:(Z=e==null?void 0:e.helperText)==null?void 0:Z[u==null?void 0:u.type]})})]})]})}),C&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(Ni,{...t})]})]})]})},gj=t=>{var Ae;const{globalAlignment:e}=Qt(),n=ne=>{const $=ne.collapsed?"pi pi-chevron-down":"pi pi-chevron-up",re=`${ne.className} justify-content-start`,W=`${ne.titleClassName} pl-1`;return o.jsxs("div",{className:re,children:[o.jsxs("button",{className:ne.togglerClassName,onClick:ne.onTogglerClick,children:[o.jsx("span",{className:$}),o.jsx(tn,{})]}),o.jsx("span",{className:W,children:S})]})},{userTaskSubmitFormData:r,TASK_PUBLISHED:i,task_status:a}=yr(),{userSelectedLanguage:s,fieldSettingUpdate:l}=on(),{isPreview:c,field:u,fieldIndex:d,sectionIndex:f,pageIndex:h,row:g,rowIndex:v,columnIndex:m,isAdmin:A}=t,[w,E]=P.useState(!1),[x,C]=P.useState(""),[S]=P.useState((Ae=u==null?void 0:u.label)==null?void 0:Ae[s==null?void 0:s.type]),[_,I]=P.useState(0),[F,M]=P.useState(!1),[L,V]=P.useState(null),[U,O]=P.useState([]),q=()=>{var ne,$,re;if(g!=null&&g.rowIsRepeatable){if(g!=null&&g.repeatableFields){const W=[...g.repeatableFields],de=It.findIndex(W,function(Ie){return Ie.uuid===(u==null?void 0:u.uuid)});de>=0&&W[de].fieldData?C(W[de].fieldData):C("")}}else{const W=r;if(W!=null&&W.length){for(const de of W)if(de.fieldId===t.field.uuid&&((ne=de==null?void 0:de.postData[0])==null?void 0:ne.postValue)!==""&&(($=de==null?void 0:de.postData[0])!=null&&$.postValue)){C((re=de==null?void 0:de.postData[0])==null?void 0:re.postValue);break}}}M(!0)},ie=()=>{const ne=u;ne.customColumnsForOptions=[...ne.customColumnsForOptions,{customKey:"Column",uuid:et()}],ye(ne)},[ge,Z]=P.useState(!1),Q=(ne,$)=>{var re;return o.jsxs(o.Fragment,{children:[((re=u==null?void 0:u.options)==null?void 0:re.length)>1&&o.jsx(Ft,{text:!0,type:"button",className:"p-button-danger left-space ",icon:"pi pi-trash",onClick:()=>he(ne==null?void 0:ne.uuid,$==null?void 0:$.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"})]})},ce=(ne,$)=>{var re;return o.jsxs(o.Fragment,{children:[ne==null?void 0:ne.customKey,c===!1&&o.jsxs(o.Fragment,{children:[((re=u==null?void 0:u.customColumnsForOptions)==null?void 0:re.length)>1&&o.jsx("i",{className:"pi pi-trash ml-3",onClick:()=>ee(ne==null?void 0:ne.uuid,$)}),o.jsx("i",{className:"pi pi-cog ml-3",onClick:()=>{V(ne),Z(!0)}})]})]})},K=()=>o.jsx(o.Fragment,{children:o.jsx(Ft,{text:!0,icon:"pi pi-plus",onClick:()=>ie(),rounded:!0,severity:"secondary","aria-label":"Cancel"})}),he=(ne,$)=>{var Ee,ve;const re=(Ee=u==null?void 0:u.customColumnsForOptions)==null?void 0:Ee.length,W=[...(u==null?void 0:u.children)||[]];(ve=u==null?void 0:u.children)==null||ve.map(me=>{for(let Se=0;Se<re;Se++)if(me[`${$}-${Se}`]!==void 0){const De=It.findIndex(W,function(j){return j[`${$}-${Se}`]!==void 0});W.splice(De,1)}});for(let me=0;me<(W==null?void 0:W.length);me++){const Se=W[me],j=Object.keys(Se)[0].split("-");parseInt(j[0])>$&&(W[me]={[`${parseInt(j[0])-1}-${j[1]}`]:W[me][`${parseInt(j[0])}-${j[1]}`]})}const de=u==null?void 0:u.options.filter(function(me){return(me==null?void 0:me.uuid)!==ne}),Ie={...u,children:[...W]};Ie.options=de,ye(Ie)},ee=(ne,$)=>{var ve,me;const re=It.findIndex(u==null?void 0:u.customColumnsForOptions,Se=>Se.uuid===ne),W=u==null?void 0:u.customColumnsForOptions.filter(function(Se,De){return De!==re}),de=(ve=u==null?void 0:u.options)==null?void 0:ve.length,Ie=[...(u==null?void 0:u.children)||[]];(me=u==null?void 0:u.children)==null||me.map(Se=>{for(let De=0;De<de;De++)if(Se[`${De}-${$}`]!==void 0){const j=It.findIndex(Ie,function(oe){return oe[`${De}-${$}`]!==void 0});Ie.splice(j,1)}});for(let Se=0;Se<(Ie==null?void 0:Ie.length);Se++){const De=Ie[Se],oe=Object.keys(De)[0].split("-");parseInt(oe[1])>$&&(Ie[Se]={[`${parseInt(oe[0])}-${parseInt(oe[1])-1}`]:Ie[Se][`${parseInt(oe[0])}-${oe[1]}`]})}const Ee={...u,children:[...Ie]};Ee.customColumnsForOptions=W,ye(Ee)};P.useEffect(()=>{F||q();const ne=Zt.addListener("clearRepeatableFields",de=>{de===(g==null?void 0:g.uuid)&&(C(""),I(0),u.isValid=0,l(h,f,v,m,d,u))}),$=Zt.addListener("onSubmitUserForm",()=>{var de;(de=u==null?void 0:u.attributes)!=null&&de.required&&(u.isValid=1)}),re=Zt.addListener("OnInvalidFieldCatch",de=>{u.uuid===(de==null?void 0:de.fieldId)?I(1):I(0)}),W=Zt.addListener("OnGetFieldValue",de=>{var Ee;const Ie=(Ee=de==null?void 0:de.repeatableColumn)==null?void 0:Ee.filter(ve=>(ve==null?void 0:ve.fieldUuid)===(u==null?void 0:u.uuid));Ie!=null&&Ie.length});return()=>{$.remove(),re.remove(),W.remove(),ne.remove()}});const te=ne=>{E(ne)},Y=()=>{E(!1)},R=(ne,$)=>{var W;const re=r;if((re==null?void 0:re.length)>0)for(const de of re)de.fieldId===t.field.uuid&&(de.postData[0]={postValue:{...(W=de.postData[0])==null?void 0:W.postValue,[ne]:$}})},fe=()=>{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:et(),custom_values:{}}],ye(ne)},Te=(ne,$)=>{V(Ie=>Ie===null?{customKey:$,uuid:""}:{...Ie,customKey:$});const re=u.customColumnsForOptions,W=re.findIndex(Ie=>Ie.uuid===ne.uuid);re[W]={...re[W],customKey:$};const de=u;de.customColumnsForOptions=re,ye(de)},ye=ne=>{l(h,f,v,m,d,ne)};return o.jsxs(o.Fragment,{children:[o.jsx(Fs,{maximizable:!0,header:"Update column title",visible:ge,style:{width:"20vw"},footer:()=>o.jsx(Ft,{text:!0,label:"Save",onClick:()=>Z(!1)}),onHide:()=>Z(!1),children:o.jsx("div",{className:"p-fluid",children:o.jsx(bn,{value:(L==null?void 0:L.customKey)||"",onChange:ne=>Te(L,ne.target.value)})})}),w&&o.jsx(Wi,{visibilty:w,closeSettingFieldSidebar:Y,...t}),o.jsx("div",{dir:e,className:fe(),children:a===i&&A===!0?o.jsx(ui,{headerTemplate:n,toggleable:!0,children:o.jsx(pj,{...t,field:u,isPreview:c,userSelectedLanguage:s,fieldIndex:d,pageIndex:h,columnIndex:m,customColumnHeaderTemplate:ce,onSetValuetoPostData:R,setAllFields:ne=>O(ne),allFields:U,actionHeaderTemplate:K,actionBodyTemplate:Q,addOption:be,isFocus:_,inputValue:x,handleFieldSettingsSidebar:te,isAdmin:A})}):o.jsx(pj,{...t,field:u,isPreview:c,userSelectedLanguage:s,fieldIndex:d,pageIndex:h,columnIndex:m,customColumnHeaderTemplate:ce,onSetValuetoPostData:R,setAllFields:ne=>O(ne),allFields:U,actionHeaderTemplate:K,actionBodyTemplate:Q,addOption:be,isFocus:_,inputValue:x,handleFieldSettingsSidebar:te,isAdmin:A})})]})},ISe=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(ya,{value:a[`${n==null?void 0:n.rowIndex}-${r}`],options:e.options,onChange:l=>s(l.value),optionLabel:"label",placeholder:"Select"})})},mj=t=>{var C,S,_,I,F,M,L;const{field:e,isPreview:n,userSelectedLanguage:r,fieldIndex:i,customColumnHeaderTemplate:a,customColumnRowBodyTemplate:s,setAllFields:l,allFields:c,actionHeaderTemplate:u,actionBodyTemplate:d,isFocus:f,inputValue:h,handleFieldSettingsSidebar:g,isAdmin:v,isRenderView:m}=t,[A,w]=P.useState(!1),E=()=>{w(!0)},x=()=>{w(!1)};return o.jsxs("div",{onMouseOver:E,onMouseOut:x,children:[!m&&!n&&A&&o.jsx(Xr,{handleFieldSettingsSidebar:g,...t}),o.jsxs("div",{className:`field ${n?" ":" builder-element-wrapper "}${(e==null?void 0:e.isFluid)===!0?" card py-3 px-4 p-fluid":"card py-3 px-4"}`,children:[o.jsx("div",{className:"grid",children:o.jsxs("div",{className:n?"col-12 ":"col-11 p-fluid",children:[(e==null?void 0:e.showHeaderText)&&o.jsx("h6",{children:(C=e==null?void 0:e.headerText)==null?void 0:C[r==null?void 0:r.type]}),(e==null?void 0:e.showLabel)&&o.jsxs("label",{htmlFor:i,className:"flex font-medium mb-3 text-700 text-2xl",children:[o.jsx(da,{...t}),((S=e==null?void 0:e.attributes)==null?void 0:S.required)&&o.jsx("span",{className:"must-required",children:"*"})," ",n?o.jsx(o.Fragment,{children:(_=e==null?void 0:e.label)==null?void 0:_[r==null?void 0:r.type]}):o.jsx(sa,{...t}),o.jsx("span",{className:"ml-3",children:(e==null?void 0:e.showToolTip)&&o.jsx(Mi,{message:(I=e==null?void 0:e.toolTip)==null?void 0:I[r==null?void 0:r.type],position:"right"})})]}),o.jsxs("div",{className:"mt-3",children:[o.jsxs(Ks,{showGridlines:!0,value:e==null?void 0:e.rows,children:[o.jsx(dr,{frozen:!0,header:"",headerStyle:{textAlign:"left"},bodyStyle:{textAlign:"left",overflow:"visible"},body:V=>s(V)}),e==null?void 0:e.customColumns.map((V,U)=>o.jsx(dr,{header:a(V),headerStyle:{textAlign:"left"},bodyStyle:{textAlign:"left",overflow:"visible"},body:(O,q)=>o.jsx(ISe,{customColumn:V,e:O,indexes:q,customColumnIndex:U,setAllFields:l,allFields:c,...t})},V==null?void 0:V.uuid)),n===!1&&o.jsx(dr,{frozen:!0,header:V=>u(V),body:V=>d(V),headerStyle:{textAlign:"left"},bodyStyle:{textAlign:"left",overflow:"visible"}})]}),o.jsx("div",{children:((F=e==null?void 0:e.attributes)==null?void 0:F.required)&&o.jsx("small",{className:"error",children:f===1&&!h?(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:(L=e==null?void 0:e.helperText)==null?void 0:L[r==null?void 0:r.type]})})]})]})}),v&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(Ni,{...t})]})]})]})},_Se=(t,e)=>{var Se,De;const n=j=>{const oe=j.collapsed?"pi pi-chevron-down":"pi pi-chevron-up",pe=`${j.className} justify-content-start`,ue=`${j.titleClassName} pl-1`;return o.jsxs("div",{className:pe,children:[o.jsxs("button",{className:j.togglerClassName,onClick:j.onTogglerClick,children:[o.jsx("span",{className:oe}),o.jsx(tn,{})]}),o.jsx("span",{className:ue,children:_})]})},{userTaskSubmitFormData:r,TASK_PUBLISHED:i,task_status:a}=yr(),{globalAlignment:s,isPreview:l,isAdmin:c}=Qt(),{userSelectedLanguage:u,fieldSettingUpdate:d}=on(),{field:f,fieldIndex:h,sectionIndex:g,pageIndex:v,row:m,rowIndex:A,columnIndex:w}=t,[E,x]=P.useState(!1),[C,S]=P.useState(""),[_]=P.useState((Se=f==null?void 0:f.label)==null?void 0:Se[u==null?void 0:u.type]),[I,F]=P.useState(0),[M,L]=P.useState(!1),[V,U]=P.useState(null),[O,q]=P.useState(null),[ie,ge]=P.useState({}),Z=()=>{var j,oe,pe;if(m!=null&&m.rowIsRepeatable){if(m!=null&&m.repeatableFields){const ue=[...m.repeatableFields],le=It.findIndex(ue,function(se){return se.uuid===(f==null?void 0:f.uuid)});le>=0&&ue[le].fieldData?S(ue[le].fieldData):S("")}}else{const ue=r;if(ue!=null&&ue.length){for(const le of ue)if(le.fieldId===t.field.uuid&&((j=le==null?void 0:le.postData[0])==null?void 0:j.postValue)!==""&&((oe=le==null?void 0:le.postData[0])!=null&&oe.postValue)){S((pe=le==null?void 0:le.postData[0])==null?void 0:pe.postValue);break}}}L(!0)},Q=()=>{const j=f;j.customColumns=[...j.customColumns,{customKey:"Column",uuid:et(),options:[]}],de(j)},[ce,K]=P.useState(!1),[he,ee]=P.useState(!1),te=j=>{var oe;return o.jsxs(o.Fragment,{children:[((oe=f==null?void 0:f.rows)==null?void 0:oe.length)>1&&o.jsx(Ft,{text:!0,type:"button",icon:"pi pi-trash",rounded:!0,severity:"secondary",onClick:()=>be(j==null?void 0:j.uuid),"aria-label":"Add Row"}),o.jsx(Ft,{text:!0,type:"button",icon:"pi pi-plus",rounded:!0,severity:"secondary",onClick:()=>$(),"aria-label":"Add Row"})]})},Y=j=>{var oe;return o.jsxs(o.Fragment,{children:[j==null?void 0:j.customKey,l===!1&&o.jsxs(o.Fragment,{children:[((oe=f==null?void 0:f.customColumns)==null?void 0:oe.length)>1&&o.jsx("i",{className:"pi pi-trash ml-3",onClick:()=>Te(j==null?void 0:j.uuid)}),o.jsx("i",{className:"pi pi-cog ml-3",onClick:()=>{U(j),K(!0)}})]})]})},R=()=>o.jsx(o.Fragment,{children:o.jsx(Ft,{text:!0,type:"button",icon:"pi pi-plus",rounded:!0,severity:"secondary",onClick:()=>Q(),"aria-label":"Add Column"})}),fe=j=>o.jsxs(o.Fragment,{children:[j==null?void 0:j.rowHeading,l===!1&&o.jsx(o.Fragment,{children:o.jsx("i",{className:"pi pi-cog ml-3",onClick:()=>{q(j),ee(!0)}})})]}),be=j=>{const oe=f==null?void 0:f.rows.filter(function(ue){return(ue==null?void 0:ue.uuid)!==j}),pe=f;pe.rows=oe,de(pe)},Te=j=>{const oe=It.findIndex(f==null?void 0:f.customColumns,le=>le.uuid===j),pe=f==null?void 0:f.customColumns.filter(function(le,se){return se!==oe}),ue=f;ue.customColumns=pe,de(ue)};P.useEffect(()=>{M||Z();const j=Zt.addListener("clearRepeatableFields",ue=>{ue===(m==null?void 0:m.uuid)&&(S(""),F(0),f.isValid=0,d(v,g,A,w,h,f))}),oe=Zt.addListener("OnInvalidFieldCatch",ue=>{f.uuid===(ue==null?void 0:ue.fieldId)?F(1):F(0)}),pe=Zt.addListener("OnGetFieldValue",ue=>{var se;const le=(se=ue==null?void 0:ue.repeatableColumn)==null?void 0:se.filter(Oe=>(Oe==null?void 0:Oe.fieldUuid)===(f==null?void 0:f.uuid));le!=null&&le.length});return()=>{oe.remove(),pe.remove(),j.remove()}});const ye=j=>{x(j)},Ae=()=>{x(!1)},ne=()=>{let j="";return l||(j=j+" field-form-builder"),a===i&&c===!0&&(j=j+" card"),j},$=()=>{const j=f;j.rows=[...j.rows,{rowHeading:"Row",uuid:et(),custom_values:{}}],de(j)},re=(j,oe)=>{U(se=>se===null?{customKey:oe,uuid:""}:{...se,customKey:oe});const pe=f.customColumns,ue=pe.findIndex(se=>se.uuid===j.uuid);pe[ue]={...pe[ue],customKey:oe};const le=f;le.customColumns=pe,de(le)},W=(j,oe)=>{q(se=>se===null?{uuid:"",rowHeading:oe}:{...se,rowHeading:oe});const pe=f.rows,ue=pe.findIndex(se=>se.uuid===j.uuid);pe[ue]={...pe[ue],rowHeading:oe};const le=f;le.rows=pe,de(le)},de=j=>{d(v,g,A,w,h,j)};function Ie(j){return j.toLowerCase().replace(/ /g,"-").replace(/[^\w-]+/g,"")}const Ee=(j,oe,pe)=>{const ue=f.customColumns,le=ue.findIndex(Oe=>V&&Oe.uuid===V.uuid);ue[le].options[pe][oe]=j,ue[le].options[pe].value=Ie(j);const se=f;se.customColumns=ue,de(se)},ve=()=>{const j=f.customColumns,oe=j.findIndex(ue=>V&&ue.uuid===V.uuid);j[oe].options.push({label:"",value:"",uuid:et()});const pe=f;pe.customColumns=j,de(pe)},me=j=>{const oe=f.customColumns,pe=oe.findIndex(le=>V&&le.uuid===V.uuid);if(pe===-1){console.error("Custom column not found");return}oe[pe].options=oe[pe].options.filter(le=>le.uuid!==j);const ue=f;ue.customColumns=oe,de(ue)};return o.jsxs(o.Fragment,{children:[o.jsxs(Fs,{maximizable:!0,header:"Update column title",visible:ce,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(bn,{value:(V==null?void 0:V.customKey)||"",onChange:j=>re(V,j.target.value)})}),o.jsx("hr",{}),o.jsx("h5",{children:"Options"}),(V==null?void 0:V.options)&&((De=V==null?void 0:V.options)==null?void 0:De.length)>0&&(V==null?void 0:V.options.map((j,oe)=>o.jsxs("div",{className:"my-2 flex p-fluid",children:[o.jsx("span",{children:oe+1}),o.jsx(bn,{value:(j==null?void 0:j.label)||"",className:"ml-2",onChange:pe=>Ee(pe.target.value,"label",oe)}),o.jsx(Ft,{text:!0,type:"button",icon:"pi pi-trash",rounded:!0,severity:"secondary",onClick:()=>me(j.uuid),"aria-label":"Add Column Option"})]},`custom_column_option_${oe}`)))]}),o.jsx(Fs,{maximizable:!0,header:"Update Row Title",visible:he,style:{width:"20vw"},footer:()=>o.jsx(Ft,{text:!0,label:"Save",onClick:()=>ee(!1)}),onHide:()=>ee(!1),children:o.jsx("div",{className:"p-fluid",children:o.jsx(bn,{value:(O==null?void 0:O.rowHeading)||"",onChange:j=>W(O,j.target.value)})})}),o.jsx(Wi,{visibilty:E,closeSettingFieldSidebar:Ae,...t}),o.jsx("div",{dir:s,className:ne(),children:a===i&&c===!0?o.jsx(ui,{headerTemplate:n,toggleable:!0,children:o.jsx(mj,{ref:e,...t,field:f,isPreview:l,userSelectedLanguage:u,fieldIndex:h,customColumnHeaderTemplate:Y,customColumnRowBodyTemplate:fe,setAllFields:ge,allFields:ie,actionHeaderTemplate:R,actionBodyTemplate:te,isFocus:I,inputValue:C,handleFieldSettingsSidebar:ye,isAdmin:c})}):o.jsx(mj,{ref:e,...t,field:f,isPreview:l,userSelectedLanguage:u,fieldIndex:h,customColumnHeaderTemplate:Y,customColumnRowBodyTemplate:fe,setAllFields:ge,allFields:ie,actionHeaderTemplate:R,actionBodyTemplate:te,isFocus:I,inputValue:C,handleFieldSettingsSidebar:ye,isAdmin:c})})]})},DSe=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(bn,{value:i[`${e==null?void 0:e.rowIndex}-${n}`]||"",onChange:s=>a(s.target.value)})})},vj=t=>{var g,v,m,A,w,E,x;const{field:e,isPreview:n,userSelectedLanguage:r,fieldIndex:i,customColumnHeaderTemplate:a,setAllFields:s,allFields:l,actionHeaderTemplate:c,actionBodyTemplate:u,isFocus:d,inputValue:f,isAdmin:h}=t;return o.jsxs("div",{className:`field ${n?" ":" builder-element-wrapper "}${(e==null?void 0:e.isFluid)===!0?" card p-fluid py-6 px-4":"card py-3 px-4"}`,children:[" ",o.jsx("div",{className:"grid",children:o.jsxs("div",{className:"col-12 p-fluid",children:[(e==null?void 0:e.showHeaderText)&&o.jsx("h6",{children:(g=e==null?void 0:e.headerText)==null?void 0:g[r==null?void 0:r.type]}),(e==null?void 0:e.showLabel)&&o.jsxs("label",{htmlFor:i,className:"flex font-medium mb-3 text-700 text-2xl",children:[o.jsx(da,{...t}),((v=e==null?void 0:e.attributes)==null?void 0:v.required)&&o.jsx("span",{className:"must-required",children:"*"})," ",n?o.jsx(o.Fragment,{children:(m=e==null?void 0:e.label)==null?void 0:m[r==null?void 0:r.type]}):o.jsx(sa,{path:"",...t}),o.jsx("span",{className:"ml-3",children:(e==null?void 0:e.showToolTip)&&o.jsx(Mi,{message:(A=e==null?void 0:e.toolTip)==null?void 0:A[r==null?void 0:r.type],position:"right"})})]}),o.jsxs("div",{className:"mt-3",style:{backgroundColor:"#0a061a"},children:[o.jsxs(Ks,{scrollable:!0,showGridlines:!0,value:e==null?void 0:e.rows,children:[e==null?void 0:e.customColumns.map((C,S)=>o.jsx(dr,{header:a(C),headerStyle:{textAlign:"left"},bodyStyle:{textAlign:"left",overflow:"visible"},body:(_,I)=>o.jsx(DSe,{customColumn:C,e:_,indexes:I,customColumnIndex:S,setAllFields:s,allFields:l,...t})},C==null?void 0:C.uuid)),n===!1&&o.jsx(dr,{frozen:!0,header:C=>c(C),body:C=>u(C),headerStyle:{textAlign:"left"},bodyStyle:{textAlign:"left",overflow:"visible"}})]}),o.jsx("div",{children:((w=e==null?void 0:e.attributes)==null?void 0:w.required)&&o.jsx("small",{className:"error",children:d===1&&!f?(E=e==null?void 0:e.validationMesssage)==null?void 0:E.english:""})}),o.jsx("div",{children:(e==null?void 0:e.showHelperText)&&o.jsx("small",{children:(x=e==null?void 0:e.helperText)==null?void 0:x[r==null?void 0:r.type]})})]})]})}),h&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(Ni,{...t})]})]})},NSe=({showAddNewRow:t,setShowAddNewRow:e,customRowEditModalData:n,onHandleChangeCustomRowSetting:r})=>{const[i,a]=P.useState((n==null?void 0:n.rowHeading)||"");return o.jsx(Fs,{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(bn,{value:i||"",onChange:s=>a(s.target.value)})})})},OSe=({showAddNewColumn:t,setShowAddNewColumn:e,customColumnEditModalData:n,onHandleChangeCustomColumnSetting:r})=>{const i=d4({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(Fs,{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(bn,{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]})})})},FSe=t=>{var Ee;const e=ve=>{const me=ve.collapsed?"pi pi-chevron-down":"pi pi-chevron-up",Se=`${ve.className} justify-content-start`,De=`${ve.titleClassName} pl-1`;return o.jsxs("div",{className:Se,children:[o.jsxs("button",{className:ve.togglerClassName,onClick:ve.onTogglerClick,children:[o.jsx("span",{className:me}),o.jsx(tn,{})]}),o.jsx("span",{className:De,children:S})]})},{TASK_PUBLISHED:n,task_status:r}=yr(),{userSelectedLanguage:i,fieldSettingUpdate:a}=on(),{globalAlignment:s,isPreview:l,isAdmin:c,isRenderView:u}=Qt(),{field:d,fieldIndex:f,sectionIndex:h,pageIndex:g,row:v,rowIndex:m,columnIndex:A}=t,[w,E]=P.useState(!1),[x,C]=P.useState(""),[S]=P.useState((Ee=d==null?void 0:d.label)==null?void 0:Ee[i==null?void 0:i.type]),[_,I]=P.useState(0),[F,M]=P.useState(null),[L,V]=P.useState(null),[U,O]=P.useState((d==null?void 0:d.allFields)||{}),[q,ie]=P.useState(!1),ge=()=>{const ve=d;ve.customColumns=[...ve.customColumns,{customKey:"Column",uuid:et(),options:[]}],W(ve)},[Z,Q]=P.useState(!1),[ce,K]=P.useState(!1),he=P.useCallback(It.debounce(ve=>{const me=d;me.allFields={...ve},W(me)},1e3),[]);P.useEffect(()=>{he(U)},[U,he]);const ee=ve=>{var me;return o.jsxs(o.Fragment,{children:[((me=d==null?void 0:d.options)==null?void 0:me.length)>1&&o.jsx(Ft,{text:!0,type:"button",icon:"pi pi-trash",rounded:!0,severity:"secondary",onClick:()=>fe(ve==null?void 0:ve.uuid),"aria-label":"Add Row",size:"small"}),o.jsx(Ft,{text:!0,type:"button",icon:"pi pi-plus",rounded:!0,severity:"secondary",onClick:()=>ne(),"aria-label":"Add Row",size:"small"})]})},te=ve=>{var me;return o.jsxs(o.Fragment,{children:[ve==null?void 0:ve.customKey,l===!1&&o.jsxs(o.Fragment,{children:[((me=d==null?void 0:d.customColumns)==null?void 0:me.length)>1&&o.jsx("i",{className:"pi pi-trash ml-3",onClick:()=>be(ve==null?void 0:ve.uuid)}),o.jsx("i",{className:"pi pi-cog ml-3",onClick:()=>{M(ve),Q(!0)}})]})]})},Y=()=>o.jsx(o.Fragment,{children:o.jsx(Ft,{text:!0,type:"button",icon:"pi pi-plus",rounded:!0,severity:"secondary",onClick:()=>ge(),"aria-label":"Add Column"})}),R=ve=>o.jsxs(o.Fragment,{children:[ve==null?void 0:ve.rowHeading,l===!1&&o.jsx(o.Fragment,{children:o.jsx("i",{className:"pi pi-cog ml-3",onClick:()=>{V(ve),K(!0)}})})]}),fe=ve=>{const me=d==null?void 0:d.rows.filter(function(De){return(De==null?void 0:De.uuid)!==ve}),Se=d;Se.rows=me,W(Se)},be=ve=>{const me=It.findIndex(d==null?void 0:d.customColumns,j=>j.uuid===ve),Se=d==null?void 0:d.customColumns.filter(function(j,oe){return oe!==me}),De=d;De.customColumns=Se,W(De)},Te=ve=>{E(ve)},ye=()=>{E(!1)},Ae=()=>{let ve="";return l||(ve=ve+" field-form-builder"),r===n&&c===!0&&(ve=ve+" card"),ve},ne=()=>{const ve=d;ve.rows=[...ve.rows,{rowHeading:"Row",uuid:et(),custom_values:{}}],W(ve)},$=(ve,me)=>{M(oe=>oe===null?{customKey:me,uuid:""}:{...oe,customKey:me});const Se=d.customColumns,De=Se.findIndex(oe=>oe.uuid===ve.uuid);Se[De]={...Se[De],customKey:me};const j=d;j.customColumns=Se,W(j)},re=(ve,me)=>{V(oe=>oe===null?{uuid:"",rowHeading:me}:{...oe,rowHeading:me});const Se=d.rows,De=Se.findIndex(oe=>oe.uuid===ve.uuid);Se[De]={...Se[De],rowHeading:me};const j=d;j.rows=Se,W(j)},W=ve=>{a(g,h,m,A,f,ve)},de=()=>{ie(!0)},Ie=()=>{ie(!1)};return o.jsxs(o.Fragment,{children:[o.jsx(Fs,{maximizable:!0,header:"Update column title",visible:Z,style:{width:"20vw"},footer:()=>o.jsx(o.Fragment,{children:o.jsx(Ft,{text:!0,label:"Save",onClick:()=>Q(!1)})}),onHide:()=>Q(!1),children:o.jsx("div",{className:"p-fluid",children:o.jsx(bn,{value:(F==null?void 0:F.customKey)||"",onChange:ve=>$(F,ve.target.value)})})}),ce&&o.jsx(NSe,{showAddNewRow:ce,setShowAddNewRow:K,customRowEditModalData:L,onHandleChangeCustomRowSetting:re}),Z&&o.jsx(OSe,{showAddNewColumn:Z,setShowAddNewColumn:Q,customColumnEditModalData:F,onHandleChangeCustomColumnSetting:$}),o.jsx(Wi,{visibilty:w,closeSettingFieldSidebar:ye,...t}),o.jsx("div",{className:"field-form-builder",children:o.jsxs("div",{onMouseOver:de,onMouseOut:Ie,children:[!u&&!l&&q&&o.jsx(Xr,{handleFieldSettingsSidebar:Te,...t}),o.jsx("div",{dir:s,className:Ae(),children:r===n&&c===!0?o.jsx(ui,{headerTemplate:e,toggleable:!0,children:o.jsx(vj,{...t,field:d,isPreview:l,userSelectedLanguage:i,fieldIndex:f,customColumnHeaderTemplate:te,customColumnRowBodyTemplate:R,setAllFields:O,allFields:U,actionHeaderTemplate:Y,actionBodyTemplate:ee,isFocus:_,inputValue:x,handleFieldSettingsSidebar:Te,isAdmin:c})}):o.jsx(vj,{isAdmin:!1,...t,field:d,isPreview:l,userSelectedLanguage:i,fieldIndex:f,customColumnHeaderTemplate:te,customColumnRowBodyTemplate:R,setAllFields:O,allFields:U,actionHeaderTemplate:Y,actionBodyTemplate:ee,isFocus:_,inputValue:x,handleFieldSettingsSidebar:Te})})]})})]})},kSe=t=>{var ne,$,re,W,de,Ie,Ee,ve,me,Se,De;const{taskRegisterData:e,updateTaskRegisterData:n,updateTaskProgressValue:r,userTaskSubmitFormData:i,updateUserFormDataSubmit:a}=yr(),[s,l]=P.useState([]),{field:c,fieldIndex:u,row:d,pageIndex:f,sectionIndex:h,section:g,page:v,rowIndex:m,columnIndex:A,path:w,update:E,value:x,isDisabled:C}=t,{isRenderView:S,isAdmin:_,isPreview:I}=Qt(),{userSelectedLanguage:F}=on(),[M,L]=P.useState(!1),[V,U]=P.useState(""),[O,q]=P.useState(0),[ie,ge]=P.useState(!1),[Z,Q]=P.useState(!1),ce=()=>{Q(!0)},K=()=>{Q(!1)},he=j=>{L(j)},ee=()=>{L(!1)};P.useEffect(()=>((c==null?void 0:c.dataSourceType)==="custom"&&l(c==null?void 0:c.options),c==null||c.dataSourceType,()=>{}));const te=()=>{var oe,pe,ue,le;let j=null;if(d!=null&&d.rowIsRepeatable){if(d!=null&&d.repeatableFields){const se=[...d.repeatableFields],Oe=It.findIndex(se,function(Ne){return Ne.uuid===(c==null?void 0:c.uuid)});Oe>=0&&se[Oe].fieldData?(j=se[Oe].fieldData,U(se[Oe].fieldData)):(c.isValid=0,U(""))}}else{const se=i,Oe=It.cloneDeep(e);if(se!=null&&se.length){for(const Ne of se)if(Ne.fieldId===t.field.uuid&&((oe=Ne==null?void 0:Ne.postData)!=null&&oe.length)){j=(pe=Ne==null?void 0:Ne.postData[0])==null?void 0:pe.postValue,U((ue=Ne==null?void 0:Ne.postData[0])==null?void 0:ue.postValue),Oe[c==null?void 0:c.uuid]=(le=Ne==null?void 0:Ne.postData[0])==null?void 0:le.postValue;const Ke=Object.keys(Oe).length;r(Ke);break}}}U(j),setTimeout(()=>{ge(!0)},2e3)};P.useEffect(()=>{!ie&&(i==null?void 0:i.length)>0&&te();const j=Zt.addListener("clearRepeatableFields",ue=>{ue===(d==null?void 0:d.uuid)&&(U(""),q(0),c.isValid=1)}),oe=Zt.addListener("onSubmitUserForm",()=>{var ue;(ue=c==null?void 0:c.attributes)!=null&&ue.required?V?c.isValid=1:c.isValid=0:c.isValid=1}),pe=Zt.addListener("OnInvalidFieldCatch",ue=>{c.uuid===(ue==null?void 0:ue.fieldId)?q(1):q(0)});return()=>{oe.remove(),pe.remove(),j.remove()}});const Y=(j,oe)=>{var pe;if(i){const ue=[...i],le=It.findIndex(ue,function(Oe){return Oe.rowId===(d==null?void 0:d.uuid)});let se=(pe=i[le])==null?void 0:pe.repeatableFields;se={...se,[j==null?void 0:j.uuid]:oe},ue[le]={...ue[le],repeatableFields:se},a(ue)}U(oe),oe?j.isValid=1:j.isValid=0},R=j=>{var oe;U(j.target.value),d!=null&&d.rowIsRepeatable?Y(c,(oe=j==null?void 0:j.target)==null?void 0:oe.value):ye(j.target.value)},fe=()=>(c==null?void 0:c.dataSourceType)==="custom"?`optionText.${F.type}`:(c==null?void 0:c.dataSourceType)==="database"?`${c==null?void 0:c.optionLabel}`:"",be=()=>(c==null?void 0:c.dataSourceType)==="custom"?`optionText.${F.type}`:(c==null?void 0:c.dataSourceType)==="database"?`${c==null?void 0:c.optionLabel}`:"",Te=()=>{var j,oe,pe;if(((j=c==null?void 0:c.fieldType)==null?void 0:j.type)==="radio"){const ue=[];return s.map((le,se)=>{var Ne,Ke,ut,pt;const Oe=V;ue.push(o.jsxs("div",{className:"field-radiobutton field-radiobutton-builder",onClick:()=>{R({value:le,target:{value:le}})},style:(Oe==null?void 0:Oe.uuid)===(le==null?void 0:le.uuid)?{backgroundColor:"#0F8BFD",padding:15,borderRadius:8}:{padding:15},children:[o.jsx(aa,{onFocus:()=>q(1),inputId:`radio-option-${se}-${le==null?void 0:le.uuid}-${I?"preview":"builder-radio"}`,onChange:ft=>{R(ft)},value:le,name:`radio-option-${se}-${le==null?void 0:le.uuid}-${I?"preview":"builder"}`,checked:(Oe==null?void 0:Oe.uuid)===(le==null?void 0:le.uuid),disabled:C}),((Ne=le==null?void 0:le.hyperlinkText)==null?void 0:Ne[F==null?void 0:F.type])===""?o.jsx("label",{htmlFor:`radio-option-${se}-${le==null?void 0:le.uuid}-${I?"preview":"builder"}`,children:(Ke=le==null?void 0:le.optionText)==null?void 0:Ke[F==null?void 0:F.type]}):o.jsx("label",{children:o.jsx("a",{href:(ut=le==null?void 0:le.hyperlinkText)==null?void 0:ut[F==null?void 0:F.type],target:"_blank",rel:"noreferrer",children:(pt=le==null?void 0:le.optionText)==null?void 0:pt[F==null?void 0:F.type]})})]},se))}),ue}if(((oe=c==null?void 0:c.fieldType)==null?void 0:oe.type)==="dropdown")return o.jsx(ya,{onFocus:()=>q(1),onChange:ue=>{d!=null&&d.rowIsRepeatable?Y(c,ue.target.value):ye(ue.target.value)},options:s,optionLabel:be(),optionValue:fe(),value:V,placeholder:(pe=c==null?void 0:c.placeholder)==null?void 0:pe[F==null?void 0:F.type],disabled:C})},ye=j=>{var ue,le;U(j.target.value);const oe=i,pe=It.cloneDeep(e);if(oe!==null){if((ue=j==null?void 0:j.target)!=null&&ue.value){if(pe[c==null?void 0:c.uuid]=(le=j==null?void 0:j.target)==null?void 0:le.value,(oe==null?void 0:oe.length)>0)for(const se of oe)se.fieldId===t.field.uuid&&(se.postData[0]={postValue:j.target.value})}else if(delete pe[c==null?void 0:c.uuid],(oe==null?void 0:oe.length)>0)for(const se of oe)se.fieldId===t.field.uuid&&(se.postData[0]={postValue:""})}if(!(d!=null&&d.rowIsRepeatable)){n(pe);const se=Object.keys(pe).length;r(se)}},Ae=o.jsxs("div",{onMouseOver:ce,onMouseOut:K,children:[!S&&!I&&Z&&o.jsx(Xr,{handleFieldSettingsSidebar:he,...t}),o.jsx("div",{className:`field-${(c==null?void 0:c.isFluid)===!0?" card py-3 px-4 p-fluid":"card py-3 px-4"}`,children:o.jsxs("div",{className:"grid",children:[o.jsxs("div",{className:"col-12",children:[(c==null?void 0:c.showHeaderText)&&o.jsx("h6",{children:(ne=c==null?void 0:c.headerText)==null?void 0:ne[F==null?void 0:F.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(da,{sectionIndex:h,fieldIndex:u,field:c,update:E,value:x}),(($=c==null?void 0:c.attributes)==null?void 0:$.required)&&o.jsx("span",{className:"must-required mr-1",children:"*"})," ",I?o.jsx(o.Fragment,{children:(re=c==null?void 0:c.label)==null?void 0:re[F==null?void 0:F.type]}):o.jsx(sa,{...t}),o.jsx("span",{className:"ml-3",children:c!=null&&c.showToolTip?o.jsx(o.Fragment,{children:o.jsx(Mi,{message:(W=c==null?void 0:c.toolTip)==null?void 0:W[F==null?void 0:F.type],position:"right"})}):""})]}),Te(),o.jsx("div",{children:((de=c==null?void 0:c.attributes)==null?void 0:de.required)&&o.jsx("small",{className:"error",children:O===1&&!V?(Ie=c==null?void 0:c.validationMesssage)==null?void 0:Ie.language:""})}),o.jsx("div",{children:(c==null?void 0:c.showHelperText)&&o.jsx("small",{children:(Ee=c==null?void 0:c.helperText)==null?void 0:Ee[F==null?void 0:F.type]})}),((ve=c==null?void 0:c.inlineConditionalRules)==null?void 0:ve.rules.length)>0&&I===!1&&o.jsx("p",{children:"Inline conditional rules"}),ie===!0&&((Se=(me=c==null?void 0:c.inlineConditionalRules)==null?void 0:me.rules)==null?void 0:Se.length)>0&&((De=c==null?void 0:c.inlineConditionalRules)==null?void 0:De.rules.map((j,oe)=>{const pe=V;return I===!0?o.jsx("div",{children:j==null?void 0:j.conditions.map((ue,le)=>o.jsx(P.Fragment,{children:o.jsx(d0,{isConditionTrue:(pe==null?void 0:pe.value)==ue.value||!I,inputValue:V,condition:ue,ruleIndex:oe,conditionIndex:le,field:c,section:g,page:v,row:d,pageIndex:f,sectionIndex:h,rowIndex:m,columnIndex:A,path:w,...t})},`select-rule-${oe}-`+le))},`rule-${oe}`):o.jsx(ui,{className:"mt-4",header:`Rule ${oe+1}`,children:o.jsx("div",{children:j==null?void 0:j.conditions.map((ue,le)=>o.jsx(P.Fragment,{children:o.jsx(d0,{isConditionTrue:(pe==null?void 0:pe.value)===ue.value||!I,inputValue:V,condition:ue,ruleIndex:oe,conditionIndex:le,isPreview:I,field:c,section:g,page:v,row:d,pageIndex:f,sectionIndex:h,rowIndex:m,columnIndex:A,path:w,...t})},`select-rule-${oe}-`+le))},`rule-${oe}`)},oe)}))]}),_&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(Ni,{...t})]})]})})]});return o.jsxs(o.Fragment,{children:[M===!0&&o.jsx(Wi,{visibilty:M,closeSettingFieldSidebar:ee,...t},c==null?void 0:c.uuid),o.jsx(Si,{...t,fieldWrap:Ae})]})},PSe=t=>{var ie,ge,Z,Q;const{taskRegisterData:e,updateTaskRegisterData:n,updateTaskProgressValue:r,userTaskSubmitFormData:i}=yr(),{field:a,row:s,isDisabled:l}=t,{isPreview:c,isRenderView:u,isAdmin:d}=Qt(),{userSelectedLanguage:f}=on(),[h,g]=P.useState(!1),[v,m]=P.useState(""),[A,w]=P.useState(0),[E,x]=P.useState(!1),[C,S]=P.useState(!1),_=()=>{S(!0)},I=()=>{S(!1)},F=ce=>{g(ce)},M=()=>{g(!1)},L=()=>{var K,he,ee,te;let ce=null;if(s!=null&&s.rowIsRepeatable){if(s!=null&&s.repeatableFields){const Y=[...s.repeatableFields],R=It.findIndex(Y,function(fe){return fe.uuid===(a==null?void 0:a.uuid)});R>=0&&Y[R].fieldData?(ce=Y[R].fieldData,m(Y[R].fieldData)):(a.isValid=0,m(""))}}else{const Y=i,R=It.cloneDeep(e);if(Y!=null&&Y.length){for(const fe of Y)if(fe.fieldId===t.field.uuid&&((K=fe==null?void 0:fe.postData)!=null&&K.length)){ce=(he=fe==null?void 0:fe.postData[0])==null?void 0:he.postValue,m((ee=fe==null?void 0:fe.postData[0])==null?void 0:ee.postValue),R[a==null?void 0:a.uuid]=(te=fe==null?void 0:fe.postData[0])==null?void 0:te.postValue;const be=Object.keys(R).length;r(be);break}}}m(ce),setTimeout(()=>{x(!0)},2e3)};P.useEffect(()=>{E||L();const ce=Zt.addListener("clearRepeatableFields",ee=>{ee===(s==null?void 0:s.uuid)&&(m(""),w(0),a.isValid=1)}),K=Zt.addListener("onSubmitUserForm",()=>{var ee;if((ee=a==null?void 0:a.attributes)!=null&&ee.required){const te=v;te!=null&&te[a.uuid]?a.isValid=1:a.isValid=0}else a.isValid=1}),he=Zt.addListener("OnInvalidFieldCatch",ee=>{a.uuid===(ee==null?void 0:ee.fieldId)?w(1):w(0)});return()=>{K.remove(),he.remove(),ce.remove()}});const V=(ce,K,he,ee,te)=>ee==null?void 0:ee.map(Y=>{var R,fe;return{...Y,children:Y!=null&&Y.children&&((R=Y==null?void 0:Y.children)==null?void 0:R.length)>0?[...((fe=Y==null?void 0:Y.children)==null?void 0:fe.map(be=>K===(Y==null?void 0:Y.uuid)||te===!0?(he!=null&&he[be==null?void 0:be.uuid]&&delete he[be==null?void 0:be.uuid],{...be,options:V(ce,K,he,(be==null?void 0:be.options)||[],!0)}):{...be,options:V(ce,K,he,(be==null?void 0:be.options)||[],!1)}))||[]]:[]}}),U=(ce,K)=>{const he={...v};V(ce,K,he,a==null?void 0:a.options,!1),he[ce]=K,m(he),s!=null&&s.rowIsRepeatable||O(he)},O=ce=>{const K=i,he=It.cloneDeep(e);if(K!==null){if(ce){if(he[a==null?void 0:a.uuid]=ce,(K==null?void 0:K.length)>0)for(const ee of K)ee.fieldId===t.field.uuid&&(ee.postData[0]={postValue:ce})}else if(delete he[a==null?void 0:a.uuid],(K==null?void 0:K.length)>0)for(const ee of K)ee.fieldId===t.field.uuid&&(ee.postData[0]={postValue:""})}if(!(s!=null&&s.rowIsRepeatable)){n(he);const ee=Object.keys(he).length;r(ee)}},q=o.jsxs("div",{onMouseOver:_,onMouseOut:I,children:[!u&&!c&&C&&o.jsx(Xr,{handleFieldSettingsSidebar:F,...t}),o.jsx("div",{className:`field-${(a==null?void 0:a.isFluid)===!0?" card py-3 px-4 p-fluid":"card py-3 px-4"}`,children:o.jsxs("div",{className:"grid",children:[o.jsxs("div",{className:"col-12",children:[(a==null?void 0:a.showHeaderText)&&o.jsx("h6",{children:(ie=a==null?void 0:a.headerText)==null?void 0:ie[f==null?void 0:f.type]}),o.jsx(vb,{...t,isDisabled:l,isFirst:!0,isPreview:c,schema:a,field:a,value:v,update:(ce,K)=>{U(ce,K)}}),o.jsx("div",{children:((ge=a==null?void 0:a.attributes)==null?void 0:ge.required)&&o.jsx("small",{className:"error",children:A===1&&!v?(Z=a==null?void 0:a.validationMesssage)==null?void 0:Z.english:""})}),o.jsx("div",{children:(a==null?void 0:a.showHelperText)&&o.jsx("small",{children:(Q=a==null?void 0:a.helperText)==null?void 0:Q[f==null?void 0:f.type]})})]}),d&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(Ni,{...t})]})]})})]});return o.jsxs(o.Fragment,{children:[o.jsx(Wi,{visibilty:h,closeSettingFieldSidebar:M,...t},a==null?void 0:a.uuid),o.jsx(Si,{...t,fieldWrap:q})]})},MSe=t=>{var R,fe,be,Te,ye,Ae,ne,$,re,W;const{field:e,fieldIndex:n,sectionIndex:r,pageIndex:i,row:a,rowIndex:s,columnIndex:l,isDisabled:c}=t,{isRenderView:u,isAdmin:d,isPreview:f}=Qt(),{taskRegisterData:h,updateTaskRegisterData:g,updateTaskProgressValue:v,updateUserFormDataSubmit:m,userTaskSubmitFormData:A,task_status:w,TASK_PUBLISHED:E}=yr(),[x,C]=P.useState(!1),{userSelectedLanguage:S,fieldSettingUpdate:_}=on(),[I,F]=P.useState(!1),[M,L]=P.useState(0),[V,U]=P.useState(),[O,q]=P.useState(!1),ie=()=>{q(!0)},ge=()=>{q(!1)},Z=[{icon:"pi pi-thumbs-up",thumbValue:"up"},{icon:"pi pi-thumbs-down",thumbValue:"down"}],Q=de=>o.jsx("span",{className:"m-2",children:o.jsx("i",{style:{fontSize:30},className:de.icon})}),ce=()=>{var de,Ie,Ee;if(a!=null&&a.rowIsRepeatable){if(a!=null&&a.repeatableFields){const ve=[...a.repeatableFields],me=It.findIndex(ve,function(Se){return Se.uuid===(e==null?void 0:e.uuid)});me>=0&&ve[me].fieldData?U(ve[me].fieldData):U("")}}else{const ve=A;if(ve!=null&&ve.length){for(const me of ve)if(me.fieldId===t.field.uuid&&((de=me==null?void 0:me.postData[0])==null?void 0:de.postValue)!==""&&((Ie=me==null?void 0:me.postData[0])!=null&&Ie.postValue)){U((Ee=me==null?void 0:me.postData[0])==null?void 0:Ee.postValue);break}}}F(!0)};P.useEffect(()=>{I||ce();const de=Zt.addListener("clearRepeatableFields",me=>{me===(a==null?void 0:a.uuid)&&(U(""),L(0),e.isValid=0,_(i,r,s,l,n,e))}),Ie=Zt.addListener("onSubmitUserForm",()=>{var me;(me=e==null?void 0:e.attributes)!=null&&me.required?V?e.isValid=1:e.isValid=0:e.isValid=1}),Ee=Zt.addListener("OnInvalidFieldCatch",me=>{e.uuid===(me==null?void 0:me.fieldId)?L(1):L(0)}),ve=Zt.addListener("OnGetFieldValue",me=>{var De;const Se=(De=me==null?void 0:me.repeatableColumn)==null?void 0:De.filter((j,oe)=>(j==null?void 0:j.fieldUuid)===(e==null?void 0:e.uuid));Se!=null&&Se.length});return()=>{Ie.remove(),Ee.remove(),ve.remove(),de.remove()}});const K=de=>{U(de.value);const Ie=A,Ee=It.cloneDeep(h);if(Ie!==null){if(de!=null&&de.value){if(Ee[e==null?void 0:e.uuid]=de==null?void 0:de.value,(Ie==null?void 0:Ie.length)>0)for(const ve of Ie)ve.fieldId===t.field.uuid&&(ve.postData[0]={postValue:de.value})}else if(delete Ee[e==null?void 0:e.uuid],(Ie==null?void 0:Ie.length)>0)for(const ve of Ie)ve.fieldId===t.field.uuid&&(ve.postData[0]={postValue:""})}if(!(a!=null&&a.rowIsRepeatable)){g(Ee);const ve=Object.keys(Ee).length;v(ve)}},he=(de,Ie)=>{var Ee;if(A){const ve=[...A],me=It.findIndex(ve,function(De){return De.rowId===(a==null?void 0:a.uuid)});let Se=(Ee=A[me])==null?void 0:Ee.repeatableFields;Se={...Se,[de==null?void 0:de.uuid]:Ie},ve[me]={...ve[me],repeatableFields:Se},m(ve)}U(Ie),Ie!==""?de.isValid=1:de.isValid=0},ee=de=>{C(de)},te=()=>{C(!1)},Y=o.jsxs("div",{onMouseOver:ie,onMouseOut:ge,children:[!u&&!f&&O&&o.jsx(Xr,{handleFieldSettingsSidebar:ee,...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:(R=e==null?void 0:e.headerText)==null?void 0:R[S==null?void 0:S.type]}),(e==null?void 0:e.showLabel)&&o.jsxs("label",{htmlFor:n,className:"flex font-medium mb-3 text-700 text-2xl",children:[o.jsx(da,{...t}),((fe=e==null?void 0:e.attributes)==null?void 0:fe.required)&&o.jsx("span",{className:"must-required mr-1",children:"*"})," ",f?o.jsx(o.Fragment,{children:(be=e==null?void 0:e.label)==null?void 0:be[S==null?void 0:S.type]}):o.jsx(sa,{...t}),o.jsx("span",{className:"ml-3",children:(e==null?void 0:e.showToolTip)&&o.jsx(Mi,{message:(Te=e==null?void 0:e.toolTip)==null?void 0:Te[S==null?void 0:S.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-"+((Ae=(ye=e==null?void 0:e.icon)==null?void 0:ye.properties)==null?void 0:Ae.name)}),o.jsx("div",{className:"card flex justify-content-start",children:o.jsx(a1,{value:V,onChange:de=>{U(de.value),a!=null&&a.rowIsRepeatable?he(e,de.value):K(de)},itemTemplate:Q,optionLabel:"value",onFocus:()=>L(1),options:Z,readOnly:c,className:M===1&&((ne=e==null?void 0:e.attributes)!=null&&ne.required)?V?"valid":"invalid":"valid'"})})]}),o.jsx("div",{children:(($=e==null?void 0:e.attributes)==null?void 0:$.required)&&o.jsx(o.Fragment,{children:o.jsx("small",{className:"error",children:M===1&&!V?(re=e==null?void 0:e.validationMesssage)==null?void 0:re.english:""})})}),o.jsx("div",{children:(e==null?void 0:e.showHelperText)&&o.jsx("small",{children:(W=e==null?void 0:e.helperText)==null?void 0:W[S==null?void 0:S.type]})})]}),d&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(Ni,{...t})]})]})})]});return o.jsxs(o.Fragment,{children:[o.jsx(Wi,{visibilty:x,closeSettingFieldSidebar:te,...t}),o.jsx(Si,{...t,fieldWrap:Y})]})},LSe=t=>{var ee,te,Y,R,fe,be,Te;const{taskRegisterData:e,updateTaskRegisterData:n,updateTaskProgressValue:r,updateUserFormDataSubmit:i,userTaskSubmitFormData:a}=yr(),{userSelectedLanguage:s,fieldSettingUpdate:l}=on(),{field:c,fieldIndex:u,sectionIndex:d,pageIndex:f,row:h,rowIndex:g,columnIndex:v}=t,{isRenderView:m,isAdmin:A,isPreview:w}=Qt(),[E,x]=P.useState(!1),[C,S]=P.useState(""),[_,I]=P.useState(0),[F,M]=P.useState(!1),[L,V]=P.useState(!1),U=()=>{V(!0)},O=()=>{V(!1)},q=()=>{var ye,Ae,ne;if(h!=null&&h.rowIsRepeatable){if(h!=null&&h.repeatableFields){const $=[...h.repeatableFields],re=It.findIndex($,function(W){return W.uuid===(c==null?void 0:c.uuid)});re>=0&&$[re].fieldData?S($[re].fieldData):S("")}}else{const $=a;if($!=null&&$.length){for(const re of $)if(re.fieldId===t.field.uuid&&((ye=re==null?void 0:re.postData[0])==null?void 0:ye.postValue)!==""&&((Ae=re==null?void 0:re.postData[0])!=null&&Ae.postValue)){S((ne=re==null?void 0:re.postData[0])==null?void 0:ne.postValue);break}}}M(!0)};P.useEffect(()=>{F||q();const ye=Zt.addListener("clearRepeatableFields",re=>{re===(h==null?void 0:h.uuid)&&(S(""),I(0),c.isValid=0,l(f,d,g,v,u,c))}),Ae=Zt.addListener("onSubmitUserForm",()=>{var re;(re=c==null?void 0:c.attributes)!=null&&re.required?C?c.isValid=1:c.isValid=0:c.isValid=1}),ne=Zt.addListener("OnInvalidFieldCatch",re=>{c.uuid===(re==null?void 0:re.fieldId)?I(1):I(0)}),$=Zt.addListener("OnGetFieldValue",re=>{var de;const W=(de=re==null?void 0:re.repeatableColumn)==null?void 0:de.filter(Ie=>(Ie==null?void 0:Ie.fieldUuid)===(c==null?void 0:c.uuid));W!=null&&W.length});return()=>{Ae.remove(),ne.remove(),$.remove(),ye.remove()}});const ie=ye=>{x(ye)},ge=()=>{x(!1)},Z=ye=>{var $,re;S(ye.target.value);const Ae=a,ne=It.cloneDeep(e);if(Ae!==null){if(($=ye==null?void 0:ye.target)!=null&&$.value){if(ne[c==null?void 0:c.uuid]=(re=ye==null?void 0:ye.target)==null?void 0:re.value,(Ae==null?void 0:Ae.length)>0)for(const W of Ae)W.fieldId===t.field.uuid&&(W.postData[0]={postValue:ye.target.value})}else if(delete ne[c==null?void 0:c.uuid],(Ae==null?void 0:Ae.length)>0)for(const W of Ae)W.fieldId===t.field.uuid&&(W.postData[0]={postValue:""})}if(!(h!=null&&h.rowIsRepeatable)){n(ne);const W=Object.keys(ne).length;r(W)}},Q=(ye,Ae,ne,$)=>{var re;if(a){const W=[...a],de=It.findIndex(W,function(Ee){return Ee.rowId===(h==null?void 0:h.uuid)});let Ie=(re=a[de])==null?void 0:re.repeatableFields;Ie={...Ie,[ne==null?void 0:ne.uuid]:$},W[de]={...W[de],repeatableFields:Ie},i(W)}S($),$!==""?ne.isValid=1:ne.isValid=0},ce=5,K=()=>{const ye=[],Ae=[JE,QE,ZE,GE,WE],ne=["Awful","Not Very Good","Okay","Really Good","Fantastic"];for(let $=0;$<ce;$++)ye.push(o.jsxs("label",{children:[o.jsx("input",{onChange:re=>{h!=null&&h.rowIsRepeatable?Q(f,d,c,re.target.value):Z(re)},checked:parseInt(C)===$,name:"liker-Emoji-scale"+(c==null?void 0:c.uuid),type:"radio",value:$}),o.jsxs("span",{className:"grid m-0",children:[o.jsx("div",{className:"col-12 flex justify-content-center",children:o.jsx("img",{src:Ae[$]})}),o.jsx("div",{children:ne[$]})]})]},`field-${c==null?void 0:c.uuid}-likertEmojiScale-${$} ${parseInt(C)===$?"scale-selected":""}`));return ye},he=o.jsxs("div",{onMouseOver:U,onMouseOut:O,children:[!m&&!w&&L&&o.jsx(Xr,{handleFieldSettingsSidebar:ie,...t}),o.jsxs("div",{className:`field ${w?" ":" builder-element-wrapper "}${(c==null?void 0:c.isFluid)===!0?" card py-3 px-4 p-fluid":"card py-3 px-4"}`,children:[o.jsx("div",{className:"grid",children:o.jsxs("div",{className:"col-12 ",children:[(c==null?void 0:c.showHeaderText)&&o.jsx("h6",{children:(ee=c==null?void 0:c.headerText)==null?void 0:ee[s==null?void 0:s.type]}),(c==null?void 0:c.showLabel)&&o.jsxs("label",{htmlFor:`label${u}`,className:"flex font-medium mb-3 text-700 text-2xl",children:[o.jsx(da,{...t}),((te=c==null?void 0:c.attributes)==null?void 0:te.required)&&o.jsx("span",{className:"must-required mr-1",children:"*"})," ",w?o.jsx(o.Fragment,{children:(Y=c==null?void 0:c.label)==null?void 0:Y[s==null?void 0:s.type]}):o.jsx(sa,{...t}),o.jsx("span",{className:"ml-3",children:(c==null?void 0:c.showToolTip)&&o.jsx(Mi,{message:(R=c==null?void 0:c.toolTip)==null?void 0:R[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:K()})}),o.jsx("div",{children:((fe=c==null?void 0:c.attributes)==null?void 0:fe.required)&&o.jsx("small",{className:"error",children:_===1&&!C?(be=c==null?void 0:c.validationMesssage)==null?void 0:be.english:""})}),o.jsx("div",{children:(c==null?void 0:c.showHelperText)&&o.jsx("small",{children:(Te=c==null?void 0:c.helperText)==null?void 0:Te[s==null?void 0:s.type]})})]})]})}),A&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(Ni,{...t})]})]})]});return o.jsxs(o.Fragment,{children:[o.jsx(Wi,{visibilty:E,closeSettingFieldSidebar:ge,...t}),o.jsx(Si,{...t,fieldWrap:he})]})},BSe=t=>{var q,ie,ge,Z,Q,ce,K,he,ee,te,Y;const{userTaskSubmitFormData:e}=yr(),{userSelectedLanguage:n,fieldSettingUpdate:r}=on(),{isPreview:i,isAdmin:a,isRenderView:s}=Qt(),{field:l,fieldIndex:c,sectionIndex:u,pageIndex:d,row:f,rowIndex:h,columnIndex:g}=t,[v,m]=P.useState(!1),[A,w]=P.useState(""),[E,x]=P.useState(0),[C,S]=P.useState(!1),[_,I]=P.useState(!1),F=()=>{I(!0)},M=()=>{I(!1)},L=()=>{var R,fe,be;if(f!=null&&f.rowIsRepeatable){if(f!=null&&f.repeatableFields){const Te=[...f.repeatableFields],ye=It.findIndex(Te,function(Ae){return Ae.uuid===(l==null?void 0:l.uuid)});ye>=0&&Te[ye].fieldData?w(Te[ye].fieldData):w("")}}else{const Te=e;if(Te!=null&&Te.length){for(const ye of Te)if(ye.fieldId===t.field.uuid&&((R=ye==null?void 0:ye.postData[0])==null?void 0:R.postValue)!==""&&((fe=ye==null?void 0:ye.postData[0])!=null&&fe.postValue)){w((be=ye==null?void 0:ye.postData[0])==null?void 0:be.postValue);break}}}S(!0)};P.useEffect(()=>{C||L();const R=Zt.addListener("clearRepeatableFields",ye=>{ye===(f==null?void 0:f.uuid)&&(w(""),x(0),l.isValid=0,r(d,u,h,g,c,l))}),fe=Zt.addListener("onSubmitUserForm",()=>{var ye,Ae;(ye=l==null?void 0:l.attributes)!=null&&ye.required?A&&(A==null?void 0:A.length)<((Ae=l==null?void 0:l.attributes)==null?void 0:Ae.minLength)?l.isValid=1:l.isValid=0:l.isValid=1}),be=Zt.addListener("OnInvalidFieldCatch",ye=>{l.uuid===(ye==null?void 0:ye.fieldId)?x(1):x(0)}),Te=Zt.addListener("OnGetFieldValue",ye=>{var ne;const Ae=(ne=ye==null?void 0:ye.repeatableColumn)==null?void 0:ne.filter($=>($==null?void 0:$.fieldUuid)===(l==null?void 0:l.uuid));Ae!=null&&Ae.length});return()=>{fe.remove(),be.remove(),Te.remove(),R.remove()}});const V=R=>{m(R)},U=()=>{m(!1)},O=o.jsxs("div",{onMouseOver:F,onMouseOut:M,children:[!s&&!i&&_&&o.jsx(Xr,{handleFieldSettingsSidebar:V,...t}),o.jsxs("div",{className:`field ${i?" ":" builder-element-wrapper "}${(l==null?void 0:l.isFluid)===!0?" card p-fluid ":"card"} ${s?" ":" py-6 px-4 "}`,children:[o.jsx("div",{className:"grid",children:o.jsxs("div",{className:a?"col-6 ":"col-12 p-fluid",children:[(l==null?void 0:l.showHeaderText)&&o.jsx("h6",{children:(q=l==null?void 0:l.headerText)==null?void 0:q[n==null?void 0:n.type]}),(l==null?void 0:l.showLabel)&&o.jsxs("label",{htmlFor:c,className:"flex font-medium mb-3 text-700 text-2xl",children:[o.jsx(da,{...t}),((ie=l==null?void 0:l.attributes)==null?void 0:ie.required)&&o.jsx("span",{className:"must-required mr-1",children:"*"})," ",i?o.jsx(o.Fragment,{children:(ge=l==null?void 0:l.label)==null?void 0:ge[n==null?void 0:n.type]}):o.jsx(sa,{...t}),(l==null?void 0:l.showToolTip)&&o.jsx("span",{className:"ml-3",children:o.jsx(Mi,{message:(Z=l==null?void 0:l.toolTip)==null?void 0:Z[n==null?void 0:n.type],position:"right"})})]}),o.jsxs("div",{className:"mt-3",children:[o.jsx("span",{className:"p-input-icon-"+(l==null?void 0:l.iconAlignment),children:(l==null?void 0:l.showIcon)&&o.jsx("i",{className:"pi pi-"+((ce=(Q=l==null?void 0:l.icon)==null?void 0:Q.properties)==null?void 0:ce.name)})}),o.jsx("div",{children:((K=l==null?void 0:l.attributes)==null?void 0:K.required)&&o.jsxs(o.Fragment,{children:[o.jsx("small",{className:"error",children:E===1&&!A?(he=l==null?void 0:l.validationMesssage)==null?void 0:he.english:""}),o.jsx("small",{className:"error",children:E===1&&(A==null?void 0:A.length)<((ee=l==null?void 0:l.attributes)==null?void 0:ee.minLength)?`Mini length ${(te=l==null?void 0:l.attributes)==null?void 0:te.minLength}`:""})]})}),o.jsx("div",{children:(l==null?void 0:l.showHelperText)&&o.jsx("small",{children:(Y=l==null?void 0:l.helperText)==null?void 0:Y[n==null?void 0:n.type]})})]})]})}),a&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(Ni,{...t})]})]})]});return o.jsxs(o.Fragment,{children:[o.jsx(Wi,{visibilty:v,closeSettingFieldSidebar:U,...t}),o.jsx(Si,{...t,fieldWrap:O})]})},VSe=t=>{var U,O,q,ie,ge,Z,Q;const{field:e,fieldIndex:n,columnIndex:r,sectionIndex:i,rowIndex:a,pageIndex:s,ref:l}=t,{isPreview:c}=Qt(),{userSelectedLanguage:u,fieldSettingUpdate:d}=on(),{userTaskSubmitFormData:f}=yr(),[h,g]=P.useState(!1),[v,m]=P.useState(""),[A,w]=P.useState(0),[E,x]=P.useState(!1),[C,S]=P.useState(!1),_=()=>{S(!0)},I=()=>{S(!1)},F=()=>{var K;const ce=f;if(ce.length){for(const he of ce)if(he.fieldId===t.field.uuid){m((K=he==null?void 0:he.postData[0])==null?void 0:K.postValue),x(!0);break}}};P.useEffect(()=>{E||F();const ce=Zt.addListener("onSubmitUserForm",()=>{var he;(he=e==null?void 0:e.attributes)!=null&&he.required&&(v?e.isValid=1:e.isValid=0,d(s,i,a,r,n,e))}),K=Zt.addListener("OnInvalidFieldCatch",he=>{e.uuid===(he==null?void 0:he.fieldId)?w(1):w(0)});return()=>{ce.remove(),K.remove()}});const M=ce=>{g(ce)},L=()=>{g(!1)},V=o.jsxs("div",{onMouseOver:_,onMouseOut:I,children:[!c&&C&&o.jsx(Xr,{handleFieldSettingsSidebar:M,...t}),o.jsx("div",{className:c?"":"field-form-builder",ref:l,children:o.jsx("div",{className:"field",children:o.jsx("div",{className:"grid",children:o.jsxs("div",{className:c?"col-12":"col-11",children:[(e==null?void 0:e.showHeaderText)&&o.jsx("h6",{children:(U=e==null?void 0:e.headerText)==null?void 0:U[u==null?void 0:u.type]}),(e==null?void 0:e.showLabel)&&o.jsxs("label",{htmlFor:`${n}`,className:"flex font-medium mb-3 text-700 text-2xl",children:[((O=e==null?void 0:e.attributes)==null?void 0:O.required)&&o.jsx("span",{className:"must-required",children:"*"})," ",i+1,".",r+1,".",n+1," ",(q=e==null?void 0:e.label)==null?void 0:q[u==null?void 0:u.type],o.jsx("span",{className:"ml-3",children:(e==null?void 0:e.showToolTip)&&o.jsx(Mi,{message:(ie=e==null?void 0:e.toolTip)==null?void 0:ie[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:((ge=e==null?void 0:e.attributes)==null?void 0:ge.required)&&o.jsx("small",{className:"error",children:A===1&&!v?(Z=e==null?void 0:e.validationMesssage)==null?void 0:Z.language:""})}),o.jsx("div",{children:(e==null?void 0:e.showHelperText)&&o.jsx("small",{children:(Q=e==null?void 0:e.helperText)==null?void 0:Q[u==null?void 0:u.type]})})]})]})})})})]});return o.jsxs(o.Fragment,{children:[h===!0&&o.jsx(Wi,{visibilty:h,closeSettingFieldSidebar:L,...t}),o.jsx(Si,{...t,fieldWrap:V})]})},tu=t=>{const{data:e,path:n,field:r}=t,{renderType:i,isPreview:a,isAdmin:s}=Qt(),{task_status:l,TASK_PUBLISHED:c}=yr(),u=P.useRef(null),[d,f]=P.useState(!1),[{isDragging:h},g]=ia({item:{...e,type:gf,uuid:e==null?void 0:e.uuid,path:n},type:gf,collect:C=>({isDragging:C.isDragging()})}),v=h?.25:1;g(u);const m=l===c||s,A=C=>{switch(r==null?void 0:r.componentType){case"text":return o.jsx(Mle,{typeName:"Text",field:r,...C});case"number":return o.jsx(qle,{typeName:"Number",field:r,...C});case"email":return o.jsx($le,{typeName:"Email",field:r,...C});case"textarea":return o.jsx(jle,{typeName:"Text Area",field:r,...C});case"editor":return o.jsx(oce,{typeName:"Editor",field:r,...C});case"question":return o.jsx(Vce,{typeName:"Exam",field:r,...C});case"select":return o.jsx(Gle,{typeName:"Select",field:r,...C});case"multi-select":return o.jsx(Cce,{typeName:"Multi Select",field:r,...C});case"checkbox":return o.jsx(Tce,{typeName:"Checkbox",field:r,...C});case"radio":return o.jsx(Ice,{typeName:"Radio",field:r,...C});case"radio-hierarchal":return o.jsx(PSe,{typeName:"Radio Progressive",field:r,...C});case"href":return o.jsx(Ule,{typeName:"Href",field:r,...C});case"heading":return o.jsx(Oce,{typeName:"Heading",field:r,...C});case"paragraph":return o.jsx(Qve,{typeName:"Paragraph",field:r,...C});case"image":return o.jsx(ik,{typeName:"Image",field:r,...C});case"video":return o.jsx(J3e,{typeName:"Video",field:r,...C});case"hr":return o.jsx(Z3e,{typeName:"Hr",field:r,...C});case"date-picker":return o.jsx(e4e,{typeName:"Date Picker",field:r,...C});case"signature":return o.jsx(t4e,{typeName:"Signature",field:r,...C});case"file-upload":return o.jsx(eye,{typeName:"File Upload",field:r,...C});case"facebook-login":return o.jsx(BSe,{typeName:"Facebook Login",field:r,...C});case"anchor":return o.jsx(VSe,{ref:u,typeName:"Anchor Tag",field:r,...C});case"image-gallery":return o.jsx(Rve,{typeName:"Image Gallery",field:r,...C});case"quiz":return o.jsx(rye,{typeName:"Quiz",field:r,...C});case"document":return o.jsx(tye,{typeName:"Document",field:r,...C});case"list":return o.jsx(sye,{typeName:"List",field:r,...C});case"country":return o.jsx(Ple,{typeName:"Country",field:r,...C});case"phone":return o.jsx(gSe,{typeName:"Phone",field:r,...C});case"web-url":return o.jsx(mSe,{typeName:"Website Url",field:r,...C});case"rating":return o.jsx(ASe,{typeName:"Rating",field:r,...C});case"slider":return o.jsx(wSe,{typeName:"Rating",field:r,...C});case"hidden-field":return o.jsx(SSe,{typeName:"Hidden Field",field:r,...C});case"likert-scale":return o.jsx(xSe,{typeName:"Likert Scale Field",field:r,...C});case"type-signature":return o.jsx(CSe,{typeName:"Likert Scale Field",field:r,...C});case"address":return o.jsx(TSe,{typeName:"Address",field:r,...C});case"grid-component":return o.jsx(gj,{typeName:"Grid",field:r,...C});case"matrix-scale":return o.jsx(gj,{typeName:"Grid",field:r,...C});case"matrix-dropdown":return o.jsx(_Se,{typeName:"Grid",field:r,...C});case"thumbs":return o.jsx(MSe,{typeName:"Thumbs Up and Down",field:r,...C});case"likert-emoji-scale":return o.jsx(LSe,{typeName:"Thumbs Up and Down",field:r,...C});case"table":return o.jsx(FSe,{typeName:"Grid",field:r,...C});case"dynamic-listing":return o.jsx(kSe,{typeName:"Grid",field:r,...C});default:return o.jsx(o.Fragment,{children:"Empty"})}},w=()=>{f(!0)},E=()=>{f(!1)},x=()=>{let C="";return a?(C=C+" component ",i===mf?C=C+" ":C=C+" px-2 "):(C=C+" component draggable field-form-builder-not-preview",i===mf?C=C+" pdf-component":C=C+" px-2 pdf-component"),C};return o.jsx(o.Fragment,{children:o.jsxs("div",{style:{opacity:v},className:x(),onMouseOver:w,onMouseOut:E,children:[!a&&d&&o.jsx("i",{ref:a===!1?u:null,className:"elementDrag-icon pi pi-arrows-alt cursor-move",style:{fontSize:"1em"}}),A({...t,isDisabled:m})]})})},USe={position:"relative"},qSe=t=>{var M,L,V,U,O;const{data:e,path:n,pageIndex:r,sectionIndex:i,rowIndex:a,columnIndex:s,section:l,row:c,page:u}=t,d=P.useRef(null),{removeColumn:f,addColumn:h,cloneColumn:g,formBuilderFormLayout:v,handleDrop:m}=on(),{isPreview:A,isRenderView:w,isAdvanceView:E,emitSocketData:x}=Qt(),[{isDragging:C},S]=ia({type:ws,item:{type:ws,uuid:e==null?void 0:e.uuid,children:e.children,path:n},collect:q=>({isDragging:q.isDragging()})}),_=C&&!w?.25:1;S(d);const I=(q,ie,ge,Z,Q,ce,K)=>o.jsx(tu,{page:u,type:"field",row:c,column:e,section:l,field:q,data:q,path:ie,pageIndex:ge,sectionIndex:Z,rowIndex:Q,columnIndex:ce,fieldIndex:K},`component-${n}-${q==null?void 0:q.uuid}`),F=(q,ie,ge,Z,Q)=>{var ee,te,Y,R;const ce=q.collapsed?"pi pi-chevron-down":"pi pi-chevron-up",K=`${q.className} justify-content-space-between`,he=`${q.titleClassName} pl-1 text-primary`;return o.jsxs(o.Fragment,{children:[o.jsx(sn,{target:".clone-tool"}),o.jsx(sn,{target:".add-column-tool"}),o.jsxs("div",{className:K,children:[o.jsxs("span",{ref:A===!1?d:null,children:[o.jsx("button",{className:q.togglerClassName,children:o.jsx("span",{className:"pi pi-sliders-h dragabble"})}),o.jsxs("button",{className:q.togglerClassName,onClick:q.onTogglerClick,children:[o.jsx("span",{className:ce}),o.jsx(tn,{})]}),o.jsx("span",{className:he,children:"Column"})]}),A===!1&&o.jsxs("div",{className:"p-panel-icons",children:[o.jsx("span",{className:"add-column-tool","data-pr-tooltip":"Add Column",children:o.jsxs("button",{className:q.togglerClassName,onClick:()=>{h(ie,ge,Z),x()},children:[o.jsx("span",{className:"pi pi-plus"}),o.jsx(tn,{})]})}),((R=(Y=(te=(ee=v[ie])==null?void 0:ee.children[ge])==null?void 0:te.children[Z])==null?void 0:Y.children)==null?void 0:R.length)>1&&o.jsxs("button",{className:q.togglerClassName,onClick:()=>{f(ie,ge,Z,Q),x()},children:[o.jsx("span",{className:"pi pi-trash"}),o.jsx(tn,{})]}),o.jsx("span",{className:"clone-tool","data-pr-tooltip":"Clone",children:o.jsxs("button",{className:q.togglerClassName,onClick:()=>{g(e,ie,ge,Z,Q),x()},children:[o.jsx("span",{className:"pi pi-clone"}),o.jsx(tn,{})]})})]})]})]})};return o.jsx("div",{style:E?{...USe,opacity:_}:{},className:w?"form-builder-column container-column":"draggable form-builder-column container-column",children:A===!1?o.jsx(o.Fragment,{children:E===!0?o.jsxs(ui,{className:"builder-row-column",header:"Column",toggleable:!0,headerTemplate:q=>F(q,r,i,a,s),children:[((M=e==null?void 0:e.children)==null?void 0:M.length)>0?(L=e==null?void 0:e.children)==null?void 0:L.map((q,ie)=>{const ge=`${n}-${ie}`;return o.jsxs(P.Fragment,{children:[o.jsx(Fr,{isAdvanceView:E,fieldDropArea:!0,data:{path:ge,childrenCount:e.children.length,droppedField:e},onDrop:m}),I(q,ge,r,i,a,s,ie)]},ge)}):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:`${n}-${e.children.length}`,childrenCount:e.children.length,droppedField:e},onDrop:m,isLast:!0})]}):o.jsx(o.Fragment,{children:o.jsxs("div",{children:[((V=e==null?void 0:e.children)==null?void 0:V.length)>0?(U=e==null?void 0:e.children)==null?void 0:U.map((q,ie)=>{const ge=`${n}-${ie}`;return o.jsxs(P.Fragment,{children:[o.jsx(Fr,{isAdvanceView:E,fieldDropArea:!0,data:{path:ge,childrenCount:e.children.length,droppedField:e},onDrop:m}),I(q,ge,r,i,a,s,ie)]},ge)}):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:`${n}-${e.children.length}`,childrenCount:e.children.length,droppedField:e},onDrop:m,isLast:!0})]})})}):o.jsx(o.Fragment,{children:(O=e==null?void 0:e.children)==null?void 0:O.map((q,ie)=>{const ge=`${n}-${ie}`;return o.jsx(P.Fragment,{children:I(q,ge,r,i,a,s,ie)},ge)})})})},$Se=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(bn,{value:(i=r==null?void 0:r.heading)==null?void 0:i[e==null?void 0:e.type],onChange:l=>n("heading",e,l.target.value)})]}),o.jsxs("div",{className:"field",children:[o.jsx("label",{children:"Row Description"}),o.jsx(ks,{value:(a=r==null?void 0:r.subHeadingText)==null?void 0:a[e==null?void 0:e.type],onChange:l=>n("subHeadingText",e,l.target.value)})]}),(r==null?void 0:r.rowIsRepeatable)===!0&&o.jsxs("div",{className:"field",children:[o.jsx("span",{className:"must-required",children:"*"})," ",o.jsx("label",{children:"Add To List Button Label"}),o.jsx(bn,{value:(s=r.addToListButtonLabel)==null?void 0:s[e==null?void 0:e.type],onChange:l=>n("addToListButtonLabel",e,l.target.value)})]})]})},jSe=t=>{const{stateRow:e,onHandleChangeAdvanceSettings:n}=t,{renderType:r}=Qt();return o.jsxs("div",{className:"p-fluid",children:[r===Q0&&o.jsxs("div",{className:"field-checkbox",children:[o.jsx(Br,{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(Ba,{value:e==null?void 0:e.minimumEntries,onChange:i=>n("minimumEntries",i.value)})]}),o.jsxs("div",{className:"field-checkbox",children:[o.jsx(Br,{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."," "]})]})]})},zSe=t=>{var f,h,g,v;const{onHandleChange:e,stateRow:n,onHandleChangePageMargin:r}=t,i=new fy,[,a]=P.useState("");P.useEffect(()=>{},[]);const[s]=P.useState(null),l=()=>{},c=m=>{e("bgImage",m==null?void 0:m.url)},u=[{icon:"pi pi-image",value:"image"},{icon:"pi pi-palette ",value:"color"},{icon:"pi pi-microsoft ",value:"gradient"}],d=m=>o.jsx("i",{className:m.icon});return o.jsxs("div",{className:"",children:[o.jsxs("div",{className:" field",children:[o.jsxs("div",{className:"grid",children:[o.jsxs("div",{className:"field col-2 md:col-3",children:[o.jsx("label",{children:"Left"}),o.jsx(Ba,{value:(f=n==null?void 0:n.margin)==null?void 0:f.left,onChange:m=>{r("left",m.value)},mode:"decimal",showButtons:!0,min:0,max:100})]}),o.jsxs("div",{className:"field col-2 md:col-3",children:[o.jsx("label",{children:"Right"}),o.jsx(Ba,{value:(h=n==null?void 0:n.margin)==null?void 0:h.right,onChange:m=>{r("right",m.value)},mode:"decimal",showButtons:!0,min:0,max:100})]}),o.jsxs("div",{className:"field col-2 md:col-3",children:[o.jsx("label",{children:"Top"}),o.jsx(Ba,{value:(g=n==null?void 0:n.margin)==null?void 0:g.top,onChange:m=>{r("top",m.value)},mode:"decimal",showButtons:!0,min:0,max:100})]}),o.jsxs("div",{className:"field col-2 md:col-3",children:[o.jsx("label",{children:"Bottom"}),o.jsx(Ba,{value:(v=n==null?void 0:n.margin)==null?void 0:v.bottom,onChange:m=>{r("bottom",m.value)},mode:"decimal",showButtons:!0,min:0,max:100})]})]}),o.jsx("label",{children:"Background Type"}),o.jsx(a1,{value:n==null?void 0:n.bgType,options:u,onChange:m=>e("bgType",m.value),itemTemplate:d,optionLabel:"value"})]}),(n==null?void 0:n.bgType)==="color"&&o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"p-fluid field",children:o.jsx(l0,{value:(n==null?void 0:n.bgColor)||"",onChange:m=>e("bgColor",m.value)})}),o.jsx(l0,{value:(n==null?void 0:n.bgColor)||"",onChange:m=>e("bgColor",m.value),inline:!0})]}),(n==null?void 0:n.bgType)==="image"&&o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:"p-fluid field",children:[o.jsx("span",{className:"must-required",children:"*"}),o.jsx("label",{children:"Background image"}),o.jsx(bn,{value:(n==null?void 0:n.bgImage)||"",onChange:m=>e("bgImage",m.target.value),placeholder:"enter page title",id:"page_title",name:"page_title"})]}),o.jsxs("div",{className:"shadow-2 border-round surface-card p-4",children:[o.jsx("div",{className:"flex align-items-center justify-content-between mb-4",children:o.jsx("span",{className:"text-xl font-medium text-900",children:"Selected files"})}),o.jsx("h5",{children:"Media library"}),o.jsxs("div",{className:"grid",children:[o.jsx("div",{className:"col-8",children:o.jsxs("div",{className:"grid",children:[o.jsx("div",{className:"col-12 mb-5",children:o.jsxs("div",{className:"p-inputgroup",children:[o.jsx(bn,{placeholder:"Keyword",onChange:m=>a(m.target.value)}),o.jsx(Ft,{text:!0,icon:"pi pi-search",className:"p-button-info",onClick:()=>l()})]})}),o.jsx("div",{className:"col-12 mb-5",children:o.jsx("div",{className:"surface-section ",children:o.jsx("div",{className:"grid -mt-3 -ml-3 -mr-3"})})})]})}),o.jsx("div",{className:"col-4 card",children:s!==null&&o.jsxs("div",{className:"surface-card p-4 shadow-2 border-round",children:[o.jsx("img",{style:{height:"150px",width:"150px",objectFit:"contain"},src:s==null?void 0:s.url,className:"w-full mb-3 border-round-2xl",onError:m=>m.target.src="https://www.primefaces.org/wp-content/uploads/2020/05/placeholder.png",alt:"https://www.primefaces.org/wp-content/uploads/2020/05/placeholder.png"}),o.jsxs("ul",{className:"list-none p-0 m-0 border-top-1 surface-border",children:[o.jsxs("li",{className:"flex align-items-center py-1 px-2 flex-wrap surface-ground",children:[o.jsx("div",{className:"text-500 w-full md:w-4 font-medium",children:"Name"}),o.jsx("div",{className:"text-900 w-full md:w-8",children:s==null?void 0:s.name})]}),o.jsxs("li",{className:"flex align-items-center py-1 px-2 flex-wrap",children:[o.jsx("div",{className:"text-500 w-full md:w-4 font-medium",children:"Base URL:"}),o.jsx("div",{className:"text-900 w-full md:w-8 line-height-3",style:{wordWrap:"break-word"},children:o.jsx("a",{href:s==null?void 0:s.url,children:s==null?void 0:s.url})})]}),o.jsxs("li",{className:"flex align-items-center py-1 px-2 flex-wrap surface-ground",children:[o.jsx("div",{className:"text-500 w-full md:w-4 font-medium",children:"Base name:"}),o.jsx("div",{className:"text-900 w-full md:w-8",children:s==null?void 0:s.basename})]}),o.jsxs("li",{className:"flex align-items-center py-1 px-2 flex-wrap",children:[o.jsx("div",{className:"text-500 w-full md:w-4 font-medium",children:"Dir Name:"}),o.jsx("div",{className:"text-900 w-full md:w-8",children:s==null?void 0:s.dirname})]}),o.jsxs("li",{className:"flex align-items-center py-1 px-2 flex-wrap surface-ground",children:[o.jsx("div",{className:"text-500 w-full md:w-4 font-medium",children:"Size:"}),o.jsx("div",{className:"text-900 w-full md:w-8",children:i.formatBytes(s==null?void 0:s.size)})]}),o.jsxs("li",{className:"flex align-items-center py-1 px-2 flex-wrap surface-ground",children:[o.jsx("div",{className:"text-500 w-full md:w-4 font-medium",children:"Creation Date:"}),o.jsx("div",{className:"text-900 w-full md:w-8",children:Fn(s==null?void 0:s.created_at).format("Do MMM YYYY - HH:mm")})]})]}),o.jsx(Ft,{text:!0,className:"mt-3 w-full",label:"Set Image",onClick:()=>c(s),"aria-label":"Update"})]})})]})]})]})]})},HSe=t=>{const{stateRow:e,setStateRow:n}=t,[r,i]=P.useState(""),[a,s]=P.useState([""]),[l,c]=P.useState(!1),[u,d]=P.useState(0),[f,h]=P.useState(!1),{updateGlobalToast:g}=Qt(),v=()=>{h(!0)},m=()=>{var q;const U=((q=e==null?void 0:e.reviewerChecklist)==null?void 0:q.length)>=0?[...e.reviewerChecklist]:[];U.push({uuid:et(),checklist:r,action:a,agree:null,selectAction:[],other:{isOther:!1,description:""},reviewerComments:""});const O={...e,reviewerChecklist:U};n(O),h(!1),i(""),s([""])},A=()=>{h(!1),i(""),s([""])},w=U=>{const O=[...e.reviewerChecklist];O.splice(U,1);const q={...e,reviewerChecklist:O};n(q)},E=(U,O)=>{c(!0);const{checklist:q,action:ie}=U;h(!0),d(O),setTimeout(()=>{i(q),s(ie)},1e3)},x=(U,O)=>o.jsxs(o.Fragment,{children:[o.jsx(Ft,{text:!0,type:"button",className:"p-button-info",icon:"pi pi-pencil",onClick:()=>E(U,O==null?void 0:O.rowIndex),size:"small"}),o.jsx(Ft,{text:!0,type:"button",className:"p-button-danger",icon:"pi pi-trash",onClick:()=>w(O==null?void 0:O.rowIndex),size:"small"})]}),C=U=>{var O;return o.jsx(o.Fragment,{children:(O=U==null?void 0:U.action)==null?void 0:O.length})},S=U=>{const O=[...a];O.splice(U,1),s(O)},_=()=>{const U=[...e.reviewerChecklist];U[u]={checklist:r,action:a};const O={...e,reviewerChecklist:U};n(O),h(!1),c(!1)},I=()=>o.jsx("div",{children:l?o.jsx(Ft,{text:!0,className:"mb-5 p-button-success",label:"Edit Checklist",onClick:()=>{_()}}):o.jsx(Ft,{text:!0,className:"mb-5 p-button-success",label:"Add Checklist",onClick:()=>{m()}})}),F=U=>{n(O=>Object.assign({},O,{reviewerChecklist:U==null?void 0:U.value}))},M=U=>{navigator.clipboard.writeText(JSON.stringify(U)),g({showToast:!0,toastMessage:"Copied to clipboard",toastDetail:"",toastType:"success"})};function L(U){try{JSON.parse(U)}catch{return!1}return!0}const V=async()=>{var q;const U=await navigator.clipboard.readText();let O="";if(L(U)){const ie=JSON.parse(U);if((q=ie[0])!=null&&q.checklist){const ge={...It.cloneDeep(e),reviewerChecklist:ie};n(ge),g({showToast:!0,toastMessage:"Checklist pasted",toastDetail:"",toastType:"success"});return}else O=" Empty or Invalid Schema"}else O="Invalid Schema";g({showToast:!0,toastMessage:O,toastDetail:"",toastType:"error"})};return o.jsxs("div",{children:[o.jsxs(Fs,{maximizable:!0,header:"Add Checklist",visible:f,style:{width:"30vw"},onHide:()=>A(),footer:I(),children:[o.jsx("h5",{children:"Checklist"}),o.jsx(ks,{rows:2,cols:50,value:r,onChange:U=>{var O;i((O=U==null?void 0:U.target)==null?void 0:O.value)}}),o.jsx("h5",{children:"Actions when user selects No"}),a.map((U,O)=>o.jsxs("div",{children:[O+1,"."," ",o.jsx(ks,{value:U,onChange:q=>{var ge;const ie=[...a];ie[O]=(ge=q==null?void 0:q.target)==null?void 0:ge.value,s(ie)},rows:2,cols:50})," ",o.jsx(Ft,{text:!0,type:"button",icon:"pi pi-trash",className:"p-button-danger",onClick:()=>S(O)}),o.jsx("br",{}),o.jsx("br",{})]},`actionIndex-${O}`)),o.jsx(Ft,{text:!0,className:" p-button-info mr-2",onClick:()=>{s([...a,""])},children:"Add Action"})]})," ",o.jsx("h5",{children:"Reviewer Checklist"}),o.jsx(Ft,{text:!0,className:"mb-5 mr-2 p-button-success",label:"Add Review Checklist",onClick:()=>{v()}}),o.jsx(Ft,{text:!0,label:"Copy Schema ",onClick:()=>{M([...(e==null?void 0:e.reviewerChecklist)||[]])},className:"mb-5 mr-2"}),o.jsx(Ft,{text:!0,label:"Paste Checklist ",onClick:()=>{V()},className:"mb-5 p-button-info"}),o.jsx("div",{className:"card",children:o.jsxs(Ks,{value:e==null?void 0:e.reviewerChecklist,reorderableRows:!0,onRowReorder:F,children:[o.jsx(dr,{rowReorder:!0,style:{width:"3em"}}),o.jsx(dr,{field:"checklist",header:"Checklist"}),o.jsx(dr,{field:"actions",header:"Actions",body:U=>C(U)}),o.jsx(dr,{header:"",body:(U,O)=>x(U,O)})]})})]})},em=t=>{var C;const{visibilty:e,setVisibility:n,row:r,pageIndex:i,sectionIndex:a,rowIndex:s}=t,{formBuilderSchemaLanguages:l,rowSettingUpdate:c,userSelectedLanguage:u,formBuilderPublishedStatus:d}=on(),[f,h]=P.useState(r),{updateGlobalToast:g,emitSocketData:v}=Qt(),m=(S,_,I)=>{h(F=>{const M=F[S];return Object.assign({},F,{[S]:Object.assign({},M,{[_==null?void 0:_.type]:I})})})},A=(S,_)=>{h(I=>({...I,[S]:_}))},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"})},E=(S,_)=>{let I=f;I={...I,margin:{...I.margin,[S]:_}},h(I)},x=(S,_)=>{h(I=>({...I,[S]:_}))};return o.jsx(o.Fragment,{children:o.jsxs(Vo,{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 - ",(C=r==null?void 0:r.heading)==null?void 0:C[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",onClick:()=>w(),"aria-label":"Update"})})]}),o.jsxs(Za,{children:[o.jsx(fr,{header:"Text",children:o.jsx(fo,{activeIndex:0,children:l!=null&&l.length?l.map((S,_)=>o.jsx(uo,{tabIndex:_,header:S==null?void 0:S.language,children:o.jsx($Se,{language:S,stateRow:f,onHandleChange:m,...t})},_)):""})}),o.jsx(fr,{header:"Advance",children:o.jsx(jSe,{stateRow:f,onHandleChangeAdvanceSettings:A})}),o.jsx(fr,{header:"Layout",children:o.jsxs("div",{className:"p-fluid",children:[o.jsxs("div",{className:"field-checkbox",children:[o.jsx(Br,{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(Br,{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?"})]})]})}),o.jsx(fr,{header:"Styling",children:o.jsx(zSe,{stateRow:f,onHandleChange:x,onHandleChangePageMargin:E,...t})}),(f==null?void 0:f.rowIsRepeatable)===!0&&o.jsx(fr,{header:"Admin",children:o.jsx(HSe,{stateRow:f,setStateRow:h})})]})]})})},YSe={},KSe=t=>{var fe,be,Te,ye,Ae,ne,$,re,W,de,Ie;const{data:e,path:n,pageIndex:r,sectionIndex:i,rowIndex:a,section:s,page:l}=t,c=P.useRef(null),{removeRow:u,addRow:d,cloneRow:f,formBuilderFormLayout:h,userSelectedLanguage:g,handleDrop:v}=on(),{userTaskSubmitFormData:m,taskRegisterData:A,updateTaskRegisterData:w,updateTaskProgressValue:E,addUserDataFormSectionRepeatableData:x,removeUserDataFormSectionRepeatableData:C,task_status:S,TASK_PUBLISHED:_}=yr(),{isPreview:I,isRenderView:F,isAdvanceView:M,renderType:L,isAdmin:V,emitSocketData:U}=Qt(),[O,q]=P.useState(!1),[{isDragging:ie},ge]=ia({type:Oo,item:{type:Oo,uuid:e.uuid,children:e.children,path:n,data:e},collect:Ee=>({isDragging:Ee.isDragging()})}),Z=ie?.25:1;ge(c);const Q=(Ee,ve,me,Se,De,j)=>o.jsx(qSe,{page:l,row:e,section:s,data:Ee,path:ve,pageIndex:me,sectionIndex:Se,rowIndex:De,columnIndex:j,isAdmin:V,emitSocketData:U},`column-${n}-${Ee.uuid}`),ce=(Ee,ve,me,Se)=>{var pe,ue,le,se;const De=Ee.collapsed?"pi pi-chevron-down":"pi pi-chevron-up",j=`${Ee.className} justify-content-space-between`,oe=`${Ee.titleClassName} pl-1 text-primary`;return o.jsxs(o.Fragment,{children:[o.jsx(sn,{target:".clone-tool"}),o.jsx(sn,{target:".setting-tool"}),o.jsx(sn,{target:".add-row-tool"}),o.jsxs("div",{className:j,children:[o.jsxs("span",{ref:I===!1?c:null,children:[o.jsx("button",{className:Ee.togglerClassName,children:o.jsx("span",{className:"pi pi-sliders-h dragabble"})}),o.jsxs("button",{className:Ee.togglerClassName,onClick:Ee.onTogglerClick,children:[o.jsx("span",{className:De}),o.jsx(tn,{})]}),o.jsxs("span",{className:oe,children:["Row:"," ",((pe=e==null?void 0:e.heading)==null?void 0:pe[g==null?void 0:g.type])!==""?(ue=e==null?void 0:e.heading)==null?void 0:ue[g==null?void 0:g.type]:"Untitled"]})]}),I===!1&&o.jsxs("div",{className:"p-panel-icons",children:[o.jsx("span",{className:"add-row-tool","data-pr-tooltip":"Add Row",children:o.jsxs("button",{className:Ee.togglerClassName,onClick:()=>{d(ve,me),U()},children:[o.jsx("span",{className:"pi pi-plus"}),o.jsx(tn,{})]})}),((se=(le=h[ve])==null?void 0:le.children[me])==null?void 0:se.children.length)>1&&o.jsxs("button",{className:Ee.togglerClassName,onClick:()=>{u(ve,me,Se),U()},children:[o.jsx("span",{className:"pi pi-trash"}),o.jsx(tn,{})]}),o.jsx("span",{className:"clone-tool","data-pr-tooltip":"Clone",children:o.jsxs("button",{className:Ee.togglerClassName,onClick:()=>{f(e,ve,me,Se),U()},children:[o.jsx("span",{className:"pi pi-clone"}),o.jsx(tn,{})]})}),o.jsx("span",{className:"setting-tool","data-pr-tooltip":"Settings",children:o.jsxs("button",{onClick:()=>q(!0),className:Ee.togglerClassName,children:[o.jsx("span",{className:"pi pi-cog"}),o.jsx(tn,{})]})})]})]})]})},K=It.findIndex(m,function(Ee){return(Ee==null?void 0:Ee.rowId)===(e==null?void 0:e.uuid)}),he=()=>{var me,Se,De;const Ee=It.cloneDeep(A);((Se=(me=m[K])==null?void 0:me.repeatableFieldsData)==null?void 0:Se.length)>=(e==null?void 0:e.minimumEntries)?Ee[e==null?void 0:e.uuid]=(De=m[K])==null?void 0:De.repeatableFields:delete Ee[e==null?void 0:e.uuid];const ve=Object.keys(Ee).length;w(Ee),E(ve)},ee=(fe=e==null?void 0:e.repeatableFields)==null?void 0:fe.map(Ee=>{var ve;return{fieldUuid:Ee==null?void 0:Ee.uuid,field:Ee==null?void 0:Ee.uuid,header:(ve=Ee==null?void 0:Ee.label)==null?void 0:ve.english}}),te=ee==null?void 0:ee.map(Ee=>o.jsx(dr,{field:Ee.field,header:Ee.header,body:ve=>o.jsx(o.Fragment,{children:o.jsx("div",{className:"post__content_repetable",dangerouslySetInnerHTML:{__html:ve[Ee==null?void 0:Ee.field]}})})},Ee.field)),Y=()=>{var Se;const Ee=[...m],ve=[];let me=!0;e:for(const[,De]of e.children.entries()){for(const[,j]of De.children.entries())if(j!=null&&j.isPostField&&j.isValid!==1){const oe={fieldId:j.uuid,rowIndex:a};console.log("inValidData",oe),ve.push(oe),Zt.emit("OnInvalidFieldCatch",oe),me=!1;break e}me=!0}me&&(ve==null?void 0:ve.length)===0&&(x(e==null?void 0:e.uuid,(Se=Ee[K])==null?void 0:Se.repeatableFields),Zt.emit("clearRepeatableFields",e==null?void 0:e.uuid),he())},R=Ee=>o.jsx(o.Fragment,{children:o.jsx(Ft,{text:!0,type:"button",className:"p-button-danger ",onClick:()=>{C(e==null?void 0:e.uuid,Ee==null?void 0:Ee.rowIndex),setTimeout(()=>{he()},1e3)},icon:"pi pi-trash"})});return o.jsxs("div",{style:{...YSe,opacity:Z,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:`${(Ae=e==null?void 0:e.margin)==null?void 0:Ae.right}px`},className:F?"row container-row":"draggable row container-row",children:[O&&o.jsx(em,{renderType:L,visibilty:O,setVisibility:q,row:e,pageIndex:r,sectionIndex:i,rowIndex:a,emitSocketData:U},"row_settings_"+r+i+a),I===!1?o.jsx(o.Fragment,{children:M===!0?o.jsx(ui,{header:"Row",toggleable:!0,headerTemplate:Ee=>ce(Ee,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((Ee,ve)=>{const me=`${n}-${ve}`;return o.jsxs(P.Fragment,{children:[o.jsx(Fr,{isAdvanceView:M,data:{path:me,childrenCount:e.children.length},onDrop:v,className:"horizontalDrag"}),Q(Ee,me,r,i,a,ve)]},me)}),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:($=e==null?void 0:e.children)==null?void 0:$.map((Ee,ve)=>{const me=`${n}-${ve}`;return o.jsx(P.Fragment,{children:Q(Ee,me,r,i,a,ve)},me)})})})}):o.jsx(o.Fragment,{children:!(e!=null&&e.rowIsRepeatable&&S===_)&&o.jsxs(o.Fragment,{children:[o.jsx("h5",{children:(re=e==null?void 0:e.heading)==null?void 0:re[g==null?void 0:g.type]}),o.jsx("span",{children:(W=e==null?void 0:e.subHeadingText)==null?void 0:W[g==null?void 0:g.type]}),o.jsx("div",{className:"form-builder-columns",children:e.children.map((Ee,ve)=>{const me=`${n}-${ve}`;return o.jsx(P.Fragment,{children:Q(Ee,me,r,i,a,ve)},me)})})]})}),(e==null?void 0:e.rowIsRepeatable)&&S!==_&&o.jsx(Ft,{text:!0,type:"button",className:"p-button-success mb-3",onClick:()=>Y(),label:(de=e.addToListButtonLabel)==null?void 0:de[g==null?void 0:g.type]}),(e==null?void 0:e.rowIsRepeatable)&&o.jsxs("div",{className:"card",children:[o.jsxs(Ks,{value:(m==null?void 0:m.length)>0?(Ie=m[K])==null?void 0:Ie.repeatableFieldsData:[],children:[te,S!==_&&o.jsx(dr,{style:{width:"10%"},headerStyle:{textAlign:"center"},bodyStyle:{textAlign:"left",overflow:"visible"},body:(Ee,ve)=>R(ve)})]}),V&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(Ni,{field:e})]})]})]})},XSe=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(bn,{value:(i=r.heading)==null?void 0:i[e==null?void 0:e.type],onChange:s=>n("heading",e,s.target.value)})]}),o.jsxs("div",{className:"field",children:[o.jsx("label",{children:"Section Description"}),o.jsx(ks,{value:(a=r.subHeadingText)==null?void 0:a[e==null?void 0:e.type],onChange:s=>n("subHeadingText",e,s.target.value)})]})]})},ip=t=>{const{visibilty:e,setVisibility:n,section:r,pageIndex:i,sectionIndex:a}=t,[s,l]=P.useState(r),{formBuilderSchemaLanguages:c,sectionSettingUpdate:u,userSelectedLanguage:d,formBuilderPublishedStatus:f}=on(),{emitSocketData:h}=Qt(),{updateGlobalToast:g}=Qt(),v=(w,E,x)=>{l(C=>Object.assign({},C,{[w]:Object.assign({},C[w],{[E==null?void 0:E.type]:x})}))},m=(w,E)=>{l(x=>({...x,[w]:E}))},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(Vo,{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",onClick:()=>A(),"aria-label":"Update"})})]}),o.jsxs(Za,{children:[o.jsx(fr,{header:"Text",children:o.jsx(fo,{activeIndex:0,children:c!=null&&c.length?c.map((w,E)=>o.jsx(uo,{tabIndex:E,header:w==null?void 0:w.language,children:o.jsx(XSe,{language:w,stateSection:s,onHandleChange:v,...t})},E)):""})}),o.jsx(fr,{header:"Layout",children:o.jsxs("div",{className:"p-fluid",children:[o.jsxs("div",{className:"field-checkbox",children:[o.jsx(Br,{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(Br,{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(Br,{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?"})]})]})})]})]})})},ap=t=>{const{saveBuilderElementModalData:e,saveElementModal:n,setSaveElementModal:r}=t,{saveComponent:i}=Qt(),a=d4({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(Fs,{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(bn,{id:"builder_element_title",name:"builder_element_title",value:a.values.builder_element_title,onChange:a.handleChange,className:`${J3({invalid:s("builder_element_title")})} w-full`})]}),o.jsxs("div",{className:"p-field field",children:[o.jsxs("label",{htmlFor:"username",children:[o.jsx("span",{className:"must-required",children:"*"})," Builder element description"]}),o.jsx(ks,{id:"builder_element_description",name:"builder_element_description",value:a.values.builder_element_description,onChange:a.handleChange,className:`${J3({invalid:s("builder_element_title")})} w-full`})]})]})},RSe=t=>{var ge,Z,Q,ce,K,he,ee,te;const{data:e,path:n,pageIndex:r,sectionIndex:i,section:a,page:s}=t,{removeSection:l,addSection:c,cloneSection:u,formBuilderFormLayout:d,userSelectedLanguage:f,handleDrop:h}=on(),{isPreview:g,isAdvanceView:v,renderType:m,emitSocketData:A}=Qt(),[w,E]=P.useState(!1),[x,C]=P.useState(!1),[S,_]=P.useState(null),[I,F]=P.useState(!1),M=P.useRef(null),L=(Y,R)=>{_(fe=>({...fe,[Y]:R}))},[{isDragging:V},U]=ia({type:na,item:{type:na,uuid:e.uuid,children:e.children,path:n},collect:Y=>({isDragging:Y.isDragging()})}),O=V?.25:1;U(M);const q=(Y,R,fe,be,Te)=>o.jsx(KSe,{page:s,section:a,data:Y,path:R,pageIndex:fe,sectionIndex:be,rowIndex:Te},`row-${n}-${Y.uuid}`),ie=(Y,R,fe)=>{var Ae,ne;const be=Y.collapsed?"pi pi-chevron-down":"pi pi-chevron-up",Te=`${Y.className} justify-content-space-between panel-tab-section`,ye=`${Y.titleClassName} pl-1 text-primary`;return o.jsxs("div",{className:Te,children:[o.jsxs("span",{ref:g===!1?M:null,children:[o.jsx("button",{className:Y.togglerClassName,children:o.jsx("span",{className:"pi pi-sliders-h dragabble"})}),o.jsxs("button",{className:Y.togglerClassName,onClick:Y.onTogglerClick,children:[o.jsx("span",{className:be}),o.jsx(tn,{})]}),o.jsxs("span",{className:ye,children:[fe+1," ",(Ae=e==null?void 0:e.heading)==null?void 0:Ae[f==null?void 0:f.type]]})]}),g===!1&&o.jsxs(o.Fragment,{children:[o.jsx(sn,{target:".clone-tool"}),o.jsx(sn,{target:".del-tool"}),o.jsx(sn,{target:".setting-tool"}),o.jsx(sn,{target:".add-section-tool"}),o.jsx(sn,{target:".save-tool"}),o.jsx(sn,{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:Y.togglerClassName,onClick:()=>{c(R),A()},children:[o.jsx("span",{className:"pi pi-plus"}),o.jsx(tn,{})]})}),((ne=d[R])==null?void 0:ne.children.length)>1&&o.jsx("span",{className:"del-tool","data-pr-tooltip":"Delete",children:o.jsxs("button",{className:Y.togglerClassName,onClick:()=>{l(R,fe),A()},children:[o.jsx("span",{className:"pi pi-trash"}),o.jsx(tn,{})]})}),o.jsx("span",{className:"save-tool","data-pr-tooltip":"Save",children:o.jsxs("button",{className:Y.togglerClassName,onClick:()=>{L("reusable_template_schema",e),C(!0)},children:[o.jsx("span",{className:"pi pi-save"}),o.jsx(tn,{})]})}),o.jsx("span",{className:"clone-tool","data-pr-tooltip":"Clone",children:o.jsxs("button",{className:Y.togglerClassName,onClick:()=>{u(e,R,fe),A()},children:[o.jsx("span",{className:"pi pi-clone"}),o.jsx(tn,{})]})}),o.jsx("span",{className:"settings-tool","data-pr-tooltip":"Settings",children:o.jsxs("button",{className:Y.togglerClassName,onClick:()=>E(!0),children:[o.jsx("span",{className:"pi pi-cog"}),o.jsx(tn,{})]})})]})]})]})};return o.jsxs("div",{style:{opacity:O,marginBottom:20},className:v?"draggable row":"",children:[g===!1&&o.jsx(ap,{saveBuilderElementModalData:S,setSaveBuilderElementModalData:_,saveElementModal:x,setSaveElementModal:C}),w===!0&&o.jsx(ip,{renderType:m,visibilty:w,setVisibility:E,section:e,pageIndex:r,sectionIndex:i,emitSocketData:A},"section_settings_"+r+i),g===!1?o.jsx(o.Fragment,{children:v===!0?o.jsxs(ui,{header:(ge=e==null?void 0:e.heading)==null?void 0:ge.english,toggleable:!0,headerTemplate:Y=>ie(Y,r,i),onMouseEnter:()=>F(!0),onMouseLeave:()=>F(!1),children:[((Z=e==null?void 0:e.subHeadingText)==null?void 0:Z[f==null?void 0:f.type])&&o.jsx("p",{children:(Q=e==null?void 0:e.subHeadingText)==null?void 0:Q[f==null?void 0:f.type]}),o.jsxs("div",{children:[e.children.map((Y,R)=>{const fe=`${n}-${R}`;return o.jsxs(P.Fragment,{children:[o.jsx(Fr,{isAdvanceView:v,data:{path:fe,childrenCount:e.children.length},onDrop:h}),q(Y,fe,r,i,R)]},fe)}),o.jsx(Fr,{isAdvanceView:v,data:{path:`${n}-${e.children.length}`,childrenCount:e.children.length,droppedField:e},onDrop:h,isLast:!0})]}),I&&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(tn,{})})}),((ce=d[r])==null?void 0:ce.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(tn,{})})})]})]}):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:(he=e==null?void 0:e.subHeadingText)==null?void 0:he[f==null?void 0:f.type]}),o.jsx("div",{children:e.children.map((Y,R)=>{const fe=`${n}-${R}`;return o.jsx(P.Fragment,{children:q(Y,fe,r,i,R)},fe)})})]})}):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:(ee=e==null?void 0:e.heading)==null?void 0:ee[f==null?void 0:f.type]}),o.jsx("p",{children:(te=e==null?void 0:e.subHeadingText)==null?void 0:te[f==null?void 0:f.type]}),o.jsx("hr",{})]}),e.children.map((Y,R)=>{const fe=`${n}-${R}`;return o.jsx(P.Fragment,{children:o.jsx("div",{className:"",children:q(Y,fe,r,i,R)},fe)},fe)})]})})]})},GSe={position:"relative"},WSe=t=>{var C,S,_;const{data:e,data:n,path:r,pageIndex:i,sectionIndex:a,rowIndex:s,columnIndex:l,section:c,row:u,page:d}=t,f=P.useRef(null),{handleDrop:h}=on(),{isRenderView:g,isAdvanceView:v,isPreview:m}=Qt(),[{isDragging:A},w]=ia({type:ws,item:{type:ws,uuid:e==null?void 0:e.uuid,children:e.children,path:r},collect:I=>({isDragging:I.isDragging()})}),E=A&&!g?.25:1;w(f);const x=(I,F,M,L,V,U,O)=>o.jsx(tu,{page:d,section:c,row:u,column:n,field:I,pageIndex:M,sectionIndex:L,rowIndex:V,columnIndex:U,fieldIndex:O,type:"field",data:I,path:F},`component-${r}-${I==null?void 0:I.uuid}`);return o.jsx("div",{style:v?{...GSe,opacity:E}:{},className:g?"":"draggable column container-column",children:m===!1?o.jsx(o.Fragment,{children:o.jsxs("div",{children:[((C=e==null?void 0:e.children)==null?void 0:C.length)>0?(S=e==null?void 0:e.children)==null?void 0:S.map((I,F)=>{const M=`${r}-${F}`;return o.jsxs(P.Fragment,{children:[o.jsx(Fr,{isAdvanceView:v,fieldDropArea:!0,data:{path:M,childrenCount:e.children.length,droppedField:e},onDrop:h}),x(I,M,i,a,s,l,F)]},M)}):o.jsx(o.Fragment,{}),o.jsx(Fr,{isAdvanceView:v,dropHereLastField:!0,fieldDropArea:!0,data:{path:`${r}-${e.children.length}`,childrenCount:e.children.length,droppedField:e},onDrop:h,isLast:!0})]})}):o.jsx(o.Fragment,{children:(_=e==null?void 0:e.children)==null?void 0:_.map((I,F)=>{const M=`${r}-${F}`;return o.jsx(P.Fragment,{children:x(I,M,i,a,s,l,F)},M)})})})},QSe=t=>{var l;const{isAdvanceView:e}=Qt(),{data:n,page:r,path:i,pageIndex:a}=t,s=(c,u,d,f,h,g,v,m)=>o.jsx(WSe,{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(P.Fragment,{children:s(v,A,a,u,h,m,c,f)},A)})})})})})})},JSe=t=>{const{data:e,path:n,pageIndex:r}=t,{isPreview:i,isRenderView:a,isAdvanceView:s}=Qt(),{formBuilderFormSchema:l,handleDrop:c}=on(),u=P.useRef(null),[d,f]=ia({type:na,item:{type:na,uuid:e.uuid,children:e.children,path:n},collect:g=>({isDragging:g.isDragging()})});f(u);const h=(g,v,m,A)=>o.jsx(RSe,{data:g,page:e,section:g,path:v,pageIndex:m,sectionIndex:A},`section_${m}_${A}`);return o.jsx("div",{style:{overflowX:"auto"},className:`${a?"":"draggable page-css p-3 pb-4"}`,"data-image-src":e==null?void 0:e.bgImage,"data-bg-color":`#${e==null?void 0:e.bgColor}`,children:i===!1?o.jsx(o.Fragment,{children:s?o.jsxs(o.Fragment,{children:[e.children.map((g,v)=>{const m=`${n}-${v}`;return o.jsxs(P.Fragment,{children:[s===!0&&o.jsx(Fr,{isAdvanceView:s,data:{path:m,childrenCount:e.children.length},onDrop:c}),h(g,m,r,v)]},`section-${v}-${g.uuid}`)}),s===!0&&o.jsx(Fr,{isAdvanceView:s,data:{path:`${n}-${e.children.length}`,childrenCount:e.children.length,droppedField:e},onDrop:c,isLast:!0})]}):o.jsx(o.Fragment,{children:o.jsx(QSe,{page:e,path:n,data:e,pageIndex:r})})}):o.jsx(o.Fragment,{children:o.jsx("div",{className:"p-1",children:e.children.map((g,v)=>{const m=`${n}-${v}`;return o.jsx(P.Fragment,{children:l!=null&&l.showConditionalFields?o.jsx(o.Fragment,{children:o.jsx("div",{children:h(g,m,r,v)})}):((g==null?void 0:g.isHidden)===!1||!i)&&h(g,m,r,v)},`section-${v}-${g.uuid}`)})})})})},ZSe=()=>{const{isPreview:t,isAdvanceView:e}=Qt(),[n,r]=P.useState(!1),[i,a]=P.useState(!1),[s,l]=P.useState(0),{formBuilderFormLayout:c,formBuilderFormSchema:u}=on(),{emitSocketData:d}=Qt(),f=(h,g,v)=>o.jsx(JSe,{data:h,path:g,pageIndex:v},`page-${h.uuid}`);return o.jsx("div",{className:"page",children:(c==null?void 0:c.length)===m9&&t===!0?o.jsx(o.Fragment,{children:(c==null?void 0:c.length)&&c.map((h,g)=>{const v=`${g}`;return o.jsx("div",{children:f(h,v,g)},`${h.uuid}-${g}`)})}):o.jsx(o.Fragment,{children:e===!0||t===!0?o.jsx(Za,{activeIndex:s,onTabChange:h=>l(h.index),children:(c==null?void 0:c.length)&&c.map((h,g)=>{const v=`${g}`;return o.jsxs(fr,{disabled:!((h==null?void 0:h.isHidden)===!1||!t),header:"Page",headerTemplate:m=>o.jsx(k7,{options:m,pageIndex:g,setTabSidebarSetting:r,setPageActiveIndex:l,page:h,pages:c}),children:[t===!1&&o.jsx(zf,{reusableBuilderElementModalVisibility:i,setReusableBuilderElementModalVisibility:a,pageIndex:g}),o.jsx(c1,{setVisibility:r,visibilty:n,pageIndex:g,page:h,emitSocketData:d}),f(h,v,g)]},`${h.uuid}-${g}`)})}):o.jsx(o.Fragment,{children:(c==null?void 0:c.length)>0&&(c==null?void 0:c.map((h,g)=>{const v=`${g}`;return o.jsxs(P.Fragment,{children:[t===!1&&o.jsx(zf,{reusableBuilderElementModalVisibility:i,setReusableBuilderElementModalVisibility:a,pageIndex:g}),o.jsx(c1,{setVisibility:r,visibilty:n,pageIndex:g,page:h,emitSocketData:d}),f(h,v,g)]},`${h.uuid}-${g}`)}))})})})},exe={position:"relative"},txe=t=>{var M,L,V,U,O;const{isAdvanceView:e,isPreview:n,emitSocketData:r,isRenderView:i}=Qt(),{data:a,path:s,pageIndex:l,sectionIndex:c,rowIndex:u,columnIndex:d,section:f,row:h,page:g}=t,v=P.useRef(null),{removeColumn:m,addColumn:A,cloneColumn:w,formBuilderFormLayout:E,handleDrop:x}=on(),[{isDragging:C},S]=ia({type:ws,item:{type:ws,uuid:a==null?void 0:a.uuid,children:a.children,path:s},collect:q=>({isDragging:q.isDragging()})}),_=C&&!i?.25:1;S(v);const I=(q,ie,ge,Z,Q,ce,K)=>o.jsx(tu,{page:g,column:a,type:"field",row:h,section:f,field:q,data:q,path:ie,pageIndex:ge,sectionIndex:Z,rowIndex:Q,columnIndex:ce,fieldIndex:K},`component-${s}-${q==null?void 0:q.uuid}`),F=(q,ie,ge,Z,Q)=>{var ee,te,Y,R;const ce=q.collapsed?"pi pi-chevron-down":"pi pi-chevron-up",K=`${q.className} justify-content-space-between`,he=`${q.titleClassName} pl-1 text-primary`;return o.jsxs(o.Fragment,{children:[o.jsx(sn,{target:".clone-tool"}),o.jsx(sn,{target:".add-column-tool"}),o.jsxs("div",{className:K,children:[o.jsxs("span",{ref:n===!1?v:null,children:[o.jsx("button",{className:q.togglerClassName,children:o.jsx("span",{className:"pi pi-sliders-h dragabble"})}),o.jsxs("button",{className:q.togglerClassName,onClick:q.onTogglerClick,children:[o.jsx("span",{className:ce}),o.jsx(tn,{})]}),o.jsx("span",{className:he,children:"Column"})]}),n===!1&&o.jsxs("div",{className:"p-panel-icons",children:[o.jsx("span",{className:"add-column-tool","data-pr-tooltip":"Add Column",children:o.jsxs("button",{className:q.togglerClassName,onClick:()=>{A(ie,ge,Z),r()},children:[o.jsx("span",{className:"pi pi-plus"}),o.jsx(tn,{})]})}),((R=(Y=(te=(ee=E[ie])==null?void 0:ee.children[ge])==null?void 0:te.children[Z])==null?void 0:Y.children)==null?void 0:R.length)>1&&o.jsxs("button",{className:q.togglerClassName,onClick:()=>{m(ie,ge,Z,Q),r()},children:[o.jsx("span",{className:"pi pi-trash"}),o.jsx(tn,{})]}),o.jsx("span",{className:"clone-tool","data-pr-tooltip":"Clone",children:o.jsxs("button",{className:q.togglerClassName,onClick:()=>{w(a,ie,ge,Z,Q),r()},children:[o.jsx("span",{className:"pi pi-clone"}),o.jsx(tn,{})]})})]})]})]})};return o.jsx("div",{style:e?{...exe,opacity:_}:{},className:i?"form-builder-column container-column":"draggable form-builder-column container-column",children:n===!1?o.jsx(o.Fragment,{children:e===!0?o.jsxs(ui,{className:"builder-row-column",header:"Column",toggleable:!0,headerTemplate:q=>F(q,l,c,u,d),children:[((M=a==null?void 0:a.children)==null?void 0:M.length)>0?(L=a==null?void 0:a.children)==null?void 0:L.map((q,ie)=>{const ge=`${s}-${ie}`;return o.jsxs(P.Fragment,{children:[o.jsx(Fr,{isAdvanceView:e,fieldDropArea:!0,data:{path:ge,childrenCount:a.children.length,droppedField:a},onDrop:x}),I(q,ge,l,c,u,d,ie)]},ge)}):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:x,isLast:!0})]}):o.jsx(o.Fragment,{children:o.jsxs("div",{children:[((V=a==null?void 0:a.children)==null?void 0:V.length)>0?(U=a==null?void 0:a.children)==null?void 0:U.map((q,ie)=>{const ge=`${s}-${ie}`;return o.jsxs(P.Fragment,{children:[o.jsx(Fr,{isAdvanceView:e,fieldDropArea:!0,data:{path:ge,childrenCount:a.children.length,droppedField:a},onDrop:x}),I(q,ge,l,c,u,d,ie)]},ge)}):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:x,isLast:!0})]})})}):o.jsx(o.Fragment,{children:(O=a==null?void 0:a.children)==null?void 0:O.map((q,ie)=>{const ge=`${s}-${ie}`;return o.jsx(P.Fragment,{children:I(q,ge,l,c,u,d,ie)},ge)})})})},nxe={},rxe=t=>{var fe,be,Te,ye,Ae,ne,$,re,W,de,Ie,Ee,ve,me,Se,De;const{data:e,path:n,pageIndex:r,sectionIndex:i,rowIndex:a,section:s,page:l}=t,{isRenderView:c,isAdvanceView:u,isAdmin:d,isPreview:f,emitSocketData:h,renderType:g}=Qt(),v=P.useRef(null),{removeRow:m,addRow:A,cloneRow:w,formBuilderFormLayout:E,userSelectedLanguage:x,handleDrop:C}=on(),{userTaskSubmitFormData:S,taskRegisterData:_,updateTaskRegisterData:I,updateTaskProgressValue:F,addUserDataFormSectionRepeatableData:M,removeUserDataFormSectionRepeatableData:L,task_status:V,TASK_PUBLISHED:U}=yr(),[O,q]=P.useState(!1),[{isDragging:ie},ge]=ia({type:Oo,item:{type:Oo,uuid:e.uuid,children:e.children,path:n,data:e},collect:j=>({isDragging:j.isDragging()})}),Z=ie?.25:1;ge(v);const Q=(j,oe,pe,ue,le,se)=>o.jsx(txe,{page:l,row:e,section:s,data:j,path:oe,pageIndex:pe,sectionIndex:ue,rowIndex:le,columnIndex:se,isAdmin:d,emitSocketData:h},`column-${n}-${j.uuid}`),ce=(j,oe,pe,ue)=>{var Ne,Ke,ut,pt;const le=j.collapsed?"pi pi-chevron-down":"pi pi-chevron-up",se=`${j.className} justify-content-space-between`,Oe=`${j.titleClassName} pl-1 text-primary`;return o.jsxs(o.Fragment,{children:[o.jsx(sn,{target:".clone-tool"}),o.jsx(sn,{target:".setting-tool"}),o.jsx(sn,{target:".add-row-tool"}),o.jsxs("div",{className:se,children:[o.jsxs("span",{ref:f===!1?v:null,children:[o.jsx("button",{className:j.togglerClassName,children:o.jsx("span",{className:"pi pi-sliders-h dragabble"})}),o.jsxs("button",{className:j.togglerClassName,onClick:j.onTogglerClick,children:[o.jsx("span",{className:le}),o.jsx(tn,{})]}),o.jsxs("span",{className:Oe,children:["Row:"," ",((Ne=e==null?void 0:e.heading)==null?void 0:Ne[x==null?void 0:x.type])!==""?(Ke=e==null?void 0:e.heading)==null?void 0:Ke[x==null?void 0:x.type]:"Untitled"]})]}),f===!1&&o.jsxs("div",{className:"p-panel-icons",children:[o.jsx("span",{className:"add-row-tool","data-pr-tooltip":"Add Row",children:o.jsxs("button",{className:j.togglerClassName,onClick:()=>{A(oe,pe),h()},children:[o.jsx("span",{className:"pi pi-plus"}),o.jsx(tn,{})]})}),((pt=(ut=E[oe])==null?void 0:ut.children[pe])==null?void 0:pt.children.length)>1&&o.jsxs("button",{className:j.togglerClassName,onClick:()=>{m(oe,pe,ue),h()},children:[o.jsx("span",{className:"pi pi-trash"}),o.jsx(tn,{})]}),o.jsx("span",{className:"clone-tool","data-pr-tooltip":"Clone",children:o.jsxs("button",{className:j.togglerClassName,onClick:()=>{w(e,oe,pe,ue),h()},children:[o.jsx("span",{className:"pi pi-clone"}),o.jsx(tn,{})]})}),o.jsx("span",{className:"setting-tool","data-pr-tooltip":"Settings",children:o.jsxs("button",{onClick:()=>q(!0),className:j.togglerClassName,children:[o.jsx("span",{className:"pi pi-cog"}),o.jsx(tn,{})]})})]})]})]})},K=It.findIndex(S,function(j){return(j==null?void 0:j.rowId)===(e==null?void 0:e.uuid)}),he=()=>{var pe,ue,le;const j=It.cloneDeep(_);((ue=(pe=S[K])==null?void 0:pe.repeatableFieldsData)==null?void 0:ue.length)>=(e==null?void 0:e.minimumEntries)?j[e==null?void 0:e.uuid]=(le=S[K])==null?void 0:le.repeatableFields:delete j[e==null?void 0:e.uuid];const oe=Object.keys(j).length;I(j),F(oe)},ee=(fe=e==null?void 0:e.repeatableFields)==null?void 0:fe.map(j=>{var oe;return{fieldUuid:j==null?void 0:j.uuid,field:j==null?void 0:j.uuid,header:(oe=j==null?void 0:j.label)==null?void 0:oe.english}}),te=ee==null?void 0:ee.map(j=>o.jsx(dr,{field:j.field,header:j.header,body:oe=>o.jsx(o.Fragment,{children:o.jsx("div",{className:"post__content_repetable",dangerouslySetInnerHTML:{__html:oe[j==null?void 0:j.field]}})})},j.field)),Y=()=>{var ue;const j=[...S],oe=[];let pe=!0;e:for(const[,le]of e.children.entries()){for(const[,se]of le.children.entries())if(se!=null&&se.isPostField&&se.isValid!==1){const Oe={fieldId:se.uuid,rowIndex:a};oe.push(Oe),Zt.emit("OnInvalidFieldCatch",Oe),pe=!1;break e}pe=!0}pe&&(oe==null?void 0:oe.length)===0&&(M(e==null?void 0:e.uuid,(ue=j[K])==null?void 0:ue.repeatableFields),Zt.emit("clearRepeatableFields",e==null?void 0:e.uuid),he())},R=j=>o.jsx(o.Fragment,{children:o.jsx(Ft,{text:!0,type:"button",className:"p-button-danger ",onClick:()=>{L(e==null?void 0:e.uuid,j==null?void 0:j.rowIndex),setTimeout(()=>{he()},1e3)},icon:"pi pi-trash"})});return o.jsxs("div",{style:{...nxe,opacity:Z,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:`${(Ae=e==null?void 0:e.margin)==null?void 0:Ae.right}px`},className:c?"row container-row":"draggable row container-row",children:[O&&o.jsx(em,{renderType:g,visibilty:O,setVisibility:q,row:e,pageIndex:r,sectionIndex:i,rowIndex:a,emitSocketData:h},"row_settings_"+r+i+a),g===jm&&o.jsxs("div",{className:"form-builder-columns",children:[e.children.map((j,oe)=>{const pe=`${n}-${oe}`;return o.jsxs(P.Fragment,{children:[g===vf&&o.jsx(Fr,{isAdvanceView:u,data:{path:pe,childrenCount:e.children.length},onDrop:C,className:"horizontalDrag"}),Q(j,pe,r,i,a,oe)]},pe)}),o.jsx(Fr,{isAdvanceView:u,data:{path:`${n}-${e.children.length}`,childrenCount:e.children.length},onDrop:C,className:"horizontalDrag",isLast:!0})]}),(g===t0||g===Q0||g===$m||g===g9||g===Op)&&(f===!1?o.jsx(o.Fragment,{children:u===!0?o.jsx(ui,{header:"Row",toggleable:!0,headerTemplate:j=>ce(j,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((j,oe)=>{const pe=`${n}-${oe}`;return o.jsxs(P.Fragment,{children:[o.jsx(Fr,{isAdvanceView:u,data:{path:pe,childrenCount:e.children.length},onDrop:C,className:"horizontalDrag"}),Q(j,pe,r,i,a,oe)]},pe)}),o.jsx(Fr,{isAdvanceView:u,data:{path:`${n}-${e.children.length}`,childrenCount:e.children.length},onDrop:C,className:"horizontalDrag",isLast:!0})]})}):o.jsx(o.Fragment,{children:o.jsx("div",{className:u?"form-builder-columns":"",style:u?{overflowX:"auto"}:{},children:($=e==null?void 0:e.children)==null?void 0:$.map((j,oe)=>{const pe=`${n}-${oe}`;return o.jsx(P.Fragment,{children:Q(j,pe,r,i,a,oe)},pe)})})})}):o.jsx(o.Fragment,{children:!(e!=null&&e.rowIsRepeatable&&V===U)&&o.jsxs(o.Fragment,{children:[o.jsx("h5",{children:(re=e==null?void 0:e.heading)==null?void 0:re[x==null?void 0:x.type]}),o.jsx("span",{children:(W=e==null?void 0:e.subHeadingText)==null?void 0:W[x==null?void 0:x.type]}),o.jsx("div",{className:"form-builder-columns",children:e.children.map((j,oe)=>{const pe=`${n}-${oe}`;return o.jsx(P.Fragment,{children:Q(j,pe,r,i,a,oe)},pe)})})]})})),g===mf&&(f===!1?o.jsxs("div",{children:[o.jsx("span",{className:"row-setting-block-pdf-editor",children:o.jsxs("div",{className:"pdf-setting-container",children:[o.jsxs("button",{onClick:()=>{A(r,i),h()},children:[o.jsx("span",{className:"pi pi-plus"}),o.jsx(tn,{})]}),((Ie=(de=E[r])==null?void 0:de.children[i])==null?void 0:Ie.children.length)>1&&o.jsxs("button",{onClick:()=>{m(r,i,a),h()},children:[o.jsx("span",{className:"pi pi-trash"}),o.jsx(tn,{})]}),o.jsxs("button",{onClick:()=>{w(e,r,i,a),h()},children:[o.jsx("span",{className:"pi pi-clone"}),o.jsx(tn,{})]}),o.jsxs("button",{onClick:()=>q(!0),children:[o.jsx("span",{className:"pi pi-cog"}),o.jsx(tn,{})]})]})}),o.jsx("div",{className:"form-builder-columns",children:(Ee=e==null?void 0:e.children)==null?void 0:Ee.map((j,oe)=>{const pe=`${n}-${oe}`;return o.jsx(P.Fragment,{children:Q(j,pe,r,i,a,oe)},pe)})})]}):o.jsx(o.Fragment,{children:!(e!=null&&e.rowIsRepeatable&&V===U)&&o.jsxs(o.Fragment,{children:[o.jsx("h5",{children:(ve=e==null?void 0:e.heading)==null?void 0:ve[x==null?void 0:x.type]}),o.jsx("span",{children:(me=e==null?void 0:e.subHeadingText)==null?void 0:me[x==null?void 0:x.type]}),o.jsx("div",{className:"form-builder-columns",children:e.children.map((j,oe)=>{const pe=`${n}-${oe}`;return o.jsx(P.Fragment,{children:Q(j,pe,r,i,a,oe)},pe)})})]})})),g===vf&&o.jsx("div",{className:"form-builder-columns",children:e.children.map((j,oe)=>{const pe=`${n}-${oe}`;return o.jsx(P.Fragment,{children:Q(j,pe,r,i,a,oe)},pe)})}),(e==null?void 0:e.rowIsRepeatable)&&V!==U&&o.jsx(Ft,{text:!0,type:"button",className:"p-button-success mb-3",onClick:()=>Y(),label:(Se=e.addToListButtonLabel)==null?void 0:Se[x==null?void 0:x.type]}),(e==null?void 0:e.rowIsRepeatable)&&o.jsxs("div",{className:"card",children:[o.jsxs(Ks,{value:(S==null?void 0:S.length)>0?(De=S[K])==null?void 0:De.repeatableFieldsData:[],children:[te,V!==U&&o.jsx(dr,{style:{width:"10%"},headerStyle:{textAlign:"center"},bodyStyle:{textAlign:"left",overflow:"visible"},body:j=>R(j)})]}),d&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(Ni,{field:e})]})]})]})},ixe=t=>{var ge,Z,Q,ce,K,he,ee,te;const{isAdvanceView:e,isPreview:n,renderType:r,emitSocketData:i}=Qt(),{handleDrop:a}=on(),{data:s,path:l,pageIndex:c,sectionIndex:u,section:d,page:f}=t,{removeSection:h,addSection:g,cloneSection:v,formBuilderFormLayout:m,userSelectedLanguage:A}=on(),[w,E]=P.useState(!1),[x,C]=P.useState(!1),[S,_]=P.useState({reusable_template_schema:""}),[I,F]=P.useState(!1),M=P.useRef(null),L=(Y,R)=>{_(fe=>({...fe,[Y]:R}))},[{isDragging:V},U]=ia({type:na,item:{type:na,uuid:s.uuid,children:s.children,path:l},collect:Y=>({isDragging:Y.isDragging()})}),O=V?.25:1;U(M);const q=(Y,R,fe,be,Te)=>o.jsx(rxe,{page:f,section:d,data:Y,path:R,pageIndex:fe,sectionIndex:be,rowIndex:Te},`row-${l}-${Y.uuid}`),ie=(Y,R,fe)=>{var Ae,ne;const be=Y.collapsed?"pi pi-chevron-down":"pi pi-chevron-up",Te=`${Y.className} justify-content-space-between panel-tab-section`,ye=`${Y.titleClassName} pl-1 text-primary`;return o.jsxs("div",{className:Te,children:[o.jsxs("span",{ref:n===!1?M:null,children:[o.jsx("button",{className:Y.togglerClassName,children:o.jsx("span",{className:"pi pi-sliders-h dragabble"})}),o.jsxs("button",{className:Y.togglerClassName,onClick:Y.onTogglerClick,children:[o.jsx("span",{className:be}),o.jsx(tn,{})]}),o.jsxs("span",{className:ye,children:[fe+1," ",(Ae=s==null?void 0:s.heading)==null?void 0:Ae[A==null?void 0:A.type]]})]}),n===!1&&o.jsxs(o.Fragment,{children:[o.jsx(sn,{target:".clone-tool"}),o.jsx(sn,{target:".del-tool"}),o.jsx(sn,{target:".setting-tool"}),o.jsx(sn,{target:".add-section-tool"}),o.jsx(sn,{target:".save-tool"}),o.jsx(sn,{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:Y.togglerClassName,onClick:()=>{g(R),i()},children:[o.jsx("span",{className:"pi pi-plus"}),o.jsx(tn,{})]})}),((ne=m[R])==null?void 0:ne.children.length)>1&&o.jsx("span",{className:"del-tool","data-pr-tooltip":"Delete",children:o.jsxs("button",{className:Y.togglerClassName,onClick:()=>{h(R,fe),i()},children:[o.jsx("span",{className:"pi pi-trash"}),o.jsx(tn,{})]})}),o.jsx("span",{className:"save-tool","data-pr-tooltip":"Save",children:o.jsxs("button",{className:Y.togglerClassName,onClick:()=>{L("reusable_template_schema",s),C(!0)},children:[o.jsx("span",{className:"pi pi-save"}),o.jsx(tn,{})]})}),o.jsx("span",{className:"clone-tool","data-pr-tooltip":"Clone",children:o.jsxs("button",{className:Y.togglerClassName,onClick:()=>{v(s,R,fe),i()},children:[o.jsx("span",{className:"pi pi-clone"}),o.jsx(tn,{})]})}),o.jsx("span",{className:"settings-tool","data-pr-tooltip":"Settings",children:o.jsxs("button",{className:Y.togglerClassName,onClick:()=>E(!0),children:[o.jsx("span",{className:"pi pi-cog"}),o.jsx(tn,{})]})})]})]})]})};return o.jsxs("div",{style:{opacity:O,marginBottom:20},className:e?"draggable row":"",children:[n===!1&&o.jsx(ap,{saveBuilderElementModalData:S,setSaveBuilderElementModalData:_,saveElementModal:x,setSaveElementModal:C}),w===!0&&o.jsx(ip,{renderType:r,visibilty:w,setVisibility:E,section:s,pageIndex:c,sectionIndex:u,emitSocketData:i},"section_settings_"+c+u),n===!1?o.jsx(o.Fragment,{children:e===!0?o.jsxs(ui,{header:(ge=s==null?void 0:s.heading)==null?void 0:ge.english,toggleable:!0,headerTemplate:Y=>ie(Y,c,u),onMouseEnter:()=>F(!0),onMouseLeave:()=>F(!1),children:[((Z=s==null?void 0:s.subHeadingText)==null?void 0:Z[A==null?void 0:A.type])&&o.jsx("p",{children:(Q=s==null?void 0:s.subHeadingText)==null?void 0:Q[A==null?void 0:A.type]}),o.jsxs("div",{children:[s.children.map((Y,R)=>{const fe=`${l}-${R}`;return o.jsxs(P.Fragment,{children:[o.jsx(Fr,{isAdvanceView:e,data:{path:fe,childrenCount:s.children.length},onDrop:a}),q(Y,fe,c,u,R)]},fe)}),o.jsx(Fr,{isAdvanceView:e,data:{path:`${l}-${s.children.length}`,childrenCount:s.children.length,droppedField:s},onDrop:a,isLast:!0})]}),I&&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(tn,{})})}),((ce=m[c])==null?void 0:ce.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(tn,{})})})]})]}):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:(he=s==null?void 0:s.subHeadingText)==null?void 0:he[A==null?void 0:A.type]}),o.jsx("div",{children:s.children.map((Y,R)=>{const fe=`${l}-${R}`;return o.jsx(P.Fragment,{children:q(Y,fe,c,u,R)},fe)})})]})}):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:(ee=s==null?void 0:s.heading)==null?void 0:ee[A==null?void 0:A.type]}),o.jsx("p",{children:(te=s==null?void 0:s.subHeadingText)==null?void 0:te[A==null?void 0:A.type]}),o.jsx("hr",{})]}),s.children.map((Y,R)=>{const fe=`${l}-${R}`;return o.jsx(P.Fragment,{children:o.jsx("div",{className:"",children:q(Y,fe,c,u,R)},fe)},fe)})]})})]})},axe=t=>{var s;const{data:e,currentPath:n,pageIndex:r,page:i}=t,a=P.useRef(null);return o.jsx(o.Fragment,{children:o.jsxs(Dw,{ref:a,modules:[kV,Yve],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 E=`${n}-${c}-${f}-${v}-${w}`;return o.jsx(Nw,{children:o.jsx("div",{className:"",children:o.jsx(tu,{page:i,column:g,type:"field",row:d,section:l,field:A,data:A,path:E,pageIndex:r,sectionIndex:c,rowIndex:f,columnIndex:v,fieldIndex:w},`component-${E}-${A==null?void 0:A.uuid}`)})},`swiper_slide_${E}`)})})})}),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"})]})]})})},sxe=t=>{const{isAdvanceView:e,isRenderView:n,isPreview:r}=Qt(),{handleDrop:i}=on(),{data:a,path:s,pageIndex:l}=t,{formBuilderFormSchema:c}=on(),u=P.useRef(null),[{},d]=ia({type:na,item:{type:na,uuid:a.uuid,children:a.children,path:s},collect:h=>({isDragging:h.isDragging()})});d(u);const f=(h,g,v,m)=>o.jsx(ixe,{data:h,section:h,path:g,page:a,pageIndex:v,sectionIndex:m},`section_${v}_${m}`);return o.jsx("div",{style:{overflowX:"auto"},className:`${n?"":"draggable page-css p-3 pb-4"}`,"data-image-src":a==null?void 0:a.bgImage,"data-bg-color":`#${a==null?void 0:a.bgColor}`,children:r===!1?o.jsxs(o.Fragment,{children:[a.children.map((h,g)=>{const v=`${s}-${g}`;return o.jsxs(P.Fragment,{children:[o.jsx(Fr,{isAdvanceView:e,data:{path:v,childrenCount:a.children.length},onDrop:i}),f(h,v,l,g)]},`section-${g}-${h.uuid}`)}),o.jsx(Fr,{isAdvanceView:e,data:{path:`${s}-${a.children.length}`,childrenCount:a.children.length,droppedField:a},onDrop:i,isLast:!0})]}):o.jsx(o.Fragment,{children:(c==null?void 0:c.surveyQuestionSlide)===!0?o.jsx(o.Fragment,{children:o.jsx(axe,{page:a,data:a,currentPath:s,pageIndex:l})}):o.jsx("div",{className:"p-1",children:a.children.map((h,g)=>{const v=`${s}-${g}`;return o.jsx(P.Fragment,{children:((h==null?void 0:h.isHidden)===!1||!r)&&f(h,v,l,g)},`section-${g}-${h.uuid}`)})})})})},oxe=()=>{const[t,e]=P.useState(!1),{isAdvanceView:n,isPreview:r,emitSocketData:i}=Qt(),[a,s]=P.useState(!1),[l,c]=P.useState(0),{removePage:u,userSelectedLanguage:d,formBuilderFormLayout:f,formBuilderFormLayout:h,clonePage:g}=on(),v=(m,A,w)=>o.jsx(sxe,{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)===m9&&r===!0?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===!0?o.jsx(Za,{activeIndex:l,onTabChange:m=>c(m.index),children:(h==null?void 0:h.length)&&h.map((m,A)=>{const w=`${A}`;return o.jsxs(fr,{disabled:!((m==null?void 0:m.isHidden)===!1||!r),header:"Page",headerTemplate:E=>o.jsx(k7,{options:E,pageIndex:A,page:m,isPreview:r,setTabSidebarSetting:s,clonePage:g,emitSocketData:i,formBuilderFormLayout:f,userSelectedLanguage:d,removePage:u,setPageActiveIndex:c,pages:h}),children:[r===!1&&o.jsx(zf,{reusableBuilderElementModalVisibility:t,setReusableBuilderElementModalVisibility:e,pageIndex:A}),o.jsx(c1,{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(P.Fragment,{children:[r===!1&&o.jsx(zf,{reusableBuilderElementModalVisibility:t,setReusableBuilderElementModalVisibility:e,pageIndex:A}),o.jsx(c1,{setVisibility:s,visibilty:a,pageIndex:A,page:m,emitSocketData:i}),v(m,w,A)]},`${m.uuid}-${A}`)}))})})})})},lxe={position:"relative"},cxe=t=>{var x,C,S;const{data:e,path:n,pageIndex:r,sectionIndex:i,rowIndex:a,columnIndex:s,section:l,row:c,page:u}=t,d=P.useRef(null),{handleDrop:f}=on(),{isPreview:h,isRenderView:g,isAdvanceView:v}=Qt(),[{isDragging:m},A]=ia({type:ws,item:{type:ws,uuid:e==null?void 0:e.uuid,children:e.children,path:n},collect:_=>({isDragging:_.isDragging()})}),w=m&&!g?.25:1;A(d);const E=(_,I,F,M,L,V,U)=>o.jsx(tu,{page:u,type:"field",row:c,section:l,field:_,data:_,path:I,pageIndex:F,sectionIndex:M,rowIndex:L,columnIndex:V,fieldIndex:U},`component-${n}-${_==null?void 0:_.uuid}`);return o.jsx("div",{style:v?{...lxe,opacity:w}:{},className:g?"form-builder-column container-column":"draggable form-builder-column container-column",children:h===!1?o.jsxs("div",{className:"builder-row-column",children:[((x=e==null?void 0:e.children)==null?void 0:x.length)>0?(C=e==null?void 0:e.children)==null?void 0:C.map((_,I)=>{const F=`${n}-${I}`;return o.jsxs(P.Fragment,{children:[o.jsx(Fr,{isAdvanceView:v,data:{path:F,childrenCount:e.children.length,droppedField:e},onDrop:f}),E(_,F,r,i,a,s,I)]},F)}):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:(S=e==null?void 0:e.children)==null?void 0:S.map((_,I)=>{const F=`${n}-${I}`;return o.jsx(P.Fragment,{children:E(_,F,r,i,a,s,I)},F)})})})},uxe={},dxe=t=>{var F,M,L,V,U,O,q,ie,ge;const{data:e,path:n,pageIndex:r,sectionIndex:i,rowIndex:a,section:s,page:l}=t,c=P.useRef(null),{removeRow:u,addRow:d,cloneRow:f,formBuilderFormLayout:h,userSelectedLanguage:g}=on(),{isPreview:v,isRenderView:m}=Qt(),{task_status:A,TASK_PUBLISHED:w}=yr(),[E,x]=P.useState(!1),[{isDragging:C},S]=ia({type:Oo,item:{type:Oo,uuid:e.uuid,children:e.children,path:n,data:e},collect:Z=>({isDragging:Z.isDragging()})}),_=C?.25:1;S(c);const I=(Z,Q,ce,K,he,ee)=>o.jsx(cxe,{page:l,row:e,section:s,data:Z,path:Q,pageIndex:ce,sectionIndex:K,rowIndex:he,columnIndex:ee},`column-${n}-${Z.uuid}`);return o.jsxs("div",{style:{...uxe,opacity:_,marginTop:`${(F=e==null?void 0:e.margin)==null?void 0:F.top}px`,marginBottom:`${(M=e==null?void 0:e.margin)==null?void 0:M.bottom}px`,marginLeft:`${(L=e==null?void 0:e.margin)==null?void 0:L.left}px`,marginRight:`${(V=e==null?void 0:e.margin)==null?void 0:V.right}px`},className:m?"row container-row":"draggable row container-row",children:[E&&o.jsx(em,{visibilty:E,setVisibility:x,row:e,pageIndex:r,sectionIndex:i,rowIndex:a},"row_settings_"+r+i+a),v===!1?o.jsxs("div",{children:[o.jsx("span",{className:"row-setting-block-pdf-editor",children:o.jsxs("div",{className:"pdf-setting-container",children:[o.jsxs("button",{onClick:()=>{d(r,i)},children:[o.jsx("span",{className:"pi pi-plus"}),o.jsx(tn,{})]}),((O=(U=h[r])==null?void 0:U.children[i])==null?void 0:O.children.length)>1&&o.jsxs("button",{onClick:()=>{u(r,i,a)},children:[o.jsx("span",{className:"pi pi-trash"}),o.jsx(tn,{})]}),o.jsxs("button",{onClick:()=>{f(e,r,i,a)},children:[o.jsx("span",{className:"pi pi-clone"}),o.jsx(tn,{})]}),o.jsxs("button",{onClick:()=>x(!0),children:[o.jsx("span",{className:"pi pi-cog"}),o.jsx(tn,{})]})]})}),o.jsx("div",{className:"form-builder-columns",children:(q=e==null?void 0:e.children)==null?void 0:q.map((Z,Q)=>{const ce=`${n}-${Q}`;return o.jsx(P.Fragment,{children:I(Z,ce,r,i,a,Q)},ce)})})]}):o.jsx(o.Fragment,{children:!(e!=null&&e.rowIsRepeatable&&A===w)&&o.jsxs(o.Fragment,{children:[o.jsx("h5",{children:(ie=e==null?void 0:e.heading)==null?void 0:ie[g==null?void 0:g.type]}),o.jsx("span",{children:(ge=e==null?void 0:e.subHeadingText)==null?void 0:ge[g==null?void 0:g.type]}),o.jsx("div",{className:"form-builder-columns",children:e.children.map((Z,Q)=>{const ce=`${n}-${Q}`;return o.jsx(P.Fragment,{children:I(Z,ce,r,i,a,Q)},ce)})})]})})]})},fxe=t=>{var S,_,I;const{data:e,path:n,pageIndex:r,sectionIndex:i,section:a,page:s}=t,{userSelectedLanguage:l}=on(),{isPreview:c,isAdvanceView:u}=Qt(),[d,f]=P.useState(!1),[h,g]=P.useState(!1),[v,m]=P.useState(null),A=P.useRef(null),[{isDragging:w},E]=ia({type:na,item:{type:na,uuid:e.uuid,children:e.children,path:n},collect:F=>({isDragging:F.isDragging()})}),x=w?.25:1;E(A);const C=(F,M,L,V,U)=>o.jsx(dxe,{page:s,section:a,data:F,path:M,pageIndex:L,sectionIndex:V,rowIndex:U},`row-${n}-${F.uuid}`);return o.jsxs("div",{style:{opacity:x,marginBottom:20},className:u?"draggable row":"",children:[c===!1&&o.jsx(ap,{saveBuilderElementModalData:v,setSaveBuilderElementModalData:m,saveElementModal:h,setSaveElementModal:g}),d===!0&&o.jsx(ip,{visibilty:d,setVisibility:f,section:e,pageIndex:r,sectionIndex:i},"section_settings_"+r+i),c===!1?o.jsx("div",{children:o.jsx("div",{children:e.children.map((F,M)=>{const L=`${n}-${M}`;return o.jsx(P.Fragment,{children:C(F,L,r,i,M)},L)})})}):o.jsx(o.Fragment,{children:o.jsxs("div",{children:[(e==null?void 0:e.showSectionHeader)&&o.jsxs(o.Fragment,{children:[o.jsx("h4",{children:(S=e==null?void 0:e.heading)==null?void 0:S[l==null?void 0:l.type]}),((_=e==null?void 0:e.subHeadingText)==null?void 0:_[l==null?void 0:l.type])&&o.jsx("p",{children:(I=e==null?void 0:e.subHeadingText)==null?void 0:I[l==null?void 0:l.type]}),o.jsx("hr",{})]}),e.children.map((F,M)=>{const L=`${n}-${M}`;return o.jsx(P.Fragment,{children:o.jsx("div",{className:"",children:C(F,L,r,i,M)},L)},L)})]})})]})},u6={},d6={height:"1280px",width:"100%"},hxe=t=>{var f,h,g,v;const{data:e,path:n,pageIndex:r}=t,{isPreview:i,isRenderView:a}=Qt(),s=P.useRef(null),[{isDragging:l},c]=ia({type:na,item:{type:na,uuid:e.uuid,children:e.children,path:n},collect:m=>({isDragging:m.isDragging()})}),u=l?0:1;c(s);const d=(m,A,w,E)=>o.jsx(fxe,{data:m,section:m,path:A,page:e,pageIndex:w,sectionIndex:E},`section_${w}_${E}`);return o.jsx("div",{style:{overflowX:"auto"},className:`${a?"":"draggable page-css p-3 pb-4"}`,"data-image-src":e==null?void 0:e.bgImage,"data-bg-color":`#${e==null?void 0:e.bgColor}`,children:o.jsx("div",{className:"pdf flex justify-content-center",children:i===!1?o.jsx("div",{id:e==null?void 0:e.uuid,className:"page-block ",style:(e==null?void 0:e.bgType)==="image"?{...u6,...d6,opacity:u,backgroundImage:`url("${e==null?void 0:e.bgImage}")`}:{...u6,...d6,opacity:u,backgroundColor:`#${e==null?void 0:e.bgColor}`},children:((e==null?void 0:e.isCoverPage)===!1||(e==null?void 0:e.isCoverPage)===void 0)&&o.jsx(o.Fragment,{children:e.children.map((m,A)=>{const w=`${n}-${A}`;return o.jsx(P.Fragment,{children:d(m,w,r,A)},`section-${A}-${m.uuid}`)})})}):o.jsx(o.Fragment,{children:o.jsx("div",{className:"page-block",style:(e==null?void 0:e.bgType)==="image"?{...u6,...d6,opacity:u,backgroundImage:`url("${e==null?void 0:e.bgImage}")`,backgroundSize:"cover"}:{...u6,...d6,opacity:u,backgroundColor:`#${e==null?void 0:e.bgColor}`},children:o.jsx("div",{style:{marginTop:`${(f=e==null?void 0:e.margin)==null?void 0:f.top}px`,marginBottom:`${(h=e==null?void 0:e.margin)==null?void 0:h.bottom}px`,marginLeft:`${(g=e==null?void 0:e.margin)==null?void 0:g.left}px`,marginRight:`${(v=e==null?void 0:e.margin)==null?void 0:v.right}px`},children:e.children.map((m,A)=>{const w=`${n}-${A}`;return o.jsx(P.Fragment,{children:((m==null?void 0:m.isHidden)===!1||!i)&&d(m,w,r,A)},`section-${A}-${m.uuid}`)})})})})})})},pxe=()=>{const{isPreview:t}=Qt(),[e,n]=P.useState(!1),[r,i]=P.useState(0),[a,s]=P.useState(!1),{formBuilderFormLayout:l}=on(),c=(u,d,f)=>o.jsx(hxe,{data:u,path:d,pageIndex:f},`page-${u.uuid}`);return o.jsx("div",{className:"page",children:(l==null?void 0:l.length)===m9&&t===!0?o.jsx(o.Fragment,{children:(l==null?void 0:l.length)&&l.map((u,d)=>{const f=`${d}`;return o.jsx("div",{className:"scroll-height-400",children:c(u,f,d)},`${u.uuid}-${d}`)})}):o.jsx(o.Fragment,{children:t===!1?o.jsx(Za,{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(fr,{header:"Page",headerTemplate:h=>o.jsx(k7,{options:h,pageIndex:d,page:u,setTabSidebarSetting:n,setPageActiveIndex:i,pages:l}),children:[t===!1&&o.jsx(zf,{reusableBuilderElementModalVisibility:a,setReusableBuilderElementModalVisibility:s,pageIndex:d}),o.jsxs("div",{className:"p-3",children:[o.jsx(c1,{setVisibility:n,visibilty:e,pageIndex:d,page:u}),o.jsx("div",{children:c(u,f,d)})]})]},`${u.uuid}-${d}`)})}):o.jsx("div",{className:"",children:(l==null?void 0:l.length)&&l.map((u,d)=>{var h;const f=`${d}`;if((u==null?void 0:u.isHidden)===!1||!t)return o.jsxs("section",{id:u==null?void 0:u.uuid,"data-nav-title":(h=u==null?void 0:u.title)==null?void 0:h.english,"data-scrollspy":!0,children:[t===!1&&o.jsx(zf,{reusableBuilderElementModalVisibility:a,setReusableBuilderElementModalVisibility:s,pageIndex:d}),o.jsxs("div",{className:"p-3",children:[o.jsx(c1,{setVisibility:n,visibilty:e,pageIndex:d,page:u}),o.jsx("div",{children:c(u,f,d)})]})]},`${u.uuid}-${d}`)})})})})},gxe=t=>{var w,E,x,C;const e=P.useRef(null),{removeColumn:n,addColumn:r,cloneColumn:i,formBuilderFormLayout:a}=on(),{isPreview:s,emitSocketData:l}=Qt(),{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(sn,{target:".clone-tool"}),o.jsx(sn,{target:".add-column-tool"}),o.jsxs("div",{className:m,children:[o.jsxs("span",{ref:s===!1?e:null,children:[o.jsx("button",{className:c.togglerClassName,children:o.jsx("span",{className:"pi pi-sliders-h dragabble"})}),o.jsxs("button",{className:c.togglerClassName,onClick:c.onTogglerClick,children:[o.jsx("span",{className:v}),o.jsx(tn,{})]}),o.jsx("span",{className:A,children:"Column"})]}),s===!1&&o.jsxs("div",{className:"p-panel-icons",children:[o.jsx("span",{className:"add-column-tool","data-pr-tooltip":"Add Column",children:o.jsxs("button",{className:c.togglerClassName,onClick:()=>{r(u,d,f),l()},children:[o.jsx("span",{className:"pi pi-plus"}),o.jsx(tn,{})]})}),((C=(x=(E=(w=a[u])==null?void 0:w.children[d])==null?void 0:E.children[f])==null?void 0:x.children)==null?void 0:C.length)>1&&o.jsxs("button",{className:c.togglerClassName,onClick:()=>{n(u,d,f,h),l()},children:[o.jsx("span",{className:"pi pi-trash"}),o.jsx(tn,{})]}),o.jsx("span",{className:"clone-tool","data-pr-tooltip":"Clone",children:o.jsxs("button",{className:c.togglerClassName,onClick:()=>{i(g,u,d,f,h),l()},children:[o.jsx("span",{className:"pi pi-clone"}),o.jsx(tn,{})]})})]})]})]})},mxe={position:"relative"},vxe=t=>{var x,C,S,_,I;const{isAdvanceView:e,isRenderView:n,isPreview:r}=Qt(),{handleDrop:i}=on(),{data:a,path:s,pageIndex:l,sectionIndex:c,rowIndex:u,columnIndex:d,section:f,row:h,page:g}=t,v=P.useRef(null),[{isDragging:m},A]=ia({type:ws,item:{type:ws,uuid:a==null?void 0:a.uuid,children:a.children,path:s},collect:F=>({isDragging:F.isDragging()})}),w=m&&!n?.25:1;A(v);const E=(F,M,L,V,U,O,q)=>o.jsx(tu,{page:g,column:a,type:"field",row:h,section:f,field:F,data:F,path:M,pageIndex:L,sectionIndex:V,rowIndex:U,columnIndex:O,fieldIndex:q},`component-${s}-${F==null?void 0:F.uuid}`);return o.jsx("div",{style:e?{...mxe,opacity:w}:{},className:n?"form-builder-column container-column":"draggable form-builder-column container-column",children:r===!1?o.jsx(o.Fragment,{children:e===!0?o.jsxs(ui,{className:"builder-row-column",header:"Column",toggleable:!0,headerTemplate:F=>o.jsx(gxe,{options:F,pageIndex:l,sectionIndex:c,rowIndex:u,data:a,columnIndex:d}),children:[((x=a==null?void 0:a.children)==null?void 0:x.length)>0?(C=a==null?void 0:a.children)==null?void 0:C.map((F,M)=>{const L=`${s}-${M}`;return o.jsxs(P.Fragment,{children:[o.jsx(Fr,{isAdvanceView:e,fieldDropArea:!0,data:{path:L,childrenCount:a.children.length,droppedField:a},onDrop:i}),E(F,L,l,c,u,d,M)]},L)}):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:[((S=a==null?void 0:a.children)==null?void 0:S.length)>0?(_=a==null?void 0:a.children)==null?void 0:_.map((F,M)=>{const L=`${s}-${M}`;return o.jsxs(P.Fragment,{children:[o.jsx(Fr,{isAdvanceView:e,fieldDropArea:!0,data:{path:L,childrenCount:a.children.length,droppedField:a},onDrop:i}),E(F,L,l,c,u,d,M)]},L)}):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:(I=a==null?void 0:a.children)==null?void 0:I.map((F,M)=>{const L=`${s}-${M}`;return o.jsx(P.Fragment,{children:E(F,L,l,c,u,d,M)},L)})})})},bxe=t=>{var E,x,C,S;const{options:e,pageIndex:n,sectionIndex:r,rowIndex:i,data:a}=t,[,s]=P.useState(!1),l=P.useRef(null),{isPreview:c,emitSocketData:u}=Qt(),{removeRow:d,addRow:f,cloneRow:h,formBuilderFormLayout:g,userSelectedLanguage:v}=on(),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(sn,{target:".clone-tool"}),o.jsx(sn,{target:".setting-tool"}),o.jsx(sn,{target:".add-row-tool"}),o.jsxs("div",{className:A,children:[o.jsxs("span",{ref:c===!1?l:null,children:[o.jsx("button",{className:e==null?void 0:e.togglerClassName,children:o.jsx("span",{className:"pi pi-sliders-h dragabble"})}),o.jsxs("button",{className:e==null?void 0:e.togglerClassName,onClick:e==null?void 0:e.onTogglerClick,children:[o.jsx("span",{className:m}),o.jsx(tn,{})]}),o.jsxs("span",{className:w,children:["Row:"," ",((E=a==null?void 0:a.heading)==null?void 0:E[v==null?void 0:v.type])!==""?(x=a==null?void 0:a.heading)==null?void 0:x[v==null?void 0:v.type]:"Untitled"]})]}),c===!1&&o.jsxs("div",{className:"p-panel-icons",children:[o.jsx("span",{className:"add-row-tool","data-pr-tooltip":"Add Row",children:o.jsxs("button",{className:e==null?void 0:e.togglerClassName,onClick:()=>{f(n,r),u()},children:[o.jsx("span",{className:"pi pi-plus"}),o.jsx(tn,{})]})}),((S=(C=g[n])==null?void 0:C.children[r])==null?void 0:S.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(tn,{})]}),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(tn,{})]})}),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(tn,{})]})})]})]})]})},yxe={},Axe=t=>{var he,ee,te,Y,R,fe,be,Te,ye,Ae,ne;const{isAdvanceView:e,isRenderView:n,isPreview:r,isAdmin:i,renderType:a,emitSocketData:s}=Qt(),{handleDrop:l}=on(),{data:c,path:u,pageIndex:d,sectionIndex:f,rowIndex:h,section:g,page:v}=t,m=P.useRef(null),{userSelectedLanguage:A}=on(),{userTaskSubmitFormData:w,taskRegisterData:E,updateTaskRegisterData:x,updateTaskProgressValue:C,addUserDataFormSectionRepeatableData:S,removeUserDataFormSectionRepeatableData:_,task_status:I,TASK_PUBLISHED:F}=yr(),[M,L]=P.useState(!1),[{isDragging:V},U]=ia({type:Oo,item:{type:Oo,uuid:c.uuid,children:c.children,path:u,data:c},collect:$=>({isDragging:$.isDragging()})}),O=V?.25:1;U(m);const q=($,re,W,de,Ie,Ee)=>o.jsx(vxe,{page:v,row:c,section:g,data:$,path:re,pageIndex:W,sectionIndex:de,rowIndex:Ie,columnIndex:Ee,emitSocketData:s},`column-${u}-${$.uuid}`),ie=It.findIndex(w,function($){return($==null?void 0:$.rowId)===(c==null?void 0:c.uuid)}),ge=()=>{var W,de,Ie;const $=It.cloneDeep(E);((de=(W=w[ie])==null?void 0:W.repeatableFieldsData)==null?void 0:de.length)>=(c==null?void 0:c.minimumEntries)?$[c==null?void 0:c.uuid]=(Ie=w[ie])==null?void 0:Ie.repeatableFields:delete $[c==null?void 0:c.uuid];const re=Object.keys($).length;x($),C(re)},Z=(he=c==null?void 0:c.repeatableFields)==null?void 0:he.map($=>{var re;return{fieldUuid:$==null?void 0:$.uuid,field:$==null?void 0:$.uuid,header:(re=$==null?void 0:$.label)==null?void 0:re.english}}),Q=Z==null?void 0:Z.map($=>o.jsx(dr,{field:$.field,header:$.header,body:re=>o.jsx(o.Fragment,{children:o.jsx("div",{className:"post__content_repetable",dangerouslySetInnerHTML:{__html:re[$==null?void 0:$.field]}})})},$.field)),ce=()=>{var de;const $=[...w],re=[];let W=!0;e:for(const[,Ie]of c.children.entries()){for(const[,Ee]of Ie.children.entries())if(Ee!=null&&Ee.isPostField&&Ee.isValid!==1){const ve={fieldId:Ee.uuid,rowIndex:h};console.log("inValidData",ve),re.push(ve),Zt.emit("OnInvalidFieldCatch",ve),W=!1;break e}W=!0}W&&(re==null?void 0:re.length)===0&&(S(c==null?void 0:c.uuid,(de=$[ie])==null?void 0:de.repeatableFields),Zt.emit("clearRepeatableFields",c==null?void 0:c.uuid),ge())},K=$=>o.jsx(o.Fragment,{children:o.jsx(Ft,{text:!0,type:"button",className:"p-button-danger ",onClick:()=>{_(c==null?void 0:c.uuid,$==null?void 0:$.rowIndex),setTimeout(()=>{ge()},1e3)},icon:"pi pi-trash"})});return o.jsxs("div",{style:{...yxe,opacity:O,marginTop:`${(ee=c==null?void 0:c.margin)==null?void 0:ee.top}px`,marginBottom:`${(te=c==null?void 0:c.margin)==null?void 0:te.bottom}px`,marginLeft:`${(Y=c==null?void 0:c.margin)==null?void 0:Y.left}px`,marginRight:`${(R=c==null?void 0:c.margin)==null?void 0:R.right}px`},className:n?"row container-row":"draggable row container-row",children:[M&&o.jsx(em,{renderType:a,visibilty:M,setVisibility:L,row:c,pageIndex:d,sectionIndex:f,rowIndex:h,emitSocketData:s},"row_settings_"+d+f+h),r===!1?o.jsx(o.Fragment,{children:e===!0?o.jsx(ui,{header:"Row",toggleable:!0,headerTemplate:$=>o.jsx(bxe,{options:$,pageIndex:d,sectionIndex:f,rowIndex:h,data:c}),children:o.jsxs("div",{className:"form-builder-columns",style:{overflowX:"auto"},children:[(fe=c==null?void 0:c.children)==null?void 0:fe.map(($,re)=>{const W=`${u}-${re}`;return o.jsxs(P.Fragment,{children:[o.jsx(Fr,{isAdvanceView:e,data:{path:W,childrenCount:c.children.length},onDrop:l,className:"horizontalDrag"}),q($,W,d,f,h,re)]},W)}),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(($,re)=>{const W=`${u}-${re}`;return o.jsx(P.Fragment,{children:q($,W,d,f,h,re)},W)})})})}):o.jsx(o.Fragment,{children:!(c!=null&&c.rowIsRepeatable&&I===F)&&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(($,re)=>{const W=`${u}-${re}`;return o.jsx(P.Fragment,{children:q($,W,d,f,h,re)},W)})})]})}),(c==null?void 0:c.rowIsRepeatable)&&I!==F&&o.jsx(Ft,{text:!0,type:"button",className:"p-button-success mb-3",onClick:()=>ce(),label:(Ae=c.addToListButtonLabel)==null?void 0:Ae[A==null?void 0:A.type]}),(c==null?void 0:c.rowIsRepeatable)&&o.jsxs("div",{className:"card",children:[o.jsxs(Ks,{value:(w==null?void 0:w.length)>0?(ne=w[ie])==null?void 0:ne.repeatableFieldsData:[],children:[Q,I!==F&&o.jsx(dr,{style:{width:"10%"},headerStyle:{textAlign:"center"},bodyStyle:{textAlign:"left",overflow:"visible"},body:$=>K($)})]}),i&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(Ni,{field:c})]})]})]})},wxe=t=>{var ge,Z,Q,ce,K,he,ee,te;const{isAdvanceView:e,isPreview:n,renderType:r,emitSocketData:i}=Qt(),{handleDrop:a}=on(),{data:s,path:l,pageIndex:c,sectionIndex:u,section:d,page:f}=t,{removeSection:h,addSection:g,cloneSection:v,formBuilderFormLayout:m,userSelectedLanguage:A}=on(),[w,E]=P.useState(!1),[x,C]=P.useState(!1),[S,_]=P.useState({reusable_template_schema:""}),[I,F]=P.useState(!1),M=P.useRef(null),L=(Y,R)=>{_(fe=>({...fe,[Y]:R}))},[{isDragging:V},U]=ia({type:na,item:{type:na,uuid:s.uuid,children:s.children,path:l},collect:Y=>({isDragging:Y.isDragging()})}),O=V?.25:1;U(M);const q=(Y,R,fe,be,Te)=>o.jsx(Axe,{page:f,section:d,data:Y,path:R,pageIndex:fe,sectionIndex:be,rowIndex:Te,emitSocketData:i},`row-${l}-${Y.uuid}`),ie=(Y,R,fe)=>{var Ae,ne;const be=Y.collapsed?"pi pi-chevron-down":"pi pi-chevron-up",Te=`${Y.className} justify-content-space-between panel-tab-section`,ye=`${Y.titleClassName} pl-1 text-primary`;return o.jsxs("div",{className:Te,children:[o.jsxs("span",{ref:n===!1?M:null,children:[o.jsx("button",{className:Y.togglerClassName,children:o.jsx("span",{className:"pi pi-sliders-h dragabble"})}),o.jsxs("button",{className:Y.togglerClassName,onClick:Y.onTogglerClick,children:[o.jsx("span",{className:be}),o.jsx(tn,{})]}),o.jsxs("span",{className:ye,children:[fe+1," ",(Ae=s==null?void 0:s.heading)==null?void 0:Ae[A==null?void 0:A.type]]})]}),n===!1&&o.jsxs(o.Fragment,{children:[o.jsx(sn,{target:".clone-tool"}),o.jsx(sn,{target:".del-tool"}),o.jsx(sn,{target:".setting-tool"}),o.jsx(sn,{target:".add-section-tool"}),o.jsx(sn,{target:".save-tool"}),o.jsx(sn,{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:Y.togglerClassName,onClick:()=>{g(R),i()},children:[o.jsx("span",{className:"pi pi-plus"}),o.jsx(tn,{})]})}),((ne=m[R])==null?void 0:ne.children.length)>1&&o.jsx("span",{className:"del-tool","data-pr-tooltip":"Delete",children:o.jsxs("button",{className:Y.togglerClassName,onClick:()=>{h(R,fe),i()},children:[o.jsx("span",{className:"pi pi-trash"}),o.jsx(tn,{})]})}),o.jsx("span",{className:"save-tool","data-pr-tooltip":"Save",children:o.jsxs("button",{className:Y.togglerClassName,onClick:()=>{L("reusable_template_schema",s),C(!0)},children:[o.jsx("span",{className:"pi pi-save"}),o.jsx(tn,{})]})}),o.jsx("span",{className:"clone-tool","data-pr-tooltip":"Clone",children:o.jsxs("button",{className:Y.togglerClassName,onClick:()=>{v(s,R,fe),i()},children:[o.jsx("span",{className:"pi pi-clone"}),o.jsx(tn,{})]})}),o.jsx("span",{className:"settings-tool","data-pr-tooltip":"Settings",children:o.jsxs("button",{className:Y.togglerClassName,onClick:()=>E(!0),children:[o.jsx("span",{className:"pi pi-cog"}),o.jsx(tn,{})]})})]})]})]})};return o.jsxs("div",{style:{opacity:O,marginBottom:20},className:e?"draggable row":"",children:[n===!1&&o.jsx(ap,{saveBuilderElementModalData:S,setSaveBuilderElementModalData:_,saveElementModal:x,setSaveElementModal:C}),w===!0&&o.jsx(ip,{renderType:r,visibilty:w,setVisibility:E,section:s,pageIndex:c,sectionIndex:u,emitSocketData:i},"section_settings_"+c+u),n===!1?o.jsx(o.Fragment,{children:e===!0?o.jsxs(ui,{header:(ge=s==null?void 0:s.heading)==null?void 0:ge.english,toggleable:!0,headerTemplate:Y=>ie(Y,c,u),onMouseEnter:()=>F(!0),onMouseLeave:()=>F(!1),children:[((Z=s==null?void 0:s.subHeadingText)==null?void 0:Z[A==null?void 0:A.type])&&o.jsx("p",{children:(Q=s==null?void 0:s.subHeadingText)==null?void 0:Q[A==null?void 0:A.type]}),o.jsxs("div",{children:[s.children.map((Y,R)=>{const fe=`${l}-${R}`;return o.jsxs(P.Fragment,{children:[o.jsx(Fr,{isAdvanceView:e,data:{path:fe,childrenCount:s.children.length},onDrop:a}),q(Y,fe,c,u,R)]},fe)}),o.jsx(Fr,{isAdvanceView:e,data:{path:`${l}-${s.children.length}`,childrenCount:s.children.length,droppedField:s},onDrop:a,isLast:!0})]}),I&&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(tn,{})})}),((ce=m[c])==null?void 0:ce.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(tn,{})})})]})]}):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:(he=s==null?void 0:s.subHeadingText)==null?void 0:he[A==null?void 0:A.type]}),o.jsx("div",{children:s.children.map((Y,R)=>{const fe=`${l}-${R}`;return o.jsx(P.Fragment,{children:q(Y,fe,c,u,R)},fe)})})]})}):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:(ee=s==null?void 0:s.heading)==null?void 0:ee[A==null?void 0:A.type]}),o.jsx("p",{children:(te=s==null?void 0:s.subHeadingText)==null?void 0:te[A==null?void 0:A.type]}),o.jsx("hr",{})]}),s.children.map((Y,R)=>{const fe=`${l}-${R}`;return o.jsx(P.Fragment,{children:o.jsx("div",{className:"",children:q(Y,fe,c,u,R)},fe)},fe)})]})})]})},Sxe={position:"relative"},xxe=t=>{var x,C,S;const{isAdvanceView:e,isRenderView:n,isPreview:r}=Qt(),{handleDrop:i}=on(),{data:a,path:s,pageIndex:l,sectionIndex:c,rowIndex:u,columnIndex:d,section:f,row:h,page:g}=t,v=P.useRef(null),[{isDragging:m},A]=ia({type:ws,item:{type:ws,uuid:a==null?void 0:a.uuid,children:a.children,path:s},collect:_=>({isDragging:_.isDragging()})}),w=m&&!n?.25:1;A(v);const E=(_,I,F,M,L,V,U)=>o.jsx(tu,{page:g,type:"field",row:h,column:a,section:f,field:_,data:_,path:I,pageIndex:F,sectionIndex:M,rowIndex:L,columnIndex:V,fieldIndex:U},`component-${s}-${_==null?void 0:_.uuid}`);return o.jsx("div",{style:e?{...Sxe,opacity:w}:{},className:n?"":"draggable column container-column",children:r===!1?o.jsx(o.Fragment,{children:o.jsxs("div",{children:[((x=a==null?void 0:a.children)==null?void 0:x.length)>0?(C=a==null?void 0:a.children)==null?void 0:C.map((_,I)=>{const F=`${s}-${I}`;return o.jsxs(P.Fragment,{children:[o.jsx(Fr,{isAdvanceView:e,fieldDropArea:!0,data:{path:F,childrenCount:a.children.length,droppedField:a},onDrop:i}),E(_,F,l,c,u,d,I)]},F)}):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:(S=a==null?void 0:a.children)==null?void 0:S.map((_,I)=>{const F=`${s}-${I}`;return o.jsx(P.Fragment,{children:E(_,F,l,c,u,d,I)},F)})})})},Cxe=t=>{var l;const{isAdvanceView:e}=Qt(),{data:n,page:r,currentPath:i,pageIndex:a}=t,s=(c,u,d,f,h,g,v,m)=>o.jsx(xxe,{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(P.Fragment,{children:s(v,A,a,u,h,m,c,f)},A)})})})})})})},Txe=t=>{const{data:e,path:n,pageIndex:r}=t,{isAdvanceView:i,isRenderView:a,isPreview:s}=Qt(),{formBuilderFormSchema:l,handleDrop:c}=on(),u=P.useRef(null),[{},d]=ia({type:na,item:{type:na,uuid:e.uuid,children:e.children,path:n},collect:h=>({isDragging:h.isDragging()})});d(u);const f=(h,g,v,m)=>o.jsx(wxe,{data:h,section:h,path:g,page:e,pageIndex:v,sectionIndex:m},`section_${v}_${m}`);return o.jsx("div",{style:{overflowX:"auto"},className:`${a?"":"draggable page-css p-3 pb-4"}`,"data-image-src":e==null?void 0:e.bgImage,"data-bg-color":`#${e==null?void 0:e.bgColor}`,children:s===!1?o.jsx(o.Fragment,{children:i?o.jsxs(o.Fragment,{children:[e.children.map((h,g)=>{const v=`${n}-${g}`;return o.jsxs(P.Fragment,{children:[i===!0&&o.jsx(Fr,{isAdvanceView:i,data:{path:v,childrenCount:e.children.length},onDrop:c}),f(h,v,r,g)]},`section-${g}-${h.uuid}`)}),i===!0&&o.jsx(Fr,{isAdvanceView:i,data:{path:`${n}-${e.children.length}`,childrenCount:e.children.length,droppedField:e},onDrop:c,isLast:!0})]}):o.jsx(o.Fragment,{children:o.jsx(Cxe,{page:e,data:e,path:n,pageIndex:r})})}):o.jsx(o.Fragment,{children:o.jsx("div",{className:"p-1",children:e.children.map((h,g)=>{const v=`${n}-${g}`;return o.jsx(P.Fragment,{children:l!=null&&l.showConditionalFields?o.jsx(o.Fragment,{children:o.jsx("div",{children:f(h,v,r,g)})}):((h==null?void 0:h.isHidden)===!1||!s)&&f(h,v,r,g)},`section-${g}-${h.uuid}`)})})})})},Exe=()=>{const[t,e]=P.useState(!1),{formBuilderFormLayout:n}=on(),{isPreview:r}=Qt(),i=()=>{},a=(s,l,c)=>o.jsx(Txe,{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(c1,{setVisibility:e,visibilty:t,pageIndex:l,page:s,emitSocketData:i}),a(s,c,l)]},`policie-page-${l}`)})})})})},Ixe={position:"relative"},_xe=t=>{var x;const{isPreview:e,isRenderView:n,isAdvanceView:r}=Qt(),{data:i,path:a,pageIndex:s,sectionIndex:l,rowIndex:c,columnIndex:u,section:d,row:f,page:h}=t,g=P.useRef(null),{handleDrop:v}=on(),[{isDragging:m},A]=ia({type:ws,item:{type:ws,uuid:i==null?void 0:i.uuid,children:i.children,path:a},collect:C=>({isDragging:C.isDragging()})}),w=m&&!n?.25:1;A(g);const E=(C,S,_,I,F,M,L)=>o.jsx(tu,{page:h,type:"field",row:f,section:d,field:C,data:C,path:S,pageIndex:_,sectionIndex:I,rowIndex:F,columnIndex:M,fieldIndex:L},`component-${a}-${C==null?void 0:C.uuid}`);return o.jsx("div",{style:r?{...Ixe,opacity:w}:{},className:n?"form-builder-column container-column":"draggable form-builder-column container-column",children:!e&&o.jsxs("div",{children:[(x=i==null?void 0:i.children)==null?void 0:x.map((C,S)=>{const _=`${a}-${S}`;return o.jsxs(P.Fragment,{children:[o.jsx(Fr,{fieldDropArea:!0,isAdvanceView:r,data:{path:_,childrenCount:i.children.length,droppedField:i},onDrop:v}),E(C,_,s,l,c,u,S)]},_)}),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:r,data:{path:`${a}-${i.children.length}`,childrenCount:i.children.length,droppedField:i},onDrop:v,isLast:!0})]})})},Dxe={},Nxe=t=>{var K,he,ee,te,Y,R,fe;const{data:e,path:n,pageIndex:r,sectionIndex:i,rowIndex:a,section:s,page:l}=t,c=P.useRef(null),{userSelectedLanguage:u,handleDrop:d}=on(),{userTaskSubmitFormData:f,taskRegisterData:h,updateTaskRegisterData:g,updateTaskProgressValue:v,addUserDataFormSectionRepeatableData:m,removeUserDataFormSectionRepeatableData:A,task_status:w,TASK_PUBLISHED:E}=yr(),{isRenderView:x,isAdmin:C,isAdvanceView:S,emitSocketData:_,renderType:I}=Qt(),[F,M]=P.useState(!1),[{isDragging:L},V]=ia({type:Oo,item:{type:Oo,uuid:e.uuid,children:e.children,path:n,data:e},collect:be=>({isDragging:be.isDragging()})}),U=L?.25:1;V(c);const O=(be,Te,ye,Ae,ne,$)=>o.jsx(_xe,{page:l,row:e,section:s,data:be,path:Te,pageIndex:ye,sectionIndex:Ae,rowIndex:ne,columnIndex:$},`column-${n}-${be.uuid}`),q=It.findIndex(f,function(be){return(be==null?void 0:be.rowId)===(e==null?void 0:e.uuid)}),ie=()=>{var ye,Ae,ne;const be=It.cloneDeep(h);((Ae=(ye=f[q])==null?void 0:ye.repeatableFieldsData)==null?void 0:Ae.length)>=(e==null?void 0:e.minimumEntries)?be[e==null?void 0:e.uuid]=(ne=f[q])==null?void 0:ne.repeatableFields:delete be[e==null?void 0:e.uuid];const Te=Object.keys(be).length;g(be),v(Te)},ge=(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}}),Z=ge==null?void 0:ge.map(be=>o.jsx(dr,{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)),Q=()=>{var Ae;const be=[...f],Te=[];let ye=!0;e:for(const[,ne]of e.children.entries()){for(const[,$]of ne.children.entries())if(console.log("field.isValid",$.isValid),$!=null&&$.isPostField&&$.isValid!==1){const re={fieldId:$.uuid,rowIndex:a};console.log("inValidData",re),Te.push(re),Zt.emit("OnInvalidFieldCatch",re),ye=!1;break e}ye=!0}ye&&(Te==null?void 0:Te.length)===0&&(m(e==null?void 0:e.uuid,(Ae=be[q])==null?void 0:Ae.repeatableFields),Zt.emit("clearRepeatableFields",e==null?void 0:e.uuid),ie())},ce=be=>o.jsx(o.Fragment,{children:o.jsx(Ft,{text:!0,type:"button",className:"p-button-danger ",onClick:()=>{A(e==null?void 0:e.uuid,be==null?void 0:be.rowIndex),setTimeout(()=>{ie()},1e3)},icon:"pi pi-trash"})});return o.jsxs("div",{style:{...Dxe,opacity:U,marginTop:`${(he=e==null?void 0:e.margin)==null?void 0:he.top}px`,marginBottom:`${(ee=e==null?void 0:e.margin)==null?void 0:ee.bottom}px`,marginLeft:`${(te=e==null?void 0:e.margin)==null?void 0:te.left}px`,marginRight:`${(Y=e==null?void 0:e.margin)==null?void 0:Y.right}px`},className:x?"row container-row":"draggable row container-row",children:[F&&o.jsx(em,{renderType:I,visibilty:F,setVisibility:M,row:e,pageIndex:r,sectionIndex:i,rowIndex:a,emitSocketData:_},"row_settings_"+r+i+a),o.jsxs("div",{className:"form-builder-columns",children:[e.children.map((be,Te)=>{const ye=`${n}-${Te}`;return o.jsxs(P.Fragment,{children:[I===vf&&o.jsx(Fr,{isAdvanceView:S,data:{path:ye,childrenCount:e.children.length},onDrop:d,className:"horizontalDrag"}),O(be,ye,r,i,a,Te)]},ye)}),o.jsx(Fr,{isAdvanceView:S,data:{path:`${n}-${e.children.length}`,childrenCount:e.children.length},onDrop:d,className:"horizontalDrag",isLast:!0})]}),(e==null?void 0:e.rowIsRepeatable)&&w!==E&&o.jsx(Ft,{text:!0,type:"button",className:"p-button-success mb-3",onClick:()=>Q(),label:(R=e.addToListButtonLabel)==null?void 0:R[u==null?void 0:u.type]}),(e==null?void 0:e.rowIsRepeatable)&&o.jsxs("div",{className:"card",children:[o.jsxs(Ks,{value:(f==null?void 0:f.length)>0?(fe=f[q])==null?void 0:fe.repeatableFieldsData:[],children:[Z,w!==E&&o.jsx(dr,{style:{width:"10%"},headerStyle:{textAlign:"center"},bodyStyle:{textAlign:"left",overflow:"visible"},body:be=>ce(be)})]}),C&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(Ni,{field:e})]})]})]})},Oxe=t=>{var O,q;const{data:e,path:n,pageIndex:r,sectionIndex:i,section:a,page:s}=t,{removeSection:l,addSection:c,cloneSection:u,formBuilderFormLayout:d,userSelectedLanguage:f,handleDrop:h}=on(),{isPreview:g,isAdvanceView:v,renderType:m,emitSocketData:A}=Qt(),[w,E]=P.useState(!1),[x,C]=P.useState(!1),[S,_]=P.useState({reusable_template_schema:""}),I=P.useRef(null),[{isDragging:F},M]=ia({type:na,item:{type:na,uuid:e.uuid,children:e.children,path:n},collect:ie=>({isDragging:ie.isDragging()})}),L=F?.25:1;M(I);const V=(ie,ge,Z,Q,ce)=>o.jsx(Nxe,{page:s,section:a,data:ie,path:ge,pageIndex:Z,sectionIndex:Q,rowIndex:ce},`row-${n}-${ie.uuid}`),U=(ie,ge,Z)=>{var he,ee;const Q=ie.collapsed?"pi pi-chevron-down":"pi pi-chevron-up",ce=`${ie.className} justify-content-space-between panel-tab-section`,K=`${ie.titleClassName} pl-1 text-primary`;return o.jsxs("div",{className:ce,children:[o.jsxs("span",{ref:g===!1?I:null,children:[o.jsx("button",{className:ie.togglerClassName,children:o.jsx("span",{className:"pi pi-sliders-h dragabble"})}),o.jsxs("button",{className:ie.togglerClassName,onClick:ie.onTogglerClick,children:[o.jsx("span",{className:Q}),o.jsx(tn,{})]}),o.jsxs("span",{className:K,children:[Z+1," ",(he=e==null?void 0:e.heading)==null?void 0:he[f==null?void 0:f.type]]})]}),g===!1&&o.jsxs(o.Fragment,{children:[o.jsx(sn,{target:".clone-tool"}),o.jsx(sn,{target:".del-tool"}),o.jsx(sn,{target:".setting-tool"}),o.jsx(sn,{target:".add-section-tool"}),o.jsx(sn,{target:".save-tool"}),o.jsx(sn,{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:ie.togglerClassName,onClick:()=>{c(ge),A()},children:[o.jsx("span",{className:"pi pi-plus"}),o.jsx(tn,{})]})}),((ee=d[ge])==null?void 0:ee.children.length)>1&&o.jsx("span",{className:"del-tool","data-pr-tooltip":"Delete",children:o.jsxs("button",{className:ie.togglerClassName,onClick:()=>{l(ge,Z),A()},children:[o.jsx("span",{className:"pi pi-trash"}),o.jsx(tn,{})]})}),o.jsx("span",{className:"clone-tool","data-pr-tooltip":"Clone",children:o.jsxs("button",{className:ie.togglerClassName,onClick:()=>{u(e,ge,Z),A()},children:[o.jsx("span",{className:"pi pi-clone"}),o.jsx(tn,{})]})}),o.jsx("span",{className:"settings-tool","data-pr-tooltip":"Settings",children:o.jsxs("button",{className:ie.togglerClassName,onClick:()=>E(!0),children:[o.jsx("span",{className:"pi pi-cog"}),o.jsx(tn,{})]})})]})]})]})};return o.jsxs("div",{style:{opacity:L,marginBottom:20},className:v?"draggable row":"",children:[g===!1&&o.jsx(ap,{saveBuilderElementModalData:S,setSaveBuilderElementModalData:_,saveElementModal:x,setSaveElementModal:C}),w===!0&&o.jsx(ip,{renderType:m,visibilty:w,setVisibility:E,section:e,pageIndex:r,sectionIndex:i,emitSocketData:A},"section_settings_"+r+i),g===!1?o.jsxs(ui,{className:"mb-5",header:(O=e==null?void 0:e.heading)==null?void 0:O.english,toggleable:!0,headerTemplate:ie=>U(ie,r,i),children:[o.jsx("p",{children:(q=e==null?void 0:e.subHeadingText)==null?void 0:q[f==null?void 0:f.type]}),o.jsxs("div",{className:"",children:[e.children.map((ie,ge)=>{const Z=`${n}-${ge}`;return o.jsx(P.Fragment,{children:V(ie,Z,r,i,ge)},Z)}),o.jsx(Fr,{isAdvanceView:v,data:{path:`${n}-${e.children.length}`,childrenCount:e.children.length},onDrop:h,className:"horizontalDrag",isLast:!0})]})]}):o.jsx(o.Fragment,{})]})},Fxe=t=>{const{isRenderView:e,isPreview:n}=Qt(),{data:r,path:i,pageIndex:a}=t,s=P.useRef(null),[,l]=ia({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(Oxe,{data:u,section:u,path:d,pageIndex:f,sectionIndex:h,page:r},`section_${f}_${h}`);return o.jsx("div",{style:{overflowX:"auto"},className:`${e?"":"draggable page-css p-3 pb-4"}`,"data-image-src":r==null?void 0:r.bgImage,"data-bg-color":`#${r==null?void 0:r.bgColor}`,children:n?o.jsx(o.Fragment,{}):o.jsx("div",{className:"p-1",children:r.children.map((u,d)=>{const f=`${i}-${d}`;return o.jsx(P.Fragment,{children:c(u,f,a,d)},`section-${d}-${u.uuid}`)})})})},f6=t=>{const{handleSelectCourseItem:e,icon:n,currentItem:r,field:i,fieldIndex:a,title:s}=t,[l,c]=P.useState(!1),{userTrainingSaveData:u}=yr(),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:Fn(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,icon:"pi pi-check",className:"p-button-rounded p-button-primary mr-2 p-button-outlined","aria-label":"Search"}):o.jsx(Ft,{text:!0,icon:"pi pi-dot",className:"p-button-rounded p-button-secondary mr-2 p-button-outlined","aria-label":"Search"}),(i==null?void 0:i.uuid)===(r==null?void 0:r.uuid)?o.jsxs("span",{children:[o.jsx(Ft,{text:!0,icon:n,className:"p-button-rounded p-button-primary mr-2 inline-flex justify-content-center align-items-center w-2rem h-2rem","aria-label":"Search"}),o.jsxs("span",{className:"inline-flex justify-content-center align-items-center h-2rem",style:{color:"#0f8bfd"},children:[a+1," - ",s]})]}):o.jsxs(o.Fragment,{children:[o.jsx("span",{className:"inline-flex justify-content-center align-items-center w-2rem h-2rem border-circle border-1",children:o.jsx("i",{className:n})}),o.jsxs("span",{className:"font-medium text-500 ml-2 hoverSelect",children:[a+1," - ",s]})]})]})}),o.jsxs("div",{className:"flex align-items-center justify-content-between md:justify-content-end mt-3 md:mt-0",children:[o.jsx("div",{className:"text-right mr-3",children:o.jsxs("span",{className:" font-bold",children:[" ",i==null?void 0:i.videoDuration]})}),o.jsx(Ft,{text:!0,onClick:()=>c(!l),icon:"pi pi-eye",className:"p-button-rounded p-button-secondary mr-2 ","aria-label":"Search"})]})]}),l&&o.jsxs("div",{className:"surface-card shadow-2 border-round p-4",children:[o.jsx("div",{className:"flex justify-content-between align-items-center mb-5",children:o.jsx("span",{className:"text-xl text-900 font-medium",children:"Logs"})}),o.jsx("ul",{className:"list-none p-0 m-0",children:f()})]})]},`ul-list-${a}`)},kxe=t=>{var x,C,S,_,I,F;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}=yr(),g=(x=d==null?void 0:d.training)!=null&&x.getAssessmentSelectedQuiz?(C=d==null?void 0:d.training)==null?void 0:C.getAssessmentSelectedQuiz:()=>{},v=M=>{if(f!==null){const L=[...f],V=L.findIndex(U=>(U==null?void 0:U.fieldId)===(M==null?void 0:M.uuid));V>=0&&(L[V]={...L[V],isSeen:!0}),h([...L])}},m=M=>{var L;i(M),a(l),s({autoplay:!1,controls:!0,responsive:!0,fluid:!0,sources:[{src:(L=M==null?void 0:M.media_url)==null?void 0:L.english}]})},A=M=>{var L;v(M),i(M),c((L=M==null?void 0:M.media_url)==null?void 0:L.english),a(l)},w=M=>{v(M),i(M),u(M==null?void 0:M.documents),a(l)},E=M=>{var L,V;(L=M==null?void 0:M.quizSchema)!=null&&L.assessment_id&&(g((V=M==null?void 0:M.quizSchema)==null?void 0:V.assessment_id),a(l),i(M))};switch(e==null?void 0:e.componentType){case"video":return o.jsx(f6,{title:(S=e==null?void 0:e.title)==null?void 0:S.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(f6,{title:(_=e==null?void 0:e.title)==null?void 0:_.english,type:"image",icon:"pi pi-image",handleSelectCourseItem:A,field:e,fieldIndex:n,currentItem:r,userTrainingSaveData:f},`${e==null?void 0:e.uuid}-list`);case"document":return o.jsx(f6,{title:(I=e==null?void 0:e.title)==null?void 0:I.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(f6,{title:(F=e==null?void 0:e.quizSchema)==null?void 0:F.assessment_title,type:"quiz",icon:"pi pi-image",handleSelectCourseItem:E,field:e,fieldIndex:n,currentItem:r,userTrainingSaveData:f},`${e==null?void 0:e.uuid}-list`);default:return o.jsx(o.Fragment,{})}},Pxe=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(kxe,{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}`))})})},Mxe=t=>{var v,m,A,w,E,x,C,S,_,I;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}=Qt(),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:F=>{e(M=>{var L;return(L=n==null?void 0:n.answersText)==null?void 0:L[r==null?void 0:r.type]}),i(F,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(aa,{inputId:s,value:n.answersText,checked:((E=n.answersText)==null?void 0:E[r==null?void 0:r.type])===f,onChange:F=>{u({isCorrect:null,text:null}),e(M=>{var L;return(L=F.target.value)==null?void 0:L[r==null?void 0:r.type]}),i(F,s,l,n,c),a(!0)}}),((x=n.answersTextImage)==null?void 0:x[r==null?void 0:r.type])&&((C=n.answersTextImage)==null?void 0:C[r==null?void 0:r.type])!==""&&o.jsx(g,{mediaId:(S=n.answersTextImage)==null?void 0:S[r==null?void 0:r.type],className:"mx-3",alt:"questionImage",style:{width:"50px",height:"50px",borderRadius:50}}),o.jsx("label",{htmlFor:s,children:(_=n.answersText)==null?void 0:_[r==null?void 0:r.type]}),o.jsx("span",{style:{position:"absolute",right:10},children:(d==null?void 0:d.text)===((I=n.answersText)==null?void 0:I[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)},Lxe=t=>{var g,v,m,A,w,E,x;const{media:e}=Qt(),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 P.useEffect(()=>(Array.isArray(f)||r([]),()=>{}),[]),o.jsx(o.Fragment,{children:Array.isArray(f)&&o.jsxs("div",{onClick:()=>{var C;h(!(f!=null&&f.some(S=>{var _;return S===((_=i.answersText)==null?void 0:_[a==null?void 0:a.type])})),(C=i==null?void 0:i.answersText)==null?void 0:C[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(C=>{var S;return(C==null?void 0:C.text)===((S=i.answersText)==null?void 0:S[a==null?void 0:a.type])}))?d!=null&&d.some(C=>{var S;return(C==null?void 0:C.text)===((S=i.answersText)==null?void 0:S[a==null?void 0:a.type])&&(C==null?void 0:C.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(Br,{inputId:l,value:i.answersText,checked:f==null?void 0:f.some(C=>{var S;return C===((S=i.answersText)==null?void 0:S[a==null?void 0:a.type])}),onChange:C=>{var S;h(C.checked,(S=C.target.value)==null?void 0:S[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:(E=i.answersTextImage)==null?void 0:E[a==null?void 0:a.type],className:"mx-3",alt:"questionImage",style:{width:"50px",height:"50px",borderRadius:50}}),o.jsx("label",{htmlFor:l,children:(x=i.answersText)==null?void 0:x[a==null?void 0:a.type]}),o.jsx("span",{style:{position:"absolute",right:10},children:d!=null&&d.length&&(d!=null&&d.some(C=>{var S;return(C==null?void 0:C.text)===((S=i.answersText)==null?void 0:S[a==null?void 0:a.type])}))?d!=null&&d.some(C=>{var S;return(C==null?void 0:C.text)===((S=i.answersText)==null?void 0:S[a==null?void 0:a.type])&&(C==null?void 0:C.isCorrect)===!0})?o.jsx("span",{style:{color:"green"},children:" Correct Answer"}):o.jsx("span",{style:{color:"red"},children:" Wrong Answer"}):""})]},l)})};function bj(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Bxe(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 yj(t,e,n){return e&&Bxe(t.prototype,e),t}function Aj(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&&zS(t,e)}function h6(t){return h6=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},h6(t)}function zS(t,e){return zS=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},zS(t,e)}function Vxe(){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 Uxe(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function qxe(t,e){return e&&(typeof e=="object"||typeof e=="function")?e:Uxe(t)}function wj(t){var e=Vxe();return function(){var r=h6(t),i;if(e){var a=h6(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return qxe(this,i)}}function $xe(t){return jxe(t)||zxe(t)||Hxe(t)||Yxe()}function jxe(t){if(Array.isArray(t))return HS(t)}function zxe(t){if(typeof Symbol<"u"&&Symbol.iterator in Object(t))return Array.from(t)}function Hxe(t,e){if(t){if(typeof t=="string")return HS(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 HS(t,e)}}function HS(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 Yxe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
4288
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function tm(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:($xe(Array(e)).map(function(){return"0"}).join("")+s).slice(e*-1);return"".concat(i).concat(l).concat(a)}var Sj={daysInHours:!1,zeroPadTime:2};function Kxe(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 Xxe(t,e){var n=t.days,r=t.hours,i=t.minutes,a=t.seconds,s=Object.assign(Object.assign({},Sj),e),l=s.daysInHours,c=s.zeroPadTime,u=s.zeroPadDays,d=u===void 0?c:u,f=Math.min(2,c),h=l?tm(r+n*24,c):tm(r,f);return{days:l?"":tm(n,d),hours:h,minutes:tm(i,f),seconds:tm(a,f)}}var xj=function(t){Aj(n,t);var e=wj(n);function n(){var r;return bj(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 yj(n,[{key:"componentDidMount",value:function(){this.startCountdown()}},{key:"componentWillUnmount",value:function(){clearInterval(this.interval)}},{key:"render",value:function(){return this.props.children?P.cloneElement(this.props.children,{count:this.state.count}):null}}]),n}(P.Component);xj.propTypes={count:ua.number,children:ua.element,onComplete:ua.func};var nm=function(t){Aj(n,t);var e=wj(n);function n(r){var i;if(bj(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 yj(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 Kxe(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:Xxe(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 P.createElement(xj,{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 P.cloneElement(f,{countdown:g});var v=g.formatted,m=v.days,A=v.hours,w=v.minutes,E=v.seconds;return P.createElement("span",{className:u},g.total<0?"-":"",m,m?":":"",A,":",w,":",E)}}]),n}(P.Component);nm.defaultProps=Object.assign(Object.assign({},Sj),{controlled:!1,intervalDelay:1e3,precision:0,autoStart:!0}),nm.propTypes={date:ua.oneOfType([ua.instanceOf(Date),ua.string,ua.number]),daysInHours:ua.bool,zeroPadTime:ua.number,zeroPadDays:ua.number,controlled:ua.bool,intervalDelay:ua.number,precision:ua.number,autoStart:ua.bool,overtime:ua.bool,className:ua.string,children:ua.element,renderer:ua.func,now:ua.func,onMount:ua.func,onStart:ua.func,onPause:ua.func,onStop:ua.func,onTick:ua.func,onComplete:ua.func};const Rxe=({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(nm,{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})})},Gxe=P.memo(Rxe),Wxe=t=>{var d,f,h,g;const{assessmentData:e,onNextQuestion:n,currentQuestionIndex:r}=t,[i,a]=P.useState(Date.now()),[s,l]=P.useState(!1),c=P.useCallback(()=>{a(Date.now()),l(!1)},[r]);P.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(nm,{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)})},Qxe=()=>{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}},Jxe="1",Cj=t=>{var ve,me,Se,De,j,oe,pe,ue;const e=le=>{const[se,Oe]=P.useState(le),Ne=P.useRef(se);return P.useEffect(()=>{Ne.current=se},[se]),[se,Ne,Oe]},{endQuiz:n,AddUserAssessmentAnswer:r,assessmentData:i,taskData:a}=yr(),[s,l]=P.useState(new Date),{session_id:c,quizData:u,saveProgress:d,renderIn:f,onOpenQuiz:h,setDisplay:g,setAssessmentModal:v=()=>{},saveNewQuizData:m}=t,{quizStartAlert:A}=Qxe(),{userSelectedLanguage:w}=on(),[E,,x]=e(0),{media:C}=Qt(),S=(ve=C==null?void 0:C.image)!=null&&ve.MediaImage?(me=C==null?void 0:C.image)==null?void 0:me.MediaImage:o.jsx(o.Fragment,{}),[_,I,F]=e(null),[M,L]=P.useState(!1),[V,,U]=e([]),[O,q]=P.useState(!1),[ie,ge]=P.useState(!1),[Z,Q]=P.useState(0),[ce,K]=P.useState(0),[he,ee]=P.useState(0),[te,Y]=P.useState(!1),[R,fe]=P.useState({isCorrect:null,text:null});window.onbeforeunload=function(){return!1},P.useEffect(()=>{O||q(!0)},[V,M,O]),P.useEffect(()=>{u!==null&&(A(),be())},[]);const be=()=>{K(u.quizConfiguration.quizPassMark)},Te=P.useCallback((le,se,Oe,Ne,Ke)=>{const ut=[...V];if((Ke==null?void 0:Ke.answerInputType)!=="checkbox"){const pt={uuid:Ke==null?void 0:Ke.uuid,question:Ke==null?void 0:Ke.questionText,isCorrect:Ne.isCorrect,selectedAnswer:Ne.answersText,viewed:!0},ft=V.findIndex(kt=>(kt==null?void 0:kt.uuid)===Ke.uuid);ft>=0?(ut[ft]={...ut[ft],...pt},U(ut)):U([...V,pt])}},[_]),ye=le=>{var se;if(E!==0){const Oe=[...V],Ne=E-1;F((se=Oe[Ne])==null?void 0:se.selectedAnswer[w==null?void 0:w.type]),L(!0),x(Ne),Ae(0)}},Ae=le=>{for(const se of V)if(se.questionIndex===E+le){F(se.selectedAnswerEnglish);break}},ne=(le,se,Oe,Ne)=>{var pt;const Ke=[..._];if(le)Ke.push(se);else{const ft=Ke.findIndex(kt=>kt===se);ft>=0&&Ke.splice(ft,1)}F(Ke);const ut=[...V];if((Ne==null?void 0:Ne.answerInputType)==="checkbox"){let ft=!1;for(const[,Vt]of(Ne==null?void 0:Ne.answerOptions.entries())||[])if(Vt.isCorrect===!0)if(It.includes(Ke,(pt=Vt==null?void 0:Vt.answersText)==null?void 0:pt[w==null?void 0:w.type]))ft=!0;else{ft=!1;break}const kt={uuid:Ne==null?void 0:Ne.uuid,question:Ne==null?void 0:Ne.questionText,isCorrect:ft,selectedAnswer:Oe.answersText,viewed:!0},Sn=V.findIndex(Vt=>(Vt==null?void 0:Vt.uuid)===Ne.uuid);Sn>=0?(ut[Sn]={...ut[Sn],...kt},U(ut)):U([...V,kt])}},$=P.useCallback(()=>{var ut,pt,ft,kt,Sn,Vt,Nt,$e,yt,qt,dn,mn;const le=I.current,se=It.findIndex((ut=u==null?void 0:u.quizElements[E])==null?void 0:ut.answerOptions,function(En){return En.isCorrect===!0}),Oe=u==null?void 0:u.quizElements[E],Ne=(ft=(pt=Oe==null?void 0:Oe.answerOptions[se])==null?void 0:pt.answersText)!=null&&ft[w==null?void 0:w.type]?(Sn=(kt=Oe==null?void 0:Oe.answerOptions[se])==null?void 0:kt.answersText)==null?void 0:Sn[w==null?void 0:w.type]:"",Ke=(Vt=V[E])!=null&&Vt.isCorrect?1:0;if(u!=null&&u.quizElements&&E+1!==(u==null?void 0:u.quizElements.length)){const En={assessment_user_attempt_id:($e=i==null?void 0:i.assesment_user_attempts[((Nt=i==null?void 0:i.assesment_user_attempts)==null?void 0:Nt.length)-1])==null?void 0:$e.assessment_user_attempt_id,session_id:c,assessment_id:1,question:(yt=Oe.questionText)==null?void 0:yt[w==null?void 0:w.type],question_uid:Oe==null?void 0:Oe.uuid,start_time:s,finish_time:new Date,correct_answer:Ne,selected_answer:Array.isArray(le)?le.toString():le,is_correct_answer:Ke};r(En),F(null),x(E+1),l(new Date),Ae(2)}else if((u==null?void 0:u.quizElements.length)===E+1){const En={assessment_user_attempt_id:(dn=i==null?void 0:i.assesment_user_attempts[((qt=i==null?void 0:i.assesment_user_attempts)==null?void 0:qt.length)-1])==null?void 0:dn.assessment_user_attempt_id,session_id:c,assessment_id:1,question_uid:Oe==null?void 0:Oe.uuid,question:(mn=Oe.questionText)==null?void 0:mn[w==null?void 0:w.type],start_time:s,finish_time:new Date,correct_answer:Ne,selected_answer:Array.isArray(le)?le.toString():le,is_correct_answer:Ke};r(En),re(),de()}L(!1)},[E,V]),re=()=>{ge(!0)},W=()=>{Ee?(console.log("Restart"),g(B3),m(),q(!0),A(),be(),x(0),F(null),L(!1),U([]),ge(!1),Q(0),ee(0),Y(!1),fe({isCorrect:null,text:null})):(g(n2),v(!1))},de=()=>{var Ke,ut;let le=0,se=0,Oe=!1;for(const pt of V)pt!=null&&pt.isCorrect&&le++;Q(le),se=le/((Ke=u==null?void 0:u.quizElements)==null?void 0:Ke.length)*100,se=Math.round(se),ee(se),Oe=se>=ce,Y(Oe);const Ne={...u,...i,result:se,status:Oe,selectedAnswers:V};d(Ne),n({session_id:c,is_pass:Oe?1:0,score:le,out_of:(ut=u==null?void 0:u.quizElements)==null?void 0:ut.length,finish_time:new Date,status:1})},Ie=()=>{var le,se,Oe,Ne,Ke,ut,pt;if(((le=u==null?void 0:u.quizElements[E])==null?void 0:le.answerInputType)==="radio"){const ft=It.findIndex((se=u==null?void 0:u.quizElements[E])==null?void 0:se.answerOptions,function(kt){return kt.isCorrect===!0});_===((Ke=(Ne=(Oe=u==null?void 0:u.quizElements[E])==null?void 0:Oe.answerOptions[ft])==null?void 0:Ne.answersText)==null?void 0:Ke[w==null?void 0:w.type])?fe({isCorrect:!0,text:_}):fe({isCorrect:!1,text:_})}if(((ut=u==null?void 0:u.quizElements[E])==null?void 0:ut.answerInputType)==="checkbox"){const ft=(pt=u==null?void 0:u.quizElements[E])==null?void 0:pt.answerOptions.filter(kt=>kt.isCorrect===!0);if(_!=null&&_.length){const kt=_==null?void 0:_.map(Sn=>({isCorrect:ft==null?void 0:ft.some(Vt=>{var Nt;return((Nt=Vt==null?void 0:Vt.answersText)==null?void 0:Nt[w==null?void 0:w.type])===Sn}),text:Sn}));fe(kt)}}},Ee=(i==null?void 0:i.noOfAttempts)-((Se=i==null?void 0:i.assesment_user_attempts)==null?void 0:Se.length)>0&&!te;return o.jsx(o.Fragment,{children:u!==null&&o.jsxs("div",{children:[ie&&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"," ",(De=a==null?void 0:a.assessment)==null?void 0:De.assessment_title]}),o.jsxs("div",{children:[o.jsxs("p",{children:["You answered ",Z," out of"," ",(j=u==null?void 0:u.quizElements)==null?void 0:j.length," questions"]}),o.jsxs("p",{children:["Your assessment result: ",he,"%"]}),o.jsxs("p",{children:["Score Needed To Pass: ",ce,"%"]}),o.jsx("br",{}),o.jsxs("p",{children:["Status:"," ",te?o.jsx($c,{severity:"success",value:"Passed"}):o.jsx($c,{severity:"danger",value:"Failed"})]}),te&&o.jsx("p",{children:"Congratulations you have passed!"}),o.jsx(o.Fragment,{children:ie&&o.jsx("div",{className:"text-center my-5",children:o.jsx(Ft,{label:Ee?"Restart":"End",onClick:()=>W()})})})]})]})})}),ie&&((oe=i==null?void 0:i.assessment_type)==null?void 0:oe.key)===Jxe&&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:V==null?void 0:V.map((le,se)=>{var Oe,Ne;return o.jsxs("div",{className:"card",children:[o.jsxs("span",{className:"text-strong",children:[o.jsx("b",{children:"Question:"})," ",o.jsx("br",{}),(Oe=le==null?void 0:le.question)==null?void 0:Oe[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",{}),(Ne=le==null?void 0:le.selectedAnswer)==null?void 0:Ne[w==null?void 0:w.type]]}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("p",{children:"In Correct:"}),le!=null&&le.isCorrect?o.jsxs(o.Fragment,{children:[o.jsx(X4,{value:"",severity:"success",className:"mr-2"})," ","Yes"]}):o.jsxs(o.Fragment,{children:[o.jsx(X4,{value:"",severity:"danger",className:"mr-2"})," ","No"]})]},se)})})})]}),f!==qD?o.jsx(o.Fragment,{children:ie&&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(n2)}})})}):o.jsx(o.Fragment,{}),O&&!ie&&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(Gxe,{assessmentData:i,setDisplaySummary:ge}),o.jsx(Wxe,{currentQuestionIndex:E,assessmentData:i,onNextQuestion:$})]})}),o.jsxs("h2",{className:"text-center pb-6",children:[u==null?void 0:u.name," "]}),(pe=u==null?void 0:u.quizElements)==null?void 0:pe.map((le,se)=>{var Oe,Ne,Ke,ut,pt;return o.jsxs("div",{className:"quiz-card-box",children:[E===se&&((Oe=le==null?void 0:le.questionTextImage)==null?void 0:Oe[w==null?void 0:w.type])&&((Ne=le==null?void 0:le.questionTextImage)==null?void 0:Ne[w==null?void 0:w.type])!==""&&o.jsx("div",{className:"text-center assessment_image_container",children:o.jsx(S,{mediaId:(Ke=le==null?void 0:le.questionTextImage)==null?void 0:Ke[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:E===se&&((ut=le==null?void 0:le.questionText)==null?void 0:ut[w==null?void 0:w.type])}),E===se&&((pt=le==null?void 0:le.answerOptions)==null?void 0:pt.map((ft,kt)=>(le==null?void 0:le.answerInputType)==="checkbox"?o.jsx(P.Fragment,{children:o.jsx(Lxe,{onChangeCheckbox:ne,setSelectedOption:F,quiz:ft,userSelectedLanguage:w,onSetAnswer:Te,setIsOptionSelected:L,index:kt,eleIndex:se,ele:le,setCorrectAnswerCheck:fe,correctAnswerCheck:R,selectedOption:_})},`checkbox-question-${kt}`):o.jsx(P.Fragment,{children:o.jsx(Mxe,{setSelectedOption:F,quiz:ft,userSelectedLanguage:w,onSetAnswer:Te,setIsOptionSelected:L,index:kt,eleIndex:se,ele:le,setCorrectAnswerCheck:fe,correctAnswerCheck:R,selectedOption:_})},`radio-question-${kt}`)))]},se)})]})}),o.jsxs("div",{className:"text-center my-5",children:[o.jsxs("div",{className:"mb-1",children:["Question :"," ",E+1+"/"+(u==null?void 0:u.quizElements.length)]}),o.jsx("br",{}),E>0&&o.jsx(Ft,{size:"large",className:"mx-2",label:"Previous",onClick:le=>ye()}),((i==null?void 0:i.skippable)===!0||M===!0)&&o.jsx(Ft,{size:"large",label:(u==null?void 0:u.quizElements.length)===E+1?"Finish":M===!0?"Next":"Skip",onClick:$}),M===!0&&((ue=i==null?void 0:i.assessment_type)==null?void 0:ue.key)==="1"&&o.jsx(Ft,{size:"large",className:"ml-2 p-button-info",label:"Check Answer",onClick:()=>Ie()})]})]})]})})},Zxe=t=>{const{getAssessmentByIdFromStore:e,quizSchema:n,setQuizSchema:r,renderIn:i,updateTrainingProgress:a,currentItem:s}=t,{userTrainingSaveData:l}=yr();P.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=Um.shuffle(h).map((w,E)=>({...w}))),f!=null&&f.randomiseAnswers&&(h=h.map((w,E)=>({...w,answerOptions:Um.shuffle(w==null?void 0:w.answerOptions)}))),f!=null&&f.enableNoOfAssessmentQuestions&&(h=h.slice(0,parseInt(f==null?void 0:f.noOfAssessmentQuestions))),r({assessment_id:1,name:e==null?void 0:e.assessment_title,label:"assessment_title",quizConfiguration:d==null?void 0:d.quizConfiguration,quizElements:h})},u=d=>{if((d==null?void 0:d.status)===!0){if(l!==null){const h=l.findIndex(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(Cj,{renderIn:i,quizData:n,taskSchema:e==null?void 0:e.form_template_schema,saveProgress:d=>{u(d)}})})},eCe=t=>{var m,A;const{currentItem:e,videoJsOptions:n}=t,r=P.useRef(null),{userTrainingSaveData:i,updateUserTraining:a,taskRegisterData:s}=yr(),{media:l}=Qt(),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",()=>{_t.log("player is waiting")}),w.on("dispose",()=>{_t.log("player will dispose")})},d=w=>{if(i!==null){const E=[...i],x=E==null?void 0:E.findIndex(C=>(C==null?void 0:C.fieldId)===(e==null?void 0:e.uuid));x>=0&&(E[x].seenTime=w==null?void 0:w.target.currentTime)}},f=w=>{const E=[...i],x=E==null?void 0:E.findIndex(C=>(C==null?void 0:C.fieldId)===(w==null?void 0:w.uuid));x>=0&&(i[x]={...i[x],isSeen:!0},a(E),h("Ended"))},h=w=>{const E=r.current,x=i!==null?i==null?void 0:i.findIndex(C=>(C==null?void 0:C.fieldId)===(e==null?void 0:e.uuid)):-1;x>=0&&i[x].logs.push({action:w,videoTime:i[x].seenTime,totalTime:E.duration,timeState:new Date})},g=w=>{const{mediaId:E}=w,[x,C]=P.useState(!1);return P.useEffect(()=>{if(!x&&i!==null){const S=i.findIndex(_=>(_==null?void 0:_.fieldId)===(e==null?void 0:e.uuid));if(S>=0){C(!0);const _=r.current;_.currentTime=i[S].seenTime}C(!0)}return()=>{}},[i]),o.jsx(c,{mediaId:E,ref:r,className:"my-video",style:{borderRadius:"10px"},onPlay:()=>h("Play"),onPause:()=>h("Pause"),onEnded:()=>f(e),onTimeUpdate:d,controls:!0})},v=P.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(rV,{options:n,onReady:u,currentItem:e},e==null?void 0:e.uuid)})})},p6=t=>{var _,I,F,M,L,V;const{sections:e,showInfoPanel:n,updateTrainingProgress:r}=t,{taskOptions:i}=yr(),[a]=P.useState(!1),[,s]=P.useState(hy),[l,c]=P.useState([]),[u,d]=P.useState(null),{userSelectedLanguage:f}=on(),[h,g]=P.useState(null),[v,m]=P.useState(null),A=(_=i==null?void 0:i.training)!=null&&_.getAssessmentByIdFromStore?(I=i==null?void 0:i.training)==null?void 0:I.getAssessmentByIdFromStore:()=>{},w=(F=i==null?void 0:i.training)!=null&&F.TrainingOverView?(M=i==null?void 0:i.training)==null?void 0:M.TrainingOverView:()=>o.jsx(o.Fragment,{}),[E,x]=P.useState({autoplay:!1,controls:!0,responsive:!0,fluid:!0,sources:[{src:"http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4"}]});P.useEffect(()=>{a||C()},[a]);const C=()=>{var U,O,q,ie,ge,Z,Q,ce,K,he,ee,te,Y,R,fe,be,Te,ye,Ae,ne,$;switch(g((q=(O=(U=e[0])==null?void 0:U.children[0])==null?void 0:O.children[0])==null?void 0:q.children[0]),m(e[0]),(Q=(Z=(ge=(ie=e[0])==null?void 0:ie.children[0])==null?void 0:ge.children[0])==null?void 0:Z.children[0])==null?void 0:Q.componentType){case"video":x({autoplay:!1,controls:!0,responsive:!0,fluid:!0,sources:[{src:(te=(ee=(he=(K=(ce=e[0])==null?void 0:ce.children[0])==null?void 0:K.children[0])==null?void 0:he.children[0])==null?void 0:ee.media_url)==null?void 0:te.english}]});break;case"image":s((Te=(be=(fe=(R=(Y=e[0])==null?void 0:Y.children[0])==null?void 0:R.children[0])==null?void 0:fe.children[0])==null?void 0:be.media_url)==null?void 0:Te.english);break;case"document":c(($=(ne=(Ae=(ye=e[0])==null?void 0:ye.children[0])==null?void 0:Ae.children[0])==null?void 0:ne.children[0])==null?void 0:$.documents);break}},S=U=>{switch(U==null?void 0:U.componentType){case"video":return o.jsx("div",{children:o.jsx(eCe,{videoJsOptions:E,currentItem:U},U==null?void 0:U.uuid)});case"image":return o.jsx(ik,{field:U,isPreview:!0});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((O,q)=>o.jsx("li",{children:o.jsx("a",{href:O==null?void 0:O.url,children:O==null?void 0:O.url})},`document-item-${q}`))})]});case"quiz":return A!=null&&A.form_template_schema?o.jsx(Zxe,{renderIn:qD,getAssessmentByIdFromStore:A,quizSchema:u,setQuizSchema:d,updateTrainingProgress:r,currentItem:U}):o.jsx("div",{});case"slides":return o.jsx("div",{children:"Show slides"});case"html":return o.jsx("div",{children:"Show custom HTML Here"});default:return o.jsx("div",{})}};return o.jsxs("div",{className:"grid",children:[o.jsxs("div",{className:"col-8 scroll-height-100",children:[o.jsxs("h3",{children:[(L=v==null?void 0:v.heading)==null?void 0:L[f==null?void 0:f.type]," -"," ",(V=h==null?void 0:h.title)==null?void 0:V[f==null?void 0:f.type]," "]}),S(h),n&&o.jsx(w,{})]}),o.jsx("div",{className:"col-4 scroll-height-100",children:e.map((U,O)=>{var q,ie;return o.jsxs(ui,{className:"mb-5",header:(q=U==null?void 0:U.heading)==null?void 0:q.english,toggleable:!0,children:[o.jsx("p",{children:(ie=U==null?void 0:U.subHeadingText)==null?void 0:ie[f==null?void 0:f.type]}),U.children.map((ge,Z)=>{const Q=`${Z}`;return o.jsx("div",{children:ge.children.map((ce,K)=>{const he=`${Z}-${Q}`;return o.jsx(Pxe,{setCurrentSection:m,section:U,setCurrentItem:g,currentItem:h,path:he,fields:ce.children,setvideoJsOptions:x,setImage:s,setDocuments:c,setQuizSchema:d,updateTrainingProgress:r},`training-sidebar-${K}`)})},`training-sidebar-container-${Z}`)})]},`train-sidebar-panel-${O}`)})})]})};p6.defaultProps={showInfoPanel:!0,sections:{},updateTrainingProgress:()=>{}},p6.propTypes={showInfoPanel:Cn.bool,sections:Cn.array,updateTrainingProgress:Cn.func};const tCe=()=>{var r;const{formBuilderFormLayout:t}=on(),{isPreview:e}=Qt(),n=(i,a,s)=>o.jsx(Fxe,{data:i,path:a,pageIndex:s},`page-${i.uuid}`);return e?o.jsx(p6,{sections:((r=t[0])==null?void 0:r.children)||[],showInfoPanel:!1,updateTrainingProgress:()=>{}}):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}`)})})})},nCe=t=>{var _,I,F,M,L;const{userSelectedLanguage:e,formBuilderConfigurationType:n,builderTemplateName:r,formBuilderFormSchema:i}=on(),a=[{label:{english:"List main maintenance safety tips? "},componentType:"question",questionText:{french:"Quels sont les principaux conseils de sécurité pour la maintenance?? ",english:"List main maintenance safety tips? "},answerOptions:[],isHidden:!1,uuid:"rtest",options:[],underLined:!1,isAllowMultipleAnswer:!1,resizableColumns:!1,reorderableColumns:!1,timeLimit:0,score:0,subject_id:0,course_category_id:0,TextEditorProps:!1}],{questions:s}=t,[l,c]=P.useState(),[u,d]=P.useState([]),{media:f}=Qt(),h=(_=f==null?void 0:f.image)!=null&&_.MediaImage?(I=f==null?void 0:f.image)==null?void 0:I.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]=P.useState(0),[A,w]=P.useState(!1);function E(V,U){return(V==null?void 0:V.length)<=U?V:(V==null?void 0:V.slice(0,U))+"..."}P.useEffect(()=>{w(!0)},[]);const x=()=>{v!==0&&m(v-1)},C=()=>{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},S=(V,U)=>{let O=[...u];V.checked?O.push(U):O=O.filter(q=>(q==null?void 0:q[e==null?void 0:e.type])!==(U==null?void 0:U[e==null?void 0:e.type])),d(O)};return o.jsxs("div",{className:"scroll-height-200 mb-2",children:[A&&o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"grid",children:o.jsxs("div",{className:"col-12",children:[o.jsxs("h3",{children:[g==null?void 0:g.name," "]}),(F=g==null?void 0:g.quizElements)==null?void 0:F.map((V,U)=>{var O,q,ie,ge,Z,Q,ce,K,he;return(V==null?void 0:V.answerInputType)==="radio"?o.jsxs("div",{className:v===U?"card":" flex align-items-center p-field-radiobutton",children:[((O=V==null?void 0:V.questionTextImage)==null?void 0:O[e==null?void 0:e.type])&&((q=V==null?void 0:V.questionTextImage)==null?void 0:q[e==null?void 0:e.type])!==""&&o.jsx("div",{className:"text-center assessment_image_container",children:o.jsx(h,{mediaId:(ie=V==null?void 0:V.questionTextImage)==null?void 0:ie[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===U&&((ge=V==null?void 0:V.questionText)==null?void 0:ge[e==null?void 0:e.type])}),v===U&&((Z=V==null?void 0:V.answerOptions)==null?void 0:Z.map((ee,te)=>{var Y,R,fe,be;return o.jsxs("div",{className:"field-radiobutton",children:[o.jsx(aa,{inputId:`${te}-preview`,value:ee==null?void 0:ee.answersText,checked:l===te,onChange:()=>{c(te)}}),((Y=ee.answersTextImage)==null?void 0:Y[e==null?void 0:e.type])&&((R=ee.answersTextImage)==null?void 0:R[e==null?void 0:e.type])!==""&&o.jsx(h,{mediaId:(fe=ee.answersTextImage)==null?void 0:fe[e==null?void 0:e.type],className:"mx-3",alt:"questionImage",style:{width:"50px",height:"50px",borderRadius:50}}),o.jsx("label",{htmlFor:`${te}-preview`,children:(be=ee.answersText)==null?void 0:be[e==null?void 0:e.type]})]},te)}))]},U):(V==null?void 0:V.answerInputType)==="checkbox"?o.jsxs("div",{className:v===U?"card":" flex align-items-center p-field-radiobutton",children:[o.jsx("h3",{className:"mb-5",children:v===U&&((Q=V==null?void 0:V.questionText)==null?void 0:Q[e==null?void 0:e.type])}),v===U&&((ce=V==null?void 0:V.answerOptions)==null?void 0:ce.map((ee,te)=>{var Y,R,fe,be;return o.jsxs("div",{className:"field-radiobutton",children:[o.jsx(Br,{inputId:te,value:ee==null?void 0:ee.answersText,onChange:Te=>{S(Te,ee==null?void 0:ee.answersText)},checked:u.some(Te=>{var ye;return(Te==null?void 0:Te[e==null?void 0:e.type])===((ye=ee==null?void 0:ee.answersText)==null?void 0:ye[e==null?void 0:e.type])})}),((Y=ee.answersTextImage)==null?void 0:Y[e==null?void 0:e.type])&&((R=ee.answersTextImage)==null?void 0:R[e==null?void 0:e.type])!==""&&o.jsx(h,{mediaId:(fe=ee.answersTextImage)==null?void 0:fe[e==null?void 0:e.type],className:"mx-3",alt:"questionImage",style:{width:"50px",height:"50px",borderRadius:50}}),o.jsx("label",{htmlFor:te,children:(be=ee.answersText)==null?void 0:be[e==null?void 0:e.type]})]},te)}))]},U):o.jsxs("div",{className:v===U?"card":"",children:[o.jsx("h3",{className:"mb-5",children:v===U&&((K=V==null?void 0:V.questionText)==null?void 0:K[e==null?void 0:e.type])}),v===U&&((he=V==null?void 0:V.answerOptions)==null?void 0:he.map((ee,te)=>{var Y,R,fe,be;return o.jsxs("div",{className:"field-radiobutton",children:[o.jsx(aa,{inputId:te,value:ee==null?void 0:ee.answersText,onChange:()=>{}}),((Y=ee.answersTextImage)==null?void 0:Y[e==null?void 0:e.type])&&((R=ee.answersTextImage)==null?void 0:R[e==null?void 0:e.type])!==""&&o.jsx(h,{mediaId:(fe=ee.answersTextImage)==null?void 0:fe[e==null?void 0:e.type],className:"mx-3",alt:"questionImage",style:{width:"50px",height:"50px",borderRadius:50}}),o.jsx("label",{htmlFor:te,children:(be=ee.answersText)==null?void 0:be[e==null?void 0:e.type]})]},te)}))]},U)})]})}),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:()=>x()}),o.jsx(Ft,{text:!0,label:(g==null?void 0:g.quizElements.length)===v+1?"Finish":"Next",onClick:()=>C()})]})]}),o.jsxs("div",{className:"surface-card p-4 shadow-2 border-round",children:[o.jsx("div",{className:"font-medium text-3xl text-900 mb-3",children:"Summary"}),o.jsx("div",{className:"text-500 mb-5",children:`${n==null?void 0:n.name} - ${r}`}),o.jsxs("ul",{className:"list-none p-0 m-0 border-top-1 surface-border",children:[o.jsxs("li",{className:"flex align-items-center py-3 px-2 flex-wrap surface-ground",children:[o.jsx("div",{className:"text-500 w-full md:w-3 font-medium",children:"Total Questions:"}),o.jsx("div",{className:"text-900 w-full md:w-9",children:(M=g==null?void 0:g.quizElements)==null?void 0:M.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($c,{className:"mr-2",severity:"success",value:"True"}):o.jsx($c,{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:(L=g==null?void 0:g.quizElements)==null?void 0:L.map((V,U)=>{var O;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:E(((O=V==null?void 0:V.questionText)==null?void 0:O[e==null?void 0:e.type])||"",30)})})},`preview-question-${U}`)})})})]})]})]})]})},rCe=t=>{var C;const{data:e,path:n,pageIndex:r,sectionIndex:i,rowIndex:a,columnIndex:s,section:l,row:c,page:u}=t,d=P.useRef(null),{handleDrop:f}=on(),{isRenderView:h,isAdvanceView:g,isPreview:v}=Qt(),[{isDragging:m},A]=ia({type:ws,item:{type:ws,uuid:e==null?void 0:e.uuid,children:e.children,path:n},collect:S=>({isDragging:S.isDragging()})}),E={position:"relative",opacity:m&&!h?.25:1};A(d);const x=(S,_,I,F,M,L,V)=>o.jsx(tu,{page:u,type:"field",row:c,section:l,field:S,data:S,path:_,pageIndex:I,sectionIndex:F,rowIndex:M,columnIndex:L,fieldIndex:V},`component-${n}-${S==null?void 0:S.uuid}`);return o.jsx("div",{style:g?E:{},className:h?"form-builder-column container-column":"draggable form-builder-column container-column",children:v===!1?o.jsxs("div",{children:[e.children.length>0&&((C=e==null?void 0:e.children)==null?void 0:C.map((S,_)=>{const I=`${n}-${_}`;return o.jsxs(P.Fragment,{children:[o.jsx(Fr,{isAdvanceView:g,fieldDropArea:!0,data:{path:I,childrenCount:e.children.length,droppedField:e},onDrop:f}),x(S,I,r,i,a,s,_)]},I)})),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(nCe,{questions:e.children}):o.jsx("p",{className:"text-center",children:"No items to show"})})})},iCe={},aCe=t=>{var v,m,A,w;const{data:e,path:n,pageIndex:r,sectionIndex:i,rowIndex:a,section:s,page:l}=t,c=P.useRef(null),{isRenderView:u}=Qt(),[{isDragging:d},f]=ia({type:Oo,item:{type:Oo,uuid:e.uuid,children:e.children,path:n,data:e},collect:E=>({isDragging:E.isDragging()})}),h=d?.25:1;f(c);const g=(E,x,C,S,_,I)=>o.jsx(rCe,{page:l,row:e,section:s,data:E,path:x,pageIndex:C,sectionIndex:S,rowIndex:_,columnIndex:I},`column-${n}-${E.uuid}`);return o.jsx("div",{style:{...iCe,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((E,x)=>{const C=`${n}-${x}`;return o.jsx(P.Fragment,{children:g(E,C,r,i,a,x)},C)})})})},sCe=t=>{const{data:e,path:n,pageIndex:r,sectionIndex:i,section:a,page:s}=t,{renderType:l,emitSocketData:c,isAdvanceView:u,isPreview:d}=Qt(),[f,h]=P.useState(!1),[g,v]=P.useState(!1),[m,A]=P.useState(null),w=P.useRef(null),[{isDragging:E},x]=ia({type:na,item:{type:na,uuid:e.uuid,children:e.children,path:n},collect:_=>({isDragging:_.isDragging()})}),C=E?.25:1;x(w);const S=(_,I,F,M,L)=>o.jsx(aCe,{page:s,section:a,data:_,path:I,pageIndex:F,sectionIndex:M,rowIndex:L},`row-${n}-${_.uuid}`);return o.jsxs("div",{style:{opacity:C,marginBottom:20},className:u?"draggable row":"",children:[d===!1&&o.jsx(ap,{saveBuilderElementModalData:m,setSaveBuilderElementModalData:A,saveElementModal:g,setSaveElementModal:v}),f===!0&&o.jsx(ip,{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((_,I)=>{const F=`${n}-${I}`;return o.jsx(P.Fragment,{children:S(_,F,r,i,I)},F)})})]})},oCe=t=>{const{data:e,path:n,pageIndex:r}=t,{isRenderView:i}=Qt(),a=P.useRef(null),[{},s]=ia({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(sCe,{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(P.Fragment,{children:l(c,d,r,u)},`section-${u}-${c.uuid}`)})})})},lCe=()=>{const{formBuilderFormLayout:t}=on(),e=(n,r,i)=>o.jsx(oCe,{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}`)})})})},g6=()=>{const{renderType:t}=Qt();switch(t){case Q0:return o.jsx(ZSe,{});case t0:return o.jsx(oxe,{});case mf:return o.jsx(pxe,{});case $m:return o.jsx(Exe,{});case jm:return o.jsx(tCe,{});case vf:return o.jsx(lCe,{})}},cCe=t=>{var l;const{taskSchema:e,taskId:n,endPoints:r}=t,{userTrainingSaveData:i,saveProgressDataHook:a,updateTaskProgressValue:s}=yr();return P.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(p6,{updateTrainingProgress:()=>{},sections:(l=e==null?void 0:e.layout[0])==null?void 0:l.children})})},uCe=({taskId:t,onStart:e})=>{var w,E,x,C,S,_,I,F,M,L,V,U,O,q,ie,ge,Z,Q,ce;const[n,r]=P.useState(n2),[i,a]=P.useState(null),{examComplete:s,assessmentData:l,taskSchema:c,taskData:u,startQuiz:d}=yr();P.useEffect(()=>{var K,he,ee,te,Y;if(((K=c==null?void 0:c.formType)==null?void 0:K.key)==="exam"){let R=[...((te=(ee=(he=c==null?void 0:c.layout[0])==null?void 0:he.children[0])==null?void 0:ee.children[0])==null?void 0:te.children[0].children)||[]];l!=null&&l.randomiseQuestions&&(R=Um.shuffle(R).map(fe=>({...fe}))),l!=null&&l.randomiseAnswers&&(R=R.map(fe=>({...fe,answerOptions:Um.shuffle(fe==null?void 0:fe.answerOptions)}))),l!=null&&l.enableNoOfAssessmentQuestions&&(R=R.slice(0,parseInt(l==null?void 0:l.noOfAssessmentQuestions))),a({assessment_id:1,name:(Y=u==null?void 0:u.assessment)==null?void 0:Y.assessment_title,label:"assessment_title",quizConfiguration:c==null?void 0:c.quizConfiguration,quizElements:R})}},[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(n2)}),o.jsx(Ft,{label:"Start Immediately",onClick:()=>{g(),r(B3)}})]}),h=K=>K.completed?(g(),r(B3),o.jsx(o.Fragment,{})):o.jsxs("span",{className:"text-2xl",children:["Your Quiz is about to start in ",K.seconds," seconds"]}),g=()=>{const K={task_id:t,session_id:et(),start_time:new Date,finish_time:new Date};a(he=>({...he,...K})),d(K,a)},v=()=>{r(v7),g()},m=((w=l==null?void 0:l.assesment_user_attempts)==null?void 0:w.length)>0?(E=l==null?void 0:l.assesment_user_attempts)==null?void 0:E.some(K=>(K==null?void 0:K.is_pass)===1):!1;function A(){var be;const K=l==null?void 0:l.assesment_user_attempts[0],he=l==null?void 0:l.assesment_user_attempts[((be=l==null?void 0:l.assesment_user_attempts)==null?void 0:be.length)-1],ee=K==null?void 0:K.start_time,te=he==null?void 0:he.finish_time;if(!he||!ee||!te)return"";const Y=Fn.utc(ee),fe=Fn.utc(te).diff(Y,"seconds");return fe<60?fe+" seconds":Math.floor(fe/60)+" minutes"}return o.jsxs(o.Fragment,{children:[n===v7&&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(nm,{date:Date.now()+15e3,renderer:h}),f]})})})})}),o.jsxs("div",{children:[n===n2&&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-6 col-offset-3",children:o.jsxs("div",{className:"text-center",children:[o.jsxs("div",{children:[o.jsx("h3",{children:(x=u==null?void 0:u.assessment)==null?void 0:x.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:Fn(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:(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:"Remaining attempts:"}),o.jsx("div",{className:"text-900 w-full md:w-9 line-height-3",children:(l==null?void 0:l.noOfAttempts)-((S=l==null?void 0:l.assesment_user_attempts)==null?void 0:S.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:(_=i==null?void 0:i.quizElements)==null?void 0:_.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&&((F=(I=l==null?void 0:l.time_limit)==null?void 0:I.type)==null?void 0:F.key)==="PerExam"&&o.jsxs(o.Fragment,{children:[Math.floor((L=(M=l==null?void 0:l.time_limit)==null?void 0:M.time_limit_info)==null?void 0:L.num_of_mins)," ","mins"]}),l&&((U=(V=l==null?void 0:l.time_limit)==null?void 0:V.type)==null?void 0:U.key)==="PerQuestion"&&o.jsxs(o.Fragment,{children:[Math.floor(((q=(O=l==null?void 0:l.time_limit)==null?void 0:O.time_limit_info)==null?void 0:q.time_per_question)*((ie=i==null?void 0:i.quizElements)==null?void 0:ie.length)/60)," ","mins"]}),l&&((Z=(ge=l==null?void 0:l.time_limit)==null?void 0:ge.type)==null?void 0:Z.key)==="NoTimeLimit"&&o.jsx(o.Fragment,{children:"No Time Limit"})]})]}),((Q=l==null?void 0:l.assesment_user_attempts)==null?void 0:Q.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)-((ce=l==null?void 0:l.assesment_user_attempts)==null?void 0:ce.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(v7),e&&e()}})}):o.jsx(D7,{classes:"text-2xl p-3",value:"No attempts remaining",level:"info"})})]})})})}),n===B3&&i!==null&&o.jsx("div",{className:"fadein animation-duration-500",children:o.jsx(Cj,{session_id:i==null?void 0:i.session_id,setDisplay:r,onOpenQuiz:v,saveNewQuizData:g,quizData:i,taskSchema:c,saveProgress:s,setAssessmentModal:()=>{}})})]})]})},dCe=t=>{var R,fe,be,Te,ye,Ae,ne,$,re,W,de,Ie;const[e,n]=P.useState(!1),{isAdmin:r}=Qt(),i=P.useRef(!1),{taskId:a,endPoints:s,isRenderView:l,showFieldsAfterSubmit:c,messageWhileSubmittingForm:u,enableFormScroll:d,formScrollHeight:f="scroll-height-225",onStart:h,setAssessmentModal:g=()=>{}}=t,{setLayout:v}=on(),{taskProgressValue:m,taskRegisterData:A,task_status:w,assessmentData:E,taskProgressLoading:x,taskSchema:C,taskData:S,updateTaskFormData:_,submitTaskFormData:I,TasksLoading:F,userTaskSubmitFormData:M,TasksHTTPRequest:L,TasksSubmitLoading:V,clearTaskSchema:U,TASK_PUBLISHED:O,saveProgressDataHook:q,taskOptions:ie}=yr(),ge=ie!=null&&ie.successMessage?ie==null?void 0:ie.successMessage:"Submitted Successfully";P.useEffect(()=>{if(C!==null&&v((C==null?void 0:C.layout)||[]),a){const ve={viewed_at:new Date().toISOString()};_(M,a,s==null?void 0:s.updateFormData,L3,()=>{},ve)}return()=>{U()}},[a]);const Z=(Ee="One or more field is required")=>{i.current.show({severity:"error",summary:"Alert",detail:Ee,life:3e3})},Q=()=>{Zt.emit("onSubmitUserForm","complete"),ee()},ce=()=>{I(M,a,s==null?void 0:s.submitFormData),n(!1)},K=Ee=>{_(Ee,a,s==null?void 0:s.updateFormData,L3,()=>{var ve;(ve=i==null?void 0:i.current)==null||ve.show({severity:"success",summary:"Progress Saved",detail:"",life:3e3})})};P.useEffect(()=>{const Ee=setTimeout(()=>{var ve;M!==null&&((C==null?void 0:C.enableAutoSave)===!0||((ve=C==null?void 0:C.formType)==null?void 0:ve.key)===_7)&&q(M,a,s==null?void 0:s.updateFormData)},2e3);return()=>clearTimeout(Ee)},[A,m]);const he=(Ee,ve,me,Se)=>{var oe,pe;let De=Se;const j={fieldId:Ee.uuid};if(me!=null&&me[Ee==null?void 0:Ee.uuid]){if((ve==null?void 0:ve.length)>0){e:for(const[,ue]of ve.entries())if(((oe=ue==null?void 0:ue.children)==null?void 0:oe.length)>0&&(ue==null?void 0:ue.enableConditionalField)===!0){for(const[,le]of(ue==null?void 0:ue.children.entries())||[])if((pe=le==null?void 0:le.attributes)!=null&&pe.required&&(De=he(le,le==null?void 0:le.options,me,De),De===!1))break e}}}else Zt.emit("OnInvalidFieldCatch",j),De=!1,Z();return De},ee=P.useCallback(()=>{var ve,me,Se,De,j,oe,pe,ue,le,se,Oe,Ne,Ke,ut,pt,ft,kt,Sn,Vt,Nt,$e;let Ee=!1;e:for(const[yt,qt]of C.layout.entries())if((qt==null?void 0:qt.isHidden)===!1)for(const[dn,mn]of qt.children.entries())for(const[,En]of mn.children.entries())if(En!=null&&En.rowIsRepeatable){const Vn=M.findIndex(hn=>(hn==null?void 0:hn.rowId)===En.uuid);if(Vn>=0){if(((ve=M[Vn].repeatableFieldsData)==null?void 0:ve.length)<(En==null?void 0:En.minimumEntries)){Z(`Need minimun ${En==null?void 0:En.minimumEntries} entries`),Ee=!1;break e}Ee=!0}}else for(const[,Vn]of En.children.entries())for(const[,hn]of Vn.children.entries()){if(hn.isValid===0&&hn.isPostField===!0&&(hn==null?void 0:hn.componentType)!=="hidden-field"){const Jt={pageIndex:yt,fieldId:hn.uuid,sectionIndex:dn},Xe=M.findIndex(tt=>(tt==null?void 0:tt.fieldId)===hn.uuid);if(!(Xe===-1||(me=M[Xe])!=null&&me.postData[0]&&(((De=(Se=M[Xe])==null?void 0:Se.postData[0].postValue)==null?void 0:De.length)>0||((j=M[Xe])==null?void 0:j.postData[0].postValue)>0))){console.log("inValidData",Jt),Zt.emit("OnInvalidFieldCatch",Jt),Ee=!1,Z();break e}}if((hn==null?void 0:hn.componentType)==="radio-hierarchal"){const Jt=M.findIndex(Xe=>(Xe==null?void 0:Xe.fieldId)===hn.uuid);if(Jt>=0&&(Ee=he(hn,hn==null?void 0:hn.options,(oe=M[Jt])==null?void 0:oe.postData[0].postValue,!0),!Ee))break e}if(((pe=hn==null?void 0:hn.children)==null?void 0:pe.length)>0)for(const[,Jt]of hn.children.entries()){const Xe=Object.keys(Jt);if(Xe[0]){const tt=Jt[Xe[0]],ht={fieldId:tt.uuid,sectionIndex:dn},jt=M.findIndex(yn=>(yn==null?void 0:yn.fieldId)===tt.uuid);if(!((ue=M[jt])!=null&&ue.postData[0]&&(((se=(le=M[jt])==null?void 0:le.postData[0].postValue)==null?void 0:se.length)>0||((Oe=M[jt])==null?void 0:Oe.postData[0].postValue)>0||((ut=(Ke=(Ne=M[jt])==null?void 0:Ne.postData[0])==null?void 0:Ke.postValue)==null?void 0:ut.addressOne)!==""))){Zt.emit("OnInvalidFieldCatch",ht),Ee=!1,Z();break e}}}if(hn!=null&&hn.inlineConditionalRules&&((ft=(pt=hn==null?void 0:hn.inlineConditionalRules)==null?void 0:pt.rules)==null?void 0:ft.length)>0){for(const[,Jt]of((kt=hn==null?void 0:hn.inlineConditionalRules)==null?void 0:kt.rules.entries())||[])for(const[,Xe]of(Jt==null?void 0:Jt.conditions.entries())||[])for(const[,tt]of(Xe==null?void 0:Xe.children.entries())||[])if(tt.isValid===0){const ht={fieldId:tt.uuid,sectionIndex:dn},jt=M.findIndex(yn=>(yn==null?void 0:yn.fieldId)===tt.uuid);if(jt>=0&&!((Sn=M[jt])!=null&&Sn.postData[0]&&(((Nt=(Vt=M[jt])==null?void 0:Vt.postData[0].postValue)==null?void 0:Nt.length)>0||(($e=M[jt])==null?void 0:$e.postData[0].postValue)>0))){Zt.emit("OnInvalidFieldCatch",ht),Ee=!1,Z();break e}}}Ee=!0}Ee&&n(!0)},[M]),te=()=>o.jsx(o.Fragment,{children:o.jsxs("div",{className:"w-full",children:[o.jsx("p",{children:"Loading form data....."}),o.jsx(Aa,{className:"mb-2"}),o.jsx(Aa,{className:"mb-2"}),o.jsx(Aa,{className:"mb-2"}),o.jsx(Aa,{className:"mb-5"}),o.jsx(Aa,{className:"mb-2"}),o.jsx(Aa,{className:"mb-2"}),o.jsx(Aa,{className:"mb-2"}),o.jsx(Aa,{className:"mb-2"}),o.jsx(Aa,{className:"mb-2"}),o.jsx(Aa,{className:"mb-2"}),o.jsx(Aa,{className:"mb-2"})]})}),Y=()=>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:()=>ce(),autoFocus:!0})]});return o.jsxs("div",{style:{position:"relative"},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:u}),Y()]}),F||V||L?o.jsx("div",{className:"w-full",children:o.jsx(te,{})}):o.jsxs(o.Fragment,{children:[(((R=C==null?void 0:C.formType)==null?void 0:R.key)===I7||((fe=C==null?void 0:C.formType)==null?void 0:fe.key)==="survey")&&o.jsx(o.Fragment,{children:o.jsxs("div",{className:`px-0 ${l===!1?"builder_container":""}`,children:[o.jsxs("div",{className:"flex justify-content-center mb-2 align-items-center",children:[o.jsx("div",{className:"text-center text-900 text-3xl font-medium",children:S==null?void 0:S.task_title}),o.jsx("div",{className:"ml-4 ",children:w===Vee&&o.jsx(D7,{classes:"",value:"COMPLETED",level:"success"})})]}),c===!1&&w===O?o.jsx(o.Fragment,{children:o.jsx("h3",{className:"text-center mt-5",children:ge})}):o.jsx("div",{className:"grid",children:o.jsxs("div",{className:"col-12",children:[F&&o.jsx(te,{}),!F&&o.jsxs(o.Fragment,{children:[o.jsx(Kte,{}),o.jsx("div",{className:`${d===!0?f:" "} mt-2 mb-2`,children:o.jsx(Lf,{backend:Vf,children:C!==null&&((be=C==null?void 0:C.layout)==null?void 0:be.length)&&o.jsx(g6,{})})}),o.jsx(U3,{ref:i}),((Te=C==null?void 0:C.formType)==null?void 0:Te.key)!==""&&(w===L3||w===null)&&o.jsx("span",{children:ec.createPortal(o.jsx("div",{style:{zIndex:9999999},className:"card surface-card shadow-1 border-round py-2 render-form-footer",children:o.jsxs("div",{className:" flex justify-content-center",children:[o.jsx(Ft,{text:!0,className:"mr-2 p-button-info",label:"Save Progress",onClick:()=>K(M),loading:x,disabled:V}),o.jsx(Ft,{label:"Submit",onClick:()=>Q(),disabled:x,loading:V})]})}),document.body)})]})]})})]})}),((ye=C==null?void 0:C.formType)==null?void 0:ye.key)==="policies"&&o.jsx("div",{className:"layout-invoice-page",children:o.jsx("div",{className:"grid",children:o.jsx("div",{className:"col-12",children:o.jsx("div",{className:"card",children:o.jsx("div",{id:"invoice-content",children:o.jsxs("div",{className:"invoice",children:[o.jsx("div",{className:"invoice-header",children:o.jsx("div",{className:"invoice-company flex align-items-center",children:o.jsxs("h3",{children:[S==null?void 0:S.task_title," "]})})}),o.jsx("div",{className:"scroll-height-300 mt-2 mb-2",children:o.jsx(Lf,{backend:Vf,children:C!==null&&((Ae=C==null?void 0:C.layout)==null?void 0:Ae.length)&&o.jsx(g6,{})})}),((ne=C==null?void 0:C.formType)==null?void 0:ne.key)!==""&&(w===1||w===null)&&r===!1&&o.jsx(o.Fragment,{children:o.jsx("div",{className:"flex justify-content-center",children:o.jsx(Ft,{className:"p-button-primary",label:"Accept",onClick:()=>Q(),loading:x})})})]})})})})})}),((($=C==null?void 0:C.formType)==null?void 0:$.key)==="page"||((re=C==null?void 0:C.formType)==null?void 0:re.key)==="pdf")&&o.jsx("div",{className:"layout-invoice-page",children:o.jsx("div",{className:"grid",children:o.jsx("div",{className:"col-12",children:o.jsx("div",{className:"card",children:o.jsx(Lf,{backend:Vf,children:C!==null&&((W=C==null?void 0:C.layout)==null?void 0:W.length)&&o.jsx(g6,{})})})})})}),((de=C==null?void 0:C.formType)==null?void 0:de.key)==="training"&&o.jsx(cCe,{renderIn:Vte,taskSchema:C,taskId:a,endPoints:s}),((Ie=C==null?void 0:C.formType)==null?void 0:Ie.key)==="exam"&&o.jsx(uCe,{taskId:a,endPoints:s,onStart:h})]})]})};/**
4287
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function nSe(t,e){if(t){if(typeof t=="string")return dj(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 dj(t,e)}}function dj(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 rSe(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 iSe(t){if(Array.isArray(t))return t}function aSe(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=oSe({international:s,country:i,defaultCountry:a,withCountryCallingCode:l}),f=P.useRef(),h=function(he,ee,te){console.error("[react-phone-number-input] Expected phone number ".concat(he," to correspond to country ").concat(ee," but ").concat(te?"in reality it corresponds to country "+te:"it doesn't",".")),f.current=!0},g=function(he){return n&&Zwe(n),sSe(n,i,a,d,c,u,function(){he&&he.onCountryMismatch&&he.onCountryMismatch();for(var ee=arguments.length,te=new Array(ee),Y=0;Y<ee;Y++)te[Y]=arguments[Y];h.apply(e,te)})},v=P.useState(i),m=Zg(v,2),A=m[0],w=m[1],E=P.useState(a),x=Zg(E,2),C=x[0],S=x[1],_=P.useState(g()),I=Zg(_,2),F=I[0],M=I[1],L=P.useState(n),V=Zg(L,2),U=V[0],O=V[1],q=P.useState(),ie=Zg(q,2);ie[0];var ge=ie[1],Z=P.useCallback(function(){return ge({})},[ge]);function Q(K){if(K){d==="NATIONAL_PART_OF_INTERNATIONAL"&&(K="+".concat(J1(i,u)).concat(K));var he=new o6(i||a,u);return he.input(K),he.getNumberValue()}}P.useEffect(function(){n!==U&&(O(n),M(g()))},[n]),P.useEffect(function(){if(i!==A){w(i);var K,he=g({onCountryMismatch:function(){K=!0}});M(he),K&&O(Q(he))}},[i]),P.useEffect(function(){a!==C&&(S(a),M(g()))},[a]),P.useEffect(function(){U!==n&&r(U)},[U]);var ce=P.useCallback(function(K){var he;if(i)if(d==="INTERNATIONAL"){var ee=qS(i,u);if(K.indexOf(ee)!==0){if(K&&K[0]!=="+")K=ee+K;else if(!f.current)return M(ee),O(void 0),Z()}}else K&&K[0]==="+"&&(K=K.slice(1));else a||K&&K[0]!=="+"&&(K="+"+K);K&&(he=Q(K)),M(K),O(he)},[i,d,a,u,M,O,Z,f]);return{phoneDigits:F,setPhoneDigits:ce,inputFormat:d}}function sSe(t,e,n,r,i,a,s){if(e&&r==="INTERNATIONAL"){var l=qS(e,a);return t?(t.indexOf(l)!==0&&s(t,e),t):l}if(!t)return"";if(!e&&!n)return t;var c=new o6(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!==J1(e,a)&&s(t,e),r){case"NATIONAL":return Z1(u.formatNational());case"NATIONAL_PART_OF_INTERNATIONAL":return Z1(l6(u.formatInternational(),qS(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===J1(n,a)&&i?Z1(u.formatNational()):t;else return""}function oSe(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 lSe=["Component","country","defaultCountry","useNationalFormatForDefaultCountryValue","value","onChange","metadata","international","withCountryCallingCode"];function $S(){return $S=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},$S.apply(this,arguments)}function cSe(t,e){if(t==null)return{};var n=uSe(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 uSe(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 c6(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=cSe(t,lSe),g=aSe({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 P.createElement(n,$S({},h,{ref:e,metadata:u,inputFormat:A,international:d,withCountryCallingCode:f,country:r||i,value:v,onChange:m}))}c6=P.forwardRef(c6),c6.propTypes={value:Cn.string,onChange:Cn.func.isRequired,country:Cn.string,defaultCountry:Cn.string,international:Cn.bool,withCountryCallingCode:Cn.bool,Component:Cn.elementType.isRequired,useNationalFormatForDefaultCountryValue:Cn.bool,metadata:eSe};var dSe=["type","autoComplete","smartCaret","metadata"];function jS(){return jS=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},jS.apply(this,arguments)}function fSe(t,e){if(t==null)return{};var n=hSe(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 hSe(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 fj(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=fSe(n,dSe);return P.createElement(c6,jS({},h,{type:a,autoComplete:l,metadata:f,ref:r,Component:u?Kwe:Qwe}))}return e=P.forwardRef(e),e.propTypes={type:Cn.string,autoComplete:Cn.string,smartCaret:Cn.bool,metadata:Cn.object},e}fj();const pSe=fj(oye),gSe=t=>{var Y,R,fe,be,Te,ye,Ae,ne,$,re,W;const{taskRegisterData:e,updateTaskRegisterData:n,updateTaskProgressValue:r,updateUserFormDataSubmit:i,userTaskSubmitFormData:a,TASK_PUBLISHED:s,task_status:l}=yr(),{userSelectedLanguage:c,fieldSettingUpdate:u}=on(),{field:d,fieldIndex:f,sectionIndex:h,pageIndex:g,row:v,rowIndex:m,columnIndex:A,isDisabled:w}=t,{isAdmin:E,isRenderView:x,isPreview:C}=Qt(),[S,_]=P.useState(!1),[I,F]=P.useState(""),[M,L]=P.useState(0),[V,U]=P.useState(!1),[O,q]=P.useState(!1),ie=()=>{q(!0)},ge=()=>{q(!1)},Z=()=>{var de,Ie,Ee;if(v!=null&&v.rowIsRepeatable){if(v!=null&&v.repeatableFields){const ve=[...v.repeatableFields],me=It.findIndex(ve,function(Se){return Se.uuid===(d==null?void 0:d.uuid)});me>=0&&ve[me].fieldData?F(ve[me].fieldData):F("")}}else{const ve=a;if(ve!=null&&ve.length){for(const me of ve)if(me.fieldId===t.field.uuid&&((de=me==null?void 0:me.postData[0])==null?void 0:de.postValue)!==""&&((Ie=me==null?void 0:me.postData[0])!=null&&Ie.postValue)){F((Ee=me==null?void 0:me.postData[0])==null?void 0:Ee.postValue);break}}}U(!0)};P.useEffect(()=>{V||Z();const de=Zt.addListener("clearRepeatableFields",me=>{me===(v==null?void 0:v.uuid)&&(F(""),L(0),d.isValid=0,u(g,h,m,A,f,d))}),Ie=Zt.addListener("onSubmitUserForm",()=>{var me;(me=d==null?void 0:d.attributes)!=null&&me.required?I?d.isValid=1:d.isValid=0:d.isValid=1}),Ee=Zt.addListener("OnInvalidFieldCatch",me=>{d.uuid===(me==null?void 0:me.fieldId)?L(1):L(0)}),ve=Zt.addListener("OnGetFieldValue",me=>{var De;const Se=(De=me==null?void 0:me.repeatableColumn)==null?void 0:De.filter(j=>(j==null?void 0:j.fieldUuid)===(d==null?void 0:d.uuid));Se!=null&&Se.length});return()=>{Ie.remove(),Ee.remove(),ve.remove(),de.remove()}});const Q=de=>{_(de)},ce=()=>{_(!1)},K=(de,Ie)=>{const Ee=a,ve=It.cloneDeep(e);if(ve[d==null?void 0:d.uuid]=de,(Ee==null?void 0:Ee.length)>0)for(const me of Ee)me.fieldId===t.field.uuid&&(me.postData[0]={postValue:de});if(!(v!=null&&v.rowIsRepeatable)){n(ve);const me=Object.keys(ve).length;r(me)}},he=(de,Ie)=>{var Ee;if(a){const ve=[...a],me=It.findIndex(ve,function(De){return De.rowId===(v==null?void 0:v.uuid)});let Se=(Ee=a[me])==null?void 0:Ee.repeatableFields;Se={...Se,[de==null?void 0:de.uuid]:Ie},ve[me]={...ve[me],repeatableFields:Se},i(ve)}F(Ie),Ie!==""?de.isValid=1:de.isValid=0},ee=de=>{v!=null&&v.rowIsRepeatable?he(d,de):K(de)},te=o.jsxs("div",{onMouseOver:ie,onMouseOut:ge,children:[!x&&!C&&O&&o.jsx(Xr,{handleFieldSettingsSidebar:Q,...t}),o.jsxs("div",{className:`field ${C?" ":" builder-element-wrapper "}${(d==null?void 0:d.isFluid)===!0?" card py-3 px-4 p-fluid":"card py-3 px-4"}`,children:[o.jsx("div",{className:"grid",children:o.jsxs("div",{className:C?"col-12 ":"col-12 p-fluid",children:[(d==null?void 0:d.showHeaderText)&&o.jsx("h6",{children:(Y=d==null?void 0:d.headerText)==null?void 0:Y[c==null?void 0:c.type]}),(d==null?void 0:d.showLabel)&&o.jsxs("label",{htmlFor:f,className:"flex font-medium mb-3 text-700 text-2xl",children:[o.jsx(da,{...t}),((R=d==null?void 0:d.attributes)==null?void 0:R.required)&&o.jsx("span",{className:"must-required mr-1",children:"*"})," ",C?o.jsx(o.Fragment,{children:(fe=d==null?void 0:d.label)==null?void 0:fe[c==null?void 0:c.type]}):o.jsx(sa,{...t}),o.jsx("span",{className:"ml-3",children:(d==null?void 0:d.showToolTip)&&o.jsx(Mi,{message:(be=d==null?void 0:d.toolTip)==null?void 0:be[c==null?void 0:c.type],position:"right"})})]}),o.jsxs("div",{className:"mt-3",children:[o.jsxs("span",{className:"p-input-icon-"+(d==null?void 0:d.iconAlignment),children:[(d==null?void 0:d.showIcon)&&o.jsx("i",{className:"pi pi-"+((ye=(Te=d==null?void 0:d.icon)==null?void 0:Te.properties)==null?void 0:ye.name)}),o.jsx(pSe,{id:d==null?void 0:d.uuid,placeholder:(Ae=d==null?void 0:d.placeholder)==null?void 0:Ae[c==null?void 0:c.type],value:I,onFocus:()=>L(1),onChange:ee,international:!0,className:`${M===1&&((ne=d==null?void 0:d.attributes)!=null&&ne.required)?I?"valid":"invalid":"valid'"} p-inputtext`,readOnly:w})]}),o.jsx("div",{children:(($=d==null?void 0:d.attributes)==null?void 0:$.required)&&o.jsx("small",{className:"error",children:M===1&&!I?(re=d==null?void 0:d.validationMesssage)==null?void 0:re.english:""})}),o.jsx("div",{children:(d==null?void 0:d.showHelperText)&&o.jsx("small",{children:(W=d==null?void 0:d.helperText)==null?void 0:W[c==null?void 0:c.type]})})]})]})}),E&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(Ni,{...t})]})]})]});return o.jsxs(o.Fragment,{children:[S===!0&&o.jsx(Wi,{visibilty:S,closeSettingFieldSidebar:ce,...t}),o.jsx(Si,{...t,fieldWrap:te})]})},mSe=t=>{var K,he,ee,te,Y,R,fe,be,Te,ye,Ae;const{field:e,fieldIndex:n,pageIndex:r,sectionIndex:i,row:a,isDisabled:s}=t,{isPreview:l,isAdmin:c,isRenderView:u}=Qt(),{task_status:d,taskRegisterData:f,updateTaskRegisterData:h,updateTaskProgressValue:g,updateUserFormDataSubmit:v,userTaskSubmitFormData:m,TASK_PUBLISHED:A}=yr(),{userSelectedLanguage:w}=on(),[E,x]=P.useState(!1),[C,S]=P.useState(""),[_,I]=P.useState(0),[F,M]=P.useState(!1),L=()=>{M(!0)},V=()=>{M(!1)};P.useEffect(()=>{E||ge();const ne=Zt.addListener("clearRepeatableFields",re=>{re===(a==null?void 0:a.uuid)&&(S(""),I(0),e.isValid=0)}),$=Zt.addListener("onSubmitUserForm",()=>{var re;(re=e==null?void 0:e.attributes)!=null&&re.required?C!==""&&xu.test(C)===!0?e.isValid=1:e.isValid=0:e.isValid=1});return()=>{$.remove(),ne.remove()}});const[U,O]=P.useState(!1),q=ne=>{O(ne)},ie=()=>{O(!1)},ge=()=>{var ne,$,re;if(a!=null&&a.rowIsRepeatable){if(a!=null&&a.repeatableFields){const W=[...a.repeatableFields],de=It.findIndex(W,function(Ie){return Ie.uuid===(e==null?void 0:e.uuid)});de>=0&&W[de].fieldData?S(W[de].fieldData):S("")}}else{const W=m;if(W!=null&&W.length){for(const de of W)if(de.fieldId===t.field.uuid&&((ne=de==null?void 0:de.postData[0])==null?void 0:ne.postValue)!==""&&(($=de==null?void 0:de.postData[0])!=null&&$.postValue)){S((re=de==null?void 0:de.postData[0])==null?void 0:re.postValue),x(!0);break}}}x(!0)},Z=ne=>{S(ne);const $=m,re=It.cloneDeep(f);if(ne!==""&&xu.test(ne)===!0){if(re[e==null?void 0:e.uuid]=ne,($==null?void 0:$.length)>0)for(const W of $)W.fieldId===t.field.uuid&&(W.postData[0]={postValue:ne})}else if(delete re[e==null?void 0:e.uuid],($==null?void 0:$.length)>0)for(const W of $)W.fieldId===t.field.uuid&&(W.postData[0]={postValue:""});if(!(a!=null&&a.rowIsRepeatable)){h(re);const W=Object.keys(re).length;g(W)}},Q=(ne,$)=>{var ve;const re=[...m],W=It.findIndex(re,function(me){return me.rowId===(a==null?void 0:a.uuid)});let de=(ve=m[W])==null?void 0:ve.repeatableFields;const Ie=ne,Ee=Ie==null?void 0:Ie.uuid;de={...de,[Ee]:$},re[W]={...re[W],repeatableFields:de},v(re),S($),$!==""&&xu.test($)===!0?e.isValid=1:e.isValid=0},ce=o.jsxs("div",{onMouseOver:L,onMouseOut:V,children:[!u&&!l&&F&&o.jsx(Xr,{handleFieldSettingsSidebar:q,...t}),o.jsxs("div",{className:`field ${l?" ":" builder-element-wrapper "}${(e==null?void 0:e.isFluid)===!0?" card py-3 px-4 p-fluid":"card py-3 px-4"}`,children:[o.jsx("div",{className:"grid"}),(e==null?void 0:e.showHeaderText)&&o.jsx("h6",{children:(K=e==null?void 0:e.headerText)==null?void 0:K[w==null?void 0:w.type]}),(e==null?void 0:e.showLabel)&&o.jsxs("label",{htmlFor:n,className:"flex font-medium mb-3 text-700 text-2xl",children:[o.jsx(da,{...t}),((he=e==null?void 0:e.attributes)==null?void 0:he.required)&&o.jsx("span",{className:"must-required mr-1",children:"*"})," ",l?o.jsx(o.Fragment,{children:(ee=e==null?void 0:e.label)==null?void 0:ee[w==null?void 0:w.type]}):o.jsx(sa,{...t}),o.jsx("span",{className:"ml-3",children:(e==null?void 0:e.showToolTip)&&o.jsx(Mi,{message:(te=e==null?void 0:e.toolTip)==null?void 0:te[w==null?void 0:w.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-"+((R=(Y=e==null?void 0:e.icon)==null?void 0:Y.properties)==null?void 0:R.name)}),o.jsx(bn,{id:e==null?void 0:e.uuid,placeholder:(fe=e==null?void 0:e.placeholder)==null?void 0:fe[w==null?void 0:w.type],value:C,onFocus:()=>I(1),onChange:ne=>{a!=null&&a.rowIsRepeatable?Q(r,i):Z(ne.target.value)},className:_===1&&((be=e==null?void 0:e.attributes)!=null&&be.required)?C?"valid":"invalid":"valid'",readOnly:s})]}),((Te=e==null?void 0:e.attributes)==null?void 0:Te.required)&&o.jsx("div",{children:o.jsx("small",{className:"error",children:_===1&&!C?(ye=e==null?void 0:e.validationMesssage)==null?void 0:ye[w==null?void 0:w.type]:""})}),C!==""&&_===1&&xu.test(C)===!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:(Ae=e==null?void 0:e.helperText)==null?void 0:Ae[w==null?void 0:w.type]})})]}),c&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(Ni,{...t})]})]});return o.jsxs(o.Fragment,{children:[U===!0&&o.jsx(Wi,{visibilty:U,closeSettingFieldSidebar:ie,...t},e==null?void 0:e.uuid),o.jsx(Si,{...t,fieldWrap:ce})]})},vSe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAwAAAAMACAYAAACTgQCOAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6m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EdxjgQz5/JD8LQEFMvbnrIyR+l+kvs/0UuDxa/GUPo0nSK6Rh3kPiKoKl0/wt9xD8O1bwxxF0ehpO02IBKJipw4HvBN4NrAZez4tvDxwD/pnE90n8T9p8128kSbmkRINh3gScT3AqcAIwb+qXJ4C7gO8Df8kG/tqH/RSLBaDg0nUMcByLATiJzU74kooqJRr8hL0B+BmjTviSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJEmSJKnG/n/K52f+BC6LdAAAAABJRU5ErkJggg==",ASe=t=>{var ce,K,he,ee,te,Y,R,fe,be;const{field:e,pageIndex:n,sectionIndex:r,row:i,isDisabled:a}=t,{isAdmin:s,isPreview:l,isRenderView:c}=Qt(),{task_status:u,taskRegisterData:d,updateTaskRegisterData:f,updateTaskProgressValue:h,updateUserFormDataSubmit:g,userTaskSubmitFormData:v,TASK_PUBLISHED:m}=yr(),{userSelectedLanguage:A}=on(),[w,E]=P.useState(!1),[x,C]=P.useState(""),[S,_]=P.useState(0),[I,F]=P.useState(!1),M=()=>{F(!0)},L=()=>{F(!1)};P.useEffect(()=>{w||ie();const Te=Zt.addListener("clearRepeatableFields",Ae=>{Ae===(i==null?void 0:i.uuid)&&(C(""),_(0),e.isValid=0)}),ye=Zt.addListener("onSubmitUserForm",()=>{var Ae;(Ae=e==null?void 0:e.attributes)!=null&&Ae.required?x!==""&&xu.test(x)===!0?e.isValid=1:e.isValid=0:e.isValid=1});return()=>{ye.remove(),Te.remove()}});const[V,U]=P.useState(!1),O=Te=>{U(Te)},q=()=>{U(!1)},ie=()=>{var Te,ye,Ae;if(i!=null&&i.rowIsRepeatable){const ne=[...(i==null?void 0:i.repeatableFields)||[]],$=It.findIndex(ne,function(re){return re.uuid===(e==null?void 0:e.uuid)});$>=0&&ne[$].fieldData?C(ne[$].fieldData):C("")}else{const ne=v;if(ne!=null&&ne.length){for(const $ of ne)if($.fieldId===t.field.uuid&&((Te=$==null?void 0:$.postData[0])==null?void 0:Te.postValue)!==""&&((ye=$==null?void 0:$.postData[0])!=null&&ye.postValue)){C((Ae=$==null?void 0:$.postData[0])==null?void 0:Ae.postValue),E(!0);break}}}E(!0)},ge=(Te,ye)=>{C(ye);const Ae=v,ne=It.cloneDeep(d);if(Ae!==null){if(ye){if(ne[e==null?void 0:e.uuid]=ye,(Ae==null?void 0:Ae.length)>0)for(const $ of Ae)$.fieldId===t.field.uuid&&($.postData[0]={postValue:ye})}else if(delete ne[e==null?void 0:e.uuid],(Ae==null?void 0:Ae.length)>0)for(const $ of Ae)$.fieldId===t.field.uuid&&($.postData[0]={postValue:""})}if(!(i!=null&&i.rowIsRepeatable)){f(ne);const $=Object.keys(ne).length;h($)}},Z=(Te,ye,Ae,ne)=>{var de;const $=[...v],re=It.findIndex($,function(Ie){return Ie.rowId===(i==null?void 0:i.uuid)});let W=(de=v[re])==null?void 0:de.repeatableFields;W={...W,[Ae==null?void 0:Ae.uuid]:ne},$[re]={...$[re],repeatableFields:W},g($),C(ne),ne!==""&&xu.test(ne)===!0?e.isValid=1:e.isValid=0},Q=o.jsxs("div",{onMouseOver:M,onMouseOut:L,children:[!c&&!l&&I&&o.jsx(Xr,{handleFieldSettingsSidebar:O,...t}),o.jsxs("div",{className:`field ${l?" ":" builder-element-wrapper "}${(e==null?void 0:e.isFluid)===!0?" card py-3 px-4 p-fluid":"card py-3 px-4"}`,children:[o.jsx("div",{className:"grid",children:o.jsxs("div",{className:s?"col-6 ":"col-12 p-fluid",children:[(e==null?void 0:e.showHeaderText)&&o.jsx("h6",{children:(ce=e==null?void 0:e.headerText)==null?void 0:ce[A==null?void 0:A.type]}),(e==null?void 0:e.showLabel)&&o.jsxs("label",{htmlFor:e.uuid,className:"flex font-medium mb-3 text-700 text-2xl",children:[o.jsx(da,{...t}),((K=e==null?void 0:e.attributes)==null?void 0:K.required)&&o.jsx("span",{className:"must-required mr-1",children:"*"})," ",l?o.jsx(o.Fragment,{children:(he=e==null?void 0:e.label)==null?void 0:he[A==null?void 0:A.type]}):o.jsx(sa,{...t}),(e==null?void 0:e.showToolTip)&&o.jsx("span",{className:"ml-3",children:o.jsx(Mi,{message:(ee=e==null?void 0:e.toolTip)==null?void 0:ee[A==null?void 0:A.type],position:"right"})})]}),o.jsx("div",{children:o.jsx(d8,{cancelIcon:o.jsx("img",{src:vSe,alt:"custom-cancel-image",width:"25px",height:"25px"}),offIcon:o.jsx("img",{src:bSe,alt:"custom-image-active",width:"25px",height:"25px"}),onIcon:o.jsx("img",{src:ySe,alt:"custom-image",width:"25px",height:"25px"}),id:e==null?void 0:e.uuid,placeholder:(te=e==null?void 0:e.placeholder)==null?void 0:te[A==null?void 0:A.type],value:x,onFocus:()=>_(1),onChange:Te=>{i!=null&&i.rowIsRepeatable?Z(n,r,e,Te.value):ge(Te,Te.value)},className:S===1&&((Y=e==null?void 0:e.attributes)!=null&&Y.required)?x?"valid":"invalid":"valid'",readOnly:a})}),((R=e==null?void 0:e.attributes)==null?void 0:R.required)&&o.jsx("div",{children:o.jsx("small",{className:"error",children:S===1&&!x?(fe=e==null?void 0:e.validationMesssage)==null?void 0:fe[A==null?void 0:A.type]:""})}),(e==null?void 0:e.showHelperText)&&o.jsx("div",{children:o.jsx("small",{children:(be=e==null?void 0:e.helperText)==null?void 0:be[A==null?void 0:A.type]})})]})}),s&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(Ni,{...t})]})]})]});return o.jsxs(o.Fragment,{children:[V===!0&&o.jsx(Wi,{visibilty:V,closeSettingFieldSidebar:q,...t},e==null?void 0:e.uuid),o.jsx(Si,{...t,fieldWrap:Q})]})},wSe=t=>{var ce,K,he,ee,te,Y,R,fe,be;const{field:e,pageIndex:n,sectionIndex:r,row:i,isDisabled:a}=t,{isPreview:s,isAdmin:l,isRenderView:c}=Qt(),{task_status:u,taskRegisterData:d,updateTaskRegisterData:f,updateTaskProgressValue:h,updateUserFormDataSubmit:g,userTaskSubmitFormData:v,TASK_PUBLISHED:m}=yr(),{userSelectedLanguage:A}=on(),[w,E]=P.useState(!1),[x,C]=P.useState(""),[S,_]=P.useState(0),[I,F]=P.useState(!1),M=()=>{F(!0)},L=()=>{F(!1)};P.useEffect(()=>{w||ie();const Te=Zt.addListener("clearRepeatableFields",Ae=>{Ae===(i==null?void 0:i.uuid)&&(C(""),_(0),e.isValid=0)}),ye=Zt.addListener("onSubmitUserForm",()=>{var Ae;(Ae=e==null?void 0:e.attributes)!=null&&Ae.required?x!==""&&xu.test(x)===!0?e.isValid=1:e.isValid=0:e.isValid=1});return()=>{ye.remove(),Te.remove()}});const[V,U]=P.useState(!1),O=Te=>{U(Te)},q=()=>{U(!1)},ie=()=>{var Te,ye,Ae;if(i!=null&&i.rowIsRepeatable){if(i!=null&&i.repeatableFields){const ne=[...i.repeatableFields],$=It.findIndex(ne,function(re){return re.uuid===(e==null?void 0:e.uuid)});$>=0&&ne[$].fieldData?C(ne[$].fieldData):C("")}}else{const ne=v;if(ne!=null&&ne.length){for(const $ of ne)if($.fieldId===t.field.uuid&&((Te=$==null?void 0:$.postData[0])==null?void 0:Te.postValue)!==""&&((ye=$==null?void 0:$.postData[0])!=null&&ye.postValue)){C((Ae=$==null?void 0:$.postData[0])==null?void 0:Ae.postValue),E(!0);break}}}E(!0)},ge=(Te,ye)=>{C(ye);const Ae=v,ne=It.cloneDeep(d);if(Ae!==null){if(ye){if(ne[e==null?void 0:e.uuid]=ye,(Ae==null?void 0:Ae.length)>0)for(const $ of Ae)$.fieldId===t.field.uuid&&($.postData[0]={postValue:ye})}else if(delete ne[e==null?void 0:e.uuid],(Ae==null?void 0:Ae.length)>0)for(const $ of Ae)$.fieldId===t.field.uuid&&($.postData[0]={postValue:""})}if(!(i!=null&&i.rowIsRepeatable)){f(ne);const $=Object.keys(ne).length;h($)}},Z=(Te,ye,Ae,ne)=>{var de;const $=[...v],re=It.findIndex($,function(Ie){return Ie.rowId===(i==null?void 0:i.uuid)});let W=(de=v[re])==null?void 0:de.repeatableFields;W={...W,[Ae==null?void 0:Ae.uuid]:ne},$[re]={...$[re],repeatableFields:W},g($),C(ne),ne!==""&&xu.test(ne)===!0?e.isValid=1:e.isValid=0},Q=o.jsxs("div",{onMouseOver:M,onMouseOut:L,children:[!c&&!s&&I&&o.jsx(Xr,{handleFieldSettingsSidebar:O,...t}),o.jsx("div",{className:`field ${s?" ":" builder-element-wrapper "}${(e==null?void 0:e.isFluid)===!0?" card py-3 px-4 p-fluid":"card py-3 px-4"}`,children:o.jsxs("div",{className:"grid",children:[o.jsxs("div",{className:s?"col-12 p-fluid":"col-12 p-fluid field-form-builder",children:[(e==null?void 0:e.showHeaderText)&&o.jsx("h6",{children:(ce=e==null?void 0:e.headerText)==null?void 0:ce[A==null?void 0:A.type]}),(e==null?void 0:e.showLabel)&&o.jsxs("label",{htmlFor:e.uuid,className:"flex font-medium mb-3 text-700 text-2xl",children:[o.jsx(da,{...t}),((K=e==null?void 0:e.attributes)==null?void 0:K.required)&&o.jsx("span",{className:"must-required mr-1",children:"*"})," ",s?o.jsx(o.Fragment,{children:(he=e==null?void 0:e.label)==null?void 0:he[A==null?void 0:A.type]}):o.jsx(sa,{...t}),o.jsx("span",{className:"ml-3",children:(e==null?void 0:e.showToolTip)&&o.jsx(Mi,{message:(ee=e==null?void 0:e.toolTip)==null?void 0:ee[A==null?void 0:A.type],position:"right"})})]}),o.jsx(p8,{id:e==null?void 0:e.uuid,placeholder:(te=e==null?void 0:e.placeholder)==null?void 0:te[A==null?void 0:A.type],value:x,onFocus:()=>_(1),onChange:Te=>{i!=null&&i.rowIsRepeatable?Z(n,r,e,Te.value):ge(Te,Te.value)},className:S===1&&((Y=e==null?void 0:e.attributes)!=null&&Y.required)?x?"valid":"invalid":"valid'",readOnly:a}),((R=e==null?void 0:e.attributes)==null?void 0:R.required)&&o.jsx("div",{children:o.jsx("small",{className:"error",children:S===1&&!x?(fe=e==null?void 0:e.validationMesssage)==null?void 0:fe[A==null?void 0:A.type]:""})}),(e==null?void 0:e.showHelperText)&&o.jsx("div",{children:o.jsx("small",{children:(be=e==null?void 0:e.helperText)==null?void 0:be[A==null?void 0:A.type]})})]}),l&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(Ni,{...t})]})]})})]});return o.jsxs(o.Fragment,{children:[V===!0&&o.jsx(Wi,{visibilty:V,closeSettingFieldSidebar:q,...t},e==null?void 0:e.uuid),o.jsx(Si,{...t,fieldWrap:Q})]})},SSe=t=>{var Q,ce,K,he,ee,te;const{field:e,pageIndex:n,sectionIndex:r,row:i}=t,{isPreview:a,isAdmin:s,isRenderView:l}=Qt(),{task_status:c,taskRegisterData:u,updateTaskRegisterData:d,updateTaskProgressValue:f,updateUserFormDataSubmit:h,userTaskSubmitFormData:g,TASK_PUBLISHED:v}=yr(),{userSelectedLanguage:m}=on(),[A,w]=P.useState(!1),[E,x]=P.useState(""),[C,S]=P.useState(0),[_,I]=P.useState(!1),F=()=>{I(!0)},M=()=>{I(!1)};P.useEffect(()=>{A||q();const Y=Zt.addListener("clearRepeatableFields",fe=>{fe===(i==null?void 0:i.uuid)&&(x(""),S(0),e.isValid=0)}),R=Zt.addListener("onSubmitUserForm",()=>{var fe;(fe=e==null?void 0:e.attributes)!=null&&fe.required&&(E!==""&&xu.test(E)===!0?e.isValid=1:e.isValid=0)});return()=>{R.remove(),Y.remove()}});const[L,V]=P.useState(!1),U=Y=>{V(Y)},O=()=>{V(!1)},q=()=>{var Y,R,fe;if(i!=null&&i.rowIsRepeatable){if(i!=null&&i.repeatableFields){const be=[...i.repeatableFields],Te=It.findIndex(be,function(ye){return ye.uuid===(e==null?void 0:e.uuid)});Te>=0&&be[Te].fieldData?x(be[Te].fieldData):x("")}}else{const be=g;if(be!=null&&be.length){for(const Te of be)if(Te.fieldId===t.field.uuid&&((Y=Te==null?void 0:Te.postData[0])==null?void 0:Y.postValue)!==""&&((R=Te==null?void 0:Te.postData[0])!=null&&R.postValue)){x((fe=Te==null?void 0:Te.postData[0])==null?void 0:fe.postValue),w(!0);break}}}w(!0)},ie=(Y,R)=>{x(R);const fe=g,be=It.cloneDeep(u);if(R){if(be[e==null?void 0:e.uuid]=R,(fe==null?void 0:fe.length)>0)for(const Te of fe)Te.fieldId===t.field.uuid&&(Te.postData[0]={postValue:R})}else if(delete be[e==null?void 0:e.uuid],(fe==null?void 0:fe.length)>0)for(const Te of fe)Te.fieldId===t.field.uuid&&(Te.postData[0]={postValue:""});if(!(i!=null&&i.rowIsRepeatable)){d(be);const Te=Object.keys(be).length;f(Te)}},ge=(Y,R,fe,be)=>{var ne;const Te=[...g],ye=It.findIndex(Te,function($){return $.rowId===(i==null?void 0:i.uuid)});let Ae=(ne=g[ye])==null?void 0:ne.repeatableFields;Ae={...Ae,[fe==null?void 0:fe.uuid]:be},Te[ye]={...Te[ye],repeatableFields:Ae},h(Te),x(be),be!==""&&xu.test(be)===!0?e.isValid=1:e.isValid=0},Z=o.jsxs("div",{onMouseOver:F,onMouseOut:M,children:[!l&&!a&&_&&o.jsx(Xr,{handleFieldSettingsSidebar:U,...t}),o.jsxs("div",{className:`field ${a?" ":" builder-element-wrapper "}${(e==null?void 0:e.isFluid)===!0?" p-fluid ":" "} ${l?" ":" py-6 px-4 card"}`,children:[o.jsxs("div",{className:a?"p-fluid":"card p-fluid field-form-builder",children:[!a&&o.jsx("label",{className:"block font-medium mb-3 text-700 text-2xl",children:"Hidden field"}),o.jsx(bn,{type:a===!0?"hidden":"text",id:e==null?void 0:e.uuid,placeholder:(Q=e==null?void 0:e.placeholder)==null?void 0:Q[m==null?void 0:m.type],value:(ce=e==null?void 0:e.defaultValue)==null?void 0:ce[m==null?void 0:m.type],onFocus:()=>S(1),onLoad:()=>{i!=null&&i.rowIsRepeatable?ge(n,r,e,e==null?void 0:e.defaultValue):ie("",e==null?void 0:e.defaultValue)},className:C===1&&((K=e==null?void 0:e.attributes)!=null&&K.required)?E?"valid":"invalid":"valid'",readOnly:c===v}),((he=e==null?void 0:e.attributes)==null?void 0:he.required)&&o.jsx("div",{children:o.jsx("small",{className:"error",children:C===1&&!E?(ee=e==null?void 0:e.validationMesssage)==null?void 0:ee[m==null?void 0:m.type]:""})}),(e==null?void 0:e.showHelperText)&&o.jsx("div",{children:o.jsx("small",{children:(te=e==null?void 0:e.helperText)==null?void 0:te[m==null?void 0:m.type]})})]}),s&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(Ni,{...t})]})]})]});return o.jsxs(o.Fragment,{children:[L===!0&&o.jsx(Wi,{visibilty:L,closeSettingFieldSidebar:O,...t}),o.jsx(Si,{...t,fieldWrap:Z})]})},hj=t=>{var C;const{field:e,fieldIndex:n,pageIndex:r,sectionIndex:i,rowIndex:a,columnIndex:s,path:l,labelType:c}=t,[u,d]=P.useState(e),{isPreview:f}=Qt();P.useEffect(()=>{var S;return E((S=e[c])==null?void 0:S[h==null?void 0:h.type]),()=>{}},[e]);const{userSelectedLanguage:h,fieldSettingUpdate:g,fieldSettingUpdateInlineConditional:v,gridComponentFieldSettingUpdate:m}=on(),A=(S,_,I)=>{d(F=>({...F,[S]:{...F[S],[_==null?void 0:_.type]:I}}))},[w,E]=P.useState((C=e[c])==null?void 0:C[h==null?void 0:h.type]);P.useEffect(()=>(x(),()=>{}),[u]);const x=()=>{const S=l.split("-").map(Number);(t==null?void 0:t.fieldContainer)==="inline-condition-container"?v(S[ma],S[va],S[Ca],S[Ta],S[Ea],S[Oa],S[Zo],S[Fo],u):(S==null?void 0:S.length)>Oa&&(S==null?void 0:S.length)===tc+1&&(e!=null&&e.componentType)&&(t==null?void 0:t.fieldContainer)==="grid-container"?m(S[ma],S[va],S[Ca],S[Ta],S[Ea],S[5],S[6],S[7],u):g(r,i,a,s,n,{...e,[c]:u[c]})};return o.jsx(o.Fragment,{children:o.jsx(p4,{style:{display:"inline-block"},className:"builder-input-label-edit",html:w,disabled:f,onChange:S=>{var _;E(b4.sanitize((_=S==null?void 0:S.target)==null?void 0:_.value))},onBlur:S=>{var I;const _=b4.sanitize((I=S==null?void 0:S.target)==null?void 0:I.innerText);E(_),A(c,h,_)},tagName:"article"})})},xSe=t=>{var te,Y,R,fe,be,Te,ye;const{taskRegisterData:e,updateTaskRegisterData:n,updateTaskProgressValue:r,updateUserFormDataSubmit:i,userTaskSubmitFormData:a}=yr(),{userSelectedLanguage:s,fieldSettingUpdate:l}=on(),{field:c,fieldIndex:u,sectionIndex:d,pageIndex:f,row:h,rowIndex:g,columnIndex:v,isDisabled:m}=t,{isPreview:A,isAdmin:w,isRenderView:E}=Qt(),[x,C]=P.useState(!1),[S,_]=P.useState(""),[I,F]=P.useState(0),[M,L]=P.useState(!1),[V,U]=P.useState(!1),O=()=>{U(!0)},q=()=>{U(!1)},ie=()=>{var Ae,ne,$;if(h!=null&&h.rowIsRepeatable){if(h!=null&&h.repeatableFields){const re=[...h.repeatableFields],W=It.findIndex(re,function(de){return de.uuid===(c==null?void 0:c.uuid)});W>=0&&re[W].fieldData?_(re[W].fieldData):_("")}}else{const re=a;if(re!=null&&re.length){for(const W of re)if(W.fieldId===t.field.uuid&&((Ae=W==null?void 0:W.postData[0])==null?void 0:Ae.postValue)!==""&&((ne=W==null?void 0:W.postData[0])!=null&&ne.postValue)){_(($=W==null?void 0:W.postData[0])==null?void 0:$.postValue);break}}}L(!0)};P.useEffect(()=>{M||ie();const Ae=Zt.addListener("clearRepeatableFields",W=>{W===(h==null?void 0:h.uuid)&&(_(""),F(0),c.isValid=0,l(f,d,g,v,u,c))}),ne=Zt.addListener("onSubmitUserForm",()=>{var W;(W=c==null?void 0:c.attributes)!=null&&W.required?S?c.isValid=1:c.isValid=0:c.isValid=1}),$=Zt.addListener("OnInvalidFieldCatch",W=>{c.uuid===(W==null?void 0:W.fieldId)?F(1):F(0)}),re=Zt.addListener("OnGetFieldValue",W=>{var Ie;const de=(Ie=W==null?void 0:W.repeatableColumn)==null?void 0:Ie.filter(Ee=>(Ee==null?void 0:Ee.fieldUuid)===(c==null?void 0:c.uuid));de!=null&&de.length});return()=>{ne.remove(),$.remove(),re.remove(),Ae.remove()}});const ge=Ae=>{C(Ae)},Z=()=>{C(!1)},Q=Ae=>{var re,W;_(Ae.target.value);const ne=a,$=It.cloneDeep(e);if(ne!==null){if((re=Ae==null?void 0:Ae.target)!=null&&re.value){if($[c==null?void 0:c.uuid]=(W=Ae==null?void 0:Ae.target)==null?void 0:W.value,(ne==null?void 0:ne.length)>0)for(const de of ne)de.fieldId===t.field.uuid&&(de.postData[0]={postValue:Ae.target.value})}else if(delete $[c==null?void 0:c.uuid],(ne==null?void 0:ne.length)>0)for(const de of ne)de.fieldId===t.field.uuid&&(de.postData[0]={postValue:""})}if(!(h!=null&&h.rowIsRepeatable)){n($);const de=Object.keys($).length;r(de)}},ce=(Ae,ne,$,re)=>{var W;if(a){const de=[...a],Ie=It.findIndex(de,function(ve){return ve.rowId===(h==null?void 0:h.uuid)});let Ee=(W=a[Ie])==null?void 0:W.repeatableFields;Ee={...Ee,[$==null?void 0:$.uuid]:re},de[Ie]={...de[Ie],repeatableFields:Ee},i(de)}_(re),re!==""?$.isValid=1:$.isValid=0},K=10,he=()=>{const Ae=[];for(let ne=0;ne<=K;ne++)Ae.push(o.jsxs("label",{children:[o.jsx("input",{onChange:$=>{h!=null&&h.rowIsRepeatable?ce(f,d,c,$.target.value):Q($)},checked:parseInt(S)===ne,name:"liker-scale"+(c==null?void 0:c.uuid),type:"radio",value:ne,disabled:m}),o.jsx("span",{children:ne})]},`field-${c==null?void 0:c.uuid}-likertScale-${ne} ${parseInt(S)===ne?"scale-selected":""}`));return Ae},ee=o.jsxs("div",{onMouseOver:O,onMouseOut:q,children:[!E&&!A&&V&&o.jsx(Xr,{handleFieldSettingsSidebar:ge,...t}),o.jsxs("div",{className:`field ${A?" ":" builder-element-wrapper "}${(c==null?void 0:c.isFluid)===!0?" card py-3 px-4 p-fluid":"card py-3 px-4"}`,children:[o.jsxs("div",{className:"",children:[(c==null?void 0:c.showHeaderText)&&o.jsx("h6",{children:(te=c==null?void 0:c.headerText)==null?void 0:te[s==null?void 0:s.type]}),(c==null?void 0:c.showLabel)&&o.jsxs("label",{htmlFor:u,className:"flex font-medium mb-3 text-700 text-2xl",children:[o.jsx(da,{...t}),((Y=c==null?void 0:c.attributes)==null?void 0:Y.required)&&o.jsx("span",{className:"must-required mr-1",children:"*"})," ",A?o.jsx(o.Fragment,{children:(R=c==null?void 0:c.label)==null?void 0:R[s==null?void 0:s.type]}):o.jsx(sa,{...t}),o.jsx("span",{className:"ml-3",children:(c==null?void 0:c.showToolTip)&&o.jsx(Mi,{message:(fe=c==null?void 0:c.toolTip)==null?void 0:fe[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(hj,{...t,labelType:"startingMessage"})}),o.jsx("div",{className:"font-medium text-900",children:o.jsx(hj,{...t,labelType:"endingMessage"})})]}),o.jsx("div",{className:"likert",children:he()})]})}),o.jsx("div",{children:((be=c==null?void 0:c.attributes)==null?void 0:be.required)&&o.jsx("small",{className:"error",children:I===1&&!S?(Te=c==null?void 0:c.validationMesssage)==null?void 0:Te.language:""})}),o.jsx("div",{children:(c==null?void 0:c.showHelperText)&&o.jsx("small",{children:(ye=c==null?void 0:c.helperText)==null?void 0:ye[s==null?void 0:s.type]})})]}),w&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(Ni,{...t})]})]})]});return o.jsxs(o.Fragment,{children:[x===!0&&o.jsx(Wi,{visibilty:x,closeSettingFieldSidebar:Z,...t}),o.jsx(Si,{...t,fieldWrap:ee})]})},CSe=t=>{var te,Y,R,fe,be,Te,ye,Ae,ne,$,re,W;const{taskRegisterData:e,updateTaskRegisterData:n,updateTaskProgressValue:r,updateUserFormDataSubmit:i,userTaskSubmitFormData:a,task_status:s,TASK_PUBLISHED:l}=yr(),{userSelectedLanguage:c,fieldSettingUpdate:u}=on(),{field:d,fieldIndex:f,sectionIndex:h,pageIndex:g,row:v,rowIndex:m,columnIndex:A,isDisabled:w}=t,{isPreview:E,isAdmin:x,isRenderView:C}=Qt(),[S,_]=P.useState(!1),[I,F]=P.useState(""),[M,L]=P.useState(0),[V,U]=P.useState(!1),[O,q]=P.useState(!1),ie=()=>{q(!0)},ge=()=>{q(!1)},Z=()=>{var de,Ie,Ee;if(v!=null&&v.rowIsRepeatable){if(v!=null&&v.repeatableFields){const ve=[...v.repeatableFields],me=It.findIndex(ve,function(Se){return Se.uuid===(d==null?void 0:d.uuid)});me>=0&&ve[me].fieldData?F(ve[me].fieldData):F("")}}else{const ve=a;if(ve!=null&&ve.length){for(const me of ve)if(me.fieldId===t.field.uuid&&((de=me==null?void 0:me.postData[0])==null?void 0:de.postValue)!==""&&((Ie=me==null?void 0:me.postData[0])!=null&&Ie.postValue)){F((Ee=me==null?void 0:me.postData[0])==null?void 0:Ee.postValue);break}}}U(!0)};P.useEffect(()=>{V||Z();const de=Zt.addListener("clearRepeatableFields",me=>{me===(v==null?void 0:v.uuid)&&(F(""),L(0),d.isValid=0,u(g,h,m,A,f,d))}),Ie=Zt.addListener("onSubmitUserForm",()=>{var me;(me=d==null?void 0:d.attributes)!=null&&me.required?I?d.isValid=1:d.isValid=0:d.isValid=1}),Ee=Zt.addListener("OnInvalidFieldCatch",me=>{d.uuid===(me==null?void 0:me.fieldId)?L(1):L(0)}),ve=Zt.addListener("OnGetFieldValue",me=>{var De;const Se=(De=me==null?void 0:me.repeatableColumn)==null?void 0:De.filter(j=>(j==null?void 0:j.fieldUuid)===(d==null?void 0:d.uuid));Se!=null&&Se.length});return()=>{Ie.remove(),Ee.remove(),ve.remove(),de.remove()}});const Q=de=>{_(de)},ce=()=>{_(!1)},K=de=>{var ve,me;F(de.target.value);const Ie=a,Ee=It.cloneDeep(e);if(Ie!==null){if((ve=de==null?void 0:de.target)!=null&&ve.value){if(Ee[d==null?void 0:d.uuid]=(me=de==null?void 0:de.target)==null?void 0:me.value,(Ie==null?void 0:Ie.length)>0)for(const Se of Ie)Se.fieldId===t.field.uuid&&(Se.postData[0]={postValue:de.target.value})}else if(delete Ee[d==null?void 0:d.uuid],(Ie==null?void 0:Ie.length)>0)for(const Se of Ie)Se.fieldId===t.field.uuid&&(Se.postData[0]={postValue:""})}if(!(v!=null&&v.rowIsRepeatable)){n(Ee);const Se=Object.keys(Ee).length;r(Se)}},he=(de,Ie)=>{var Ee;if(a){const ve=[...a],me=It.findIndex(ve,function(De){return De.rowId===(v==null?void 0:v.uuid)});let Se=(Ee=a[me])==null?void 0:Ee.repeatableFields;Se={...Se,[de==null?void 0:de.uuid]:Ie},ve[me]={...ve[me],repeatableFields:Se},i(ve)}F(Ie),Ie!==""?de.isValid=1:de.isValid=0},ee=o.jsxs("div",{onMouseOver:ie,onMouseOut:ge,children:[!C&&!E&&O&&o.jsx(Xr,{handleFieldSettingsSidebar:Q,...t}),o.jsxs("div",{className:`field ${E?" ":" builder-element-wrapper "}${(d==null?void 0:d.isFluid)===!0?" card py-3 px-4 p-fluid":"card py-3 px-4"}`,children:[o.jsx("div",{className:"grid",children:o.jsxs("div",{className:E?"col-12 ":"col-12 p-fluid",children:[(d==null?void 0:d.showHeaderText)&&o.jsx("h6",{children:(te=d==null?void 0:d.headerText)==null?void 0:te[c==null?void 0:c.type]}),(d==null?void 0:d.showLabel)&&o.jsxs("label",{htmlFor:f,className:"flex font-medium mb-3 text-700 text-2xl",children:[o.jsx(da,{...t}),((Y=d==null?void 0:d.attributes)==null?void 0:Y.required)&&o.jsx("span",{className:"must-required mr-1",children:"*"})," ",E?o.jsx(o.Fragment,{children:(R=d==null?void 0:d.label)==null?void 0:R[c==null?void 0:c.type]}):o.jsx(sa,{...t}),o.jsx("span",{className:"ml-3",children:(d==null?void 0:d.showToolTip)&&o.jsx(Mi,{message:(fe=d==null?void 0:d.toolTip)==null?void 0:fe[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(bn,{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:I,onFocus:()=>L(1),onChange:de=>{v!=null&&v.rowIsRepeatable?he(d,de.target.value):K(de)},className:M===1&&((Ae=d==null?void 0:d.attributes)!=null&&Ae.required)?I?"valid mt-2 mr-2":"invalid mt-2":"valid mt-2",readOnly: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&&!I?($=d==null?void 0:d.validationMesssage)==null?void 0:$.english:""})}),o.jsx("div",{children:(d==null?void 0:d.showHelperText)&&o.jsx("small",{children:(re=d==null?void 0:d.helperText)==null?void 0:re[c==null?void 0:c.type]})})]})]})}),o.jsx("p",{className:"text-center",children:o.jsx("span",{className:`${(W=d==null?void 0:d.fontStyle)==null?void 0:W.font} text-center`,style:{fontSize:d==null?void 0:d.fontSize},children:I})}),x&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(Ni,{...t})]})]})]});return o.jsxs(o.Fragment,{children:[S===!0&&o.jsx(Wi,{visibilty:S,closeSettingFieldSidebar:ce,...t}),o.jsx(Si,{...t,fieldWrap:ee})]})},TSe=t=>{var Ae,ne,$,re,W,de,Ie,Ee,ve,me,Se,De,j,oe,pe,ue,le;const{taskRegisterData:e,updateTaskRegisterData:n,updateTaskProgressValue:r,userTaskSubmitFormData:i,TASK_PUBLISHED:a,task_status:s}=yr(),{globalAlignment:l}=Qt(),{userSelectedLanguage:c,fieldSettingUpdate:u}=on(),{isRenderView:d,isAdmin:f,isPreview:h}=Qt(),g=se=>{const Oe=se.collapsed?"pi pi-chevron-down":"pi pi-chevron-up",Ne=`${se.className} justify-content-start`,Ke=`${se.titleClassName} pl-1`;return o.jsxs("div",{className:Ne,children:[o.jsxs("button",{className:se.togglerClassName,onClick:se.onTogglerClick,children:[o.jsx("span",{className:Oe}),o.jsx(tn,{})]}),o.jsx("span",{className:Ke,children:Z})]})},{field:v,fieldIndex:m,sectionIndex:A,pageIndex:w,row:E,rowIndex:x,columnIndex:C,isDisabled:S}=t,[_,I]=P.useState(!1),[F,M]=P.useState(null),[L,V]=P.useState({country:null,city:null,state:null,addressOne:null,addressTwo:null,zipcode:null,isBillingAddressSame:!1,billingCountry:null,billingCity:null,billingState:null,billingAddressOne:null,billingAddressTwo:null,billingZipcode:null}),[U,O]=P.useState(!1),q=()=>{O(!0)},ie=()=>{O(!1)},ge=(se,Oe)=>{let Ne={...L};Ne={...Ne,[se]:Oe},V(Ne),(Ne==null?void 0:Ne.addressOne)!==""&&(Ne!=null&&Ne.addressTwo)&&(Ne!=null&&Ne.zipcode)&&Te(Ne==null?void 0:Ne.zipcode)?(v.isValid=1,R(Ne,!0)):(v.isValid=0,R(null,!1))},[Z]=P.useState((Ae=v==null?void 0:v.label)==null?void 0:Ae[c==null?void 0:c.type]),[Q,ce]=P.useState(0),[K,he]=P.useState(!1),ee=()=>{var se,Oe;if(!(E!=null&&E.rowIsRepeatable)){const Ne=i;if(Ne!=null&&Ne.length){for(const Ke of Ne)if(Ke.fieldId===t.field.uuid&&((se=Ke==null?void 0:Ke.postData[0])!=null&&se.postValue)){V((Oe=Ke==null?void 0:Ke.postData[0])==null?void 0:Oe.postValue);break}}}he(!0)};P.useEffect(()=>{K||ee();const se=Zt.addListener("clearRepeatableFields",pt=>{pt===(E==null?void 0:E.uuid)&&(ce(0),v.isValid=0,u(w,A,x,C,m,v))}),Oe=Zt.addListener("onSubmitUserForm",()=>{var pt;(pt=v==null?void 0:v.attributes)!=null&&pt.required?(L==null?void 0:L.addressOne)!==""&&(L==null?void 0:L.zipcode)!==""&&Te(L==null?void 0:L.zipcode)?v.isValid=1:v.isValid=0:v.isValid=1}),Ne=Zt.addListener("OnInvalidFieldCatch",pt=>{v.uuid===(pt==null?void 0:pt.fieldId)?ce(1):ce(0)}),Ke=Zt.addListener("OnGetFieldValue",pt=>{var kt;const ft=(kt=pt==null?void 0:pt.repeatableColumn)==null?void 0:kt.filter(Sn=>(Sn==null?void 0:Sn.fieldUuid)===(v==null?void 0:v.uuid));ft!=null&&ft.length}),ut=Zt.addListener("formFieldAdded",pt=>{F===null&&M(pt.uuid)});return()=>{Oe.remove(),Ne.remove(),Ke.remove(),se.remove(),ut.remove()}});const te=se=>{I(se)},Y=()=>{I(!1)},R=(se,Oe)=>{const Ne=i,Ke=It.cloneDeep(e);if(Oe){if(Ke[v==null?void 0:v.uuid]=se,(Ne==null?void 0:Ne.length)>0)for(const ut of Ne)ut.fieldId===t.field.uuid&&(ut.postData[0]={postValue:se})}else if(delete Ke[v==null?void 0:v.uuid],(Ne==null?void 0:Ne.length)>0)for(const ut of Ne)ut.fieldId===t.field.uuid&&(ut.postData[0]={postValue:se});if(!(E!=null&&E.rowIsRepeatable)){n(Ke);const ut=Object.keys(Ke).length;r(ut)}},fe=()=>{let se="";return h||(se=se+" field-form-builder"),s===a&&f===!0&&(se=se+" card"),se},be=()=>{let se=!1;return L.addressOne!==""&&L.zipcode!==""&&Te(L.zipcode)&&(se=!0),se};function Te(se){const Oe=/\d/.test(se),Ne=/[a-zA-Z]/.test(se);return Oe&&Ne?!0:!!Oe}P.useEffect(()=>(F!==null&&setTimeout(()=>{M(null)},1e3),()=>{}),[F]);const ye=o.jsxs("div",{onMouseOver:q,onMouseOut:ie,children:[!d&&!h&&U&&o.jsx(Xr,{handleFieldSettingsSidebar:te,...t}),o.jsxs("div",{className:`field ${h?" ":" builder-element-wrapper "} ${(v==null?void 0:v.isFluid)===!0?" card py-3 px-4 p-fluid":"card p-4"} ${F===(v==null?void 0:v.uuid)?" new-field ":" card "}`,children:[o.jsx("div",{className:"grid",children:o.jsxs("div",{className:h?"col-12 ":"col-11 p-fluid",children:[(v==null?void 0:v.showHeaderText)&&o.jsx("h6",{children:(ne=v==null?void 0:v.headerText)==null?void 0:ne[c==null?void 0:c.type]}),(v==null?void 0:v.showLabel)&&o.jsxs("label",{htmlFor:m,className:"flex font-medium mb-3 text-700 text-2xl",children:[o.jsx(da,{...t}),(($=v==null?void 0:v.attributes)==null?void 0:$.required)&&o.jsx("span",{className:"must-required mr-1",children:"*"})," ",h?o.jsx(o.Fragment,{children:(re=v==null?void 0:v.label)==null?void 0:re[c==null?void 0:c.type]}):o.jsx(sa,{...t}),o.jsx("span",{className:"ml-3",children:(v==null?void 0:v.showToolTip)&&o.jsx(Mi,{message:(W=v==null?void 0:v.toolTip)==null?void 0:W[c==null?void 0:c.type],position:"right"})})]}),o.jsxs("div",{className:"mt-3 p-fluid",children:[o.jsx("div",{children:o.jsx("label",{className:"w-full",htmlFor:"",children:(de=v==null?void 0:v.addresslineFirstLabel)==null?void 0:de[c==null?void 0:c.type]})}),o.jsx(bn,{value:L.addressOne||"",onChange:se=>ge("addressOne",se.target.value),className:"my-2 ",readOnly:S}),o.jsx("div",{children:o.jsx("label",{htmlFor:"",children:(Ie=v==null?void 0:v.addresslineSecondLabel)==null?void 0:Ie[c==null?void 0:c.type]})}),o.jsx(bn,{value:L.addressTwo||"",onChange:se=>ge("addressTwo",se.target.value),className:"my-2",readOnly:S}),o.jsx("div",{children:o.jsx("label",{htmlFor:"",children:(Ee=v==null?void 0:v.postalcodeLabel)==null?void 0:Ee[c==null?void 0:c.type]})}),o.jsx(bn,{value:L.zipcode||"",onChange:se=>ge("zipcode",se.target.value),className:"my-2",readOnly:S}),o.jsx("p",{children:!Te(L.zipcode)&&o.jsx("small",{children:"Cannot be alphabetical only."})}),((ve=v==null?void 0:v.attributes)==null?void 0:ve.required)&&!be()&&o.jsx("small",{className:"error",children:Q===1?(me=v==null?void 0:v.validationMesssage)==null?void 0:me.language:""}),(v==null?void 0:v.showBillingAddress)===!0&&o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:"field-checkbox",children:[o.jsx(Br,{inputId:"binary",checked:L.isBillingAddressSame,onChange:se=>{ge("isBillingAddressSame",se.checked),se.checked?V(Oe=>({...Oe,billingCountry:L.country,billingCity:L.city,billingState:L.state,billingAddressOne:L.addressOne,billingAddressTwo:L.addressTwo,billingZipcode:L.zipcode})):V(Oe=>({...Oe,billingCountry:null,billingCity:null,billingState:null,billingAddressOne:null,billingAddressTwo:null,billingZipcode:null}))},disabled:S}),o.jsx("label",{htmlFor:"binary",children:"Is Billing Address Same"})]}),L.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:[((Se=v==null?void 0:v.attributes)==null?void 0:Se.required)&&o.jsx("span",{className:"must-required",children:"*"})," ",(De=v==null?void 0:v.billingLabel)==null?void 0:De[c==null?void 0:c.type],o.jsx("span",{className:"ml-3",children:(v==null?void 0:v.showToolTip)&&o.jsx(Mi,{message:(j=v==null?void 0:v.toolTip)==null?void 0:j[c==null?void 0:c.type],position:"right"})})]}),o.jsx("label",{htmlFor:"",children:(oe=v==null?void 0:v.addresslineFirstLabel)==null?void 0:oe[c==null?void 0:c.type]}),o.jsx(bn,{value:L.billingAddressOne||"",onChange:se=>ge("billingAddressOne",se.target.value),className:"my-2",readOnly:S}),o.jsx("label",{htmlFor:"",children:(pe=v==null?void 0:v.addresslineSecondLabel)==null?void 0:pe[c==null?void 0:c.type]}),o.jsx(bn,{value:L.billingAddressTwo||"",onChange:se=>ge("billingAddressTwo",se.target.value),className:"my-2",readOnly:S}),o.jsx("label",{htmlFor:"",children:(ue=v==null?void 0:v.postalcodeLabel)==null?void 0:ue[c==null?void 0:c.type]}),o.jsx(bn,{value:L.billingZipcode||"",onChange:se=>ge("billingZipcode",se.target.value),className:"my-2",readOnly:S}),!Te(L.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:(le=v==null?void 0:v.helperText)==null?void 0:le[c==null?void 0:c.type]})})]})]})}),f&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(Ni,{...t})]})]})]});return o.jsxs(o.Fragment,{children:[_===!0&&o.jsx(Wi,{visibilty:_,closeSettingFieldSidebar:Y,...t}),o.jsx("div",{dir:l?"ltr":"rtl",className:fe(),children:s===a&&f===!0?o.jsx(ui,{headerTemplate:g,toggleable:!0,children:ye}):ye})]})},ESe=t=>{var x;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}=on(),{isPreview:A,isAdvanceView:w}=Qt(),E=(C,S)=>{s(C,S)};return o.jsxs("div",{className:"p-2 py-4",children:[n&&((x=a.children)==null?void 0:x.length)>0&&a.children.map((C,S)=>{const _=C[`${n.rowIndex}-${n.columnIndex}`];return _?o.jsx("div",{children:o.jsx(tu,{type:"grid",showFieldIcons:!1,onChange:E,data:_,field:_,path:`${i}-${n.rowIndex}-${n.columnIndex}-${S}`,sectionIndex:l,page:c,column:d,row:u,section:f,pageIndex:h,rowIndex:g,columnIndex:v,fieldIndex:S,fieldContainer:"grid-container"})},`${n.rowIndex}-${n.columnIndex}-${S}`):null}),n&&A===!1&&o.jsx("div",{className:"py-5",children:o.jsx(Fr,{isAdvanceView:w,fieldDropArea:!0,data:{path:`${i}-${n.rowIndex}-${r}`,childrenCount:1,droppedField:e},onDrop:m})})]})},pj=t=>{var V,U,O,q,ie,ge,Z;const{field:e,column:n,section:r,row:i,rowIndex:a,columnIndex:s,sectionIndex:l,isPreview:c,userSelectedLanguage:u,fieldIndex:d,customColumnHeaderTemplate:f,onSetValuetoPostData:h,setAllFields:g,allFields:v,actionHeaderTemplate:m,actionBodyTemplate:A,isFocus:w,inputValue:E,handleFieldSettingsSidebar:x,isAdmin:C,emitSocketData:S,isRenderView:_}=t,[I,F]=P.useState(!1),M=()=>{F(!0)},L=()=>{F(!1)};return o.jsxs("div",{onMouseOver:M,onMouseOut:L,children:[!_&&!c&&I&&o.jsx(Xr,{handleFieldSettingsSidebar:x,...t}),o.jsxs("div",{className:`field ${c?" ":" builder-element-wrapper "}${(e==null?void 0:e.isFluid)===!0?" card py-3 px-4 ":"card py-3 px-4"}`,children:[o.jsx("div",{className:"grid",children:o.jsxs("div",{className:"col-12 ",children:[(e==null?void 0:e.showHeaderText)&&o.jsx("h6",{children:(V=e==null?void 0:e.headerText)==null?void 0:V[u==null?void 0:u.type]}),(e==null?void 0:e.showLabel)&&o.jsxs("label",{htmlFor:d,className:"flex font-medium mb-3 text-700 text-2xl",children:[o.jsx(da,{...t}),((U=e==null?void 0:e.attributes)==null?void 0:U.required)&&o.jsx("span",{className:"must-required mr-1",children:"*"})," ",c?o.jsx(o.Fragment,{children:(O=e==null?void 0:e.label)==null?void 0:O[u==null?void 0:u.type]}):o.jsx(sa,{...t}),o.jsx("span",{className:"ml-3",children:(e==null?void 0:e.showToolTip)&&o.jsx(Mi,{message:(q=e==null?void 0:e.toolTip)==null?void 0:q[u==null?void 0:u.type],position:"right"})})]}),o.jsxs("div",{className:"mt-3",children:[o.jsxs(Ks,{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((Q,ce)=>o.jsx(dr,{style:{minWidth:350},header:f(Q,ce),body:(K,he)=>o.jsx(ESe,{customColumn:Q,section:r,column:n,columnIndex:s,row:i,rowIndex:a,sectionIndex:l,e:K,indexes:he,customColumnIndex:ce,onSetValuetoPostData:h,setAllFields:g,allFields:v,emitSocketData:S,field:e,...t})},Q==null?void 0:Q.uuid)),!c&&o.jsx(dr,{frozen:!0,header:Q=>m(Q),body:(Q,ce)=>A(Q,ce),headerStyle:{textAlign:"left"},bodyStyle:{textAlign:"left",overflow:"visible"}})]}),o.jsx("div",{children:((ie=e==null?void 0:e.attributes)==null?void 0:ie.required)&&o.jsx("small",{className:"error",children:w===1&&!E?(ge=e==null?void 0:e.validationMesssage)==null?void 0:ge.english:""})}),o.jsx("div",{children:(e==null?void 0:e.showHelperText)&&o.jsx("small",{children:(Z=e==null?void 0:e.helperText)==null?void 0:Z[u==null?void 0:u.type]})})]})]})}),C&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(Ni,{...t})]})]})]})},gj=t=>{var Ae;const{globalAlignment:e}=Qt(),n=ne=>{const $=ne.collapsed?"pi pi-chevron-down":"pi pi-chevron-up",re=`${ne.className} justify-content-start`,W=`${ne.titleClassName} pl-1`;return o.jsxs("div",{className:re,children:[o.jsxs("button",{className:ne.togglerClassName,onClick:ne.onTogglerClick,children:[o.jsx("span",{className:$}),o.jsx(tn,{})]}),o.jsx("span",{className:W,children:S})]})},{userTaskSubmitFormData:r,TASK_PUBLISHED:i,task_status:a}=yr(),{userSelectedLanguage:s,fieldSettingUpdate:l}=on(),{isPreview:c,field:u,fieldIndex:d,sectionIndex:f,pageIndex:h,row:g,rowIndex:v,columnIndex:m,isAdmin:A}=t,[w,E]=P.useState(!1),[x,C]=P.useState(""),[S]=P.useState((Ae=u==null?void 0:u.label)==null?void 0:Ae[s==null?void 0:s.type]),[_,I]=P.useState(0),[F,M]=P.useState(!1),[L,V]=P.useState(null),[U,O]=P.useState([]),q=()=>{var ne,$,re;if(g!=null&&g.rowIsRepeatable){if(g!=null&&g.repeatableFields){const W=[...g.repeatableFields],de=It.findIndex(W,function(Ie){return Ie.uuid===(u==null?void 0:u.uuid)});de>=0&&W[de].fieldData?C(W[de].fieldData):C("")}}else{const W=r;if(W!=null&&W.length){for(const de of W)if(de.fieldId===t.field.uuid&&((ne=de==null?void 0:de.postData[0])==null?void 0:ne.postValue)!==""&&(($=de==null?void 0:de.postData[0])!=null&&$.postValue)){C((re=de==null?void 0:de.postData[0])==null?void 0:re.postValue);break}}}M(!0)},ie=()=>{const ne=u;ne.customColumnsForOptions=[...ne.customColumnsForOptions,{customKey:"Column",uuid:et()}],ye(ne)},[ge,Z]=P.useState(!1),Q=(ne,$)=>{var re;return o.jsxs(o.Fragment,{children:[((re=u==null?void 0:u.options)==null?void 0:re.length)>1&&o.jsx(Ft,{text:!0,type:"button",className:"p-button-danger left-space ",icon:"pi pi-trash",onClick:()=>he(ne==null?void 0:ne.uuid,$==null?void 0:$.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"})]})},ce=(ne,$)=>{var re;return o.jsxs(o.Fragment,{children:[ne==null?void 0:ne.customKey,c===!1&&o.jsxs(o.Fragment,{children:[((re=u==null?void 0:u.customColumnsForOptions)==null?void 0:re.length)>1&&o.jsx("i",{className:"pi pi-trash ml-3",onClick:()=>ee(ne==null?void 0:ne.uuid,$)}),o.jsx("i",{className:"pi pi-cog ml-3",onClick:()=>{V(ne),Z(!0)}})]})]})},K=()=>o.jsx(o.Fragment,{children:o.jsx(Ft,{text:!0,icon:"pi pi-plus",onClick:()=>ie(),rounded:!0,severity:"secondary","aria-label":"Cancel"})}),he=(ne,$)=>{var Ee,ve;const re=(Ee=u==null?void 0:u.customColumnsForOptions)==null?void 0:Ee.length,W=[...(u==null?void 0:u.children)||[]];(ve=u==null?void 0:u.children)==null||ve.map(me=>{for(let Se=0;Se<re;Se++)if(me[`${$}-${Se}`]!==void 0){const De=It.findIndex(W,function(j){return j[`${$}-${Se}`]!==void 0});W.splice(De,1)}});for(let me=0;me<(W==null?void 0:W.length);me++){const Se=W[me],j=Object.keys(Se)[0].split("-");parseInt(j[0])>$&&(W[me]={[`${parseInt(j[0])-1}-${j[1]}`]:W[me][`${parseInt(j[0])}-${j[1]}`]})}const de=u==null?void 0:u.options.filter(function(me){return(me==null?void 0:me.uuid)!==ne}),Ie={...u,children:[...W]};Ie.options=de,ye(Ie)},ee=(ne,$)=>{var ve,me;const re=It.findIndex(u==null?void 0:u.customColumnsForOptions,Se=>Se.uuid===ne),W=u==null?void 0:u.customColumnsForOptions.filter(function(Se,De){return De!==re}),de=(ve=u==null?void 0:u.options)==null?void 0:ve.length,Ie=[...(u==null?void 0:u.children)||[]];(me=u==null?void 0:u.children)==null||me.map(Se=>{for(let De=0;De<de;De++)if(Se[`${De}-${$}`]!==void 0){const j=It.findIndex(Ie,function(oe){return oe[`${De}-${$}`]!==void 0});Ie.splice(j,1)}});for(let Se=0;Se<(Ie==null?void 0:Ie.length);Se++){const De=Ie[Se],oe=Object.keys(De)[0].split("-");parseInt(oe[1])>$&&(Ie[Se]={[`${parseInt(oe[0])}-${parseInt(oe[1])-1}`]:Ie[Se][`${parseInt(oe[0])}-${oe[1]}`]})}const Ee={...u,children:[...Ie]};Ee.customColumnsForOptions=W,ye(Ee)};P.useEffect(()=>{F||q();const ne=Zt.addListener("clearRepeatableFields",de=>{de===(g==null?void 0:g.uuid)&&(C(""),I(0),u.isValid=0,l(h,f,v,m,d,u))}),$=Zt.addListener("onSubmitUserForm",()=>{var de;(de=u==null?void 0:u.attributes)!=null&&de.required&&(u.isValid=1)}),re=Zt.addListener("OnInvalidFieldCatch",de=>{u.uuid===(de==null?void 0:de.fieldId)?I(1):I(0)}),W=Zt.addListener("OnGetFieldValue",de=>{var Ee;const Ie=(Ee=de==null?void 0:de.repeatableColumn)==null?void 0:Ee.filter(ve=>(ve==null?void 0:ve.fieldUuid)===(u==null?void 0:u.uuid));Ie!=null&&Ie.length});return()=>{$.remove(),re.remove(),W.remove(),ne.remove()}});const te=ne=>{E(ne)},Y=()=>{E(!1)},R=(ne,$)=>{var W;const re=r;if((re==null?void 0:re.length)>0)for(const de of re)de.fieldId===t.field.uuid&&(de.postData[0]={postValue:{...(W=de.postData[0])==null?void 0:W.postValue,[ne]:$}})},fe=()=>{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:et(),custom_values:{}}],ye(ne)},Te=(ne,$)=>{V(Ie=>Ie===null?{customKey:$,uuid:""}:{...Ie,customKey:$});const re=u.customColumnsForOptions,W=re.findIndex(Ie=>Ie.uuid===ne.uuid);re[W]={...re[W],customKey:$};const de=u;de.customColumnsForOptions=re,ye(de)},ye=ne=>{l(h,f,v,m,d,ne)};return o.jsxs(o.Fragment,{children:[o.jsx(Fs,{maximizable:!0,header:"Update column title",visible:ge,style:{width:"20vw"},footer:()=>o.jsx(Ft,{text:!0,label:"Save",onClick:()=>Z(!1)}),onHide:()=>Z(!1),children:o.jsx("div",{className:"p-fluid",children:o.jsx(bn,{value:(L==null?void 0:L.customKey)||"",onChange:ne=>Te(L,ne.target.value)})})}),w&&o.jsx(Wi,{visibilty:w,closeSettingFieldSidebar:Y,...t}),o.jsx("div",{dir:e,className:fe(),children:a===i&&A===!0?o.jsx(ui,{headerTemplate:n,toggleable:!0,children:o.jsx(pj,{...t,field:u,isPreview:c,userSelectedLanguage:s,fieldIndex:d,pageIndex:h,columnIndex:m,customColumnHeaderTemplate:ce,onSetValuetoPostData:R,setAllFields:ne=>O(ne),allFields:U,actionHeaderTemplate:K,actionBodyTemplate:Q,addOption:be,isFocus:_,inputValue:x,handleFieldSettingsSidebar:te,isAdmin:A})}):o.jsx(pj,{...t,field:u,isPreview:c,userSelectedLanguage:s,fieldIndex:d,pageIndex:h,columnIndex:m,customColumnHeaderTemplate:ce,onSetValuetoPostData:R,setAllFields:ne=>O(ne),allFields:U,actionHeaderTemplate:K,actionBodyTemplate:Q,addOption:be,isFocus:_,inputValue:x,handleFieldSettingsSidebar:te,isAdmin:A})})]})},ISe=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(ya,{value:a[`${n==null?void 0:n.rowIndex}-${r}`],options:e.options,onChange:l=>s(l.value),optionLabel:"label",placeholder:"Select"})})},mj=t=>{var C,S,_,I,F,M,L;const{field:e,isPreview:n,userSelectedLanguage:r,fieldIndex:i,customColumnHeaderTemplate:a,customColumnRowBodyTemplate:s,setAllFields:l,allFields:c,actionHeaderTemplate:u,actionBodyTemplate:d,isFocus:f,inputValue:h,handleFieldSettingsSidebar:g,isAdmin:v,isRenderView:m}=t,[A,w]=P.useState(!1),E=()=>{w(!0)},x=()=>{w(!1)};return o.jsxs("div",{onMouseOver:E,onMouseOut:x,children:[!m&&!n&&A&&o.jsx(Xr,{handleFieldSettingsSidebar:g,...t}),o.jsxs("div",{className:`field ${n?" ":" builder-element-wrapper "}${(e==null?void 0:e.isFluid)===!0?" card py-3 px-4 p-fluid":"card py-3 px-4"}`,children:[o.jsx("div",{className:"grid",children:o.jsxs("div",{className:n?"col-12 ":"col-11 p-fluid",children:[(e==null?void 0:e.showHeaderText)&&o.jsx("h6",{children:(C=e==null?void 0:e.headerText)==null?void 0:C[r==null?void 0:r.type]}),(e==null?void 0:e.showLabel)&&o.jsxs("label",{htmlFor:i,className:"flex font-medium mb-3 text-700 text-2xl",children:[o.jsx(da,{...t}),((S=e==null?void 0:e.attributes)==null?void 0:S.required)&&o.jsx("span",{className:"must-required",children:"*"})," ",n?o.jsx(o.Fragment,{children:(_=e==null?void 0:e.label)==null?void 0:_[r==null?void 0:r.type]}):o.jsx(sa,{...t}),o.jsx("span",{className:"ml-3",children:(e==null?void 0:e.showToolTip)&&o.jsx(Mi,{message:(I=e==null?void 0:e.toolTip)==null?void 0:I[r==null?void 0:r.type],position:"right"})})]}),o.jsxs("div",{className:"mt-3",children:[o.jsxs(Ks,{showGridlines:!0,value:e==null?void 0:e.rows,children:[o.jsx(dr,{frozen:!0,header:"",headerStyle:{textAlign:"left"},bodyStyle:{textAlign:"left",overflow:"visible"},body:V=>s(V)}),e==null?void 0:e.customColumns.map((V,U)=>o.jsx(dr,{header:a(V),headerStyle:{textAlign:"left"},bodyStyle:{textAlign:"left",overflow:"visible"},body:(O,q)=>o.jsx(ISe,{customColumn:V,e:O,indexes:q,customColumnIndex:U,setAllFields:l,allFields:c,...t})},V==null?void 0:V.uuid)),n===!1&&o.jsx(dr,{frozen:!0,header:V=>u(V),body:V=>d(V),headerStyle:{textAlign:"left"},bodyStyle:{textAlign:"left",overflow:"visible"}})]}),o.jsx("div",{children:((F=e==null?void 0:e.attributes)==null?void 0:F.required)&&o.jsx("small",{className:"error",children:f===1&&!h?(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:(L=e==null?void 0:e.helperText)==null?void 0:L[r==null?void 0:r.type]})})]})]})}),v&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(Ni,{...t})]})]})]})},_Se=(t,e)=>{var Se,De;const n=j=>{const oe=j.collapsed?"pi pi-chevron-down":"pi pi-chevron-up",pe=`${j.className} justify-content-start`,ue=`${j.titleClassName} pl-1`;return o.jsxs("div",{className:pe,children:[o.jsxs("button",{className:j.togglerClassName,onClick:j.onTogglerClick,children:[o.jsx("span",{className:oe}),o.jsx(tn,{})]}),o.jsx("span",{className:ue,children:_})]})},{userTaskSubmitFormData:r,TASK_PUBLISHED:i,task_status:a}=yr(),{globalAlignment:s,isPreview:l,isAdmin:c}=Qt(),{userSelectedLanguage:u,fieldSettingUpdate:d}=on(),{field:f,fieldIndex:h,sectionIndex:g,pageIndex:v,row:m,rowIndex:A,columnIndex:w}=t,[E,x]=P.useState(!1),[C,S]=P.useState(""),[_]=P.useState((Se=f==null?void 0:f.label)==null?void 0:Se[u==null?void 0:u.type]),[I,F]=P.useState(0),[M,L]=P.useState(!1),[V,U]=P.useState(null),[O,q]=P.useState(null),[ie,ge]=P.useState({}),Z=()=>{var j,oe,pe;if(m!=null&&m.rowIsRepeatable){if(m!=null&&m.repeatableFields){const ue=[...m.repeatableFields],le=It.findIndex(ue,function(se){return se.uuid===(f==null?void 0:f.uuid)});le>=0&&ue[le].fieldData?S(ue[le].fieldData):S("")}}else{const ue=r;if(ue!=null&&ue.length){for(const le of ue)if(le.fieldId===t.field.uuid&&((j=le==null?void 0:le.postData[0])==null?void 0:j.postValue)!==""&&((oe=le==null?void 0:le.postData[0])!=null&&oe.postValue)){S((pe=le==null?void 0:le.postData[0])==null?void 0:pe.postValue);break}}}L(!0)},Q=()=>{const j=f;j.customColumns=[...j.customColumns,{customKey:"Column",uuid:et(),options:[]}],de(j)},[ce,K]=P.useState(!1),[he,ee]=P.useState(!1),te=j=>{var oe;return o.jsxs(o.Fragment,{children:[((oe=f==null?void 0:f.rows)==null?void 0:oe.length)>1&&o.jsx(Ft,{text:!0,type:"button",icon:"pi pi-trash",rounded:!0,severity:"secondary",onClick:()=>be(j==null?void 0:j.uuid),"aria-label":"Add Row"}),o.jsx(Ft,{text:!0,type:"button",icon:"pi pi-plus",rounded:!0,severity:"secondary",onClick:()=>$(),"aria-label":"Add Row"})]})},Y=j=>{var oe;return o.jsxs(o.Fragment,{children:[j==null?void 0:j.customKey,l===!1&&o.jsxs(o.Fragment,{children:[((oe=f==null?void 0:f.customColumns)==null?void 0:oe.length)>1&&o.jsx("i",{className:"pi pi-trash ml-3",onClick:()=>Te(j==null?void 0:j.uuid)}),o.jsx("i",{className:"pi pi-cog ml-3",onClick:()=>{U(j),K(!0)}})]})]})},R=()=>o.jsx(o.Fragment,{children:o.jsx(Ft,{text:!0,type:"button",icon:"pi pi-plus",rounded:!0,severity:"secondary",onClick:()=>Q(),"aria-label":"Add Column"})}),fe=j=>o.jsxs(o.Fragment,{children:[j==null?void 0:j.rowHeading,l===!1&&o.jsx(o.Fragment,{children:o.jsx("i",{className:"pi pi-cog ml-3",onClick:()=>{q(j),ee(!0)}})})]}),be=j=>{const oe=f==null?void 0:f.rows.filter(function(ue){return(ue==null?void 0:ue.uuid)!==j}),pe=f;pe.rows=oe,de(pe)},Te=j=>{const oe=It.findIndex(f==null?void 0:f.customColumns,le=>le.uuid===j),pe=f==null?void 0:f.customColumns.filter(function(le,se){return se!==oe}),ue=f;ue.customColumns=pe,de(ue)};P.useEffect(()=>{M||Z();const j=Zt.addListener("clearRepeatableFields",ue=>{ue===(m==null?void 0:m.uuid)&&(S(""),F(0),f.isValid=0,d(v,g,A,w,h,f))}),oe=Zt.addListener("OnInvalidFieldCatch",ue=>{f.uuid===(ue==null?void 0:ue.fieldId)?F(1):F(0)}),pe=Zt.addListener("OnGetFieldValue",ue=>{var se;const le=(se=ue==null?void 0:ue.repeatableColumn)==null?void 0:se.filter(Oe=>(Oe==null?void 0:Oe.fieldUuid)===(f==null?void 0:f.uuid));le!=null&&le.length});return()=>{oe.remove(),pe.remove(),j.remove()}});const ye=j=>{x(j)},Ae=()=>{x(!1)},ne=()=>{let j="";return l||(j=j+" field-form-builder"),a===i&&c===!0&&(j=j+" card"),j},$=()=>{const j=f;j.rows=[...j.rows,{rowHeading:"Row",uuid:et(),custom_values:{}}],de(j)},re=(j,oe)=>{U(se=>se===null?{customKey:oe,uuid:""}:{...se,customKey:oe});const pe=f.customColumns,ue=pe.findIndex(se=>se.uuid===j.uuid);pe[ue]={...pe[ue],customKey:oe};const le=f;le.customColumns=pe,de(le)},W=(j,oe)=>{q(se=>se===null?{uuid:"",rowHeading:oe}:{...se,rowHeading:oe});const pe=f.rows,ue=pe.findIndex(se=>se.uuid===j.uuid);pe[ue]={...pe[ue],rowHeading:oe};const le=f;le.rows=pe,de(le)},de=j=>{d(v,g,A,w,h,j)};function Ie(j){return j.toLowerCase().replace(/ /g,"-").replace(/[^\w-]+/g,"")}const Ee=(j,oe,pe)=>{const ue=f.customColumns,le=ue.findIndex(Oe=>V&&Oe.uuid===V.uuid);ue[le].options[pe][oe]=j,ue[le].options[pe].value=Ie(j);const se=f;se.customColumns=ue,de(se)},ve=()=>{const j=f.customColumns,oe=j.findIndex(ue=>V&&ue.uuid===V.uuid);j[oe].options.push({label:"",value:"",uuid:et()});const pe=f;pe.customColumns=j,de(pe)},me=j=>{const oe=f.customColumns,pe=oe.findIndex(le=>V&&le.uuid===V.uuid);if(pe===-1){console.error("Custom column not found");return}oe[pe].options=oe[pe].options.filter(le=>le.uuid!==j);const ue=f;ue.customColumns=oe,de(ue)};return o.jsxs(o.Fragment,{children:[o.jsxs(Fs,{maximizable:!0,header:"Update column title",visible:ce,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(bn,{value:(V==null?void 0:V.customKey)||"",onChange:j=>re(V,j.target.value)})}),o.jsx("hr",{}),o.jsx("h5",{children:"Options"}),(V==null?void 0:V.options)&&((De=V==null?void 0:V.options)==null?void 0:De.length)>0&&(V==null?void 0:V.options.map((j,oe)=>o.jsxs("div",{className:"my-2 flex p-fluid",children:[o.jsx("span",{children:oe+1}),o.jsx(bn,{value:(j==null?void 0:j.label)||"",className:"ml-2",onChange:pe=>Ee(pe.target.value,"label",oe)}),o.jsx(Ft,{text:!0,type:"button",icon:"pi pi-trash",rounded:!0,severity:"secondary",onClick:()=>me(j.uuid),"aria-label":"Add Column Option"})]},`custom_column_option_${oe}`)))]}),o.jsx(Fs,{maximizable:!0,header:"Update Row Title",visible:he,style:{width:"20vw"},footer:()=>o.jsx(Ft,{text:!0,label:"Save",onClick:()=>ee(!1)}),onHide:()=>ee(!1),children:o.jsx("div",{className:"p-fluid",children:o.jsx(bn,{value:(O==null?void 0:O.rowHeading)||"",onChange:j=>W(O,j.target.value)})})}),o.jsx(Wi,{visibilty:E,closeSettingFieldSidebar:Ae,...t}),o.jsx("div",{dir:s,className:ne(),children:a===i&&c===!0?o.jsx(ui,{headerTemplate:n,toggleable:!0,children:o.jsx(mj,{ref:e,...t,field:f,isPreview:l,userSelectedLanguage:u,fieldIndex:h,customColumnHeaderTemplate:Y,customColumnRowBodyTemplate:fe,setAllFields:ge,allFields:ie,actionHeaderTemplate:R,actionBodyTemplate:te,isFocus:I,inputValue:C,handleFieldSettingsSidebar:ye,isAdmin:c})}):o.jsx(mj,{ref:e,...t,field:f,isPreview:l,userSelectedLanguage:u,fieldIndex:h,customColumnHeaderTemplate:Y,customColumnRowBodyTemplate:fe,setAllFields:ge,allFields:ie,actionHeaderTemplate:R,actionBodyTemplate:te,isFocus:I,inputValue:C,handleFieldSettingsSidebar:ye,isAdmin:c})})]})},DSe=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(bn,{value:i[`${e==null?void 0:e.rowIndex}-${n}`]||"",onChange:s=>a(s.target.value)})})},vj=t=>{var g,v,m,A,w,E,x;const{field:e,isPreview:n,userSelectedLanguage:r,fieldIndex:i,customColumnHeaderTemplate:a,setAllFields:s,allFields:l,actionHeaderTemplate:c,actionBodyTemplate:u,isFocus:d,inputValue:f,isAdmin:h}=t;return o.jsxs("div",{className:`field ${n?" ":" builder-element-wrapper "}${(e==null?void 0:e.isFluid)===!0?" card p-fluid py-6 px-4":"card py-3 px-4"}`,children:[" ",o.jsx("div",{className:"grid",children:o.jsxs("div",{className:"col-12 p-fluid",children:[(e==null?void 0:e.showHeaderText)&&o.jsx("h6",{children:(g=e==null?void 0:e.headerText)==null?void 0:g[r==null?void 0:r.type]}),(e==null?void 0:e.showLabel)&&o.jsxs("label",{htmlFor:i,className:"flex font-medium mb-3 text-700 text-2xl",children:[o.jsx(da,{...t}),((v=e==null?void 0:e.attributes)==null?void 0:v.required)&&o.jsx("span",{className:"must-required",children:"*"})," ",n?o.jsx(o.Fragment,{children:(m=e==null?void 0:e.label)==null?void 0:m[r==null?void 0:r.type]}):o.jsx(sa,{path:"",...t}),o.jsx("span",{className:"ml-3",children:(e==null?void 0:e.showToolTip)&&o.jsx(Mi,{message:(A=e==null?void 0:e.toolTip)==null?void 0:A[r==null?void 0:r.type],position:"right"})})]}),o.jsxs("div",{className:"mt-3",style:{backgroundColor:"#0a061a"},children:[o.jsxs(Ks,{scrollable:!0,showGridlines:!0,value:e==null?void 0:e.rows,children:[e==null?void 0:e.customColumns.map((C,S)=>o.jsx(dr,{header:a(C),headerStyle:{textAlign:"left"},bodyStyle:{textAlign:"left",overflow:"visible"},body:(_,I)=>o.jsx(DSe,{customColumn:C,e:_,indexes:I,customColumnIndex:S,setAllFields:s,allFields:l,...t})},C==null?void 0:C.uuid)),n===!1&&o.jsx(dr,{frozen:!0,header:C=>c(C),body:C=>u(C),headerStyle:{textAlign:"left"},bodyStyle:{textAlign:"left",overflow:"visible"}})]}),o.jsx("div",{children:((w=e==null?void 0:e.attributes)==null?void 0:w.required)&&o.jsx("small",{className:"error",children:d===1&&!f?(E=e==null?void 0:e.validationMesssage)==null?void 0:E.english:""})}),o.jsx("div",{children:(e==null?void 0:e.showHelperText)&&o.jsx("small",{children:(x=e==null?void 0:e.helperText)==null?void 0:x[r==null?void 0:r.type]})})]})]})}),h&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(Ni,{...t})]})]})},NSe=({showAddNewRow:t,setShowAddNewRow:e,customRowEditModalData:n,onHandleChangeCustomRowSetting:r})=>{const[i,a]=P.useState((n==null?void 0:n.rowHeading)||"");return o.jsx(Fs,{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(bn,{value:i||"",onChange:s=>a(s.target.value)})})})},OSe=({showAddNewColumn:t,setShowAddNewColumn:e,customColumnEditModalData:n,onHandleChangeCustomColumnSetting:r})=>{const i=d4({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(Fs,{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(bn,{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]})})})},FSe=t=>{var Ee;const e=ve=>{const me=ve.collapsed?"pi pi-chevron-down":"pi pi-chevron-up",Se=`${ve.className} justify-content-start`,De=`${ve.titleClassName} pl-1`;return o.jsxs("div",{className:Se,children:[o.jsxs("button",{className:ve.togglerClassName,onClick:ve.onTogglerClick,children:[o.jsx("span",{className:me}),o.jsx(tn,{})]}),o.jsx("span",{className:De,children:S})]})},{TASK_PUBLISHED:n,task_status:r}=yr(),{userSelectedLanguage:i,fieldSettingUpdate:a}=on(),{globalAlignment:s,isPreview:l,isAdmin:c,isRenderView:u}=Qt(),{field:d,fieldIndex:f,sectionIndex:h,pageIndex:g,row:v,rowIndex:m,columnIndex:A}=t,[w,E]=P.useState(!1),[x,C]=P.useState(""),[S]=P.useState((Ee=d==null?void 0:d.label)==null?void 0:Ee[i==null?void 0:i.type]),[_,I]=P.useState(0),[F,M]=P.useState(null),[L,V]=P.useState(null),[U,O]=P.useState((d==null?void 0:d.allFields)||{}),[q,ie]=P.useState(!1),ge=()=>{const ve=d;ve.customColumns=[...ve.customColumns,{customKey:"Column",uuid:et(),options:[]}],W(ve)},[Z,Q]=P.useState(!1),[ce,K]=P.useState(!1),he=P.useCallback(It.debounce(ve=>{const me=d;me.allFields={...ve},W(me)},1e3),[]);P.useEffect(()=>{he(U)},[U,he]);const ee=ve=>{var me;return o.jsxs(o.Fragment,{children:[((me=d==null?void 0:d.options)==null?void 0:me.length)>1&&o.jsx(Ft,{text:!0,type:"button",icon:"pi pi-trash",rounded:!0,severity:"secondary",onClick:()=>fe(ve==null?void 0:ve.uuid),"aria-label":"Add Row",size:"small"}),o.jsx(Ft,{text:!0,type:"button",icon:"pi pi-plus",rounded:!0,severity:"secondary",onClick:()=>ne(),"aria-label":"Add Row",size:"small"})]})},te=ve=>{var me;return o.jsxs(o.Fragment,{children:[ve==null?void 0:ve.customKey,l===!1&&o.jsxs(o.Fragment,{children:[((me=d==null?void 0:d.customColumns)==null?void 0:me.length)>1&&o.jsx("i",{className:"pi pi-trash ml-3",onClick:()=>be(ve==null?void 0:ve.uuid)}),o.jsx("i",{className:"pi pi-cog ml-3",onClick:()=>{M(ve),Q(!0)}})]})]})},Y=()=>o.jsx(o.Fragment,{children:o.jsx(Ft,{text:!0,type:"button",icon:"pi pi-plus",rounded:!0,severity:"secondary",onClick:()=>ge(),"aria-label":"Add Column"})}),R=ve=>o.jsxs(o.Fragment,{children:[ve==null?void 0:ve.rowHeading,l===!1&&o.jsx(o.Fragment,{children:o.jsx("i",{className:"pi pi-cog ml-3",onClick:()=>{V(ve),K(!0)}})})]}),fe=ve=>{const me=d==null?void 0:d.rows.filter(function(De){return(De==null?void 0:De.uuid)!==ve}),Se=d;Se.rows=me,W(Se)},be=ve=>{const me=It.findIndex(d==null?void 0:d.customColumns,j=>j.uuid===ve),Se=d==null?void 0:d.customColumns.filter(function(j,oe){return oe!==me}),De=d;De.customColumns=Se,W(De)},Te=ve=>{E(ve)},ye=()=>{E(!1)},Ae=()=>{let ve="";return l||(ve=ve+" field-form-builder"),r===n&&c===!0&&(ve=ve+" card"),ve},ne=()=>{const ve=d;ve.rows=[...ve.rows,{rowHeading:"Row",uuid:et(),custom_values:{}}],W(ve)},$=(ve,me)=>{M(oe=>oe===null?{customKey:me,uuid:""}:{...oe,customKey:me});const Se=d.customColumns,De=Se.findIndex(oe=>oe.uuid===ve.uuid);Se[De]={...Se[De],customKey:me};const j=d;j.customColumns=Se,W(j)},re=(ve,me)=>{V(oe=>oe===null?{uuid:"",rowHeading:me}:{...oe,rowHeading:me});const Se=d.rows,De=Se.findIndex(oe=>oe.uuid===ve.uuid);Se[De]={...Se[De],rowHeading:me};const j=d;j.rows=Se,W(j)},W=ve=>{a(g,h,m,A,f,ve)},de=()=>{ie(!0)},Ie=()=>{ie(!1)};return o.jsxs(o.Fragment,{children:[o.jsx(Fs,{maximizable:!0,header:"Update column title",visible:Z,style:{width:"20vw"},footer:()=>o.jsx(o.Fragment,{children:o.jsx(Ft,{text:!0,label:"Save",onClick:()=>Q(!1)})}),onHide:()=>Q(!1),children:o.jsx("div",{className:"p-fluid",children:o.jsx(bn,{value:(F==null?void 0:F.customKey)||"",onChange:ve=>$(F,ve.target.value)})})}),ce&&o.jsx(NSe,{showAddNewRow:ce,setShowAddNewRow:K,customRowEditModalData:L,onHandleChangeCustomRowSetting:re}),Z&&o.jsx(OSe,{showAddNewColumn:Z,setShowAddNewColumn:Q,customColumnEditModalData:F,onHandleChangeCustomColumnSetting:$}),o.jsx(Wi,{visibilty:w,closeSettingFieldSidebar:ye,...t}),o.jsx("div",{className:"field-form-builder",children:o.jsxs("div",{onMouseOver:de,onMouseOut:Ie,children:[!u&&!l&&q&&o.jsx(Xr,{handleFieldSettingsSidebar:Te,...t}),o.jsx("div",{dir:s,className:Ae(),children:r===n&&c===!0?o.jsx(ui,{headerTemplate:e,toggleable:!0,children:o.jsx(vj,{...t,field:d,isPreview:l,userSelectedLanguage:i,fieldIndex:f,customColumnHeaderTemplate:te,customColumnRowBodyTemplate:R,setAllFields:O,allFields:U,actionHeaderTemplate:Y,actionBodyTemplate:ee,isFocus:_,inputValue:x,handleFieldSettingsSidebar:Te,isAdmin:c})}):o.jsx(vj,{isAdmin:!1,...t,field:d,isPreview:l,userSelectedLanguage:i,fieldIndex:f,customColumnHeaderTemplate:te,customColumnRowBodyTemplate:R,setAllFields:O,allFields:U,actionHeaderTemplate:Y,actionBodyTemplate:ee,isFocus:_,inputValue:x,handleFieldSettingsSidebar:Te})})]})})]})},kSe=t=>{var ne,$,re,W,de,Ie,Ee,ve,me,Se,De;const{taskRegisterData:e,updateTaskRegisterData:n,updateTaskProgressValue:r,userTaskSubmitFormData:i,updateUserFormDataSubmit:a}=yr(),[s,l]=P.useState([]),{field:c,fieldIndex:u,row:d,pageIndex:f,sectionIndex:h,section:g,page:v,rowIndex:m,columnIndex:A,path:w,update:E,value:x,isDisabled:C}=t,{isRenderView:S,isAdmin:_,isPreview:I}=Qt(),{userSelectedLanguage:F}=on(),[M,L]=P.useState(!1),[V,U]=P.useState(""),[O,q]=P.useState(0),[ie,ge]=P.useState(!1),[Z,Q]=P.useState(!1),ce=()=>{Q(!0)},K=()=>{Q(!1)},he=j=>{L(j)},ee=()=>{L(!1)};P.useEffect(()=>((c==null?void 0:c.dataSourceType)==="custom"&&l(c==null?void 0:c.options),c==null||c.dataSourceType,()=>{}));const te=()=>{var oe,pe,ue,le;let j=null;if(d!=null&&d.rowIsRepeatable){if(d!=null&&d.repeatableFields){const se=[...d.repeatableFields],Oe=It.findIndex(se,function(Ne){return Ne.uuid===(c==null?void 0:c.uuid)});Oe>=0&&se[Oe].fieldData?(j=se[Oe].fieldData,U(se[Oe].fieldData)):(c.isValid=0,U(""))}}else{const se=i,Oe=It.cloneDeep(e);if(se!=null&&se.length){for(const Ne of se)if(Ne.fieldId===t.field.uuid&&((oe=Ne==null?void 0:Ne.postData)!=null&&oe.length)){j=(pe=Ne==null?void 0:Ne.postData[0])==null?void 0:pe.postValue,U((ue=Ne==null?void 0:Ne.postData[0])==null?void 0:ue.postValue),Oe[c==null?void 0:c.uuid]=(le=Ne==null?void 0:Ne.postData[0])==null?void 0:le.postValue;const Ke=Object.keys(Oe).length;r(Ke);break}}}U(j),setTimeout(()=>{ge(!0)},2e3)};P.useEffect(()=>{!ie&&(i==null?void 0:i.length)>0&&te();const j=Zt.addListener("clearRepeatableFields",ue=>{ue===(d==null?void 0:d.uuid)&&(U(""),q(0),c.isValid=1)}),oe=Zt.addListener("onSubmitUserForm",()=>{var ue;(ue=c==null?void 0:c.attributes)!=null&&ue.required?V?c.isValid=1:c.isValid=0:c.isValid=1}),pe=Zt.addListener("OnInvalidFieldCatch",ue=>{c.uuid===(ue==null?void 0:ue.fieldId)?q(1):q(0)});return()=>{oe.remove(),pe.remove(),j.remove()}});const Y=(j,oe)=>{var pe;if(i){const ue=[...i],le=It.findIndex(ue,function(Oe){return Oe.rowId===(d==null?void 0:d.uuid)});let se=(pe=i[le])==null?void 0:pe.repeatableFields;se={...se,[j==null?void 0:j.uuid]:oe},ue[le]={...ue[le],repeatableFields:se},a(ue)}U(oe),oe?j.isValid=1:j.isValid=0},R=j=>{var oe;U(j.target.value),d!=null&&d.rowIsRepeatable?Y(c,(oe=j==null?void 0:j.target)==null?void 0:oe.value):ye(j.target.value)},fe=()=>(c==null?void 0:c.dataSourceType)==="custom"?`optionText.${F.type}`:(c==null?void 0:c.dataSourceType)==="database"?`${c==null?void 0:c.optionLabel}`:"",be=()=>(c==null?void 0:c.dataSourceType)==="custom"?`optionText.${F.type}`:(c==null?void 0:c.dataSourceType)==="database"?`${c==null?void 0:c.optionLabel}`:"",Te=()=>{var j,oe,pe;if(((j=c==null?void 0:c.fieldType)==null?void 0:j.type)==="radio"){const ue=[];return s.map((le,se)=>{var Ne,Ke,ut,pt;const Oe=V;ue.push(o.jsxs("div",{className:"field-radiobutton field-radiobutton-builder",onClick:()=>{R({value:le,target:{value:le}})},style:(Oe==null?void 0:Oe.uuid)===(le==null?void 0:le.uuid)?{backgroundColor:"#0F8BFD",padding:15,borderRadius:8}:{padding:15},children:[o.jsx(aa,{onFocus:()=>q(1),inputId:`radio-option-${se}-${le==null?void 0:le.uuid}-${I?"preview":"builder-radio"}`,onChange:ft=>{R(ft)},value:le,name:`radio-option-${se}-${le==null?void 0:le.uuid}-${I?"preview":"builder"}`,checked:(Oe==null?void 0:Oe.uuid)===(le==null?void 0:le.uuid),disabled:C}),((Ne=le==null?void 0:le.hyperlinkText)==null?void 0:Ne[F==null?void 0:F.type])===""?o.jsx("label",{htmlFor:`radio-option-${se}-${le==null?void 0:le.uuid}-${I?"preview":"builder"}`,children:(Ke=le==null?void 0:le.optionText)==null?void 0:Ke[F==null?void 0:F.type]}):o.jsx("label",{children:o.jsx("a",{href:(ut=le==null?void 0:le.hyperlinkText)==null?void 0:ut[F==null?void 0:F.type],target:"_blank",rel:"noreferrer",children:(pt=le==null?void 0:le.optionText)==null?void 0:pt[F==null?void 0:F.type]})})]},se))}),ue}if(((oe=c==null?void 0:c.fieldType)==null?void 0:oe.type)==="dropdown")return o.jsx(ya,{onFocus:()=>q(1),onChange:ue=>{d!=null&&d.rowIsRepeatable?Y(c,ue.target.value):ye(ue.target.value)},options:s,optionLabel:be(),optionValue:fe(),value:V,placeholder:(pe=c==null?void 0:c.placeholder)==null?void 0:pe[F==null?void 0:F.type],disabled:C})},ye=j=>{var ue,le;U(j.target.value);const oe=i,pe=It.cloneDeep(e);if(oe!==null){if((ue=j==null?void 0:j.target)!=null&&ue.value){if(pe[c==null?void 0:c.uuid]=(le=j==null?void 0:j.target)==null?void 0:le.value,(oe==null?void 0:oe.length)>0)for(const se of oe)se.fieldId===t.field.uuid&&(se.postData[0]={postValue:j.target.value})}else if(delete pe[c==null?void 0:c.uuid],(oe==null?void 0:oe.length)>0)for(const se of oe)se.fieldId===t.field.uuid&&(se.postData[0]={postValue:""})}if(!(d!=null&&d.rowIsRepeatable)){n(pe);const se=Object.keys(pe).length;r(se)}},Ae=o.jsxs("div",{onMouseOver:ce,onMouseOut:K,children:[!S&&!I&&Z&&o.jsx(Xr,{handleFieldSettingsSidebar:he,...t}),o.jsx("div",{className:`field-${(c==null?void 0:c.isFluid)===!0?" card py-3 px-4 p-fluid":"card py-3 px-4"}`,children:o.jsxs("div",{className:"grid",children:[o.jsxs("div",{className:"col-12",children:[(c==null?void 0:c.showHeaderText)&&o.jsx("h6",{children:(ne=c==null?void 0:c.headerText)==null?void 0:ne[F==null?void 0:F.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(da,{sectionIndex:h,fieldIndex:u,field:c,update:E,value:x}),(($=c==null?void 0:c.attributes)==null?void 0:$.required)&&o.jsx("span",{className:"must-required mr-1",children:"*"})," ",I?o.jsx(o.Fragment,{children:(re=c==null?void 0:c.label)==null?void 0:re[F==null?void 0:F.type]}):o.jsx(sa,{...t}),o.jsx("span",{className:"ml-3",children:c!=null&&c.showToolTip?o.jsx(o.Fragment,{children:o.jsx(Mi,{message:(W=c==null?void 0:c.toolTip)==null?void 0:W[F==null?void 0:F.type],position:"right"})}):""})]}),Te(),o.jsx("div",{children:((de=c==null?void 0:c.attributes)==null?void 0:de.required)&&o.jsx("small",{className:"error",children:O===1&&!V?(Ie=c==null?void 0:c.validationMesssage)==null?void 0:Ie.language:""})}),o.jsx("div",{children:(c==null?void 0:c.showHelperText)&&o.jsx("small",{children:(Ee=c==null?void 0:c.helperText)==null?void 0:Ee[F==null?void 0:F.type]})}),((ve=c==null?void 0:c.inlineConditionalRules)==null?void 0:ve.rules.length)>0&&I===!1&&o.jsx("p",{children:"Inline conditional rules"}),ie===!0&&((Se=(me=c==null?void 0:c.inlineConditionalRules)==null?void 0:me.rules)==null?void 0:Se.length)>0&&((De=c==null?void 0:c.inlineConditionalRules)==null?void 0:De.rules.map((j,oe)=>{const pe=V;return I===!0?o.jsx("div",{children:j==null?void 0:j.conditions.map((ue,le)=>o.jsx(P.Fragment,{children:o.jsx(d0,{isConditionTrue:(pe==null?void 0:pe.value)==ue.value||!I,inputValue:V,condition:ue,ruleIndex:oe,conditionIndex:le,field:c,section:g,page:v,row:d,pageIndex:f,sectionIndex:h,rowIndex:m,columnIndex:A,path:w,...t})},`select-rule-${oe}-`+le))},`rule-${oe}`):o.jsx(ui,{className:"mt-4",header:`Rule ${oe+1}`,children:o.jsx("div",{children:j==null?void 0:j.conditions.map((ue,le)=>o.jsx(P.Fragment,{children:o.jsx(d0,{isConditionTrue:(pe==null?void 0:pe.value)===ue.value||!I,inputValue:V,condition:ue,ruleIndex:oe,conditionIndex:le,isPreview:I,field:c,section:g,page:v,row:d,pageIndex:f,sectionIndex:h,rowIndex:m,columnIndex:A,path:w,...t})},`select-rule-${oe}-`+le))},`rule-${oe}`)},oe)}))]}),_&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(Ni,{...t})]})]})})]});return o.jsxs(o.Fragment,{children:[M===!0&&o.jsx(Wi,{visibilty:M,closeSettingFieldSidebar:ee,...t},c==null?void 0:c.uuid),o.jsx(Si,{...t,fieldWrap:Ae})]})},PSe=t=>{var ie,ge,Z,Q;const{taskRegisterData:e,updateTaskRegisterData:n,updateTaskProgressValue:r,userTaskSubmitFormData:i}=yr(),{field:a,row:s,isDisabled:l}=t,{isPreview:c,isRenderView:u,isAdmin:d}=Qt(),{userSelectedLanguage:f}=on(),[h,g]=P.useState(!1),[v,m]=P.useState(""),[A,w]=P.useState(0),[E,x]=P.useState(!1),[C,S]=P.useState(!1),_=()=>{S(!0)},I=()=>{S(!1)},F=ce=>{g(ce)},M=()=>{g(!1)},L=()=>{var K,he,ee,te;let ce=null;if(s!=null&&s.rowIsRepeatable){if(s!=null&&s.repeatableFields){const Y=[...s.repeatableFields],R=It.findIndex(Y,function(fe){return fe.uuid===(a==null?void 0:a.uuid)});R>=0&&Y[R].fieldData?(ce=Y[R].fieldData,m(Y[R].fieldData)):(a.isValid=0,m(""))}}else{const Y=i,R=It.cloneDeep(e);if(Y!=null&&Y.length){for(const fe of Y)if(fe.fieldId===t.field.uuid&&((K=fe==null?void 0:fe.postData)!=null&&K.length)){ce=(he=fe==null?void 0:fe.postData[0])==null?void 0:he.postValue,m((ee=fe==null?void 0:fe.postData[0])==null?void 0:ee.postValue),R[a==null?void 0:a.uuid]=(te=fe==null?void 0:fe.postData[0])==null?void 0:te.postValue;const be=Object.keys(R).length;r(be);break}}}m(ce),setTimeout(()=>{x(!0)},2e3)};P.useEffect(()=>{E||L();const ce=Zt.addListener("clearRepeatableFields",ee=>{ee===(s==null?void 0:s.uuid)&&(m(""),w(0),a.isValid=1)}),K=Zt.addListener("onSubmitUserForm",()=>{var ee;if((ee=a==null?void 0:a.attributes)!=null&&ee.required){const te=v;te!=null&&te[a.uuid]?a.isValid=1:a.isValid=0}else a.isValid=1}),he=Zt.addListener("OnInvalidFieldCatch",ee=>{a.uuid===(ee==null?void 0:ee.fieldId)?w(1):w(0)});return()=>{K.remove(),he.remove(),ce.remove()}});const V=(ce,K,he,ee,te)=>ee==null?void 0:ee.map(Y=>{var R,fe;return{...Y,children:Y!=null&&Y.children&&((R=Y==null?void 0:Y.children)==null?void 0:R.length)>0?[...((fe=Y==null?void 0:Y.children)==null?void 0:fe.map(be=>K===(Y==null?void 0:Y.uuid)||te===!0?(he!=null&&he[be==null?void 0:be.uuid]&&delete he[be==null?void 0:be.uuid],{...be,options:V(ce,K,he,(be==null?void 0:be.options)||[],!0)}):{...be,options:V(ce,K,he,(be==null?void 0:be.options)||[],!1)}))||[]]:[]}}),U=(ce,K)=>{const he={...v};V(ce,K,he,a==null?void 0:a.options,!1),he[ce]=K,m(he),s!=null&&s.rowIsRepeatable||O(he)},O=ce=>{const K=i,he=It.cloneDeep(e);if(K!==null){if(ce){if(he[a==null?void 0:a.uuid]=ce,(K==null?void 0:K.length)>0)for(const ee of K)ee.fieldId===t.field.uuid&&(ee.postData[0]={postValue:ce})}else if(delete he[a==null?void 0:a.uuid],(K==null?void 0:K.length)>0)for(const ee of K)ee.fieldId===t.field.uuid&&(ee.postData[0]={postValue:""})}if(!(s!=null&&s.rowIsRepeatable)){n(he);const ee=Object.keys(he).length;r(ee)}},q=o.jsxs("div",{onMouseOver:_,onMouseOut:I,children:[!u&&!c&&C&&o.jsx(Xr,{handleFieldSettingsSidebar:F,...t}),o.jsx("div",{className:`field-${(a==null?void 0:a.isFluid)===!0?" card py-3 px-4 p-fluid":"card py-3 px-4"}`,children:o.jsxs("div",{className:"grid",children:[o.jsxs("div",{className:"col-12",children:[(a==null?void 0:a.showHeaderText)&&o.jsx("h6",{children:(ie=a==null?void 0:a.headerText)==null?void 0:ie[f==null?void 0:f.type]}),o.jsx(vb,{...t,isDisabled:l,isFirst:!0,isPreview:c,schema:a,field:a,value:v,update:(ce,K)=>{U(ce,K)}}),o.jsx("div",{children:((ge=a==null?void 0:a.attributes)==null?void 0:ge.required)&&o.jsx("small",{className:"error",children:A===1&&!v?(Z=a==null?void 0:a.validationMesssage)==null?void 0:Z.english:""})}),o.jsx("div",{children:(a==null?void 0:a.showHelperText)&&o.jsx("small",{children:(Q=a==null?void 0:a.helperText)==null?void 0:Q[f==null?void 0:f.type]})})]}),d&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(Ni,{...t})]})]})})]});return o.jsxs(o.Fragment,{children:[o.jsx(Wi,{visibilty:h,closeSettingFieldSidebar:M,...t},a==null?void 0:a.uuid),o.jsx(Si,{...t,fieldWrap:q})]})},MSe=t=>{var R,fe,be,Te,ye,Ae,ne,$,re,W;const{field:e,fieldIndex:n,sectionIndex:r,pageIndex:i,row:a,rowIndex:s,columnIndex:l,isDisabled:c}=t,{isRenderView:u,isAdmin:d,isPreview:f}=Qt(),{taskRegisterData:h,updateTaskRegisterData:g,updateTaskProgressValue:v,updateUserFormDataSubmit:m,userTaskSubmitFormData:A,task_status:w,TASK_PUBLISHED:E}=yr(),[x,C]=P.useState(!1),{userSelectedLanguage:S,fieldSettingUpdate:_}=on(),[I,F]=P.useState(!1),[M,L]=P.useState(0),[V,U]=P.useState(),[O,q]=P.useState(!1),ie=()=>{q(!0)},ge=()=>{q(!1)},Z=[{icon:"pi pi-thumbs-up",thumbValue:"up"},{icon:"pi pi-thumbs-down",thumbValue:"down"}],Q=de=>o.jsx("span",{className:"m-2",children:o.jsx("i",{style:{fontSize:30},className:de.icon})}),ce=()=>{var de,Ie,Ee;if(a!=null&&a.rowIsRepeatable){if(a!=null&&a.repeatableFields){const ve=[...a.repeatableFields],me=It.findIndex(ve,function(Se){return Se.uuid===(e==null?void 0:e.uuid)});me>=0&&ve[me].fieldData?U(ve[me].fieldData):U("")}}else{const ve=A;if(ve!=null&&ve.length){for(const me of ve)if(me.fieldId===t.field.uuid&&((de=me==null?void 0:me.postData[0])==null?void 0:de.postValue)!==""&&((Ie=me==null?void 0:me.postData[0])!=null&&Ie.postValue)){U((Ee=me==null?void 0:me.postData[0])==null?void 0:Ee.postValue);break}}}F(!0)};P.useEffect(()=>{I||ce();const de=Zt.addListener("clearRepeatableFields",me=>{me===(a==null?void 0:a.uuid)&&(U(""),L(0),e.isValid=0,_(i,r,s,l,n,e))}),Ie=Zt.addListener("onSubmitUserForm",()=>{var me;(me=e==null?void 0:e.attributes)!=null&&me.required?V?e.isValid=1:e.isValid=0:e.isValid=1}),Ee=Zt.addListener("OnInvalidFieldCatch",me=>{e.uuid===(me==null?void 0:me.fieldId)?L(1):L(0)}),ve=Zt.addListener("OnGetFieldValue",me=>{var De;const Se=(De=me==null?void 0:me.repeatableColumn)==null?void 0:De.filter((j,oe)=>(j==null?void 0:j.fieldUuid)===(e==null?void 0:e.uuid));Se!=null&&Se.length});return()=>{Ie.remove(),Ee.remove(),ve.remove(),de.remove()}});const K=de=>{U(de.value);const Ie=A,Ee=It.cloneDeep(h);if(Ie!==null){if(de!=null&&de.value){if(Ee[e==null?void 0:e.uuid]=de==null?void 0:de.value,(Ie==null?void 0:Ie.length)>0)for(const ve of Ie)ve.fieldId===t.field.uuid&&(ve.postData[0]={postValue:de.value})}else if(delete Ee[e==null?void 0:e.uuid],(Ie==null?void 0:Ie.length)>0)for(const ve of Ie)ve.fieldId===t.field.uuid&&(ve.postData[0]={postValue:""})}if(!(a!=null&&a.rowIsRepeatable)){g(Ee);const ve=Object.keys(Ee).length;v(ve)}},he=(de,Ie)=>{var Ee;if(A){const ve=[...A],me=It.findIndex(ve,function(De){return De.rowId===(a==null?void 0:a.uuid)});let Se=(Ee=A[me])==null?void 0:Ee.repeatableFields;Se={...Se,[de==null?void 0:de.uuid]:Ie},ve[me]={...ve[me],repeatableFields:Se},m(ve)}U(Ie),Ie!==""?de.isValid=1:de.isValid=0},ee=de=>{C(de)},te=()=>{C(!1)},Y=o.jsxs("div",{onMouseOver:ie,onMouseOut:ge,children:[!u&&!f&&O&&o.jsx(Xr,{handleFieldSettingsSidebar:ee,...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:(R=e==null?void 0:e.headerText)==null?void 0:R[S==null?void 0:S.type]}),(e==null?void 0:e.showLabel)&&o.jsxs("label",{htmlFor:n,className:"flex font-medium mb-3 text-700 text-2xl",children:[o.jsx(da,{...t}),((fe=e==null?void 0:e.attributes)==null?void 0:fe.required)&&o.jsx("span",{className:"must-required mr-1",children:"*"})," ",f?o.jsx(o.Fragment,{children:(be=e==null?void 0:e.label)==null?void 0:be[S==null?void 0:S.type]}):o.jsx(sa,{...t}),o.jsx("span",{className:"ml-3",children:(e==null?void 0:e.showToolTip)&&o.jsx(Mi,{message:(Te=e==null?void 0:e.toolTip)==null?void 0:Te[S==null?void 0:S.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-"+((Ae=(ye=e==null?void 0:e.icon)==null?void 0:ye.properties)==null?void 0:Ae.name)}),o.jsx("div",{className:"card flex justify-content-start",children:o.jsx(a1,{value:V,onChange:de=>{U(de.value),a!=null&&a.rowIsRepeatable?he(e,de.value):K(de)},itemTemplate:Q,optionLabel:"value",onFocus:()=>L(1),options:Z,readOnly:c,className:M===1&&((ne=e==null?void 0:e.attributes)!=null&&ne.required)?V?"valid":"invalid":"valid'"})})]}),o.jsx("div",{children:(($=e==null?void 0:e.attributes)==null?void 0:$.required)&&o.jsx(o.Fragment,{children:o.jsx("small",{className:"error",children:M===1&&!V?(re=e==null?void 0:e.validationMesssage)==null?void 0:re.english:""})})}),o.jsx("div",{children:(e==null?void 0:e.showHelperText)&&o.jsx("small",{children:(W=e==null?void 0:e.helperText)==null?void 0:W[S==null?void 0:S.type]})})]}),d&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(Ni,{...t})]})]})})]});return o.jsxs(o.Fragment,{children:[o.jsx(Wi,{visibilty:x,closeSettingFieldSidebar:te,...t}),o.jsx(Si,{...t,fieldWrap:Y})]})},LSe=t=>{var ee,te,Y,R,fe,be,Te;const{taskRegisterData:e,updateTaskRegisterData:n,updateTaskProgressValue:r,updateUserFormDataSubmit:i,userTaskSubmitFormData:a}=yr(),{userSelectedLanguage:s,fieldSettingUpdate:l}=on(),{field:c,fieldIndex:u,sectionIndex:d,pageIndex:f,row:h,rowIndex:g,columnIndex:v}=t,{isRenderView:m,isAdmin:A,isPreview:w}=Qt(),[E,x]=P.useState(!1),[C,S]=P.useState(""),[_,I]=P.useState(0),[F,M]=P.useState(!1),[L,V]=P.useState(!1),U=()=>{V(!0)},O=()=>{V(!1)},q=()=>{var ye,Ae,ne;if(h!=null&&h.rowIsRepeatable){if(h!=null&&h.repeatableFields){const $=[...h.repeatableFields],re=It.findIndex($,function(W){return W.uuid===(c==null?void 0:c.uuid)});re>=0&&$[re].fieldData?S($[re].fieldData):S("")}}else{const $=a;if($!=null&&$.length){for(const re of $)if(re.fieldId===t.field.uuid&&((ye=re==null?void 0:re.postData[0])==null?void 0:ye.postValue)!==""&&((Ae=re==null?void 0:re.postData[0])!=null&&Ae.postValue)){S((ne=re==null?void 0:re.postData[0])==null?void 0:ne.postValue);break}}}M(!0)};P.useEffect(()=>{F||q();const ye=Zt.addListener("clearRepeatableFields",re=>{re===(h==null?void 0:h.uuid)&&(S(""),I(0),c.isValid=0,l(f,d,g,v,u,c))}),Ae=Zt.addListener("onSubmitUserForm",()=>{var re;(re=c==null?void 0:c.attributes)!=null&&re.required?C?c.isValid=1:c.isValid=0:c.isValid=1}),ne=Zt.addListener("OnInvalidFieldCatch",re=>{c.uuid===(re==null?void 0:re.fieldId)?I(1):I(0)}),$=Zt.addListener("OnGetFieldValue",re=>{var de;const W=(de=re==null?void 0:re.repeatableColumn)==null?void 0:de.filter(Ie=>(Ie==null?void 0:Ie.fieldUuid)===(c==null?void 0:c.uuid));W!=null&&W.length});return()=>{Ae.remove(),ne.remove(),$.remove(),ye.remove()}});const ie=ye=>{x(ye)},ge=()=>{x(!1)},Z=ye=>{var $,re;S(ye.target.value);const Ae=a,ne=It.cloneDeep(e);if(Ae!==null){if(($=ye==null?void 0:ye.target)!=null&&$.value){if(ne[c==null?void 0:c.uuid]=(re=ye==null?void 0:ye.target)==null?void 0:re.value,(Ae==null?void 0:Ae.length)>0)for(const W of Ae)W.fieldId===t.field.uuid&&(W.postData[0]={postValue:ye.target.value})}else if(delete ne[c==null?void 0:c.uuid],(Ae==null?void 0:Ae.length)>0)for(const W of Ae)W.fieldId===t.field.uuid&&(W.postData[0]={postValue:""})}if(!(h!=null&&h.rowIsRepeatable)){n(ne);const W=Object.keys(ne).length;r(W)}},Q=(ye,Ae,ne,$)=>{var re;if(a){const W=[...a],de=It.findIndex(W,function(Ee){return Ee.rowId===(h==null?void 0:h.uuid)});let Ie=(re=a[de])==null?void 0:re.repeatableFields;Ie={...Ie,[ne==null?void 0:ne.uuid]:$},W[de]={...W[de],repeatableFields:Ie},i(W)}S($),$!==""?ne.isValid=1:ne.isValid=0},ce=5,K=()=>{const ye=[],Ae=[JE,QE,ZE,GE,WE],ne=["Awful","Not Very Good","Okay","Really Good","Fantastic"];for(let $=0;$<ce;$++)ye.push(o.jsxs("label",{children:[o.jsx("input",{onChange:re=>{h!=null&&h.rowIsRepeatable?Q(f,d,c,re.target.value):Z(re)},checked:parseInt(C)===$,name:"liker-Emoji-scale"+(c==null?void 0:c.uuid),type:"radio",value:$}),o.jsxs("span",{className:"grid m-0",children:[o.jsx("div",{className:"col-12 flex justify-content-center",children:o.jsx("img",{src:Ae[$]})}),o.jsx("div",{children:ne[$]})]})]},`field-${c==null?void 0:c.uuid}-likertEmojiScale-${$} ${parseInt(C)===$?"scale-selected":""}`));return ye},he=o.jsxs("div",{onMouseOver:U,onMouseOut:O,children:[!m&&!w&&L&&o.jsx(Xr,{handleFieldSettingsSidebar:ie,...t}),o.jsxs("div",{className:`field ${w?" ":" builder-element-wrapper "}${(c==null?void 0:c.isFluid)===!0?" card py-3 px-4 p-fluid":"card py-3 px-4"}`,children:[o.jsx("div",{className:"grid",children:o.jsxs("div",{className:"col-12 ",children:[(c==null?void 0:c.showHeaderText)&&o.jsx("h6",{children:(ee=c==null?void 0:c.headerText)==null?void 0:ee[s==null?void 0:s.type]}),(c==null?void 0:c.showLabel)&&o.jsxs("label",{htmlFor:`label${u}`,className:"flex font-medium mb-3 text-700 text-2xl",children:[o.jsx(da,{...t}),((te=c==null?void 0:c.attributes)==null?void 0:te.required)&&o.jsx("span",{className:"must-required mr-1",children:"*"})," ",w?o.jsx(o.Fragment,{children:(Y=c==null?void 0:c.label)==null?void 0:Y[s==null?void 0:s.type]}):o.jsx(sa,{...t}),o.jsx("span",{className:"ml-3",children:(c==null?void 0:c.showToolTip)&&o.jsx(Mi,{message:(R=c==null?void 0:c.toolTip)==null?void 0:R[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:K()})}),o.jsx("div",{children:((fe=c==null?void 0:c.attributes)==null?void 0:fe.required)&&o.jsx("small",{className:"error",children:_===1&&!C?(be=c==null?void 0:c.validationMesssage)==null?void 0:be.english:""})}),o.jsx("div",{children:(c==null?void 0:c.showHelperText)&&o.jsx("small",{children:(Te=c==null?void 0:c.helperText)==null?void 0:Te[s==null?void 0:s.type]})})]})]})}),A&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(Ni,{...t})]})]})]});return o.jsxs(o.Fragment,{children:[o.jsx(Wi,{visibilty:E,closeSettingFieldSidebar:ge,...t}),o.jsx(Si,{...t,fieldWrap:he})]})},BSe=t=>{var q,ie,ge,Z,Q,ce,K,he,ee,te,Y;const{userTaskSubmitFormData:e}=yr(),{userSelectedLanguage:n,fieldSettingUpdate:r}=on(),{isPreview:i,isAdmin:a,isRenderView:s}=Qt(),{field:l,fieldIndex:c,sectionIndex:u,pageIndex:d,row:f,rowIndex:h,columnIndex:g}=t,[v,m]=P.useState(!1),[A,w]=P.useState(""),[E,x]=P.useState(0),[C,S]=P.useState(!1),[_,I]=P.useState(!1),F=()=>{I(!0)},M=()=>{I(!1)},L=()=>{var R,fe,be;if(f!=null&&f.rowIsRepeatable){if(f!=null&&f.repeatableFields){const Te=[...f.repeatableFields],ye=It.findIndex(Te,function(Ae){return Ae.uuid===(l==null?void 0:l.uuid)});ye>=0&&Te[ye].fieldData?w(Te[ye].fieldData):w("")}}else{const Te=e;if(Te!=null&&Te.length){for(const ye of Te)if(ye.fieldId===t.field.uuid&&((R=ye==null?void 0:ye.postData[0])==null?void 0:R.postValue)!==""&&((fe=ye==null?void 0:ye.postData[0])!=null&&fe.postValue)){w((be=ye==null?void 0:ye.postData[0])==null?void 0:be.postValue);break}}}S(!0)};P.useEffect(()=>{C||L();const R=Zt.addListener("clearRepeatableFields",ye=>{ye===(f==null?void 0:f.uuid)&&(w(""),x(0),l.isValid=0,r(d,u,h,g,c,l))}),fe=Zt.addListener("onSubmitUserForm",()=>{var ye,Ae;(ye=l==null?void 0:l.attributes)!=null&&ye.required?A&&(A==null?void 0:A.length)<((Ae=l==null?void 0:l.attributes)==null?void 0:Ae.minLength)?l.isValid=1:l.isValid=0:l.isValid=1}),be=Zt.addListener("OnInvalidFieldCatch",ye=>{l.uuid===(ye==null?void 0:ye.fieldId)?x(1):x(0)}),Te=Zt.addListener("OnGetFieldValue",ye=>{var ne;const Ae=(ne=ye==null?void 0:ye.repeatableColumn)==null?void 0:ne.filter($=>($==null?void 0:$.fieldUuid)===(l==null?void 0:l.uuid));Ae!=null&&Ae.length});return()=>{fe.remove(),be.remove(),Te.remove(),R.remove()}});const V=R=>{m(R)},U=()=>{m(!1)},O=o.jsxs("div",{onMouseOver:F,onMouseOut:M,children:[!s&&!i&&_&&o.jsx(Xr,{handleFieldSettingsSidebar:V,...t}),o.jsxs("div",{className:`field ${i?" ":" builder-element-wrapper "}${(l==null?void 0:l.isFluid)===!0?" card p-fluid ":"card"} ${s?" ":" py-6 px-4 "}`,children:[o.jsx("div",{className:"grid",children:o.jsxs("div",{className:a?"col-6 ":"col-12 p-fluid",children:[(l==null?void 0:l.showHeaderText)&&o.jsx("h6",{children:(q=l==null?void 0:l.headerText)==null?void 0:q[n==null?void 0:n.type]}),(l==null?void 0:l.showLabel)&&o.jsxs("label",{htmlFor:c,className:"flex font-medium mb-3 text-700 text-2xl",children:[o.jsx(da,{...t}),((ie=l==null?void 0:l.attributes)==null?void 0:ie.required)&&o.jsx("span",{className:"must-required mr-1",children:"*"})," ",i?o.jsx(o.Fragment,{children:(ge=l==null?void 0:l.label)==null?void 0:ge[n==null?void 0:n.type]}):o.jsx(sa,{...t}),(l==null?void 0:l.showToolTip)&&o.jsx("span",{className:"ml-3",children:o.jsx(Mi,{message:(Z=l==null?void 0:l.toolTip)==null?void 0:Z[n==null?void 0:n.type],position:"right"})})]}),o.jsxs("div",{className:"mt-3",children:[o.jsx("span",{className:"p-input-icon-"+(l==null?void 0:l.iconAlignment),children:(l==null?void 0:l.showIcon)&&o.jsx("i",{className:"pi pi-"+((ce=(Q=l==null?void 0:l.icon)==null?void 0:Q.properties)==null?void 0:ce.name)})}),o.jsx("div",{children:((K=l==null?void 0:l.attributes)==null?void 0:K.required)&&o.jsxs(o.Fragment,{children:[o.jsx("small",{className:"error",children:E===1&&!A?(he=l==null?void 0:l.validationMesssage)==null?void 0:he.english:""}),o.jsx("small",{className:"error",children:E===1&&(A==null?void 0:A.length)<((ee=l==null?void 0:l.attributes)==null?void 0:ee.minLength)?`Mini length ${(te=l==null?void 0:l.attributes)==null?void 0:te.minLength}`:""})]})}),o.jsx("div",{children:(l==null?void 0:l.showHelperText)&&o.jsx("small",{children:(Y=l==null?void 0:l.helperText)==null?void 0:Y[n==null?void 0:n.type]})})]})]})}),a&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(Ni,{...t})]})]})]});return o.jsxs(o.Fragment,{children:[o.jsx(Wi,{visibilty:v,closeSettingFieldSidebar:U,...t}),o.jsx(Si,{...t,fieldWrap:O})]})},VSe=t=>{var U,O,q,ie,ge,Z,Q;const{field:e,fieldIndex:n,columnIndex:r,sectionIndex:i,rowIndex:a,pageIndex:s,ref:l}=t,{isPreview:c}=Qt(),{userSelectedLanguage:u,fieldSettingUpdate:d}=on(),{userTaskSubmitFormData:f}=yr(),[h,g]=P.useState(!1),[v,m]=P.useState(""),[A,w]=P.useState(0),[E,x]=P.useState(!1),[C,S]=P.useState(!1),_=()=>{S(!0)},I=()=>{S(!1)},F=()=>{var K;const ce=f;if(ce.length){for(const he of ce)if(he.fieldId===t.field.uuid){m((K=he==null?void 0:he.postData[0])==null?void 0:K.postValue),x(!0);break}}};P.useEffect(()=>{E||F();const ce=Zt.addListener("onSubmitUserForm",()=>{var he;(he=e==null?void 0:e.attributes)!=null&&he.required&&(v?e.isValid=1:e.isValid=0,d(s,i,a,r,n,e))}),K=Zt.addListener("OnInvalidFieldCatch",he=>{e.uuid===(he==null?void 0:he.fieldId)?w(1):w(0)});return()=>{ce.remove(),K.remove()}});const M=ce=>{g(ce)},L=()=>{g(!1)},V=o.jsxs("div",{onMouseOver:_,onMouseOut:I,children:[!c&&C&&o.jsx(Xr,{handleFieldSettingsSidebar:M,...t}),o.jsx("div",{className:c?"":"field-form-builder",ref:l,children:o.jsx("div",{className:"field",children:o.jsx("div",{className:"grid",children:o.jsxs("div",{className:c?"col-12":"col-11",children:[(e==null?void 0:e.showHeaderText)&&o.jsx("h6",{children:(U=e==null?void 0:e.headerText)==null?void 0:U[u==null?void 0:u.type]}),(e==null?void 0:e.showLabel)&&o.jsxs("label",{htmlFor:`${n}`,className:"flex font-medium mb-3 text-700 text-2xl",children:[((O=e==null?void 0:e.attributes)==null?void 0:O.required)&&o.jsx("span",{className:"must-required",children:"*"})," ",i+1,".",r+1,".",n+1," ",(q=e==null?void 0:e.label)==null?void 0:q[u==null?void 0:u.type],o.jsx("span",{className:"ml-3",children:(e==null?void 0:e.showToolTip)&&o.jsx(Mi,{message:(ie=e==null?void 0:e.toolTip)==null?void 0:ie[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:((ge=e==null?void 0:e.attributes)==null?void 0:ge.required)&&o.jsx("small",{className:"error",children:A===1&&!v?(Z=e==null?void 0:e.validationMesssage)==null?void 0:Z.language:""})}),o.jsx("div",{children:(e==null?void 0:e.showHelperText)&&o.jsx("small",{children:(Q=e==null?void 0:e.helperText)==null?void 0:Q[u==null?void 0:u.type]})})]})]})})})})]});return o.jsxs(o.Fragment,{children:[h===!0&&o.jsx(Wi,{visibilty:h,closeSettingFieldSidebar:L,...t}),o.jsx(Si,{...t,fieldWrap:V})]})},tu=t=>{const{data:e,path:n,field:r}=t,{renderType:i,isPreview:a,isAdmin:s}=Qt(),{task_status:l,TASK_PUBLISHED:c}=yr(),u=P.useRef(null),[d,f]=P.useState(!1),[{isDragging:h},g]=ia({item:{...e,type:gf,uuid:e==null?void 0:e.uuid,path:n},type:gf,collect:C=>({isDragging:C.isDragging()})}),v=h?.25:1;g(u);const m=l===c||s,A=C=>{switch(r==null?void 0:r.componentType){case"text":return o.jsx(Mle,{typeName:"Text",field:r,...C});case"number":return o.jsx(qle,{typeName:"Number",field:r,...C});case"email":return o.jsx($le,{typeName:"Email",field:r,...C});case"textarea":return o.jsx(jle,{typeName:"Text Area",field:r,...C});case"editor":return o.jsx(oce,{typeName:"Editor",field:r,...C});case"question":return o.jsx(Vce,{typeName:"Exam",field:r,...C});case"select":return o.jsx(Gle,{typeName:"Select",field:r,...C});case"multi-select":return o.jsx(Cce,{typeName:"Multi Select",field:r,...C});case"checkbox":return o.jsx(Tce,{typeName:"Checkbox",field:r,...C});case"radio":return o.jsx(Ice,{typeName:"Radio",field:r,...C});case"radio-hierarchal":return o.jsx(PSe,{typeName:"Radio Progressive",field:r,...C});case"href":return o.jsx(Ule,{typeName:"Href",field:r,...C});case"heading":return o.jsx(Oce,{typeName:"Heading",field:r,...C});case"paragraph":return o.jsx(Qve,{typeName:"Paragraph",field:r,...C});case"image":return o.jsx(ik,{typeName:"Image",field:r,...C});case"video":return o.jsx(J3e,{typeName:"Video",field:r,...C});case"hr":return o.jsx(Z3e,{typeName:"Hr",field:r,...C});case"date-picker":return o.jsx(e4e,{typeName:"Date Picker",field:r,...C});case"signature":return o.jsx(t4e,{typeName:"Signature",field:r,...C});case"file-upload":return o.jsx(eye,{typeName:"File Upload",field:r,...C});case"facebook-login":return o.jsx(BSe,{typeName:"Facebook Login",field:r,...C});case"anchor":return o.jsx(VSe,{ref:u,typeName:"Anchor Tag",field:r,...C});case"image-gallery":return o.jsx(Rve,{typeName:"Image Gallery",field:r,...C});case"quiz":return o.jsx(rye,{typeName:"Quiz",field:r,...C});case"document":return o.jsx(tye,{typeName:"Document",field:r,...C});case"list":return o.jsx(sye,{typeName:"List",field:r,...C});case"country":return o.jsx(Ple,{typeName:"Country",field:r,...C});case"phone":return o.jsx(gSe,{typeName:"Phone",field:r,...C});case"web-url":return o.jsx(mSe,{typeName:"Website Url",field:r,...C});case"rating":return o.jsx(ASe,{typeName:"Rating",field:r,...C});case"slider":return o.jsx(wSe,{typeName:"Rating",field:r,...C});case"hidden-field":return o.jsx(SSe,{typeName:"Hidden Field",field:r,...C});case"likert-scale":return o.jsx(xSe,{typeName:"Likert Scale Field",field:r,...C});case"type-signature":return o.jsx(CSe,{typeName:"Likert Scale Field",field:r,...C});case"address":return o.jsx(TSe,{typeName:"Address",field:r,...C});case"grid-component":return o.jsx(gj,{typeName:"Grid",field:r,...C});case"matrix-scale":return o.jsx(gj,{typeName:"Grid",field:r,...C});case"matrix-dropdown":return o.jsx(_Se,{typeName:"Grid",field:r,...C});case"thumbs":return o.jsx(MSe,{typeName:"Thumbs Up and Down",field:r,...C});case"likert-emoji-scale":return o.jsx(LSe,{typeName:"Thumbs Up and Down",field:r,...C});case"table":return o.jsx(FSe,{typeName:"Grid",field:r,...C});case"dynamic-listing":return o.jsx(kSe,{typeName:"Grid",field:r,...C});default:return o.jsx(o.Fragment,{children:"Empty"})}},w=()=>{f(!0)},E=()=>{f(!1)},x=()=>{let C="";return a?(C=C+" component ",i===vf?C=C+" ":C=C+" px-2 "):(C=C+" component draggable field-form-builder-not-preview",i===vf?C=C+" pdf-component":C=C+" px-2 pdf-component"),C};return o.jsx(o.Fragment,{children:o.jsxs("div",{style:{opacity:v},className:x(),onMouseOver:w,onMouseOut:E,children:[!a&&d&&o.jsx("i",{ref:a===!1?u:null,className:"elementDrag-icon pi pi-arrows-alt cursor-move",style:{fontSize:"1em"}}),A({...t,isDisabled:m})]})})},USe={position:"relative"},qSe=t=>{var M,L,V,U,O;const{data:e,path:n,pageIndex:r,sectionIndex:i,rowIndex:a,columnIndex:s,section:l,row:c,page:u}=t,d=P.useRef(null),{removeColumn:f,addColumn:h,cloneColumn:g,formBuilderFormLayout:v,handleDrop:m}=on(),{isPreview:A,isRenderView:w,isAdvanceView:E,emitSocketData:x}=Qt(),[{isDragging:C},S]=ia({type:ws,item:{type:ws,uuid:e==null?void 0:e.uuid,children:e.children,path:n},collect:q=>({isDragging:q.isDragging()})}),_=C&&!w?.25:1;S(d);const I=(q,ie,ge,Z,Q,ce,K)=>o.jsx(tu,{page:u,type:"field",row:c,column:e,section:l,field:q,data:q,path:ie,pageIndex:ge,sectionIndex:Z,rowIndex:Q,columnIndex:ce,fieldIndex:K},`component-${n}-${q==null?void 0:q.uuid}`),F=(q,ie,ge,Z,Q)=>{var ee,te,Y,R;const ce=q.collapsed?"pi pi-chevron-down":"pi pi-chevron-up",K=`${q.className} justify-content-space-between`,he=`${q.titleClassName} pl-1 text-primary`;return o.jsxs(o.Fragment,{children:[o.jsx(sn,{target:".clone-tool"}),o.jsx(sn,{target:".add-column-tool"}),o.jsxs("div",{className:K,children:[o.jsxs("span",{ref:A===!1?d:null,children:[o.jsx("button",{className:q.togglerClassName,children:o.jsx("span",{className:"pi pi-sliders-h dragabble"})}),o.jsxs("button",{className:q.togglerClassName,onClick:q.onTogglerClick,children:[o.jsx("span",{className:ce}),o.jsx(tn,{})]}),o.jsx("span",{className:he,children:"Column"})]}),A===!1&&o.jsxs("div",{className:"p-panel-icons",children:[o.jsx("span",{className:"add-column-tool","data-pr-tooltip":"Add Column",children:o.jsxs("button",{className:q.togglerClassName,onClick:()=>{h(ie,ge,Z),x()},children:[o.jsx("span",{className:"pi pi-plus"}),o.jsx(tn,{})]})}),((R=(Y=(te=(ee=v[ie])==null?void 0:ee.children[ge])==null?void 0:te.children[Z])==null?void 0:Y.children)==null?void 0:R.length)>1&&o.jsxs("button",{className:q.togglerClassName,onClick:()=>{f(ie,ge,Z,Q),x()},children:[o.jsx("span",{className:"pi pi-trash"}),o.jsx(tn,{})]}),o.jsx("span",{className:"clone-tool","data-pr-tooltip":"Clone",children:o.jsxs("button",{className:q.togglerClassName,onClick:()=>{g(e,ie,ge,Z,Q),x()},children:[o.jsx("span",{className:"pi pi-clone"}),o.jsx(tn,{})]})})]})]})]})};return o.jsx("div",{style:E?{...USe,opacity:_}:{},className:w?"form-builder-column container-column":"draggable form-builder-column container-column",children:A===!1?o.jsx(o.Fragment,{children:E===!0?o.jsxs(ui,{className:"builder-row-column",header:"Column",toggleable:!0,headerTemplate:q=>F(q,r,i,a,s),children:[((M=e==null?void 0:e.children)==null?void 0:M.length)>0?(L=e==null?void 0:e.children)==null?void 0:L.map((q,ie)=>{const ge=`${n}-${ie}`;return o.jsxs(P.Fragment,{children:[o.jsx(Fr,{isAdvanceView:E,fieldDropArea:!0,data:{path:ge,childrenCount:e.children.length,droppedField:e},onDrop:m}),I(q,ge,r,i,a,s,ie)]},ge)}):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:`${n}-${e.children.length}`,childrenCount:e.children.length,droppedField:e},onDrop:m,isLast:!0})]}):o.jsx(o.Fragment,{children:o.jsxs("div",{children:[((V=e==null?void 0:e.children)==null?void 0:V.length)>0?(U=e==null?void 0:e.children)==null?void 0:U.map((q,ie)=>{const ge=`${n}-${ie}`;return o.jsxs(P.Fragment,{children:[o.jsx(Fr,{isAdvanceView:E,fieldDropArea:!0,data:{path:ge,childrenCount:e.children.length,droppedField:e},onDrop:m}),I(q,ge,r,i,a,s,ie)]},ge)}):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:`${n}-${e.children.length}`,childrenCount:e.children.length,droppedField:e},onDrop:m,isLast:!0})]})})}):o.jsx(o.Fragment,{children:(O=e==null?void 0:e.children)==null?void 0:O.map((q,ie)=>{const ge=`${n}-${ie}`;return o.jsx(P.Fragment,{children:I(q,ge,r,i,a,s,ie)},ge)})})})},$Se=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(bn,{value:(i=r==null?void 0:r.heading)==null?void 0:i[e==null?void 0:e.type],onChange:l=>n("heading",e,l.target.value)})]}),o.jsxs("div",{className:"field",children:[o.jsx("label",{children:"Row Description"}),o.jsx(ks,{value:(a=r==null?void 0:r.subHeadingText)==null?void 0:a[e==null?void 0:e.type],onChange:l=>n("subHeadingText",e,l.target.value)})]}),(r==null?void 0:r.rowIsRepeatable)===!0&&o.jsxs("div",{className:"field",children:[o.jsx("span",{className:"must-required",children:"*"})," ",o.jsx("label",{children:"Add To List Button Label"}),o.jsx(bn,{value:(s=r.addToListButtonLabel)==null?void 0:s[e==null?void 0:e.type],onChange:l=>n("addToListButtonLabel",e,l.target.value)})]})]})},jSe=t=>{const{stateRow:e,onHandleChangeAdvanceSettings:n}=t,{renderType:r}=Qt();return o.jsxs("div",{className:"p-fluid",children:[r===Q0&&o.jsxs("div",{className:"field-checkbox",children:[o.jsx(Br,{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(Ba,{value:e==null?void 0:e.minimumEntries,onChange:i=>n("minimumEntries",i.value)})]}),o.jsxs("div",{className:"field-checkbox",children:[o.jsx(Br,{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."," "]})]})]})},zSe=t=>{var f,h,g,v;const{onHandleChange:e,stateRow:n,onHandleChangePageMargin:r}=t,i=new fy,[,a]=P.useState("");P.useEffect(()=>{},[]);const[s]=P.useState(null),l=()=>{},c=m=>{e("bgImage",m==null?void 0:m.url)},u=[{icon:"pi pi-image",value:"image"},{icon:"pi pi-palette ",value:"color"},{icon:"pi pi-microsoft ",value:"gradient"}],d=m=>o.jsx("i",{className:m.icon});return o.jsxs("div",{className:"",children:[o.jsxs("div",{className:" field",children:[o.jsxs("div",{className:"grid",children:[o.jsxs("div",{className:"field col-2 md:col-3",children:[o.jsx("label",{children:"Left"}),o.jsx(Ba,{value:(f=n==null?void 0:n.margin)==null?void 0:f.left,onChange:m=>{r("left",m.value)},mode:"decimal",showButtons:!0,min:0,max:100})]}),o.jsxs("div",{className:"field col-2 md:col-3",children:[o.jsx("label",{children:"Right"}),o.jsx(Ba,{value:(h=n==null?void 0:n.margin)==null?void 0:h.right,onChange:m=>{r("right",m.value)},mode:"decimal",showButtons:!0,min:0,max:100})]}),o.jsxs("div",{className:"field col-2 md:col-3",children:[o.jsx("label",{children:"Top"}),o.jsx(Ba,{value:(g=n==null?void 0:n.margin)==null?void 0:g.top,onChange:m=>{r("top",m.value)},mode:"decimal",showButtons:!0,min:0,max:100})]}),o.jsxs("div",{className:"field col-2 md:col-3",children:[o.jsx("label",{children:"Bottom"}),o.jsx(Ba,{value:(v=n==null?void 0:n.margin)==null?void 0:v.bottom,onChange:m=>{r("bottom",m.value)},mode:"decimal",showButtons:!0,min:0,max:100})]})]}),o.jsx("label",{children:"Background Type"}),o.jsx(a1,{value:n==null?void 0:n.bgType,options:u,onChange:m=>e("bgType",m.value),itemTemplate:d,optionLabel:"value"})]}),(n==null?void 0:n.bgType)==="color"&&o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"p-fluid field",children:o.jsx(l0,{value:(n==null?void 0:n.bgColor)||"",onChange:m=>e("bgColor",m.value)})}),o.jsx(l0,{value:(n==null?void 0:n.bgColor)||"",onChange:m=>e("bgColor",m.value),inline:!0})]}),(n==null?void 0:n.bgType)==="image"&&o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:"p-fluid field",children:[o.jsx("span",{className:"must-required",children:"*"}),o.jsx("label",{children:"Background image"}),o.jsx(bn,{value:(n==null?void 0:n.bgImage)||"",onChange:m=>e("bgImage",m.target.value),placeholder:"enter page title",id:"page_title",name:"page_title"})]}),o.jsxs("div",{className:"shadow-2 border-round surface-card p-4",children:[o.jsx("div",{className:"flex align-items-center justify-content-between mb-4",children:o.jsx("span",{className:"text-xl font-medium text-900",children:"Selected files"})}),o.jsx("h5",{children:"Media library"}),o.jsxs("div",{className:"grid",children:[o.jsx("div",{className:"col-8",children:o.jsxs("div",{className:"grid",children:[o.jsx("div",{className:"col-12 mb-5",children:o.jsxs("div",{className:"p-inputgroup",children:[o.jsx(bn,{placeholder:"Keyword",onChange:m=>a(m.target.value)}),o.jsx(Ft,{text:!0,icon:"pi pi-search",className:"p-button-info",onClick:()=>l()})]})}),o.jsx("div",{className:"col-12 mb-5",children:o.jsx("div",{className:"surface-section ",children:o.jsx("div",{className:"grid -mt-3 -ml-3 -mr-3"})})})]})}),o.jsx("div",{className:"col-4 card",children:s!==null&&o.jsxs("div",{className:"surface-card p-4 shadow-2 border-round",children:[o.jsx("img",{style:{height:"150px",width:"150px",objectFit:"contain"},src:s==null?void 0:s.url,className:"w-full mb-3 border-round-2xl",onError:m=>m.target.src="https://www.primefaces.org/wp-content/uploads/2020/05/placeholder.png",alt:"https://www.primefaces.org/wp-content/uploads/2020/05/placeholder.png"}),o.jsxs("ul",{className:"list-none p-0 m-0 border-top-1 surface-border",children:[o.jsxs("li",{className:"flex align-items-center py-1 px-2 flex-wrap surface-ground",children:[o.jsx("div",{className:"text-500 w-full md:w-4 font-medium",children:"Name"}),o.jsx("div",{className:"text-900 w-full md:w-8",children:s==null?void 0:s.name})]}),o.jsxs("li",{className:"flex align-items-center py-1 px-2 flex-wrap",children:[o.jsx("div",{className:"text-500 w-full md:w-4 font-medium",children:"Base URL:"}),o.jsx("div",{className:"text-900 w-full md:w-8 line-height-3",style:{wordWrap:"break-word"},children:o.jsx("a",{href:s==null?void 0:s.url,children:s==null?void 0:s.url})})]}),o.jsxs("li",{className:"flex align-items-center py-1 px-2 flex-wrap surface-ground",children:[o.jsx("div",{className:"text-500 w-full md:w-4 font-medium",children:"Base name:"}),o.jsx("div",{className:"text-900 w-full md:w-8",children:s==null?void 0:s.basename})]}),o.jsxs("li",{className:"flex align-items-center py-1 px-2 flex-wrap",children:[o.jsx("div",{className:"text-500 w-full md:w-4 font-medium",children:"Dir Name:"}),o.jsx("div",{className:"text-900 w-full md:w-8",children:s==null?void 0:s.dirname})]}),o.jsxs("li",{className:"flex align-items-center py-1 px-2 flex-wrap surface-ground",children:[o.jsx("div",{className:"text-500 w-full md:w-4 font-medium",children:"Size:"}),o.jsx("div",{className:"text-900 w-full md:w-8",children:i.formatBytes(s==null?void 0:s.size)})]}),o.jsxs("li",{className:"flex align-items-center py-1 px-2 flex-wrap surface-ground",children:[o.jsx("div",{className:"text-500 w-full md:w-4 font-medium",children:"Creation Date:"}),o.jsx("div",{className:"text-900 w-full md:w-8",children:Fn(s==null?void 0:s.created_at).format("Do MMM YYYY - HH:mm")})]})]}),o.jsx(Ft,{text:!0,className:"mt-3 w-full",label:"Set Image",onClick:()=>c(s),"aria-label":"Update"})]})})]})]})]})]})},HSe=t=>{const{stateRow:e,setStateRow:n}=t,[r,i]=P.useState(""),[a,s]=P.useState([""]),[l,c]=P.useState(!1),[u,d]=P.useState(0),[f,h]=P.useState(!1),{updateGlobalToast:g}=Qt(),v=()=>{h(!0)},m=()=>{var q;const U=((q=e==null?void 0:e.reviewerChecklist)==null?void 0:q.length)>=0?[...e.reviewerChecklist]:[];U.push({uuid:et(),checklist:r,action:a,agree:null,selectAction:[],other:{isOther:!1,description:""},reviewerComments:""});const O={...e,reviewerChecklist:U};n(O),h(!1),i(""),s([""])},A=()=>{h(!1),i(""),s([""])},w=U=>{const O=[...e.reviewerChecklist];O.splice(U,1);const q={...e,reviewerChecklist:O};n(q)},E=(U,O)=>{c(!0);const{checklist:q,action:ie}=U;h(!0),d(O),setTimeout(()=>{i(q),s(ie)},1e3)},x=(U,O)=>o.jsxs(o.Fragment,{children:[o.jsx(Ft,{text:!0,type:"button",className:"p-button-info",icon:"pi pi-pencil",onClick:()=>E(U,O==null?void 0:O.rowIndex),size:"small"}),o.jsx(Ft,{text:!0,type:"button",className:"p-button-danger",icon:"pi pi-trash",onClick:()=>w(O==null?void 0:O.rowIndex),size:"small"})]}),C=U=>{var O;return o.jsx(o.Fragment,{children:(O=U==null?void 0:U.action)==null?void 0:O.length})},S=U=>{const O=[...a];O.splice(U,1),s(O)},_=()=>{const U=[...e.reviewerChecklist];U[u]={checklist:r,action:a};const O={...e,reviewerChecklist:U};n(O),h(!1),c(!1)},I=()=>o.jsx("div",{children:l?o.jsx(Ft,{text:!0,className:"mb-5 p-button-success",label:"Edit Checklist",onClick:()=>{_()}}):o.jsx(Ft,{text:!0,className:"mb-5 p-button-success",label:"Add Checklist",onClick:()=>{m()}})}),F=U=>{n(O=>Object.assign({},O,{reviewerChecklist:U==null?void 0:U.value}))},M=U=>{navigator.clipboard.writeText(JSON.stringify(U)),g({showToast:!0,toastMessage:"Copied to clipboard",toastDetail:"",toastType:"success"})};function L(U){try{JSON.parse(U)}catch{return!1}return!0}const V=async()=>{var q;const U=await navigator.clipboard.readText();let O="";if(L(U)){const ie=JSON.parse(U);if((q=ie[0])!=null&&q.checklist){const ge={...It.cloneDeep(e),reviewerChecklist:ie};n(ge),g({showToast:!0,toastMessage:"Checklist pasted",toastDetail:"",toastType:"success"});return}else O=" Empty or Invalid Schema"}else O="Invalid Schema";g({showToast:!0,toastMessage:O,toastDetail:"",toastType:"error"})};return o.jsxs("div",{children:[o.jsxs(Fs,{maximizable:!0,header:"Add Checklist",visible:f,style:{width:"30vw"},onHide:()=>A(),footer:I(),children:[o.jsx("h5",{children:"Checklist"}),o.jsx(ks,{rows:2,cols:50,value:r,onChange:U=>{var O;i((O=U==null?void 0:U.target)==null?void 0:O.value)}}),o.jsx("h5",{children:"Actions when user selects No"}),a.map((U,O)=>o.jsxs("div",{children:[O+1,"."," ",o.jsx(ks,{value:U,onChange:q=>{var ge;const ie=[...a];ie[O]=(ge=q==null?void 0:q.target)==null?void 0:ge.value,s(ie)},rows:2,cols:50})," ",o.jsx(Ft,{text:!0,type:"button",icon:"pi pi-trash",className:"p-button-danger",onClick:()=>S(O)}),o.jsx("br",{}),o.jsx("br",{})]},`actionIndex-${O}`)),o.jsx(Ft,{text:!0,className:" p-button-info mr-2",onClick:()=>{s([...a,""])},children:"Add Action"})]})," ",o.jsx("h5",{children:"Reviewer Checklist"}),o.jsx(Ft,{text:!0,className:"mb-5 mr-2 p-button-success",label:"Add Review Checklist",onClick:()=>{v()}}),o.jsx(Ft,{text:!0,label:"Copy Schema ",onClick:()=>{M([...(e==null?void 0:e.reviewerChecklist)||[]])},className:"mb-5 mr-2"}),o.jsx(Ft,{text:!0,label:"Paste Checklist ",onClick:()=>{V()},className:"mb-5 p-button-info"}),o.jsx("div",{className:"card",children:o.jsxs(Ks,{value:e==null?void 0:e.reviewerChecklist,reorderableRows:!0,onRowReorder:F,children:[o.jsx(dr,{rowReorder:!0,style:{width:"3em"}}),o.jsx(dr,{field:"checklist",header:"Checklist"}),o.jsx(dr,{field:"actions",header:"Actions",body:U=>C(U)}),o.jsx(dr,{header:"",body:(U,O)=>x(U,O)})]})})]})},em=t=>{var C;const{visibilty:e,setVisibility:n,row:r,pageIndex:i,sectionIndex:a,rowIndex:s}=t,{formBuilderSchemaLanguages:l,rowSettingUpdate:c,userSelectedLanguage:u,formBuilderPublishedStatus:d}=on(),[f,h]=P.useState(r),{updateGlobalToast:g,emitSocketData:v}=Qt(),m=(S,_,I)=>{h(F=>{const M=F[S];return Object.assign({},F,{[S]:Object.assign({},M,{[_==null?void 0:_.type]:I})})})},A=(S,_)=>{h(I=>({...I,[S]:_}))},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"})},E=(S,_)=>{let I=f;I={...I,margin:{...I.margin,[S]:_}},h(I)},x=(S,_)=>{h(I=>({...I,[S]:_}))};return o.jsx(o.Fragment,{children:o.jsxs(Vo,{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 - ",(C=r==null?void 0:r.heading)==null?void 0:C[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",onClick:()=>w(),"aria-label":"Update"})})]}),o.jsxs(Za,{children:[o.jsx(fr,{header:"Text",children:o.jsx(fo,{activeIndex:0,children:l!=null&&l.length?l.map((S,_)=>o.jsx(uo,{tabIndex:_,header:S==null?void 0:S.language,children:o.jsx($Se,{language:S,stateRow:f,onHandleChange:m,...t})},_)):""})}),o.jsx(fr,{header:"Advance",children:o.jsx(jSe,{stateRow:f,onHandleChangeAdvanceSettings:A})}),o.jsx(fr,{header:"Layout",children:o.jsxs("div",{className:"p-fluid",children:[o.jsxs("div",{className:"field-checkbox",children:[o.jsx(Br,{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(Br,{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?"})]})]})}),o.jsx(fr,{header:"Styling",children:o.jsx(zSe,{stateRow:f,onHandleChange:x,onHandleChangePageMargin:E,...t})}),(f==null?void 0:f.rowIsRepeatable)===!0&&o.jsx(fr,{header:"Admin",children:o.jsx(HSe,{stateRow:f,setStateRow:h})})]})]})})},YSe={},KSe=t=>{var fe,be,Te,ye,Ae,ne,$,re,W,de,Ie;const{data:e,path:n,pageIndex:r,sectionIndex:i,rowIndex:a,section:s,page:l}=t,c=P.useRef(null),{removeRow:u,addRow:d,cloneRow:f,formBuilderFormLayout:h,userSelectedLanguage:g,handleDrop:v}=on(),{userTaskSubmitFormData:m,taskRegisterData:A,updateTaskRegisterData:w,updateTaskProgressValue:E,addUserDataFormSectionRepeatableData:x,removeUserDataFormSectionRepeatableData:C,task_status:S,TASK_PUBLISHED:_}=yr(),{isPreview:I,isRenderView:F,isAdvanceView:M,renderType:L,isAdmin:V,emitSocketData:U}=Qt(),[O,q]=P.useState(!1),[{isDragging:ie},ge]=ia({type:Oo,item:{type:Oo,uuid:e.uuid,children:e.children,path:n,data:e},collect:Ee=>({isDragging:Ee.isDragging()})}),Z=ie?.25:1;ge(c);const Q=(Ee,ve,me,Se,De,j)=>o.jsx(qSe,{page:l,row:e,section:s,data:Ee,path:ve,pageIndex:me,sectionIndex:Se,rowIndex:De,columnIndex:j,isAdmin:V,emitSocketData:U},`column-${n}-${Ee.uuid}`),ce=(Ee,ve,me,Se)=>{var pe,ue,le,se;const De=Ee.collapsed?"pi pi-chevron-down":"pi pi-chevron-up",j=`${Ee.className} justify-content-space-between`,oe=`${Ee.titleClassName} pl-1 text-primary`;return o.jsxs(o.Fragment,{children:[o.jsx(sn,{target:".clone-tool"}),o.jsx(sn,{target:".setting-tool"}),o.jsx(sn,{target:".add-row-tool"}),o.jsxs("div",{className:j,children:[o.jsxs("span",{ref:I===!1?c:null,children:[o.jsx("button",{className:Ee.togglerClassName,children:o.jsx("span",{className:"pi pi-sliders-h dragabble"})}),o.jsxs("button",{className:Ee.togglerClassName,onClick:Ee.onTogglerClick,children:[o.jsx("span",{className:De}),o.jsx(tn,{})]}),o.jsxs("span",{className:oe,children:["Row:"," ",((pe=e==null?void 0:e.heading)==null?void 0:pe[g==null?void 0:g.type])!==""?(ue=e==null?void 0:e.heading)==null?void 0:ue[g==null?void 0:g.type]:"Untitled"]})]}),I===!1&&o.jsxs("div",{className:"p-panel-icons",children:[o.jsx("span",{className:"add-row-tool","data-pr-tooltip":"Add Row",children:o.jsxs("button",{className:Ee.togglerClassName,onClick:()=>{d(ve,me),U()},children:[o.jsx("span",{className:"pi pi-plus"}),o.jsx(tn,{})]})}),((se=(le=h[ve])==null?void 0:le.children[me])==null?void 0:se.children.length)>1&&o.jsxs("button",{className:Ee.togglerClassName,onClick:()=>{u(ve,me,Se),U()},children:[o.jsx("span",{className:"pi pi-trash"}),o.jsx(tn,{})]}),o.jsx("span",{className:"clone-tool","data-pr-tooltip":"Clone",children:o.jsxs("button",{className:Ee.togglerClassName,onClick:()=>{f(e,ve,me,Se),U()},children:[o.jsx("span",{className:"pi pi-clone"}),o.jsx(tn,{})]})}),o.jsx("span",{className:"setting-tool","data-pr-tooltip":"Settings",children:o.jsxs("button",{onClick:()=>q(!0),className:Ee.togglerClassName,children:[o.jsx("span",{className:"pi pi-cog"}),o.jsx(tn,{})]})})]})]})]})},K=It.findIndex(m,function(Ee){return(Ee==null?void 0:Ee.rowId)===(e==null?void 0:e.uuid)}),he=()=>{var me,Se,De;const Ee=It.cloneDeep(A);((Se=(me=m[K])==null?void 0:me.repeatableFieldsData)==null?void 0:Se.length)>=(e==null?void 0:e.minimumEntries)?Ee[e==null?void 0:e.uuid]=(De=m[K])==null?void 0:De.repeatableFields:delete Ee[e==null?void 0:e.uuid];const ve=Object.keys(Ee).length;w(Ee),E(ve)},ee=(fe=e==null?void 0:e.repeatableFields)==null?void 0:fe.map(Ee=>{var ve;return{fieldUuid:Ee==null?void 0:Ee.uuid,field:Ee==null?void 0:Ee.uuid,header:(ve=Ee==null?void 0:Ee.label)==null?void 0:ve.english}}),te=ee==null?void 0:ee.map(Ee=>o.jsx(dr,{field:Ee.field,header:Ee.header,body:ve=>o.jsx(o.Fragment,{children:o.jsx("div",{className:"post__content_repetable",dangerouslySetInnerHTML:{__html:ve[Ee==null?void 0:Ee.field]}})})},Ee.field)),Y=()=>{var Se;const Ee=[...m],ve=[];let me=!0;e:for(const[,De]of e.children.entries()){for(const[,j]of De.children.entries())if(j!=null&&j.isPostField&&j.isValid!==1){const oe={fieldId:j.uuid,rowIndex:a};console.log("inValidData",oe),ve.push(oe),Zt.emit("OnInvalidFieldCatch",oe),me=!1;break e}me=!0}me&&(ve==null?void 0:ve.length)===0&&(x(e==null?void 0:e.uuid,(Se=Ee[K])==null?void 0:Se.repeatableFields),Zt.emit("clearRepeatableFields",e==null?void 0:e.uuid),he())},R=Ee=>o.jsx(o.Fragment,{children:o.jsx(Ft,{text:!0,type:"button",className:"p-button-danger ",onClick:()=>{C(e==null?void 0:e.uuid,Ee==null?void 0:Ee.rowIndex),setTimeout(()=>{he()},1e3)},icon:"pi pi-trash"})});return o.jsxs("div",{style:{...YSe,opacity:Z,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:`${(Ae=e==null?void 0:e.margin)==null?void 0:Ae.right}px`},className:F?"row container-row":"draggable row container-row",children:[O&&o.jsx(em,{renderType:L,visibilty:O,setVisibility:q,row:e,pageIndex:r,sectionIndex:i,rowIndex:a,emitSocketData:U},"row_settings_"+r+i+a),I===!1?o.jsx(o.Fragment,{children:M===!0?o.jsx(ui,{header:"Row",toggleable:!0,headerTemplate:Ee=>ce(Ee,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((Ee,ve)=>{const me=`${n}-${ve}`;return o.jsxs(P.Fragment,{children:[o.jsx(Fr,{isAdvanceView:M,data:{path:me,childrenCount:e.children.length},onDrop:v,className:"horizontalDrag"}),Q(Ee,me,r,i,a,ve)]},me)}),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:($=e==null?void 0:e.children)==null?void 0:$.map((Ee,ve)=>{const me=`${n}-${ve}`;return o.jsx(P.Fragment,{children:Q(Ee,me,r,i,a,ve)},me)})})})}):o.jsx(o.Fragment,{children:!(e!=null&&e.rowIsRepeatable&&S===_)&&o.jsxs(o.Fragment,{children:[o.jsx("h5",{children:(re=e==null?void 0:e.heading)==null?void 0:re[g==null?void 0:g.type]}),o.jsx("span",{children:(W=e==null?void 0:e.subHeadingText)==null?void 0:W[g==null?void 0:g.type]}),o.jsx("div",{className:"form-builder-columns",children:e.children.map((Ee,ve)=>{const me=`${n}-${ve}`;return o.jsx(P.Fragment,{children:Q(Ee,me,r,i,a,ve)},me)})})]})}),(e==null?void 0:e.rowIsRepeatable)&&S!==_&&o.jsx(Ft,{text:!0,type:"button",className:"p-button-success mb-3",onClick:()=>Y(),label:(de=e.addToListButtonLabel)==null?void 0:de[g==null?void 0:g.type]}),(e==null?void 0:e.rowIsRepeatable)&&o.jsxs("div",{className:"card",children:[o.jsxs(Ks,{value:(m==null?void 0:m.length)>0?(Ie=m[K])==null?void 0:Ie.repeatableFieldsData:[],children:[te,S!==_&&o.jsx(dr,{style:{width:"10%"},headerStyle:{textAlign:"center"},bodyStyle:{textAlign:"left",overflow:"visible"},body:(Ee,ve)=>R(ve)})]}),V&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(Ni,{field:e})]})]})]})},XSe=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(bn,{value:(i=r.heading)==null?void 0:i[e==null?void 0:e.type],onChange:s=>n("heading",e,s.target.value)})]}),o.jsxs("div",{className:"field",children:[o.jsx("label",{children:"Section Description"}),o.jsx(ks,{value:(a=r.subHeadingText)==null?void 0:a[e==null?void 0:e.type],onChange:s=>n("subHeadingText",e,s.target.value)})]})]})},ip=t=>{const{visibilty:e,setVisibility:n,section:r,pageIndex:i,sectionIndex:a}=t,[s,l]=P.useState(r),{formBuilderSchemaLanguages:c,sectionSettingUpdate:u,userSelectedLanguage:d,formBuilderPublishedStatus:f}=on(),{emitSocketData:h}=Qt(),{updateGlobalToast:g}=Qt(),v=(w,E,x)=>{l(C=>Object.assign({},C,{[w]:Object.assign({},C[w],{[E==null?void 0:E.type]:x})}))},m=(w,E)=>{l(x=>({...x,[w]:E}))},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(Vo,{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",onClick:()=>A(),"aria-label":"Update"})})]}),o.jsxs(Za,{children:[o.jsx(fr,{header:"Text",children:o.jsx(fo,{activeIndex:0,children:c!=null&&c.length?c.map((w,E)=>o.jsx(uo,{tabIndex:E,header:w==null?void 0:w.language,children:o.jsx(XSe,{language:w,stateSection:s,onHandleChange:v,...t})},E)):""})}),o.jsx(fr,{header:"Layout",children:o.jsxs("div",{className:"p-fluid",children:[o.jsxs("div",{className:"field-checkbox",children:[o.jsx(Br,{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(Br,{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(Br,{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?"})]})]})})]})]})})},ap=t=>{const{saveBuilderElementModalData:e,saveElementModal:n,setSaveElementModal:r}=t,{saveComponent:i}=Qt(),a=d4({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(Fs,{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(bn,{id:"builder_element_title",name:"builder_element_title",value:a.values.builder_element_title,onChange:a.handleChange,className:`${J3({invalid:s("builder_element_title")})} w-full`})]}),o.jsxs("div",{className:"p-field field",children:[o.jsxs("label",{htmlFor:"username",children:[o.jsx("span",{className:"must-required",children:"*"})," Builder element description"]}),o.jsx(ks,{id:"builder_element_description",name:"builder_element_description",value:a.values.builder_element_description,onChange:a.handleChange,className:`${J3({invalid:s("builder_element_title")})} w-full`})]})]})},RSe=t=>{var ge,Z,Q,ce,K,he,ee,te;const{data:e,path:n,pageIndex:r,sectionIndex:i,section:a,page:s}=t,{removeSection:l,addSection:c,cloneSection:u,formBuilderFormLayout:d,userSelectedLanguage:f,handleDrop:h}=on(),{isPreview:g,isAdvanceView:v,renderType:m,emitSocketData:A}=Qt(),[w,E]=P.useState(!1),[x,C]=P.useState(!1),[S,_]=P.useState(null),[I,F]=P.useState(!1),M=P.useRef(null),L=(Y,R)=>{_(fe=>({...fe,[Y]:R}))},[{isDragging:V},U]=ia({type:na,item:{type:na,uuid:e.uuid,children:e.children,path:n},collect:Y=>({isDragging:Y.isDragging()})}),O=V?.25:1;U(M);const q=(Y,R,fe,be,Te)=>o.jsx(KSe,{page:s,section:a,data:Y,path:R,pageIndex:fe,sectionIndex:be,rowIndex:Te},`row-${n}-${Y.uuid}`),ie=(Y,R,fe)=>{var Ae,ne;const be=Y.collapsed?"pi pi-chevron-down":"pi pi-chevron-up",Te=`${Y.className} justify-content-space-between panel-tab-section`,ye=`${Y.titleClassName} pl-1 text-primary`;return o.jsxs("div",{className:Te,children:[o.jsxs("span",{ref:g===!1?M:null,children:[o.jsx("button",{className:Y.togglerClassName,children:o.jsx("span",{className:"pi pi-sliders-h dragabble"})}),o.jsxs("button",{className:Y.togglerClassName,onClick:Y.onTogglerClick,children:[o.jsx("span",{className:be}),o.jsx(tn,{})]}),o.jsxs("span",{className:ye,children:[fe+1," ",(Ae=e==null?void 0:e.heading)==null?void 0:Ae[f==null?void 0:f.type]]})]}),g===!1&&o.jsxs(o.Fragment,{children:[o.jsx(sn,{target:".clone-tool"}),o.jsx(sn,{target:".del-tool"}),o.jsx(sn,{target:".setting-tool"}),o.jsx(sn,{target:".add-section-tool"}),o.jsx(sn,{target:".save-tool"}),o.jsx(sn,{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:Y.togglerClassName,onClick:()=>{c(R),A()},children:[o.jsx("span",{className:"pi pi-plus"}),o.jsx(tn,{})]})}),((ne=d[R])==null?void 0:ne.children.length)>1&&o.jsx("span",{className:"del-tool","data-pr-tooltip":"Delete",children:o.jsxs("button",{className:Y.togglerClassName,onClick:()=>{l(R,fe),A()},children:[o.jsx("span",{className:"pi pi-trash"}),o.jsx(tn,{})]})}),o.jsx("span",{className:"save-tool","data-pr-tooltip":"Save",children:o.jsxs("button",{className:Y.togglerClassName,onClick:()=>{L("reusable_template_schema",e),C(!0)},children:[o.jsx("span",{className:"pi pi-save"}),o.jsx(tn,{})]})}),o.jsx("span",{className:"clone-tool","data-pr-tooltip":"Clone",children:o.jsxs("button",{className:Y.togglerClassName,onClick:()=>{u(e,R,fe),A()},children:[o.jsx("span",{className:"pi pi-clone"}),o.jsx(tn,{})]})}),o.jsx("span",{className:"settings-tool","data-pr-tooltip":"Settings",children:o.jsxs("button",{className:Y.togglerClassName,onClick:()=>E(!0),children:[o.jsx("span",{className:"pi pi-cog"}),o.jsx(tn,{})]})})]})]})]})};return o.jsxs("div",{style:{opacity:O,marginBottom:20},className:v?"draggable row":"",children:[g===!1&&o.jsx(ap,{saveBuilderElementModalData:S,setSaveBuilderElementModalData:_,saveElementModal:x,setSaveElementModal:C}),w===!0&&o.jsx(ip,{renderType:m,visibilty:w,setVisibility:E,section:e,pageIndex:r,sectionIndex:i,emitSocketData:A},"section_settings_"+r+i),g===!1?o.jsx(o.Fragment,{children:v===!0?o.jsxs(ui,{header:(ge=e==null?void 0:e.heading)==null?void 0:ge.english,toggleable:!0,headerTemplate:Y=>ie(Y,r,i),onMouseEnter:()=>F(!0),onMouseLeave:()=>F(!1),children:[((Z=e==null?void 0:e.subHeadingText)==null?void 0:Z[f==null?void 0:f.type])&&o.jsx("p",{children:(Q=e==null?void 0:e.subHeadingText)==null?void 0:Q[f==null?void 0:f.type]}),o.jsxs("div",{children:[e.children.map((Y,R)=>{const fe=`${n}-${R}`;return o.jsxs(P.Fragment,{children:[o.jsx(Fr,{isAdvanceView:v,data:{path:fe,childrenCount:e.children.length},onDrop:h}),q(Y,fe,r,i,R)]},fe)}),o.jsx(Fr,{isAdvanceView:v,data:{path:`${n}-${e.children.length}`,childrenCount:e.children.length,droppedField:e},onDrop:h,isLast:!0})]}),I&&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(tn,{})})}),((ce=d[r])==null?void 0:ce.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(tn,{})})})]})]}):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:(he=e==null?void 0:e.subHeadingText)==null?void 0:he[f==null?void 0:f.type]}),o.jsx("div",{children:e.children.map((Y,R)=>{const fe=`${n}-${R}`;return o.jsx(P.Fragment,{children:q(Y,fe,r,i,R)},fe)})})]})}):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:(ee=e==null?void 0:e.heading)==null?void 0:ee[f==null?void 0:f.type]}),o.jsx("p",{children:(te=e==null?void 0:e.subHeadingText)==null?void 0:te[f==null?void 0:f.type]}),o.jsx("hr",{})]}),e.children.map((Y,R)=>{const fe=`${n}-${R}`;return o.jsx(P.Fragment,{children:o.jsx("div",{className:"",children:q(Y,fe,r,i,R)},fe)},fe)})]})})]})},GSe={position:"relative"},WSe=t=>{var C,S,_;const{data:e,data:n,path:r,pageIndex:i,sectionIndex:a,rowIndex:s,columnIndex:l,section:c,row:u,page:d}=t,f=P.useRef(null),{handleDrop:h}=on(),{isRenderView:g,isAdvanceView:v,isPreview:m}=Qt(),[{isDragging:A},w]=ia({type:ws,item:{type:ws,uuid:e==null?void 0:e.uuid,children:e.children,path:r},collect:I=>({isDragging:I.isDragging()})}),E=A&&!g?.25:1;w(f);const x=(I,F,M,L,V,U,O)=>o.jsx(tu,{page:d,section:c,row:u,column:n,field:I,pageIndex:M,sectionIndex:L,rowIndex:V,columnIndex:U,fieldIndex:O,type:"field",data:I,path:F},`component-${r}-${I==null?void 0:I.uuid}`);return o.jsx("div",{style:v?{...GSe,opacity:E}:{},className:g?"":"draggable column container-column",children:m===!1?o.jsx(o.Fragment,{children:o.jsxs("div",{children:[((C=e==null?void 0:e.children)==null?void 0:C.length)>0?(S=e==null?void 0:e.children)==null?void 0:S.map((I,F)=>{const M=`${r}-${F}`;return o.jsxs(P.Fragment,{children:[o.jsx(Fr,{isAdvanceView:v,fieldDropArea:!0,data:{path:M,childrenCount:e.children.length,droppedField:e},onDrop:h}),x(I,M,i,a,s,l,F)]},M)}):o.jsx(o.Fragment,{}),o.jsx(Fr,{isAdvanceView:v,dropHereLastField:!0,fieldDropArea:!0,data:{path:`${r}-${e.children.length}`,childrenCount:e.children.length,droppedField:e},onDrop:h,isLast:!0})]})}):o.jsx(o.Fragment,{children:(_=e==null?void 0:e.children)==null?void 0:_.map((I,F)=>{const M=`${r}-${F}`;return o.jsx(P.Fragment,{children:x(I,M,i,a,s,l,F)},M)})})})},QSe=t=>{var l;const{isAdvanceView:e}=Qt(),{data:n,page:r,path:i,pageIndex:a}=t,s=(c,u,d,f,h,g,v,m)=>o.jsx(WSe,{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(P.Fragment,{children:s(v,A,a,u,h,m,c,f)},A)})})})})})})},JSe=t=>{const{data:e,path:n,pageIndex:r}=t,{isPreview:i,isRenderView:a,isAdvanceView:s}=Qt(),{formBuilderFormSchema:l,handleDrop:c}=on(),u=P.useRef(null),[d,f]=ia({type:na,item:{type:na,uuid:e.uuid,children:e.children,path:n},collect:g=>({isDragging:g.isDragging()})});f(u);const h=(g,v,m,A)=>o.jsx(RSe,{data:g,page:e,section:g,path:v,pageIndex:m,sectionIndex:A},`section_${m}_${A}`);return o.jsx("div",{style:{overflowX:"auto"},className:`${a?"":"draggable page-css p-3 pb-4"}`,"data-image-src":e==null?void 0:e.bgImage,"data-bg-color":`#${e==null?void 0:e.bgColor}`,children:i===!1?o.jsx(o.Fragment,{children:s?o.jsxs(o.Fragment,{children:[e.children.map((g,v)=>{const m=`${n}-${v}`;return o.jsxs(P.Fragment,{children:[s===!0&&o.jsx(Fr,{isAdvanceView:s,data:{path:m,childrenCount:e.children.length},onDrop:c}),h(g,m,r,v)]},`section-${v}-${g.uuid}`)}),s===!0&&o.jsx(Fr,{isAdvanceView:s,data:{path:`${n}-${e.children.length}`,childrenCount:e.children.length,droppedField:e},onDrop:c,isLast:!0})]}):o.jsx(o.Fragment,{children:o.jsx(QSe,{page:e,path:n,data:e,pageIndex:r})})}):o.jsx(o.Fragment,{children:o.jsx("div",{className:"p-1",children:e.children.map((g,v)=>{const m=`${n}-${v}`;return o.jsx(P.Fragment,{children:l!=null&&l.showConditionalFields?o.jsx(o.Fragment,{children:o.jsx("div",{children:h(g,m,r,v)})}):((g==null?void 0:g.isHidden)===!1||!i)&&h(g,m,r,v)},`section-${v}-${g.uuid}`)})})})})},ZSe=()=>{const{isPreview:t,isAdvanceView:e}=Qt(),[n,r]=P.useState(!1),[i,a]=P.useState(!1),[s,l]=P.useState(0),{formBuilderFormLayout:c,formBuilderFormSchema:u}=on(),{emitSocketData:d}=Qt(),f=(h,g,v)=>o.jsx(JSe,{data:h,path:g,pageIndex:v},`page-${h.uuid}`);return o.jsx("div",{className:"page",children:(c==null?void 0:c.length)===m9&&t===!0?o.jsx(o.Fragment,{children:(c==null?void 0:c.length)&&c.map((h,g)=>{const v=`${g}`;return o.jsx("div",{children:f(h,v,g)},`${h.uuid}-${g}`)})}):o.jsx(o.Fragment,{children:e===!0||t===!0?o.jsx(Za,{activeIndex:s,onTabChange:h=>l(h.index),children:(c==null?void 0:c.length)&&c.map((h,g)=>{const v=`${g}`;return o.jsxs(fr,{disabled:!((h==null?void 0:h.isHidden)===!1||!t),header:"Page",headerTemplate:m=>o.jsx(k7,{options:m,pageIndex:g,setTabSidebarSetting:r,setPageActiveIndex:l,page:h,pages:c}),children:[t===!1&&o.jsx(zf,{reusableBuilderElementModalVisibility:i,setReusableBuilderElementModalVisibility:a,pageIndex:g}),o.jsx(c1,{setVisibility:r,visibilty:n,pageIndex:g,page:h,emitSocketData:d}),f(h,v,g)]},`${h.uuid}-${g}`)})}):o.jsx(o.Fragment,{children:(c==null?void 0:c.length)>0&&(c==null?void 0:c.map((h,g)=>{const v=`${g}`;return o.jsxs(P.Fragment,{children:[t===!1&&o.jsx(zf,{reusableBuilderElementModalVisibility:i,setReusableBuilderElementModalVisibility:a,pageIndex:g}),o.jsx(c1,{setVisibility:r,visibilty:n,pageIndex:g,page:h,emitSocketData:d}),f(h,v,g)]},`${h.uuid}-${g}`)}))})})})},exe={position:"relative"},txe=t=>{var M,L,V,U,O;const{isAdvanceView:e,isPreview:n,emitSocketData:r,isRenderView:i}=Qt(),{data:a,path:s,pageIndex:l,sectionIndex:c,rowIndex:u,columnIndex:d,section:f,row:h,page:g}=t,v=P.useRef(null),{removeColumn:m,addColumn:A,cloneColumn:w,formBuilderFormLayout:E,handleDrop:x}=on(),[{isDragging:C},S]=ia({type:ws,item:{type:ws,uuid:a==null?void 0:a.uuid,children:a.children,path:s},collect:q=>({isDragging:q.isDragging()})}),_=C&&!i?.25:1;S(v);const I=(q,ie,ge,Z,Q,ce,K)=>o.jsx(tu,{page:g,column:a,type:"field",row:h,section:f,field:q,data:q,path:ie,pageIndex:ge,sectionIndex:Z,rowIndex:Q,columnIndex:ce,fieldIndex:K},`component-${s}-${q==null?void 0:q.uuid}`),F=(q,ie,ge,Z,Q)=>{var ee,te,Y,R;const ce=q.collapsed?"pi pi-chevron-down":"pi pi-chevron-up",K=`${q.className} justify-content-space-between`,he=`${q.titleClassName} pl-1 text-primary`;return o.jsxs(o.Fragment,{children:[o.jsx(sn,{target:".clone-tool"}),o.jsx(sn,{target:".add-column-tool"}),o.jsxs("div",{className:K,children:[o.jsxs("span",{ref:n===!1?v:null,children:[o.jsx("button",{className:q.togglerClassName,children:o.jsx("span",{className:"pi pi-sliders-h dragabble"})}),o.jsxs("button",{className:q.togglerClassName,onClick:q.onTogglerClick,children:[o.jsx("span",{className:ce}),o.jsx(tn,{})]}),o.jsx("span",{className:he,children:"Column"})]}),n===!1&&o.jsxs("div",{className:"p-panel-icons",children:[o.jsx("span",{className:"add-column-tool","data-pr-tooltip":"Add Column",children:o.jsxs("button",{className:q.togglerClassName,onClick:()=>{A(ie,ge,Z),r()},children:[o.jsx("span",{className:"pi pi-plus"}),o.jsx(tn,{})]})}),((R=(Y=(te=(ee=E[ie])==null?void 0:ee.children[ge])==null?void 0:te.children[Z])==null?void 0:Y.children)==null?void 0:R.length)>1&&o.jsxs("button",{className:q.togglerClassName,onClick:()=>{m(ie,ge,Z,Q),r()},children:[o.jsx("span",{className:"pi pi-trash"}),o.jsx(tn,{})]}),o.jsx("span",{className:"clone-tool","data-pr-tooltip":"Clone",children:o.jsxs("button",{className:q.togglerClassName,onClick:()=>{w(a,ie,ge,Z,Q),r()},children:[o.jsx("span",{className:"pi pi-clone"}),o.jsx(tn,{})]})})]})]})]})};return o.jsx("div",{style:e?{...exe,opacity:_}:{},className:i?"form-builder-column container-column":"draggable form-builder-column container-column",children:n===!1?o.jsx(o.Fragment,{children:e===!0?o.jsxs(ui,{className:"builder-row-column",header:"Column",toggleable:!0,headerTemplate:q=>F(q,l,c,u,d),children:[((M=a==null?void 0:a.children)==null?void 0:M.length)>0?(L=a==null?void 0:a.children)==null?void 0:L.map((q,ie)=>{const ge=`${s}-${ie}`;return o.jsxs(P.Fragment,{children:[o.jsx(Fr,{isAdvanceView:e,fieldDropArea:!0,data:{path:ge,childrenCount:a.children.length,droppedField:a},onDrop:x}),I(q,ge,l,c,u,d,ie)]},ge)}):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:x,isLast:!0})]}):o.jsx(o.Fragment,{children:o.jsxs("div",{children:[((V=a==null?void 0:a.children)==null?void 0:V.length)>0?(U=a==null?void 0:a.children)==null?void 0:U.map((q,ie)=>{const ge=`${s}-${ie}`;return o.jsxs(P.Fragment,{children:[o.jsx(Fr,{isAdvanceView:e,fieldDropArea:!0,data:{path:ge,childrenCount:a.children.length,droppedField:a},onDrop:x}),I(q,ge,l,c,u,d,ie)]},ge)}):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:x,isLast:!0})]})})}):o.jsx(o.Fragment,{children:(O=a==null?void 0:a.children)==null?void 0:O.map((q,ie)=>{const ge=`${s}-${ie}`;return o.jsx(P.Fragment,{children:I(q,ge,l,c,u,d,ie)},ge)})})})},nxe={},rxe=t=>{var fe,be,Te,ye,Ae,ne,$,re,W,de,Ie,Ee,ve,me,Se,De;const{data:e,path:n,pageIndex:r,sectionIndex:i,rowIndex:a,section:s,page:l}=t,{isRenderView:c,isAdvanceView:u,isAdmin:d,isPreview:f,emitSocketData:h,renderType:g}=Qt(),v=P.useRef(null),{removeRow:m,addRow:A,cloneRow:w,formBuilderFormLayout:E,userSelectedLanguage:x,handleDrop:C}=on(),{userTaskSubmitFormData:S,taskRegisterData:_,updateTaskRegisterData:I,updateTaskProgressValue:F,addUserDataFormSectionRepeatableData:M,removeUserDataFormSectionRepeatableData:L,task_status:V,TASK_PUBLISHED:U}=yr(),[O,q]=P.useState(!1),[{isDragging:ie},ge]=ia({type:Oo,item:{type:Oo,uuid:e.uuid,children:e.children,path:n,data:e},collect:j=>({isDragging:j.isDragging()})}),Z=ie?.25:1;ge(v);const Q=(j,oe,pe,ue,le,se)=>o.jsx(txe,{page:l,row:e,section:s,data:j,path:oe,pageIndex:pe,sectionIndex:ue,rowIndex:le,columnIndex:se,isAdmin:d,emitSocketData:h},`column-${n}-${j.uuid}`),ce=(j,oe,pe,ue)=>{var Ne,Ke,ut,pt;const le=j.collapsed?"pi pi-chevron-down":"pi pi-chevron-up",se=`${j.className} justify-content-space-between`,Oe=`${j.titleClassName} pl-1 text-primary`;return o.jsxs(o.Fragment,{children:[o.jsx(sn,{target:".clone-tool"}),o.jsx(sn,{target:".setting-tool"}),o.jsx(sn,{target:".add-row-tool"}),o.jsxs("div",{className:se,children:[o.jsxs("span",{ref:f===!1?v:null,children:[o.jsx("button",{className:j.togglerClassName,children:o.jsx("span",{className:"pi pi-sliders-h dragabble"})}),o.jsxs("button",{className:j.togglerClassName,onClick:j.onTogglerClick,children:[o.jsx("span",{className:le}),o.jsx(tn,{})]}),o.jsxs("span",{className:Oe,children:["Row:"," ",((Ne=e==null?void 0:e.heading)==null?void 0:Ne[x==null?void 0:x.type])!==""?(Ke=e==null?void 0:e.heading)==null?void 0:Ke[x==null?void 0:x.type]:"Untitled"]})]}),f===!1&&o.jsxs("div",{className:"p-panel-icons",children:[o.jsx("span",{className:"add-row-tool","data-pr-tooltip":"Add Row",children:o.jsxs("button",{className:j.togglerClassName,onClick:()=>{A(oe,pe),h()},children:[o.jsx("span",{className:"pi pi-plus"}),o.jsx(tn,{})]})}),((pt=(ut=E[oe])==null?void 0:ut.children[pe])==null?void 0:pt.children.length)>1&&o.jsxs("button",{className:j.togglerClassName,onClick:()=>{m(oe,pe,ue),h()},children:[o.jsx("span",{className:"pi pi-trash"}),o.jsx(tn,{})]}),o.jsx("span",{className:"clone-tool","data-pr-tooltip":"Clone",children:o.jsxs("button",{className:j.togglerClassName,onClick:()=>{w(e,oe,pe,ue),h()},children:[o.jsx("span",{className:"pi pi-clone"}),o.jsx(tn,{})]})}),o.jsx("span",{className:"setting-tool","data-pr-tooltip":"Settings",children:o.jsxs("button",{onClick:()=>q(!0),className:j.togglerClassName,children:[o.jsx("span",{className:"pi pi-cog"}),o.jsx(tn,{})]})})]})]})]})},K=It.findIndex(S,function(j){return(j==null?void 0:j.rowId)===(e==null?void 0:e.uuid)}),he=()=>{var pe,ue,le;const j=It.cloneDeep(_);((ue=(pe=S[K])==null?void 0:pe.repeatableFieldsData)==null?void 0:ue.length)>=(e==null?void 0:e.minimumEntries)?j[e==null?void 0:e.uuid]=(le=S[K])==null?void 0:le.repeatableFields:delete j[e==null?void 0:e.uuid];const oe=Object.keys(j).length;I(j),F(oe)},ee=(fe=e==null?void 0:e.repeatableFields)==null?void 0:fe.map(j=>{var oe;return{fieldUuid:j==null?void 0:j.uuid,field:j==null?void 0:j.uuid,header:(oe=j==null?void 0:j.label)==null?void 0:oe.english}}),te=ee==null?void 0:ee.map(j=>o.jsx(dr,{field:j.field,header:j.header,body:oe=>o.jsx(o.Fragment,{children:o.jsx("div",{className:"post__content_repetable",dangerouslySetInnerHTML:{__html:oe[j==null?void 0:j.field]}})})},j.field)),Y=()=>{var ue;const j=[...S],oe=[];let pe=!0;e:for(const[,le]of e.children.entries()){for(const[,se]of le.children.entries())if(se!=null&&se.isPostField&&se.isValid!==1){const Oe={fieldId:se.uuid,rowIndex:a};oe.push(Oe),Zt.emit("OnInvalidFieldCatch",Oe),pe=!1;break e}pe=!0}pe&&(oe==null?void 0:oe.length)===0&&(M(e==null?void 0:e.uuid,(ue=j[K])==null?void 0:ue.repeatableFields),Zt.emit("clearRepeatableFields",e==null?void 0:e.uuid),he())},R=j=>o.jsx(o.Fragment,{children:o.jsx(Ft,{text:!0,type:"button",className:"p-button-danger ",onClick:()=>{L(e==null?void 0:e.uuid,j==null?void 0:j.rowIndex),setTimeout(()=>{he()},1e3)},icon:"pi pi-trash"})});return o.jsxs("div",{style:{...nxe,opacity:Z,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:`${(Ae=e==null?void 0:e.margin)==null?void 0:Ae.right}px`},className:c?"row container-row":"draggable row container-row",children:[O&&o.jsx(em,{renderType:g,visibilty:O,setVisibility:q,row:e,pageIndex:r,sectionIndex:i,rowIndex:a,emitSocketData:h},"row_settings_"+r+i+a),g===jm&&o.jsxs("div",{className:"form-builder-columns",children:[e.children.map((j,oe)=>{const pe=`${n}-${oe}`;return o.jsxs(P.Fragment,{children:[g===t0&&o.jsx(Fr,{isAdvanceView:u,data:{path:pe,childrenCount:e.children.length},onDrop:C,className:"horizontalDrag"}),Q(j,pe,r,i,a,oe)]},pe)}),o.jsx(Fr,{isAdvanceView:u,data:{path:`${n}-${e.children.length}`,childrenCount:e.children.length},onDrop:C,className:"horizontalDrag",isLast:!0})]}),(g===mf||g===Q0||g===$m||g===g9||g===Op)&&(f===!1?o.jsx(o.Fragment,{children:u===!0?o.jsx(ui,{header:"Row",toggleable:!0,headerTemplate:j=>ce(j,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((j,oe)=>{const pe=`${n}-${oe}`;return o.jsxs(P.Fragment,{children:[o.jsx(Fr,{isAdvanceView:u,data:{path:pe,childrenCount:e.children.length},onDrop:C,className:"horizontalDrag"}),Q(j,pe,r,i,a,oe)]},pe)}),o.jsx(Fr,{isAdvanceView:u,data:{path:`${n}-${e.children.length}`,childrenCount:e.children.length},onDrop:C,className:"horizontalDrag",isLast:!0})]})}):o.jsx(o.Fragment,{children:o.jsx("div",{className:u?"form-builder-columns":"",style:u?{overflowX:"auto"}:{},children:($=e==null?void 0:e.children)==null?void 0:$.map((j,oe)=>{const pe=`${n}-${oe}`;return o.jsx(P.Fragment,{children:Q(j,pe,r,i,a,oe)},pe)})})})}):o.jsx(o.Fragment,{children:!(e!=null&&e.rowIsRepeatable&&V===U)&&o.jsxs(o.Fragment,{children:[o.jsx("h5",{children:(re=e==null?void 0:e.heading)==null?void 0:re[x==null?void 0:x.type]}),o.jsx("span",{children:(W=e==null?void 0:e.subHeadingText)==null?void 0:W[x==null?void 0:x.type]}),o.jsx("div",{className:"form-builder-columns",children:e.children.map((j,oe)=>{const pe=`${n}-${oe}`;return o.jsx(P.Fragment,{children:Q(j,pe,r,i,a,oe)},pe)})})]})})),g===vf&&(f===!1?o.jsxs("div",{children:[o.jsx("span",{className:"row-setting-block-pdf-editor",children:o.jsxs("div",{className:"pdf-setting-container",children:[o.jsxs("button",{onClick:()=>{A(r,i),h()},children:[o.jsx("span",{className:"pi pi-plus"}),o.jsx(tn,{})]}),((Ie=(de=E[r])==null?void 0:de.children[i])==null?void 0:Ie.children.length)>1&&o.jsxs("button",{onClick:()=>{m(r,i,a),h()},children:[o.jsx("span",{className:"pi pi-trash"}),o.jsx(tn,{})]}),o.jsxs("button",{onClick:()=>{w(e,r,i,a),h()},children:[o.jsx("span",{className:"pi pi-clone"}),o.jsx(tn,{})]}),o.jsxs("button",{onClick:()=>q(!0),children:[o.jsx("span",{className:"pi pi-cog"}),o.jsx(tn,{})]})]})}),o.jsx("div",{className:"form-builder-columns",children:(Ee=e==null?void 0:e.children)==null?void 0:Ee.map((j,oe)=>{const pe=`${n}-${oe}`;return o.jsx(P.Fragment,{children:Q(j,pe,r,i,a,oe)},pe)})})]}):o.jsx(o.Fragment,{children:!(e!=null&&e.rowIsRepeatable&&V===U)&&o.jsxs(o.Fragment,{children:[o.jsx("h5",{children:(ve=e==null?void 0:e.heading)==null?void 0:ve[x==null?void 0:x.type]}),o.jsx("span",{children:(me=e==null?void 0:e.subHeadingText)==null?void 0:me[x==null?void 0:x.type]}),o.jsx("div",{className:"form-builder-columns",children:e.children.map((j,oe)=>{const pe=`${n}-${oe}`;return o.jsx(P.Fragment,{children:Q(j,pe,r,i,a,oe)},pe)})})]})})),g===t0&&o.jsx("div",{className:"form-builder-columns",children:e.children.map((j,oe)=>{const pe=`${n}-${oe}`;return o.jsx(P.Fragment,{children:Q(j,pe,r,i,a,oe)},pe)})}),(e==null?void 0:e.rowIsRepeatable)&&V!==U&&o.jsx(Ft,{text:!0,type:"button",className:"p-button-success mb-3",onClick:()=>Y(),label:(Se=e.addToListButtonLabel)==null?void 0:Se[x==null?void 0:x.type]}),(e==null?void 0:e.rowIsRepeatable)&&o.jsxs("div",{className:"card",children:[o.jsxs(Ks,{value:(S==null?void 0:S.length)>0?(De=S[K])==null?void 0:De.repeatableFieldsData:[],children:[te,V!==U&&o.jsx(dr,{style:{width:"10%"},headerStyle:{textAlign:"center"},bodyStyle:{textAlign:"left",overflow:"visible"},body:j=>R(j)})]}),d&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(Ni,{field:e})]})]})]})},ixe=t=>{var ge,Z,Q,ce,K,he,ee,te;const{isAdvanceView:e,isPreview:n,renderType:r,emitSocketData:i}=Qt(),{handleDrop:a}=on(),{data:s,path:l,pageIndex:c,sectionIndex:u,section:d,page:f}=t,{removeSection:h,addSection:g,cloneSection:v,formBuilderFormLayout:m,userSelectedLanguage:A}=on(),[w,E]=P.useState(!1),[x,C]=P.useState(!1),[S,_]=P.useState({reusable_template_schema:""}),[I,F]=P.useState(!1),M=P.useRef(null),L=(Y,R)=>{_(fe=>({...fe,[Y]:R}))},[{isDragging:V},U]=ia({type:na,item:{type:na,uuid:s.uuid,children:s.children,path:l},collect:Y=>({isDragging:Y.isDragging()})}),O=V?.25:1;U(M);const q=(Y,R,fe,be,Te)=>o.jsx(rxe,{page:f,section:d,data:Y,path:R,pageIndex:fe,sectionIndex:be,rowIndex:Te},`row-${l}-${Y.uuid}`),ie=(Y,R,fe)=>{var Ae,ne;const be=Y.collapsed?"pi pi-chevron-down":"pi pi-chevron-up",Te=`${Y.className} justify-content-space-between panel-tab-section`,ye=`${Y.titleClassName} pl-1 text-primary`;return o.jsxs("div",{className:Te,children:[o.jsxs("span",{ref:n===!1?M:null,children:[o.jsx("button",{className:Y.togglerClassName,children:o.jsx("span",{className:"pi pi-sliders-h dragabble"})}),o.jsxs("button",{className:Y.togglerClassName,onClick:Y.onTogglerClick,children:[o.jsx("span",{className:be}),o.jsx(tn,{})]}),o.jsxs("span",{className:ye,children:[fe+1," ",(Ae=s==null?void 0:s.heading)==null?void 0:Ae[A==null?void 0:A.type]]})]}),n===!1&&o.jsxs(o.Fragment,{children:[o.jsx(sn,{target:".clone-tool"}),o.jsx(sn,{target:".del-tool"}),o.jsx(sn,{target:".setting-tool"}),o.jsx(sn,{target:".add-section-tool"}),o.jsx(sn,{target:".save-tool"}),o.jsx(sn,{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:Y.togglerClassName,onClick:()=>{g(R),i()},children:[o.jsx("span",{className:"pi pi-plus"}),o.jsx(tn,{})]})}),((ne=m[R])==null?void 0:ne.children.length)>1&&o.jsx("span",{className:"del-tool","data-pr-tooltip":"Delete",children:o.jsxs("button",{className:Y.togglerClassName,onClick:()=>{h(R,fe),i()},children:[o.jsx("span",{className:"pi pi-trash"}),o.jsx(tn,{})]})}),o.jsx("span",{className:"save-tool","data-pr-tooltip":"Save",children:o.jsxs("button",{className:Y.togglerClassName,onClick:()=>{L("reusable_template_schema",s),C(!0)},children:[o.jsx("span",{className:"pi pi-save"}),o.jsx(tn,{})]})}),o.jsx("span",{className:"clone-tool","data-pr-tooltip":"Clone",children:o.jsxs("button",{className:Y.togglerClassName,onClick:()=>{v(s,R,fe),i()},children:[o.jsx("span",{className:"pi pi-clone"}),o.jsx(tn,{})]})}),o.jsx("span",{className:"settings-tool","data-pr-tooltip":"Settings",children:o.jsxs("button",{className:Y.togglerClassName,onClick:()=>E(!0),children:[o.jsx("span",{className:"pi pi-cog"}),o.jsx(tn,{})]})})]})]})]})};return o.jsxs("div",{style:{opacity:O,marginBottom:20},className:e?"draggable row":"",children:[n===!1&&o.jsx(ap,{saveBuilderElementModalData:S,setSaveBuilderElementModalData:_,saveElementModal:x,setSaveElementModal:C}),w===!0&&o.jsx(ip,{renderType:r,visibilty:w,setVisibility:E,section:s,pageIndex:c,sectionIndex:u,emitSocketData:i},"section_settings_"+c+u),n===!1?o.jsx(o.Fragment,{children:e===!0?o.jsxs(ui,{header:(ge=s==null?void 0:s.heading)==null?void 0:ge.english,toggleable:!0,headerTemplate:Y=>ie(Y,c,u),onMouseEnter:()=>F(!0),onMouseLeave:()=>F(!1),children:[((Z=s==null?void 0:s.subHeadingText)==null?void 0:Z[A==null?void 0:A.type])&&o.jsx("p",{children:(Q=s==null?void 0:s.subHeadingText)==null?void 0:Q[A==null?void 0:A.type]}),o.jsxs("div",{children:[s.children.map((Y,R)=>{const fe=`${l}-${R}`;return o.jsxs(P.Fragment,{children:[o.jsx(Fr,{isAdvanceView:e,data:{path:fe,childrenCount:s.children.length},onDrop:a}),q(Y,fe,c,u,R)]},fe)}),o.jsx(Fr,{isAdvanceView:e,data:{path:`${l}-${s.children.length}`,childrenCount:s.children.length,droppedField:s},onDrop:a,isLast:!0})]}),I&&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(tn,{})})}),((ce=m[c])==null?void 0:ce.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(tn,{})})})]})]}):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:(he=s==null?void 0:s.subHeadingText)==null?void 0:he[A==null?void 0:A.type]}),o.jsx("div",{children:s.children.map((Y,R)=>{const fe=`${l}-${R}`;return o.jsx(P.Fragment,{children:q(Y,fe,c,u,R)},fe)})})]})}):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:(ee=s==null?void 0:s.heading)==null?void 0:ee[A==null?void 0:A.type]}),o.jsx("p",{children:(te=s==null?void 0:s.subHeadingText)==null?void 0:te[A==null?void 0:A.type]}),o.jsx("hr",{})]}),s.children.map((Y,R)=>{const fe=`${l}-${R}`;return o.jsx(P.Fragment,{children:o.jsx("div",{className:"",children:q(Y,fe,c,u,R)},fe)},fe)})]})})]})},axe=t=>{var s;const{data:e,currentPath:n,pageIndex:r,page:i}=t,a=P.useRef(null);return o.jsx(o.Fragment,{children:o.jsxs(Dw,{ref:a,modules:[kV,Yve],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 E=`${n}-${c}-${f}-${v}-${w}`;return o.jsx(Nw,{children:o.jsx("div",{className:"",children:o.jsx(tu,{page:i,column:g,type:"field",row:d,section:l,field:A,data:A,path:E,pageIndex:r,sectionIndex:c,rowIndex:f,columnIndex:v,fieldIndex:w},`component-${E}-${A==null?void 0:A.uuid}`)})},`swiper_slide_${E}`)})})})}),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"})]})]})})},sxe=t=>{const{isAdvanceView:e,isRenderView:n,isPreview:r}=Qt(),{handleDrop:i}=on(),{data:a,path:s,pageIndex:l}=t,{formBuilderFormSchema:c}=on(),u=P.useRef(null),[{},d]=ia({type:na,item:{type:na,uuid:a.uuid,children:a.children,path:s},collect:h=>({isDragging:h.isDragging()})});d(u);const f=(h,g,v,m)=>o.jsx(ixe,{data:h,section:h,path:g,page:a,pageIndex:v,sectionIndex:m},`section_${v}_${m}`);return o.jsx("div",{style:{overflowX:"auto"},className:`${n?"":"draggable page-css p-3 pb-4"}`,"data-image-src":a==null?void 0:a.bgImage,"data-bg-color":`#${a==null?void 0:a.bgColor}`,children:r===!1?o.jsxs(o.Fragment,{children:[a.children.map((h,g)=>{const v=`${s}-${g}`;return o.jsxs(P.Fragment,{children:[o.jsx(Fr,{isAdvanceView:e,data:{path:v,childrenCount:a.children.length},onDrop:i}),f(h,v,l,g)]},`section-${g}-${h.uuid}`)}),o.jsx(Fr,{isAdvanceView:e,data:{path:`${s}-${a.children.length}`,childrenCount:a.children.length,droppedField:a},onDrop:i,isLast:!0})]}):o.jsx(o.Fragment,{children:(c==null?void 0:c.surveyQuestionSlide)===!0?o.jsx(o.Fragment,{children:o.jsx(axe,{page:a,data:a,currentPath:s,pageIndex:l})}):o.jsx("div",{className:"p-1",children:a.children.map((h,g)=>{const v=`${s}-${g}`;return o.jsx(P.Fragment,{children:((h==null?void 0:h.isHidden)===!1||!r)&&f(h,v,l,g)},`section-${g}-${h.uuid}`)})})})})},oxe=()=>{const[t,e]=P.useState(!1),{isAdvanceView:n,isPreview:r,emitSocketData:i}=Qt(),[a,s]=P.useState(!1),[l,c]=P.useState(0),{removePage:u,userSelectedLanguage:d,formBuilderFormLayout:f,formBuilderFormLayout:h,clonePage:g}=on(),v=(m,A,w)=>o.jsx(sxe,{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)===m9&&r===!0?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===!0?o.jsx(Za,{activeIndex:l,onTabChange:m=>c(m.index),children:(h==null?void 0:h.length)&&h.map((m,A)=>{const w=`${A}`;return o.jsxs(fr,{disabled:!((m==null?void 0:m.isHidden)===!1||!r),header:"Page",headerTemplate:E=>o.jsx(k7,{options:E,pageIndex:A,page:m,isPreview:r,setTabSidebarSetting:s,clonePage:g,emitSocketData:i,formBuilderFormLayout:f,userSelectedLanguage:d,removePage:u,setPageActiveIndex:c,pages:h}),children:[r===!1&&o.jsx(zf,{reusableBuilderElementModalVisibility:t,setReusableBuilderElementModalVisibility:e,pageIndex:A}),o.jsx(c1,{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(P.Fragment,{children:[r===!1&&o.jsx(zf,{reusableBuilderElementModalVisibility:t,setReusableBuilderElementModalVisibility:e,pageIndex:A}),o.jsx(c1,{setVisibility:s,visibilty:a,pageIndex:A,page:m,emitSocketData:i}),v(m,w,A)]},`${m.uuid}-${A}`)}))})})})})},lxe={position:"relative"},cxe=t=>{var x,C,S;const{data:e,path:n,pageIndex:r,sectionIndex:i,rowIndex:a,columnIndex:s,section:l,row:c,page:u}=t,d=P.useRef(null),{handleDrop:f}=on(),{isPreview:h,isRenderView:g,isAdvanceView:v}=Qt(),[{isDragging:m},A]=ia({type:ws,item:{type:ws,uuid:e==null?void 0:e.uuid,children:e.children,path:n},collect:_=>({isDragging:_.isDragging()})}),w=m&&!g?.25:1;A(d);const E=(_,I,F,M,L,V,U)=>o.jsx(tu,{page:u,type:"field",row:c,section:l,field:_,data:_,path:I,pageIndex:F,sectionIndex:M,rowIndex:L,columnIndex:V,fieldIndex:U},`component-${n}-${_==null?void 0:_.uuid}`);return o.jsx("div",{style:v?{...lxe,opacity:w}:{},className:g?"form-builder-column container-column":"draggable form-builder-column container-column",children:h===!1?o.jsxs("div",{className:"builder-row-column",children:[((x=e==null?void 0:e.children)==null?void 0:x.length)>0?(C=e==null?void 0:e.children)==null?void 0:C.map((_,I)=>{const F=`${n}-${I}`;return o.jsxs(P.Fragment,{children:[o.jsx(Fr,{isAdvanceView:v,data:{path:F,childrenCount:e.children.length,droppedField:e},onDrop:f}),E(_,F,r,i,a,s,I)]},F)}):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:(S=e==null?void 0:e.children)==null?void 0:S.map((_,I)=>{const F=`${n}-${I}`;return o.jsx(P.Fragment,{children:E(_,F,r,i,a,s,I)},F)})})})},uxe={},dxe=t=>{var F,M,L,V,U,O,q,ie,ge;const{data:e,path:n,pageIndex:r,sectionIndex:i,rowIndex:a,section:s,page:l}=t,c=P.useRef(null),{removeRow:u,addRow:d,cloneRow:f,formBuilderFormLayout:h,userSelectedLanguage:g}=on(),{isPreview:v,isRenderView:m}=Qt(),{task_status:A,TASK_PUBLISHED:w}=yr(),[E,x]=P.useState(!1),[{isDragging:C},S]=ia({type:Oo,item:{type:Oo,uuid:e.uuid,children:e.children,path:n,data:e},collect:Z=>({isDragging:Z.isDragging()})}),_=C?.25:1;S(c);const I=(Z,Q,ce,K,he,ee)=>o.jsx(cxe,{page:l,row:e,section:s,data:Z,path:Q,pageIndex:ce,sectionIndex:K,rowIndex:he,columnIndex:ee},`column-${n}-${Z.uuid}`);return o.jsxs("div",{style:{...uxe,opacity:_,marginTop:`${(F=e==null?void 0:e.margin)==null?void 0:F.top}px`,marginBottom:`${(M=e==null?void 0:e.margin)==null?void 0:M.bottom}px`,marginLeft:`${(L=e==null?void 0:e.margin)==null?void 0:L.left}px`,marginRight:`${(V=e==null?void 0:e.margin)==null?void 0:V.right}px`},className:m?"row container-row":"draggable row container-row",children:[E&&o.jsx(em,{visibilty:E,setVisibility:x,row:e,pageIndex:r,sectionIndex:i,rowIndex:a},"row_settings_"+r+i+a),v===!1?o.jsxs("div",{children:[o.jsx("span",{className:"row-setting-block-pdf-editor",children:o.jsxs("div",{className:"pdf-setting-container",children:[o.jsxs("button",{onClick:()=>{d(r,i)},children:[o.jsx("span",{className:"pi pi-plus"}),o.jsx(tn,{})]}),((O=(U=h[r])==null?void 0:U.children[i])==null?void 0:O.children.length)>1&&o.jsxs("button",{onClick:()=>{u(r,i,a)},children:[o.jsx("span",{className:"pi pi-trash"}),o.jsx(tn,{})]}),o.jsxs("button",{onClick:()=>{f(e,r,i,a)},children:[o.jsx("span",{className:"pi pi-clone"}),o.jsx(tn,{})]}),o.jsxs("button",{onClick:()=>x(!0),children:[o.jsx("span",{className:"pi pi-cog"}),o.jsx(tn,{})]})]})}),o.jsx("div",{className:"form-builder-columns",children:(q=e==null?void 0:e.children)==null?void 0:q.map((Z,Q)=>{const ce=`${n}-${Q}`;return o.jsx(P.Fragment,{children:I(Z,ce,r,i,a,Q)},ce)})})]}):o.jsx(o.Fragment,{children:!(e!=null&&e.rowIsRepeatable&&A===w)&&o.jsxs(o.Fragment,{children:[o.jsx("h5",{children:(ie=e==null?void 0:e.heading)==null?void 0:ie[g==null?void 0:g.type]}),o.jsx("span",{children:(ge=e==null?void 0:e.subHeadingText)==null?void 0:ge[g==null?void 0:g.type]}),o.jsx("div",{className:"form-builder-columns",children:e.children.map((Z,Q)=>{const ce=`${n}-${Q}`;return o.jsx(P.Fragment,{children:I(Z,ce,r,i,a,Q)},ce)})})]})})]})},fxe=t=>{var S,_,I;const{data:e,path:n,pageIndex:r,sectionIndex:i,section:a,page:s}=t,{userSelectedLanguage:l}=on(),{isPreview:c,isAdvanceView:u}=Qt(),[d,f]=P.useState(!1),[h,g]=P.useState(!1),[v,m]=P.useState(null),A=P.useRef(null),[{isDragging:w},E]=ia({type:na,item:{type:na,uuid:e.uuid,children:e.children,path:n},collect:F=>({isDragging:F.isDragging()})}),x=w?.25:1;E(A);const C=(F,M,L,V,U)=>o.jsx(dxe,{page:s,section:a,data:F,path:M,pageIndex:L,sectionIndex:V,rowIndex:U},`row-${n}-${F.uuid}`);return o.jsxs("div",{style:{opacity:x,marginBottom:20},className:u?"draggable row":"",children:[c===!1&&o.jsx(ap,{saveBuilderElementModalData:v,setSaveBuilderElementModalData:m,saveElementModal:h,setSaveElementModal:g}),d===!0&&o.jsx(ip,{visibilty:d,setVisibility:f,section:e,pageIndex:r,sectionIndex:i},"section_settings_"+r+i),c===!1?o.jsx("div",{children:o.jsx("div",{children:e.children.map((F,M)=>{const L=`${n}-${M}`;return o.jsx(P.Fragment,{children:C(F,L,r,i,M)},L)})})}):o.jsx(o.Fragment,{children:o.jsxs("div",{children:[(e==null?void 0:e.showSectionHeader)&&o.jsxs(o.Fragment,{children:[o.jsx("h4",{children:(S=e==null?void 0:e.heading)==null?void 0:S[l==null?void 0:l.type]}),((_=e==null?void 0:e.subHeadingText)==null?void 0:_[l==null?void 0:l.type])&&o.jsx("p",{children:(I=e==null?void 0:e.subHeadingText)==null?void 0:I[l==null?void 0:l.type]}),o.jsx("hr",{})]}),e.children.map((F,M)=>{const L=`${n}-${M}`;return o.jsx(P.Fragment,{children:o.jsx("div",{className:"",children:C(F,L,r,i,M)},L)},L)})]})})]})},u6={},d6={height:"1280px",width:"100%"},hxe=t=>{var f,h,g,v;const{data:e,path:n,pageIndex:r}=t,{isPreview:i,isRenderView:a}=Qt(),s=P.useRef(null),[{isDragging:l},c]=ia({type:na,item:{type:na,uuid:e.uuid,children:e.children,path:n},collect:m=>({isDragging:m.isDragging()})}),u=l?0:1;c(s);const d=(m,A,w,E)=>o.jsx(fxe,{data:m,section:m,path:A,page:e,pageIndex:w,sectionIndex:E},`section_${w}_${E}`);return o.jsx("div",{style:{overflowX:"auto"},className:`${a?"":"draggable page-css p-3 pb-4"}`,"data-image-src":e==null?void 0:e.bgImage,"data-bg-color":`#${e==null?void 0:e.bgColor}`,children:o.jsx("div",{className:"pdf flex justify-content-center",children:i===!1?o.jsx("div",{id:e==null?void 0:e.uuid,className:"page-block ",style:(e==null?void 0:e.bgType)==="image"?{...u6,...d6,opacity:u,backgroundImage:`url("${e==null?void 0:e.bgImage}")`}:{...u6,...d6,opacity:u,backgroundColor:`#${e==null?void 0:e.bgColor}`},children:((e==null?void 0:e.isCoverPage)===!1||(e==null?void 0:e.isCoverPage)===void 0)&&o.jsx(o.Fragment,{children:e.children.map((m,A)=>{const w=`${n}-${A}`;return o.jsx(P.Fragment,{children:d(m,w,r,A)},`section-${A}-${m.uuid}`)})})}):o.jsx(o.Fragment,{children:o.jsx("div",{className:"page-block",style:(e==null?void 0:e.bgType)==="image"?{...u6,...d6,opacity:u,backgroundImage:`url("${e==null?void 0:e.bgImage}")`,backgroundSize:"cover"}:{...u6,...d6,opacity:u,backgroundColor:`#${e==null?void 0:e.bgColor}`},children:o.jsx("div",{style:{marginTop:`${(f=e==null?void 0:e.margin)==null?void 0:f.top}px`,marginBottom:`${(h=e==null?void 0:e.margin)==null?void 0:h.bottom}px`,marginLeft:`${(g=e==null?void 0:e.margin)==null?void 0:g.left}px`,marginRight:`${(v=e==null?void 0:e.margin)==null?void 0:v.right}px`},children:e.children.map((m,A)=>{const w=`${n}-${A}`;return o.jsx(P.Fragment,{children:((m==null?void 0:m.isHidden)===!1||!i)&&d(m,w,r,A)},`section-${A}-${m.uuid}`)})})})})})})},pxe=()=>{const{isPreview:t}=Qt(),[e,n]=P.useState(!1),[r,i]=P.useState(0),[a,s]=P.useState(!1),{formBuilderFormLayout:l}=on(),c=(u,d,f)=>o.jsx(hxe,{data:u,path:d,pageIndex:f},`page-${u.uuid}`);return o.jsx("div",{className:"page",children:(l==null?void 0:l.length)===m9&&t===!0?o.jsx(o.Fragment,{children:(l==null?void 0:l.length)&&l.map((u,d)=>{const f=`${d}`;return o.jsx("div",{className:"scroll-height-400",children:c(u,f,d)},`${u.uuid}-${d}`)})}):o.jsx(o.Fragment,{children:t===!1?o.jsx(Za,{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(fr,{header:"Page",headerTemplate:h=>o.jsx(k7,{options:h,pageIndex:d,page:u,setTabSidebarSetting:n,setPageActiveIndex:i,pages:l}),children:[t===!1&&o.jsx(zf,{reusableBuilderElementModalVisibility:a,setReusableBuilderElementModalVisibility:s,pageIndex:d}),o.jsxs("div",{className:"p-3",children:[o.jsx(c1,{setVisibility:n,visibilty:e,pageIndex:d,page:u}),o.jsx("div",{children:c(u,f,d)})]})]},`${u.uuid}-${d}`)})}):o.jsx("div",{className:"",children:(l==null?void 0:l.length)&&l.map((u,d)=>{var h;const f=`${d}`;if((u==null?void 0:u.isHidden)===!1||!t)return o.jsxs("section",{id:u==null?void 0:u.uuid,"data-nav-title":(h=u==null?void 0:u.title)==null?void 0:h.english,"data-scrollspy":!0,children:[t===!1&&o.jsx(zf,{reusableBuilderElementModalVisibility:a,setReusableBuilderElementModalVisibility:s,pageIndex:d}),o.jsxs("div",{className:"p-3",children:[o.jsx(c1,{setVisibility:n,visibilty:e,pageIndex:d,page:u}),o.jsx("div",{children:c(u,f,d)})]})]},`${u.uuid}-${d}`)})})})})},gxe=t=>{var w,E,x,C;const e=P.useRef(null),{removeColumn:n,addColumn:r,cloneColumn:i,formBuilderFormLayout:a}=on(),{isPreview:s,emitSocketData:l}=Qt(),{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(sn,{target:".clone-tool"}),o.jsx(sn,{target:".add-column-tool"}),o.jsxs("div",{className:m,children:[o.jsxs("span",{ref:s===!1?e:null,children:[o.jsx("button",{className:c.togglerClassName,children:o.jsx("span",{className:"pi pi-sliders-h dragabble"})}),o.jsxs("button",{className:c.togglerClassName,onClick:c.onTogglerClick,children:[o.jsx("span",{className:v}),o.jsx(tn,{})]}),o.jsx("span",{className:A,children:"Column"})]}),s===!1&&o.jsxs("div",{className:"p-panel-icons",children:[o.jsx("span",{className:"add-column-tool","data-pr-tooltip":"Add Column",children:o.jsxs("button",{className:c.togglerClassName,onClick:()=>{r(u,d,f),l()},children:[o.jsx("span",{className:"pi pi-plus"}),o.jsx(tn,{})]})}),((C=(x=(E=(w=a[u])==null?void 0:w.children[d])==null?void 0:E.children[f])==null?void 0:x.children)==null?void 0:C.length)>1&&o.jsxs("button",{className:c.togglerClassName,onClick:()=>{n(u,d,f,h),l()},children:[o.jsx("span",{className:"pi pi-trash"}),o.jsx(tn,{})]}),o.jsx("span",{className:"clone-tool","data-pr-tooltip":"Clone",children:o.jsxs("button",{className:c.togglerClassName,onClick:()=>{i(g,u,d,f,h),l()},children:[o.jsx("span",{className:"pi pi-clone"}),o.jsx(tn,{})]})})]})]})]})},mxe={position:"relative"},vxe=t=>{var x,C,S,_,I;const{isAdvanceView:e,isRenderView:n,isPreview:r}=Qt(),{handleDrop:i}=on(),{data:a,path:s,pageIndex:l,sectionIndex:c,rowIndex:u,columnIndex:d,section:f,row:h,page:g}=t,v=P.useRef(null),[{isDragging:m},A]=ia({type:ws,item:{type:ws,uuid:a==null?void 0:a.uuid,children:a.children,path:s},collect:F=>({isDragging:F.isDragging()})}),w=m&&!n?.25:1;A(v);const E=(F,M,L,V,U,O,q)=>o.jsx(tu,{page:g,column:a,type:"field",row:h,section:f,field:F,data:F,path:M,pageIndex:L,sectionIndex:V,rowIndex:U,columnIndex:O,fieldIndex:q},`component-${s}-${F==null?void 0:F.uuid}`);return o.jsx("div",{style:e?{...mxe,opacity:w}:{},className:n?"form-builder-column container-column":"draggable form-builder-column container-column",children:r===!1?o.jsx(o.Fragment,{children:e===!0?o.jsxs(ui,{className:"builder-row-column",header:"Column",toggleable:!0,headerTemplate:F=>o.jsx(gxe,{options:F,pageIndex:l,sectionIndex:c,rowIndex:u,data:a,columnIndex:d}),children:[((x=a==null?void 0:a.children)==null?void 0:x.length)>0?(C=a==null?void 0:a.children)==null?void 0:C.map((F,M)=>{const L=`${s}-${M}`;return o.jsxs(P.Fragment,{children:[o.jsx(Fr,{isAdvanceView:e,fieldDropArea:!0,data:{path:L,childrenCount:a.children.length,droppedField:a},onDrop:i}),E(F,L,l,c,u,d,M)]},L)}):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:[((S=a==null?void 0:a.children)==null?void 0:S.length)>0?(_=a==null?void 0:a.children)==null?void 0:_.map((F,M)=>{const L=`${s}-${M}`;return o.jsxs(P.Fragment,{children:[o.jsx(Fr,{isAdvanceView:e,fieldDropArea:!0,data:{path:L,childrenCount:a.children.length,droppedField:a},onDrop:i}),E(F,L,l,c,u,d,M)]},L)}):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:(I=a==null?void 0:a.children)==null?void 0:I.map((F,M)=>{const L=`${s}-${M}`;return o.jsx(P.Fragment,{children:E(F,L,l,c,u,d,M)},L)})})})},bxe=t=>{var E,x,C,S;const{options:e,pageIndex:n,sectionIndex:r,rowIndex:i,data:a}=t,[,s]=P.useState(!1),l=P.useRef(null),{isPreview:c,emitSocketData:u}=Qt(),{removeRow:d,addRow:f,cloneRow:h,formBuilderFormLayout:g,userSelectedLanguage:v}=on(),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(sn,{target:".clone-tool"}),o.jsx(sn,{target:".setting-tool"}),o.jsx(sn,{target:".add-row-tool"}),o.jsxs("div",{className:A,children:[o.jsxs("span",{ref:c===!1?l:null,children:[o.jsx("button",{className:e==null?void 0:e.togglerClassName,children:o.jsx("span",{className:"pi pi-sliders-h dragabble"})}),o.jsxs("button",{className:e==null?void 0:e.togglerClassName,onClick:e==null?void 0:e.onTogglerClick,children:[o.jsx("span",{className:m}),o.jsx(tn,{})]}),o.jsxs("span",{className:w,children:["Row:"," ",((E=a==null?void 0:a.heading)==null?void 0:E[v==null?void 0:v.type])!==""?(x=a==null?void 0:a.heading)==null?void 0:x[v==null?void 0:v.type]:"Untitled"]})]}),c===!1&&o.jsxs("div",{className:"p-panel-icons",children:[o.jsx("span",{className:"add-row-tool","data-pr-tooltip":"Add Row",children:o.jsxs("button",{className:e==null?void 0:e.togglerClassName,onClick:()=>{f(n,r),u()},children:[o.jsx("span",{className:"pi pi-plus"}),o.jsx(tn,{})]})}),((S=(C=g[n])==null?void 0:C.children[r])==null?void 0:S.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(tn,{})]}),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(tn,{})]})}),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(tn,{})]})})]})]})]})},yxe={},Axe=t=>{var he,ee,te,Y,R,fe,be,Te,ye,Ae,ne;const{isAdvanceView:e,isRenderView:n,isPreview:r,isAdmin:i,renderType:a,emitSocketData:s}=Qt(),{handleDrop:l}=on(),{data:c,path:u,pageIndex:d,sectionIndex:f,rowIndex:h,section:g,page:v}=t,m=P.useRef(null),{userSelectedLanguage:A}=on(),{userTaskSubmitFormData:w,taskRegisterData:E,updateTaskRegisterData:x,updateTaskProgressValue:C,addUserDataFormSectionRepeatableData:S,removeUserDataFormSectionRepeatableData:_,task_status:I,TASK_PUBLISHED:F}=yr(),[M,L]=P.useState(!1),[{isDragging:V},U]=ia({type:Oo,item:{type:Oo,uuid:c.uuid,children:c.children,path:u,data:c},collect:$=>({isDragging:$.isDragging()})}),O=V?.25:1;U(m);const q=($,re,W,de,Ie,Ee)=>o.jsx(vxe,{page:v,row:c,section:g,data:$,path:re,pageIndex:W,sectionIndex:de,rowIndex:Ie,columnIndex:Ee,emitSocketData:s},`column-${u}-${$.uuid}`),ie=It.findIndex(w,function($){return($==null?void 0:$.rowId)===(c==null?void 0:c.uuid)}),ge=()=>{var W,de,Ie;const $=It.cloneDeep(E);((de=(W=w[ie])==null?void 0:W.repeatableFieldsData)==null?void 0:de.length)>=(c==null?void 0:c.minimumEntries)?$[c==null?void 0:c.uuid]=(Ie=w[ie])==null?void 0:Ie.repeatableFields:delete $[c==null?void 0:c.uuid];const re=Object.keys($).length;x($),C(re)},Z=(he=c==null?void 0:c.repeatableFields)==null?void 0:he.map($=>{var re;return{fieldUuid:$==null?void 0:$.uuid,field:$==null?void 0:$.uuid,header:(re=$==null?void 0:$.label)==null?void 0:re.english}}),Q=Z==null?void 0:Z.map($=>o.jsx(dr,{field:$.field,header:$.header,body:re=>o.jsx(o.Fragment,{children:o.jsx("div",{className:"post__content_repetable",dangerouslySetInnerHTML:{__html:re[$==null?void 0:$.field]}})})},$.field)),ce=()=>{var de;const $=[...w],re=[];let W=!0;e:for(const[,Ie]of c.children.entries()){for(const[,Ee]of Ie.children.entries())if(Ee!=null&&Ee.isPostField&&Ee.isValid!==1){const ve={fieldId:Ee.uuid,rowIndex:h};console.log("inValidData",ve),re.push(ve),Zt.emit("OnInvalidFieldCatch",ve),W=!1;break e}W=!0}W&&(re==null?void 0:re.length)===0&&(S(c==null?void 0:c.uuid,(de=$[ie])==null?void 0:de.repeatableFields),Zt.emit("clearRepeatableFields",c==null?void 0:c.uuid),ge())},K=$=>o.jsx(o.Fragment,{children:o.jsx(Ft,{text:!0,type:"button",className:"p-button-danger ",onClick:()=>{_(c==null?void 0:c.uuid,$==null?void 0:$.rowIndex),setTimeout(()=>{ge()},1e3)},icon:"pi pi-trash"})});return o.jsxs("div",{style:{...yxe,opacity:O,marginTop:`${(ee=c==null?void 0:c.margin)==null?void 0:ee.top}px`,marginBottom:`${(te=c==null?void 0:c.margin)==null?void 0:te.bottom}px`,marginLeft:`${(Y=c==null?void 0:c.margin)==null?void 0:Y.left}px`,marginRight:`${(R=c==null?void 0:c.margin)==null?void 0:R.right}px`},className:n?"row container-row":"draggable row container-row",children:[M&&o.jsx(em,{renderType:a,visibilty:M,setVisibility:L,row:c,pageIndex:d,sectionIndex:f,rowIndex:h,emitSocketData:s},"row_settings_"+d+f+h),r===!1?o.jsx(o.Fragment,{children:e===!0?o.jsx(ui,{header:"Row",toggleable:!0,headerTemplate:$=>o.jsx(bxe,{options:$,pageIndex:d,sectionIndex:f,rowIndex:h,data:c}),children:o.jsxs("div",{className:"form-builder-columns",style:{overflowX:"auto"},children:[(fe=c==null?void 0:c.children)==null?void 0:fe.map(($,re)=>{const W=`${u}-${re}`;return o.jsxs(P.Fragment,{children:[o.jsx(Fr,{isAdvanceView:e,data:{path:W,childrenCount:c.children.length},onDrop:l,className:"horizontalDrag"}),q($,W,d,f,h,re)]},W)}),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(($,re)=>{const W=`${u}-${re}`;return o.jsx(P.Fragment,{children:q($,W,d,f,h,re)},W)})})})}):o.jsx(o.Fragment,{children:!(c!=null&&c.rowIsRepeatable&&I===F)&&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(($,re)=>{const W=`${u}-${re}`;return o.jsx(P.Fragment,{children:q($,W,d,f,h,re)},W)})})]})}),(c==null?void 0:c.rowIsRepeatable)&&I!==F&&o.jsx(Ft,{text:!0,type:"button",className:"p-button-success mb-3",onClick:()=>ce(),label:(Ae=c.addToListButtonLabel)==null?void 0:Ae[A==null?void 0:A.type]}),(c==null?void 0:c.rowIsRepeatable)&&o.jsxs("div",{className:"card",children:[o.jsxs(Ks,{value:(w==null?void 0:w.length)>0?(ne=w[ie])==null?void 0:ne.repeatableFieldsData:[],children:[Q,I!==F&&o.jsx(dr,{style:{width:"10%"},headerStyle:{textAlign:"center"},bodyStyle:{textAlign:"left",overflow:"visible"},body:$=>K($)})]}),i&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(Ni,{field:c})]})]})]})},wxe=t=>{var ge,Z,Q,ce,K,he,ee,te;const{isAdvanceView:e,isPreview:n,renderType:r,emitSocketData:i}=Qt(),{handleDrop:a}=on(),{data:s,path:l,pageIndex:c,sectionIndex:u,section:d,page:f}=t,{removeSection:h,addSection:g,cloneSection:v,formBuilderFormLayout:m,userSelectedLanguage:A}=on(),[w,E]=P.useState(!1),[x,C]=P.useState(!1),[S,_]=P.useState({reusable_template_schema:""}),[I,F]=P.useState(!1),M=P.useRef(null),L=(Y,R)=>{_(fe=>({...fe,[Y]:R}))},[{isDragging:V},U]=ia({type:na,item:{type:na,uuid:s.uuid,children:s.children,path:l},collect:Y=>({isDragging:Y.isDragging()})}),O=V?.25:1;U(M);const q=(Y,R,fe,be,Te)=>o.jsx(Axe,{page:f,section:d,data:Y,path:R,pageIndex:fe,sectionIndex:be,rowIndex:Te,emitSocketData:i},`row-${l}-${Y.uuid}`),ie=(Y,R,fe)=>{var Ae,ne;const be=Y.collapsed?"pi pi-chevron-down":"pi pi-chevron-up",Te=`${Y.className} justify-content-space-between panel-tab-section`,ye=`${Y.titleClassName} pl-1 text-primary`;return o.jsxs("div",{className:Te,children:[o.jsxs("span",{ref:n===!1?M:null,children:[o.jsx("button",{className:Y.togglerClassName,children:o.jsx("span",{className:"pi pi-sliders-h dragabble"})}),o.jsxs("button",{className:Y.togglerClassName,onClick:Y.onTogglerClick,children:[o.jsx("span",{className:be}),o.jsx(tn,{})]}),o.jsxs("span",{className:ye,children:[fe+1," ",(Ae=s==null?void 0:s.heading)==null?void 0:Ae[A==null?void 0:A.type]]})]}),n===!1&&o.jsxs(o.Fragment,{children:[o.jsx(sn,{target:".clone-tool"}),o.jsx(sn,{target:".del-tool"}),o.jsx(sn,{target:".setting-tool"}),o.jsx(sn,{target:".add-section-tool"}),o.jsx(sn,{target:".save-tool"}),o.jsx(sn,{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:Y.togglerClassName,onClick:()=>{g(R),i()},children:[o.jsx("span",{className:"pi pi-plus"}),o.jsx(tn,{})]})}),((ne=m[R])==null?void 0:ne.children.length)>1&&o.jsx("span",{className:"del-tool","data-pr-tooltip":"Delete",children:o.jsxs("button",{className:Y.togglerClassName,onClick:()=>{h(R,fe),i()},children:[o.jsx("span",{className:"pi pi-trash"}),o.jsx(tn,{})]})}),o.jsx("span",{className:"save-tool","data-pr-tooltip":"Save",children:o.jsxs("button",{className:Y.togglerClassName,onClick:()=>{L("reusable_template_schema",s),C(!0)},children:[o.jsx("span",{className:"pi pi-save"}),o.jsx(tn,{})]})}),o.jsx("span",{className:"clone-tool","data-pr-tooltip":"Clone",children:o.jsxs("button",{className:Y.togglerClassName,onClick:()=>{v(s,R,fe),i()},children:[o.jsx("span",{className:"pi pi-clone"}),o.jsx(tn,{})]})}),o.jsx("span",{className:"settings-tool","data-pr-tooltip":"Settings",children:o.jsxs("button",{className:Y.togglerClassName,onClick:()=>E(!0),children:[o.jsx("span",{className:"pi pi-cog"}),o.jsx(tn,{})]})})]})]})]})};return o.jsxs("div",{style:{opacity:O,marginBottom:20},className:e?"draggable row":"",children:[n===!1&&o.jsx(ap,{saveBuilderElementModalData:S,setSaveBuilderElementModalData:_,saveElementModal:x,setSaveElementModal:C}),w===!0&&o.jsx(ip,{renderType:r,visibilty:w,setVisibility:E,section:s,pageIndex:c,sectionIndex:u,emitSocketData:i},"section_settings_"+c+u),n===!1?o.jsx(o.Fragment,{children:e===!0?o.jsxs(ui,{header:(ge=s==null?void 0:s.heading)==null?void 0:ge.english,toggleable:!0,headerTemplate:Y=>ie(Y,c,u),onMouseEnter:()=>F(!0),onMouseLeave:()=>F(!1),children:[((Z=s==null?void 0:s.subHeadingText)==null?void 0:Z[A==null?void 0:A.type])&&o.jsx("p",{children:(Q=s==null?void 0:s.subHeadingText)==null?void 0:Q[A==null?void 0:A.type]}),o.jsxs("div",{children:[s.children.map((Y,R)=>{const fe=`${l}-${R}`;return o.jsxs(P.Fragment,{children:[o.jsx(Fr,{isAdvanceView:e,data:{path:fe,childrenCount:s.children.length},onDrop:a}),q(Y,fe,c,u,R)]},fe)}),o.jsx(Fr,{isAdvanceView:e,data:{path:`${l}-${s.children.length}`,childrenCount:s.children.length,droppedField:s},onDrop:a,isLast:!0})]}),I&&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(tn,{})})}),((ce=m[c])==null?void 0:ce.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(tn,{})})})]})]}):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:(he=s==null?void 0:s.subHeadingText)==null?void 0:he[A==null?void 0:A.type]}),o.jsx("div",{children:s.children.map((Y,R)=>{const fe=`${l}-${R}`;return o.jsx(P.Fragment,{children:q(Y,fe,c,u,R)},fe)})})]})}):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:(ee=s==null?void 0:s.heading)==null?void 0:ee[A==null?void 0:A.type]}),o.jsx("p",{children:(te=s==null?void 0:s.subHeadingText)==null?void 0:te[A==null?void 0:A.type]}),o.jsx("hr",{})]}),s.children.map((Y,R)=>{const fe=`${l}-${R}`;return o.jsx(P.Fragment,{children:o.jsx("div",{className:"",children:q(Y,fe,c,u,R)},fe)},fe)})]})})]})},Sxe={position:"relative"},xxe=t=>{var x,C,S;const{isAdvanceView:e,isRenderView:n,isPreview:r}=Qt(),{handleDrop:i}=on(),{data:a,path:s,pageIndex:l,sectionIndex:c,rowIndex:u,columnIndex:d,section:f,row:h,page:g}=t,v=P.useRef(null),[{isDragging:m},A]=ia({type:ws,item:{type:ws,uuid:a==null?void 0:a.uuid,children:a.children,path:s},collect:_=>({isDragging:_.isDragging()})}),w=m&&!n?.25:1;A(v);const E=(_,I,F,M,L,V,U)=>o.jsx(tu,{page:g,type:"field",row:h,column:a,section:f,field:_,data:_,path:I,pageIndex:F,sectionIndex:M,rowIndex:L,columnIndex:V,fieldIndex:U},`component-${s}-${_==null?void 0:_.uuid}`);return o.jsx("div",{style:e?{...Sxe,opacity:w}:{},className:n?"":"draggable column container-column",children:r===!1?o.jsx(o.Fragment,{children:o.jsxs("div",{children:[((x=a==null?void 0:a.children)==null?void 0:x.length)>0?(C=a==null?void 0:a.children)==null?void 0:C.map((_,I)=>{const F=`${s}-${I}`;return o.jsxs(P.Fragment,{children:[o.jsx(Fr,{isAdvanceView:e,fieldDropArea:!0,data:{path:F,childrenCount:a.children.length,droppedField:a},onDrop:i}),E(_,F,l,c,u,d,I)]},F)}):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:(S=a==null?void 0:a.children)==null?void 0:S.map((_,I)=>{const F=`${s}-${I}`;return o.jsx(P.Fragment,{children:E(_,F,l,c,u,d,I)},F)})})})},Cxe=t=>{var l;const{isAdvanceView:e}=Qt(),{data:n,page:r,currentPath:i,pageIndex:a}=t,s=(c,u,d,f,h,g,v,m)=>o.jsx(xxe,{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(P.Fragment,{children:s(v,A,a,u,h,m,c,f)},A)})})})})})})},Txe=t=>{const{data:e,path:n,pageIndex:r}=t,{isAdvanceView:i,isRenderView:a,isPreview:s}=Qt(),{formBuilderFormSchema:l,handleDrop:c}=on(),u=P.useRef(null),[{},d]=ia({type:na,item:{type:na,uuid:e.uuid,children:e.children,path:n},collect:h=>({isDragging:h.isDragging()})});d(u);const f=(h,g,v,m)=>o.jsx(wxe,{data:h,section:h,path:g,page:e,pageIndex:v,sectionIndex:m},`section_${v}_${m}`);return o.jsx("div",{style:{overflowX:"auto"},className:`${a?"":"draggable page-css p-3 pb-4"}`,"data-image-src":e==null?void 0:e.bgImage,"data-bg-color":`#${e==null?void 0:e.bgColor}`,children:s===!1?o.jsx(o.Fragment,{children:i?o.jsxs(o.Fragment,{children:[e.children.map((h,g)=>{const v=`${n}-${g}`;return o.jsxs(P.Fragment,{children:[i===!0&&o.jsx(Fr,{isAdvanceView:i,data:{path:v,childrenCount:e.children.length},onDrop:c}),f(h,v,r,g)]},`section-${g}-${h.uuid}`)}),i===!0&&o.jsx(Fr,{isAdvanceView:i,data:{path:`${n}-${e.children.length}`,childrenCount:e.children.length,droppedField:e},onDrop:c,isLast:!0})]}):o.jsx(o.Fragment,{children:o.jsx(Cxe,{page:e,data:e,path:n,pageIndex:r})})}):o.jsx(o.Fragment,{children:o.jsx("div",{className:"p-1",children:e.children.map((h,g)=>{const v=`${n}-${g}`;return o.jsx(P.Fragment,{children:l!=null&&l.showConditionalFields?o.jsx(o.Fragment,{children:o.jsx("div",{children:f(h,v,r,g)})}):((h==null?void 0:h.isHidden)===!1||!s)&&f(h,v,r,g)},`section-${g}-${h.uuid}`)})})})})},Exe=()=>{const[t,e]=P.useState(!1),{formBuilderFormLayout:n}=on(),{isPreview:r}=Qt(),i=()=>{},a=(s,l,c)=>o.jsx(Txe,{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(c1,{setVisibility:e,visibilty:t,pageIndex:l,page:s,emitSocketData:i}),a(s,c,l)]},`policie-page-${l}`)})})})})},Ixe={position:"relative"},_xe=t=>{var x;const{isPreview:e,isRenderView:n,isAdvanceView:r}=Qt(),{data:i,path:a,pageIndex:s,sectionIndex:l,rowIndex:c,columnIndex:u,section:d,row:f,page:h}=t,g=P.useRef(null),{handleDrop:v}=on(),[{isDragging:m},A]=ia({type:ws,item:{type:ws,uuid:i==null?void 0:i.uuid,children:i.children,path:a},collect:C=>({isDragging:C.isDragging()})}),w=m&&!n?.25:1;A(g);const E=(C,S,_,I,F,M,L)=>o.jsx(tu,{page:h,type:"field",row:f,section:d,field:C,data:C,path:S,pageIndex:_,sectionIndex:I,rowIndex:F,columnIndex:M,fieldIndex:L},`component-${a}-${C==null?void 0:C.uuid}`);return o.jsx("div",{style:r?{...Ixe,opacity:w}:{},className:n?"form-builder-column container-column":"draggable form-builder-column container-column",children:!e&&o.jsxs("div",{children:[(x=i==null?void 0:i.children)==null?void 0:x.map((C,S)=>{const _=`${a}-${S}`;return o.jsxs(P.Fragment,{children:[o.jsx(Fr,{fieldDropArea:!0,isAdvanceView:r,data:{path:_,childrenCount:i.children.length,droppedField:i},onDrop:v}),E(C,_,s,l,c,u,S)]},_)}),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:r,data:{path:`${a}-${i.children.length}`,childrenCount:i.children.length,droppedField:i},onDrop:v,isLast:!0})]})})},Dxe={},Nxe=t=>{var K,he,ee,te,Y,R,fe;const{data:e,path:n,pageIndex:r,sectionIndex:i,rowIndex:a,section:s,page:l}=t,c=P.useRef(null),{userSelectedLanguage:u,handleDrop:d}=on(),{userTaskSubmitFormData:f,taskRegisterData:h,updateTaskRegisterData:g,updateTaskProgressValue:v,addUserDataFormSectionRepeatableData:m,removeUserDataFormSectionRepeatableData:A,task_status:w,TASK_PUBLISHED:E}=yr(),{isRenderView:x,isAdmin:C,isAdvanceView:S,emitSocketData:_,renderType:I}=Qt(),[F,M]=P.useState(!1),[{isDragging:L},V]=ia({type:Oo,item:{type:Oo,uuid:e.uuid,children:e.children,path:n,data:e},collect:be=>({isDragging:be.isDragging()})}),U=L?.25:1;V(c);const O=(be,Te,ye,Ae,ne,$)=>o.jsx(_xe,{page:l,row:e,section:s,data:be,path:Te,pageIndex:ye,sectionIndex:Ae,rowIndex:ne,columnIndex:$},`column-${n}-${be.uuid}`),q=It.findIndex(f,function(be){return(be==null?void 0:be.rowId)===(e==null?void 0:e.uuid)}),ie=()=>{var ye,Ae,ne;const be=It.cloneDeep(h);((Ae=(ye=f[q])==null?void 0:ye.repeatableFieldsData)==null?void 0:Ae.length)>=(e==null?void 0:e.minimumEntries)?be[e==null?void 0:e.uuid]=(ne=f[q])==null?void 0:ne.repeatableFields:delete be[e==null?void 0:e.uuid];const Te=Object.keys(be).length;g(be),v(Te)},ge=(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}}),Z=ge==null?void 0:ge.map(be=>o.jsx(dr,{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)),Q=()=>{var Ae;const be=[...f],Te=[];let ye=!0;e:for(const[,ne]of e.children.entries()){for(const[,$]of ne.children.entries())if(console.log("field.isValid",$.isValid),$!=null&&$.isPostField&&$.isValid!==1){const re={fieldId:$.uuid,rowIndex:a};console.log("inValidData",re),Te.push(re),Zt.emit("OnInvalidFieldCatch",re),ye=!1;break e}ye=!0}ye&&(Te==null?void 0:Te.length)===0&&(m(e==null?void 0:e.uuid,(Ae=be[q])==null?void 0:Ae.repeatableFields),Zt.emit("clearRepeatableFields",e==null?void 0:e.uuid),ie())},ce=be=>o.jsx(o.Fragment,{children:o.jsx(Ft,{text:!0,type:"button",className:"p-button-danger ",onClick:()=>{A(e==null?void 0:e.uuid,be==null?void 0:be.rowIndex),setTimeout(()=>{ie()},1e3)},icon:"pi pi-trash"})});return o.jsxs("div",{style:{...Dxe,opacity:U,marginTop:`${(he=e==null?void 0:e.margin)==null?void 0:he.top}px`,marginBottom:`${(ee=e==null?void 0:e.margin)==null?void 0:ee.bottom}px`,marginLeft:`${(te=e==null?void 0:e.margin)==null?void 0:te.left}px`,marginRight:`${(Y=e==null?void 0:e.margin)==null?void 0:Y.right}px`},className:x?"row container-row":"draggable row container-row",children:[F&&o.jsx(em,{renderType:I,visibilty:F,setVisibility:M,row:e,pageIndex:r,sectionIndex:i,rowIndex:a,emitSocketData:_},"row_settings_"+r+i+a),o.jsxs("div",{className:"form-builder-columns",children:[e.children.map((be,Te)=>{const ye=`${n}-${Te}`;return o.jsxs(P.Fragment,{children:[I===t0&&o.jsx(Fr,{isAdvanceView:S,data:{path:ye,childrenCount:e.children.length},onDrop:d,className:"horizontalDrag"}),O(be,ye,r,i,a,Te)]},ye)}),o.jsx(Fr,{isAdvanceView:S,data:{path:`${n}-${e.children.length}`,childrenCount:e.children.length},onDrop:d,className:"horizontalDrag",isLast:!0})]}),(e==null?void 0:e.rowIsRepeatable)&&w!==E&&o.jsx(Ft,{text:!0,type:"button",className:"p-button-success mb-3",onClick:()=>Q(),label:(R=e.addToListButtonLabel)==null?void 0:R[u==null?void 0:u.type]}),(e==null?void 0:e.rowIsRepeatable)&&o.jsxs("div",{className:"card",children:[o.jsxs(Ks,{value:(f==null?void 0:f.length)>0?(fe=f[q])==null?void 0:fe.repeatableFieldsData:[],children:[Z,w!==E&&o.jsx(dr,{style:{width:"10%"},headerStyle:{textAlign:"center"},bodyStyle:{textAlign:"left",overflow:"visible"},body:be=>ce(be)})]}),C&&o.jsxs(o.Fragment,{children:[o.jsx("hr",{}),o.jsx(Ni,{field:e})]})]})]})},Oxe=t=>{var O,q;const{data:e,path:n,pageIndex:r,sectionIndex:i,section:a,page:s}=t,{removeSection:l,addSection:c,cloneSection:u,formBuilderFormLayout:d,userSelectedLanguage:f,handleDrop:h}=on(),{isPreview:g,isAdvanceView:v,renderType:m,emitSocketData:A}=Qt(),[w,E]=P.useState(!1),[x,C]=P.useState(!1),[S,_]=P.useState({reusable_template_schema:""}),I=P.useRef(null),[{isDragging:F},M]=ia({type:na,item:{type:na,uuid:e.uuid,children:e.children,path:n},collect:ie=>({isDragging:ie.isDragging()})}),L=F?.25:1;M(I);const V=(ie,ge,Z,Q,ce)=>o.jsx(Nxe,{page:s,section:a,data:ie,path:ge,pageIndex:Z,sectionIndex:Q,rowIndex:ce},`row-${n}-${ie.uuid}`),U=(ie,ge,Z)=>{var he,ee;const Q=ie.collapsed?"pi pi-chevron-down":"pi pi-chevron-up",ce=`${ie.className} justify-content-space-between panel-tab-section`,K=`${ie.titleClassName} pl-1 text-primary`;return o.jsxs("div",{className:ce,children:[o.jsxs("span",{ref:g===!1?I:null,children:[o.jsx("button",{className:ie.togglerClassName,children:o.jsx("span",{className:"pi pi-sliders-h dragabble"})}),o.jsxs("button",{className:ie.togglerClassName,onClick:ie.onTogglerClick,children:[o.jsx("span",{className:Q}),o.jsx(tn,{})]}),o.jsxs("span",{className:K,children:[Z+1," ",(he=e==null?void 0:e.heading)==null?void 0:he[f==null?void 0:f.type]]})]}),g===!1&&o.jsxs(o.Fragment,{children:[o.jsx(sn,{target:".clone-tool"}),o.jsx(sn,{target:".del-tool"}),o.jsx(sn,{target:".setting-tool"}),o.jsx(sn,{target:".add-section-tool"}),o.jsx(sn,{target:".save-tool"}),o.jsx(sn,{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:ie.togglerClassName,onClick:()=>{c(ge),A()},children:[o.jsx("span",{className:"pi pi-plus"}),o.jsx(tn,{})]})}),((ee=d[ge])==null?void 0:ee.children.length)>1&&o.jsx("span",{className:"del-tool","data-pr-tooltip":"Delete",children:o.jsxs("button",{className:ie.togglerClassName,onClick:()=>{l(ge,Z),A()},children:[o.jsx("span",{className:"pi pi-trash"}),o.jsx(tn,{})]})}),o.jsx("span",{className:"clone-tool","data-pr-tooltip":"Clone",children:o.jsxs("button",{className:ie.togglerClassName,onClick:()=>{u(e,ge,Z),A()},children:[o.jsx("span",{className:"pi pi-clone"}),o.jsx(tn,{})]})}),o.jsx("span",{className:"settings-tool","data-pr-tooltip":"Settings",children:o.jsxs("button",{className:ie.togglerClassName,onClick:()=>E(!0),children:[o.jsx("span",{className:"pi pi-cog"}),o.jsx(tn,{})]})})]})]})]})};return o.jsxs("div",{style:{opacity:L,marginBottom:20},className:v?"draggable row":"",children:[g===!1&&o.jsx(ap,{saveBuilderElementModalData:S,setSaveBuilderElementModalData:_,saveElementModal:x,setSaveElementModal:C}),w===!0&&o.jsx(ip,{renderType:m,visibilty:w,setVisibility:E,section:e,pageIndex:r,sectionIndex:i,emitSocketData:A},"section_settings_"+r+i),g===!1?o.jsxs(ui,{className:"mb-5",header:(O=e==null?void 0:e.heading)==null?void 0:O.english,toggleable:!0,headerTemplate:ie=>U(ie,r,i),children:[o.jsx("p",{children:(q=e==null?void 0:e.subHeadingText)==null?void 0:q[f==null?void 0:f.type]}),o.jsxs("div",{className:"",children:[e.children.map((ie,ge)=>{const Z=`${n}-${ge}`;return o.jsx(P.Fragment,{children:V(ie,Z,r,i,ge)},Z)}),o.jsx(Fr,{isAdvanceView:v,data:{path:`${n}-${e.children.length}`,childrenCount:e.children.length},onDrop:h,className:"horizontalDrag",isLast:!0})]})]}):o.jsx(o.Fragment,{})]})},Fxe=t=>{const{isRenderView:e,isPreview:n}=Qt(),{data:r,path:i,pageIndex:a}=t,s=P.useRef(null),[,l]=ia({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(Oxe,{data:u,section:u,path:d,pageIndex:f,sectionIndex:h,page:r},`section_${f}_${h}`);return o.jsx("div",{style:{overflowX:"auto"},className:`${e?"":"draggable page-css p-3 pb-4"}`,"data-image-src":r==null?void 0:r.bgImage,"data-bg-color":`#${r==null?void 0:r.bgColor}`,children:n?o.jsx(o.Fragment,{}):o.jsx("div",{className:"p-1",children:r.children.map((u,d)=>{const f=`${i}-${d}`;return o.jsx(P.Fragment,{children:c(u,f,a,d)},`section-${d}-${u.uuid}`)})})})},f6=t=>{const{handleSelectCourseItem:e,icon:n,currentItem:r,field:i,fieldIndex:a,title:s}=t,[l,c]=P.useState(!1),{userTrainingSaveData:u}=yr(),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:Fn(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,icon:"pi pi-check",className:"p-button-rounded p-button-primary mr-2 p-button-outlined","aria-label":"Search"}):o.jsx(Ft,{text:!0,icon:"pi pi-dot",className:"p-button-rounded p-button-secondary mr-2 p-button-outlined","aria-label":"Search"}),(i==null?void 0:i.uuid)===(r==null?void 0:r.uuid)?o.jsxs("span",{children:[o.jsx(Ft,{text:!0,icon:n,className:"p-button-rounded p-button-primary mr-2 inline-flex justify-content-center align-items-center w-2rem h-2rem","aria-label":"Search"}),o.jsxs("span",{className:"inline-flex justify-content-center align-items-center h-2rem",style:{color:"#0f8bfd"},children:[a+1," - ",s]})]}):o.jsxs(o.Fragment,{children:[o.jsx("span",{className:"inline-flex justify-content-center align-items-center w-2rem h-2rem border-circle border-1",children:o.jsx("i",{className:n})}),o.jsxs("span",{className:"font-medium text-500 ml-2 hoverSelect",children:[a+1," - ",s]})]})]})}),o.jsxs("div",{className:"flex align-items-center justify-content-between md:justify-content-end mt-3 md:mt-0",children:[o.jsx("div",{className:"text-right mr-3",children:o.jsxs("span",{className:" font-bold",children:[" ",i==null?void 0:i.videoDuration]})}),o.jsx(Ft,{text:!0,onClick:()=>c(!l),icon:"pi pi-eye",className:"p-button-rounded p-button-secondary mr-2 ","aria-label":"Search"})]})]}),l&&o.jsxs("div",{className:"surface-card shadow-2 border-round p-4",children:[o.jsx("div",{className:"flex justify-content-between align-items-center mb-5",children:o.jsx("span",{className:"text-xl text-900 font-medium",children:"Logs"})}),o.jsx("ul",{className:"list-none p-0 m-0",children:f()})]})]},`ul-list-${a}`)},kxe=t=>{var x,C,S,_,I,F;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}=yr(),g=(x=d==null?void 0:d.training)!=null&&x.getAssessmentSelectedQuiz?(C=d==null?void 0:d.training)==null?void 0:C.getAssessmentSelectedQuiz:()=>{},v=M=>{if(f!==null){const L=[...f],V=L.findIndex(U=>(U==null?void 0:U.fieldId)===(M==null?void 0:M.uuid));V>=0&&(L[V]={...L[V],isSeen:!0}),h([...L])}},m=M=>{var L;i(M),a(l),s({autoplay:!1,controls:!0,responsive:!0,fluid:!0,sources:[{src:(L=M==null?void 0:M.media_url)==null?void 0:L.english}]})},A=M=>{var L;v(M),i(M),c((L=M==null?void 0:M.media_url)==null?void 0:L.english),a(l)},w=M=>{v(M),i(M),u(M==null?void 0:M.documents),a(l)},E=M=>{var L,V;(L=M==null?void 0:M.quizSchema)!=null&&L.assessment_id&&(g((V=M==null?void 0:M.quizSchema)==null?void 0:V.assessment_id),a(l),i(M))};switch(e==null?void 0:e.componentType){case"video":return o.jsx(f6,{title:(S=e==null?void 0:e.title)==null?void 0:S.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(f6,{title:(_=e==null?void 0:e.title)==null?void 0:_.english,type:"image",icon:"pi pi-image",handleSelectCourseItem:A,field:e,fieldIndex:n,currentItem:r,userTrainingSaveData:f},`${e==null?void 0:e.uuid}-list`);case"document":return o.jsx(f6,{title:(I=e==null?void 0:e.title)==null?void 0:I.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(f6,{title:(F=e==null?void 0:e.quizSchema)==null?void 0:F.assessment_title,type:"quiz",icon:"pi pi-image",handleSelectCourseItem:E,field:e,fieldIndex:n,currentItem:r,userTrainingSaveData:f},`${e==null?void 0:e.uuid}-list`);default:return o.jsx(o.Fragment,{})}},Pxe=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(kxe,{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}`))})})},Mxe=t=>{var v,m,A,w,E,x,C,S,_,I;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}=Qt(),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:F=>{e(M=>{var L;return(L=n==null?void 0:n.answersText)==null?void 0:L[r==null?void 0:r.type]}),i(F,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(aa,{inputId:s,value:n.answersText,checked:((E=n.answersText)==null?void 0:E[r==null?void 0:r.type])===f,onChange:F=>{u({isCorrect:null,text:null}),e(M=>{var L;return(L=F.target.value)==null?void 0:L[r==null?void 0:r.type]}),i(F,s,l,n,c),a(!0)}}),((x=n.answersTextImage)==null?void 0:x[r==null?void 0:r.type])&&((C=n.answersTextImage)==null?void 0:C[r==null?void 0:r.type])!==""&&o.jsx(g,{mediaId:(S=n.answersTextImage)==null?void 0:S[r==null?void 0:r.type],className:"mx-3",alt:"questionImage",style:{width:"50px",height:"50px",borderRadius:50}}),o.jsx("label",{htmlFor:s,children:(_=n.answersText)==null?void 0:_[r==null?void 0:r.type]}),o.jsx("span",{style:{position:"absolute",right:10},children:(d==null?void 0:d.text)===((I=n.answersText)==null?void 0:I[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)},Lxe=t=>{var g,v,m,A,w,E,x;const{media:e}=Qt(),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 P.useEffect(()=>(Array.isArray(f)||r([]),()=>{}),[]),o.jsx(o.Fragment,{children:Array.isArray(f)&&o.jsxs("div",{onClick:()=>{var C;h(!(f!=null&&f.some(S=>{var _;return S===((_=i.answersText)==null?void 0:_[a==null?void 0:a.type])})),(C=i==null?void 0:i.answersText)==null?void 0:C[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(C=>{var S;return(C==null?void 0:C.text)===((S=i.answersText)==null?void 0:S[a==null?void 0:a.type])}))?d!=null&&d.some(C=>{var S;return(C==null?void 0:C.text)===((S=i.answersText)==null?void 0:S[a==null?void 0:a.type])&&(C==null?void 0:C.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(Br,{inputId:l,value:i.answersText,checked:f==null?void 0:f.some(C=>{var S;return C===((S=i.answersText)==null?void 0:S[a==null?void 0:a.type])}),onChange:C=>{var S;h(C.checked,(S=C.target.value)==null?void 0:S[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:(E=i.answersTextImage)==null?void 0:E[a==null?void 0:a.type],className:"mx-3",alt:"questionImage",style:{width:"50px",height:"50px",borderRadius:50}}),o.jsx("label",{htmlFor:l,children:(x=i.answersText)==null?void 0:x[a==null?void 0:a.type]}),o.jsx("span",{style:{position:"absolute",right:10},children:d!=null&&d.length&&(d!=null&&d.some(C=>{var S;return(C==null?void 0:C.text)===((S=i.answersText)==null?void 0:S[a==null?void 0:a.type])}))?d!=null&&d.some(C=>{var S;return(C==null?void 0:C.text)===((S=i.answersText)==null?void 0:S[a==null?void 0:a.type])&&(C==null?void 0:C.isCorrect)===!0})?o.jsx("span",{style:{color:"green"},children:" Correct Answer"}):o.jsx("span",{style:{color:"red"},children:" Wrong Answer"}):""})]},l)})};function bj(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Bxe(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 yj(t,e,n){return e&&Bxe(t.prototype,e),t}function Aj(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&&zS(t,e)}function h6(t){return h6=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},h6(t)}function zS(t,e){return zS=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},zS(t,e)}function Vxe(){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 Uxe(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function qxe(t,e){return e&&(typeof e=="object"||typeof e=="function")?e:Uxe(t)}function wj(t){var e=Vxe();return function(){var r=h6(t),i;if(e){var a=h6(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return qxe(this,i)}}function $xe(t){return jxe(t)||zxe(t)||Hxe(t)||Yxe()}function jxe(t){if(Array.isArray(t))return HS(t)}function zxe(t){if(typeof Symbol<"u"&&Symbol.iterator in Object(t))return Array.from(t)}function Hxe(t,e){if(t){if(typeof t=="string")return HS(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 HS(t,e)}}function HS(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 Yxe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
4288
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function tm(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:($xe(Array(e)).map(function(){return"0"}).join("")+s).slice(e*-1);return"".concat(i).concat(l).concat(a)}var Sj={daysInHours:!1,zeroPadTime:2};function Kxe(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 Xxe(t,e){var n=t.days,r=t.hours,i=t.minutes,a=t.seconds,s=Object.assign(Object.assign({},Sj),e),l=s.daysInHours,c=s.zeroPadTime,u=s.zeroPadDays,d=u===void 0?c:u,f=Math.min(2,c),h=l?tm(r+n*24,c):tm(r,f);return{days:l?"":tm(n,d),hours:h,minutes:tm(i,f),seconds:tm(a,f)}}var xj=function(t){Aj(n,t);var e=wj(n);function n(){var r;return bj(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 yj(n,[{key:"componentDidMount",value:function(){this.startCountdown()}},{key:"componentWillUnmount",value:function(){clearInterval(this.interval)}},{key:"render",value:function(){return this.props.children?P.cloneElement(this.props.children,{count:this.state.count}):null}}]),n}(P.Component);xj.propTypes={count:ua.number,children:ua.element,onComplete:ua.func};var nm=function(t){Aj(n,t);var e=wj(n);function n(r){var i;if(bj(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 yj(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 Kxe(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:Xxe(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 P.createElement(xj,{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 P.cloneElement(f,{countdown:g});var v=g.formatted,m=v.days,A=v.hours,w=v.minutes,E=v.seconds;return P.createElement("span",{className:u},g.total<0?"-":"",m,m?":":"",A,":",w,":",E)}}]),n}(P.Component);nm.defaultProps=Object.assign(Object.assign({},Sj),{controlled:!1,intervalDelay:1e3,precision:0,autoStart:!0}),nm.propTypes={date:ua.oneOfType([ua.instanceOf(Date),ua.string,ua.number]),daysInHours:ua.bool,zeroPadTime:ua.number,zeroPadDays:ua.number,controlled:ua.bool,intervalDelay:ua.number,precision:ua.number,autoStart:ua.bool,overtime:ua.bool,className:ua.string,children:ua.element,renderer:ua.func,now:ua.func,onMount:ua.func,onStart:ua.func,onPause:ua.func,onStop:ua.func,onTick:ua.func,onComplete:ua.func};const Rxe=({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(nm,{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})})},Gxe=P.memo(Rxe),Wxe=t=>{var d,f,h,g;const{assessmentData:e,onNextQuestion:n,currentQuestionIndex:r}=t,[i,a]=P.useState(Date.now()),[s,l]=P.useState(!1),c=P.useCallback(()=>{a(Date.now()),l(!1)},[r]);P.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(nm,{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)})},Qxe=()=>{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}},Jxe="1",Cj=t=>{var ve,me,Se,De,j,oe,pe,ue;const e=le=>{const[se,Oe]=P.useState(le),Ne=P.useRef(se);return P.useEffect(()=>{Ne.current=se},[se]),[se,Ne,Oe]},{endQuiz:n,AddUserAssessmentAnswer:r,assessmentData:i,taskData:a}=yr(),[s,l]=P.useState(new Date),{session_id:c,quizData:u,saveProgress:d,renderIn:f,onOpenQuiz:h,setDisplay:g,setAssessmentModal:v=()=>{},saveNewQuizData:m}=t,{quizStartAlert:A}=Qxe(),{userSelectedLanguage:w}=on(),[E,,x]=e(0),{media:C}=Qt(),S=(ve=C==null?void 0:C.image)!=null&&ve.MediaImage?(me=C==null?void 0:C.image)==null?void 0:me.MediaImage:o.jsx(o.Fragment,{}),[_,I,F]=e(null),[M,L]=P.useState(!1),[V,,U]=e([]),[O,q]=P.useState(!1),[ie,ge]=P.useState(!1),[Z,Q]=P.useState(0),[ce,K]=P.useState(0),[he,ee]=P.useState(0),[te,Y]=P.useState(!1),[R,fe]=P.useState({isCorrect:null,text:null});window.onbeforeunload=function(){return!1},P.useEffect(()=>{O||q(!0)},[V,M,O]),P.useEffect(()=>{u!==null&&(A(),be())},[]);const be=()=>{K(u.quizConfiguration.quizPassMark)},Te=P.useCallback((le,se,Oe,Ne,Ke)=>{const ut=[...V];if((Ke==null?void 0:Ke.answerInputType)!=="checkbox"){const pt={uuid:Ke==null?void 0:Ke.uuid,question:Ke==null?void 0:Ke.questionText,isCorrect:Ne.isCorrect,selectedAnswer:Ne.answersText,viewed:!0},ft=V.findIndex(kt=>(kt==null?void 0:kt.uuid)===Ke.uuid);ft>=0?(ut[ft]={...ut[ft],...pt},U(ut)):U([...V,pt])}},[_]),ye=le=>{var se;if(E!==0){const Oe=[...V],Ne=E-1;F((se=Oe[Ne])==null?void 0:se.selectedAnswer[w==null?void 0:w.type]),L(!0),x(Ne),Ae(0)}},Ae=le=>{for(const se of V)if(se.questionIndex===E+le){F(se.selectedAnswerEnglish);break}},ne=(le,se,Oe,Ne)=>{var pt;const Ke=[..._];if(le)Ke.push(se);else{const ft=Ke.findIndex(kt=>kt===se);ft>=0&&Ke.splice(ft,1)}F(Ke);const ut=[...V];if((Ne==null?void 0:Ne.answerInputType)==="checkbox"){let ft=!1;for(const[,Vt]of(Ne==null?void 0:Ne.answerOptions.entries())||[])if(Vt.isCorrect===!0)if(It.includes(Ke,(pt=Vt==null?void 0:Vt.answersText)==null?void 0:pt[w==null?void 0:w.type]))ft=!0;else{ft=!1;break}const kt={uuid:Ne==null?void 0:Ne.uuid,question:Ne==null?void 0:Ne.questionText,isCorrect:ft,selectedAnswer:Oe.answersText,viewed:!0},Sn=V.findIndex(Vt=>(Vt==null?void 0:Vt.uuid)===Ne.uuid);Sn>=0?(ut[Sn]={...ut[Sn],...kt},U(ut)):U([...V,kt])}},$=P.useCallback(()=>{var ut,pt,ft,kt,Sn,Vt,Nt,$e,yt,qt,dn,mn;const le=I.current,se=It.findIndex((ut=u==null?void 0:u.quizElements[E])==null?void 0:ut.answerOptions,function(En){return En.isCorrect===!0}),Oe=u==null?void 0:u.quizElements[E],Ne=(ft=(pt=Oe==null?void 0:Oe.answerOptions[se])==null?void 0:pt.answersText)!=null&&ft[w==null?void 0:w.type]?(Sn=(kt=Oe==null?void 0:Oe.answerOptions[se])==null?void 0:kt.answersText)==null?void 0:Sn[w==null?void 0:w.type]:"",Ke=(Vt=V[E])!=null&&Vt.isCorrect?1:0;if(u!=null&&u.quizElements&&E+1!==(u==null?void 0:u.quizElements.length)){const En={assessment_user_attempt_id:($e=i==null?void 0:i.assesment_user_attempts[((Nt=i==null?void 0:i.assesment_user_attempts)==null?void 0:Nt.length)-1])==null?void 0:$e.assessment_user_attempt_id,session_id:c,assessment_id:1,question:(yt=Oe.questionText)==null?void 0:yt[w==null?void 0:w.type],question_uid:Oe==null?void 0:Oe.uuid,start_time:s,finish_time:new Date,correct_answer:Ne,selected_answer:Array.isArray(le)?le.toString():le,is_correct_answer:Ke};r(En),F(null),x(E+1),l(new Date),Ae(2)}else if((u==null?void 0:u.quizElements.length)===E+1){const En={assessment_user_attempt_id:(dn=i==null?void 0:i.assesment_user_attempts[((qt=i==null?void 0:i.assesment_user_attempts)==null?void 0:qt.length)-1])==null?void 0:dn.assessment_user_attempt_id,session_id:c,assessment_id:1,question_uid:Oe==null?void 0:Oe.uuid,question:(mn=Oe.questionText)==null?void 0:mn[w==null?void 0:w.type],start_time:s,finish_time:new Date,correct_answer:Ne,selected_answer:Array.isArray(le)?le.toString():le,is_correct_answer:Ke};r(En),re(),de()}L(!1)},[E,V]),re=()=>{ge(!0)},W=()=>{Ee?(console.log("Restart"),g(B3),m(),q(!0),A(),be(),x(0),F(null),L(!1),U([]),ge(!1),Q(0),ee(0),Y(!1),fe({isCorrect:null,text:null})):(g(n2),v(!1))},de=()=>{var Ke,ut;let le=0,se=0,Oe=!1;for(const pt of V)pt!=null&&pt.isCorrect&&le++;Q(le),se=le/((Ke=u==null?void 0:u.quizElements)==null?void 0:Ke.length)*100,se=Math.round(se),ee(se),Oe=se>=ce,Y(Oe);const Ne={...u,...i,result:se,status:Oe,selectedAnswers:V};d(Ne),n({session_id:c,is_pass:Oe?1:0,score:le,out_of:(ut=u==null?void 0:u.quizElements)==null?void 0:ut.length,finish_time:new Date,status:1})},Ie=()=>{var le,se,Oe,Ne,Ke,ut,pt;if(((le=u==null?void 0:u.quizElements[E])==null?void 0:le.answerInputType)==="radio"){const ft=It.findIndex((se=u==null?void 0:u.quizElements[E])==null?void 0:se.answerOptions,function(kt){return kt.isCorrect===!0});_===((Ke=(Ne=(Oe=u==null?void 0:u.quizElements[E])==null?void 0:Oe.answerOptions[ft])==null?void 0:Ne.answersText)==null?void 0:Ke[w==null?void 0:w.type])?fe({isCorrect:!0,text:_}):fe({isCorrect:!1,text:_})}if(((ut=u==null?void 0:u.quizElements[E])==null?void 0:ut.answerInputType)==="checkbox"){const ft=(pt=u==null?void 0:u.quizElements[E])==null?void 0:pt.answerOptions.filter(kt=>kt.isCorrect===!0);if(_!=null&&_.length){const kt=_==null?void 0:_.map(Sn=>({isCorrect:ft==null?void 0:ft.some(Vt=>{var Nt;return((Nt=Vt==null?void 0:Vt.answersText)==null?void 0:Nt[w==null?void 0:w.type])===Sn}),text:Sn}));fe(kt)}}},Ee=(i==null?void 0:i.noOfAttempts)-((Se=i==null?void 0:i.assesment_user_attempts)==null?void 0:Se.length)>0&&!te;return o.jsx(o.Fragment,{children:u!==null&&o.jsxs("div",{children:[ie&&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"," ",(De=a==null?void 0:a.assessment)==null?void 0:De.assessment_title]}),o.jsxs("div",{children:[o.jsxs("p",{children:["You answered ",Z," out of"," ",(j=u==null?void 0:u.quizElements)==null?void 0:j.length," questions"]}),o.jsxs("p",{children:["Your assessment result: ",he,"%"]}),o.jsxs("p",{children:["Score Needed To Pass: ",ce,"%"]}),o.jsx("br",{}),o.jsxs("p",{children:["Status:"," ",te?o.jsx($c,{severity:"success",value:"Passed"}):o.jsx($c,{severity:"danger",value:"Failed"})]}),te&&o.jsx("p",{children:"Congratulations you have passed!"}),o.jsx(o.Fragment,{children:ie&&o.jsx("div",{className:"text-center my-5",children:o.jsx(Ft,{label:Ee?"Restart":"End",onClick:()=>W()})})})]})]})})}),ie&&((oe=i==null?void 0:i.assessment_type)==null?void 0:oe.key)===Jxe&&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:V==null?void 0:V.map((le,se)=>{var Oe,Ne;return o.jsxs("div",{className:"card",children:[o.jsxs("span",{className:"text-strong",children:[o.jsx("b",{children:"Question:"})," ",o.jsx("br",{}),(Oe=le==null?void 0:le.question)==null?void 0:Oe[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",{}),(Ne=le==null?void 0:le.selectedAnswer)==null?void 0:Ne[w==null?void 0:w.type]]}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("p",{children:"In Correct:"}),le!=null&&le.isCorrect?o.jsxs(o.Fragment,{children:[o.jsx(X4,{value:"",severity:"success",className:"mr-2"})," ","Yes"]}):o.jsxs(o.Fragment,{children:[o.jsx(X4,{value:"",severity:"danger",className:"mr-2"})," ","No"]})]},se)})})})]}),f!==qD?o.jsx(o.Fragment,{children:ie&&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(n2)}})})}):o.jsx(o.Fragment,{}),O&&!ie&&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(Gxe,{assessmentData:i,setDisplaySummary:ge}),o.jsx(Wxe,{currentQuestionIndex:E,assessmentData:i,onNextQuestion:$})]})}),o.jsxs("h2",{className:"text-center pb-6",children:[u==null?void 0:u.name," "]}),(pe=u==null?void 0:u.quizElements)==null?void 0:pe.map((le,se)=>{var Oe,Ne,Ke,ut,pt;return o.jsxs("div",{className:"quiz-card-box",children:[E===se&&((Oe=le==null?void 0:le.questionTextImage)==null?void 0:Oe[w==null?void 0:w.type])&&((Ne=le==null?void 0:le.questionTextImage)==null?void 0:Ne[w==null?void 0:w.type])!==""&&o.jsx("div",{className:"text-center assessment_image_container",children:o.jsx(S,{mediaId:(Ke=le==null?void 0:le.questionTextImage)==null?void 0:Ke[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:E===se&&((ut=le==null?void 0:le.questionText)==null?void 0:ut[w==null?void 0:w.type])}),E===se&&((pt=le==null?void 0:le.answerOptions)==null?void 0:pt.map((ft,kt)=>(le==null?void 0:le.answerInputType)==="checkbox"?o.jsx(P.Fragment,{children:o.jsx(Lxe,{onChangeCheckbox:ne,setSelectedOption:F,quiz:ft,userSelectedLanguage:w,onSetAnswer:Te,setIsOptionSelected:L,index:kt,eleIndex:se,ele:le,setCorrectAnswerCheck:fe,correctAnswerCheck:R,selectedOption:_})},`checkbox-question-${kt}`):o.jsx(P.Fragment,{children:o.jsx(Mxe,{setSelectedOption:F,quiz:ft,userSelectedLanguage:w,onSetAnswer:Te,setIsOptionSelected:L,index:kt,eleIndex:se,ele:le,setCorrectAnswerCheck:fe,correctAnswerCheck:R,selectedOption:_})},`radio-question-${kt}`)))]},se)})]})}),o.jsxs("div",{className:"text-center my-5",children:[o.jsxs("div",{className:"mb-1",children:["Question :"," ",E+1+"/"+(u==null?void 0:u.quizElements.length)]}),o.jsx("br",{}),E>0&&o.jsx(Ft,{size:"large",className:"mx-2",label:"Previous",onClick:le=>ye()}),((i==null?void 0:i.skippable)===!0||M===!0)&&o.jsx(Ft,{size:"large",label:(u==null?void 0:u.quizElements.length)===E+1?"Finish":M===!0?"Next":"Skip",onClick:$}),M===!0&&((ue=i==null?void 0:i.assessment_type)==null?void 0:ue.key)==="1"&&o.jsx(Ft,{size:"large",className:"ml-2 p-button-info",label:"Check Answer",onClick:()=>Ie()})]})]})]})})},Zxe=t=>{const{getAssessmentByIdFromStore:e,quizSchema:n,setQuizSchema:r,renderIn:i,updateTrainingProgress:a,currentItem:s}=t,{userTrainingSaveData:l}=yr();P.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=Um.shuffle(h).map((w,E)=>({...w}))),f!=null&&f.randomiseAnswers&&(h=h.map((w,E)=>({...w,answerOptions:Um.shuffle(w==null?void 0:w.answerOptions)}))),f!=null&&f.enableNoOfAssessmentQuestions&&(h=h.slice(0,parseInt(f==null?void 0:f.noOfAssessmentQuestions))),r({assessment_id:1,name:e==null?void 0:e.assessment_title,label:"assessment_title",quizConfiguration:d==null?void 0:d.quizConfiguration,quizElements:h})},u=d=>{if((d==null?void 0:d.status)===!0){if(l!==null){const h=l.findIndex(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(Cj,{renderIn:i,quizData:n,taskSchema:e==null?void 0:e.form_template_schema,saveProgress:d=>{u(d)}})})},eCe=t=>{var m,A;const{currentItem:e,videoJsOptions:n}=t,r=P.useRef(null),{userTrainingSaveData:i,updateUserTraining:a,taskRegisterData:s}=yr(),{media:l}=Qt(),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",()=>{_t.log("player is waiting")}),w.on("dispose",()=>{_t.log("player will dispose")})},d=w=>{if(i!==null){const E=[...i],x=E==null?void 0:E.findIndex(C=>(C==null?void 0:C.fieldId)===(e==null?void 0:e.uuid));x>=0&&(E[x].seenTime=w==null?void 0:w.target.currentTime)}},f=w=>{const E=[...i],x=E==null?void 0:E.findIndex(C=>(C==null?void 0:C.fieldId)===(w==null?void 0:w.uuid));x>=0&&(i[x]={...i[x],isSeen:!0},a(E),h("Ended"))},h=w=>{const E=r.current,x=i!==null?i==null?void 0:i.findIndex(C=>(C==null?void 0:C.fieldId)===(e==null?void 0:e.uuid)):-1;x>=0&&i[x].logs.push({action:w,videoTime:i[x].seenTime,totalTime:E.duration,timeState:new Date})},g=w=>{const{mediaId:E}=w,[x,C]=P.useState(!1);return P.useEffect(()=>{if(!x&&i!==null){const S=i.findIndex(_=>(_==null?void 0:_.fieldId)===(e==null?void 0:e.uuid));if(S>=0){C(!0);const _=r.current;_.currentTime=i[S].seenTime}C(!0)}return()=>{}},[i]),o.jsx(c,{mediaId:E,ref:r,className:"my-video",style:{borderRadius:"10px"},onPlay:()=>h("Play"),onPause:()=>h("Pause"),onEnded:()=>f(e),onTimeUpdate:d,controls:!0})},v=P.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(rV,{options:n,onReady:u,currentItem:e},e==null?void 0:e.uuid)})})},p6=t=>{var _,I,F,M,L,V;const{sections:e,showInfoPanel:n,updateTrainingProgress:r}=t,{taskOptions:i}=yr(),[a]=P.useState(!1),[,s]=P.useState(hy),[l,c]=P.useState([]),[u,d]=P.useState(null),{userSelectedLanguage:f}=on(),[h,g]=P.useState(null),[v,m]=P.useState(null),A=(_=i==null?void 0:i.training)!=null&&_.getAssessmentByIdFromStore?(I=i==null?void 0:i.training)==null?void 0:I.getAssessmentByIdFromStore:()=>{},w=(F=i==null?void 0:i.training)!=null&&F.TrainingOverView?(M=i==null?void 0:i.training)==null?void 0:M.TrainingOverView:()=>o.jsx(o.Fragment,{}),[E,x]=P.useState({autoplay:!1,controls:!0,responsive:!0,fluid:!0,sources:[{src:"http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4"}]});P.useEffect(()=>{a||C()},[a]);const C=()=>{var U,O,q,ie,ge,Z,Q,ce,K,he,ee,te,Y,R,fe,be,Te,ye,Ae,ne,$;switch(g((q=(O=(U=e[0])==null?void 0:U.children[0])==null?void 0:O.children[0])==null?void 0:q.children[0]),m(e[0]),(Q=(Z=(ge=(ie=e[0])==null?void 0:ie.children[0])==null?void 0:ge.children[0])==null?void 0:Z.children[0])==null?void 0:Q.componentType){case"video":x({autoplay:!1,controls:!0,responsive:!0,fluid:!0,sources:[{src:(te=(ee=(he=(K=(ce=e[0])==null?void 0:ce.children[0])==null?void 0:K.children[0])==null?void 0:he.children[0])==null?void 0:ee.media_url)==null?void 0:te.english}]});break;case"image":s((Te=(be=(fe=(R=(Y=e[0])==null?void 0:Y.children[0])==null?void 0:R.children[0])==null?void 0:fe.children[0])==null?void 0:be.media_url)==null?void 0:Te.english);break;case"document":c(($=(ne=(Ae=(ye=e[0])==null?void 0:ye.children[0])==null?void 0:Ae.children[0])==null?void 0:ne.children[0])==null?void 0:$.documents);break}},S=U=>{switch(U==null?void 0:U.componentType){case"video":return o.jsx("div",{children:o.jsx(eCe,{videoJsOptions:E,currentItem:U},U==null?void 0:U.uuid)});case"image":return o.jsx(ik,{field:U,isPreview:!0});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((O,q)=>o.jsx("li",{children:o.jsx("a",{href:O==null?void 0:O.url,children:O==null?void 0:O.url})},`document-item-${q}`))})]});case"quiz":return A!=null&&A.form_template_schema?o.jsx(Zxe,{renderIn:qD,getAssessmentByIdFromStore:A,quizSchema:u,setQuizSchema:d,updateTrainingProgress:r,currentItem:U}):o.jsx("div",{});case"slides":return o.jsx("div",{children:"Show slides"});case"html":return o.jsx("div",{children:"Show custom HTML Here"});default:return o.jsx("div",{})}};return o.jsxs("div",{className:"grid",children:[o.jsxs("div",{className:"col-8 scroll-height-100",children:[o.jsxs("h3",{children:[(L=v==null?void 0:v.heading)==null?void 0:L[f==null?void 0:f.type]," -"," ",(V=h==null?void 0:h.title)==null?void 0:V[f==null?void 0:f.type]," "]}),S(h),n&&o.jsx(w,{})]}),o.jsx("div",{className:"col-4 scroll-height-100",children:e.map((U,O)=>{var q,ie;return o.jsxs(ui,{className:"mb-5",header:(q=U==null?void 0:U.heading)==null?void 0:q.english,toggleable:!0,children:[o.jsx("p",{children:(ie=U==null?void 0:U.subHeadingText)==null?void 0:ie[f==null?void 0:f.type]}),U.children.map((ge,Z)=>{const Q=`${Z}`;return o.jsx("div",{children:ge.children.map((ce,K)=>{const he=`${Z}-${Q}`;return o.jsx(Pxe,{setCurrentSection:m,section:U,setCurrentItem:g,currentItem:h,path:he,fields:ce.children,setvideoJsOptions:x,setImage:s,setDocuments:c,setQuizSchema:d,updateTrainingProgress:r},`training-sidebar-${K}`)})},`training-sidebar-container-${Z}`)})]},`train-sidebar-panel-${O}`)})})]})};p6.defaultProps={showInfoPanel:!0,sections:{},updateTrainingProgress:()=>{}},p6.propTypes={showInfoPanel:Cn.bool,sections:Cn.array,updateTrainingProgress:Cn.func};const tCe=()=>{var r;const{formBuilderFormLayout:t}=on(),{isPreview:e}=Qt(),n=(i,a,s)=>o.jsx(Fxe,{data:i,path:a,pageIndex:s},`page-${i.uuid}`);return e?o.jsx(p6,{sections:((r=t[0])==null?void 0:r.children)||[],showInfoPanel:!1,updateTrainingProgress:()=>{}}):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}`)})})})},nCe=t=>{var _,I,F,M,L;const{userSelectedLanguage:e,formBuilderConfigurationType:n,builderTemplateName:r,formBuilderFormSchema:i}=on(),a=[{label:{english:"List main maintenance safety tips? "},componentType:"question",questionText:{french:"Quels sont les principaux conseils de sécurité pour la maintenance?? ",english:"List main maintenance safety tips? "},answerOptions:[],isHidden:!1,uuid:"rtest",options:[],underLined:!1,isAllowMultipleAnswer:!1,resizableColumns:!1,reorderableColumns:!1,timeLimit:0,score:0,subject_id:0,course_category_id:0,TextEditorProps:!1}],{questions:s}=t,[l,c]=P.useState(),[u,d]=P.useState([]),{media:f}=Qt(),h=(_=f==null?void 0:f.image)!=null&&_.MediaImage?(I=f==null?void 0:f.image)==null?void 0:I.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]=P.useState(0),[A,w]=P.useState(!1);function E(V,U){return(V==null?void 0:V.length)<=U?V:(V==null?void 0:V.slice(0,U))+"..."}P.useEffect(()=>{w(!0)},[]);const x=()=>{v!==0&&m(v-1)},C=()=>{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},S=(V,U)=>{let O=[...u];V.checked?O.push(U):O=O.filter(q=>(q==null?void 0:q[e==null?void 0:e.type])!==(U==null?void 0:U[e==null?void 0:e.type])),d(O)};return o.jsxs("div",{className:"scroll-height-200 mb-2",children:[A&&o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"grid",children:o.jsxs("div",{className:"col-12",children:[o.jsxs("h3",{children:[g==null?void 0:g.name," "]}),(F=g==null?void 0:g.quizElements)==null?void 0:F.map((V,U)=>{var O,q,ie,ge,Z,Q,ce,K,he;return(V==null?void 0:V.answerInputType)==="radio"?o.jsxs("div",{className:v===U?"card":" flex align-items-center p-field-radiobutton",children:[((O=V==null?void 0:V.questionTextImage)==null?void 0:O[e==null?void 0:e.type])&&((q=V==null?void 0:V.questionTextImage)==null?void 0:q[e==null?void 0:e.type])!==""&&o.jsx("div",{className:"text-center assessment_image_container",children:o.jsx(h,{mediaId:(ie=V==null?void 0:V.questionTextImage)==null?void 0:ie[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===U&&((ge=V==null?void 0:V.questionText)==null?void 0:ge[e==null?void 0:e.type])}),v===U&&((Z=V==null?void 0:V.answerOptions)==null?void 0:Z.map((ee,te)=>{var Y,R,fe,be;return o.jsxs("div",{className:"field-radiobutton",children:[o.jsx(aa,{inputId:`${te}-preview`,value:ee==null?void 0:ee.answersText,checked:l===te,onChange:()=>{c(te)}}),((Y=ee.answersTextImage)==null?void 0:Y[e==null?void 0:e.type])&&((R=ee.answersTextImage)==null?void 0:R[e==null?void 0:e.type])!==""&&o.jsx(h,{mediaId:(fe=ee.answersTextImage)==null?void 0:fe[e==null?void 0:e.type],className:"mx-3",alt:"questionImage",style:{width:"50px",height:"50px",borderRadius:50}}),o.jsx("label",{htmlFor:`${te}-preview`,children:(be=ee.answersText)==null?void 0:be[e==null?void 0:e.type]})]},te)}))]},U):(V==null?void 0:V.answerInputType)==="checkbox"?o.jsxs("div",{className:v===U?"card":" flex align-items-center p-field-radiobutton",children:[o.jsx("h3",{className:"mb-5",children:v===U&&((Q=V==null?void 0:V.questionText)==null?void 0:Q[e==null?void 0:e.type])}),v===U&&((ce=V==null?void 0:V.answerOptions)==null?void 0:ce.map((ee,te)=>{var Y,R,fe,be;return o.jsxs("div",{className:"field-radiobutton",children:[o.jsx(Br,{inputId:te,value:ee==null?void 0:ee.answersText,onChange:Te=>{S(Te,ee==null?void 0:ee.answersText)},checked:u.some(Te=>{var ye;return(Te==null?void 0:Te[e==null?void 0:e.type])===((ye=ee==null?void 0:ee.answersText)==null?void 0:ye[e==null?void 0:e.type])})}),((Y=ee.answersTextImage)==null?void 0:Y[e==null?void 0:e.type])&&((R=ee.answersTextImage)==null?void 0:R[e==null?void 0:e.type])!==""&&o.jsx(h,{mediaId:(fe=ee.answersTextImage)==null?void 0:fe[e==null?void 0:e.type],className:"mx-3",alt:"questionImage",style:{width:"50px",height:"50px",borderRadius:50}}),o.jsx("label",{htmlFor:te,children:(be=ee.answersText)==null?void 0:be[e==null?void 0:e.type]})]},te)}))]},U):o.jsxs("div",{className:v===U?"card":"",children:[o.jsx("h3",{className:"mb-5",children:v===U&&((K=V==null?void 0:V.questionText)==null?void 0:K[e==null?void 0:e.type])}),v===U&&((he=V==null?void 0:V.answerOptions)==null?void 0:he.map((ee,te)=>{var Y,R,fe,be;return o.jsxs("div",{className:"field-radiobutton",children:[o.jsx(aa,{inputId:te,value:ee==null?void 0:ee.answersText,onChange:()=>{}}),((Y=ee.answersTextImage)==null?void 0:Y[e==null?void 0:e.type])&&((R=ee.answersTextImage)==null?void 0:R[e==null?void 0:e.type])!==""&&o.jsx(h,{mediaId:(fe=ee.answersTextImage)==null?void 0:fe[e==null?void 0:e.type],className:"mx-3",alt:"questionImage",style:{width:"50px",height:"50px",borderRadius:50}}),o.jsx("label",{htmlFor:te,children:(be=ee.answersText)==null?void 0:be[e==null?void 0:e.type]})]},te)}))]},U)})]})}),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:()=>x()}),o.jsx(Ft,{text:!0,label:(g==null?void 0:g.quizElements.length)===v+1?"Finish":"Next",onClick:()=>C()})]})]}),o.jsxs("div",{className:"surface-card p-4 shadow-2 border-round",children:[o.jsx("div",{className:"font-medium text-3xl text-900 mb-3",children:"Summary"}),o.jsx("div",{className:"text-500 mb-5",children:`${n==null?void 0:n.name} - ${r}`}),o.jsxs("ul",{className:"list-none p-0 m-0 border-top-1 surface-border",children:[o.jsxs("li",{className:"flex align-items-center py-3 px-2 flex-wrap surface-ground",children:[o.jsx("div",{className:"text-500 w-full md:w-3 font-medium",children:"Total Questions:"}),o.jsx("div",{className:"text-900 w-full md:w-9",children:(M=g==null?void 0:g.quizElements)==null?void 0:M.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($c,{className:"mr-2",severity:"success",value:"True"}):o.jsx($c,{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:(L=g==null?void 0:g.quizElements)==null?void 0:L.map((V,U)=>{var O;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:E(((O=V==null?void 0:V.questionText)==null?void 0:O[e==null?void 0:e.type])||"",30)})})},`preview-question-${U}`)})})})]})]})]})]})},rCe=t=>{var C;const{data:e,path:n,pageIndex:r,sectionIndex:i,rowIndex:a,columnIndex:s,section:l,row:c,page:u}=t,d=P.useRef(null),{handleDrop:f}=on(),{isRenderView:h,isAdvanceView:g,isPreview:v}=Qt(),[{isDragging:m},A]=ia({type:ws,item:{type:ws,uuid:e==null?void 0:e.uuid,children:e.children,path:n},collect:S=>({isDragging:S.isDragging()})}),E={position:"relative",opacity:m&&!h?.25:1};A(d);const x=(S,_,I,F,M,L,V)=>o.jsx(tu,{page:u,type:"field",row:c,section:l,field:S,data:S,path:_,pageIndex:I,sectionIndex:F,rowIndex:M,columnIndex:L,fieldIndex:V},`component-${n}-${S==null?void 0:S.uuid}`);return o.jsx("div",{style:g?E:{},className:h?"form-builder-column container-column":"draggable form-builder-column container-column",children:v===!1?o.jsxs("div",{children:[e.children.length>0&&((C=e==null?void 0:e.children)==null?void 0:C.map((S,_)=>{const I=`${n}-${_}`;return o.jsxs(P.Fragment,{children:[o.jsx(Fr,{isAdvanceView:g,fieldDropArea:!0,data:{path:I,childrenCount:e.children.length,droppedField:e},onDrop:f}),x(S,I,r,i,a,s,_)]},I)})),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(nCe,{questions:e.children}):o.jsx("p",{className:"text-center",children:"No items to show"})})})},iCe={},aCe=t=>{var v,m,A,w;const{data:e,path:n,pageIndex:r,sectionIndex:i,rowIndex:a,section:s,page:l}=t,c=P.useRef(null),{isRenderView:u}=Qt(),[{isDragging:d},f]=ia({type:Oo,item:{type:Oo,uuid:e.uuid,children:e.children,path:n,data:e},collect:E=>({isDragging:E.isDragging()})}),h=d?.25:1;f(c);const g=(E,x,C,S,_,I)=>o.jsx(rCe,{page:l,row:e,section:s,data:E,path:x,pageIndex:C,sectionIndex:S,rowIndex:_,columnIndex:I},`column-${n}-${E.uuid}`);return o.jsx("div",{style:{...iCe,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((E,x)=>{const C=`${n}-${x}`;return o.jsx(P.Fragment,{children:g(E,C,r,i,a,x)},C)})})})},sCe=t=>{const{data:e,path:n,pageIndex:r,sectionIndex:i,section:a,page:s}=t,{renderType:l,emitSocketData:c,isAdvanceView:u,isPreview:d}=Qt(),[f,h]=P.useState(!1),[g,v]=P.useState(!1),[m,A]=P.useState(null),w=P.useRef(null),[{isDragging:E},x]=ia({type:na,item:{type:na,uuid:e.uuid,children:e.children,path:n},collect:_=>({isDragging:_.isDragging()})}),C=E?.25:1;x(w);const S=(_,I,F,M,L)=>o.jsx(aCe,{page:s,section:a,data:_,path:I,pageIndex:F,sectionIndex:M,rowIndex:L},`row-${n}-${_.uuid}`);return o.jsxs("div",{style:{opacity:C,marginBottom:20},className:u?"draggable row":"",children:[d===!1&&o.jsx(ap,{saveBuilderElementModalData:m,setSaveBuilderElementModalData:A,saveElementModal:g,setSaveElementModal:v}),f===!0&&o.jsx(ip,{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((_,I)=>{const F=`${n}-${I}`;return o.jsx(P.Fragment,{children:S(_,F,r,i,I)},F)})})]})},oCe=t=>{const{data:e,path:n,pageIndex:r}=t,{isRenderView:i}=Qt(),a=P.useRef(null),[{},s]=ia({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(sCe,{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(P.Fragment,{children:l(c,d,r,u)},`section-${u}-${c.uuid}`)})})})},lCe=()=>{const{formBuilderFormLayout:t}=on(),e=(n,r,i)=>o.jsx(oCe,{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}`)})})})},g6=()=>{const{renderType:t}=Qt();switch(t){case Q0:return o.jsx(ZSe,{});case mf:return o.jsx(oxe,{});case vf:return o.jsx(pxe,{});case $m:return o.jsx(Exe,{});case jm:return o.jsx(tCe,{});case t0:return o.jsx(lCe,{})}},cCe=t=>{var l;const{taskSchema:e,taskId:n,endPoints:r}=t,{userTrainingSaveData:i,saveProgressDataHook:a,updateTaskProgressValue:s}=yr();return P.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(p6,{updateTrainingProgress:()=>{},sections:(l=e==null?void 0:e.layout[0])==null?void 0:l.children})})},uCe=({taskId:t,onStart:e})=>{var w,E,x,C,S,_,I,F,M,L,V,U,O,q,ie,ge,Z,Q,ce;const[n,r]=P.useState(n2),[i,a]=P.useState(null),{examComplete:s,assessmentData:l,taskSchema:c,taskData:u,startQuiz:d}=yr();P.useEffect(()=>{var K,he,ee,te,Y;if(((K=c==null?void 0:c.formType)==null?void 0:K.key)==="exam"){let R=[...((te=(ee=(he=c==null?void 0:c.layout[0])==null?void 0:he.children[0])==null?void 0:ee.children[0])==null?void 0:te.children[0].children)||[]];l!=null&&l.randomiseQuestions&&(R=Um.shuffle(R).map(fe=>({...fe}))),l!=null&&l.randomiseAnswers&&(R=R.map(fe=>({...fe,answerOptions:Um.shuffle(fe==null?void 0:fe.answerOptions)}))),l!=null&&l.enableNoOfAssessmentQuestions&&(R=R.slice(0,parseInt(l==null?void 0:l.noOfAssessmentQuestions))),a({assessment_id:1,name:(Y=u==null?void 0:u.assessment)==null?void 0:Y.assessment_title,label:"assessment_title",quizConfiguration:c==null?void 0:c.quizConfiguration,quizElements:R})}},[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(n2)}),o.jsx(Ft,{label:"Start Immediately",onClick:()=>{g(),r(B3)}})]}),h=K=>K.completed?(g(),r(B3),o.jsx(o.Fragment,{})):o.jsxs("span",{className:"text-2xl",children:["Your Quiz is about to start in ",K.seconds," seconds"]}),g=()=>{const K={task_id:t,session_id:et(),start_time:new Date,finish_time:new Date};a(he=>({...he,...K})),d(K,a)},v=()=>{r(v7),g()},m=((w=l==null?void 0:l.assesment_user_attempts)==null?void 0:w.length)>0?(E=l==null?void 0:l.assesment_user_attempts)==null?void 0:E.some(K=>(K==null?void 0:K.is_pass)===1):!1;function A(){var be;const K=l==null?void 0:l.assesment_user_attempts[0],he=l==null?void 0:l.assesment_user_attempts[((be=l==null?void 0:l.assesment_user_attempts)==null?void 0:be.length)-1],ee=K==null?void 0:K.start_time,te=he==null?void 0:he.finish_time;if(!he||!ee||!te)return"";const Y=Fn.utc(ee),fe=Fn.utc(te).diff(Y,"seconds");return fe<60?fe+" seconds":Math.floor(fe/60)+" minutes"}return o.jsxs(o.Fragment,{children:[n===v7&&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(nm,{date:Date.now()+15e3,renderer:h}),f]})})})})}),o.jsxs("div",{children:[n===n2&&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-6 col-offset-3",children:o.jsxs("div",{className:"text-center",children:[o.jsxs("div",{children:[o.jsx("h3",{children:(x=u==null?void 0:u.assessment)==null?void 0:x.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:Fn(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:(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:"Remaining attempts:"}),o.jsx("div",{className:"text-900 w-full md:w-9 line-height-3",children:(l==null?void 0:l.noOfAttempts)-((S=l==null?void 0:l.assesment_user_attempts)==null?void 0:S.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:(_=i==null?void 0:i.quizElements)==null?void 0:_.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&&((F=(I=l==null?void 0:l.time_limit)==null?void 0:I.type)==null?void 0:F.key)==="PerExam"&&o.jsxs(o.Fragment,{children:[Math.floor((L=(M=l==null?void 0:l.time_limit)==null?void 0:M.time_limit_info)==null?void 0:L.num_of_mins)," ","mins"]}),l&&((U=(V=l==null?void 0:l.time_limit)==null?void 0:V.type)==null?void 0:U.key)==="PerQuestion"&&o.jsxs(o.Fragment,{children:[Math.floor(((q=(O=l==null?void 0:l.time_limit)==null?void 0:O.time_limit_info)==null?void 0:q.time_per_question)*((ie=i==null?void 0:i.quizElements)==null?void 0:ie.length)/60)," ","mins"]}),l&&((Z=(ge=l==null?void 0:l.time_limit)==null?void 0:ge.type)==null?void 0:Z.key)==="NoTimeLimit"&&o.jsx(o.Fragment,{children:"No Time Limit"})]})]}),((Q=l==null?void 0:l.assesment_user_attempts)==null?void 0:Q.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)-((ce=l==null?void 0:l.assesment_user_attempts)==null?void 0:ce.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(v7),e&&e()}})}):o.jsx(D7,{classes:"text-2xl p-3",value:"No attempts remaining",level:"info"})})]})})})}),n===B3&&i!==null&&o.jsx("div",{className:"fadein animation-duration-500",children:o.jsx(Cj,{session_id:i==null?void 0:i.session_id,setDisplay:r,onOpenQuiz:v,saveNewQuizData:g,quizData:i,taskSchema:c,saveProgress:s,setAssessmentModal:()=>{}})})]})]})},dCe=t=>{var R,fe,be,Te,ye,Ae,ne,$,re,W,de,Ie;const[e,n]=P.useState(!1),{isAdmin:r}=Qt(),i=P.useRef(!1),{taskId:a,endPoints:s,isRenderView:l,showFieldsAfterSubmit:c,messageWhileSubmittingForm:u,enableFormScroll:d,formScrollHeight:f="scroll-height-225",onStart:h,setAssessmentModal:g=()=>{}}=t,{setLayout:v}=on(),{taskProgressValue:m,taskRegisterData:A,task_status:w,assessmentData:E,taskProgressLoading:x,taskSchema:C,taskData:S,updateTaskFormData:_,submitTaskFormData:I,TasksLoading:F,userTaskSubmitFormData:M,TasksHTTPRequest:L,TasksSubmitLoading:V,clearTaskSchema:U,TASK_PUBLISHED:O,saveProgressDataHook:q,taskOptions:ie}=yr(),ge=ie!=null&&ie.successMessage?ie==null?void 0:ie.successMessage:"Submitted Successfully";P.useEffect(()=>{if(C!==null&&v((C==null?void 0:C.layout)||[]),a){const ve={viewed_at:new Date().toISOString()};_(M,a,s==null?void 0:s.updateFormData,L3,()=>{},ve)}return()=>{U()}},[a]);const Z=(Ee="One or more field is required")=>{i.current.show({severity:"error",summary:"Alert",detail:Ee,life:3e3})},Q=()=>{Zt.emit("onSubmitUserForm","complete"),ee()},ce=()=>{I(M,a,s==null?void 0:s.submitFormData),n(!1)},K=Ee=>{_(Ee,a,s==null?void 0:s.updateFormData,L3,()=>{var ve;(ve=i==null?void 0:i.current)==null||ve.show({severity:"success",summary:"Progress Saved",detail:"",life:3e3})})};P.useEffect(()=>{const Ee=setTimeout(()=>{var ve;M!==null&&((C==null?void 0:C.enableAutoSave)===!0||((ve=C==null?void 0:C.formType)==null?void 0:ve.key)===_7)&&q(M,a,s==null?void 0:s.updateFormData)},2e3);return()=>clearTimeout(Ee)},[A,m]);const he=(Ee,ve,me,Se)=>{var oe,pe;let De=Se;const j={fieldId:Ee.uuid};if(me!=null&&me[Ee==null?void 0:Ee.uuid]){if((ve==null?void 0:ve.length)>0){e:for(const[,ue]of ve.entries())if(((oe=ue==null?void 0:ue.children)==null?void 0:oe.length)>0&&(ue==null?void 0:ue.enableConditionalField)===!0){for(const[,le]of(ue==null?void 0:ue.children.entries())||[])if((pe=le==null?void 0:le.attributes)!=null&&pe.required&&(De=he(le,le==null?void 0:le.options,me,De),De===!1))break e}}}else Zt.emit("OnInvalidFieldCatch",j),De=!1,Z();return De},ee=P.useCallback(()=>{var ve,me,Se,De,j,oe,pe,ue,le,se,Oe,Ne,Ke,ut,pt,ft,kt,Sn,Vt,Nt,$e;let Ee=!1;e:for(const[yt,qt]of C.layout.entries())if((qt==null?void 0:qt.isHidden)===!1)for(const[dn,mn]of qt.children.entries())for(const[,En]of mn.children.entries())if(En!=null&&En.rowIsRepeatable){const Vn=M.findIndex(hn=>(hn==null?void 0:hn.rowId)===En.uuid);if(Vn>=0){if(((ve=M[Vn].repeatableFieldsData)==null?void 0:ve.length)<(En==null?void 0:En.minimumEntries)){Z(`Need minimun ${En==null?void 0:En.minimumEntries} entries`),Ee=!1;break e}Ee=!0}}else for(const[,Vn]of En.children.entries())for(const[,hn]of Vn.children.entries()){if(hn.isValid===0&&hn.isPostField===!0&&(hn==null?void 0:hn.componentType)!=="hidden-field"){const Jt={pageIndex:yt,fieldId:hn.uuid,sectionIndex:dn},Xe=M.findIndex(tt=>(tt==null?void 0:tt.fieldId)===hn.uuid);if(!(Xe===-1||(me=M[Xe])!=null&&me.postData[0]&&(((De=(Se=M[Xe])==null?void 0:Se.postData[0].postValue)==null?void 0:De.length)>0||((j=M[Xe])==null?void 0:j.postData[0].postValue)>0))){console.log("inValidData",Jt),Zt.emit("OnInvalidFieldCatch",Jt),Ee=!1,Z();break e}}if((hn==null?void 0:hn.componentType)==="radio-hierarchal"){const Jt=M.findIndex(Xe=>(Xe==null?void 0:Xe.fieldId)===hn.uuid);if(Jt>=0&&(Ee=he(hn,hn==null?void 0:hn.options,(oe=M[Jt])==null?void 0:oe.postData[0].postValue,!0),!Ee))break e}if(((pe=hn==null?void 0:hn.children)==null?void 0:pe.length)>0)for(const[,Jt]of hn.children.entries()){const Xe=Object.keys(Jt);if(Xe[0]){const tt=Jt[Xe[0]],ht={fieldId:tt.uuid,sectionIndex:dn},jt=M.findIndex(yn=>(yn==null?void 0:yn.fieldId)===tt.uuid);if(!((ue=M[jt])!=null&&ue.postData[0]&&(((se=(le=M[jt])==null?void 0:le.postData[0].postValue)==null?void 0:se.length)>0||((Oe=M[jt])==null?void 0:Oe.postData[0].postValue)>0||((ut=(Ke=(Ne=M[jt])==null?void 0:Ne.postData[0])==null?void 0:Ke.postValue)==null?void 0:ut.addressOne)!==""))){Zt.emit("OnInvalidFieldCatch",ht),Ee=!1,Z();break e}}}if(hn!=null&&hn.inlineConditionalRules&&((ft=(pt=hn==null?void 0:hn.inlineConditionalRules)==null?void 0:pt.rules)==null?void 0:ft.length)>0){for(const[,Jt]of((kt=hn==null?void 0:hn.inlineConditionalRules)==null?void 0:kt.rules.entries())||[])for(const[,Xe]of(Jt==null?void 0:Jt.conditions.entries())||[])for(const[,tt]of(Xe==null?void 0:Xe.children.entries())||[])if(tt.isValid===0){const ht={fieldId:tt.uuid,sectionIndex:dn},jt=M.findIndex(yn=>(yn==null?void 0:yn.fieldId)===tt.uuid);if(jt>=0&&!((Sn=M[jt])!=null&&Sn.postData[0]&&(((Nt=(Vt=M[jt])==null?void 0:Vt.postData[0].postValue)==null?void 0:Nt.length)>0||(($e=M[jt])==null?void 0:$e.postData[0].postValue)>0))){Zt.emit("OnInvalidFieldCatch",ht),Ee=!1,Z();break e}}}Ee=!0}Ee&&n(!0)},[M]),te=()=>o.jsx(o.Fragment,{children:o.jsxs("div",{className:"w-full",children:[o.jsx("p",{children:"Loading form data....."}),o.jsx(Aa,{className:"mb-2"}),o.jsx(Aa,{className:"mb-2"}),o.jsx(Aa,{className:"mb-2"}),o.jsx(Aa,{className:"mb-5"}),o.jsx(Aa,{className:"mb-2"}),o.jsx(Aa,{className:"mb-2"}),o.jsx(Aa,{className:"mb-2"}),o.jsx(Aa,{className:"mb-2"}),o.jsx(Aa,{className:"mb-2"}),o.jsx(Aa,{className:"mb-2"}),o.jsx(Aa,{className:"mb-2"})]})}),Y=()=>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:()=>ce(),autoFocus:!0})]});return o.jsxs("div",{style:{position:"relative"},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:u}),Y()]}),F||V||L?o.jsx("div",{className:"w-full",children:o.jsx(te,{})}):o.jsxs(o.Fragment,{children:[(((R=C==null?void 0:C.formType)==null?void 0:R.key)===I7||((fe=C==null?void 0:C.formType)==null?void 0:fe.key)==="survey")&&o.jsx(o.Fragment,{children:o.jsxs("div",{className:`px-0 ${l===!1?"builder_container":""}`,children:[o.jsxs("div",{className:"flex justify-content-center mb-2 align-items-center",children:[o.jsx("div",{className:"text-center text-900 text-3xl font-medium",children:S==null?void 0:S.task_title}),o.jsx("div",{className:"ml-4 ",children:w===Vee&&o.jsx(D7,{classes:"",value:"COMPLETED",level:"success"})})]}),c===!1&&w===O?o.jsx(o.Fragment,{children:o.jsx("h3",{className:"text-center mt-5",children:ge})}):o.jsx("div",{className:"grid",children:o.jsxs("div",{className:"col-12",children:[F&&o.jsx(te,{}),!F&&o.jsxs(o.Fragment,{children:[o.jsx(Kte,{}),o.jsx("div",{className:`${d===!0?f:" "} mt-2 mb-2`,children:o.jsx(Lf,{backend:Vf,children:C!==null&&((be=C==null?void 0:C.layout)==null?void 0:be.length)&&o.jsx(g6,{})})}),o.jsx(U3,{ref:i}),((Te=C==null?void 0:C.formType)==null?void 0:Te.key)!==""&&(w===L3||w===null)&&o.jsx("span",{children:ec.createPortal(o.jsx("div",{style:{zIndex:9999999},className:"card surface-card shadow-1 border-round py-2 render-form-footer",children:o.jsxs("div",{className:" flex justify-content-center",children:[o.jsx(Ft,{text:!0,className:"mr-2 p-button-info",label:"Save Progress",onClick:()=>K(M),loading:x,disabled:V}),o.jsx(Ft,{label:"Submit",onClick:()=>Q(),disabled:x,loading:V})]})}),document.body)})]})]})})]})}),((ye=C==null?void 0:C.formType)==null?void 0:ye.key)==="policies"&&o.jsx("div",{className:"layout-invoice-page",children:o.jsx("div",{className:"grid",children:o.jsx("div",{className:"col-12",children:o.jsx("div",{className:"card",children:o.jsx("div",{id:"invoice-content",children:o.jsxs("div",{className:"invoice",children:[o.jsx("div",{className:"invoice-header",children:o.jsx("div",{className:"invoice-company flex align-items-center",children:o.jsxs("h3",{children:[S==null?void 0:S.task_title," "]})})}),o.jsx("div",{className:"scroll-height-300 mt-2 mb-2",children:o.jsx(Lf,{backend:Vf,children:C!==null&&((Ae=C==null?void 0:C.layout)==null?void 0:Ae.length)&&o.jsx(g6,{})})}),((ne=C==null?void 0:C.formType)==null?void 0:ne.key)!==""&&(w===1||w===null)&&r===!1&&o.jsx(o.Fragment,{children:o.jsx("div",{className:"flex justify-content-center",children:o.jsx(Ft,{className:"p-button-primary",label:"Accept",onClick:()=>Q(),loading:x})})})]})})})})})}),((($=C==null?void 0:C.formType)==null?void 0:$.key)==="page"||((re=C==null?void 0:C.formType)==null?void 0:re.key)==="pdf")&&o.jsx("div",{className:"layout-invoice-page",children:o.jsx("div",{className:"grid",children:o.jsx("div",{className:"col-12",children:o.jsx("div",{className:"card",children:o.jsx(Lf,{backend:Vf,children:C!==null&&((W=C==null?void 0:C.layout)==null?void 0:W.length)&&o.jsx(g6,{})})})})})}),((de=C==null?void 0:C.formType)==null?void 0:de.key)==="training"&&o.jsx(cCe,{renderIn:Vte,taskSchema:C,taskId:a,endPoints:s}),((Ie=C==null?void 0:C.formType)==null?void 0:Ie.key)==="exam"&&o.jsx(uCe,{taskId:a,endPoints:s,onStart:h})]})]})};/**
4289
4289
  * React Router v6.28.0
4290
4290
  *
4291
4291
  * Copyright (c) Remix Software Inc.
@@ -4370,7 +4370,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4370
4370
  stroke: #ffa700;
4371
4371
  }
4372
4372
  }
4373
- `,XCe={spinner:function(e){var n=e.props;return{animationDuration:n.animationDuration}}},b6=Mn.extend({defaultProps:{__TYPE:"ProgressSpinner",id:null,style:null,className:null,strokeWidth:"2",fill:"none",animationDuration:"2s",children:void 0},css:{classes:YCe,styles:KCe,inlineStyles:XCe}}),Fj=b.memo(b.forwardRef(function(t,e){var n=Un(),r=b.useContext(nr),i=b6.getProps(t,r),a=b.useRef(null),s=b6.setMetaData({props:i}),l=s.ptm,c=s.cx,u=s.sx,d=s.isUnstyled;ci(b6.css.styles,d,{name:"progressspinner"}),b.useImperativeHandle(e,function(){return{props:i,getElement:function(){return a.current}}});var f=n({id:i.id,ref:a,style:i.style,className:dt(i.className,c("root")),role:"progressbar","aria-busy":!0},b6.getOtherProps(i),l("root")),h=n({className:c("spinner"),viewBox:"25 25 50 50",style:u("spinner")},l("spinner")),g=n({className:c("circle"),cx:"50",cy:"50",r:"20",fill:i.fill,strokeWidth:i.strokeWidth,strokeMiterlimit:"10"},l("circle"));return b.createElement("div",f,b.createElement("svg",h,b.createElement("circle",g)))}));Fj.displayName="ProgressSpinner";const RCe=()=>{const{renderType:t,componentList:e,sectionsList:n,exam:r}=Qt(),{userSelectedLanguage:i,formBuilderFormLayout:a}=on(),s=4,l=0,c=1,u=2,d=5,f=()=>{const U=t;let O=0;return U===vf?O=s:U===jm?O=d:U===$m||U===g9||U===mf?O=u:U===Q0||U===Op?O=c:U===t0&&(O=l),O},h=P.useRef(),g=r!=null&&r.getPaginatedAssessmentQuestionBankList?r==null?void 0:r.getPaginatedAssessmentQuestionBankList:()=>{},v=r!=null&&r.getPaginatedAssessmentQuestionBankListFromStore?r==null?void 0:r.getPaginatedAssessmentQuestionBankListFromStore:[],m=r!=null&&r.updateQuestionBankStates?r==null?void 0:r.updateQuestionBankStates:()=>{},A=r!=null&&r.assessmentSearchFilterCourseCategoryId?r==null?void 0:r.assessmentSearchFilterCourseCategoryId:null,w=r!=null&&r.assessmentSearchFilterCourseSubjectId?r==null?void 0:r.assessmentSearchFilterCourseSubjectId:null,E=r!=null&&r.AssessmentQuestionBankLoading?r==null?void 0:r.AssessmentQuestionBankLoading:!1,x=r!=null&&r.AssessmentQuestionBankPaginator?r==null?void 0:r.AssessmentQuestionBankPaginator:()=>o.jsx(o.Fragment,{}),C=r!=null&&r.courseCategoryList?r==null?void 0:r.courseCategoryList:[],S=r!=null&&r.getCourseCategoryList?r==null?void 0:r.getCourseCategoryList:()=>{},_=r!=null&&r.subjectList?r==null?void 0:r.subjectList:[],I=r!=null&&r.getSubjectList?r==null?void 0:r.getSubjectList:()=>{},[F,M]=P.useState([]);P.useEffect(()=>(t===t0&&(S(),I()),()=>{}),[]);const L=P.useCallback(()=>{const U=v.map(O=>{var ge;const q=JSON.parse(O.question_meta_data),ie=JSON.parse(O.meta_data);return{label:(ge=q==null?void 0:q.questionText)==null?void 0:ge[i==null?void 0:i.type],icon:"pi pi-fw pi-trash",element:"radio",schema:{uuid:et(),componentType:"question",questionText:q==null?void 0:q.questionText,questionTextImage:ie==null?void 0:ie.questionImage,answerInputType:q!=null&&q.answerInputType?q==null?void 0:q.answerInputType:"radio",answerOptions:q==null?void 0:q.answerOptions,isHidden:!1,subject_title:O==null?void 0:O.subject_title,course_category_title:O==null?void 0:O.course_category_title,subject_id:O==null?void 0:O.subject_id,course_category_id:O==null?void 0:O.course_category_id,created_by_id:null,date_created:O==null?void 0:O.created_at},subject_title:O==null?void 0:O.subject_title,course_category_title:O==null?void 0:O.course_category_title,uuid:et(),type:Rn,componentType:"question"}});M(U)},[v,i==null?void 0:i.type]);P.useEffect(()=>{L()},[v,L]);const V=()=>{h.current&&h.current};return P.useEffect(()=>(t===t0&&g(),()=>{}),[A,w]),o.jsx(o.Fragment,{children:o.jsxs(Za,{activeIndex:f(),scrollable:!0,children:[t===t0&&o.jsx(fr,{header:"Survey",children:vQ.map((U,O)=>o.jsx(ui,{header:U==null?void 0:U.label,toggleable:!0,style:{marginBottom:10},children:o.jsx("div",{className:"grid",children:U==null?void 0:U.items.map((q,ie)=>o.jsx("div",{className:"xl:col-6 lg:col-12 md:col-12 sm:col-12",children:o.jsx(Bd,{data:q},q.uuid)},"form_elements_"+ie))})},`pannel-tab-${O}`))}),(t===Q0||t===Op)&&o.jsx(fr,{header:"Form",children:gQ.map((U,O)=>o.jsx(ui,{header:U==null?void 0:U.label,toggleable:!0,style:{marginBottom:10},children:o.jsx("div",{className:"grid",children:U==null?void 0:U.items.map((q,ie)=>o.jsx("div",{className:"xl:col-6 lg:col-12 md:col-12 sm:col-12",children:o.jsx(Bd,{data:q},q.uuid)},"form_elements_"+ie))})},`pannel-tab-${O}`))}),(t===$m||t===g9||t===mf)&&o.jsx(fr,{header:"Layout",children:hK.map((U,O)=>o.jsx(ui,{header:U==null?void 0:U.label,toggleable:!0,style:{marginBottom:10},children:o.jsx("div",{className:"grid",children:U==null?void 0:U.items.map((q,ie)=>o.jsx("div",{className:"col-6",children:o.jsx(Bd,{data:q},q.uuid)},"form_elements_"+ie))})},`pannel-tab-${O}`))}),(t===t0||t===Q0||t===Op)&&o.jsx(fr,{header:"Layout",children:mQ.map((U,O)=>o.jsx(ui,{header:U==null?void 0:U.label,toggleable:!0,style:{marginBottom:10},children:o.jsx("div",{className:"grid",children:U==null?void 0:U.items.map((q,ie)=>o.jsx("div",{className:"col-6",children:o.jsx(Bd,{data:q},q.uuid)},"form_elements_"+ie))})},`pannel-tab-${O}`))}),t===vf&&o.jsx(fr,{header:"Question bank",children:o.jsxs("div",{className:"grid",children:[o.jsx("div",{className:"col-12",children:fK.map((U,O)=>o.jsx("div",{className:"grid",children:U==null?void 0:U.items.map((q,ie)=>{const ge=It.cloneDeep(q);return o.jsx("div",{className:"col-6",children:o.jsx(Bd,{data:ge},q.uuid)},"form_elements_"+ie)})},`new-quiz-${O}`))}),o.jsxs("div",{className:"col-12 ",children:[o.jsxs("div",{className:"p-inputgroup",children:[o.jsx(bn,{placeholder:"Keyword"}),o.jsx(Ft,{icon:"pi pi-search",className:"p-button-info"})]}),o.jsx("div",{className:"field mt-3 w-full",children:o.jsx(ya,{id:"subject",name:"subject",optionLabel:"subject_title",value:w,placeholder:"Select a Subject",options:_,className:"w-full",onChange:U=>{m({subject_id:U==null?void 0:U.value})}})}),o.jsx("div",{className:"field",children:o.jsx(ya,{id:"course_category",name:"course_category",optionLabel:"course_category_title",value:A,placeholder:"Select a category",options:C,className:"w-full",onChange:U=>{m({course_category_id:U==null?void 0:U.value})}})})]}),E?o.jsx(Fj,{}):o.jsx("div",{className:"scroll-height-500 w-full",children:F.map((U,O)=>{var q,ie,ge,Z,Q;return o.jsx("div",{onScroll:V,ref:h,className:"col-12 ",children:o.jsx(Bd,{tags:[{severity:"success",label:U==null?void 0:U.subject_title},{severity:"info",label:U==null?void 0:U.course_category_title}],showIcon:(Q=(Z=(ge=(ie=(q=a[0])==null?void 0:q.children[0])==null?void 0:ie.children[0])==null?void 0:ge.children[0])==null?void 0:Z.children)==null?void 0:Q.some(ce=>{var K,he,ee;return((K=ce==null?void 0:ce.questionText)==null?void 0:K[i.type])===((ee=(he=U==null?void 0:U.schema)==null?void 0:he.questionText)==null?void 0:ee[i.type])}),data:U},O)},"question_elements_"+O)})}),o.jsx(x,{})]})}),t===jm&&o.jsx(fr,{header:"Training",children:bQ.map((U,O)=>o.jsx(ui,{header:U==null?void 0:U.label,toggleable:!0,style:{marginBottom:10},children:o.jsx("div",{className:"grid",children:U==null?void 0:U.items.map((q,ie)=>o.jsx("div",{className:"col-6",children:o.jsx(Bd,{data:q},q.uuid)},"form_elements_"+ie))})},`pannel-tab-${O}`))}),(t===t0||t===Q0||t===Op)&&o.jsxs(fr,{header:"Custom",children:[o.jsx("h6",{children:"Custom Sections"}),o.jsx("div",{className:"grid",children:(n==null?void 0:n.length)>0&&n.map((U,O)=>o.jsx("div",{className:"col-6",children:o.jsx(Bd,{data:{label:U==null?void 0:U.builder_element_title,element:"reusable_builder_section",schema:U==null?void 0:U.reusable_template_schema,uuid:et(),type:na}},U.uuid)},"reusable_elements_"+O))}),o.jsx("h6",{children:"Custom Matrix"}),o.jsx("div",{className:"grid",children:(e==null?void 0:e.length)>0&&e.map((U,O)=>o.jsx("div",{className:"col-6",children:o.jsx(Bd,{data:{label:U==null?void 0:U.custom_component_title,element:"custom_component",schema:JSON.parse(U==null?void 0:U.custom_component_schema),uuid:et(),type:Rn}},U.uuid)},"custom_component"+O))})]})]})})};function kj(t){return t}function GCe(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}var WCe=800,QCe=16,JCe=Date.now;function ZCe(t){var e=0,n=0;return function(){var r=JCe(),i=QCe-(r-n);if(n=r,i>0){if(++e>=WCe)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}function eTe(t){return function(){return t}}var tTe=a4?function(t,e){return a4(t,"toString",{configurable:!0,enumerable:!1,value:eTe(e),writable:!0})}:kj,nTe=ZCe(tTe),Pj=Math.max;function rTe(t,e,n){return e=Pj(e===void 0?t.length-1:e,0),function(){for(var r=arguments,i=-1,a=Pj(r.length-e,0),s=Array(a);++i<a;)s[i]=r[e+i];i=-1;for(var l=Array(e+1);++i<e;)l[i]=r[i];return l[e]=n(s),GCe(t,this,l)}}function iTe(t,e){return nTe(rTe(t,e,kj),t+"")}function aTe(t,e,n){if(!u0(n))return!1;var r=typeof e;return(r=="number"?s4(n)&&_N(e,n.length):r=="string"&&e in n)?C2(n[e],t):!1}function sTe(t){return iTe(function(e,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,s=i>2?n[2]:void 0;for(a=t.length>3&&typeof a=="function"?(i--,a):void 0,s&&aTe(n[0],n[1],s)&&(a=i<3?void 0:a,i=1),e=Object(e);++r<i;){var l=n[r];l&&t(e,l,r,a)}return e})}var oTe="__lodash_hash_undefined__";function lTe(t){return this.__data__.set(t,oTe),this}function cTe(t){return this.__data__.has(t)}function y6(t){var e=-1,n=t==null?0:t.length;for(this.__data__=new dd;++e<n;)this.add(t[e])}y6.prototype.add=y6.prototype.push=lTe,y6.prototype.has=cTe;function uTe(t,e){for(var n=-1,r=t==null?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}function dTe(t,e){return t.has(e)}var fTe=1,hTe=2;function Mj(t,e,n,r,i,a){var s=n&fTe,l=t.length,c=e.length;if(l!=c&&!(s&&c>l))return!1;var u=a.get(t),d=a.get(e);if(u&&d)return u==e&&d==t;var f=-1,h=!0,g=n&hTe?new y6:void 0;for(a.set(t,e),a.set(e,t);++f<l;){var v=t[f],m=e[f];if(r)var A=s?r(m,v,f,e,t,a):r(v,m,f,t,e,a);if(A!==void 0){if(A)continue;h=!1;break}if(g){if(!uTe(e,function(w,E){if(!dTe(g,E)&&(v===w||i(v,w,n,r,a)))return g.push(E)})){h=!1;break}}else if(!(v===m||i(v,m,n,r,a))){h=!1;break}}return a.delete(t),a.delete(e),h}function pTe(t){var e=-1,n=Array(t.size);return t.forEach(function(r,i){n[++e]=[i,r]}),n}function gTe(t){var e=-1,n=Array(t.size);return t.forEach(function(r){n[++e]=r}),n}var mTe=1,vTe=2,bTe="[object Boolean]",yTe="[object Date]",ATe="[object Error]",wTe="[object Map]",STe="[object Number]",xTe="[object RegExp]",CTe="[object Set]",TTe="[object String]",ETe="[object Symbol]",ITe="[object ArrayBuffer]",_Te="[object DataView]",Lj=yu?yu.prototype:void 0,KS=Lj?Lj.valueOf:void 0;function DTe(t,e,n,r,i,a,s){switch(n){case _Te:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case ITe:return!(t.byteLength!=e.byteLength||!a(new o4(t),new o4(e)));case bTe:case yTe:case STe:return C2(+t,+e);case ATe:return t.name==e.name&&t.message==e.message;case xTe:case TTe:return t==e+"";case wTe:var l=pTe;case CTe:var c=r&mTe;if(l||(l=gTe),t.size!=e.size&&!c)return!1;var u=s.get(t);if(u)return u==e;r|=vTe,s.set(t,e);var d=Mj(l(t),l(e),r,i,a,s);return s.delete(t),d;case ETe:if(KS)return KS.call(t)==KS.call(e)}return!1}var NTe=1,OTe=Object.prototype,FTe=OTe.hasOwnProperty;function kTe(t,e,n,r,i,a){var s=n&NTe,l=nb(t),c=l.length,u=nb(e),d=u.length;if(c!=d&&!s)return!1;for(var f=c;f--;){var h=l[f];if(!(s?h in e:FTe.call(e,h)))return!1}var g=a.get(t),v=a.get(e);if(g&&v)return g==e&&v==t;var m=!0;a.set(t,e),a.set(e,t);for(var A=s;++f<c;){h=l[f];var w=t[h],E=e[h];if(r)var x=s?r(E,w,h,e,t,a):r(w,E,h,t,e,a);if(!(x===void 0?w===E||i(w,E,n,r,a):x)){m=!1;break}A||(A=h=="constructor")}if(m&&!A){var C=t.constructor,S=e.constructor;C!=S&&"constructor"in t&&"constructor"in e&&!(typeof C=="function"&&C instanceof C&&typeof S=="function"&&S instanceof S)&&(m=!1)}return a.delete(t),a.delete(e),m}var PTe=1,Bj="[object Arguments]",Vj="[object Array]",A6="[object Object]",MTe=Object.prototype,Uj=MTe.hasOwnProperty;function LTe(t,e,n,r,i,a){var s=fd(t),l=fd(e),c=s?Vj:Vc(t),u=l?Vj:Vc(e);c=c==Bj?A6:c,u=u==Bj?A6:u;var d=c==A6,f=u==A6,h=c==u;if(h&&_2(t)){if(!_2(e))return!1;s=!0,d=!1}if(h&&!d)return a||(a=new wu),s||Q7(t)?Mj(t,e,n,r,i,a):DTe(t,e,c,n,r,i,a);if(!(n&PTe)){var g=d&&Uj.call(t,"__wrapped__"),v=f&&Uj.call(e,"__wrapped__");if(g||v){var m=g?t.value():t,A=v?e.value():e;return a||(a=new wu),i(m,A,n,r,a)}}return h?(a||(a=new wu),kTe(t,e,n,r,i,a)):!1}function qj(t,e,n,r,i){return t===e?!0:t==null||e==null||!Au(t)&&!Au(e)?t!==t&&e!==e:LTe(t,e,n,r,qj,i)}function BTe(t){return function(e,n,r){for(var i=-1,a=Object(e),s=r(e),l=s.length;l--;){var c=s[++i];if(n(a[c],c,a)===!1)break}return e}}var VTe=BTe();function XS(t,e,n){(n!==void 0&&!C2(t[e],n)||n===void 0&&!(e in t))&&X7(t,e,n)}function UTe(t){return Au(t)&&s4(t)}function RS(t,e){if(!(e==="constructor"&&typeof t[e]=="function")&&e!="__proto__")return t[e]}function qTe(t){return I2(t,N2(t))}function $Te(t,e,n,r,i,a,s){var l=RS(t,n),c=RS(e,n),u=s.get(c);if(u){XS(t,n,u);return}var d=a?a(l,c,n+"",t,e,s):void 0,f=d===void 0;if(f){var h=fd(c),g=!h&&_2(c),v=!h&&!g&&Q7(c);d=c,h||g||v?fd(l)?d=l:UTe(l)?d=eb(l):g?(f=!1,d=BN(c,!0)):v?(f=!1,d=WN(c,!0)):d=[]:H7(c)||R7(c)?(d=l,R7(l)?d=qTe(l):(!u0(l)||Y7(l))&&(d=JN(c))):f=!1}f&&(s.set(c,d),i(d,c,r,a,s),s.delete(c)),XS(t,n,d)}function $j(t,e,n,r,i){t!==e&&VTe(e,function(a,s){if(i||(i=new wu),u0(a))$Te(t,e,s,n,$j,r,i);else{var l=r?r(RS(t,s),a,s+"",t,e,i):void 0;l===void 0&&(l=a),XS(t,s,l)}},N2)}function GS(t,e){return qj(t,e)}var O0=sTe(function(t,e,n){$j(t,e,n)}),ar=(t=>(t[t.TYPE=3]="TYPE",t[t.LEVEL=12]="LEVEL",t[t.ATTRIBUTE=13]="ATTRIBUTE",t[t.BLOT=14]="BLOT",t[t.INLINE=7]="INLINE",t[t.BLOCK=11]="BLOCK",t[t.BLOCK_BLOT=10]="BLOCK_BLOT",t[t.INLINE_BLOT=6]="INLINE_BLOT",t[t.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",t[t.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",t[t.ANY=15]="ANY",t))(ar||{});class Hu{constructor(e,n,r={}){this.attrName=e,this.keyName=n;const i=ar.TYPE&ar.ATTRIBUTE;this.scope=r.scope!=null?r.scope&ar.LEVEL|i:ar.ATTRIBUTE,r.whitelist!=null&&(this.whitelist=r.whitelist)}static keys(e){return Array.from(e.attributes).map(n=>n.name)}add(e,n){return this.canAdd(e,n)?(e.setAttribute(this.keyName,n),!0):!1}canAdd(e,n){return this.whitelist==null?!0:typeof n=="string"?this.whitelist.indexOf(n.replace(/["']/g,""))>-1:this.whitelist.indexOf(n)>-1}remove(e){e.removeAttribute(this.keyName)}value(e){const n=e.getAttribute(this.keyName);return this.canAdd(e,n)&&n?n:""}}class op extends Error{constructor(e){e="[Parchment] "+e,super(e),this.message=e,this.name=this.constructor.name}}const jj=class MC{constructor(){this.attributes={},this.classes={},this.tags={},this.types={}}static find(e,n=!1){if(e==null)return null;if(this.blots.has(e))return this.blots.get(e)||null;if(n){let r=null;try{r=e.parentNode}catch{return null}return this.find(r,n)}return null}create(e,n,r){const i=this.query(n);if(i==null)throw new op(`Unable to create ${n} blot`);const a=i,s=n instanceof Node||n.nodeType===Node.TEXT_NODE?n:a.create(r),l=new a(e,s,r);return MC.blots.set(l.domNode,l),l}find(e,n=!1){return MC.find(e,n)}query(e,n=ar.ANY){let r;return typeof e=="string"?r=this.types[e]||this.attributes[e]:e instanceof Text||e.nodeType===Node.TEXT_NODE?r=this.types.text:typeof e=="number"?e&ar.LEVEL&ar.BLOCK?r=this.types.block:e&ar.LEVEL&ar.INLINE&&(r=this.types.inline):e instanceof Element&&((e.getAttribute("class")||"").split(/\s+/).some(i=>(r=this.classes[i],!!r)),r=r||this.tags[e.tagName]),r==null?null:"scope"in r&&n&ar.LEVEL&r.scope&&n&ar.TYPE&r.scope?r:null}register(...e){return e.map(n=>{const r="blotName"in n,i="attrName"in n;if(!r&&!i)throw new op("Invalid definition");if(r&&n.blotName==="abstract")throw new op("Cannot register abstract class");const a=r?n.blotName:i?n.attrName:void 0;return this.types[a]=n,i?typeof n.keyName=="string"&&(this.attributes[n.keyName]=n):r&&(n.className&&(this.classes[n.className]=n),n.tagName&&(Array.isArray(n.tagName)?n.tagName=n.tagName.map(s=>s.toUpperCase()):n.tagName=n.tagName.toUpperCase(),(Array.isArray(n.tagName)?n.tagName:[n.tagName]).forEach(s=>{(this.tags[s]==null||n.className==null)&&(this.tags[s]=n)}))),n})}};jj.blots=new WeakMap;let lp=jj;function zj(t,e){return(t.getAttribute("class")||"").split(/\s+/).filter(n=>n.indexOf(`${e}-`)===0)}class jTe extends Hu{static keys(e){return(e.getAttribute("class")||"").split(/\s+/).map(n=>n.split("-").slice(0,-1).join("-"))}add(e,n){return this.canAdd(e,n)?(this.remove(e),e.classList.add(`${this.keyName}-${n}`),!0):!1}remove(e){zj(e,this.keyName).forEach(n=>{e.classList.remove(n)}),e.classList.length===0&&e.removeAttribute("class")}value(e){const n=(zj(e,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(e,n)?n:""}}const nu=jTe;function WS(t){const e=t.split("-"),n=e.slice(1).map(r=>r[0].toUpperCase()+r.slice(1)).join("");return e[0]+n}class zTe extends Hu{static keys(e){return(e.getAttribute("style")||"").split(";").map(n=>n.split(":")[0].trim())}add(e,n){return this.canAdd(e,n)?(e.style[WS(this.keyName)]=n,!0):!1}remove(e){e.style[WS(this.keyName)]="",e.getAttribute("style")||e.removeAttribute("style")}value(e){const n=e.style[WS(this.keyName)];return this.canAdd(e,n)?n:""}}const F0=zTe;class HTe{constructor(e){this.attributes={},this.domNode=e,this.build()}attribute(e,n){n?e.add(this.domNode,n)&&(e.value(this.domNode)!=null?this.attributes[e.attrName]=e:delete this.attributes[e.attrName]):(e.remove(this.domNode),delete this.attributes[e.attrName])}build(){this.attributes={};const e=lp.find(this.domNode);if(e==null)return;const n=Hu.keys(this.domNode),r=nu.keys(this.domNode),i=F0.keys(this.domNode);n.concat(r).concat(i).forEach(a=>{const s=e.scroll.query(a,ar.ATTRIBUTE);s instanceof Hu&&(this.attributes[s.attrName]=s)})}copy(e){Object.keys(this.attributes).forEach(n=>{const r=this.attributes[n].value(this.domNode);e.format(n,r)})}move(e){this.copy(e),Object.keys(this.attributes).forEach(n=>{this.attributes[n].remove(this.domNode)}),this.attributes={}}values(){return Object.keys(this.attributes).reduce((e,n)=>(e[n]=this.attributes[n].value(this.domNode),e),{})}}const w6=HTe,Hj=class{constructor(e,n){this.scroll=e,this.domNode=n,lp.blots.set(n,this),this.prev=null,this.next=null}static create(e){if(this.tagName==null)throw new op("Blot definition missing tagName");let n,r;return Array.isArray(this.tagName)?(typeof e=="string"?(r=e.toUpperCase(),parseInt(r,10).toString()===r&&(r=parseInt(r,10))):typeof e=="number"&&(r=e),typeof r=="number"?n=document.createElement(this.tagName[r-1]):r&&this.tagName.indexOf(r)>-1?n=document.createElement(r):n=document.createElement(this.tagName[0])):n=document.createElement(this.tagName),this.className&&n.classList.add(this.className),n}get statics(){return this.constructor}attach(){}clone(){const e=this.domNode.cloneNode(!1);return this.scroll.create(e)}detach(){this.parent!=null&&this.parent.removeChild(this),lp.blots.delete(this.domNode)}deleteAt(e,n){this.isolate(e,n).remove()}formatAt(e,n,r,i){const a=this.isolate(e,n);if(this.scroll.query(r,ar.BLOT)!=null&&i)a.wrap(r,i);else if(this.scroll.query(r,ar.ATTRIBUTE)!=null){const s=this.scroll.create(this.statics.scope);a.wrap(s),s.format(r,i)}}insertAt(e,n,r){const i=r==null?this.scroll.create("text",n):this.scroll.create(n,r),a=this.split(e);this.parent.insertBefore(i,a||void 0)}isolate(e,n){const r=this.split(e);if(r==null)throw new Error("Attempt to isolate at end");return r.split(n),r}length(){return 1}offset(e=this.parent){return this.parent==null||this===e?0:this.parent.children.offset(this)+this.parent.offset(e)}optimize(e){this.statics.requiredContainer&&!(this.parent instanceof this.statics.requiredContainer)&&this.wrap(this.statics.requiredContainer.blotName)}remove(){this.domNode.parentNode!=null&&this.domNode.parentNode.removeChild(this.domNode),this.detach()}replaceWith(e,n){const r=typeof e=="string"?this.scroll.create(e,n):e;return this.parent!=null&&(this.parent.insertBefore(r,this.next||void 0),this.remove()),r}split(e,n){return e===0?this:this.next}update(e,n){}wrap(e,n){const r=typeof e=="string"?this.scroll.create(e,n):e;if(this.parent!=null&&this.parent.insertBefore(r,this.next||void 0),typeof r.appendChild!="function")throw new op(`Cannot wrap ${e}`);return r.appendChild(this),r}};Hj.blotName="abstract";let Yj=Hj;const Kj=class extends Yj{static value(e){return!0}index(e,n){return this.domNode===e||this.domNode.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(n,1):-1}position(e,n){let r=Array.from(this.parent.domNode.childNodes).indexOf(this.domNode);return e>0&&(r+=1),[this.parent.domNode,r]}value(){return{[this.statics.blotName]:this.statics.value(this.domNode)||!0}}};Kj.scope=ar.INLINE_BLOT;const wo=Kj;class YTe{constructor(){this.head=null,this.tail=null,this.length=0}append(...e){if(this.insertBefore(e[0],null),e.length>1){const n=e.slice(1);this.append(...n)}}at(e){const n=this.iterator();let r=n();for(;r&&e>0;)e-=1,r=n();return r}contains(e){const n=this.iterator();let r=n();for(;r;){if(r===e)return!0;r=n()}return!1}indexOf(e){const n=this.iterator();let r=n(),i=0;for(;r;){if(r===e)return i;i+=1,r=n()}return-1}insertBefore(e,n){e!=null&&(this.remove(e),e.next=n,n!=null?(e.prev=n.prev,n.prev!=null&&(n.prev.next=e),n.prev=e,n===this.head&&(this.head=e)):this.tail!=null?(this.tail.next=e,e.prev=this.tail,this.tail=e):(e.prev=null,this.head=this.tail=e),this.length+=1)}offset(e){let n=0,r=this.head;for(;r!=null;){if(r===e)return n;n+=r.length(),r=r.next}return-1}remove(e){this.contains(e)&&(e.prev!=null&&(e.prev.next=e.next),e.next!=null&&(e.next.prev=e.prev),e===this.head&&(this.head=e.next),e===this.tail&&(this.tail=e.prev),this.length-=1)}iterator(e=this.head){return()=>{const n=e;return e!=null&&(e=e.next),n}}find(e,n=!1){const r=this.iterator();let i=r();for(;i;){const a=i.length();if(e<a||n&&e===a&&(i.next==null||i.next.length()!==0))return[i,e];e-=a,i=r()}return[null,0]}forEach(e){const n=this.iterator();let r=n();for(;r;)e(r),r=n()}forEachAt(e,n,r){if(n<=0)return;const[i,a]=this.find(e);let s=e-a;const l=this.iterator(i);let c=l();for(;c&&s<e+n;){const u=c.length();e>s?r(c,e-s,Math.min(n,s+u-e)):r(c,0,Math.min(u,e+n-s)),s+=u,c=l()}}map(e){return this.reduce((n,r)=>(n.push(e(r)),n),[])}reduce(e,n){const r=this.iterator();let i=r();for(;i;)n=e(n,i),i=r();return n}}function Xj(t,e){const n=e.find(t);if(n)return n;try{return e.create(t)}catch{const r=e.create(ar.INLINE);return Array.from(t.childNodes).forEach(i=>{r.domNode.appendChild(i)}),t.parentNode&&t.parentNode.replaceChild(r.domNode,t),r.attach(),r}}const Rj=class G0 extends Yj{constructor(e,n){super(e,n),this.uiNode=null,this.build()}appendChild(e){this.insertBefore(e)}attach(){super.attach(),this.children.forEach(e=>{e.attach()})}attachUI(e){this.uiNode!=null&&this.uiNode.remove(),this.uiNode=e,G0.uiClass&&this.uiNode.classList.add(G0.uiClass),this.uiNode.setAttribute("contenteditable","false"),this.domNode.insertBefore(this.uiNode,this.domNode.firstChild)}build(){this.children=new YTe,Array.from(this.domNode.childNodes).filter(e=>e!==this.uiNode).reverse().forEach(e=>{try{const n=Xj(e,this.scroll);this.insertBefore(n,this.children.head||void 0)}catch(n){if(n instanceof op)return;throw n}})}deleteAt(e,n){if(e===0&&n===this.length())return this.remove();this.children.forEachAt(e,n,(r,i,a)=>{r.deleteAt(i,a)})}descendant(e,n=0){const[r,i]=this.children.find(n);return e.blotName==null&&e(r)||e.blotName!=null&&r instanceof e?[r,i]:r instanceof G0?r.descendant(e,i):[null,-1]}descendants(e,n=0,r=Number.MAX_VALUE){let i=[],a=r;return this.children.forEachAt(n,r,(s,l,c)=>{(e.blotName==null&&e(s)||e.blotName!=null&&s instanceof e)&&i.push(s),s instanceof G0&&(i=i.concat(s.descendants(e,l,a))),a-=c}),i}detach(){this.children.forEach(e=>{e.detach()}),super.detach()}enforceAllowedChildren(){let e=!1;this.children.forEach(n=>{e||this.statics.allowedChildren.some(r=>n instanceof r)||(n.statics.scope===ar.BLOCK_BLOT?(n.next!=null&&this.splitAfter(n),n.prev!=null&&this.splitAfter(n.prev),n.parent.unwrap(),e=!0):n instanceof G0?n.unwrap():n.remove())})}formatAt(e,n,r,i){this.children.forEachAt(e,n,(a,s,l)=>{a.formatAt(s,l,r,i)})}insertAt(e,n,r){const[i,a]=this.children.find(e);if(i)i.insertAt(a,n,r);else{const s=r==null?this.scroll.create("text",n):this.scroll.create(n,r);this.appendChild(s)}}insertBefore(e,n){e.parent!=null&&e.parent.children.remove(e);let r=null;this.children.insertBefore(e,n||null),e.parent=this,n!=null&&(r=n.domNode),(this.domNode.parentNode!==e.domNode||this.domNode.nextSibling!==r)&&this.domNode.insertBefore(e.domNode,r),e.attach()}length(){return this.children.reduce((e,n)=>e+n.length(),0)}moveChildren(e,n){this.children.forEach(r=>{e.insertBefore(r,n)})}optimize(e){if(super.optimize(e),this.enforceAllowedChildren(),this.uiNode!=null&&this.uiNode!==this.domNode.firstChild&&this.domNode.insertBefore(this.uiNode,this.domNode.firstChild),this.children.length===0)if(this.statics.defaultChild!=null){const n=this.scroll.create(this.statics.defaultChild.blotName);this.appendChild(n)}else this.remove()}path(e,n=!1){const[r,i]=this.children.find(e,n),a=[[this,e]];return r instanceof G0?a.concat(r.path(i,n)):(r!=null&&a.push([r,i]),a)}removeChild(e){this.children.remove(e)}replaceWith(e,n){const r=typeof e=="string"?this.scroll.create(e,n):e;return r instanceof G0&&this.moveChildren(r),super.replaceWith(r)}split(e,n=!1){if(!n){if(e===0)return this;if(e===this.length())return this.next}const r=this.clone();return this.parent&&this.parent.insertBefore(r,this.next||void 0),this.children.forEachAt(e,this.length(),(i,a,s)=>{const l=i.split(a,n);l!=null&&r.appendChild(l)}),r}splitAfter(e){const n=this.clone();for(;e.next!=null;)n.appendChild(e.next);return this.parent&&this.parent.insertBefore(n,this.next||void 0),n}unwrap(){this.parent&&this.moveChildren(this.parent,this.next||void 0),this.remove()}update(e,n){const r=[],i=[];e.forEach(a=>{a.target===this.domNode&&a.type==="childList"&&(r.push(...a.addedNodes),i.push(...a.removedNodes))}),i.forEach(a=>{if(a.parentNode!=null&&a.tagName!=="IFRAME"&&document.body.compareDocumentPosition(a)&Node.DOCUMENT_POSITION_CONTAINED_BY)return;const s=this.scroll.find(a);s!=null&&(s.domNode.parentNode==null||s.domNode.parentNode===this.domNode)&&s.detach()}),r.filter(a=>a.parentNode===this.domNode&&a!==this.uiNode).sort((a,s)=>a===s?0:a.compareDocumentPosition(s)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1).forEach(a=>{let s=null;a.nextSibling!=null&&(s=this.scroll.find(a.nextSibling));const l=Xj(a,this.scroll);(l.next!==s||l.next==null)&&(l.parent!=null&&l.parent.removeChild(this),this.insertBefore(l,s||void 0))}),this.enforceAllowedChildren()}};Rj.uiClass="";const ru=Rj;function KTe(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(const n in t)if(t[n]!==e[n])return!1;return!0}const cp=class Np extends ru{static create(e){return super.create(e)}static formats(e,n){const r=n.query(Np.blotName);if(!(r!=null&&e.tagName===r.tagName)){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return e.tagName.toLowerCase()}}constructor(e,n){super(e,n),this.attributes=new w6(this.domNode)}format(e,n){if(e===this.statics.blotName&&!n)this.children.forEach(r=>{r instanceof Np||(r=r.wrap(Np.blotName,!0)),this.attributes.copy(r)}),this.unwrap();else{const r=this.scroll.query(e,ar.INLINE);if(r==null)return;r instanceof Hu?this.attributes.attribute(r,n):n&&(e!==this.statics.blotName||this.formats()[e]!==n)&&this.replaceWith(e,n)}}formats(){const e=this.attributes.values(),n=this.statics.formats(this.domNode,this.scroll);return n!=null&&(e[this.statics.blotName]=n),e}formatAt(e,n,r,i){this.formats()[r]!=null||this.scroll.query(r,ar.ATTRIBUTE)?this.isolate(e,n).format(r,i):super.formatAt(e,n,r,i)}optimize(e){super.optimize(e);const n=this.formats();if(Object.keys(n).length===0)return this.unwrap();const r=this.next;r instanceof Np&&r.prev===this&&KTe(n,r.formats())&&(r.moveChildren(this),r.remove())}replaceWith(e,n){const r=super.replaceWith(e,n);return this.attributes.copy(r),r}update(e,n){super.update(e,n),e.some(r=>r.target===this.domNode&&r.type==="attributes")&&this.attributes.build()}wrap(e,n){const r=super.wrap(e,n);return r instanceof Np&&this.attributes.move(r),r}};cp.allowedChildren=[cp,wo],cp.blotName="inline",cp.scope=ar.INLINE_BLOT,cp.tagName="SPAN";const QS=cp,up=class LC extends ru{static create(e){return super.create(e)}static formats(e,n){const r=n.query(LC.blotName);if(!(r!=null&&e.tagName===r.tagName)){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return e.tagName.toLowerCase()}}constructor(e,n){super(e,n),this.attributes=new w6(this.domNode)}format(e,n){const r=this.scroll.query(e,ar.BLOCK);r!=null&&(r instanceof Hu?this.attributes.attribute(r,n):e===this.statics.blotName&&!n?this.replaceWith(LC.blotName):n&&(e!==this.statics.blotName||this.formats()[e]!==n)&&this.replaceWith(e,n))}formats(){const e=this.attributes.values(),n=this.statics.formats(this.domNode,this.scroll);return n!=null&&(e[this.statics.blotName]=n),e}formatAt(e,n,r,i){this.scroll.query(r,ar.BLOCK)!=null?this.format(r,i):super.formatAt(e,n,r,i)}insertAt(e,n,r){if(r==null||this.scroll.query(n,ar.INLINE)!=null)super.insertAt(e,n,r);else{const i=this.split(e);if(i!=null){const a=this.scroll.create(n,r);i.parent.insertBefore(a,i)}else throw new Error("Attempt to insertAt after block boundaries")}}replaceWith(e,n){const r=super.replaceWith(e,n);return this.attributes.copy(r),r}update(e,n){super.update(e,n),e.some(r=>r.target===this.domNode&&r.type==="attributes")&&this.attributes.build()}};up.blotName="block",up.scope=ar.BLOCK_BLOT,up.tagName="P",up.allowedChildren=[QS,up,wo];const sm=up,JS=class extends ru{checkMerge(){return this.next!==null&&this.next.statics.blotName===this.statics.blotName}deleteAt(e,n){super.deleteAt(e,n),this.enforceAllowedChildren()}formatAt(e,n,r,i){super.formatAt(e,n,r,i),this.enforceAllowedChildren()}insertAt(e,n,r){super.insertAt(e,n,r),this.enforceAllowedChildren()}optimize(e){super.optimize(e),this.children.length>0&&this.next!=null&&this.checkMerge()&&(this.next.moveChildren(this),this.next.remove())}};JS.blotName="container",JS.scope=ar.BLOCK_BLOT;const S6=JS;class XTe extends wo{static formats(e,n){}format(e,n){super.formatAt(0,this.length(),e,n)}formatAt(e,n,r,i){e===0&&n===this.length()?this.format(r,i):super.formatAt(e,n,r,i)}formats(){return this.statics.formats(this.domNode,this.scroll)}}const ql=XTe,RTe={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},GTe=100,dp=class extends ru{constructor(e,n){super(null,n),this.registry=e,this.scroll=this,this.build(),this.observer=new MutationObserver(r=>{this.update(r)}),this.observer.observe(this.domNode,RTe),this.attach()}create(e,n){return this.registry.create(this,e,n)}find(e,n=!1){const r=this.registry.find(e,n);return r?r.scroll===this?r:n?this.find(r.scroll.domNode.parentNode,!0):null:null}query(e,n=ar.ANY){return this.registry.query(e,n)}register(...e){return this.registry.register(...e)}build(){this.scroll!=null&&super.build()}detach(){super.detach(),this.observer.disconnect()}deleteAt(e,n){this.update(),e===0&&n===this.length()?this.children.forEach(r=>{r.remove()}):super.deleteAt(e,n)}formatAt(e,n,r,i){this.update(),super.formatAt(e,n,r,i)}insertAt(e,n,r){this.update(),super.insertAt(e,n,r)}optimize(e=[],n={}){super.optimize(n);const r=n.mutationsMap||new WeakMap;let i=Array.from(this.observer.takeRecords());for(;i.length>0;)e.push(i.pop());const a=(c,u=!0)=>{c==null||c===this||c.domNode.parentNode!=null&&(r.has(c.domNode)||r.set(c.domNode,[]),u&&a(c.parent))},s=c=>{r.has(c.domNode)&&(c instanceof ru&&c.children.forEach(s),r.delete(c.domNode),c.optimize(n))};let l=e;for(let c=0;l.length>0;c+=1){if(c>=GTe)throw new Error("[Parchment] Maximum optimize iterations reached");for(l.forEach(u=>{const d=this.find(u.target,!0);d!=null&&(d.domNode===u.target&&(u.type==="childList"?(a(this.find(u.previousSibling,!1)),Array.from(u.addedNodes).forEach(f=>{const h=this.find(f,!1);a(h,!1),h instanceof ru&&h.children.forEach(g=>{a(g,!1)})})):u.type==="attributes"&&a(d.prev)),a(d))}),this.children.forEach(s),l=Array.from(this.observer.takeRecords()),i=l.slice();i.length>0;)e.push(i.pop())}}update(e,n={}){e=e||this.observer.takeRecords();const r=new WeakMap;e.map(i=>{const a=this.find(i.target,!0);return a==null?null:r.has(a.domNode)?(r.get(a.domNode).push(i),null):(r.set(a.domNode,[i]),a)}).forEach(i=>{i!=null&&i!==this&&r.has(i.domNode)&&i.update(r.get(i.domNode)||[],n)}),n.mutationsMap=r,r.has(this.domNode)&&super.update(r.get(this.domNode),n),this.optimize(e,n)}};dp.blotName="scroll",dp.defaultChild=sm,dp.allowedChildren=[sm,S6],dp.scope=ar.BLOCK_BLOT,dp.tagName="DIV";const ZS=dp,ex=class VY extends wo{static create(e){return document.createTextNode(e)}static value(e){return e.data}constructor(e,n){super(e,n),this.text=this.statics.value(this.domNode)}deleteAt(e,n){this.domNode.data=this.text=this.text.slice(0,e)+this.text.slice(e+n)}index(e,n){return this.domNode===e?n:-1}insertAt(e,n,r){r==null?(this.text=this.text.slice(0,e)+n+this.text.slice(e),this.domNode.data=this.text):super.insertAt(e,n,r)}length(){return this.text.length}optimize(e){super.optimize(e),this.text=this.statics.value(this.domNode),this.text.length===0?this.remove():this.next instanceof VY&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())}position(e,n=!1){return[this.domNode,e]}split(e,n=!1){if(!n){if(e===0)return this;if(e===this.length())return this.next}const r=this.scroll.create(this.domNode.splitText(e));return this.parent.insertBefore(r,this.next||void 0),this.text=this.statics.value(this.domNode),r}update(e,n){e.some(r=>r.type==="characterData"&&r.target===this.domNode)&&(this.text=this.statics.value(this.domNode))}value(){return this.text}};ex.blotName="text",ex.scope=ar.INLINE_BLOT;const x6=ex,Gj=Object.freeze(Object.defineProperty({__proto__:null,Attributor:Hu,AttributorStore:w6,BlockBlot:sm,ClassAttributor:nu,ContainerBlot:S6,EmbedBlot:ql,InlineBlot:QS,LeafBlot:wo,ParentBlot:ru,Registry:lp,Scope:ar,ScrollBlot:ZS,StyleAttributor:F0,TextBlot:x6},Symbol.toStringTag,{value:"Module"}));var tx={exports:{}},$l=-1,Ko=1,Es=0;function om(t,e,n,r,i){if(t===e)return t?[[Es,t]]:[];if(n!=null){var a=iEe(t,e,n);if(a)return a}var s=nx(t,e),l=t.substring(0,s);t=t.substring(s),e=e.substring(s),s=C6(t,e);var c=t.substring(t.length-s);t=t.substring(0,t.length-s),e=e.substring(0,e.length-s);var u=WTe(t,e);return l&&u.unshift([Es,l]),c&&u.push([Es,c]),rx(u,i),r&&ZTe(u),u}function WTe(t,e){var n;if(!t)return[[Ko,e]];if(!e)return[[$l,t]];var r=t.length>e.length?t:e,i=t.length>e.length?e:t,a=r.indexOf(i);if(a!==-1)return n=[[Ko,r.substring(0,a)],[Es,i],[Ko,r.substring(a+i.length)]],t.length>e.length&&(n[0][0]=n[2][0]=$l),n;if(i.length===1)return[[$l,t],[Ko,e]];var s=JTe(t,e);if(s){var l=s[0],c=s[1],u=s[2],d=s[3],f=s[4],h=om(l,u),g=om(c,d);return h.concat([[Es,f]],g)}return QTe(t,e)}function QTe(t,e){for(var n=t.length,r=e.length,i=Math.ceil((n+r)/2),a=i,s=2*i,l=new Array(s),c=new Array(s),u=0;u<s;u++)l[u]=-1,c[u]=-1;l[a+1]=0,c[a+1]=0;for(var d=n-r,f=d%2!==0,h=0,g=0,v=0,m=0,A=0;A<i;A++){for(var w=-A+h;w<=A-g;w+=2){var E=a+w,x;w===-A||w!==A&&l[E-1]<l[E+1]?x=l[E+1]:x=l[E-1]+1;for(var C=x-w;x<n&&C<r&&t.charAt(x)===e.charAt(C);)x++,C++;if(l[E]=x,x>n)g+=2;else if(C>r)h+=2;else if(f){var S=a+d-w;if(S>=0&&S<s&&c[S]!==-1){var _=n-c[S];if(x>=_)return Wj(t,e,x,C)}}}for(var I=-A+v;I<=A-m;I+=2){var S=a+I,_;I===-A||I!==A&&c[S-1]<c[S+1]?_=c[S+1]:_=c[S-1]+1;for(var F=_-I;_<n&&F<r&&t.charAt(n-_-1)===e.charAt(r-F-1);)_++,F++;if(c[S]=_,_>n)m+=2;else if(F>r)v+=2;else if(!f){var E=a+d-I;if(E>=0&&E<s&&l[E]!==-1){var x=l[E],C=a+x-E;if(_=n-_,x>=_)return Wj(t,e,x,C)}}}}return[[$l,t],[Ko,e]]}function Wj(t,e,n,r){var i=t.substring(0,n),a=e.substring(0,r),s=t.substring(n),l=e.substring(r),c=om(i,a),u=om(s,l);return c.concat(u)}function nx(t,e){if(!t||!e||t.charAt(0)!==e.charAt(0))return 0;for(var n=0,r=Math.min(t.length,e.length),i=r,a=0;n<i;)t.substring(a,i)==e.substring(a,i)?(n=i,a=n):r=i,i=Math.floor((r-n)/2+n);return tz(t.charCodeAt(i-1))&&i--,i}function Qj(t,e){var n=t.length,r=e.length;if(n==0||r==0)return 0;n>r?t=t.substring(n-r):n<r&&(e=e.substring(0,n));var i=Math.min(n,r);if(t==e)return i;for(var a=0,s=1;;){var l=t.substring(i-s),c=e.indexOf(l);if(c==-1)return a;s+=c,(c==0||t.substring(i-s)==e.substring(0,s))&&(a=s,s++)}}function C6(t,e){if(!t||!e||t.slice(-1)!==e.slice(-1))return 0;for(var n=0,r=Math.min(t.length,e.length),i=r,a=0;n<i;)t.substring(t.length-i,t.length-a)==e.substring(e.length-i,e.length-a)?(n=i,a=n):r=i,i=Math.floor((r-n)/2+n);return nz(t.charCodeAt(t.length-i))&&i--,i}function JTe(t,e){var n=t.length>e.length?t:e,r=t.length>e.length?e:t;if(n.length<4||r.length*2<n.length)return null;function i(g,v,m){for(var A=g.substring(m,m+Math.floor(g.length/4)),w=-1,E="",x,C,S,_;(w=v.indexOf(A,w+1))!==-1;){var I=nx(g.substring(m),v.substring(w)),F=C6(g.substring(0,m),v.substring(0,w));E.length<F+I&&(E=v.substring(w-F,w)+v.substring(w,w+I),x=g.substring(0,m-F),C=g.substring(m+I),S=v.substring(0,w-F),_=v.substring(w+I))}return E.length*2>=g.length?[x,C,S,_,E]:null}var a=i(n,r,Math.ceil(n.length/4)),s=i(n,r,Math.ceil(n.length/2)),l;if(!a&&!s)return null;s?a?l=a[4].length>s[4].length?a:s:l=s:l=a;var c,u,d,f;t.length>e.length?(c=l[0],u=l[1],d=l[2],f=l[3]):(d=l[0],f=l[1],c=l[2],u=l[3]);var h=l[4];return[c,u,d,f,h]}function ZTe(t){for(var e=!1,n=[],r=0,i=null,a=0,s=0,l=0,c=0,u=0;a<t.length;)t[a][0]==Es?(n[r++]=a,s=c,l=u,c=0,u=0,i=t[a][1]):(t[a][0]==Ko?c+=t[a][1].length:u+=t[a][1].length,i&&i.length<=Math.max(s,l)&&i.length<=Math.max(c,u)&&(t.splice(n[r-1],0,[$l,i]),t[n[r-1]+1][0]=Ko,r--,r--,a=r>0?n[r-1]:-1,s=0,l=0,c=0,u=0,i=null,e=!0)),a++;for(e&&rx(t),nEe(t),a=1;a<t.length;){if(t[a-1][0]==$l&&t[a][0]==Ko){var d=t[a-1][1],f=t[a][1],h=Qj(d,f),g=Qj(f,d);h>=g?(h>=d.length/2||h>=f.length/2)&&(t.splice(a,0,[Es,f.substring(0,h)]),t[a-1][1]=d.substring(0,d.length-h),t[a+1][1]=f.substring(h),a++):(g>=d.length/2||g>=f.length/2)&&(t.splice(a,0,[Es,d.substring(0,g)]),t[a-1][0]=Ko,t[a-1][1]=f.substring(0,f.length-g),t[a+1][0]=$l,t[a+1][1]=d.substring(g),a++),a++}a++}}var Jj=/[^a-zA-Z0-9]/,Zj=/\s/,ez=/[\r\n]/,eEe=/\n\r?\n$/,tEe=/^\r?\n\r?\n/;function nEe(t){function e(g,v){if(!g||!v)return 6;var m=g.charAt(g.length-1),A=v.charAt(0),w=m.match(Jj),E=A.match(Jj),x=w&&m.match(Zj),C=E&&A.match(Zj),S=x&&m.match(ez),_=C&&A.match(ez),I=S&&g.match(eEe),F=_&&v.match(tEe);return I||F?5:S||_?4:w&&!x&&C?3:x||C?2:w||E?1:0}for(var n=1;n<t.length-1;){if(t[n-1][0]==Es&&t[n+1][0]==Es){var r=t[n-1][1],i=t[n][1],a=t[n+1][1],s=C6(r,i);if(s){var l=i.substring(i.length-s);r=r.substring(0,r.length-s),i=l+i.substring(0,i.length-s),a=l+a}for(var c=r,u=i,d=a,f=e(r,i)+e(i,a);i.charAt(0)===a.charAt(0);){r+=i.charAt(0),i=i.substring(1)+a.charAt(0),a=a.substring(1);var h=e(r,i)+e(i,a);h>=f&&(f=h,c=r,u=i,d=a)}t[n-1][1]!=c&&(c?t[n-1][1]=c:(t.splice(n-1,1),n--),t[n][1]=u,d?t[n+1][1]=d:(t.splice(n+1,1),n--))}n++}}function rx(t,e){t.push([Es,""]);for(var n=0,r=0,i=0,a="",s="",l;n<t.length;){if(n<t.length-1&&!t[n][1]){t.splice(n,1);continue}switch(t[n][0]){case Ko:i++,s+=t[n][1],n++;break;case $l:r++,a+=t[n][1],n++;break;case Es:var c=n-i-r-1;if(e){if(c>=0&&iz(t[c][1])){var u=t[c][1].slice(-1);if(t[c][1]=t[c][1].slice(0,-1),a=u+a,s=u+s,!t[c][1]){t.splice(c,1),n--;var d=c-1;t[d]&&t[d][0]===Ko&&(i++,s=t[d][1]+s,d--),t[d]&&t[d][0]===$l&&(r++,a=t[d][1]+a,d--),c=d}}if(rz(t[n][1])){var u=t[n][1].charAt(0);t[n][1]=t[n][1].slice(1),a+=u,s+=u}}if(n<t.length-1&&!t[n][1]){t.splice(n,1);break}if(a.length>0||s.length>0){a.length>0&&s.length>0&&(l=nx(s,a),l!==0&&(c>=0?t[c][1]+=s.substring(0,l):(t.splice(0,0,[Es,s.substring(0,l)]),n++),s=s.substring(l),a=a.substring(l)),l=C6(s,a),l!==0&&(t[n][1]=s.substring(s.length-l)+t[n][1],s=s.substring(0,s.length-l),a=a.substring(0,a.length-l)));var f=i+r;a.length===0&&s.length===0?(t.splice(n-f,f),n=n-f):a.length===0?(t.splice(n-f,f,[Ko,s]),n=n-f+1):s.length===0?(t.splice(n-f,f,[$l,a]),n=n-f+1):(t.splice(n-f,f,[$l,a],[Ko,s]),n=n-f+2)}n!==0&&t[n-1][0]===Es?(t[n-1][1]+=t[n][1],t.splice(n,1)):n++,i=0,r=0,a="",s="";break}}t[t.length-1][1]===""&&t.pop();var h=!1;for(n=1;n<t.length-1;)t[n-1][0]===Es&&t[n+1][0]===Es&&(t[n][1].substring(t[n][1].length-t[n-1][1].length)===t[n-1][1]?(t[n][1]=t[n-1][1]+t[n][1].substring(0,t[n][1].length-t[n-1][1].length),t[n+1][1]=t[n-1][1]+t[n+1][1],t.splice(n-1,1),h=!0):t[n][1].substring(0,t[n+1][1].length)==t[n+1][1]&&(t[n-1][1]+=t[n+1][1],t[n][1]=t[n][1].substring(t[n+1][1].length)+t[n+1][1],t.splice(n+1,1),h=!0)),n++;h&&rx(t,e)}function tz(t){return t>=55296&&t<=56319}function nz(t){return t>=56320&&t<=57343}function rz(t){return nz(t.charCodeAt(0))}function iz(t){return tz(t.charCodeAt(t.length-1))}function rEe(t){for(var e=[],n=0;n<t.length;n++)t[n][1].length>0&&e.push(t[n]);return e}function ix(t,e,n,r){return iz(t)||rz(r)?null:rEe([[Es,t],[$l,e],[Ko,n],[Es,r]])}function iEe(t,e,n){var r=typeof n=="number"?{index:n,length:0}:n.oldRange,i=typeof n=="number"?null:n.newRange,a=t.length,s=e.length;if(r.length===0&&(i===null||i.length===0)){var l=r.index,c=t.slice(0,l),u=t.slice(l),d=i?i.index:null;e:{var f=l+s-a;if(d!==null&&d!==f||f<0||f>s)break e;var h=e.slice(0,f),g=e.slice(f);if(g!==u)break e;var v=Math.min(l,f),m=c.slice(0,v),A=h.slice(0,v);if(m!==A)break e;var w=c.slice(v),E=h.slice(v);return ix(m,w,E,u)}e:{if(d!==null&&d!==l)break e;var x=l,h=e.slice(0,x),g=e.slice(x);if(h!==c)break e;var C=Math.min(a-x,s-x),S=u.slice(u.length-C),_=g.slice(g.length-C);if(S!==_)break e;var w=u.slice(0,u.length-C),E=g.slice(0,g.length-C);return ix(c,w,E,S)}}if(r.length>0&&i&&i.length===0)e:{var m=t.slice(0,r.index),S=t.slice(r.index+r.length),v=m.length,C=S.length;if(s<v+C)break e;var A=e.slice(0,v),_=e.slice(s-C);if(m!==A||S!==_)break e;var w=t.slice(v,a-C),E=e.slice(v,s-C);return ix(m,w,E,S)}return null}function T6(t,e,n,r){return om(t,e,n,r,!0)}T6.INSERT=Ko,T6.DELETE=$l,T6.EQUAL=Es;var aEe=T6,E6={exports:{}};E6.exports,function(t,e){var n=200,r="__lodash_hash_undefined__",i=9007199254740991,a="[object Arguments]",s="[object Array]",l="[object Boolean]",c="[object Date]",u="[object Error]",d="[object Function]",f="[object GeneratorFunction]",h="[object Map]",g="[object Number]",v="[object Object]",m="[object Promise]",A="[object RegExp]",w="[object Set]",E="[object String]",x="[object Symbol]",C="[object WeakMap]",S="[object ArrayBuffer]",_="[object DataView]",I="[object Float32Array]",F="[object Float64Array]",M="[object Int8Array]",L="[object Int16Array]",V="[object Int32Array]",U="[object Uint8Array]",O="[object Uint8ClampedArray]",q="[object Uint16Array]",ie="[object Uint32Array]",ge=/[\\^$.*+?()[\]{}|]/g,Z=/\w*$/,Q=/^\[object .+?Constructor\]$/,ce=/^(?:0|[1-9]\d*)$/,K={};K[a]=K[s]=K[S]=K[_]=K[l]=K[c]=K[I]=K[F]=K[M]=K[L]=K[V]=K[h]=K[g]=K[v]=K[A]=K[w]=K[E]=K[x]=K[U]=K[O]=K[q]=K[ie]=!0,K[u]=K[d]=K[C]=!1;var he=typeof Di=="object"&&Di&&Di.Object===Object&&Di,ee=typeof self=="object"&&self&&self.Object===Object&&self,te=he||ee||Function("return this")(),Y=e&&!e.nodeType&&e,R=Y&&!0&&t&&!t.nodeType&&t,fe=R&&R.exports===Y;function be(J,Pe){return J.set(Pe[0],Pe[1]),J}function Te(J,Pe){return J.add(Pe),J}function ye(J,Pe){for(var nt=-1,Yt=J?J.length:0;++nt<Yt&&Pe(J[nt],nt,J)!==!1;);return J}function Ae(J,Pe){for(var nt=-1,Yt=Pe.length,wr=J.length;++nt<Yt;)J[wr+nt]=Pe[nt];return J}function ne(J,Pe,nt,Yt){for(var wr=-1,tr=J?J.length:0;++wr<tr;)nt=Pe(nt,J[wr],wr,J);return nt}function $(J,Pe){for(var nt=-1,Yt=Array(J);++nt<J;)Yt[nt]=Pe(nt);return Yt}function re(J,Pe){return J==null?void 0:J[Pe]}function W(J){var Pe=!1;if(J!=null&&typeof J.toString!="function")try{Pe=!!(J+"")}catch{}return Pe}function de(J){var Pe=-1,nt=Array(J.size);return J.forEach(function(Yt,wr){nt[++Pe]=[wr,Yt]}),nt}function Ie(J,Pe){return function(nt){return J(Pe(nt))}}function Ee(J){var Pe=-1,nt=Array(J.size);return J.forEach(function(Yt){nt[++Pe]=Yt}),nt}var ve=Array.prototype,me=Function.prototype,Se=Object.prototype,De=te["__core-js_shared__"],j=function(){var J=/[^.]+$/.exec(De&&De.keys&&De.keys.IE_PROTO||"");return J?"Symbol(src)_1."+J:""}(),oe=me.toString,pe=Se.hasOwnProperty,ue=Se.toString,le=RegExp("^"+oe.call(pe).replace(ge,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),se=fe?te.Buffer:void 0,Oe=te.Symbol,Ne=te.Uint8Array,Ke=Ie(Object.getPrototypeOf,Object),ut=Object.create,pt=Se.propertyIsEnumerable,ft=ve.splice,kt=Object.getOwnPropertySymbols,Sn=se?se.isBuffer:void 0,Vt=Ie(Object.keys,Object),Nt=xi(te,"DataView"),$e=xi(te,"Map"),yt=xi(te,"Promise"),qt=xi(te,"Set"),dn=xi(te,"WeakMap"),mn=xi(Object,"create"),En=Vi(Nt),Vn=Vi($e),hn=Vi(yt),Jt=Vi(qt),Xe=Vi(dn),tt=Oe?Oe.prototype:void 0,ht=tt?tt.valueOf:void 0;function jt(J){var Pe=-1,nt=J?J.length:0;for(this.clear();++Pe<nt;){var Yt=J[Pe];this.set(Yt[0],Yt[1])}}function yn(){this.__data__=mn?mn(null):{}}function qn(J){return this.has(J)&&delete this.__data__[J]}function Gn(J){var Pe=this.__data__;if(mn){var nt=Pe[J];return nt===r?void 0:nt}return pe.call(Pe,J)?Pe[J]:void 0}function ir(J){var Pe=this.__data__;return mn?Pe[J]!==void 0:pe.call(Pe,J)}function Jn(J,Pe){var nt=this.__data__;return nt[J]=mn&&Pe===void 0?r:Pe,this}jt.prototype.clear=yn,jt.prototype.delete=qn,jt.prototype.get=Gn,jt.prototype.has=ir,jt.prototype.set=Jn;function mr(J){var Pe=-1,nt=J?J.length:0;for(this.clear();++Pe<nt;){var Yt=J[Pe];this.set(Yt[0],Yt[1])}}function gi(){this.__data__=[]}function An(J){var Pe=this.__data__,nt=Me(Pe,J);if(nt<0)return!1;var Yt=Pe.length-1;return nt==Yt?Pe.pop():ft.call(Pe,nt,1),!0}function it(J){var Pe=this.__data__,nt=Me(Pe,J);return nt<0?void 0:Pe[nt][1]}function ct(J){return Me(this.__data__,J)>-1}function At(J,Pe){var nt=this.__data__,Yt=Me(nt,J);return Yt<0?nt.push([J,Pe]):nt[Yt][1]=Pe,this}mr.prototype.clear=gi,mr.prototype.delete=An,mr.prototype.get=it,mr.prototype.has=ct,mr.prototype.set=At;function Mt(J){var Pe=-1,nt=J?J.length:0;for(this.clear();++Pe<nt;){var Yt=J[Pe];this.set(Yt[0],Yt[1])}}function Ut(){this.__data__={hash:new jt,map:new($e||mr),string:new jt}}function mt(J){return $i(this,J).delete(J)}function ot(J){return $i(this,J).get(J)}function Ve(J){return $i(this,J).has(J)}function rt(J,Pe){return $i(this,J).set(J,Pe),this}Mt.prototype.clear=Ut,Mt.prototype.delete=mt,Mt.prototype.get=ot,Mt.prototype.has=Ve,Mt.prototype.set=rt;function Et(J){this.__data__=new mr(J)}function zt(){this.__data__=new mr}function bt(J){return this.__data__.delete(J)}function Ue(J){return this.__data__.get(J)}function Qe(J){return this.__data__.has(J)}function Dt(J,Pe){var nt=this.__data__;if(nt instanceof mr){var Yt=nt.__data__;if(!$e||Yt.length<n-1)return Yt.push([J,Pe]),this;nt=this.__data__=new Mt(Yt)}return nt.set(J,Pe),this}Et.prototype.clear=zt,Et.prototype.delete=bt,Et.prototype.get=Ue,Et.prototype.has=Qe,Et.prototype.set=Dt;function nn(J,Pe){var nt=xt(J)||He(J)?$(J.length,String):[],Yt=nt.length,wr=!!Yt;for(var tr in J)pe.call(J,tr)&&!(wr&&(tr=="length"||si(tr,Yt)))&&nt.push(tr);return nt}function wt(J,Pe,nt){var Yt=J[Pe];(!(pe.call(J,Pe)&&wn(Yt,nt))||nt===void 0&&!(Pe in J))&&(J[Pe]=nt)}function Me(J,Pe){for(var nt=J.length;nt--;)if(wn(J[nt][0],Pe))return nt;return-1}function Ze(J,Pe){return J&&qi(Pe,ts(Pe),J)}function Ct(J,Pe,nt,Yt,wr,tr,Yr){var Tr;if(Yt&&(Tr=tr?Yt(J,wr,tr,Yr):Yt(J)),Tr!==void 0)return Tr;if(!pa(J))return J;var Vr=xt(J);if(Vr){if(Tr=Gt(J),!Pe)return Gr(J,Tr)}else{var $r=ze(J),ti=$r==d||$r==f;if(vr(J))return Dr(J,Pe);if($r==v||$r==a||ti&&!tr){if(W(J))return tr?J:{};if(Tr=Nn(ti?{}:J),!Pe)return ja(J,Ze(Tr,J))}else{if(!K[$r])return tr?J:{};Tr=Wr(J,$r,Ct,Pe)}}Yr||(Yr=new Et);var ea=Yr.get(J);if(ea)return ea;if(Yr.set(J,Tr),!Vr)var Oi=nt?sr(J):ts(J);return ye(Oi||J,function(Ai,ji){Oi&&(ji=Ai,Ai=J[ji]),wt(Tr,ji,Ct(Ai,Pe,nt,Yt,ji,J,Yr))}),Tr}function Ot(J){return pa(J)?ut(J):{}}function $t(J,Pe,nt){var Yt=Pe(J);return xt(J)?Yt:Ae(Yt,nt(J))}function Pn(J){return ue.call(J)}function Bn(J){if(!pa(J)||cs(J))return!1;var Pe=Ur(J)||W(J)?le:Q;return Pe.test(Vi(J))}function _r(J){if(!_i(J))return Vt(J);var Pe=[];for(var nt in Object(J))pe.call(J,nt)&&nt!="constructor"&&Pe.push(nt);return Pe}function Dr(J,Pe){if(Pe)return J.slice();var nt=new J.constructor(J.length);return J.copy(nt),nt}function hr(J){var Pe=new J.constructor(J.byteLength);return new Ne(Pe).set(new Ne(J)),Pe}function kr(J,Pe){var nt=Pe?hr(J.buffer):J.buffer;return new J.constructor(nt,J.byteOffset,J.byteLength)}function Kn(J,Pe,nt){var Yt=Pe?nt(de(J),!0):de(J);return ne(Yt,be,new J.constructor)}function kn(J){var Pe=new J.constructor(J.source,Z.exec(J));return Pe.lastIndex=J.lastIndex,Pe}function pr(J,Pe,nt){var Yt=Pe?nt(Ee(J),!0):Ee(J);return ne(Yt,Te,new J.constructor)}function Nr(J){return ht?Object(ht.call(J)):{}}function mi(J,Pe){var nt=Pe?hr(J.buffer):J.buffer;return new J.constructor(nt,J.byteOffset,J.length)}function Gr(J,Pe){var nt=-1,Yt=J.length;for(Pe||(Pe=Array(Yt));++nt<Yt;)Pe[nt]=J[nt];return Pe}function qi(J,Pe,nt,Yt){nt||(nt={});for(var wr=-1,tr=Pe.length;++wr<tr;){var Yr=Pe[wr],Tr=void 0;wt(nt,Yr,Tr===void 0?J[Yr]:Tr)}return nt}function ja(J,Pe){return qi(J,en(J),Pe)}function sr(J){return $t(J,ts,en)}function $i(J,Pe){var nt=J.__data__;return Zi(Pe)?nt[typeof Pe=="string"?"string":"hash"]:nt.map}function xi(J,Pe){var nt=re(J,Pe);return Bn(nt)?nt:void 0}var en=kt?Ie(kt,Object):di,ze=Pn;(Nt&&ze(new Nt(new ArrayBuffer(1)))!=_||$e&&ze(new $e)!=h||yt&&ze(yt.resolve())!=m||qt&&ze(new qt)!=w||dn&&ze(new dn)!=C)&&(ze=function(J){var Pe=ue.call(J),nt=Pe==v?J.constructor:void 0,Yt=nt?Vi(nt):void 0;if(Yt)switch(Yt){case En:return _;case Vn:return h;case hn:return m;case Jt:return w;case Xe:return C}return Pe});function Gt(J){var Pe=J.length,nt=J.constructor(Pe);return Pe&&typeof J[0]=="string"&&pe.call(J,"index")&&(nt.index=J.index,nt.input=J.input),nt}function Nn(J){return typeof J.constructor=="function"&&!_i(J)?Ot(Ke(J)):{}}function Wr(J,Pe,nt,Yt){var wr=J.constructor;switch(Pe){case S:return hr(J);case l:case c:return new wr(+J);case _:return kr(J,Yt);case I:case F:case M:case L:case V:case U:case O:case q:case ie:return mi(J,Yt);case h:return Kn(J,Yt,nt);case g:case E:return new wr(J);case A:return kn(J);case w:return pr(J,Yt,nt);case x:return Nr(J)}}function si(J,Pe){return Pe=Pe??i,!!Pe&&(typeof J=="number"||ce.test(J))&&J>-1&&J%1==0&&J<Pe}function Zi(J){var Pe=typeof J;return Pe=="string"||Pe=="number"||Pe=="symbol"||Pe=="boolean"?J!=="__proto__":J===null}function cs(J){return!!j&&j in J}function _i(J){var Pe=J&&J.constructor,nt=typeof Pe=="function"&&Pe.prototype||Se;return J===nt}function Vi(J){if(J!=null){try{return oe.call(J)}catch{}try{return J+""}catch{}}return""}function xo(J){return Ct(J,!0,!0)}function wn(J,Pe){return J===Pe||J!==J&&Pe!==Pe}function He(J){return er(J)&&pe.call(J,"callee")&&(!pt.call(J,"callee")||ue.call(J)==a)}var xt=Array.isArray;function ln(J){return J!=null&&la(J.length)&&!Ur(J)}function er(J){return Co(J)&&ln(J)}var vr=Sn||Qr;function Ur(J){var Pe=pa(J)?ue.call(J):"";return Pe==d||Pe==f}function la(J){return typeof J=="number"&&J>-1&&J%1==0&&J<=i}function pa(J){var Pe=typeof J;return!!J&&(Pe=="object"||Pe=="function")}function Co(J){return!!J&&typeof J=="object"}function ts(J){return ln(J)?nn(J):_r(J)}function di(){return[]}function Qr(){return!1}t.exports=xo}(E6,E6.exports);var az=E6.exports,I6={exports:{}};I6.exports,function(t,e){var n=200,r="__lodash_hash_undefined__",i=1,a=2,s=9007199254740991,l="[object Arguments]",c="[object Array]",u="[object AsyncFunction]",d="[object Boolean]",f="[object Date]",h="[object Error]",g="[object Function]",v="[object GeneratorFunction]",m="[object Map]",A="[object Number]",w="[object Null]",E="[object Object]",x="[object Promise]",C="[object Proxy]",S="[object RegExp]",_="[object Set]",I="[object String]",F="[object Symbol]",M="[object Undefined]",L="[object WeakMap]",V="[object ArrayBuffer]",U="[object DataView]",O="[object Float32Array]",q="[object Float64Array]",ie="[object Int8Array]",ge="[object Int16Array]",Z="[object Int32Array]",Q="[object Uint8Array]",ce="[object Uint8ClampedArray]",K="[object Uint16Array]",he="[object Uint32Array]",ee=/[\\^$.*+?()[\]{}|]/g,te=/^\[object .+?Constructor\]$/,Y=/^(?:0|[1-9]\d*)$/,R={};R[O]=R[q]=R[ie]=R[ge]=R[Z]=R[Q]=R[ce]=R[K]=R[he]=!0,R[l]=R[c]=R[V]=R[d]=R[U]=R[f]=R[h]=R[g]=R[m]=R[A]=R[E]=R[S]=R[_]=R[I]=R[L]=!1;var fe=typeof Di=="object"&&Di&&Di.Object===Object&&Di,be=typeof self=="object"&&self&&self.Object===Object&&self,Te=fe||be||Function("return this")(),ye=e&&!e.nodeType&&e,Ae=ye&&!0&&t&&!t.nodeType&&t,ne=Ae&&Ae.exports===ye,$=ne&&fe.process,re=function(){try{return $&&$.binding&&$.binding("util")}catch{}}(),W=re&&re.isTypedArray;function de(J,Pe){for(var nt=-1,Yt=J==null?0:J.length,wr=0,tr=[];++nt<Yt;){var Yr=J[nt];Pe(Yr,nt,J)&&(tr[wr++]=Yr)}return tr}function Ie(J,Pe){for(var nt=-1,Yt=Pe.length,wr=J.length;++nt<Yt;)J[wr+nt]=Pe[nt];return J}function Ee(J,Pe){for(var nt=-1,Yt=J==null?0:J.length;++nt<Yt;)if(Pe(J[nt],nt,J))return!0;return!1}function ve(J,Pe){for(var nt=-1,Yt=Array(J);++nt<J;)Yt[nt]=Pe(nt);return Yt}function me(J){return function(Pe){return J(Pe)}}function Se(J,Pe){return J.has(Pe)}function De(J,Pe){return J==null?void 0:J[Pe]}function j(J){var Pe=-1,nt=Array(J.size);return J.forEach(function(Yt,wr){nt[++Pe]=[wr,Yt]}),nt}function oe(J,Pe){return function(nt){return J(Pe(nt))}}function pe(J){var Pe=-1,nt=Array(J.size);return J.forEach(function(Yt){nt[++Pe]=Yt}),nt}var ue=Array.prototype,le=Function.prototype,se=Object.prototype,Oe=Te["__core-js_shared__"],Ne=le.toString,Ke=se.hasOwnProperty,ut=function(){var J=/[^.]+$/.exec(Oe&&Oe.keys&&Oe.keys.IE_PROTO||"");return J?"Symbol(src)_1."+J:""}(),pt=se.toString,ft=RegExp("^"+Ne.call(Ke).replace(ee,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),kt=ne?Te.Buffer:void 0,Sn=Te.Symbol,Vt=Te.Uint8Array,Nt=se.propertyIsEnumerable,$e=ue.splice,yt=Sn?Sn.toStringTag:void 0,qt=Object.getOwnPropertySymbols,dn=kt?kt.isBuffer:void 0,mn=oe(Object.keys,Object),En=en(Te,"DataView"),Vn=en(Te,"Map"),hn=en(Te,"Promise"),Jt=en(Te,"Set"),Xe=en(Te,"WeakMap"),tt=en(Object,"create"),ht=Vi(En),jt=Vi(Vn),yn=Vi(hn),qn=Vi(Jt),Gn=Vi(Xe),ir=Sn?Sn.prototype:void 0,Jn=ir?ir.valueOf:void 0;function mr(J){var Pe=-1,nt=J==null?0:J.length;for(this.clear();++Pe<nt;){var Yt=J[Pe];this.set(Yt[0],Yt[1])}}function gi(){this.__data__=tt?tt(null):{},this.size=0}function An(J){var Pe=this.has(J)&&delete this.__data__[J];return this.size-=Pe?1:0,Pe}function it(J){var Pe=this.__data__;if(tt){var nt=Pe[J];return nt===r?void 0:nt}return Ke.call(Pe,J)?Pe[J]:void 0}function ct(J){var Pe=this.__data__;return tt?Pe[J]!==void 0:Ke.call(Pe,J)}function At(J,Pe){var nt=this.__data__;return this.size+=this.has(J)?0:1,nt[J]=tt&&Pe===void 0?r:Pe,this}mr.prototype.clear=gi,mr.prototype.delete=An,mr.prototype.get=it,mr.prototype.has=ct,mr.prototype.set=At;function Mt(J){var Pe=-1,nt=J==null?0:J.length;for(this.clear();++Pe<nt;){var Yt=J[Pe];this.set(Yt[0],Yt[1])}}function Ut(){this.__data__=[],this.size=0}function mt(J){var Pe=this.__data__,nt=Dr(Pe,J);if(nt<0)return!1;var Yt=Pe.length-1;return nt==Yt?Pe.pop():$e.call(Pe,nt,1),--this.size,!0}function ot(J){var Pe=this.__data__,nt=Dr(Pe,J);return nt<0?void 0:Pe[nt][1]}function Ve(J){return Dr(this.__data__,J)>-1}function rt(J,Pe){var nt=this.__data__,Yt=Dr(nt,J);return Yt<0?(++this.size,nt.push([J,Pe])):nt[Yt][1]=Pe,this}Mt.prototype.clear=Ut,Mt.prototype.delete=mt,Mt.prototype.get=ot,Mt.prototype.has=Ve,Mt.prototype.set=rt;function Et(J){var Pe=-1,nt=J==null?0:J.length;for(this.clear();++Pe<nt;){var Yt=J[Pe];this.set(Yt[0],Yt[1])}}function zt(){this.size=0,this.__data__={hash:new mr,map:new(Vn||Mt),string:new mr}}function bt(J){var Pe=xi(this,J).delete(J);return this.size-=Pe?1:0,Pe}function Ue(J){return xi(this,J).get(J)}function Qe(J){return xi(this,J).has(J)}function Dt(J,Pe){var nt=xi(this,J),Yt=nt.size;return nt.set(J,Pe),this.size+=nt.size==Yt?0:1,this}Et.prototype.clear=zt,Et.prototype.delete=bt,Et.prototype.get=Ue,Et.prototype.has=Qe,Et.prototype.set=Dt;function nn(J){var Pe=-1,nt=J==null?0:J.length;for(this.__data__=new Et;++Pe<nt;)this.add(J[Pe])}function wt(J){return this.__data__.set(J,r),this}function Me(J){return this.__data__.has(J)}nn.prototype.add=nn.prototype.push=wt,nn.prototype.has=Me;function Ze(J){var Pe=this.__data__=new Mt(J);this.size=Pe.size}function Ct(){this.__data__=new Mt,this.size=0}function Ot(J){var Pe=this.__data__,nt=Pe.delete(J);return this.size=Pe.size,nt}function $t(J){return this.__data__.get(J)}function Pn(J){return this.__data__.has(J)}function Bn(J,Pe){var nt=this.__data__;if(nt instanceof Mt){var Yt=nt.__data__;if(!Vn||Yt.length<n-1)return Yt.push([J,Pe]),this.size=++nt.size,this;nt=this.__data__=new Et(Yt)}return nt.set(J,Pe),this.size=nt.size,this}Ze.prototype.clear=Ct,Ze.prototype.delete=Ot,Ze.prototype.get=$t,Ze.prototype.has=Pn,Ze.prototype.set=Bn;function _r(J,Pe){var nt=He(J),Yt=!nt&&wn(J),wr=!nt&&!Yt&&ln(J),tr=!nt&&!Yt&&!wr&&Co(J),Yr=nt||Yt||wr||tr,Tr=Yr?ve(J.length,String):[],Vr=Tr.length;for(var $r in J)Ke.call(J,$r)&&!(Yr&&($r=="length"||wr&&($r=="offset"||$r=="parent")||tr&&($r=="buffer"||$r=="byteLength"||$r=="byteOffset")||Wr($r,Vr)))&&Tr.push($r);return Tr}function Dr(J,Pe){for(var nt=J.length;nt--;)if(xo(J[nt][0],Pe))return nt;return-1}function hr(J,Pe,nt){var Yt=Pe(J);return He(J)?Yt:Ie(Yt,nt(J))}function kr(J){return J==null?J===void 0?M:w:yt&&yt in Object(J)?ze(J):_i(J)}function Kn(J){return pa(J)&&kr(J)==l}function kn(J,Pe,nt,Yt,wr){return J===Pe?!0:J==null||Pe==null||!pa(J)&&!pa(Pe)?J!==J&&Pe!==Pe:pr(J,Pe,nt,Yt,kn,wr)}function pr(J,Pe,nt,Yt,wr,tr){var Yr=He(J),Tr=He(Pe),Vr=Yr?c:Nn(J),$r=Tr?c:Nn(Pe);Vr=Vr==l?E:Vr,$r=$r==l?E:$r;var ti=Vr==E,ea=$r==E,Oi=Vr==$r;if(Oi&&ln(J)){if(!ln(Pe))return!1;Yr=!0,ti=!1}if(Oi&&!ti)return tr||(tr=new Ze),Yr||Co(J)?qi(J,Pe,nt,Yt,wr,tr):ja(J,Pe,Vr,nt,Yt,wr,tr);if(!(nt&i)){var Ai=ti&&Ke.call(J,"__wrapped__"),ji=ea&&Ke.call(Pe,"__wrapped__");if(Ai||ji){var Qs=Ai?J.value():J,Sa=ji?Pe.value():Pe;return tr||(tr=new Ze),wr(Qs,Sa,nt,Yt,tr)}}return Oi?(tr||(tr=new Ze),sr(J,Pe,nt,Yt,wr,tr)):!1}function Nr(J){if(!la(J)||Zi(J))return!1;var Pe=vr(J)?ft:te;return Pe.test(Vi(J))}function mi(J){return pa(J)&&Ur(J.length)&&!!R[kr(J)]}function Gr(J){if(!cs(J))return mn(J);var Pe=[];for(var nt in Object(J))Ke.call(J,nt)&&nt!="constructor"&&Pe.push(nt);return Pe}function qi(J,Pe,nt,Yt,wr,tr){var Yr=nt&i,Tr=J.length,Vr=Pe.length;if(Tr!=Vr&&!(Yr&&Vr>Tr))return!1;var $r=tr.get(J);if($r&&tr.get(Pe))return $r==Pe;var ti=-1,ea=!0,Oi=nt&a?new nn:void 0;for(tr.set(J,Pe),tr.set(Pe,J);++ti<Tr;){var Ai=J[ti],ji=Pe[ti];if(Yt)var Qs=Yr?Yt(ji,Ai,ti,Pe,J,tr):Yt(Ai,ji,ti,J,Pe,tr);if(Qs!==void 0){if(Qs)continue;ea=!1;break}if(Oi){if(!Ee(Pe,function(Sa,ca){if(!Se(Oi,ca)&&(Ai===Sa||wr(Ai,Sa,nt,Yt,tr)))return Oi.push(ca)})){ea=!1;break}}else if(!(Ai===ji||wr(Ai,ji,nt,Yt,tr))){ea=!1;break}}return tr.delete(J),tr.delete(Pe),ea}function ja(J,Pe,nt,Yt,wr,tr,Yr){switch(nt){case U:if(J.byteLength!=Pe.byteLength||J.byteOffset!=Pe.byteOffset)return!1;J=J.buffer,Pe=Pe.buffer;case V:return!(J.byteLength!=Pe.byteLength||!tr(new Vt(J),new Vt(Pe)));case d:case f:case A:return xo(+J,+Pe);case h:return J.name==Pe.name&&J.message==Pe.message;case S:case I:return J==Pe+"";case m:var Tr=j;case _:var Vr=Yt&i;if(Tr||(Tr=pe),J.size!=Pe.size&&!Vr)return!1;var $r=Yr.get(J);if($r)return $r==Pe;Yt|=a,Yr.set(J,Pe);var ti=qi(Tr(J),Tr(Pe),Yt,wr,tr,Yr);return Yr.delete(J),ti;case F:if(Jn)return Jn.call(J)==Jn.call(Pe)}return!1}function sr(J,Pe,nt,Yt,wr,tr){var Yr=nt&i,Tr=$i(J),Vr=Tr.length,$r=$i(Pe),ti=$r.length;if(Vr!=ti&&!Yr)return!1;for(var ea=Vr;ea--;){var Oi=Tr[ea];if(!(Yr?Oi in Pe:Ke.call(Pe,Oi)))return!1}var Ai=tr.get(J);if(Ai&&tr.get(Pe))return Ai==Pe;var ji=!0;tr.set(J,Pe),tr.set(Pe,J);for(var Qs=Yr;++ea<Vr;){Oi=Tr[ea];var Sa=J[Oi],ca=Pe[Oi];if(Yt)var za=Yr?Yt(ca,Sa,Oi,Pe,J,tr):Yt(Sa,ca,Oi,J,Pe,tr);if(!(za===void 0?Sa===ca||wr(Sa,ca,nt,Yt,tr):za)){ji=!1;break}Qs||(Qs=Oi=="constructor")}if(ji&&!Qs){var Is=J.constructor,Ci=Pe.constructor;Is!=Ci&&"constructor"in J&&"constructor"in Pe&&!(typeof Is=="function"&&Is instanceof Is&&typeof Ci=="function"&&Ci instanceof Ci)&&(ji=!1)}return tr.delete(J),tr.delete(Pe),ji}function $i(J){return hr(J,ts,Gt)}function xi(J,Pe){var nt=J.__data__;return si(Pe)?nt[typeof Pe=="string"?"string":"hash"]:nt.map}function en(J,Pe){var nt=De(J,Pe);return Nr(nt)?nt:void 0}function ze(J){var Pe=Ke.call(J,yt),nt=J[yt];try{J[yt]=void 0;var Yt=!0}catch{}var wr=pt.call(J);return Yt&&(Pe?J[yt]=nt:delete J[yt]),wr}var Gt=qt?function(J){return J==null?[]:(J=Object(J),de(qt(J),function(Pe){return Nt.call(J,Pe)}))}:di,Nn=kr;(En&&Nn(new En(new ArrayBuffer(1)))!=U||Vn&&Nn(new Vn)!=m||hn&&Nn(hn.resolve())!=x||Jt&&Nn(new Jt)!=_||Xe&&Nn(new Xe)!=L)&&(Nn=function(J){var Pe=kr(J),nt=Pe==E?J.constructor:void 0,Yt=nt?Vi(nt):"";if(Yt)switch(Yt){case ht:return U;case jt:return m;case yn:return x;case qn:return _;case Gn:return L}return Pe});function Wr(J,Pe){return Pe=Pe??s,!!Pe&&(typeof J=="number"||Y.test(J))&&J>-1&&J%1==0&&J<Pe}function si(J){var Pe=typeof J;return Pe=="string"||Pe=="number"||Pe=="symbol"||Pe=="boolean"?J!=="__proto__":J===null}function Zi(J){return!!ut&&ut in J}function cs(J){var Pe=J&&J.constructor,nt=typeof Pe=="function"&&Pe.prototype||se;return J===nt}function _i(J){return pt.call(J)}function Vi(J){if(J!=null){try{return Ne.call(J)}catch{}try{return J+""}catch{}}return""}function xo(J,Pe){return J===Pe||J!==J&&Pe!==Pe}var wn=Kn(function(){return arguments}())?Kn:function(J){return pa(J)&&Ke.call(J,"callee")&&!Nt.call(J,"callee")},He=Array.isArray;function xt(J){return J!=null&&Ur(J.length)&&!vr(J)}var ln=dn||Qr;function er(J,Pe){return kn(J,Pe)}function vr(J){if(!la(J))return!1;var Pe=kr(J);return Pe==g||Pe==v||Pe==u||Pe==C}function Ur(J){return typeof J=="number"&&J>-1&&J%1==0&&J<=s}function la(J){var Pe=typeof J;return J!=null&&(Pe=="object"||Pe=="function")}function pa(J){return J!=null&&typeof J=="object"}var Co=W?me(W):mi;function ts(J){return xt(J)?_r(J):Gr(J)}function di(){return[]}function Qr(){return!1}t.exports=er}(I6,I6.exports);var sz=I6.exports,ax={};Object.defineProperty(ax,"__esModule",{value:!0});const sEe=az,oEe=sz;var sx;(function(t){function e(a={},s={},l=!1){typeof a!="object"&&(a={}),typeof s!="object"&&(s={});let c=sEe(s);l||(c=Object.keys(c).reduce((u,d)=>(c[d]!=null&&(u[d]=c[d]),u),{}));for(const u in a)a[u]!==void 0&&s[u]===void 0&&(c[u]=a[u]);return Object.keys(c).length>0?c:void 0}t.compose=e;function n(a={},s={}){typeof a!="object"&&(a={}),typeof s!="object"&&(s={});const l=Object.keys(a).concat(Object.keys(s)).reduce((c,u)=>(oEe(a[u],s[u])||(c[u]=s[u]===void 0?null:s[u]),c),{});return Object.keys(l).length>0?l:void 0}t.diff=n;function r(a={},s={}){a=a||{};const l=Object.keys(s).reduce((c,u)=>(s[u]!==a[u]&&a[u]!==void 0&&(c[u]=s[u]),c),{});return Object.keys(a).reduce((c,u)=>(a[u]!==s[u]&&s[u]===void 0&&(c[u]=null),c),l)}t.invert=r;function i(a,s,l=!1){if(typeof a!="object")return s;if(typeof s!="object")return;if(!l)return s;const c=Object.keys(s).reduce((u,d)=>(a[d]===void 0&&(u[d]=s[d]),u),{});return Object.keys(c).length>0?c:void 0}t.transform=i})(sx||(sx={})),ax.default=sx;var _6={};Object.defineProperty(_6,"__esModule",{value:!0});var ox;(function(t){function e(n){return typeof n.delete=="number"?n.delete:typeof n.retain=="number"?n.retain:typeof n.retain=="object"&&n.retain!==null?1:typeof n.insert=="string"?n.insert.length:1}t.length=e})(ox||(ox={})),_6.default=ox;var lx={};Object.defineProperty(lx,"__esModule",{value:!0});const oz=_6;class lEe{constructor(e){this.ops=e,this.index=0,this.offset=0}hasNext(){return this.peekLength()<1/0}next(e){e||(e=1/0);const n=this.ops[this.index];if(n){const r=this.offset,i=oz.default.length(n);if(e>=i-r?(e=i-r,this.index+=1,this.offset=0):this.offset+=e,typeof n.delete=="number")return{delete:e};{const a={};return n.attributes&&(a.attributes=n.attributes),typeof n.retain=="number"?a.retain=e:typeof n.retain=="object"&&n.retain!==null?a.retain=n.retain:typeof n.insert=="string"?a.insert=n.insert.substr(r,e):a.insert=n.insert,a}}else return{retain:1/0}}peek(){return this.ops[this.index]}peekLength(){return this.ops[this.index]?oz.default.length(this.ops[this.index])-this.offset:1/0}peekType(){const e=this.ops[this.index];return e?typeof e.delete=="number"?"delete":typeof e.retain=="number"||typeof e.retain=="object"&&e.retain!==null?"retain":"insert":"retain"}rest(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);{const e=this.offset,n=this.index,r=this.next(),i=this.ops.slice(this.index);return this.offset=e,this.index=n,[r].concat(i)}}else return[]}}lx.default=lEe,function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.AttributeMap=e.OpIterator=e.Op=void 0;const n=aEe,r=az,i=sz,a=ax;e.AttributeMap=a.default;const s=_6;e.Op=s.default;const l=lx;e.OpIterator=l.default;const c="\0",u=(f,h)=>{if(typeof f!="object"||f===null)throw new Error(`cannot retain a ${typeof f}`);if(typeof h!="object"||h===null)throw new Error(`cannot retain a ${typeof h}`);const g=Object.keys(f)[0];if(!g||g!==Object.keys(h)[0])throw new Error(`embed types not matched: ${g} != ${Object.keys(h)[0]}`);return[g,f[g],h[g]]};class d{constructor(h){Array.isArray(h)?this.ops=h:h!=null&&Array.isArray(h.ops)?this.ops=h.ops:this.ops=[]}static registerEmbed(h,g){this.handlers[h]=g}static unregisterEmbed(h){delete this.handlers[h]}static getHandler(h){const g=this.handlers[h];if(!g)throw new Error(`no handlers for embed type "${h}"`);return g}insert(h,g){const v={};return typeof h=="string"&&h.length===0?this:(v.insert=h,g!=null&&typeof g=="object"&&Object.keys(g).length>0&&(v.attributes=g),this.push(v))}delete(h){return h<=0?this:this.push({delete:h})}retain(h,g){if(typeof h=="number"&&h<=0)return this;const v={retain:h};return g!=null&&typeof g=="object"&&Object.keys(g).length>0&&(v.attributes=g),this.push(v)}push(h){let g=this.ops.length,v=this.ops[g-1];if(h=r(h),typeof v=="object"){if(typeof h.delete=="number"&&typeof v.delete=="number")return this.ops[g-1]={delete:v.delete+h.delete},this;if(typeof v.delete=="number"&&h.insert!=null&&(g-=1,v=this.ops[g-1],typeof v!="object"))return this.ops.unshift(h),this;if(i(h.attributes,v.attributes)){if(typeof h.insert=="string"&&typeof v.insert=="string")return this.ops[g-1]={insert:v.insert+h.insert},typeof h.attributes=="object"&&(this.ops[g-1].attributes=h.attributes),this;if(typeof h.retain=="number"&&typeof v.retain=="number")return this.ops[g-1]={retain:v.retain+h.retain},typeof h.attributes=="object"&&(this.ops[g-1].attributes=h.attributes),this}}return g===this.ops.length?this.ops.push(h):this.ops.splice(g,0,h),this}chop(){const h=this.ops[this.ops.length-1];return h&&typeof h.retain=="number"&&!h.attributes&&this.ops.pop(),this}filter(h){return this.ops.filter(h)}forEach(h){this.ops.forEach(h)}map(h){return this.ops.map(h)}partition(h){const g=[],v=[];return this.forEach(m=>{(h(m)?g:v).push(m)}),[g,v]}reduce(h,g){return this.ops.reduce(h,g)}changeLength(){return this.reduce((h,g)=>g.insert?h+s.default.length(g):g.delete?h-g.delete:h,0)}length(){return this.reduce((h,g)=>h+s.default.length(g),0)}slice(h=0,g=1/0){const v=[],m=new l.default(this.ops);let A=0;for(;A<g&&m.hasNext();){let w;A<h?w=m.next(h-A):(w=m.next(g-A),v.push(w)),A+=s.default.length(w)}return new d(v)}compose(h){const g=new l.default(this.ops),v=new l.default(h.ops),m=[],A=v.peek();if(A!=null&&typeof A.retain=="number"&&A.attributes==null){let E=A.retain;for(;g.peekType()==="insert"&&g.peekLength()<=E;)E-=g.peekLength(),m.push(g.next());A.retain-E>0&&v.next(A.retain-E)}const w=new d(m);for(;g.hasNext()||v.hasNext();)if(v.peekType()==="insert")w.push(v.next());else if(g.peekType()==="delete")w.push(g.next());else{const E=Math.min(g.peekLength(),v.peekLength()),x=g.next(E),C=v.next(E);if(C.retain){const S={};if(typeof x.retain=="number")S.retain=typeof C.retain=="number"?E:C.retain;else if(typeof C.retain=="number")x.retain==null?S.insert=x.insert:S.retain=x.retain;else{const I=x.retain==null?"insert":"retain",[F,M,L]=u(x[I],C.retain),V=d.getHandler(F);S[I]={[F]:V.compose(M,L,I==="retain")}}const _=a.default.compose(x.attributes,C.attributes,typeof x.retain=="number");if(_&&(S.attributes=_),w.push(S),!v.hasNext()&&i(w.ops[w.ops.length-1],S)){const I=new d(g.rest());return w.concat(I).chop()}}else typeof C.delete=="number"&&(typeof x.retain=="number"||typeof x.retain=="object"&&x.retain!==null)&&w.push(C)}return w.chop()}concat(h){const g=new d(this.ops.slice());return h.ops.length>0&&(g.push(h.ops[0]),g.ops=g.ops.concat(h.ops.slice(1))),g}diff(h,g){if(this.ops===h.ops)return new d;const v=[this,h].map(x=>x.map(C=>{if(C.insert!=null)return typeof C.insert=="string"?C.insert:c;const S=x===h?"on":"with";throw new Error("diff() called "+S+" non-document")}).join("")),m=new d,A=n(v[0],v[1],g,!0),w=new l.default(this.ops),E=new l.default(h.ops);return A.forEach(x=>{let C=x[1].length;for(;C>0;){let S=0;switch(x[0]){case n.INSERT:S=Math.min(E.peekLength(),C),m.push(E.next(S));break;case n.DELETE:S=Math.min(C,w.peekLength()),w.next(S),m.delete(S);break;case n.EQUAL:S=Math.min(w.peekLength(),E.peekLength(),C);const _=w.next(S),I=E.next(S);i(_.insert,I.insert)?m.retain(S,a.default.diff(_.attributes,I.attributes)):m.push(I).delete(S);break}C-=S}}),m.chop()}eachLine(h,g=`
4373
+ `,XCe={spinner:function(e){var n=e.props;return{animationDuration:n.animationDuration}}},b6=Mn.extend({defaultProps:{__TYPE:"ProgressSpinner",id:null,style:null,className:null,strokeWidth:"2",fill:"none",animationDuration:"2s",children:void 0},css:{classes:YCe,styles:KCe,inlineStyles:XCe}}),Fj=b.memo(b.forwardRef(function(t,e){var n=Un(),r=b.useContext(nr),i=b6.getProps(t,r),a=b.useRef(null),s=b6.setMetaData({props:i}),l=s.ptm,c=s.cx,u=s.sx,d=s.isUnstyled;ci(b6.css.styles,d,{name:"progressspinner"}),b.useImperativeHandle(e,function(){return{props:i,getElement:function(){return a.current}}});var f=n({id:i.id,ref:a,style:i.style,className:dt(i.className,c("root")),role:"progressbar","aria-busy":!0},b6.getOtherProps(i),l("root")),h=n({className:c("spinner"),viewBox:"25 25 50 50",style:u("spinner")},l("spinner")),g=n({className:c("circle"),cx:"50",cy:"50",r:"20",fill:i.fill,strokeWidth:i.strokeWidth,strokeMiterlimit:"10"},l("circle"));return b.createElement("div",f,b.createElement("svg",h,b.createElement("circle",g)))}));Fj.displayName="ProgressSpinner";const RCe=()=>{const{renderType:t,componentList:e,sectionsList:n,exam:r}=Qt(),{userSelectedLanguage:i,formBuilderFormLayout:a}=on(),s=4,l=0,c=1,u=2,d=5,f=()=>{const U=t;let O=0;return U===t0?O=s:U===jm?O=d:U===$m||U===g9||U===vf?O=u:U===Q0||U===Op?O=c:U===mf&&(O=l),O},h=P.useRef(),g=r!=null&&r.getPaginatedAssessmentQuestionBankList?r==null?void 0:r.getPaginatedAssessmentQuestionBankList:()=>{},v=r!=null&&r.getPaginatedAssessmentQuestionBankListFromStore?r==null?void 0:r.getPaginatedAssessmentQuestionBankListFromStore:[],m=r!=null&&r.updateQuestionBankStates?r==null?void 0:r.updateQuestionBankStates:()=>{},A=r!=null&&r.assessmentSearchFilterCourseCategoryId?r==null?void 0:r.assessmentSearchFilterCourseCategoryId:null,w=r!=null&&r.assessmentSearchFilterCourseSubjectId?r==null?void 0:r.assessmentSearchFilterCourseSubjectId:null,E=r!=null&&r.AssessmentQuestionBankLoading?r==null?void 0:r.AssessmentQuestionBankLoading:!1,x=r!=null&&r.AssessmentQuestionBankPaginator?r==null?void 0:r.AssessmentQuestionBankPaginator:()=>o.jsx(o.Fragment,{}),C=r!=null&&r.courseCategoryList?r==null?void 0:r.courseCategoryList:[],S=r!=null&&r.getCourseCategoryList?r==null?void 0:r.getCourseCategoryList:()=>{},_=r!=null&&r.subjectList?r==null?void 0:r.subjectList:[],I=r!=null&&r.getSubjectList?r==null?void 0:r.getSubjectList:()=>{},[F,M]=P.useState([]);P.useEffect(()=>(t===t0&&(S(),I()),()=>{}),[]);const L=P.useCallback(()=>{const U=v.map(O=>{var ge;const q=JSON.parse(O.question_meta_data),ie=JSON.parse(O.meta_data);return{label:(ge=q==null?void 0:q.questionText)==null?void 0:ge[i==null?void 0:i.type],icon:"pi pi-fw pi-trash",element:"radio",schema:{uuid:et(),componentType:"question",questionText:q==null?void 0:q.questionText,questionTextImage:ie==null?void 0:ie.questionImage,answerInputType:q!=null&&q.answerInputType?q==null?void 0:q.answerInputType:"radio",answerOptions:q==null?void 0:q.answerOptions,isHidden:!1,subject_title:O==null?void 0:O.subject_title,course_category_title:O==null?void 0:O.course_category_title,subject_id:O==null?void 0:O.subject_id,course_category_id:O==null?void 0:O.course_category_id,created_by_id:null,date_created:O==null?void 0:O.created_at},subject_title:O==null?void 0:O.subject_title,course_category_title:O==null?void 0:O.course_category_title,uuid:et(),type:Rn,componentType:"question"}});M(U)},[v,i==null?void 0:i.type]);P.useEffect(()=>{L()},[v,L]);const V=()=>{h.current&&h.current};return P.useEffect(()=>(t===t0&&g(),()=>{}),[A,w]),o.jsx(o.Fragment,{children:o.jsxs(Za,{activeIndex:f(),scrollable:!0,children:[t===mf&&o.jsx(fr,{header:"Survey",children:vQ.map((U,O)=>o.jsx(ui,{header:U==null?void 0:U.label,toggleable:!0,style:{marginBottom:10},children:o.jsx("div",{className:"grid",children:U==null?void 0:U.items.map((q,ie)=>o.jsx("div",{className:"xl:col-6 lg:col-12 md:col-12 sm:col-12",children:o.jsx(Bd,{data:q},q.uuid)},"form_elements_"+ie))})},`pannel-tab-${O}`))}),(t===Q0||t===Op)&&o.jsx(fr,{header:"Form",children:gQ.map((U,O)=>o.jsx(ui,{header:U==null?void 0:U.label,toggleable:!0,style:{marginBottom:10},children:o.jsx("div",{className:"grid",children:U==null?void 0:U.items.map((q,ie)=>o.jsx("div",{className:"xl:col-6 lg:col-12 md:col-12 sm:col-12",children:o.jsx(Bd,{data:q},q.uuid)},"form_elements_"+ie))})},`pannel-tab-${O}`))}),(t===$m||t===g9||t===vf)&&o.jsx(fr,{header:"Layout",children:hK.map((U,O)=>o.jsx(ui,{header:U==null?void 0:U.label,toggleable:!0,style:{marginBottom:10},children:o.jsx("div",{className:"grid",children:U==null?void 0:U.items.map((q,ie)=>o.jsx("div",{className:"col-6",children:o.jsx(Bd,{data:q},q.uuid)},"form_elements_"+ie))})},`pannel-tab-${O}`))}),(t===mf||t===Q0||t===Op)&&o.jsx(fr,{header:"Layout",children:mQ.map((U,O)=>o.jsx(ui,{header:U==null?void 0:U.label,toggleable:!0,style:{marginBottom:10},children:o.jsx("div",{className:"grid",children:U==null?void 0:U.items.map((q,ie)=>o.jsx("div",{className:"col-6",children:o.jsx(Bd,{data:q},q.uuid)},"form_elements_"+ie))})},`pannel-tab-${O}`))}),t===t0&&o.jsx(fr,{header:"Question bank",children:o.jsxs("div",{className:"grid",children:[o.jsx("div",{className:"col-12",children:fK.map((U,O)=>o.jsx("div",{className:"grid",children:U==null?void 0:U.items.map((q,ie)=>{const ge=It.cloneDeep(q);return o.jsx("div",{className:"col-6",children:o.jsx(Bd,{data:ge},q.uuid)},"form_elements_"+ie)})},`new-quiz-${O}`))}),o.jsxs("div",{className:"col-12 ",children:[o.jsxs("div",{className:"p-inputgroup",children:[o.jsx(bn,{placeholder:"Keyword"}),o.jsx(Ft,{icon:"pi pi-search",className:"p-button-info"})]}),o.jsx("div",{className:"field mt-3 w-full",children:o.jsx(ya,{id:"subject",name:"subject",optionLabel:"subject_title",value:w,placeholder:"Select a Subject",options:_,className:"w-full",onChange:U=>{m({subject_id:U==null?void 0:U.value})}})}),o.jsx("div",{className:"field",children:o.jsx(ya,{id:"course_category",name:"course_category",optionLabel:"course_category_title",value:A,placeholder:"Select a category",options:C,className:"w-full",onChange:U=>{m({course_category_id:U==null?void 0:U.value})}})})]}),E?o.jsx(Fj,{}):o.jsx("div",{className:"scroll-height-500 w-full",children:F.map((U,O)=>{var q,ie,ge,Z,Q;return o.jsx("div",{onScroll:V,ref:h,className:"col-12 ",children:o.jsx(Bd,{tags:[{severity:"success",label:U==null?void 0:U.subject_title},{severity:"info",label:U==null?void 0:U.course_category_title}],showIcon:(Q=(Z=(ge=(ie=(q=a[0])==null?void 0:q.children[0])==null?void 0:ie.children[0])==null?void 0:ge.children[0])==null?void 0:Z.children)==null?void 0:Q.some(ce=>{var K,he,ee;return((K=ce==null?void 0:ce.questionText)==null?void 0:K[i.type])===((ee=(he=U==null?void 0:U.schema)==null?void 0:he.questionText)==null?void 0:ee[i.type])}),data:U},O)},"question_elements_"+O)})}),o.jsx(x,{})]})}),t===jm&&o.jsx(fr,{header:"Training",children:bQ.map((U,O)=>o.jsx(ui,{header:U==null?void 0:U.label,toggleable:!0,style:{marginBottom:10},children:o.jsx("div",{className:"grid",children:U==null?void 0:U.items.map((q,ie)=>o.jsx("div",{className:"col-6",children:o.jsx(Bd,{data:q},q.uuid)},"form_elements_"+ie))})},`pannel-tab-${O}`))}),(t===mf||t===Q0||t===Op)&&o.jsxs(fr,{header:"Custom",children:[o.jsx("h6",{children:"Custom Sections"}),o.jsx("div",{className:"grid",children:(n==null?void 0:n.length)>0&&n.map((U,O)=>o.jsx("div",{className:"col-6",children:o.jsx(Bd,{data:{label:U==null?void 0:U.builder_element_title,element:"reusable_builder_section",schema:U==null?void 0:U.reusable_template_schema,uuid:et(),type:na}},U.uuid)},"reusable_elements_"+O))}),o.jsx("h6",{children:"Custom Matrix"}),o.jsx("div",{className:"grid",children:(e==null?void 0:e.length)>0&&e.map((U,O)=>o.jsx("div",{className:"col-6",children:o.jsx(Bd,{data:{label:U==null?void 0:U.custom_component_title,element:"custom_component",schema:JSON.parse(U==null?void 0:U.custom_component_schema),uuid:et(),type:Rn}},U.uuid)},"custom_component"+O))})]})]})})};function kj(t){return t}function GCe(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}var WCe=800,QCe=16,JCe=Date.now;function ZCe(t){var e=0,n=0;return function(){var r=JCe(),i=QCe-(r-n);if(n=r,i>0){if(++e>=WCe)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}function eTe(t){return function(){return t}}var tTe=a4?function(t,e){return a4(t,"toString",{configurable:!0,enumerable:!1,value:eTe(e),writable:!0})}:kj,nTe=ZCe(tTe),Pj=Math.max;function rTe(t,e,n){return e=Pj(e===void 0?t.length-1:e,0),function(){for(var r=arguments,i=-1,a=Pj(r.length-e,0),s=Array(a);++i<a;)s[i]=r[e+i];i=-1;for(var l=Array(e+1);++i<e;)l[i]=r[i];return l[e]=n(s),GCe(t,this,l)}}function iTe(t,e){return nTe(rTe(t,e,kj),t+"")}function aTe(t,e,n){if(!u0(n))return!1;var r=typeof e;return(r=="number"?s4(n)&&_N(e,n.length):r=="string"&&e in n)?C2(n[e],t):!1}function sTe(t){return iTe(function(e,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,s=i>2?n[2]:void 0;for(a=t.length>3&&typeof a=="function"?(i--,a):void 0,s&&aTe(n[0],n[1],s)&&(a=i<3?void 0:a,i=1),e=Object(e);++r<i;){var l=n[r];l&&t(e,l,r,a)}return e})}var oTe="__lodash_hash_undefined__";function lTe(t){return this.__data__.set(t,oTe),this}function cTe(t){return this.__data__.has(t)}function y6(t){var e=-1,n=t==null?0:t.length;for(this.__data__=new dd;++e<n;)this.add(t[e])}y6.prototype.add=y6.prototype.push=lTe,y6.prototype.has=cTe;function uTe(t,e){for(var n=-1,r=t==null?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}function dTe(t,e){return t.has(e)}var fTe=1,hTe=2;function Mj(t,e,n,r,i,a){var s=n&fTe,l=t.length,c=e.length;if(l!=c&&!(s&&c>l))return!1;var u=a.get(t),d=a.get(e);if(u&&d)return u==e&&d==t;var f=-1,h=!0,g=n&hTe?new y6:void 0;for(a.set(t,e),a.set(e,t);++f<l;){var v=t[f],m=e[f];if(r)var A=s?r(m,v,f,e,t,a):r(v,m,f,t,e,a);if(A!==void 0){if(A)continue;h=!1;break}if(g){if(!uTe(e,function(w,E){if(!dTe(g,E)&&(v===w||i(v,w,n,r,a)))return g.push(E)})){h=!1;break}}else if(!(v===m||i(v,m,n,r,a))){h=!1;break}}return a.delete(t),a.delete(e),h}function pTe(t){var e=-1,n=Array(t.size);return t.forEach(function(r,i){n[++e]=[i,r]}),n}function gTe(t){var e=-1,n=Array(t.size);return t.forEach(function(r){n[++e]=r}),n}var mTe=1,vTe=2,bTe="[object Boolean]",yTe="[object Date]",ATe="[object Error]",wTe="[object Map]",STe="[object Number]",xTe="[object RegExp]",CTe="[object Set]",TTe="[object String]",ETe="[object Symbol]",ITe="[object ArrayBuffer]",_Te="[object DataView]",Lj=yu?yu.prototype:void 0,KS=Lj?Lj.valueOf:void 0;function DTe(t,e,n,r,i,a,s){switch(n){case _Te:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case ITe:return!(t.byteLength!=e.byteLength||!a(new o4(t),new o4(e)));case bTe:case yTe:case STe:return C2(+t,+e);case ATe:return t.name==e.name&&t.message==e.message;case xTe:case TTe:return t==e+"";case wTe:var l=pTe;case CTe:var c=r&mTe;if(l||(l=gTe),t.size!=e.size&&!c)return!1;var u=s.get(t);if(u)return u==e;r|=vTe,s.set(t,e);var d=Mj(l(t),l(e),r,i,a,s);return s.delete(t),d;case ETe:if(KS)return KS.call(t)==KS.call(e)}return!1}var NTe=1,OTe=Object.prototype,FTe=OTe.hasOwnProperty;function kTe(t,e,n,r,i,a){var s=n&NTe,l=nb(t),c=l.length,u=nb(e),d=u.length;if(c!=d&&!s)return!1;for(var f=c;f--;){var h=l[f];if(!(s?h in e:FTe.call(e,h)))return!1}var g=a.get(t),v=a.get(e);if(g&&v)return g==e&&v==t;var m=!0;a.set(t,e),a.set(e,t);for(var A=s;++f<c;){h=l[f];var w=t[h],E=e[h];if(r)var x=s?r(E,w,h,e,t,a):r(w,E,h,t,e,a);if(!(x===void 0?w===E||i(w,E,n,r,a):x)){m=!1;break}A||(A=h=="constructor")}if(m&&!A){var C=t.constructor,S=e.constructor;C!=S&&"constructor"in t&&"constructor"in e&&!(typeof C=="function"&&C instanceof C&&typeof S=="function"&&S instanceof S)&&(m=!1)}return a.delete(t),a.delete(e),m}var PTe=1,Bj="[object Arguments]",Vj="[object Array]",A6="[object Object]",MTe=Object.prototype,Uj=MTe.hasOwnProperty;function LTe(t,e,n,r,i,a){var s=fd(t),l=fd(e),c=s?Vj:Vc(t),u=l?Vj:Vc(e);c=c==Bj?A6:c,u=u==Bj?A6:u;var d=c==A6,f=u==A6,h=c==u;if(h&&_2(t)){if(!_2(e))return!1;s=!0,d=!1}if(h&&!d)return a||(a=new wu),s||Q7(t)?Mj(t,e,n,r,i,a):DTe(t,e,c,n,r,i,a);if(!(n&PTe)){var g=d&&Uj.call(t,"__wrapped__"),v=f&&Uj.call(e,"__wrapped__");if(g||v){var m=g?t.value():t,A=v?e.value():e;return a||(a=new wu),i(m,A,n,r,a)}}return h?(a||(a=new wu),kTe(t,e,n,r,i,a)):!1}function qj(t,e,n,r,i){return t===e?!0:t==null||e==null||!Au(t)&&!Au(e)?t!==t&&e!==e:LTe(t,e,n,r,qj,i)}function BTe(t){return function(e,n,r){for(var i=-1,a=Object(e),s=r(e),l=s.length;l--;){var c=s[++i];if(n(a[c],c,a)===!1)break}return e}}var VTe=BTe();function XS(t,e,n){(n!==void 0&&!C2(t[e],n)||n===void 0&&!(e in t))&&X7(t,e,n)}function UTe(t){return Au(t)&&s4(t)}function RS(t,e){if(!(e==="constructor"&&typeof t[e]=="function")&&e!="__proto__")return t[e]}function qTe(t){return I2(t,N2(t))}function $Te(t,e,n,r,i,a,s){var l=RS(t,n),c=RS(e,n),u=s.get(c);if(u){XS(t,n,u);return}var d=a?a(l,c,n+"",t,e,s):void 0,f=d===void 0;if(f){var h=fd(c),g=!h&&_2(c),v=!h&&!g&&Q7(c);d=c,h||g||v?fd(l)?d=l:UTe(l)?d=eb(l):g?(f=!1,d=BN(c,!0)):v?(f=!1,d=WN(c,!0)):d=[]:H7(c)||R7(c)?(d=l,R7(l)?d=qTe(l):(!u0(l)||Y7(l))&&(d=JN(c))):f=!1}f&&(s.set(c,d),i(d,c,r,a,s),s.delete(c)),XS(t,n,d)}function $j(t,e,n,r,i){t!==e&&VTe(e,function(a,s){if(i||(i=new wu),u0(a))$Te(t,e,s,n,$j,r,i);else{var l=r?r(RS(t,s),a,s+"",t,e,i):void 0;l===void 0&&(l=a),XS(t,s,l)}},N2)}function GS(t,e){return qj(t,e)}var O0=sTe(function(t,e,n){$j(t,e,n)}),ar=(t=>(t[t.TYPE=3]="TYPE",t[t.LEVEL=12]="LEVEL",t[t.ATTRIBUTE=13]="ATTRIBUTE",t[t.BLOT=14]="BLOT",t[t.INLINE=7]="INLINE",t[t.BLOCK=11]="BLOCK",t[t.BLOCK_BLOT=10]="BLOCK_BLOT",t[t.INLINE_BLOT=6]="INLINE_BLOT",t[t.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",t[t.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",t[t.ANY=15]="ANY",t))(ar||{});class Hu{constructor(e,n,r={}){this.attrName=e,this.keyName=n;const i=ar.TYPE&ar.ATTRIBUTE;this.scope=r.scope!=null?r.scope&ar.LEVEL|i:ar.ATTRIBUTE,r.whitelist!=null&&(this.whitelist=r.whitelist)}static keys(e){return Array.from(e.attributes).map(n=>n.name)}add(e,n){return this.canAdd(e,n)?(e.setAttribute(this.keyName,n),!0):!1}canAdd(e,n){return this.whitelist==null?!0:typeof n=="string"?this.whitelist.indexOf(n.replace(/["']/g,""))>-1:this.whitelist.indexOf(n)>-1}remove(e){e.removeAttribute(this.keyName)}value(e){const n=e.getAttribute(this.keyName);return this.canAdd(e,n)&&n?n:""}}class op extends Error{constructor(e){e="[Parchment] "+e,super(e),this.message=e,this.name=this.constructor.name}}const jj=class MC{constructor(){this.attributes={},this.classes={},this.tags={},this.types={}}static find(e,n=!1){if(e==null)return null;if(this.blots.has(e))return this.blots.get(e)||null;if(n){let r=null;try{r=e.parentNode}catch{return null}return this.find(r,n)}return null}create(e,n,r){const i=this.query(n);if(i==null)throw new op(`Unable to create ${n} blot`);const a=i,s=n instanceof Node||n.nodeType===Node.TEXT_NODE?n:a.create(r),l=new a(e,s,r);return MC.blots.set(l.domNode,l),l}find(e,n=!1){return MC.find(e,n)}query(e,n=ar.ANY){let r;return typeof e=="string"?r=this.types[e]||this.attributes[e]:e instanceof Text||e.nodeType===Node.TEXT_NODE?r=this.types.text:typeof e=="number"?e&ar.LEVEL&ar.BLOCK?r=this.types.block:e&ar.LEVEL&ar.INLINE&&(r=this.types.inline):e instanceof Element&&((e.getAttribute("class")||"").split(/\s+/).some(i=>(r=this.classes[i],!!r)),r=r||this.tags[e.tagName]),r==null?null:"scope"in r&&n&ar.LEVEL&r.scope&&n&ar.TYPE&r.scope?r:null}register(...e){return e.map(n=>{const r="blotName"in n,i="attrName"in n;if(!r&&!i)throw new op("Invalid definition");if(r&&n.blotName==="abstract")throw new op("Cannot register abstract class");const a=r?n.blotName:i?n.attrName:void 0;return this.types[a]=n,i?typeof n.keyName=="string"&&(this.attributes[n.keyName]=n):r&&(n.className&&(this.classes[n.className]=n),n.tagName&&(Array.isArray(n.tagName)?n.tagName=n.tagName.map(s=>s.toUpperCase()):n.tagName=n.tagName.toUpperCase(),(Array.isArray(n.tagName)?n.tagName:[n.tagName]).forEach(s=>{(this.tags[s]==null||n.className==null)&&(this.tags[s]=n)}))),n})}};jj.blots=new WeakMap;let lp=jj;function zj(t,e){return(t.getAttribute("class")||"").split(/\s+/).filter(n=>n.indexOf(`${e}-`)===0)}class jTe extends Hu{static keys(e){return(e.getAttribute("class")||"").split(/\s+/).map(n=>n.split("-").slice(0,-1).join("-"))}add(e,n){return this.canAdd(e,n)?(this.remove(e),e.classList.add(`${this.keyName}-${n}`),!0):!1}remove(e){zj(e,this.keyName).forEach(n=>{e.classList.remove(n)}),e.classList.length===0&&e.removeAttribute("class")}value(e){const n=(zj(e,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(e,n)?n:""}}const nu=jTe;function WS(t){const e=t.split("-"),n=e.slice(1).map(r=>r[0].toUpperCase()+r.slice(1)).join("");return e[0]+n}class zTe extends Hu{static keys(e){return(e.getAttribute("style")||"").split(";").map(n=>n.split(":")[0].trim())}add(e,n){return this.canAdd(e,n)?(e.style[WS(this.keyName)]=n,!0):!1}remove(e){e.style[WS(this.keyName)]="",e.getAttribute("style")||e.removeAttribute("style")}value(e){const n=e.style[WS(this.keyName)];return this.canAdd(e,n)?n:""}}const F0=zTe;class HTe{constructor(e){this.attributes={},this.domNode=e,this.build()}attribute(e,n){n?e.add(this.domNode,n)&&(e.value(this.domNode)!=null?this.attributes[e.attrName]=e:delete this.attributes[e.attrName]):(e.remove(this.domNode),delete this.attributes[e.attrName])}build(){this.attributes={};const e=lp.find(this.domNode);if(e==null)return;const n=Hu.keys(this.domNode),r=nu.keys(this.domNode),i=F0.keys(this.domNode);n.concat(r).concat(i).forEach(a=>{const s=e.scroll.query(a,ar.ATTRIBUTE);s instanceof Hu&&(this.attributes[s.attrName]=s)})}copy(e){Object.keys(this.attributes).forEach(n=>{const r=this.attributes[n].value(this.domNode);e.format(n,r)})}move(e){this.copy(e),Object.keys(this.attributes).forEach(n=>{this.attributes[n].remove(this.domNode)}),this.attributes={}}values(){return Object.keys(this.attributes).reduce((e,n)=>(e[n]=this.attributes[n].value(this.domNode),e),{})}}const w6=HTe,Hj=class{constructor(e,n){this.scroll=e,this.domNode=n,lp.blots.set(n,this),this.prev=null,this.next=null}static create(e){if(this.tagName==null)throw new op("Blot definition missing tagName");let n,r;return Array.isArray(this.tagName)?(typeof e=="string"?(r=e.toUpperCase(),parseInt(r,10).toString()===r&&(r=parseInt(r,10))):typeof e=="number"&&(r=e),typeof r=="number"?n=document.createElement(this.tagName[r-1]):r&&this.tagName.indexOf(r)>-1?n=document.createElement(r):n=document.createElement(this.tagName[0])):n=document.createElement(this.tagName),this.className&&n.classList.add(this.className),n}get statics(){return this.constructor}attach(){}clone(){const e=this.domNode.cloneNode(!1);return this.scroll.create(e)}detach(){this.parent!=null&&this.parent.removeChild(this),lp.blots.delete(this.domNode)}deleteAt(e,n){this.isolate(e,n).remove()}formatAt(e,n,r,i){const a=this.isolate(e,n);if(this.scroll.query(r,ar.BLOT)!=null&&i)a.wrap(r,i);else if(this.scroll.query(r,ar.ATTRIBUTE)!=null){const s=this.scroll.create(this.statics.scope);a.wrap(s),s.format(r,i)}}insertAt(e,n,r){const i=r==null?this.scroll.create("text",n):this.scroll.create(n,r),a=this.split(e);this.parent.insertBefore(i,a||void 0)}isolate(e,n){const r=this.split(e);if(r==null)throw new Error("Attempt to isolate at end");return r.split(n),r}length(){return 1}offset(e=this.parent){return this.parent==null||this===e?0:this.parent.children.offset(this)+this.parent.offset(e)}optimize(e){this.statics.requiredContainer&&!(this.parent instanceof this.statics.requiredContainer)&&this.wrap(this.statics.requiredContainer.blotName)}remove(){this.domNode.parentNode!=null&&this.domNode.parentNode.removeChild(this.domNode),this.detach()}replaceWith(e,n){const r=typeof e=="string"?this.scroll.create(e,n):e;return this.parent!=null&&(this.parent.insertBefore(r,this.next||void 0),this.remove()),r}split(e,n){return e===0?this:this.next}update(e,n){}wrap(e,n){const r=typeof e=="string"?this.scroll.create(e,n):e;if(this.parent!=null&&this.parent.insertBefore(r,this.next||void 0),typeof r.appendChild!="function")throw new op(`Cannot wrap ${e}`);return r.appendChild(this),r}};Hj.blotName="abstract";let Yj=Hj;const Kj=class extends Yj{static value(e){return!0}index(e,n){return this.domNode===e||this.domNode.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(n,1):-1}position(e,n){let r=Array.from(this.parent.domNode.childNodes).indexOf(this.domNode);return e>0&&(r+=1),[this.parent.domNode,r]}value(){return{[this.statics.blotName]:this.statics.value(this.domNode)||!0}}};Kj.scope=ar.INLINE_BLOT;const wo=Kj;class YTe{constructor(){this.head=null,this.tail=null,this.length=0}append(...e){if(this.insertBefore(e[0],null),e.length>1){const n=e.slice(1);this.append(...n)}}at(e){const n=this.iterator();let r=n();for(;r&&e>0;)e-=1,r=n();return r}contains(e){const n=this.iterator();let r=n();for(;r;){if(r===e)return!0;r=n()}return!1}indexOf(e){const n=this.iterator();let r=n(),i=0;for(;r;){if(r===e)return i;i+=1,r=n()}return-1}insertBefore(e,n){e!=null&&(this.remove(e),e.next=n,n!=null?(e.prev=n.prev,n.prev!=null&&(n.prev.next=e),n.prev=e,n===this.head&&(this.head=e)):this.tail!=null?(this.tail.next=e,e.prev=this.tail,this.tail=e):(e.prev=null,this.head=this.tail=e),this.length+=1)}offset(e){let n=0,r=this.head;for(;r!=null;){if(r===e)return n;n+=r.length(),r=r.next}return-1}remove(e){this.contains(e)&&(e.prev!=null&&(e.prev.next=e.next),e.next!=null&&(e.next.prev=e.prev),e===this.head&&(this.head=e.next),e===this.tail&&(this.tail=e.prev),this.length-=1)}iterator(e=this.head){return()=>{const n=e;return e!=null&&(e=e.next),n}}find(e,n=!1){const r=this.iterator();let i=r();for(;i;){const a=i.length();if(e<a||n&&e===a&&(i.next==null||i.next.length()!==0))return[i,e];e-=a,i=r()}return[null,0]}forEach(e){const n=this.iterator();let r=n();for(;r;)e(r),r=n()}forEachAt(e,n,r){if(n<=0)return;const[i,a]=this.find(e);let s=e-a;const l=this.iterator(i);let c=l();for(;c&&s<e+n;){const u=c.length();e>s?r(c,e-s,Math.min(n,s+u-e)):r(c,0,Math.min(u,e+n-s)),s+=u,c=l()}}map(e){return this.reduce((n,r)=>(n.push(e(r)),n),[])}reduce(e,n){const r=this.iterator();let i=r();for(;i;)n=e(n,i),i=r();return n}}function Xj(t,e){const n=e.find(t);if(n)return n;try{return e.create(t)}catch{const r=e.create(ar.INLINE);return Array.from(t.childNodes).forEach(i=>{r.domNode.appendChild(i)}),t.parentNode&&t.parentNode.replaceChild(r.domNode,t),r.attach(),r}}const Rj=class G0 extends Yj{constructor(e,n){super(e,n),this.uiNode=null,this.build()}appendChild(e){this.insertBefore(e)}attach(){super.attach(),this.children.forEach(e=>{e.attach()})}attachUI(e){this.uiNode!=null&&this.uiNode.remove(),this.uiNode=e,G0.uiClass&&this.uiNode.classList.add(G0.uiClass),this.uiNode.setAttribute("contenteditable","false"),this.domNode.insertBefore(this.uiNode,this.domNode.firstChild)}build(){this.children=new YTe,Array.from(this.domNode.childNodes).filter(e=>e!==this.uiNode).reverse().forEach(e=>{try{const n=Xj(e,this.scroll);this.insertBefore(n,this.children.head||void 0)}catch(n){if(n instanceof op)return;throw n}})}deleteAt(e,n){if(e===0&&n===this.length())return this.remove();this.children.forEachAt(e,n,(r,i,a)=>{r.deleteAt(i,a)})}descendant(e,n=0){const[r,i]=this.children.find(n);return e.blotName==null&&e(r)||e.blotName!=null&&r instanceof e?[r,i]:r instanceof G0?r.descendant(e,i):[null,-1]}descendants(e,n=0,r=Number.MAX_VALUE){let i=[],a=r;return this.children.forEachAt(n,r,(s,l,c)=>{(e.blotName==null&&e(s)||e.blotName!=null&&s instanceof e)&&i.push(s),s instanceof G0&&(i=i.concat(s.descendants(e,l,a))),a-=c}),i}detach(){this.children.forEach(e=>{e.detach()}),super.detach()}enforceAllowedChildren(){let e=!1;this.children.forEach(n=>{e||this.statics.allowedChildren.some(r=>n instanceof r)||(n.statics.scope===ar.BLOCK_BLOT?(n.next!=null&&this.splitAfter(n),n.prev!=null&&this.splitAfter(n.prev),n.parent.unwrap(),e=!0):n instanceof G0?n.unwrap():n.remove())})}formatAt(e,n,r,i){this.children.forEachAt(e,n,(a,s,l)=>{a.formatAt(s,l,r,i)})}insertAt(e,n,r){const[i,a]=this.children.find(e);if(i)i.insertAt(a,n,r);else{const s=r==null?this.scroll.create("text",n):this.scroll.create(n,r);this.appendChild(s)}}insertBefore(e,n){e.parent!=null&&e.parent.children.remove(e);let r=null;this.children.insertBefore(e,n||null),e.parent=this,n!=null&&(r=n.domNode),(this.domNode.parentNode!==e.domNode||this.domNode.nextSibling!==r)&&this.domNode.insertBefore(e.domNode,r),e.attach()}length(){return this.children.reduce((e,n)=>e+n.length(),0)}moveChildren(e,n){this.children.forEach(r=>{e.insertBefore(r,n)})}optimize(e){if(super.optimize(e),this.enforceAllowedChildren(),this.uiNode!=null&&this.uiNode!==this.domNode.firstChild&&this.domNode.insertBefore(this.uiNode,this.domNode.firstChild),this.children.length===0)if(this.statics.defaultChild!=null){const n=this.scroll.create(this.statics.defaultChild.blotName);this.appendChild(n)}else this.remove()}path(e,n=!1){const[r,i]=this.children.find(e,n),a=[[this,e]];return r instanceof G0?a.concat(r.path(i,n)):(r!=null&&a.push([r,i]),a)}removeChild(e){this.children.remove(e)}replaceWith(e,n){const r=typeof e=="string"?this.scroll.create(e,n):e;return r instanceof G0&&this.moveChildren(r),super.replaceWith(r)}split(e,n=!1){if(!n){if(e===0)return this;if(e===this.length())return this.next}const r=this.clone();return this.parent&&this.parent.insertBefore(r,this.next||void 0),this.children.forEachAt(e,this.length(),(i,a,s)=>{const l=i.split(a,n);l!=null&&r.appendChild(l)}),r}splitAfter(e){const n=this.clone();for(;e.next!=null;)n.appendChild(e.next);return this.parent&&this.parent.insertBefore(n,this.next||void 0),n}unwrap(){this.parent&&this.moveChildren(this.parent,this.next||void 0),this.remove()}update(e,n){const r=[],i=[];e.forEach(a=>{a.target===this.domNode&&a.type==="childList"&&(r.push(...a.addedNodes),i.push(...a.removedNodes))}),i.forEach(a=>{if(a.parentNode!=null&&a.tagName!=="IFRAME"&&document.body.compareDocumentPosition(a)&Node.DOCUMENT_POSITION_CONTAINED_BY)return;const s=this.scroll.find(a);s!=null&&(s.domNode.parentNode==null||s.domNode.parentNode===this.domNode)&&s.detach()}),r.filter(a=>a.parentNode===this.domNode&&a!==this.uiNode).sort((a,s)=>a===s?0:a.compareDocumentPosition(s)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1).forEach(a=>{let s=null;a.nextSibling!=null&&(s=this.scroll.find(a.nextSibling));const l=Xj(a,this.scroll);(l.next!==s||l.next==null)&&(l.parent!=null&&l.parent.removeChild(this),this.insertBefore(l,s||void 0))}),this.enforceAllowedChildren()}};Rj.uiClass="";const ru=Rj;function KTe(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(const n in t)if(t[n]!==e[n])return!1;return!0}const cp=class Np extends ru{static create(e){return super.create(e)}static formats(e,n){const r=n.query(Np.blotName);if(!(r!=null&&e.tagName===r.tagName)){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return e.tagName.toLowerCase()}}constructor(e,n){super(e,n),this.attributes=new w6(this.domNode)}format(e,n){if(e===this.statics.blotName&&!n)this.children.forEach(r=>{r instanceof Np||(r=r.wrap(Np.blotName,!0)),this.attributes.copy(r)}),this.unwrap();else{const r=this.scroll.query(e,ar.INLINE);if(r==null)return;r instanceof Hu?this.attributes.attribute(r,n):n&&(e!==this.statics.blotName||this.formats()[e]!==n)&&this.replaceWith(e,n)}}formats(){const e=this.attributes.values(),n=this.statics.formats(this.domNode,this.scroll);return n!=null&&(e[this.statics.blotName]=n),e}formatAt(e,n,r,i){this.formats()[r]!=null||this.scroll.query(r,ar.ATTRIBUTE)?this.isolate(e,n).format(r,i):super.formatAt(e,n,r,i)}optimize(e){super.optimize(e);const n=this.formats();if(Object.keys(n).length===0)return this.unwrap();const r=this.next;r instanceof Np&&r.prev===this&&KTe(n,r.formats())&&(r.moveChildren(this),r.remove())}replaceWith(e,n){const r=super.replaceWith(e,n);return this.attributes.copy(r),r}update(e,n){super.update(e,n),e.some(r=>r.target===this.domNode&&r.type==="attributes")&&this.attributes.build()}wrap(e,n){const r=super.wrap(e,n);return r instanceof Np&&this.attributes.move(r),r}};cp.allowedChildren=[cp,wo],cp.blotName="inline",cp.scope=ar.INLINE_BLOT,cp.tagName="SPAN";const QS=cp,up=class LC extends ru{static create(e){return super.create(e)}static formats(e,n){const r=n.query(LC.blotName);if(!(r!=null&&e.tagName===r.tagName)){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return e.tagName.toLowerCase()}}constructor(e,n){super(e,n),this.attributes=new w6(this.domNode)}format(e,n){const r=this.scroll.query(e,ar.BLOCK);r!=null&&(r instanceof Hu?this.attributes.attribute(r,n):e===this.statics.blotName&&!n?this.replaceWith(LC.blotName):n&&(e!==this.statics.blotName||this.formats()[e]!==n)&&this.replaceWith(e,n))}formats(){const e=this.attributes.values(),n=this.statics.formats(this.domNode,this.scroll);return n!=null&&(e[this.statics.blotName]=n),e}formatAt(e,n,r,i){this.scroll.query(r,ar.BLOCK)!=null?this.format(r,i):super.formatAt(e,n,r,i)}insertAt(e,n,r){if(r==null||this.scroll.query(n,ar.INLINE)!=null)super.insertAt(e,n,r);else{const i=this.split(e);if(i!=null){const a=this.scroll.create(n,r);i.parent.insertBefore(a,i)}else throw new Error("Attempt to insertAt after block boundaries")}}replaceWith(e,n){const r=super.replaceWith(e,n);return this.attributes.copy(r),r}update(e,n){super.update(e,n),e.some(r=>r.target===this.domNode&&r.type==="attributes")&&this.attributes.build()}};up.blotName="block",up.scope=ar.BLOCK_BLOT,up.tagName="P",up.allowedChildren=[QS,up,wo];const sm=up,JS=class extends ru{checkMerge(){return this.next!==null&&this.next.statics.blotName===this.statics.blotName}deleteAt(e,n){super.deleteAt(e,n),this.enforceAllowedChildren()}formatAt(e,n,r,i){super.formatAt(e,n,r,i),this.enforceAllowedChildren()}insertAt(e,n,r){super.insertAt(e,n,r),this.enforceAllowedChildren()}optimize(e){super.optimize(e),this.children.length>0&&this.next!=null&&this.checkMerge()&&(this.next.moveChildren(this),this.next.remove())}};JS.blotName="container",JS.scope=ar.BLOCK_BLOT;const S6=JS;class XTe extends wo{static formats(e,n){}format(e,n){super.formatAt(0,this.length(),e,n)}formatAt(e,n,r,i){e===0&&n===this.length()?this.format(r,i):super.formatAt(e,n,r,i)}formats(){return this.statics.formats(this.domNode,this.scroll)}}const ql=XTe,RTe={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},GTe=100,dp=class extends ru{constructor(e,n){super(null,n),this.registry=e,this.scroll=this,this.build(),this.observer=new MutationObserver(r=>{this.update(r)}),this.observer.observe(this.domNode,RTe),this.attach()}create(e,n){return this.registry.create(this,e,n)}find(e,n=!1){const r=this.registry.find(e,n);return r?r.scroll===this?r:n?this.find(r.scroll.domNode.parentNode,!0):null:null}query(e,n=ar.ANY){return this.registry.query(e,n)}register(...e){return this.registry.register(...e)}build(){this.scroll!=null&&super.build()}detach(){super.detach(),this.observer.disconnect()}deleteAt(e,n){this.update(),e===0&&n===this.length()?this.children.forEach(r=>{r.remove()}):super.deleteAt(e,n)}formatAt(e,n,r,i){this.update(),super.formatAt(e,n,r,i)}insertAt(e,n,r){this.update(),super.insertAt(e,n,r)}optimize(e=[],n={}){super.optimize(n);const r=n.mutationsMap||new WeakMap;let i=Array.from(this.observer.takeRecords());for(;i.length>0;)e.push(i.pop());const a=(c,u=!0)=>{c==null||c===this||c.domNode.parentNode!=null&&(r.has(c.domNode)||r.set(c.domNode,[]),u&&a(c.parent))},s=c=>{r.has(c.domNode)&&(c instanceof ru&&c.children.forEach(s),r.delete(c.domNode),c.optimize(n))};let l=e;for(let c=0;l.length>0;c+=1){if(c>=GTe)throw new Error("[Parchment] Maximum optimize iterations reached");for(l.forEach(u=>{const d=this.find(u.target,!0);d!=null&&(d.domNode===u.target&&(u.type==="childList"?(a(this.find(u.previousSibling,!1)),Array.from(u.addedNodes).forEach(f=>{const h=this.find(f,!1);a(h,!1),h instanceof ru&&h.children.forEach(g=>{a(g,!1)})})):u.type==="attributes"&&a(d.prev)),a(d))}),this.children.forEach(s),l=Array.from(this.observer.takeRecords()),i=l.slice();i.length>0;)e.push(i.pop())}}update(e,n={}){e=e||this.observer.takeRecords();const r=new WeakMap;e.map(i=>{const a=this.find(i.target,!0);return a==null?null:r.has(a.domNode)?(r.get(a.domNode).push(i),null):(r.set(a.domNode,[i]),a)}).forEach(i=>{i!=null&&i!==this&&r.has(i.domNode)&&i.update(r.get(i.domNode)||[],n)}),n.mutationsMap=r,r.has(this.domNode)&&super.update(r.get(this.domNode),n),this.optimize(e,n)}};dp.blotName="scroll",dp.defaultChild=sm,dp.allowedChildren=[sm,S6],dp.scope=ar.BLOCK_BLOT,dp.tagName="DIV";const ZS=dp,ex=class VY extends wo{static create(e){return document.createTextNode(e)}static value(e){return e.data}constructor(e,n){super(e,n),this.text=this.statics.value(this.domNode)}deleteAt(e,n){this.domNode.data=this.text=this.text.slice(0,e)+this.text.slice(e+n)}index(e,n){return this.domNode===e?n:-1}insertAt(e,n,r){r==null?(this.text=this.text.slice(0,e)+n+this.text.slice(e),this.domNode.data=this.text):super.insertAt(e,n,r)}length(){return this.text.length}optimize(e){super.optimize(e),this.text=this.statics.value(this.domNode),this.text.length===0?this.remove():this.next instanceof VY&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())}position(e,n=!1){return[this.domNode,e]}split(e,n=!1){if(!n){if(e===0)return this;if(e===this.length())return this.next}const r=this.scroll.create(this.domNode.splitText(e));return this.parent.insertBefore(r,this.next||void 0),this.text=this.statics.value(this.domNode),r}update(e,n){e.some(r=>r.type==="characterData"&&r.target===this.domNode)&&(this.text=this.statics.value(this.domNode))}value(){return this.text}};ex.blotName="text",ex.scope=ar.INLINE_BLOT;const x6=ex,Gj=Object.freeze(Object.defineProperty({__proto__:null,Attributor:Hu,AttributorStore:w6,BlockBlot:sm,ClassAttributor:nu,ContainerBlot:S6,EmbedBlot:ql,InlineBlot:QS,LeafBlot:wo,ParentBlot:ru,Registry:lp,Scope:ar,ScrollBlot:ZS,StyleAttributor:F0,TextBlot:x6},Symbol.toStringTag,{value:"Module"}));var tx={exports:{}},$l=-1,Ko=1,Es=0;function om(t,e,n,r,i){if(t===e)return t?[[Es,t]]:[];if(n!=null){var a=iEe(t,e,n);if(a)return a}var s=nx(t,e),l=t.substring(0,s);t=t.substring(s),e=e.substring(s),s=C6(t,e);var c=t.substring(t.length-s);t=t.substring(0,t.length-s),e=e.substring(0,e.length-s);var u=WTe(t,e);return l&&u.unshift([Es,l]),c&&u.push([Es,c]),rx(u,i),r&&ZTe(u),u}function WTe(t,e){var n;if(!t)return[[Ko,e]];if(!e)return[[$l,t]];var r=t.length>e.length?t:e,i=t.length>e.length?e:t,a=r.indexOf(i);if(a!==-1)return n=[[Ko,r.substring(0,a)],[Es,i],[Ko,r.substring(a+i.length)]],t.length>e.length&&(n[0][0]=n[2][0]=$l),n;if(i.length===1)return[[$l,t],[Ko,e]];var s=JTe(t,e);if(s){var l=s[0],c=s[1],u=s[2],d=s[3],f=s[4],h=om(l,u),g=om(c,d);return h.concat([[Es,f]],g)}return QTe(t,e)}function QTe(t,e){for(var n=t.length,r=e.length,i=Math.ceil((n+r)/2),a=i,s=2*i,l=new Array(s),c=new Array(s),u=0;u<s;u++)l[u]=-1,c[u]=-1;l[a+1]=0,c[a+1]=0;for(var d=n-r,f=d%2!==0,h=0,g=0,v=0,m=0,A=0;A<i;A++){for(var w=-A+h;w<=A-g;w+=2){var E=a+w,x;w===-A||w!==A&&l[E-1]<l[E+1]?x=l[E+1]:x=l[E-1]+1;for(var C=x-w;x<n&&C<r&&t.charAt(x)===e.charAt(C);)x++,C++;if(l[E]=x,x>n)g+=2;else if(C>r)h+=2;else if(f){var S=a+d-w;if(S>=0&&S<s&&c[S]!==-1){var _=n-c[S];if(x>=_)return Wj(t,e,x,C)}}}for(var I=-A+v;I<=A-m;I+=2){var S=a+I,_;I===-A||I!==A&&c[S-1]<c[S+1]?_=c[S+1]:_=c[S-1]+1;for(var F=_-I;_<n&&F<r&&t.charAt(n-_-1)===e.charAt(r-F-1);)_++,F++;if(c[S]=_,_>n)m+=2;else if(F>r)v+=2;else if(!f){var E=a+d-I;if(E>=0&&E<s&&l[E]!==-1){var x=l[E],C=a+x-E;if(_=n-_,x>=_)return Wj(t,e,x,C)}}}}return[[$l,t],[Ko,e]]}function Wj(t,e,n,r){var i=t.substring(0,n),a=e.substring(0,r),s=t.substring(n),l=e.substring(r),c=om(i,a),u=om(s,l);return c.concat(u)}function nx(t,e){if(!t||!e||t.charAt(0)!==e.charAt(0))return 0;for(var n=0,r=Math.min(t.length,e.length),i=r,a=0;n<i;)t.substring(a,i)==e.substring(a,i)?(n=i,a=n):r=i,i=Math.floor((r-n)/2+n);return tz(t.charCodeAt(i-1))&&i--,i}function Qj(t,e){var n=t.length,r=e.length;if(n==0||r==0)return 0;n>r?t=t.substring(n-r):n<r&&(e=e.substring(0,n));var i=Math.min(n,r);if(t==e)return i;for(var a=0,s=1;;){var l=t.substring(i-s),c=e.indexOf(l);if(c==-1)return a;s+=c,(c==0||t.substring(i-s)==e.substring(0,s))&&(a=s,s++)}}function C6(t,e){if(!t||!e||t.slice(-1)!==e.slice(-1))return 0;for(var n=0,r=Math.min(t.length,e.length),i=r,a=0;n<i;)t.substring(t.length-i,t.length-a)==e.substring(e.length-i,e.length-a)?(n=i,a=n):r=i,i=Math.floor((r-n)/2+n);return nz(t.charCodeAt(t.length-i))&&i--,i}function JTe(t,e){var n=t.length>e.length?t:e,r=t.length>e.length?e:t;if(n.length<4||r.length*2<n.length)return null;function i(g,v,m){for(var A=g.substring(m,m+Math.floor(g.length/4)),w=-1,E="",x,C,S,_;(w=v.indexOf(A,w+1))!==-1;){var I=nx(g.substring(m),v.substring(w)),F=C6(g.substring(0,m),v.substring(0,w));E.length<F+I&&(E=v.substring(w-F,w)+v.substring(w,w+I),x=g.substring(0,m-F),C=g.substring(m+I),S=v.substring(0,w-F),_=v.substring(w+I))}return E.length*2>=g.length?[x,C,S,_,E]:null}var a=i(n,r,Math.ceil(n.length/4)),s=i(n,r,Math.ceil(n.length/2)),l;if(!a&&!s)return null;s?a?l=a[4].length>s[4].length?a:s:l=s:l=a;var c,u,d,f;t.length>e.length?(c=l[0],u=l[1],d=l[2],f=l[3]):(d=l[0],f=l[1],c=l[2],u=l[3]);var h=l[4];return[c,u,d,f,h]}function ZTe(t){for(var e=!1,n=[],r=0,i=null,a=0,s=0,l=0,c=0,u=0;a<t.length;)t[a][0]==Es?(n[r++]=a,s=c,l=u,c=0,u=0,i=t[a][1]):(t[a][0]==Ko?c+=t[a][1].length:u+=t[a][1].length,i&&i.length<=Math.max(s,l)&&i.length<=Math.max(c,u)&&(t.splice(n[r-1],0,[$l,i]),t[n[r-1]+1][0]=Ko,r--,r--,a=r>0?n[r-1]:-1,s=0,l=0,c=0,u=0,i=null,e=!0)),a++;for(e&&rx(t),nEe(t),a=1;a<t.length;){if(t[a-1][0]==$l&&t[a][0]==Ko){var d=t[a-1][1],f=t[a][1],h=Qj(d,f),g=Qj(f,d);h>=g?(h>=d.length/2||h>=f.length/2)&&(t.splice(a,0,[Es,f.substring(0,h)]),t[a-1][1]=d.substring(0,d.length-h),t[a+1][1]=f.substring(h),a++):(g>=d.length/2||g>=f.length/2)&&(t.splice(a,0,[Es,d.substring(0,g)]),t[a-1][0]=Ko,t[a-1][1]=f.substring(0,f.length-g),t[a+1][0]=$l,t[a+1][1]=d.substring(g),a++),a++}a++}}var Jj=/[^a-zA-Z0-9]/,Zj=/\s/,ez=/[\r\n]/,eEe=/\n\r?\n$/,tEe=/^\r?\n\r?\n/;function nEe(t){function e(g,v){if(!g||!v)return 6;var m=g.charAt(g.length-1),A=v.charAt(0),w=m.match(Jj),E=A.match(Jj),x=w&&m.match(Zj),C=E&&A.match(Zj),S=x&&m.match(ez),_=C&&A.match(ez),I=S&&g.match(eEe),F=_&&v.match(tEe);return I||F?5:S||_?4:w&&!x&&C?3:x||C?2:w||E?1:0}for(var n=1;n<t.length-1;){if(t[n-1][0]==Es&&t[n+1][0]==Es){var r=t[n-1][1],i=t[n][1],a=t[n+1][1],s=C6(r,i);if(s){var l=i.substring(i.length-s);r=r.substring(0,r.length-s),i=l+i.substring(0,i.length-s),a=l+a}for(var c=r,u=i,d=a,f=e(r,i)+e(i,a);i.charAt(0)===a.charAt(0);){r+=i.charAt(0),i=i.substring(1)+a.charAt(0),a=a.substring(1);var h=e(r,i)+e(i,a);h>=f&&(f=h,c=r,u=i,d=a)}t[n-1][1]!=c&&(c?t[n-1][1]=c:(t.splice(n-1,1),n--),t[n][1]=u,d?t[n+1][1]=d:(t.splice(n+1,1),n--))}n++}}function rx(t,e){t.push([Es,""]);for(var n=0,r=0,i=0,a="",s="",l;n<t.length;){if(n<t.length-1&&!t[n][1]){t.splice(n,1);continue}switch(t[n][0]){case Ko:i++,s+=t[n][1],n++;break;case $l:r++,a+=t[n][1],n++;break;case Es:var c=n-i-r-1;if(e){if(c>=0&&iz(t[c][1])){var u=t[c][1].slice(-1);if(t[c][1]=t[c][1].slice(0,-1),a=u+a,s=u+s,!t[c][1]){t.splice(c,1),n--;var d=c-1;t[d]&&t[d][0]===Ko&&(i++,s=t[d][1]+s,d--),t[d]&&t[d][0]===$l&&(r++,a=t[d][1]+a,d--),c=d}}if(rz(t[n][1])){var u=t[n][1].charAt(0);t[n][1]=t[n][1].slice(1),a+=u,s+=u}}if(n<t.length-1&&!t[n][1]){t.splice(n,1);break}if(a.length>0||s.length>0){a.length>0&&s.length>0&&(l=nx(s,a),l!==0&&(c>=0?t[c][1]+=s.substring(0,l):(t.splice(0,0,[Es,s.substring(0,l)]),n++),s=s.substring(l),a=a.substring(l)),l=C6(s,a),l!==0&&(t[n][1]=s.substring(s.length-l)+t[n][1],s=s.substring(0,s.length-l),a=a.substring(0,a.length-l)));var f=i+r;a.length===0&&s.length===0?(t.splice(n-f,f),n=n-f):a.length===0?(t.splice(n-f,f,[Ko,s]),n=n-f+1):s.length===0?(t.splice(n-f,f,[$l,a]),n=n-f+1):(t.splice(n-f,f,[$l,a],[Ko,s]),n=n-f+2)}n!==0&&t[n-1][0]===Es?(t[n-1][1]+=t[n][1],t.splice(n,1)):n++,i=0,r=0,a="",s="";break}}t[t.length-1][1]===""&&t.pop();var h=!1;for(n=1;n<t.length-1;)t[n-1][0]===Es&&t[n+1][0]===Es&&(t[n][1].substring(t[n][1].length-t[n-1][1].length)===t[n-1][1]?(t[n][1]=t[n-1][1]+t[n][1].substring(0,t[n][1].length-t[n-1][1].length),t[n+1][1]=t[n-1][1]+t[n+1][1],t.splice(n-1,1),h=!0):t[n][1].substring(0,t[n+1][1].length)==t[n+1][1]&&(t[n-1][1]+=t[n+1][1],t[n][1]=t[n][1].substring(t[n+1][1].length)+t[n+1][1],t.splice(n+1,1),h=!0)),n++;h&&rx(t,e)}function tz(t){return t>=55296&&t<=56319}function nz(t){return t>=56320&&t<=57343}function rz(t){return nz(t.charCodeAt(0))}function iz(t){return tz(t.charCodeAt(t.length-1))}function rEe(t){for(var e=[],n=0;n<t.length;n++)t[n][1].length>0&&e.push(t[n]);return e}function ix(t,e,n,r){return iz(t)||rz(r)?null:rEe([[Es,t],[$l,e],[Ko,n],[Es,r]])}function iEe(t,e,n){var r=typeof n=="number"?{index:n,length:0}:n.oldRange,i=typeof n=="number"?null:n.newRange,a=t.length,s=e.length;if(r.length===0&&(i===null||i.length===0)){var l=r.index,c=t.slice(0,l),u=t.slice(l),d=i?i.index:null;e:{var f=l+s-a;if(d!==null&&d!==f||f<0||f>s)break e;var h=e.slice(0,f),g=e.slice(f);if(g!==u)break e;var v=Math.min(l,f),m=c.slice(0,v),A=h.slice(0,v);if(m!==A)break e;var w=c.slice(v),E=h.slice(v);return ix(m,w,E,u)}e:{if(d!==null&&d!==l)break e;var x=l,h=e.slice(0,x),g=e.slice(x);if(h!==c)break e;var C=Math.min(a-x,s-x),S=u.slice(u.length-C),_=g.slice(g.length-C);if(S!==_)break e;var w=u.slice(0,u.length-C),E=g.slice(0,g.length-C);return ix(c,w,E,S)}}if(r.length>0&&i&&i.length===0)e:{var m=t.slice(0,r.index),S=t.slice(r.index+r.length),v=m.length,C=S.length;if(s<v+C)break e;var A=e.slice(0,v),_=e.slice(s-C);if(m!==A||S!==_)break e;var w=t.slice(v,a-C),E=e.slice(v,s-C);return ix(m,w,E,S)}return null}function T6(t,e,n,r){return om(t,e,n,r,!0)}T6.INSERT=Ko,T6.DELETE=$l,T6.EQUAL=Es;var aEe=T6,E6={exports:{}};E6.exports,function(t,e){var n=200,r="__lodash_hash_undefined__",i=9007199254740991,a="[object Arguments]",s="[object Array]",l="[object Boolean]",c="[object Date]",u="[object Error]",d="[object Function]",f="[object GeneratorFunction]",h="[object Map]",g="[object Number]",v="[object Object]",m="[object Promise]",A="[object RegExp]",w="[object Set]",E="[object String]",x="[object Symbol]",C="[object WeakMap]",S="[object ArrayBuffer]",_="[object DataView]",I="[object Float32Array]",F="[object Float64Array]",M="[object Int8Array]",L="[object Int16Array]",V="[object Int32Array]",U="[object Uint8Array]",O="[object Uint8ClampedArray]",q="[object Uint16Array]",ie="[object Uint32Array]",ge=/[\\^$.*+?()[\]{}|]/g,Z=/\w*$/,Q=/^\[object .+?Constructor\]$/,ce=/^(?:0|[1-9]\d*)$/,K={};K[a]=K[s]=K[S]=K[_]=K[l]=K[c]=K[I]=K[F]=K[M]=K[L]=K[V]=K[h]=K[g]=K[v]=K[A]=K[w]=K[E]=K[x]=K[U]=K[O]=K[q]=K[ie]=!0,K[u]=K[d]=K[C]=!1;var he=typeof Di=="object"&&Di&&Di.Object===Object&&Di,ee=typeof self=="object"&&self&&self.Object===Object&&self,te=he||ee||Function("return this")(),Y=e&&!e.nodeType&&e,R=Y&&!0&&t&&!t.nodeType&&t,fe=R&&R.exports===Y;function be(J,Pe){return J.set(Pe[0],Pe[1]),J}function Te(J,Pe){return J.add(Pe),J}function ye(J,Pe){for(var nt=-1,Yt=J?J.length:0;++nt<Yt&&Pe(J[nt],nt,J)!==!1;);return J}function Ae(J,Pe){for(var nt=-1,Yt=Pe.length,wr=J.length;++nt<Yt;)J[wr+nt]=Pe[nt];return J}function ne(J,Pe,nt,Yt){for(var wr=-1,tr=J?J.length:0;++wr<tr;)nt=Pe(nt,J[wr],wr,J);return nt}function $(J,Pe){for(var nt=-1,Yt=Array(J);++nt<J;)Yt[nt]=Pe(nt);return Yt}function re(J,Pe){return J==null?void 0:J[Pe]}function W(J){var Pe=!1;if(J!=null&&typeof J.toString!="function")try{Pe=!!(J+"")}catch{}return Pe}function de(J){var Pe=-1,nt=Array(J.size);return J.forEach(function(Yt,wr){nt[++Pe]=[wr,Yt]}),nt}function Ie(J,Pe){return function(nt){return J(Pe(nt))}}function Ee(J){var Pe=-1,nt=Array(J.size);return J.forEach(function(Yt){nt[++Pe]=Yt}),nt}var ve=Array.prototype,me=Function.prototype,Se=Object.prototype,De=te["__core-js_shared__"],j=function(){var J=/[^.]+$/.exec(De&&De.keys&&De.keys.IE_PROTO||"");return J?"Symbol(src)_1."+J:""}(),oe=me.toString,pe=Se.hasOwnProperty,ue=Se.toString,le=RegExp("^"+oe.call(pe).replace(ge,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),se=fe?te.Buffer:void 0,Oe=te.Symbol,Ne=te.Uint8Array,Ke=Ie(Object.getPrototypeOf,Object),ut=Object.create,pt=Se.propertyIsEnumerable,ft=ve.splice,kt=Object.getOwnPropertySymbols,Sn=se?se.isBuffer:void 0,Vt=Ie(Object.keys,Object),Nt=xi(te,"DataView"),$e=xi(te,"Map"),yt=xi(te,"Promise"),qt=xi(te,"Set"),dn=xi(te,"WeakMap"),mn=xi(Object,"create"),En=Vi(Nt),Vn=Vi($e),hn=Vi(yt),Jt=Vi(qt),Xe=Vi(dn),tt=Oe?Oe.prototype:void 0,ht=tt?tt.valueOf:void 0;function jt(J){var Pe=-1,nt=J?J.length:0;for(this.clear();++Pe<nt;){var Yt=J[Pe];this.set(Yt[0],Yt[1])}}function yn(){this.__data__=mn?mn(null):{}}function qn(J){return this.has(J)&&delete this.__data__[J]}function Gn(J){var Pe=this.__data__;if(mn){var nt=Pe[J];return nt===r?void 0:nt}return pe.call(Pe,J)?Pe[J]:void 0}function ir(J){var Pe=this.__data__;return mn?Pe[J]!==void 0:pe.call(Pe,J)}function Jn(J,Pe){var nt=this.__data__;return nt[J]=mn&&Pe===void 0?r:Pe,this}jt.prototype.clear=yn,jt.prototype.delete=qn,jt.prototype.get=Gn,jt.prototype.has=ir,jt.prototype.set=Jn;function mr(J){var Pe=-1,nt=J?J.length:0;for(this.clear();++Pe<nt;){var Yt=J[Pe];this.set(Yt[0],Yt[1])}}function gi(){this.__data__=[]}function An(J){var Pe=this.__data__,nt=Me(Pe,J);if(nt<0)return!1;var Yt=Pe.length-1;return nt==Yt?Pe.pop():ft.call(Pe,nt,1),!0}function it(J){var Pe=this.__data__,nt=Me(Pe,J);return nt<0?void 0:Pe[nt][1]}function ct(J){return Me(this.__data__,J)>-1}function At(J,Pe){var nt=this.__data__,Yt=Me(nt,J);return Yt<0?nt.push([J,Pe]):nt[Yt][1]=Pe,this}mr.prototype.clear=gi,mr.prototype.delete=An,mr.prototype.get=it,mr.prototype.has=ct,mr.prototype.set=At;function Mt(J){var Pe=-1,nt=J?J.length:0;for(this.clear();++Pe<nt;){var Yt=J[Pe];this.set(Yt[0],Yt[1])}}function Ut(){this.__data__={hash:new jt,map:new($e||mr),string:new jt}}function mt(J){return $i(this,J).delete(J)}function ot(J){return $i(this,J).get(J)}function Ve(J){return $i(this,J).has(J)}function rt(J,Pe){return $i(this,J).set(J,Pe),this}Mt.prototype.clear=Ut,Mt.prototype.delete=mt,Mt.prototype.get=ot,Mt.prototype.has=Ve,Mt.prototype.set=rt;function Et(J){this.__data__=new mr(J)}function zt(){this.__data__=new mr}function bt(J){return this.__data__.delete(J)}function Ue(J){return this.__data__.get(J)}function Qe(J){return this.__data__.has(J)}function Dt(J,Pe){var nt=this.__data__;if(nt instanceof mr){var Yt=nt.__data__;if(!$e||Yt.length<n-1)return Yt.push([J,Pe]),this;nt=this.__data__=new Mt(Yt)}return nt.set(J,Pe),this}Et.prototype.clear=zt,Et.prototype.delete=bt,Et.prototype.get=Ue,Et.prototype.has=Qe,Et.prototype.set=Dt;function nn(J,Pe){var nt=xt(J)||He(J)?$(J.length,String):[],Yt=nt.length,wr=!!Yt;for(var tr in J)pe.call(J,tr)&&!(wr&&(tr=="length"||si(tr,Yt)))&&nt.push(tr);return nt}function wt(J,Pe,nt){var Yt=J[Pe];(!(pe.call(J,Pe)&&wn(Yt,nt))||nt===void 0&&!(Pe in J))&&(J[Pe]=nt)}function Me(J,Pe){for(var nt=J.length;nt--;)if(wn(J[nt][0],Pe))return nt;return-1}function Ze(J,Pe){return J&&qi(Pe,ts(Pe),J)}function Ct(J,Pe,nt,Yt,wr,tr,Yr){var Tr;if(Yt&&(Tr=tr?Yt(J,wr,tr,Yr):Yt(J)),Tr!==void 0)return Tr;if(!pa(J))return J;var Vr=xt(J);if(Vr){if(Tr=Gt(J),!Pe)return Gr(J,Tr)}else{var $r=ze(J),ti=$r==d||$r==f;if(vr(J))return Dr(J,Pe);if($r==v||$r==a||ti&&!tr){if(W(J))return tr?J:{};if(Tr=Nn(ti?{}:J),!Pe)return ja(J,Ze(Tr,J))}else{if(!K[$r])return tr?J:{};Tr=Wr(J,$r,Ct,Pe)}}Yr||(Yr=new Et);var ea=Yr.get(J);if(ea)return ea;if(Yr.set(J,Tr),!Vr)var Oi=nt?sr(J):ts(J);return ye(Oi||J,function(Ai,ji){Oi&&(ji=Ai,Ai=J[ji]),wt(Tr,ji,Ct(Ai,Pe,nt,Yt,ji,J,Yr))}),Tr}function Ot(J){return pa(J)?ut(J):{}}function $t(J,Pe,nt){var Yt=Pe(J);return xt(J)?Yt:Ae(Yt,nt(J))}function Pn(J){return ue.call(J)}function Bn(J){if(!pa(J)||cs(J))return!1;var Pe=Ur(J)||W(J)?le:Q;return Pe.test(Vi(J))}function _r(J){if(!_i(J))return Vt(J);var Pe=[];for(var nt in Object(J))pe.call(J,nt)&&nt!="constructor"&&Pe.push(nt);return Pe}function Dr(J,Pe){if(Pe)return J.slice();var nt=new J.constructor(J.length);return J.copy(nt),nt}function hr(J){var Pe=new J.constructor(J.byteLength);return new Ne(Pe).set(new Ne(J)),Pe}function kr(J,Pe){var nt=Pe?hr(J.buffer):J.buffer;return new J.constructor(nt,J.byteOffset,J.byteLength)}function Kn(J,Pe,nt){var Yt=Pe?nt(de(J),!0):de(J);return ne(Yt,be,new J.constructor)}function kn(J){var Pe=new J.constructor(J.source,Z.exec(J));return Pe.lastIndex=J.lastIndex,Pe}function pr(J,Pe,nt){var Yt=Pe?nt(Ee(J),!0):Ee(J);return ne(Yt,Te,new J.constructor)}function Nr(J){return ht?Object(ht.call(J)):{}}function mi(J,Pe){var nt=Pe?hr(J.buffer):J.buffer;return new J.constructor(nt,J.byteOffset,J.length)}function Gr(J,Pe){var nt=-1,Yt=J.length;for(Pe||(Pe=Array(Yt));++nt<Yt;)Pe[nt]=J[nt];return Pe}function qi(J,Pe,nt,Yt){nt||(nt={});for(var wr=-1,tr=Pe.length;++wr<tr;){var Yr=Pe[wr],Tr=void 0;wt(nt,Yr,Tr===void 0?J[Yr]:Tr)}return nt}function ja(J,Pe){return qi(J,en(J),Pe)}function sr(J){return $t(J,ts,en)}function $i(J,Pe){var nt=J.__data__;return Zi(Pe)?nt[typeof Pe=="string"?"string":"hash"]:nt.map}function xi(J,Pe){var nt=re(J,Pe);return Bn(nt)?nt:void 0}var en=kt?Ie(kt,Object):di,ze=Pn;(Nt&&ze(new Nt(new ArrayBuffer(1)))!=_||$e&&ze(new $e)!=h||yt&&ze(yt.resolve())!=m||qt&&ze(new qt)!=w||dn&&ze(new dn)!=C)&&(ze=function(J){var Pe=ue.call(J),nt=Pe==v?J.constructor:void 0,Yt=nt?Vi(nt):void 0;if(Yt)switch(Yt){case En:return _;case Vn:return h;case hn:return m;case Jt:return w;case Xe:return C}return Pe});function Gt(J){var Pe=J.length,nt=J.constructor(Pe);return Pe&&typeof J[0]=="string"&&pe.call(J,"index")&&(nt.index=J.index,nt.input=J.input),nt}function Nn(J){return typeof J.constructor=="function"&&!_i(J)?Ot(Ke(J)):{}}function Wr(J,Pe,nt,Yt){var wr=J.constructor;switch(Pe){case S:return hr(J);case l:case c:return new wr(+J);case _:return kr(J,Yt);case I:case F:case M:case L:case V:case U:case O:case q:case ie:return mi(J,Yt);case h:return Kn(J,Yt,nt);case g:case E:return new wr(J);case A:return kn(J);case w:return pr(J,Yt,nt);case x:return Nr(J)}}function si(J,Pe){return Pe=Pe??i,!!Pe&&(typeof J=="number"||ce.test(J))&&J>-1&&J%1==0&&J<Pe}function Zi(J){var Pe=typeof J;return Pe=="string"||Pe=="number"||Pe=="symbol"||Pe=="boolean"?J!=="__proto__":J===null}function cs(J){return!!j&&j in J}function _i(J){var Pe=J&&J.constructor,nt=typeof Pe=="function"&&Pe.prototype||Se;return J===nt}function Vi(J){if(J!=null){try{return oe.call(J)}catch{}try{return J+""}catch{}}return""}function xo(J){return Ct(J,!0,!0)}function wn(J,Pe){return J===Pe||J!==J&&Pe!==Pe}function He(J){return er(J)&&pe.call(J,"callee")&&(!pt.call(J,"callee")||ue.call(J)==a)}var xt=Array.isArray;function ln(J){return J!=null&&la(J.length)&&!Ur(J)}function er(J){return Co(J)&&ln(J)}var vr=Sn||Qr;function Ur(J){var Pe=pa(J)?ue.call(J):"";return Pe==d||Pe==f}function la(J){return typeof J=="number"&&J>-1&&J%1==0&&J<=i}function pa(J){var Pe=typeof J;return!!J&&(Pe=="object"||Pe=="function")}function Co(J){return!!J&&typeof J=="object"}function ts(J){return ln(J)?nn(J):_r(J)}function di(){return[]}function Qr(){return!1}t.exports=xo}(E6,E6.exports);var az=E6.exports,I6={exports:{}};I6.exports,function(t,e){var n=200,r="__lodash_hash_undefined__",i=1,a=2,s=9007199254740991,l="[object Arguments]",c="[object Array]",u="[object AsyncFunction]",d="[object Boolean]",f="[object Date]",h="[object Error]",g="[object Function]",v="[object GeneratorFunction]",m="[object Map]",A="[object Number]",w="[object Null]",E="[object Object]",x="[object Promise]",C="[object Proxy]",S="[object RegExp]",_="[object Set]",I="[object String]",F="[object Symbol]",M="[object Undefined]",L="[object WeakMap]",V="[object ArrayBuffer]",U="[object DataView]",O="[object Float32Array]",q="[object Float64Array]",ie="[object Int8Array]",ge="[object Int16Array]",Z="[object Int32Array]",Q="[object Uint8Array]",ce="[object Uint8ClampedArray]",K="[object Uint16Array]",he="[object Uint32Array]",ee=/[\\^$.*+?()[\]{}|]/g,te=/^\[object .+?Constructor\]$/,Y=/^(?:0|[1-9]\d*)$/,R={};R[O]=R[q]=R[ie]=R[ge]=R[Z]=R[Q]=R[ce]=R[K]=R[he]=!0,R[l]=R[c]=R[V]=R[d]=R[U]=R[f]=R[h]=R[g]=R[m]=R[A]=R[E]=R[S]=R[_]=R[I]=R[L]=!1;var fe=typeof Di=="object"&&Di&&Di.Object===Object&&Di,be=typeof self=="object"&&self&&self.Object===Object&&self,Te=fe||be||Function("return this")(),ye=e&&!e.nodeType&&e,Ae=ye&&!0&&t&&!t.nodeType&&t,ne=Ae&&Ae.exports===ye,$=ne&&fe.process,re=function(){try{return $&&$.binding&&$.binding("util")}catch{}}(),W=re&&re.isTypedArray;function de(J,Pe){for(var nt=-1,Yt=J==null?0:J.length,wr=0,tr=[];++nt<Yt;){var Yr=J[nt];Pe(Yr,nt,J)&&(tr[wr++]=Yr)}return tr}function Ie(J,Pe){for(var nt=-1,Yt=Pe.length,wr=J.length;++nt<Yt;)J[wr+nt]=Pe[nt];return J}function Ee(J,Pe){for(var nt=-1,Yt=J==null?0:J.length;++nt<Yt;)if(Pe(J[nt],nt,J))return!0;return!1}function ve(J,Pe){for(var nt=-1,Yt=Array(J);++nt<J;)Yt[nt]=Pe(nt);return Yt}function me(J){return function(Pe){return J(Pe)}}function Se(J,Pe){return J.has(Pe)}function De(J,Pe){return J==null?void 0:J[Pe]}function j(J){var Pe=-1,nt=Array(J.size);return J.forEach(function(Yt,wr){nt[++Pe]=[wr,Yt]}),nt}function oe(J,Pe){return function(nt){return J(Pe(nt))}}function pe(J){var Pe=-1,nt=Array(J.size);return J.forEach(function(Yt){nt[++Pe]=Yt}),nt}var ue=Array.prototype,le=Function.prototype,se=Object.prototype,Oe=Te["__core-js_shared__"],Ne=le.toString,Ke=se.hasOwnProperty,ut=function(){var J=/[^.]+$/.exec(Oe&&Oe.keys&&Oe.keys.IE_PROTO||"");return J?"Symbol(src)_1."+J:""}(),pt=se.toString,ft=RegExp("^"+Ne.call(Ke).replace(ee,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),kt=ne?Te.Buffer:void 0,Sn=Te.Symbol,Vt=Te.Uint8Array,Nt=se.propertyIsEnumerable,$e=ue.splice,yt=Sn?Sn.toStringTag:void 0,qt=Object.getOwnPropertySymbols,dn=kt?kt.isBuffer:void 0,mn=oe(Object.keys,Object),En=en(Te,"DataView"),Vn=en(Te,"Map"),hn=en(Te,"Promise"),Jt=en(Te,"Set"),Xe=en(Te,"WeakMap"),tt=en(Object,"create"),ht=Vi(En),jt=Vi(Vn),yn=Vi(hn),qn=Vi(Jt),Gn=Vi(Xe),ir=Sn?Sn.prototype:void 0,Jn=ir?ir.valueOf:void 0;function mr(J){var Pe=-1,nt=J==null?0:J.length;for(this.clear();++Pe<nt;){var Yt=J[Pe];this.set(Yt[0],Yt[1])}}function gi(){this.__data__=tt?tt(null):{},this.size=0}function An(J){var Pe=this.has(J)&&delete this.__data__[J];return this.size-=Pe?1:0,Pe}function it(J){var Pe=this.__data__;if(tt){var nt=Pe[J];return nt===r?void 0:nt}return Ke.call(Pe,J)?Pe[J]:void 0}function ct(J){var Pe=this.__data__;return tt?Pe[J]!==void 0:Ke.call(Pe,J)}function At(J,Pe){var nt=this.__data__;return this.size+=this.has(J)?0:1,nt[J]=tt&&Pe===void 0?r:Pe,this}mr.prototype.clear=gi,mr.prototype.delete=An,mr.prototype.get=it,mr.prototype.has=ct,mr.prototype.set=At;function Mt(J){var Pe=-1,nt=J==null?0:J.length;for(this.clear();++Pe<nt;){var Yt=J[Pe];this.set(Yt[0],Yt[1])}}function Ut(){this.__data__=[],this.size=0}function mt(J){var Pe=this.__data__,nt=Dr(Pe,J);if(nt<0)return!1;var Yt=Pe.length-1;return nt==Yt?Pe.pop():$e.call(Pe,nt,1),--this.size,!0}function ot(J){var Pe=this.__data__,nt=Dr(Pe,J);return nt<0?void 0:Pe[nt][1]}function Ve(J){return Dr(this.__data__,J)>-1}function rt(J,Pe){var nt=this.__data__,Yt=Dr(nt,J);return Yt<0?(++this.size,nt.push([J,Pe])):nt[Yt][1]=Pe,this}Mt.prototype.clear=Ut,Mt.prototype.delete=mt,Mt.prototype.get=ot,Mt.prototype.has=Ve,Mt.prototype.set=rt;function Et(J){var Pe=-1,nt=J==null?0:J.length;for(this.clear();++Pe<nt;){var Yt=J[Pe];this.set(Yt[0],Yt[1])}}function zt(){this.size=0,this.__data__={hash:new mr,map:new(Vn||Mt),string:new mr}}function bt(J){var Pe=xi(this,J).delete(J);return this.size-=Pe?1:0,Pe}function Ue(J){return xi(this,J).get(J)}function Qe(J){return xi(this,J).has(J)}function Dt(J,Pe){var nt=xi(this,J),Yt=nt.size;return nt.set(J,Pe),this.size+=nt.size==Yt?0:1,this}Et.prototype.clear=zt,Et.prototype.delete=bt,Et.prototype.get=Ue,Et.prototype.has=Qe,Et.prototype.set=Dt;function nn(J){var Pe=-1,nt=J==null?0:J.length;for(this.__data__=new Et;++Pe<nt;)this.add(J[Pe])}function wt(J){return this.__data__.set(J,r),this}function Me(J){return this.__data__.has(J)}nn.prototype.add=nn.prototype.push=wt,nn.prototype.has=Me;function Ze(J){var Pe=this.__data__=new Mt(J);this.size=Pe.size}function Ct(){this.__data__=new Mt,this.size=0}function Ot(J){var Pe=this.__data__,nt=Pe.delete(J);return this.size=Pe.size,nt}function $t(J){return this.__data__.get(J)}function Pn(J){return this.__data__.has(J)}function Bn(J,Pe){var nt=this.__data__;if(nt instanceof Mt){var Yt=nt.__data__;if(!Vn||Yt.length<n-1)return Yt.push([J,Pe]),this.size=++nt.size,this;nt=this.__data__=new Et(Yt)}return nt.set(J,Pe),this.size=nt.size,this}Ze.prototype.clear=Ct,Ze.prototype.delete=Ot,Ze.prototype.get=$t,Ze.prototype.has=Pn,Ze.prototype.set=Bn;function _r(J,Pe){var nt=He(J),Yt=!nt&&wn(J),wr=!nt&&!Yt&&ln(J),tr=!nt&&!Yt&&!wr&&Co(J),Yr=nt||Yt||wr||tr,Tr=Yr?ve(J.length,String):[],Vr=Tr.length;for(var $r in J)Ke.call(J,$r)&&!(Yr&&($r=="length"||wr&&($r=="offset"||$r=="parent")||tr&&($r=="buffer"||$r=="byteLength"||$r=="byteOffset")||Wr($r,Vr)))&&Tr.push($r);return Tr}function Dr(J,Pe){for(var nt=J.length;nt--;)if(xo(J[nt][0],Pe))return nt;return-1}function hr(J,Pe,nt){var Yt=Pe(J);return He(J)?Yt:Ie(Yt,nt(J))}function kr(J){return J==null?J===void 0?M:w:yt&&yt in Object(J)?ze(J):_i(J)}function Kn(J){return pa(J)&&kr(J)==l}function kn(J,Pe,nt,Yt,wr){return J===Pe?!0:J==null||Pe==null||!pa(J)&&!pa(Pe)?J!==J&&Pe!==Pe:pr(J,Pe,nt,Yt,kn,wr)}function pr(J,Pe,nt,Yt,wr,tr){var Yr=He(J),Tr=He(Pe),Vr=Yr?c:Nn(J),$r=Tr?c:Nn(Pe);Vr=Vr==l?E:Vr,$r=$r==l?E:$r;var ti=Vr==E,ea=$r==E,Oi=Vr==$r;if(Oi&&ln(J)){if(!ln(Pe))return!1;Yr=!0,ti=!1}if(Oi&&!ti)return tr||(tr=new Ze),Yr||Co(J)?qi(J,Pe,nt,Yt,wr,tr):ja(J,Pe,Vr,nt,Yt,wr,tr);if(!(nt&i)){var Ai=ti&&Ke.call(J,"__wrapped__"),ji=ea&&Ke.call(Pe,"__wrapped__");if(Ai||ji){var Qs=Ai?J.value():J,Sa=ji?Pe.value():Pe;return tr||(tr=new Ze),wr(Qs,Sa,nt,Yt,tr)}}return Oi?(tr||(tr=new Ze),sr(J,Pe,nt,Yt,wr,tr)):!1}function Nr(J){if(!la(J)||Zi(J))return!1;var Pe=vr(J)?ft:te;return Pe.test(Vi(J))}function mi(J){return pa(J)&&Ur(J.length)&&!!R[kr(J)]}function Gr(J){if(!cs(J))return mn(J);var Pe=[];for(var nt in Object(J))Ke.call(J,nt)&&nt!="constructor"&&Pe.push(nt);return Pe}function qi(J,Pe,nt,Yt,wr,tr){var Yr=nt&i,Tr=J.length,Vr=Pe.length;if(Tr!=Vr&&!(Yr&&Vr>Tr))return!1;var $r=tr.get(J);if($r&&tr.get(Pe))return $r==Pe;var ti=-1,ea=!0,Oi=nt&a?new nn:void 0;for(tr.set(J,Pe),tr.set(Pe,J);++ti<Tr;){var Ai=J[ti],ji=Pe[ti];if(Yt)var Qs=Yr?Yt(ji,Ai,ti,Pe,J,tr):Yt(Ai,ji,ti,J,Pe,tr);if(Qs!==void 0){if(Qs)continue;ea=!1;break}if(Oi){if(!Ee(Pe,function(Sa,ca){if(!Se(Oi,ca)&&(Ai===Sa||wr(Ai,Sa,nt,Yt,tr)))return Oi.push(ca)})){ea=!1;break}}else if(!(Ai===ji||wr(Ai,ji,nt,Yt,tr))){ea=!1;break}}return tr.delete(J),tr.delete(Pe),ea}function ja(J,Pe,nt,Yt,wr,tr,Yr){switch(nt){case U:if(J.byteLength!=Pe.byteLength||J.byteOffset!=Pe.byteOffset)return!1;J=J.buffer,Pe=Pe.buffer;case V:return!(J.byteLength!=Pe.byteLength||!tr(new Vt(J),new Vt(Pe)));case d:case f:case A:return xo(+J,+Pe);case h:return J.name==Pe.name&&J.message==Pe.message;case S:case I:return J==Pe+"";case m:var Tr=j;case _:var Vr=Yt&i;if(Tr||(Tr=pe),J.size!=Pe.size&&!Vr)return!1;var $r=Yr.get(J);if($r)return $r==Pe;Yt|=a,Yr.set(J,Pe);var ti=qi(Tr(J),Tr(Pe),Yt,wr,tr,Yr);return Yr.delete(J),ti;case F:if(Jn)return Jn.call(J)==Jn.call(Pe)}return!1}function sr(J,Pe,nt,Yt,wr,tr){var Yr=nt&i,Tr=$i(J),Vr=Tr.length,$r=$i(Pe),ti=$r.length;if(Vr!=ti&&!Yr)return!1;for(var ea=Vr;ea--;){var Oi=Tr[ea];if(!(Yr?Oi in Pe:Ke.call(Pe,Oi)))return!1}var Ai=tr.get(J);if(Ai&&tr.get(Pe))return Ai==Pe;var ji=!0;tr.set(J,Pe),tr.set(Pe,J);for(var Qs=Yr;++ea<Vr;){Oi=Tr[ea];var Sa=J[Oi],ca=Pe[Oi];if(Yt)var za=Yr?Yt(ca,Sa,Oi,Pe,J,tr):Yt(Sa,ca,Oi,J,Pe,tr);if(!(za===void 0?Sa===ca||wr(Sa,ca,nt,Yt,tr):za)){ji=!1;break}Qs||(Qs=Oi=="constructor")}if(ji&&!Qs){var Is=J.constructor,Ci=Pe.constructor;Is!=Ci&&"constructor"in J&&"constructor"in Pe&&!(typeof Is=="function"&&Is instanceof Is&&typeof Ci=="function"&&Ci instanceof Ci)&&(ji=!1)}return tr.delete(J),tr.delete(Pe),ji}function $i(J){return hr(J,ts,Gt)}function xi(J,Pe){var nt=J.__data__;return si(Pe)?nt[typeof Pe=="string"?"string":"hash"]:nt.map}function en(J,Pe){var nt=De(J,Pe);return Nr(nt)?nt:void 0}function ze(J){var Pe=Ke.call(J,yt),nt=J[yt];try{J[yt]=void 0;var Yt=!0}catch{}var wr=pt.call(J);return Yt&&(Pe?J[yt]=nt:delete J[yt]),wr}var Gt=qt?function(J){return J==null?[]:(J=Object(J),de(qt(J),function(Pe){return Nt.call(J,Pe)}))}:di,Nn=kr;(En&&Nn(new En(new ArrayBuffer(1)))!=U||Vn&&Nn(new Vn)!=m||hn&&Nn(hn.resolve())!=x||Jt&&Nn(new Jt)!=_||Xe&&Nn(new Xe)!=L)&&(Nn=function(J){var Pe=kr(J),nt=Pe==E?J.constructor:void 0,Yt=nt?Vi(nt):"";if(Yt)switch(Yt){case ht:return U;case jt:return m;case yn:return x;case qn:return _;case Gn:return L}return Pe});function Wr(J,Pe){return Pe=Pe??s,!!Pe&&(typeof J=="number"||Y.test(J))&&J>-1&&J%1==0&&J<Pe}function si(J){var Pe=typeof J;return Pe=="string"||Pe=="number"||Pe=="symbol"||Pe=="boolean"?J!=="__proto__":J===null}function Zi(J){return!!ut&&ut in J}function cs(J){var Pe=J&&J.constructor,nt=typeof Pe=="function"&&Pe.prototype||se;return J===nt}function _i(J){return pt.call(J)}function Vi(J){if(J!=null){try{return Ne.call(J)}catch{}try{return J+""}catch{}}return""}function xo(J,Pe){return J===Pe||J!==J&&Pe!==Pe}var wn=Kn(function(){return arguments}())?Kn:function(J){return pa(J)&&Ke.call(J,"callee")&&!Nt.call(J,"callee")},He=Array.isArray;function xt(J){return J!=null&&Ur(J.length)&&!vr(J)}var ln=dn||Qr;function er(J,Pe){return kn(J,Pe)}function vr(J){if(!la(J))return!1;var Pe=kr(J);return Pe==g||Pe==v||Pe==u||Pe==C}function Ur(J){return typeof J=="number"&&J>-1&&J%1==0&&J<=s}function la(J){var Pe=typeof J;return J!=null&&(Pe=="object"||Pe=="function")}function pa(J){return J!=null&&typeof J=="object"}var Co=W?me(W):mi;function ts(J){return xt(J)?_r(J):Gr(J)}function di(){return[]}function Qr(){return!1}t.exports=er}(I6,I6.exports);var sz=I6.exports,ax={};Object.defineProperty(ax,"__esModule",{value:!0});const sEe=az,oEe=sz;var sx;(function(t){function e(a={},s={},l=!1){typeof a!="object"&&(a={}),typeof s!="object"&&(s={});let c=sEe(s);l||(c=Object.keys(c).reduce((u,d)=>(c[d]!=null&&(u[d]=c[d]),u),{}));for(const u in a)a[u]!==void 0&&s[u]===void 0&&(c[u]=a[u]);return Object.keys(c).length>0?c:void 0}t.compose=e;function n(a={},s={}){typeof a!="object"&&(a={}),typeof s!="object"&&(s={});const l=Object.keys(a).concat(Object.keys(s)).reduce((c,u)=>(oEe(a[u],s[u])||(c[u]=s[u]===void 0?null:s[u]),c),{});return Object.keys(l).length>0?l:void 0}t.diff=n;function r(a={},s={}){a=a||{};const l=Object.keys(s).reduce((c,u)=>(s[u]!==a[u]&&a[u]!==void 0&&(c[u]=s[u]),c),{});return Object.keys(a).reduce((c,u)=>(a[u]!==s[u]&&s[u]===void 0&&(c[u]=null),c),l)}t.invert=r;function i(a,s,l=!1){if(typeof a!="object")return s;if(typeof s!="object")return;if(!l)return s;const c=Object.keys(s).reduce((u,d)=>(a[d]===void 0&&(u[d]=s[d]),u),{});return Object.keys(c).length>0?c:void 0}t.transform=i})(sx||(sx={})),ax.default=sx;var _6={};Object.defineProperty(_6,"__esModule",{value:!0});var ox;(function(t){function e(n){return typeof n.delete=="number"?n.delete:typeof n.retain=="number"?n.retain:typeof n.retain=="object"&&n.retain!==null?1:typeof n.insert=="string"?n.insert.length:1}t.length=e})(ox||(ox={})),_6.default=ox;var lx={};Object.defineProperty(lx,"__esModule",{value:!0});const oz=_6;class lEe{constructor(e){this.ops=e,this.index=0,this.offset=0}hasNext(){return this.peekLength()<1/0}next(e){e||(e=1/0);const n=this.ops[this.index];if(n){const r=this.offset,i=oz.default.length(n);if(e>=i-r?(e=i-r,this.index+=1,this.offset=0):this.offset+=e,typeof n.delete=="number")return{delete:e};{const a={};return n.attributes&&(a.attributes=n.attributes),typeof n.retain=="number"?a.retain=e:typeof n.retain=="object"&&n.retain!==null?a.retain=n.retain:typeof n.insert=="string"?a.insert=n.insert.substr(r,e):a.insert=n.insert,a}}else return{retain:1/0}}peek(){return this.ops[this.index]}peekLength(){return this.ops[this.index]?oz.default.length(this.ops[this.index])-this.offset:1/0}peekType(){const e=this.ops[this.index];return e?typeof e.delete=="number"?"delete":typeof e.retain=="number"||typeof e.retain=="object"&&e.retain!==null?"retain":"insert":"retain"}rest(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);{const e=this.offset,n=this.index,r=this.next(),i=this.ops.slice(this.index);return this.offset=e,this.index=n,[r].concat(i)}}else return[]}}lx.default=lEe,function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.AttributeMap=e.OpIterator=e.Op=void 0;const n=aEe,r=az,i=sz,a=ax;e.AttributeMap=a.default;const s=_6;e.Op=s.default;const l=lx;e.OpIterator=l.default;const c="\0",u=(f,h)=>{if(typeof f!="object"||f===null)throw new Error(`cannot retain a ${typeof f}`);if(typeof h!="object"||h===null)throw new Error(`cannot retain a ${typeof h}`);const g=Object.keys(f)[0];if(!g||g!==Object.keys(h)[0])throw new Error(`embed types not matched: ${g} != ${Object.keys(h)[0]}`);return[g,f[g],h[g]]};class d{constructor(h){Array.isArray(h)?this.ops=h:h!=null&&Array.isArray(h.ops)?this.ops=h.ops:this.ops=[]}static registerEmbed(h,g){this.handlers[h]=g}static unregisterEmbed(h){delete this.handlers[h]}static getHandler(h){const g=this.handlers[h];if(!g)throw new Error(`no handlers for embed type "${h}"`);return g}insert(h,g){const v={};return typeof h=="string"&&h.length===0?this:(v.insert=h,g!=null&&typeof g=="object"&&Object.keys(g).length>0&&(v.attributes=g),this.push(v))}delete(h){return h<=0?this:this.push({delete:h})}retain(h,g){if(typeof h=="number"&&h<=0)return this;const v={retain:h};return g!=null&&typeof g=="object"&&Object.keys(g).length>0&&(v.attributes=g),this.push(v)}push(h){let g=this.ops.length,v=this.ops[g-1];if(h=r(h),typeof v=="object"){if(typeof h.delete=="number"&&typeof v.delete=="number")return this.ops[g-1]={delete:v.delete+h.delete},this;if(typeof v.delete=="number"&&h.insert!=null&&(g-=1,v=this.ops[g-1],typeof v!="object"))return this.ops.unshift(h),this;if(i(h.attributes,v.attributes)){if(typeof h.insert=="string"&&typeof v.insert=="string")return this.ops[g-1]={insert:v.insert+h.insert},typeof h.attributes=="object"&&(this.ops[g-1].attributes=h.attributes),this;if(typeof h.retain=="number"&&typeof v.retain=="number")return this.ops[g-1]={retain:v.retain+h.retain},typeof h.attributes=="object"&&(this.ops[g-1].attributes=h.attributes),this}}return g===this.ops.length?this.ops.push(h):this.ops.splice(g,0,h),this}chop(){const h=this.ops[this.ops.length-1];return h&&typeof h.retain=="number"&&!h.attributes&&this.ops.pop(),this}filter(h){return this.ops.filter(h)}forEach(h){this.ops.forEach(h)}map(h){return this.ops.map(h)}partition(h){const g=[],v=[];return this.forEach(m=>{(h(m)?g:v).push(m)}),[g,v]}reduce(h,g){return this.ops.reduce(h,g)}changeLength(){return this.reduce((h,g)=>g.insert?h+s.default.length(g):g.delete?h-g.delete:h,0)}length(){return this.reduce((h,g)=>h+s.default.length(g),0)}slice(h=0,g=1/0){const v=[],m=new l.default(this.ops);let A=0;for(;A<g&&m.hasNext();){let w;A<h?w=m.next(h-A):(w=m.next(g-A),v.push(w)),A+=s.default.length(w)}return new d(v)}compose(h){const g=new l.default(this.ops),v=new l.default(h.ops),m=[],A=v.peek();if(A!=null&&typeof A.retain=="number"&&A.attributes==null){let E=A.retain;for(;g.peekType()==="insert"&&g.peekLength()<=E;)E-=g.peekLength(),m.push(g.next());A.retain-E>0&&v.next(A.retain-E)}const w=new d(m);for(;g.hasNext()||v.hasNext();)if(v.peekType()==="insert")w.push(v.next());else if(g.peekType()==="delete")w.push(g.next());else{const E=Math.min(g.peekLength(),v.peekLength()),x=g.next(E),C=v.next(E);if(C.retain){const S={};if(typeof x.retain=="number")S.retain=typeof C.retain=="number"?E:C.retain;else if(typeof C.retain=="number")x.retain==null?S.insert=x.insert:S.retain=x.retain;else{const I=x.retain==null?"insert":"retain",[F,M,L]=u(x[I],C.retain),V=d.getHandler(F);S[I]={[F]:V.compose(M,L,I==="retain")}}const _=a.default.compose(x.attributes,C.attributes,typeof x.retain=="number");if(_&&(S.attributes=_),w.push(S),!v.hasNext()&&i(w.ops[w.ops.length-1],S)){const I=new d(g.rest());return w.concat(I).chop()}}else typeof C.delete=="number"&&(typeof x.retain=="number"||typeof x.retain=="object"&&x.retain!==null)&&w.push(C)}return w.chop()}concat(h){const g=new d(this.ops.slice());return h.ops.length>0&&(g.push(h.ops[0]),g.ops=g.ops.concat(h.ops.slice(1))),g}diff(h,g){if(this.ops===h.ops)return new d;const v=[this,h].map(x=>x.map(C=>{if(C.insert!=null)return typeof C.insert=="string"?C.insert:c;const S=x===h?"on":"with";throw new Error("diff() called "+S+" non-document")}).join("")),m=new d,A=n(v[0],v[1],g,!0),w=new l.default(this.ops),E=new l.default(h.ops);return A.forEach(x=>{let C=x[1].length;for(;C>0;){let S=0;switch(x[0]){case n.INSERT:S=Math.min(E.peekLength(),C),m.push(E.next(S));break;case n.DELETE:S=Math.min(C,w.peekLength()),w.next(S),m.delete(S);break;case n.EQUAL:S=Math.min(w.peekLength(),E.peekLength(),C);const _=w.next(S),I=E.next(S);i(_.insert,I.insert)?m.retain(S,a.default.diff(_.attributes,I.attributes)):m.push(I).delete(S);break}C-=S}}),m.chop()}eachLine(h,g=`
4374
4374
  `){const v=new l.default(this.ops);let m=new d,A=0;for(;v.hasNext();){if(v.peekType()!=="insert")return;const w=v.peek(),E=s.default.length(w)-v.peekLength(),x=typeof w.insert=="string"?w.insert.indexOf(g,E)-E:-1;if(x<0)m.push(v.next());else if(x>0)m.push(v.next(x));else{if(h(m,v.next(1).attributes||{},A)===!1)return;A+=1,m=new d}}m.length()>0&&h(m,{},A)}invert(h){const g=new d;return this.reduce((v,m)=>{if(m.insert)g.delete(s.default.length(m));else{if(typeof m.retain=="number"&&m.attributes==null)return g.retain(m.retain),v+m.retain;if(m.delete||typeof m.retain=="number"){const A=m.delete||m.retain;return h.slice(v,v+A).forEach(E=>{m.delete?g.push(E):m.retain&&m.attributes&&g.retain(s.default.length(E),a.default.invert(m.attributes,E.attributes))}),v+A}else if(typeof m.retain=="object"&&m.retain!==null){const A=h.slice(v,v+1),w=new l.default(A.ops).next(),[E,x,C]=u(m.retain,w.insert),S=d.getHandler(E);return g.retain({[E]:S.invert(x,C)},a.default.invert(m.attributes,w.attributes)),v+1}}return v},0),g.chop()}transform(h,g=!1){if(g=!!g,typeof h=="number")return this.transformPosition(h,g);const v=h,m=new l.default(this.ops),A=new l.default(v.ops),w=new d;for(;m.hasNext()||A.hasNext();)if(m.peekType()==="insert"&&(g||A.peekType()!=="insert"))w.retain(s.default.length(m.next()));else if(A.peekType()==="insert")w.push(A.next());else{const E=Math.min(m.peekLength(),A.peekLength()),x=m.next(E),C=A.next(E);if(x.delete)continue;if(C.delete)w.push(C);else{const S=x.retain,_=C.retain;let I=typeof _=="object"&&_!==null?_:E;if(typeof S=="object"&&S!==null&&typeof _=="object"&&_!==null){const F=Object.keys(S)[0];if(F===Object.keys(_)[0]){const M=d.getHandler(F);M&&(I={[F]:M.transform(S[F],_[F],g)})}}w.retain(I,a.default.transform(x.attributes,C.attributes,g))}}return w.chop()}transformPosition(h,g=!1){g=!!g;const v=new l.default(this.ops);let m=0;for(;v.hasNext()&&m<=h;){const A=v.peekLength(),w=v.peekType();if(v.next(),w==="delete"){h-=Math.min(A,h-m);continue}else w==="insert"&&(m<h||!g)&&(h+=A);m+=A}return h}}d.Op=s.default,d.OpIterator=l.default,d.AttributeMap=a.default,d.handlers={},e.default=d,t.exports=d,t.exports.default=d}(tx,tx.exports);var Xo=tx.exports;const rr=ao(Xo);class iu extends ql{static value(){}optimize(){(this.prev||this.next)&&this.remove()}length(){return 0}value(){return""}}iu.blotName="break",iu.tagName="BR";let au=class extends x6{};const cEe={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function D6(t){return t.replace(/[&<>"']/g,e=>cEe[e])}const Xu=class Xu extends QS{static compare(e,n){const r=Xu.order.indexOf(e),i=Xu.order.indexOf(n);return r>=0||i>=0?r-i:e===n?0:e<n?-1:1}formatAt(e,n,r,i){if(Xu.compare(this.statics.blotName,r)<0&&this.scroll.query(r,ar.BLOT)){const a=this.isolate(e,n);i&&a.wrap(r,i)}else super.formatAt(e,n,r,i)}optimize(e){if(super.optimize(e),this.parent instanceof Xu&&Xu.compare(this.statics.blotName,this.parent.statics.blotName)>0){const n=this.parent.isolate(this.offset(),this.length());this.moveChildren(n),n.wrap(this)}}};jn(Xu,"allowedChildren",[Xu,iu,ql,au]),jn(Xu,"order",["cursor","inline","link","underline","strike","italic","bold","script","code"]);let Yu=Xu;const lz=1;class Ws extends sm{constructor(){super(...arguments);jn(this,"cache",{})}delta(){return this.cache.delta==null&&(this.cache.delta=cz(this)),this.cache.delta}deleteAt(n,r){super.deleteAt(n,r),this.cache={}}formatAt(n,r,i,a){r<=0||(this.scroll.query(i,ar.BLOCK)?n+r===this.length()&&this.format(i,a):super.formatAt(n,Math.min(r,this.length()-n-1),i,a),this.cache={})}insertAt(n,r,i){if(i!=null){super.insertAt(n,r,i),this.cache={};return}if(r.length===0)return;const a=r.split(`
4375
4375
  `),s=a.shift();s.length>0&&(n<this.length()-1||this.children.tail==null?super.insertAt(Math.min(n,this.length()-1),s):this.children.tail.insertAt(this.children.tail.length(),s),this.cache={});let l=this;a.reduce((c,u)=>(l=l.split(c,!0),l.insertAt(0,u),u.length),n+s.length)}insertBefore(n,r){const{head:i}=this.children;super.insertBefore(n,r),i instanceof iu&&i.remove(),this.cache={}}length(){return this.cache.length==null&&(this.cache.length=super.length()+lz),this.cache.length}moveChildren(n,r){super.moveChildren(n,r),this.cache={}}optimize(n){super.optimize(n),this.cache={}}path(n){return super.path(n,!0)}removeChild(n){super.removeChild(n),this.cache={}}split(n){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(r&&(n===0||n>=this.length()-lz)){const a=this.clone();return n===0?(this.parent.insertBefore(a,this),this):(this.parent.insertBefore(a,this.next),a)}const i=super.split(n,r);return this.cache={},i}}Ws.blotName="block",Ws.tagName="P",Ws.defaultChild=iu,Ws.allowedChildren=[iu,Yu,ql,au];class mc extends ql{attach(){super.attach(),this.attributes=new w6(this.domNode)}delta(){return new rr().insert(this.value(),{...this.formats(),...this.attributes.values()})}format(e,n){const r=this.scroll.query(e,ar.BLOCK_ATTRIBUTE);r!=null&&this.attributes.attribute(r,n)}formatAt(e,n,r,i){this.format(r,i)}insertAt(e,n,r){if(r!=null){super.insertAt(e,n,r);return}const i=n.split(`
4376
4376
  `),a=i.pop(),s=i.map(c=>{const u=this.scroll.create(Ws.blotName);return u.insertAt(0,c),u}),l=this.split(e);s.forEach(c=>{this.parent.insertBefore(c,l)}),a&&this.parent.insertBefore(this.scroll.create("text",a),l)}}mc.scope=ar.BLOCK_BLOT;function cz(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return t.descendants(wo).reduce((n,r)=>r.length()===0?n:n.insert(r.value(),vc(r,{},e)),new rr).insert(`