UNPKG

react-drag-form-builder-dilshad

Version:

A powerful React form builder with drag-and-drop functionality and rich field types

22 lines 593 kB
(function(Q,L){typeof exports=="object"&&typeof module<"u"?L(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],L):(Q=typeof globalThis<"u"?globalThis:Q||self,L(Q.ReactFormBuilder={},Q.React,Q.ReactDOM))})(this,function(Q,L,Yi){"use strict";function Um(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const ve=Um(L);var Gt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function mc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ns={exports:{}},fn={};/** * @license React * react-jsx-runtime.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var gc;function zm(){if(gc)return fn;gc=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(n,s,i){var o=null;if(i!==void 0&&(o=""+i),s.key!==void 0&&(o=""+s.key),"key"in s){i={};for(var l in s)l!=="key"&&(i[l]=s[l])}else i=s;return s=i.ref,{$$typeof:e,type:n,key:o,ref:s!==void 0?s:null,props:i}}return fn.Fragment=t,fn.jsx=r,fn.jsxs=r,fn}var mn={};/** * @license React * react-jsx-runtime.development.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var bc;function Wm(){return bc||(bc=1,process.env.NODE_ENV!=="production"&&function(){function e(j){if(j==null)return null;if(typeof j=="function")return j.$$typeof===H?null:j.displayName||j.name||null;if(typeof j=="string")return j;switch(j){case b:return"Fragment";case N:return"Profiler";case x:return"StrictMode";case I:return"Suspense";case M:return"SuspenseList";case ae:return"Activity"}if(typeof j=="object")switch(typeof j.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),j.$$typeof){case g:return"Portal";case D:return(j.displayName||"Context")+".Provider";case w:return(j._context.displayName||"Context")+".Consumer";case T:var W=j.render;return j=j.displayName,j||(j=W.displayName||W.name||"",j=j!==""?"ForwardRef("+j+")":"ForwardRef"),j;case _:return W=j.displayName||null,W!==null?W:e(j.type)||"Memo";case G:W=j._payload,j=j._init;try{return e(j(W))}catch{}}return null}function t(j){return""+j}function r(j){try{t(j);var W=!1}catch{W=!0}if(W){W=console;var Y=W.error,K=typeof Symbol=="function"&&Symbol.toStringTag&&j[Symbol.toStringTag]||j.constructor.name||"Object";return Y.call(W,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",K),t(j)}}function n(j){if(j===b)return"<>";if(typeof j=="object"&&j!==null&&j.$$typeof===G)return"<...>";try{var W=e(j);return W?"<"+W+">":"<...>"}catch{return"<...>"}}function s(){var j=v.A;return j===null?null:j.getOwner()}function i(){return Error("react-stack-top-frame")}function o(j){if(O.call(j,"key")){var W=Object.getOwnPropertyDescriptor(j,"key").get;if(W&&W.isReactWarning)return!1}return j.key!==void 0}function l(j,W){function Y(){k||(k=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",W))}Y.isReactWarning=!0,Object.defineProperty(j,"key",{get:Y,configurable:!0})}function c(){var j=e(this.type);return C[j]||(C[j]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),j=this.props.ref,j!==void 0?j:null}function u(j,W,Y,K,ce,Z,me,xe){return Y=Z.ref,j={$$typeof:m,type:j,key:W,props:Z,_owner:ce},(Y!==void 0?Y:null)!==null?Object.defineProperty(j,"ref",{enumerable:!1,get:c}):Object.defineProperty(j,"ref",{enumerable:!1,value:null}),j._store={},Object.defineProperty(j._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(j,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(j,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:me}),Object.defineProperty(j,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:xe}),Object.freeze&&(Object.freeze(j.props),Object.freeze(j)),j}function p(j,W,Y,K,ce,Z,me,xe){var se=W.children;if(se!==void 0)if(K)if(S(se)){for(K=0;K<se.length;K++)h(se[K]);Object.freeze&&Object.freeze(se)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else h(se);if(O.call(W,"key")){se=e(j);var P=Object.keys(W).filter(function(ee){return ee!=="key"});K=0<P.length?"{key: someKey, "+P.join(": ..., ")+": ...}":"{key: someKey}",B[se+K]||(P=0<P.length?"{"+P.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX: let props = %s; <%s {...props} /> React keys must be passed directly to JSX without using spread: let props = %s; <%s key={someKey} {...props} />`,K,se,P,se),B[se+K]=!0)}if(se=null,Y!==void 0&&(r(Y),se=""+Y),o(W)&&(r(W.key),se=""+W.key),"key"in W){Y={};for(var R in W)R!=="key"&&(Y[R]=W[R])}else Y=W;return se&&l(Y,typeof j=="function"?j.displayName||j.name||"Unknown":j),u(j,se,Z,ce,s(),Y,me,xe)}function h(j){typeof j=="object"&&j!==null&&j.$$typeof===m&&j._store&&(j._store.validated=1)}var d=L,m=Symbol.for("react.transitional.element"),g=Symbol.for("react.portal"),b=Symbol.for("react.fragment"),x=Symbol.for("react.strict_mode"),N=Symbol.for("react.profiler"),w=Symbol.for("react.consumer"),D=Symbol.for("react.context"),T=Symbol.for("react.forward_ref"),I=Symbol.for("react.suspense"),M=Symbol.for("react.suspense_list"),_=Symbol.for("react.memo"),G=Symbol.for("react.lazy"),ae=Symbol.for("react.activity"),H=Symbol.for("react.client.reference"),v=d.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,O=Object.prototype.hasOwnProperty,S=Array.isArray,U=console.createTask?console.createTask:function(){return null};d={"react-stack-bottom-frame":function(j){return j()}};var k,C={},F=d["react-stack-bottom-frame"].bind(d,i)(),$=U(n(i)),B={};mn.Fragment=b,mn.jsx=function(j,W,Y,K,ce){var Z=1e4>v.recentlyCreatedOwnerStacks++;return p(j,W,Y,!1,K,ce,Z?Error("react-stack-top-frame"):F,Z?U(n(j)):$)},mn.jsxs=function(j,W,Y,K,ce){var Z=1e4>v.recentlyCreatedOwnerStacks++;return p(j,W,Y,!0,K,ce,Z?Error("react-stack-top-frame"):F,Z?U(n(j)):$)}}()),mn}var xc;function Hm(){return xc||(xc=1,process.env.NODE_ENV==="production"?Ns.exports=zm():Ns.exports=Wm()),Ns.exports}var a=Hm();const Ki=(e,t)=>{let r=e.label,n=e.placeholder||(e.label?`Enter ${e.label}`:"");if(e.id==="dynamic-single-line"){const i=e.label,o=t.filter(l=>l.type==="dynamic-single-line"&&(l.label===i||l.label.startsWith(i+" ")));o.length>0&&(r=`${i} ${o.length+1}`,n=`Enter ${i} ${o.length+1}`)}return{id:`${e.id}_${Date.now()}`,type:e.id,label:r,originalIcon:e.icon,color:e.color,values:{},showLabel:!0,instruction:"",hoverText:"",placeholder:n,inputType:"text",visibility:!0,required:!1,subFields:Gm(e.id),options:Xm(e.id),minRating:1,maxRating:5,minValue:0,maxValue:100,step:1,selectedIcon:null,iconColor:e.color,allowedFileTypes:Ym(e.id),maxFileSize:Km(e.id),multipleFiles:!1}},Gm=e=>{switch(e){case"name":return{firstName:{show:!0,label:"First Name",placeholder:"Enter first name",required:!1,order:0},lastName:{show:!0,label:"Last Name",placeholder:"Enter last name",required:!1,order:1}};case"address":return{street:{show:!0,label:"Street Address",placeholder:"Enter street address",required:!1,order:0},city:{show:!0,label:"City",placeholder:"City",required:!1,order:1},zip:{show:!0,label:"ZIP Code",placeholder:"ZIP",required:!1,order:2}};case"table":return{columns:[{id:1,label:"Column 1"},{id:2,label:"Column 2"}],rows:[{id:1,values:["",""]},{id:2,values:["",""]}]};default:return{}}},Ym=e=>{switch(e){case"file-upload":return["pdf","doc","docx","txt","rtf"];case"image-upload":return["jpg","jpeg","png","gif","webp"];case"audio-video-upload":return["mp3","mp4","wav","avi","mov"];default:return[]}},Km=e=>{switch(e){case"file-upload":return 10;case"image-upload":return 10;case"audio-video-upload":return 50;default:return 10}},Xm=e=>{switch(e){case"dropdown":case"radio":case"checkbox":return[{id:1,label:"Option 1",value:"option1"},{id:2,label:"Option 2",value:"option2"},{id:3,label:"Option 3",value:"option3"}];case"multiple-choice":return[{id:1,label:"Choice A",value:"choiceA"},{id:2,label:"Choice B",value:"choiceB"},{id:3,label:"Choice C",value:"choiceC"},{id:4,label:"Choice D",value:"choiceD"}];case"image-choices":return[{id:1,label:"Option 1",value:"option1",image:""},{id:2,label:"Option 2",value:"option2",image:""},{id:3,label:"Option 3",value:"option3",image:""},{id:4,label:"Option 4",value:"option4",image:""}];case"matrix-choice":return{rows:[{id:1,label:"Row 1"},{id:2,label:"Row 2"},{id:3,label:"Row 3"}],columns:[{id:1,label:"Column 1"},{id:2,label:"Column 2"},{id:3,label:"Column 3"}]};default:return[]}},yc=()=>({name:"Conference Registration Form",type:"registration",description:"Complete registration form for the upcoming conference with accommodation and travel details.",structure:[{id:`radio_${Date.now()}_1`,type:"radio",label:"Are you accompanying a registered conference delegate?",originalIcon:()=>a.jsx("span",{className:"text-green-600 font-bold text-lg",children:"?"}),color:"text-green-600",values:{},showLabel:!0,instruction:"Please select one option",hoverText:"Choose if you are accompanying a delegate",placeholder:"",inputType:"text",visibility:!0,subFields:{},options:[{id:1,label:"Yes",value:"yes"},{id:2,label:"No",value:"no"}],minRating:1,maxRating:5,minValue:0,maxValue:100,step:1},{id:`radio_${Date.now()}_2`,type:"radio",label:"Are you an industry professional attending independently?",originalIcon:()=>a.jsx("span",{className:"text-blue-600 font-bold text-lg",children:"🏢"}),color:"text-blue-600",values:{},showLabel:!0,instruction:"",hoverText:"",placeholder:"",inputType:"text",visibility:!0,subFields:{},options:[{id:1,label:"Yes",value:"yes"},{id:2,label:"No",value:"no"}],minRating:1,maxRating:5,minValue:0,maxValue:100,step:1},{id:`dropdown_${Date.now()}_3`,type:"dropdown",label:"Title",originalIcon:()=>a.jsx("span",{className:"text-purple-600 font-bold text-lg",children:"👤"}),color:"text-purple-600",values:{},showLabel:!0,instruction:"",hoverText:"",placeholder:"Select your title",inputType:"text",visibility:!0,subFields:{},options:[{id:1,label:"Prof.",value:"prof"},{id:2,label:"Dr.",value:"dr"},{id:3,label:"Er.",value:"er"},{id:4,label:"Mr.",value:"mr"},{id:5,label:"Mrs.",value:"mrs"},{id:6,label:"Miss",value:"miss"}],minRating:1,maxRating:5,minValue:0,maxValue:100,step:1},{id:`name_${Date.now()}_4`,type:"name",label:"Full Name",originalIcon:()=>a.jsx("span",{className:"text-blue-500 font-bold text-lg",children:"👤"}),color:"text-blue-500",values:{},showLabel:!0,instruction:"Enter your first and last name as per official documents",hoverText:"This will appear on your certificate",placeholder:"",inputType:"text",visibility:!0,subFields:{firstName:{show:!0,label:"First Name",placeholder:"Enter first name",required:!0,order:0},lastName:{show:!0,label:"Last Name",placeholder:"Enter last name",required:!0,order:1}},options:[],minRating:1,maxRating:5,minValue:0,maxValue:100,step:1},{id:`radio_${Date.now()}_5`,type:"radio",label:"Gender",originalIcon:()=>a.jsx("span",{className:"text-pink-600 font-bold text-lg",children:"⚧"}),color:"text-pink-600",values:{},showLabel:!0,instruction:"",hoverText:"",placeholder:"",inputType:"text",visibility:!0,subFields:{},options:[{id:1,label:"Male",value:"male"},{id:2,label:"Female",value:"female"},{id:3,label:"Transgender",value:"transgender"}],minRating:1,maxRating:5,minValue:0,maxValue:100,step:1},{id:`phone_${Date.now()}_6`,type:"phone",label:"Contact Number (for correspondence)",originalIcon:()=>a.jsx("span",{className:"text-purple-500 font-bold text-lg",children:"📞"}),color:"text-purple-500",values:{},showLabel:!0,instruction:"Primary contact number for all correspondence",hoverText:"We'll use this for important updates",placeholder:"+91 98765 43210",inputType:"tel",visibility:!0,subFields:{},options:[],minRating:1,maxRating:5,minValue:0,maxValue:100,step:1},{id:`email_${Date.now()}_7`,type:"email",label:"Email Address (for all correspondence)",originalIcon:()=>a.jsx("span",{className:"text-red-500 font-bold text-lg",children:"📧"}),color:"text-red-500",values:{},showLabel:!0,instruction:"All conference updates will be sent to this email",hoverText:"Please ensure this email is active",placeholder:"your.email@example.com",inputType:"email",visibility:!0,subFields:{},options:[],minRating:1,maxRating:5,minValue:0,maxValue:100,step:1},{id:`phone_${Date.now()}_8`,type:"phone",label:"WhatsApp Number (for conference updates)",originalIcon:()=>a.jsx("span",{className:"text-green-500 font-bold text-lg",children:"💬"}),color:"text-green-500",values:{},showLabel:!0,instruction:"For quick conference updates and notifications",hoverText:"WhatsApp number for instant updates",placeholder:"+91 98765 43210",inputType:"tel",visibility:!0,subFields:{},options:[],minRating:1,maxRating:5,minValue:0,maxValue:100,step:1},{id:`single-line_${Date.now()}_9`,type:"single-line",label:"Organization / Institute",originalIcon:()=>a.jsx("span",{className:"text-indigo-600 font-bold text-lg",children:"🏛️"}),color:"text-indigo-600",values:{},showLabel:!0,instruction:"Enter your current organization or institute name",hoverText:"This will appear on your certificate",placeholder:"University/Company Name",inputType:"text",visibility:!0,subFields:{},options:[],minRating:1,maxRating:5,minValue:0,maxValue:100,step:1},{id:`single-line_${Date.now()}_10`,type:"single-line",label:"Current Designation / Position",originalIcon:()=>a.jsx("span",{className:"text-orange-600 font-bold text-lg",children:"💼"}),color:"text-orange-600",values:{},showLabel:!0,instruction:"",hoverText:"",placeholder:"Professor/Manager/Student etc.",inputType:"text",visibility:!0,subFields:{},options:[],minRating:1,maxRating:5,minValue:0,maxValue:100,step:1},{id:`radio_${Date.now()}_11`,type:"radio",label:"Do you require accommodation?",originalIcon:()=>a.jsx("span",{className:"text-blue-700 font-bold text-lg",children:"🏨"}),color:"text-blue-700",values:{},showLabel:!0,instruction:"",hoverText:"",placeholder:"",inputType:"text",visibility:!0,subFields:{},options:[{id:1,label:"Yes",value:"yes"},{id:2,label:"No",value:"no"}],minRating:1,maxRating:5,minValue:0,maxValue:100,step:1},{id:`checkbox_${Date.now()}_12`,type:"checkbox",label:"Dates required (please tick all that apply)",originalIcon:()=>a.jsx("span",{className:"text-green-700 font-bold text-lg",children:"📅"}),color:"text-green-700",values:{},showLabel:!0,instruction:"Select all dates you need accommodation",hoverText:"",placeholder:"",inputType:"text",visibility:!0,subFields:{},options:[{id:1,label:"20.11.2025",value:"2025-11-20"},{id:2,label:"21.11.2025",value:"2025-11-21"},{id:3,label:"22.11.2025",value:"2025-11-22"},{id:4,label:"23.11.2025",value:"2025-11-23"}],minRating:1,maxRating:5,minValue:0,maxValue:100,step:1},{id:`date_${Date.now()}_13`,type:"date",label:"Expected Date of Arrival",originalIcon:()=>a.jsx("span",{className:"text-orange-600 font-bold text-lg",children:"📅"}),color:"text-orange-600",values:{},showLabel:!0,instruction:"",hoverText:"",placeholder:"",inputType:"text",visibility:!0,subFields:{},options:[],minRating:1,maxRating:5,minValue:0,maxValue:100,step:1},{id:`radio_${Date.now()}_14`,type:"radio",label:"Mode of Travel",originalIcon:()=>a.jsx("span",{className:"text-blue-600 font-bold text-lg",children:"✈️"}),color:"text-blue-600",values:{},showLabel:!0,instruction:"",hoverText:"",placeholder:"",inputType:"text",visibility:!0,subFields:{},options:[{id:1,label:"Air",value:"air"},{id:2,label:"Train",value:"train"},{id:3,label:"Bus",value:"bus"}],minRating:1,maxRating:5,minValue:0,maxValue:100,step:1},{id:`time_${Date.now()}_15`,type:"time",label:"Time of Arrival",originalIcon:()=>a.jsx("span",{className:"text-blue-700 font-bold text-lg",children:"🕐"}),color:"text-blue-700",values:{},showLabel:!0,instruction:"",hoverText:"",placeholder:"",inputType:"text",visibility:!0,subFields:{},options:[],minRating:1,maxRating:5,minValue:0,maxValue:100,step:1},{id:`single-line_${Date.now()}_16`,type:"single-line",label:"Train/Flight Number & PNR",originalIcon:()=>a.jsx("span",{className:"text-purple-700 font-bold text-lg",children:"🎫"}),color:"text-purple-700",values:{},showLabel:!0,instruction:"Enter your travel details for pickup arrangements",hoverText:"",placeholder:"AI 123 / 12345ABC",inputType:"text",visibility:!0,subFields:{},options:[],minRating:1,maxRating:5,minValue:0,maxValue:100,step:1},{id:`radio_${Date.now()}_17`,type:"radio",label:"Dietary Preference",originalIcon:()=>a.jsx("span",{className:"text-green-600 font-bold text-lg",children:"🍽️"}),color:"text-green-600",values:{},showLabel:!0,instruction:"",hoverText:"",placeholder:"",inputType:"text",visibility:!0,subFields:{},options:[{id:1,label:"Vegetarian",value:"vegetarian"},{id:2,label:"Non-Vegetarian",value:"non-vegetarian"}],minRating:1,maxRating:5,minValue:0,maxValue:100,step:1},{id:`radio_${Date.now()}_18`,type:"radio",label:"Would you like to purchase a conference T-shirt?",originalIcon:()=>a.jsx("span",{className:"text-pink-600 font-bold text-lg",children:"👕"}),color:"text-pink-600",values:{},showLabel:!0,instruction:"Additional payment of ₹600/- applies",hoverText:"Payment details will be notified via email",placeholder:"",inputType:"text",visibility:!0,subFields:{},options:[{id:1,label:"Yes",value:"yes"},{id:2,label:"No",value:"no"}],minRating:1,maxRating:5,minValue:0,maxValue:100,step:1},{id:`dropdown_${Date.now()}_19`,type:"dropdown",label:"T-shirt Size",originalIcon:()=>a.jsx("span",{className:"text-indigo-600 font-bold text-lg",children:"📏"}),color:"text-indigo-600",values:{},showLabel:!0,instruction:"Select your preferred size",hoverText:"",placeholder:"Select size",inputType:"text",visibility:!0,subFields:{},options:[{id:1,label:"S",value:"s"},{id:2,label:"M",value:"m"},{id:3,label:"L",value:"l"},{id:4,label:"XL",value:"xl"},{id:5,label:"XXL",value:"xxl"},{id:6,label:"XXXL",value:"xxxl"}],minRating:1,maxRating:5,minValue:0,maxValue:100,step:1},{id:`radio_${Date.now()}_20`,type:"radio",label:"Are you planning to join the conference trip?",originalIcon:()=>a.jsx("span",{className:"text-green-700 font-bold text-lg",children:"🚌"}),color:"text-green-700",values:{},showLabel:!0,instruction:"Trip includes visits to Wayanad Wildlife Sanctuary, Pookode Lake, Banasura Sagar Dam, and Karapuzha Ecotourism Centre. Limited to 100 participants (first come, first served). Additional fee: ₹1,200/-",hoverText:"",placeholder:"",inputType:"text",visibility:!0,subFields:{},options:[{id:1,label:"Yes (charges apply)",value:"yes"},{id:2,label:"No",value:"no"}],minRating:1,maxRating:5,minValue:0,maxValue:100,step:1},{id:`radio_${Date.now()}_21`,type:"radio",label:"Do you have an accompanying person?",originalIcon:()=>a.jsx("span",{className:"text-purple-600 font-bold text-lg",children:"👥"}),color:"text-purple-600",values:{},showLabel:!0,instruction:"",hoverText:"",placeholder:"",inputType:"text",visibility:!0,subFields:{},options:[{id:1,label:"Yes",value:"yes"},{id:2,label:"No",value:"no"}],minRating:1,maxRating:5,minValue:0,maxValue:100,step:1},{id:`single-line_${Date.now()}_22`,type:"single-line",label:"Name of Accompanying Person",originalIcon:()=>a.jsx("span",{className:"text-blue-600 font-bold text-lg",children:"👤"}),color:"text-blue-600",values:{},showLabel:!0,instruction:"Provide full name and relationship to you",hoverText:"",placeholder:"Full Name",inputType:"text",visibility:!0,subFields:{},options:[],minRating:1,maxRating:5,minValue:0,maxValue:100,step:1},{id:`single-line_${Date.now()}_23`,type:"single-line",label:"Unique ID Number",originalIcon:()=>a.jsx("span",{className:"text-orange-600 font-bold text-lg",children:"🆔"}),color:"text-orange-600",values:{},showLabel:!0,instruction:"Enter the unique ID number for the accompanying person",hoverText:"",placeholder:"ID Number",inputType:"text",visibility:!0,subFields:{},options:[],minRating:1,maxRating:5,minValue:0,maxValue:100,step:1},{id:`checkbox_${Date.now()}_24`,type:"checkbox",label:"Confirmation",originalIcon:()=>a.jsx("span",{className:"text-green-600 font-bold text-lg",children:"✅"}),color:"text-green-600",values:{},showLabel:!0,instruction:"Please confirm the following before submitting",hoverText:"",placeholder:"",inputType:"text",visibility:!0,subFields:{},options:[{id:1,label:"I confirm that the details entered above are correct to the best of my knowledge",value:"details_correct"},{id:2,label:"I have verified that my name and institution are correctly entered and understand that no changes can be made once certificates are printed",value:"name_verified"}],minRating:1,maxRating:5,minValue:0,maxValue:100,step:1}],rules:[]}),vc=e=>{const{isEditMode:t,formId:r,formName:n,onFormNameChange:s,onSave:i}=e,[o,l]=L.useState([]),[c,u]=L.useState({}),[p,h]=L.useState({isOpen:!1,field:null}),[d,m]=L.useState(!1),[g,b]=L.useState({}),[x,N]=L.useState(null),[w,D]=L.useState(!1),[T,I]=L.useState(!1),[M,_]=L.useState([]),[G,ae]=L.useState(!1),[H,v]=L.useState(!1),O=L.useRef(null);return L.useEffect(()=>{x&&O.current&&setTimeout(()=>{const J=document.querySelector(`[data-field-id="${x}"]`);J&&(J.scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"}),J.style.transform="scale(1.02)",J.style.transition="transform 0.3s ease-out",setTimeout(()=>{J.style.transform="scale(1)"},300)),N(null)},100)},[x,o]),L.useEffect(()=>{n!==void 0&&n!==c.formName&&u(J=>({...J,formName:n}))},[n]),{formFields:o,formDetails:c,settingsDrawer:p,isPreviewMode:d,previewData:g,showFormDetailsModal:w,showRulesModal:T,formRules:M,isTestMode:G,isSaving:H,formContainerRef:O,handlers:{handleFieldSelect:J=>{const ge=Ki(J,o);l([...o,ge]),N(ge.id)},handleFieldAdd:(J,ge)=>{const fe=Ki(J,o),ot=[...o];ot.splice(ge,0,fe),l(ot),N(fe.id)},handleFieldRemove:J=>{l(o.filter(fe=>fe.id!==J));const ge={...c};delete ge[J],u(ge)},handleFieldUpdate:(J,ge)=>{l(o.map(fe=>fe.id===J?{...fe,...ge}:fe))},handleFieldDuplicate:J=>{const ge={...J,id:`field_${Date.now()}_${Math.random().toString(36).substr(2,9)}`,label:`${J.label} (Copy)`};l([...o,ge]),N(ge.id)},handleFieldOpenSettings:J=>{h({isOpen:!0,field:J})},handleFieldSettingsUpdate:(J,ge)=>{l(o.map(fe=>fe.id===J?{...fe,...ge}:fe)),h({isOpen:!1,field:null})},handleFieldReorder:(J,ge)=>{const fe=[...o],[ot]=fe.splice(J,1);fe.splice(ge,0,ot),l(fe)},handleCloseSettingsDrawer:()=>{h({isOpen:!1,field:null})},handleSaveForm:()=>{if(H)return;if(o.length===0){alert("Please add some fields to your form before saving.");return}v(!0);const J={name:c.formName||n,type:c.formType,description:c.formDescription,structure:o,formsRules:M};console.log("Form Data to Save:",J),i&&i(J),v(!1),alert("Form saved successfully!")},handleFormDetailsSubmit:J=>{if(H)return;v(!0);const ge={...J,structure:o,formsRules:M};console.log("Form Data with Details:",ge),i&&i(ge),v(!1),D(!1),m(!0),b({})},handleExitPreview:()=>{ae(!1),m(!1),b({})},handlePreviewFieldUpdate:(J,ge)=>{b(fe=>({...fe,[J]:ge}))},handleSubmitPreview:J=>{const ge=J||(()=>{const fe={};return Object.entries(g).forEach(([ot,Le])=>{const[$t,Ar]=ot.split("."),Vt=$t.split("_")[0];Ar?(fe[Vt]||(fe[Vt]={}),fe[Vt][Ar]=Le):fe[Vt]=Le}),fe})();console.log("Form Submission Data (with labels):",ge),console.log("Data source:",J?"FormPreview formatted":"Fallback transformation"),console.log("Form Structure:",o),alert("Form submitted successfully! Check console for data.")},handleClearAll:()=>{l([]),u({}),_([])},handleOpenRules:()=>{I(!0)},handleSaveRules:J=>{_(J),I(!1)},shouldShowField:J=>{if(!M||M.length===0)return!0;const ge=M.filter(fe=>fe.fieldId===J);return ge.length===0?!0:ge.every(fe=>{const ot=o.find($t=>$t.id===fe.targetFieldId);if(!ot)return!0;const Le=g[ot.id];if(!Le)return fe.condition==="is_empty";switch(fe.condition){case"equals":return Le===fe.value;case"not_equals":return Le!==fe.value;case"contains":return Le.includes(fe.value);case"not_contains":return!Le.includes(fe.value);case"is_empty":return!Le||Le.trim()==="";case"is_not_empty":return Le&&Le.trim()!=="";default:return!0}})},handlePreviewForm:()=>{m(!0),b({})},handleTestRules:()=>{ae(!0),m(!0),b({})},handleExitTest:()=>{ae(!1),m(!1),b({})},handleLoadDemo:()=>{const J=yc();l(J.structure),u({formName:J.name,formType:J.type,formDescription:J.description}),_(J.rules||[]),i&&i({name:J.name,type:J.type,description:J.description,structure:J.structure,formsRules:J.rules||[]})},loadForm:J=>{if(J.structure&&J.structure.length>0&&l(J.structure),(J.name||J.type||J.description)&&u({formName:J.name,formType:J.type,formDescription:J.description}),J.FormsRules||J.formsRules){let ge=[];try{ge=JSON.parse(J.FormsRules||J.formsRules||"[]")}catch{ge=[]}_(Array.isArray(ge)?ge:[])}else _([])},setShowFormDetailsModal:D,setShowRulesModal:I}}};var Nc={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},wc=L.createContext&&L.createContext(Nc),Jm=["attr","size","title"];function Zm(e,t){if(e==null)return{};var r=Qm(e,t),n,s;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(s=0;s<i.length;s++)n=i[s],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Qm(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function ws(){return ws=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ws.apply(this,arguments)}function Ec(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,n)}return r}function Es(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ec(Object(r),!0).forEach(function(n){e0(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ec(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function e0(e,t,r){return t=t0(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function t0(e){var t=r0(e,"string");return typeof t=="symbol"?t:t+""}function r0(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Sc(e){return e&&e.map((t,r)=>L.createElement(t.tag,Es({key:r},t.attr),Sc(t.child)))}function te(e){return t=>L.createElement(n0,ws({attr:Es({},e.attr)},t),Sc(e.child))}function n0(e){var t=r=>{var{attr:n,size:s,title:i}=e,o=Zm(e,Jm),l=s||r.size||"1em",c;return r.className&&(c=r.className),e.className&&(c=(c?c+" ":"")+e.className),L.createElement("svg",ws({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,n,o,{className:c,style:Es(Es({color:e.color||r.color},r.style),e.style),height:l,width:l,xmlns:"http://www.w3.org/2000/svg"}),i&&L.createElement("title",null,i),e.children)};return wc!==void 0?L.createElement(wc.Consumer,null,r=>t(r)):t(Nc)}function Rr(e){return te({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M256 112v288m144-144H112"},child:[]}]})(e)}function jc(e){return te({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M407.72 224c-3.4 0-14.79.1-18 .3l-64.9 1.7a1.83 1.83 0 0 1-1.69-.9L193.55 67.56a9 9 0 0 0-6.66-3.56H160l73 161a2.35 2.35 0 0 1-2.26 3.35l-121.69 1.8a8.06 8.06 0 0 1-6.6-3.1l-37-45c-3-3.9-8.62-6-13.51-6H33.08c-1.29 0-1.1 1.21-.75 2.43l19.84 71.42a16.3 16.3 0 0 1 0 11.9L32.31 333c-.59 1.95-.52 3 1.77 3H52c8.14 0 9.25-1.06 13.41-6.3l37.7-45.7a8.19 8.19 0 0 1 6.6-3.1l120.68 2.7a2.7 2.7 0 0 1 2.43 3.74L160 448h26.64a9 9 0 0 0 6.65-3.55L323.14 287c.39-.6 2-.9 2.69-.9l63.9 1.7c3.3.2 14.59.3 18 .3C452 288.1 480 275.93 480 256s-27.88-32-72.28-32z"},child:[]}]})(e)}function s0(e){return te({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"48",d:"M244 400 100 256l144-144M120 256h292"},child:[]}]})(e)}function Cc(e){return te({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M467 176a29.94 29.94 0 0 0-25.32 12.5 2 2 0 0 1-3.64-1.14v-36.65c0-20.75-16.34-38.21-37.08-38.7A38 38 0 0 0 362 150v82a2 2 0 0 1-2 2H152a2 2 0 0 1-2-2v-81.29c0-20.75-16.34-38.21-37.08-38.7A38 38 0 0 0 74 150v37.38a2 2 0 0 1-3.64 1.14A29.94 29.94 0 0 0 45 176c-16.3.51-29 14.31-29 30.62v98.72c0 16.31 12.74 30.11 29 30.62a29.94 29.94 0 0 0 25.32-12.5 2 2 0 0 1 3.68 1.16v36.67C74 382 90.34 399.5 111.08 400A38 38 0 0 0 150 362v-82a2 2 0 0 1 2-2h208a2 2 0 0 1 2 2v81.29c0 20.75 16.34 38.21 37.08 38.7A38 38 0 0 0 438 362v-37.38a2 2 0 0 1 3.64-1.14A29.94 29.94 0 0 0 467 336c16.3-.51 29-14.31 29-30.62v-98.74c0-16.31-12.74-30.11-29-30.64z"},child:[]}]})(e)}function Ac(e){return te({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M256 160c16-63.16 76.43-95.41 208-96a15.94 15.94 0 0 1 16 16v288a16 16 0 0 1-16 16c-128 0-177.45 25.81-208 64-30.37-38-80-64-208-64-9.88 0-16-8.05-16-17.93V80a15.94 15.94 0 0 1 16-16c131.57.59 192 32.84 208 96zm0 0v288"},child:[]}]})(e)}function Tc(e){return te({attr:{viewBox:"0 0 512 512"},child:[{tag:"rect",attr:{width:"448",height:"320",x:"32",y:"128",fill:"none",strokeLinejoin:"round",strokeWidth:"32",rx:"48",ry:"48"},child:[]},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M144 128V96a32 32 0 0 1 32-32h160a32 32 0 0 1 32 32v32m112 112H32m288 0v24a8 8 0 0 1-8 8H200a8 8 0 0 1-8-8v-24"},child:[]}]})(e)}function Oc(e){return te({attr:{viewBox:"0 0 512 512"},child:[{tag:"rect",attr:{width:"352",height:"192",x:"80",y:"112",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",rx:"32",ry:"32"},child:[]},{tag:"rect",attr:{width:"352",height:"128",x:"80",y:"304",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",rx:"32",ry:"32"},child:[]},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M400 112H112a32.09 32.09 0 0 1-32-32h0a32.09 32.09 0 0 1 32-32h288a32.09 32.09 0 0 1 32 32h0a32.09 32.09 0 0 1-32 32zM144 432v22a10 10 0 0 1-10 10h-28a10 10 0 0 1-10-10v-22zm272 0v22a10 10 0 0 1-10 10h-28a10 10 0 0 1-10-10v-22z"},child:[]},{tag:"circle",attr:{cx:"368",cy:"368",r:"16",fill:"none",strokeLinejoin:"round",strokeWidth:"32"},child:[]},{tag:"circle",attr:{cx:"144",cy:"368",r:"16",fill:"none",strokeLinejoin:"round",strokeWidth:"32"},child:[]},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M256 112v192M80 80v288M432 80v288"},child:[]}]})(e)}function Dc(e){return te({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M176 416v64M80 32h192a32 32 0 0 1 32 32v412a4 4 0 0 1-4 4H48h0V64a32 32 0 0 1 32-32zm240 160h112a32 32 0 0 1 32 32v256h0-160 0V208a16 16 0 0 1 16-16z"},child:[]},{tag:"path",attr:{d:"M98.08 431.87a16 16 0 1 1 13.79-13.79 16 16 0 0 1-13.79 13.79zm0-80a16 16 0 1 1 13.79-13.79 16 16 0 0 1-13.79 13.79zm0-80a16 16 0 1 1 13.79-13.79 16 16 0 0 1-13.79 13.79zm0-80a16 16 0 1 1 13.79-13.79 16 16 0 0 1-13.79 13.79zm0-80a16 16 0 1 1 13.79-13.79 16 16 0 0 1-13.79 13.79zm80 240a16 16 0 1 1 13.79-13.79 16 16 0 0 1-13.79 13.79zm0-80a16 16 0 1 1 13.79-13.79 16 16 0 0 1-13.79 13.79zm0-80a16 16 0 1 1 13.79-13.79 16 16 0 0 1-13.79 13.79zm0-80a16 16 0 1 1 13.79-13.79 16 16 0 0 1-13.79 13.79zm80 320a16 16 0 1 1 13.79-13.79 16 16 0 0 1-13.79 13.79zm0-80a16 16 0 1 1 13.79-13.79 16 16 0 0 1-13.79 13.79zm0-80a16 16 0 1 1 13.79-13.79 16 16 0 0 1-13.79 13.79z"},child:[]},{tag:"ellipse",attr:{cx:"256",cy:"176",rx:"15.95",ry:"16.03",transform:"rotate(-45 255.99 175.996)"},child:[]},{tag:"path",attr:{d:"M258.08 111.87a16 16 0 1 1 13.79-13.79 16 16 0 0 1-13.79 13.79zM400 400a16 16 0 1 0 16 16 16 16 0 0 0-16-16zm0-80a16 16 0 1 0 16 16 16 16 0 0 0-16-16zm0-80a16 16 0 1 0 16 16 16 16 0 0 0-16-16zm-64 160a16 16 0 1 0 16 16 16 16 0 0 0-16-16zm0-80a16 16 0 1 0 16 16 16 16 0 0 0-16-16zm0-80a16 16 0 1 0 16 16 16 16 0 0 0-16-16z"},child:[]}]})(e)}function i0(e){return te({attr:{viewBox:"0 0 512 512"},child:[{tag:"rect",attr:{width:"416",height:"384",x:"48",y:"80",fill:"none",strokeLinejoin:"round",strokeWidth:"32",rx:"48"},child:[]},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M128 48v32m256-32v32m80 80H48"},child:[]}]})(e)}function Xi(e){return te({attr:{viewBox:"0 0 512 512"},child:[{tag:"rect",attr:{width:"416",height:"384",x:"48",y:"80",fill:"none",strokeLinejoin:"round",strokeWidth:"32",rx:"48"},child:[]},{tag:"circle",attr:{cx:"296",cy:"232",r:"24"},child:[]},{tag:"circle",attr:{cx:"376",cy:"232",r:"24"},child:[]},{tag:"circle",attr:{cx:"296",cy:"312",r:"24"},child:[]},{tag:"circle",attr:{cx:"376",cy:"312",r:"24"},child:[]},{tag:"circle",attr:{cx:"136",cy:"312",r:"24"},child:[]},{tag:"circle",attr:{cx:"216",cy:"312",r:"24"},child:[]},{tag:"circle",attr:{cx:"136",cy:"392",r:"24"},child:[]},{tag:"circle",attr:{cx:"216",cy:"392",r:"24"},child:[]},{tag:"circle",attr:{cx:"296",cy:"392",r:"24"},child:[]},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M128 48v32m256-32v32"},child:[]},{tag:"path",attr:{fill:"none",strokeLinejoin:"round",strokeWidth:"32",d:"M464 160H48"},child:[]}]})(e)}function Ji(e){return te({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeMiterlimit:"10",strokeWidth:"32",d:"M451 374c-15.88-16-54.34-39.35-73-48.76-24.3-12.24-26.3-13.24-45.4.95-12.74 9.47-21.21 17.93-36.12 14.75s-47.31-21.11-75.68-49.39-47.34-61.62-50.53-76.48 5.41-23.23 14.79-36c13.22-18 12.22-21 .92-45.3-8.81-18.9-32.84-57-48.9-72.8C119.9 44 119.9 47 108.83 51.6A160.15 160.15 0 0 0 83 65.37C67 76 58.12 84.83 51.91 98.1s-9 44.38 23.07 102.64 54.57 88.05 101.14 134.49S258.5 406.64 310.85 436c64.76 36.27 89.6 29.2 102.91 23s22.18-15 32.83-31a159.09 159.09 0 0 0 13.8-25.8C465 391.17 468 391.17 451 374z"},child:[]}]})(e)}function Lc(e){return te({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"m350.54 148.68-26.62-42.06C318.31 100.08 310.62 96 302 96h-92c-8.62 0-16.31 4.08-21.92 10.62l-26.62 42.06C155.85 155.23 148.62 160 140 160H80a32 32 0 0 0-32 32v192a32 32 0 0 0 32 32h352a32 32 0 0 0 32-32V192a32 32 0 0 0-32-32h-59c-8.65 0-16.85-4.77-22.46-11.32z"},child:[]},{tag:"circle",attr:{cx:"256",cy:"272",r:"80",fill:"none",strokeMiterlimit:"10",strokeWidth:"32"},child:[]},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M124 158v-22h-24v22"},child:[]}]})(e)}function Ic(e){return te({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"m80 224 37.78-88.15C123.93 121.5 139.6 112 157.11 112h197.78c17.51 0 33.18 9.5 39.33 23.85L432 224m-352 0h352v144H80zm32 144v32H80v-32m352 0v32h-32v-32"},child:[]},{tag:"circle",attr:{cx:"144",cy:"288",r:"16",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32"},child:[]},{tag:"circle",attr:{cx:"368",cy:"288",r:"16",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32"},child:[]}]})(e)}function kc(e){return te({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M352 176 217.6 336 160 272"},child:[]},{tag:"rect",attr:{width:"384",height:"384",x:"64",y:"64",fill:"none",strokeLinejoin:"round",strokeWidth:"32",rx:"48",ry:"48"},child:[]}]})(e)}function o0(e){return te({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M400 48H112a64.07 64.07 0 0 0-64 64v288a64.07 64.07 0 0 0 64 64h288a64.07 64.07 0 0 0 64-64V112a64.07 64.07 0 0 0-64-64zm-35.75 138.29-134.4 160a16 16 0 0 1-12 5.71h-.27a16 16 0 0 1-11.89-5.3l-57.6-64a16 16 0 1 1 23.78-21.4l45.29 50.32 122.59-145.91a16 16 0 0 1 24.5 20.58z"},child:[]}]})(e)}function Fr(e){return te({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeMiterlimit:"10",strokeWidth:"32",d:"M448 256c0-106-86-192-192-192S64 150 64 256s86 192 192 192 192-86 192-192z"},child:[]},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M352 176 217.6 336 160 272"},child:[]}]})(e)}function a0(e){return te({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"48",d:"M328 112 184 256l144 144"},child:[]}]})(e)}function l0(e){return te({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"48",d:"m112 184 144 144 144-144"},child:[]}]})(e)}function c0(e){return te({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"48",d:"m184 112 144 144-144 144"},child:[]}]})(e)}function _c(e){return te({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M368 368 144 144m224 0L144 368"},child:[]}]})(e)}function Zi(e){return te({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"m289.94 256 95-95A24 24 0 0 0 351 127l-95 95-95-95a24 24 0 0 0-34 34l95 95-95 95a24 24 0 1 0 34 34l95-95 95 95a24 24 0 0 0 34-34z"},child:[]}]})(e)}function Rc(e){return te({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M320 367.79h76c55 0 100-29.21 100-83.6s-53-81.47-96-83.6c-8.89-85.06-71-136.8-144-136.8-69 0-113.44 45.79-128 91.2-60 5.7-112 43.88-112 106.4s54 106.4 120 106.4h56"},child:[]},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"m320 255.79-64-64-64 64m64 192.42V207.79"},child:[]}]})(e)}function Qi(e){return te({attr:{viewBox:"0 0 512 512"},child:[{tag:"circle",attr:{cx:"256",cy:"256",r:"26"},child:[]},{tag:"circle",attr:{cx:"346",cy:"256",r:"26"},child:[]},{tag:"circle",attr:{cx:"166",cy:"256",r:"26"},child:[]},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M160 368 32 256l128-112m192 224 128-112-128-112"},child:[]}]})(e)}function eo(e){return te({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeMiterlimit:"10",strokeWidth:"32",d:"M430.11 347.9c-6.6-6.1-16.3-7.6-24.6-9-11.5-1.9-15.9-4-22.6-10-14.3-12.7-14.3-31.1 0-43.8l30.3-26.9c46.4-41 46.4-108.2 0-149.2-34.2-30.1-80.1-45-127.8-45-55.7 0-113.9 20.3-158.8 60.1-83.5 73.8-83.5 194.7 0 268.5 41.5 36.7 97.5 55 152.9 55.4h1.7c55.4 0 110-17.9 148.8-52.4 14.4-12.7 11.99-36.6.1-47.7z"},child:[]},{tag:"circle",attr:{cx:"144",cy:"208",r:"32"},child:[]},{tag:"circle",attr:{cx:"152",cy:"311",r:"32"},child:[]},{tag:"circle",attr:{cx:"224",cy:"144",r:"32"},child:[]},{tag:"circle",attr:{cx:"256",cy:"367",r:"48"},child:[]},{tag:"circle",attr:{cx:"328",cy:"144",r:"32"},child:[]}]})(e)}function u0(e){return te({attr:{viewBox:"0 0 512 512"},child:[{tag:"rect",attr:{width:"336",height:"336",x:"128",y:"128",fill:"none",strokeLinejoin:"round",strokeWidth:"32",rx:"57",ry:"57"},child:[]},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"m383.5 128 .5-24a56.16 56.16 0 0 0-56-56H112a64.19 64.19 0 0 0-64 64v216a56.16 56.16 0 0 0 56 56h24"},child:[]}]})(e)}function Ss(e){return te({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M208 64h66.75a32 32 0 0 1 22.62 9.37l141.26 141.26a32 32 0 0 1 9.37 22.62V432a48 48 0 0 1-48 48H192a48 48 0 0 1-48-48V304"},child:[]},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M288 72v120a32 32 0 0 0 32 32h120"},child:[]},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeMiterlimit:"10",strokeWidth:"32",d:"M160 80v152a23.69 23.69 0 0 1-24 24c-12 0-24-9.1-24-24V88c0-30.59 16.57-56 48-56s48 24.8 48 55.38v138.75c0 43-27.82 77.87-72 77.87s-72-34.86-72-77.87V144"},child:[]}]})(e)}function js(e){return te({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinejoin:"round",strokeWidth:"32",d:"M416 221.25V416a48 48 0 0 1-48 48H144a48 48 0 0 1-48-48V96a48 48 0 0 1 48-48h98.75a32 32 0 0 1 22.62 9.37l141.26 141.26a32 32 0 0 1 9.37 22.62z"},child:[]},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M256 56v120a32 32 0 0 0 32 32h120m-232 80h160m-160 80h160"},child:[]}]})(e)}function d0(e){return te({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M432 448a15.92 15.92 0 0 1-11.31-4.69l-352-352a16 16 0 0 1 22.62-22.62l352 352A16 16 0 0 1 432 448zm-176.34-64c-41.49 0-81.5-12.28-118.92-36.5-34.07-22-64.74-53.51-88.7-91v-.08c19.94-28.57 41.78-52.73 65.24-72.21a2 2 0 0 0 .14-2.94L93.5 161.38a2 2 0 0 0-2.71-.12c-24.92 21-48.05 46.76-69.08 76.92a31.92 31.92 0 0 0-.64 35.54c26.41 41.33 60.4 76.14 98.28 100.65C162 402 207.9 416 255.66 416a239.13 239.13 0 0 0 75.8-12.58 2 2 0 0 0 .77-3.31l-21.58-21.58a4 4 0 0 0-3.83-1 204.8 204.8 0 0 1-51.16 6.47zm235.18-145.4c-26.46-40.92-60.79-75.68-99.27-100.53C349 110.55 302 96 255.66 96a227.34 227.34 0 0 0-74.89 12.83 2 2 0 0 0-.75 3.31l21.55 21.55a4 4 0 0 0 3.88 1 192.82 192.82 0 0 1 50.21-6.69c40.69 0 80.58 12.43 118.55 37 34.71 22.4 65.74 53.88 89.76 91a.13.13 0 0 1 0 .16 310.72 310.72 0 0 1-64.12 72.73 2 2 0 0 0-.15 2.95l19.9 19.89a2 2 0 0 0 2.7.13 343.49 343.49 0 0 0 68.64-78.48 32.2 32.2 0 0 0-.1-34.78z"},child:[]},{tag:"path",attr:{d:"M256 160a95.88 95.88 0 0 0-21.37 2.4 2 2 0 0 0-1 3.38l112.59 112.56a2 2 0 0 0 3.38-1A96 96 0 0 0 256 160zm-90.22 73.66a2 2 0 0 0-3.38 1 96 96 0 0 0 115 115 2 2 0 0 0 1-3.38z"},child:[]}]})(e)}function Cs(e){return te({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M255.66 112c-77.94 0-157.89 45.11-220.83 135.33a16 16 0 0 0-.27 17.77C82.92 340.8 161.8 400 255.66 400c92.84 0 173.34-59.38 221.79-135.25a16.14 16.14 0 0 0 0-17.47C428.89 172.28 347.8 112 255.66 112z"},child:[]},{tag:"circle",attr:{cx:"256",cy:"256",r:"80",fill:"none",strokeMiterlimit:"10",strokeWidth:"32"},child:[]}]})(e)}function Fc(e){return te({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeMiterlimit:"10",strokeWidth:"32",d:"M467.51 248.83c-18.4-83.18-45.69-136.24-89.43-149.17A91.5 91.5 0 0 0 352 96c-26.89 0-48.11 16-96 16s-69.15-16-96-16a99.09 99.09 0 0 0-27.2 3.66C89 112.59 61.94 165.7 43.33 248.83c-19 84.91-15.56 152 21.58 164.88 26 9 49.25-9.61 71.27-37 25-31.2 55.79-40.8 119.82-40.8s93.62 9.6 118.66 40.8c22 27.41 46.11 45.79 71.42 37.16 41.02-14.01 40.44-79.13 21.43-165.04z"},child:[]},{tag:"circle",attr:{cx:"292",cy:"224",r:"20"},child:[]},{tag:"path",attr:{d:"M336 288a20 20 0 1 1 20-19.95A20 20 0 0 1 336 288z"},child:[]},{tag:"circle",attr:{cx:"336",cy:"180",r:"20"},child:[]},{tag:"circle",attr:{cx:"380",cy:"224",r:"20"},child:[]},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M160 176v96m48-48h-96"},child:[]}]})(e)}function to(e){return te({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeMiterlimit:"10",strokeWidth:"32",d:"M256 48C141.13 48 48 141.13 48 256s93.13 208 208 208 208-93.13 208-208S370.87 48 256 48z"},child:[]},{tag:"path",attr:{fill:"none",strokeMiterlimit:"10",strokeWidth:"32",d:"M256 48c-58.07 0-112.67 93.13-112.67 208S197.93 464 256 464s112.67-93.13 112.67-208S314.07 48 256 48z"},child:[]},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M117.33 117.33c38.24 27.15 86.38 43.34 138.67 43.34s100.43-16.19 138.67-43.34m0 277.34c-38.24-27.15-86.38-43.34-138.67-43.34s-100.43 16.19-138.67 43.34"},child:[]},{tag:"path",attr:{fill:"none",strokeMiterlimit:"10",strokeWidth:"32",d:"M256 48v416m208-208H48"},child:[]}]})(e)}function ro(e){return te({attr:{viewBox:"0 0 512 512"},child:[{tag:"rect",attr:{width:"176",height:"176",x:"48",y:"48",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",rx:"20",ry:"20"},child:[]},{tag:"rect",attr:{width:"176",height:"176",x:"288",y:"48",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",rx:"20",ry:"20"},child:[]},{tag:"rect",attr:{width:"176",height:"176",x:"48",y:"288",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",rx:"20",ry:"20"},child:[]},{tag:"rect",attr:{width:"176",height:"176",x:"288",y:"288",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",rx:"20",ry:"20"},child:[]}]})(e)}function Pc(e){return te({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M352.92 80C288 80 256 144 256 144s-32-64-96.92-64c-52.76 0-94.54 44.14-95.08 96.81-1.1 109.33 86.73 187.08 183 252.42a16 16 0 0 0 18 0c96.26-65.34 184.09-143.09 183-252.42-.54-52.67-42.32-96.81-95.08-96.81z"},child:[]}]})(e)}function qc(e){return te({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M80 212v236a16 16 0 0 0 16 16h96V328a24 24 0 0 1 24-24h80a24 24 0 0 1 24 24v136h96a16 16 0 0 0 16-16V212"},child:[]},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M480 256 266.89 52c-5-5.28-16.69-5.34-21.78 0L32 256m368-77V64h-48v69"},child:[]}]})(e)}function Bc(e){return te({attr:{viewBox:"0 0 512 512"},child:[{tag:"rect",attr:{width:"320",height:"448",x:"96",y:"32",fill:"none",strokeLinejoin:"round",strokeWidth:"32",rx:"48"},child:[]},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M208 80h96"},child:[]},{tag:"path",attr:{d:"M333.48 284.51A39.65 39.65 0 0 0 304 272c-11.6 0-22.09 4.41-29.54 12.43s-11.2 19.12-10.34 31C265.83 338.91 283.72 358 304 358s38.14-19.09 39.87-42.55c.88-11.78-2.82-22.77-10.39-30.94zM371.69 448H236.31a12.05 12.05 0 0 1-9.31-4.17 13 13 0 0 1-2.76-10.92c3.25-17.56 13.38-32.31 29.3-42.66C267.68 381.06 285.6 376 304 376s36.32 5.06 50.46 14.25c15.92 10.35 26.05 25.1 29.3 42.66a13 13 0 0 1-2.76 10.92 12.05 12.05 0 0 1-9.31 4.17z"},child:[]}]})(e)}function h0(e){return te({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinejoin:"round",strokeWidth:"32",d:"M432 112V96a48.14 48.14 0 0 0-48-48H64a48.14 48.14 0 0 0-48 48v256a48.14 48.14 0 0 0 48 48h16"},child:[]},{tag:"rect",attr:{width:"400",height:"336",x:"96",y:"128",fill:"none",strokeLinejoin:"round",strokeWidth:"32",rx:"45.99",ry:"45.99"},child:[]},{tag:"ellipse",attr:{cx:"372.92",cy:"219.64",fill:"none",strokeMiterlimit:"10",strokeWidth:"32",rx:"30.77",ry:"30.55"},child:[]},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M342.15 372.17 255 285.78a30.93 30.93 0 0 0-42.18-1.21L96 387.64M265.23 464l118.59-117.73a31 31 0 0 1 41.46-1.87L496 402.91"},child:[]}]})(e)}function be(e){return te({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeMiterlimit:"10",strokeWidth:"32",d:"M248 64C146.39 64 64 146.39 64 248s82.39 184 184 184 184-82.39 184-184S349.61 64 248 64z"},child:[]},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M220 220h32v116"},child:[]},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeMiterlimit:"10",strokeWidth:"32",d:"M208 340h88"},child:[]},{tag:"path",attr:{d:"M248 130a26 26 0 1 0 26 26 26 26 0 0 0-26-26z"},child:[]}]})(e)}function Mc(e){return te({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M160 144h288M160 256h288M160 368h288"},child:[]},{tag:"circle",attr:{cx:"80",cy:"144",r:"16",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32"},child:[]},{tag:"circle",attr:{cx:"80",cy:"256",r:"16",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32"},child:[]},{tag:"circle",attr:{cx:"80",cy:"368",r:"16",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32"},child:[]}]})(e)}function no(e){return te({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M256 48c-79.5 0-144 61.39-144 137 0 87 96 224.87 131.25 272.49a15.77 15.77 0 0 0 25.5 0C304 409.89 400 272.07 400 185c0-75.61-64.5-137-144-137z"},child:[]},{tag:"circle",attr:{cx:"256",cy:"192",r:"48",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32"},child:[]}]})(e)}function so(e){return te({attr:{viewBox:"0 0 512 512"},child:[{tag:"rect",attr:{width:"416",height:"320",x:"48",y:"96",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth: