e&&(i[0].css.splice(e,0,i[0].css[T.current]),i[0].css.splice(T.current+1,1),t.addTolinkhandler(i)))},H=e=>{let t=e.target.closest(".wkit-wb-editor-value");Object.values(t.nextSibling.classList).includes("wb-show")?(t.nextSibling.classList.remove("wb-show"),t.classList.remove("wb-show-drop-down")):(t.nextSibling.classList.add("wb-show"),t.classList.add("wb-show-drop-down"))},U=(e,t,a)=>{var s=ace.edit("editor-html",{theme:"ace/theme/cobalt",mode:"ace/mode/html"}),n=ace.edit("editor-css",{theme:"ace/theme/cobalt",mode:"ace/mode/css"}),r=ace.edit("editor-js",{theme:"ace/theme/cobalt",mode:"ace/mode/javascript"});const l=(e,t,a,i)=>{var s;if(null!=a)var n=a;else n=t;let r=(s=e,(new DOMParser).parseFromString(s,"text/html").body).querySelectorAll([`[data-${n}]`]),l=Object.values(r);var o=0;return l.length>0&&(l.map((e=>{if(e?.innerHTML){let t=e?.innerHTML;t.search([i])>-1&&(o+=1)}})),o>0)};if("html"===i){var o=s.getCursorPosition();if("repeater"==t||"gallery"==t||"select2"==t||"cpt"==t||"cpt_cat"==t||"cpt_tag"==t||"taxonomy"==t)if(null!=a){let i=B();s.session.insert(o,i),s.getValue().search([i])>-1&&null!=(d=s.find(i,{wrap:!0,caseSensitive:!0,wholeWord:!0,regExp:!1,preventScroll:!0}))&&(l(s.getValue(),e,a,i)?s.session.replace(d,`\n\n \n \x3c!-- Enter code here --\x3e\n
\n`):(s.session.replace(d,""),Z()))}else s.session.insert(o,`\n\n \n \x3c!-- Enter code here --\x3e\n
\n`);else if(null!=a){let i=B()+B();var d;s.session.insert(o,i),s.getValue().search([i])>-1&&null!=(d=s.find(i,{wrap:!0,caseSensitive:!0,wholeWord:!0,regExp:!1,preventScroll:!0}))&&(l(s.getValue(),a,void 0,i)?t&&"repeater_index"==t?s.session.replace(d,`{{${e}_index}}`):t&&"repeater_UID"==t?s.session.replace(d,`{{${e}_UID}}`):t&&"headingtags"==t?s.session.replace(d,`\n\n <${e} data-${e}>\n \x3c!--Enter Heading text here--\x3e\n ${e}>\n`):!t||"title"!=t&&"description"!=t&&"thumbnail"!=t&&"cat_name"!=t&&"tag_name"!=t&&"cat_url"!=t&&"tag_url"!=t&&"post_link"!=t&&"post_date"!=t&&"auth_name"!=t&&"auth_profile"!=t&&"auth_url"!=t&&"auth_id"!=t&&"auth_email"!=t&&"taxo_link"!=t&&"taxo_slug"!=t&&"taxo_image"!=t?s.session.replace(d,`{{${e}}}`):s.session.replace(d,`{{${t}_${e}}}`):(s.session.replace(d,""),Z()))}else"headingtags"==t?s.session.insert(o,`\n\n <${e} data-${e}>\n \x3c!--Enter Heading text here--\x3e\n ${e}>\n`):s.session.insert(o,`{{${e}}}`)}else"js"===i&&"js"==t?(o=r.getCursorPosition(),r.session.insert(o,e)):"css"===i&&(o=n.getCursorPosition(),n.session.insert(o,"{{parent-class}}"))},J=()=>{if(t&&t.controller&&t.controller.controller&&t.controller.controller!={}){let e=t.controller.controller;if(t?.cardData?.[0]?.[e?.array_type]?.[e?.sec_id]?.inner_sec?.[e?.compo_id]?.fields?.[e?.repeater]?.name)return t.cardData[0][e.array_type][e.sec_id].inner_sec[e.compo_id].fields[e.repeater].name;if(t?.cardData?.[0]?.[e?.array_type]?.[e?.sec_id]?.inner_sec?.[e?.compo_id]?.name)return t.cardData[0][e.array_type][e.sec_id].inner_sec[e.compo_id].name}},K=e=>{if("css"==e){let e=0;return t.Editor_data&&t.Editor_data[0]&&t.Editor_data[0].css&&t.Editor_data[0].css.map((t=>{""!=t.trim()&&(e+=1)})),e}if("js"==e){let e=0;return t.Editor_data&&t.Editor_data[0]&&t.Editor_data[0].js&&t.Editor_data[0].js.map((t=>{""!=t.trim()&&(e+=1)})),e}},Z=()=>{let e=document.querySelector(".wkit-wb-loopError-popup");e&&(e.style.display="flex",setTimeout((()=>{e.style.display="none"}),2e3))},Y=(e,a)=>{if(!I.includes(e.type))return"repeater"==e.type?(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"wkit-wb-editor-value",onClick:e=>{H(e)},children:(0,g.jsxs)("span",{className:"wkit-wb-hover-marquee",children:[(0,g.jsx)("label",{children:"Select repeater"}),(0,g.jsx)("span",{children:(0,g.jsx)("svg",{className:"wb-editor-value-dropDown-icon",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:(0,g.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1 8C1 4.134 4.134 0.999999 8 0.999999C11.866 1 15 4.134 15 8C15 11.866 11.866 15 8 15C4.134 15 1 11.866 1 8ZM6.99382e-07 8C1.08564e-06 3.5817 3.5817 -1.08564e-06 8 -6.99382e-07C12.4183 -3.13124e-07 16 3.5817 16 8C16 12.4183 12.4183 16 8 16C3.5817 16 3.13124e-07 12.4183 6.99382e-07 8ZM5.3536 6.14645C5.1583 5.9512 4.8417 5.9512 4.6464 6.14645C4.4512 6.34171 4.4512 6.65829 4.6464 6.85355L7.69407 9.90117C7.88933 10.0964 8.20591 10.0964 8.40117 9.90117L11.4488 6.85355C11.6441 6.65829 11.6441 6.34171 11.4488 6.14645C11.2535 5.9512 10.937 5.9512 10.7417 6.14645L8.04762 8.84051L5.3536 6.14645Z",fill:"white"})})})]})}),(0,g.jsxs)("div",{className:"wb-controller-values",children:[(0,g.jsx)("div",{className:"wkit-wb-editor-value wkit-wb-short-value",onClick:()=>{U(e.name,"repeater",a)},children:"Loop"}),(0,g.jsx)("div",{className:"wkit-wb-editor-value wkit-wb-short-value",onClick:()=>{U(e.name,"repeater_index",e.name)},children:"Index"}),(0,g.jsx)("div",{className:"wkit-wb-editor-value wkit-wb-short-value",onClick:()=>{U(e.name,"repeater_UID",e.name)},children:"ID"}),e.fields.map(((t,a)=>(0,g.jsx)(Wi,{children:Y(t,e.name)},a)))]})]}):"cpt"==e.type||"product_listing"==e.type?(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"wkit-wb-editor-value",onClick:e=>{H(e)},children:(0,g.jsxs)("span",{className:"wkit-wb-hover-marquee",children:[(0,g.jsx)("label",{children:"Listing content"}),(0,g.jsx)("span",{children:(0,g.jsx)("svg",{className:"wb-editor-value-dropDown-icon",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:(0,g.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1 8C1 4.134 4.134 0.999999 8 0.999999C11.866 1 15 4.134 15 8C15 11.866 11.866 15 8 15C4.134 15 1 11.866 1 8ZM6.99382e-07 8C1.08564e-06 3.5817 3.5817 -1.08564e-06 8 -6.99382e-07C12.4183 -3.13124e-07 16 3.5817 16 8C16 12.4183 12.4183 16 8 16C3.5817 16 3.13124e-07 12.4183 6.99382e-07 8ZM5.3536 6.14645C5.1583 5.9512 4.8417 5.9512 4.6464 6.14645C4.4512 6.34171 4.4512 6.65829 4.6464 6.85355L7.69407 9.90117C7.88933 10.0964 8.20591 10.0964 8.40117 9.90117L11.4488 6.85355C11.6441 6.65829 11.6441 6.34171 11.4488 6.14645C11.2535 5.9512 10.937 5.9512 10.7417 6.14645L8.04762 8.84051L5.3536 6.14645Z",fill:"white"})})})]})}),(0,g.jsxs)("div",{className:"wb-controller-values",children:[(0,g.jsx)("div",{className:"wkit-wb-editor-value",onClick:()=>{U(e.name,"cpt",a)},children:"Loop"}),(0,g.jsx)("div",{className:"wkit-wb-editor-value",onClick:()=>{U(e.name,"title",e.name)},children:"Title"}),(0,g.jsx)("div",{className:"wkit-wb-editor-value",onClick:()=>{U(e.name,"description",e.name)},children:"Description"}),(0,g.jsx)("div",{className:"wkit-wb-editor-value",onClick:()=>{U(e.name,"thumbnail",e.name)},children:"Thumbnail"}),(0,g.jsx)("div",{className:"wkit-wb-editor-value",onClick:()=>{U(e.name,"post_date",e.name)},children:"Post Date"}),(0,g.jsx)("div",{className:"wkit-wb-editor-value",onClick:()=>{U(e.name,"post_link",e.name)},children:"Post Link"}),"product_listing"!=e.type&&(0,g.jsxs)(Wi,{children:[(0,g.jsx)("hr",{className:"wkit-wp-editor-hr"}),(0,g.jsx)("div",{className:"wkit-wb-editor-value",onClick:()=>{U(e.name,"auth_id",e.name)},children:"Author ID"}),(0,g.jsx)("div",{className:"wkit-wb-editor-value",onClick:()=>{U(e.name,"auth_name",e.name)},children:"Author Name"}),"gutenberg"!=t?.widgetdata?.type&&(0,g.jsx)("div",{className:"wkit-wb-editor-value",onClick:()=>{U(e.name,"auth_email",e.name)},children:"Author Email"}),(0,g.jsx)("div",{className:"wkit-wb-editor-value",onClick:()=>{U(e.name,"auth_profile",e.name)},children:"Author Profile"}),(0,g.jsx)("div",{className:"wkit-wb-editor-value",onClick:()=>{U(e.name,"auth_url",e.name)},children:"Author URL"})]}),(0,g.jsx)("div",{className:"wkit-wb-editor-value wkit-inside-drp-head",onClick:e=>{H(e)},children:(0,g.jsxs)("span",{className:"wkit-wb-hover-marquee",children:[(0,g.jsx)("label",{children:"Category"}),(0,g.jsx)("span",{children:(0,g.jsx)("svg",{className:"wb-editor-value-dropDown-icon",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:(0,g.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1 8C1 4.134 4.134 0.999999 8 0.999999C11.866 1 15 4.134 15 8C15 11.866 11.866 15 8 15C4.134 15 1 11.866 1 8ZM6.99382e-07 8C1.08564e-06 3.5817 3.5817 -1.08564e-06 8 -6.99382e-07C12.4183 -3.13124e-07 16 3.5817 16 8C16 12.4183 12.4183 16 8 16C3.5817 16 3.13124e-07 12.4183 6.99382e-07 8ZM5.3536 6.14645C5.1583 5.9512 4.8417 5.9512 4.6464 6.14645C4.4512 6.34171 4.4512 6.65829 4.6464 6.85355L7.69407 9.90117C7.88933 10.0964 8.20591 10.0964 8.40117 9.90117L11.4488 6.85355C11.6441 6.65829 11.6441 6.34171 11.4488 6.14645C11.2535 5.9512 10.937 5.9512 10.7417 6.14645L8.04762 8.84051L5.3536 6.14645Z",fill:"white"})})})]})}),(0,g.jsxs)("div",{className:"wb-controller-values wkit-inside-drp-body",children:[(0,g.jsx)("div",{className:"wkit-wb-editor-value",onClick:()=>{U(e.name+"_cat","cpt_cat",e.name)},children:"loop"}),(0,g.jsx)("div",{className:"wkit-wb-editor-value",onClick:()=>{U(e.name,"cat_name",e.name)},children:"name"}),(0,g.jsx)("div",{className:"wkit-wb-editor-value",onClick:()=>{U(e.name,"cat_url",e.name)},children:"URL"})]}),(0,g.jsx)("div",{className:"wkit-wb-editor-value wkit-inside-drp-head",onClick:e=>{H(e)},children:(0,g.jsxs)("span",{className:"wkit-wb-hover-marquee",children:[(0,g.jsx)("label",{children:"Tag"}),(0,g.jsx)("span",{children:(0,g.jsx)("svg",{className:"wb-editor-value-dropDown-icon",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:(0,g.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1 8C1 4.134 4.134 0.999999 8 0.999999C11.866 1 15 4.134 15 8C15 11.866 11.866 15 8 15C4.134 15 1 11.866 1 8ZM6.99382e-07 8C1.08564e-06 3.5817 3.5817 -1.08564e-06 8 -6.99382e-07C12.4183 -3.13124e-07 16 3.5817 16 8C16 12.4183 12.4183 16 8 16C3.5817 16 3.13124e-07 12.4183 6.99382e-07 8ZM5.3536 6.14645C5.1583 5.9512 4.8417 5.9512 4.6464 6.14645C4.4512 6.34171 4.4512 6.65829 4.6464 6.85355L7.69407 9.90117C7.88933 10.0964 8.20591 10.0964 8.40117 9.90117L11.4488 6.85355C11.6441 6.65829 11.6441 6.34171 11.4488 6.14645C11.2535 5.9512 10.937 5.9512 10.7417 6.14645L8.04762 8.84051L5.3536 6.14645Z",fill:"white"})})})]})}),(0,g.jsxs)("div",{className:"wb-controller-values wkit-inside-drp-body",children:[(0,g.jsx)("div",{className:"wkit-wb-editor-value",onClick:()=>{U(e.name+"_tag","cpt_tag",e.name)},children:"loop"}),(0,g.jsx)("div",{className:"wkit-wb-editor-value",onClick:()=>{U(e.name,"tag_name",e.name)},children:"name"}),(0,g.jsx)("div",{className:"wkit-wb-editor-value",onClick:()=>{U(e.name,"tag_url",e.name)},children:"URL"})]})]})]}):"taxonomy"==e.type?(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"wkit-wb-editor-value",onClick:e=>{H(e)},children:(0,g.jsxs)("span",{className:"wkit-wb-hover-marquee",children:[(0,g.jsx)("label",{children:"Taxonomy"}),(0,g.jsx)("span",{children:(0,g.jsx)("svg",{className:"wb-editor-value-dropDown-icon",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:(0,g.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1 8C1 4.134 4.134 0.999999 8 0.999999C11.866 1 15 4.134 15 8C15 11.866 11.866 15 8 15C4.134 15 1 11.866 1 8ZM6.99382e-07 8C1.08564e-06 3.5817 3.5817 -1.08564e-06 8 -6.99382e-07C12.4183 -3.13124e-07 16 3.5817 16 8C16 12.4183 12.4183 16 8 16C3.5817 16 3.13124e-07 12.4183 6.99382e-07 8ZM5.3536 6.14645C5.1583 5.9512 4.8417 5.9512 4.6464 6.14645C4.4512 6.34171 4.4512 6.65829 4.6464 6.85355L7.69407 9.90117C7.88933 10.0964 8.20591 10.0964 8.40117 9.90117L11.4488 6.85355C11.6441 6.65829 11.6441 6.34171 11.4488 6.14645C11.2535 5.9512 10.937 5.9512 10.7417 6.14645L8.04762 8.84051L5.3536 6.14645Z",fill:"white"})})})]})}),(0,g.jsxs)("div",{className:"wb-controller-values",children:[(0,g.jsx)("div",{className:"wkit-wb-editor-value",onClick:()=>{U(e.name,"taxonomy",a)},children:"Loop"}),(0,g.jsx)("div",{className:"wkit-wb-editor-value",onClick:()=>{U(e.name,"title",e.name)},children:"Name"}),(0,g.jsx)("div",{className:"wkit-wb-editor-value",onClick:()=>{U(e.name,"description",e.name)},children:"Description"}),(0,g.jsx)("div",{className:"wkit-wb-editor-value",onClick:()=>{U(e.name,"taxo_image",e.name)},children:"Image"}),(0,g.jsx)("div",{className:"wkit-wb-editor-value",onClick:()=>{U(e.name,"taxo_slug",e.name)},children:"Slug"}),(0,g.jsx)("div",{className:"wkit-wb-editor-value",onClick:()=>{U(e.name,"taxo_link",e.name)},children:"Link"})]})]}):"url"==e.type?(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"wkit-wb-editor-value "+(a?"wkit-inside-drp-head":""),onClick:e=>{H(e)},children:(0,g.jsxs)("span",{className:"wkit-wb-hover-marquee",children:[(0,g.jsx)("label",{children:e.name}),(0,g.jsx)("span",{children:(0,g.jsx)("svg",{className:"wb-editor-value-dropDown-icon",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:(0,g.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1 8C1 4.134 4.134 0.999999 8 0.999999C11.866 1 15 4.134 15 8C15 11.866 11.866 15 8 15C4.134 15 1 11.866 1 8ZM6.99382e-07 8C1.08564e-06 3.5817 3.5817 -1.08564e-06 8 -6.99382e-07C12.4183 -3.13124e-07 16 3.5817 16 8C16 12.4183 12.4183 16 8 16C3.5817 16 3.13124e-07 12.4183 6.99382e-07 8ZM5.3536 6.14645C5.1583 5.9512 4.8417 5.9512 4.6464 6.14645C4.4512 6.34171 4.4512 6.65829 4.6464 6.85355L7.69407 9.90117C7.88933 10.0964 8.20591 10.0964 8.40117 9.90117L11.4488 6.85355C11.6441 6.65829 11.6441 6.34171 11.4488 6.14645C11.2535 5.9512 10.937 5.9512 10.7417 6.14645L8.04762 8.84051L5.3536 6.14645Z",fill:"white"})})})]})}),(0,g.jsxs)("div",{className:a?"wb-controller-values wkit-inside-drp-body":"wb-controller-values",children:[(0,g.jsx)("div",{className:"wb-editor-dropDown-value wkit-wb-short-value",onClick:()=>{U(`${e.name}-url`,"",a)},children:"URL"}),(0,g.jsx)("div",{className:"wb-editor-dropDown-value wkit-wb-short-value",onClick:()=>{U(`${e.name}-is_external`,"",a)},children:"Is_external"}),(0,g.jsx)("div",{className:"wb-editor-dropDown-value wkit-wb-short-value",onClick:()=>{U(`${e.name}-nofollow`,"",a)},children:"Nofollow"}),(0,g.jsx)("div",{className:"wb-editor-dropDown-value wkit-wb-short-value",onClick:()=>{U(`${e.name}-Custom_atr`,"",a)},children:"Custom_atr"})]})]}):"gallery"==e.type?(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"wkit-wb-editor-value "+(a?"wkit-inside-drp-head":""),onClick:e=>{H(e)},children:(0,g.jsxs)("span",{className:"wkit-wb-hover-marquee",children:[(0,g.jsx)("label",{children:e.name}),(0,g.jsx)("span",{children:(0,g.jsx)("svg",{className:"wb-editor-value-dropDown-icon",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:(0,g.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1 8C1 4.134 4.134 0.999999 8 0.999999C11.866 1 15 4.134 15 8C15 11.866 11.866 15 8 15C4.134 15 1 11.866 1 8ZM6.99382e-07 8C1.08564e-06 3.5817 3.5817 -1.08564e-06 8 -6.99382e-07C12.4183 -3.13124e-07 16 3.5817 16 8C16 12.4183 12.4183 16 8 16C3.5817 16 3.13124e-07 12.4183 6.99382e-07 8ZM5.3536 6.14645C5.1583 5.9512 4.8417 5.9512 4.6464 6.14645C4.4512 6.34171 4.4512 6.65829 4.6464 6.85355L7.69407 9.90117C7.88933 10.0964 8.20591 10.0964 8.40117 9.90117L11.4488 6.85355C11.6441 6.65829 11.6441 6.34171 11.4488 6.14645C11.2535 5.9512 10.937 5.9512 10.7417 6.14645L8.04762 8.84051L5.3536 6.14645Z",fill:"white"})})})]})}),(0,g.jsxs)("div",{className:a?"wb-controller-values wkit-inside-drp-body":"wb-controller-values",children:[(0,g.jsx)("div",{className:"wb-editor-dropDown-value wkit-wb-short-value",onClick:()=>{U(e.name,"gallery",a)},children:"Loop"}),(0,g.jsx)("div",{className:"wb-editor-dropDown-value wkit-wb-short-value",onClick:()=>{U(e.name,"loop_value",e.name)},children:"URL"})]})]}):"popover"==e.type?(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"wkit-wb-editor-value",onClick:e=>{H(e)},children:(0,g.jsxs)("span",{className:"wkit-wb-hover-marquee",children:[(0,g.jsx)("label",{children:"Select popover"}),(0,g.jsx)("span",{children:(0,g.jsx)("svg",{className:"wb-editor-value-dropDown-icon",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:(0,g.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1 8C1 4.134 4.134 0.999999 8 0.999999C11.866 1 15 4.134 15 8C15 11.866 11.866 15 8 15C4.134 15 1 11.866 1 8ZM6.99382e-07 8C1.08564e-06 3.5817 3.5817 -1.08564e-06 8 -6.99382e-07C12.4183 -3.13124e-07 16 3.5817 16 8C16 12.4183 12.4183 16 8 16C3.5817 16 3.13124e-07 12.4183 6.99382e-07 8ZM5.3536 6.14645C5.1583 5.9512 4.8417 5.9512 4.6464 6.14645C4.4512 6.34171 4.4512 6.65829 4.6464 6.85355L7.69407 9.90117C7.88933 10.0964 8.20591 10.0964 8.40117 9.90117L11.4488 6.85355C11.6441 6.65829 11.6441 6.34171 11.4488 6.14645C11.2535 5.9512 10.937 5.9512 10.7417 6.14645L8.04762 8.84051L5.3536 6.14645Z",fill:"white"})})})]})}),(0,g.jsx)("div",{className:"wb-controller-values",children:e.fields.map(((e,t)=>(0,g.jsx)(Wi,{children:Y(e)},t)))})]}):"normalhover"==e.type?(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"wkit-wb-editor-value",onClick:e=>{H(e)},children:(0,g.jsxs)("span",{className:"wkit-wb-hover-marquee",children:[(0,g.jsx)("label",{children:"Normal Hover"}),(0,g.jsx)("span",{children:(0,g.jsx)("svg",{className:"wb-editor-value-dropDown-icon",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:(0,g.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1 8C1 4.134 4.134 0.999999 8 0.999999C11.866 1 15 4.134 15 8C15 11.866 11.866 15 8 15C4.134 15 1 11.866 1 8ZM6.99382e-07 8C1.08564e-06 3.5817 3.5817 -1.08564e-06 8 -6.99382e-07C12.4183 -3.13124e-07 16 3.5817 16 8C16 12.4183 12.4183 16 8 16C3.5817 16 3.13124e-07 12.4183 6.99382e-07 8ZM5.3536 6.14645C5.1583 5.9512 4.8417 5.9512 4.6464 6.14645C4.4512 6.34171 4.4512 6.65829 4.6464 6.85355L7.69407 9.90117C7.88933 10.0964 8.20591 10.0964 8.40117 9.90117L11.4488 6.85355C11.6441 6.65829 11.6441 6.34171 11.4488 6.14645C11.2535 5.9512 10.937 5.9512 10.7417 6.14645L8.04762 8.84051L5.3536 6.14645Z",fill:"white"})})})]})}),(0,g.jsx)("div",{className:"wb-controller-values",children:e.fields.map(((e,t)=>(0,g.jsx)(Wi,{children:Y(e)},t)))})]}):"headingtags"==e.type?(0,g.jsx)(g.Fragment,{children:(0,g.jsx)("div",{className:J()==e.name?"wkit-wb-editor-value wkit-wb-selected":"wkit-wb-editor-value",onClick:()=>{U(e.name,"headingtags",a)},children:(0,g.jsx)("span",{className:"wkit-wb-hover-marquee",children:(0,g.jsx)("label",{children:"< Htag >"})})})}):"select2"==e.type?(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"wkit-wb-editor-value "+(a?"wkit-inside-drp-head":""),onClick:e=>{H(e)},children:(0,g.jsxs)("span",{className:"wkit-wb-hover-marquee",children:[(0,g.jsx)("label",{children:e.name}),(0,g.jsx)("span",{children:(0,g.jsx)("svg",{className:"wb-editor-value-dropDown-icon",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:(0,g.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1 8C1 4.134 4.134 0.999999 8 0.999999C11.866 1 15 4.134 15 8C15 11.866 11.866 15 8 15C4.134 15 1 11.866 1 8ZM6.99382e-07 8C1.08564e-06 3.5817 3.5817 -1.08564e-06 8 -6.99382e-07C12.4183 -3.13124e-07 16 3.5817 16 8C16 12.4183 12.4183 16 8 16C3.5817 16 3.13124e-07 12.4183 6.99382e-07 8ZM5.3536 6.14645C5.1583 5.9512 4.8417 5.9512 4.6464 6.14645C4.4512 6.34171 4.4512 6.65829 4.6464 6.85355L7.69407 9.90117C7.88933 10.0964 8.20591 10.0964 8.40117 9.90117L11.4488 6.85355C11.6441 6.65829 11.6441 6.34171 11.4488 6.14645C11.2535 5.9512 10.937 5.9512 10.7417 6.14645L8.04762 8.84051L5.3536 6.14645Z",fill:"white"})})})]})}),(0,g.jsxs)("div",{className:a?"wb-controller-values wkit-inside-drp-body":"wb-controller-values",children:[(0,g.jsx)("div",{className:"wb-editor-dropDown-value wkit-wb-short-value",onClick:()=>{U(e.name,"select2",a)},children:"Loop"}),(0,g.jsx)("div",{className:"wb-editor-dropDown-value wkit-wb-short-value",onClick:()=>{U(e.name,"loop_value",e.name)},children:"Value"})]})]}):(0,g.jsx)("div",{className:J()==e.name?"wkit-wb-editor-value wkit-wb-selected":"wkit-wb-editor-value",onClick:()=>{U(e.name,"",a)},children:(0,g.jsx)("span",{className:"wkit-wb-hover-marquee",children:"{{"+e.name+"}}"})})},X=()=>{if("html"==i){if(Array.isArray(t.cardData[0].layout)){let e=0;return t.cardData[0].layout.map((t=>{Array.isArray(t.inner_sec)&&t.inner_sec.map((t=>{I.includes(t.type)||(e+=1)}))})),e}return 0}return 0};return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsxs)("div",{className:"wkit-wb-editor",ref:M,id:"wkit-editor-id",children:[(0,g.jsxs)("div",{className:"wkit-editor-button",children:[(0,g.jsxs)("div",{className:"wkit-wb-editor-btns",children:[(0,g.jsx)("button",{className:"html"==i?"wkit-wb-editor-html-btn active-editor":"wkit-wb-editor-html-btn",onClick:e=>{(()=>{if(n("html"),document.querySelector(".wb-editor-popup-content.wkit-wb-js")&&(document.querySelector(".wb-editor-popup-content.wkit-wb-js").style.display="none",document.querySelector(".wb-editor-js-popup.wkit-wb-show"))){t.Editor_data;let e=document.querySelector(".wb-editor-js-popup"),a=document.querySelector(".wb-editor-img-js-icon");e.classList.remove("wkit-wb-show"),a.style.transform="",O()}if(document.querySelector(".wb-editor-popup-content.wkit-wb-css")&&(document.querySelector(".wb-editor-popup-content.wkit-wb-css").style.display="none",document.querySelector(".wb-editor-popup.wkit-wb-show"))){t.Editor_data;let e=document.querySelector(".wb-editor-popup"),a=document.querySelector(".wb-editor-img-css-icon");e.classList.remove("wkit-wb-show"),a.style.transform="",O()}})()},children:(0,g.jsxs)("span",{className:"wkit-wb-editor-btns-label",children:[(0,g.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,g.jsx)("path",{d:"M0 5a5 5 0 0 1 5-5h10a5 5 0 0 1 5 5v10a5 5 0 0 1-5 5H5a5 5 0 0 1-5-5V5z",fill:"#F1F1F1"}),(0,g.jsx)("path",{d:"M5 .417h10A4.583 4.583 0 0 1 19.583 5v10A4.583 4.583 0 0 1 15 19.583H5A4.583 4.583 0 0 1 .417 15V5A4.583 4.583 0 0 1 5 .417z",stroke:"white",strokeOpacity:"0.4",strokeWidth:"0.833333"}),(0,g.jsxs)("g",{clipPath:"url(#clip0_2023_659)",children:[(0,g.jsx)("path",{d:"m4.115 3.333.828 11.67 5.062 1.664 5.063-1.664.828-11.67H4.115z",fill:"#FF7816"}),(0,g.jsx)("path",{d:"m15.896 3.333-.828 11.67-5.063 1.664V3.333h5.89z",fill:"#FF4B00"}),(0,g.jsx)("path",{d:"M13.685 6.875h-5.79l.141 1.953h5.508l-.336 4.73-3.203 1.07-3.203-1.07-.11-1.579h1.563l.031.429 1.72.57 1.718-.571.14-2.02H6.577l-.36-5.077h7.578l-.11 1.562z",fill:"#ECECF1"}),(0,g.jsx)("path",{d:"m13.544 8.828-.336 4.73-3.203 1.07v-1.649l1.72-.571.14-2.02h-1.86V8.829h3.54z",fill:"#E2E2E7"}),(0,g.jsx)("path",{d:"m13.794 5.313-.11 1.562h-3.679V5.313h3.79z",fill:"#E2E2E7"})]}),(0,g.jsx)("defs",{children:(0,g.jsx)("clipPath",{id:"clip0_2023_659",children:(0,g.jsx)("rect",{width:"13.333",height:"13.333",fill:"white",transform:"translate(3.33334 3.33333)"})})})]}),(0,a.__)("HTML","wdesignkit")]})}),(0,g.jsxs)("div",{className:"css"==i?"wkit-wb-editor-css-btn active-editor":"wkit-wb-editor-css-btn",onClick:e=>{(()=>{if(n("css"),document.querySelector(".wb-editor-popup-content.wkit-wb-js")&&(document.querySelector(".wb-editor-popup-content.wkit-wb-js").style.display="none",document.querySelector(".wb-editor-popup-content.wkit-wb-css").style.display="flex"),document.querySelector(".wb-editor-js-popup.wkit-wb-show")){let a=[...t.Editor_data],i=document.querySelector(".wb-editor-js-popup"),s=document.querySelector(".wb-editor-img-js-icon");i.classList.remove("wkit-wb-show"),s.style.transform="";var e=[];a[0].js.map(((t,i)=>{""==t&&a[0].js.length>1&&e.push(i)})),O()}})(),v("css")},children:[(0,g.jsxs)("span",{className:"wkit-wb-editor-btns-label",children:[(0,g.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,g.jsx)("rect",{width:"20",height:"20",rx:"4.44444",fill:"#F1F1F1","fill-opacity":"0.945098"}),(0,g.jsx)("rect",{x:"0.416667",y:"0.416667",width:"19.1667",height:"19.1667",rx:"4.02778",stroke:"white",strokeOpacity:"0.4",strokeWidth:"0.833333"}),(0,g.jsx)("path",{d:"M16.8 2.11161L15.5443 16.1785L9.89994 17.7433L4.27111 16.1807L3.01675 2.11161H16.8Z",fill:"#264DE4"}),(0,g.jsx)("path",{d:"M14.4691 15.2828L15.5422 3.26196H9.9082V16.5472L14.4691 15.2828Z",fill:"#2965F1"}),(0,g.jsx)("path",{d:"M5.89209 8.48006L6.04674 10.2056H9.90812V8.48006H5.89209Z",fill:"#EBEBEB"}),(0,g.jsx)("path",{d:"M9.90881 4.98743H9.90285H5.58203L5.73889 6.71296H9.90881V4.98743Z",fill:"#EBEBEB"}),(0,g.jsx)("path",{d:"M9.90831 14.7567V12.9614L9.90074 12.9634L7.97902 12.4445L7.85617 11.0684H6.92237H6.12402L6.36577 13.7777L9.90036 14.7589L9.90831 14.7567Z",fill:"#EBEBEB"}),(0,g.jsx)("path",{d:"M12.0273 10.2054L11.827 12.4433L9.9025 12.9627V14.7579L13.4399 13.7775L13.4659 13.486L13.8713 8.94327L13.9134 8.47992L14.2249 4.98743H9.9025V6.71296H12.3339L12.1769 8.47992H9.9025V10.2054H12.0273Z",fill:"white"})]}),(0,a.__)("CSS","wdesignkit")]}),t.Editor_data[0].css.length>0&&""==t.Editor_data[0].css[0]?"":(0,g.jsx)("label",{className:"wkit-wb-cssInputCount "+("css"==i?"wkit-wb-focus":""),children:(0,g.jsx)("span",{children:0==K("css")?"":K("css")})}),(0,g.jsx)("span",{className:"wdkit-externel-cdn-plus",onClick:e=>{b("css"),v("css")},children:(0,g.jsx)("i",{className:"wdkit-i-wb-plus"})})]}),(0,g.jsxs)("div",{className:"js"==i?"wkit-wb-editor-js-btn active-editor":"wkit-wb-editor-js-btn",onClick:e=>{(()=>{if(n("js"),document.querySelector(".wb-editor-popup-content.wkit-wb-css")&&(document.querySelector(".wb-editor-popup-content.wkit-wb-css").style.display="none",document.querySelector(".wb-editor-popup-content.wkit-wb-js").style.display="flex"),document.querySelector(".wb-editor-popup.wkit-wb-show")){t.Editor_data;let e=document.querySelector(".wb-editor-popup"),a=document.querySelector(".wb-editor-img-css-icon");e.classList.remove("wkit-wb-show"),a.style.transform="",O()}})(),v("js")},children:[(0,g.jsxs)("span",{className:"wkit-wb-editor-btns-label",children:[(0,g.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,g.jsx)("rect",{width:"20",height:"20",rx:"4.44444",fill:"#F7DF1E"}),(0,g.jsx)("rect",{x:"0.416667",y:"0.416667",width:"19.1667",height:"19.1667",rx:"4.02778",stroke:"white",strokeOpacity:"0.4",strokeWidth:"0.833333"}),(0,g.jsx)("path",{d:"M13.435 15.6251C13.8379 16.2829 14.362 16.7664 15.289 16.7664C16.0677 16.7664 16.5652 16.3772 16.5652 15.8394C16.5652 15.195 16.054 14.9667 15.1969 14.5918L14.7271 14.3902C13.3709 13.8124 12.4699 13.0886 12.4699 11.5585C12.4699 10.1489 13.5439 9.07593 15.2223 9.07593C16.4172 9.07593 17.2763 9.4918 17.8953 10.5807L16.4318 11.5204C16.1096 10.9426 15.762 10.715 15.2223 10.715C14.6718 10.715 14.3229 11.0642 14.3229 11.5204C14.3229 12.0842 14.6721 12.3124 15.4785 12.6616L15.9483 12.8629C17.5452 13.5477 18.4467 14.2458 18.4467 15.8153C18.4467 17.5074 17.1175 18.4343 15.3325 18.4343C13.5871 18.4343 12.4594 17.6026 11.9077 16.5124L13.435 15.6251ZM6.79595 15.788C7.09119 16.3118 7.35976 16.7547 8.00548 16.7547C8.62294 16.7547 9.01246 16.5131 9.01246 15.5737V9.18323H10.8918V15.5991C10.8918 17.5451 9.75087 18.4308 8.08548 18.4308C6.58072 18.4308 5.70929 17.6521 5.26611 16.7142L6.79595 15.788Z",fill:"black"})]}),(0,a.__)("JAVASCRIPT","wdesignkit")]}),t.Editor_data[0].js.length>0&&""==t.Editor_data[0].js[0]?"":(0,g.jsx)("label",{className:"wkit-wb-JsInputCount "+("js"==i?"wkit-wb-focus":""),children:(0,g.jsx)("span",{children:0==K("js")?"":K("js")})}),(0,g.jsx)("span",{className:"wdkit-externel-cdn-plus",onClick:e=>{b("js"),v("js")},children:(0,g.jsx)("i",{className:"wdkit-i-wb-plus"})})]})]}),(0,g.jsxs)("div",{className:"wdkit-wb-variable-dropdown",children:[(0,g.jsxs)("div",{className:"wdkit-wb-variable-dropdown-header",onClick:e=>{(e=>{let t=e.target.closest(".wdkit-wb-variable-dropdown").querySelector(".wkit-right-portion"),a=e.target.closest(".wdkit-wb-variable-dropdown").querySelector(".wdkit-dorpdown-arrow");t&&(t.classList.contains("wdkit-wb-show-variable")?(t.classList.remove("wdkit-wb-show-variable"),setTimeout((()=>{u(!1)}),300)):(u(!0),setTimeout((()=>{t.classList.add("wdkit-wb-show-variable")}),0)),a&&(a.classList.contains("wdkit-rotate-icon")?a.classList.remove("wdkit-rotate-icon"):a.classList.add("wdkit-rotate-icon")))})(e)},children:[(0,g.jsxs)("div",{className:"wdkit-wb-variable-count",children:[(0,g.jsx)("span",{className:"wdkit-wb-variable-count-number",children:X()}),(0,g.jsx)("span",{children:X()>1?(0,a.__)("Variables","wdesignkit"):(0,a.__)("Variable","wdesignkit")})]}),(0,g.jsx)("span",{className:"wdkit-dorpdown-arrow",children:(0,g.jsx)("i",{className:"wdkit-i-up-arrow"})})]}),(0,g.jsx)("div",{className:"wkit-right-portion",style:{display:m?"flex":"none"},children:(0,g.jsxs)(g.Fragment,{children:[(0,g.jsxs)("div",{className:"wkit-wb-editor-value-tab",children:["js"==i&&(0,g.jsx)(g.Fragment,{children:(0,g.jsx)("div",{className:"wkit-wb-editor-value wkit-editor-js-val",onClick:()=>{U("$scope[0]","js")},children:"$Scope"})}),t&&t.cardData[0]&&t.cardData[0].layout&&"html"==i&&t.cardData[0].layout.map(((e,t)=>(0,g.jsx)(Wi,{children:(0,g.jsx)("div",{className:"wkit-wb-editor-box",children:e?.inner_sec&&e?.inner_sec?.length>0&&e.inner_sec.map(((e,t)=>(0,g.jsx)(Wi,{children:Y(e)},t)))})},t))),(0,g.jsx)("div",{className:"wkit-wb-editor-value-extra"}),"css"==i&&0==t.widgetdata.css_parent_node&&(0,g.jsx)("div",{className:"wkit-wb-editor-value wkit-editor-css-val",onClick:()=>{U()},children:"css"})]}),"css"==i&&(0,g.jsx)("div",{className:"wkit-wb-parentClass-swicher-content",children:(0,g.jsxs)("div",{className:"wkit-wb-parentClass-swicher",children:[(0,g.jsxs)("div",{className:"wkit-css-editor-toolTip",children:[(0,g.jsx)("i",{className:"wdkit-i-info"}),(0,g.jsx)("span",{className:"wkit-css-toolTip-text",children:(0,a.__)("Enable this if you want us to append unique class at all possible places in your CSS file. If Disabled, You will need to manage it manually from your end.","wdesignkit")})]}),(0,g.jsxs)("label",{className:"wb-switch",children:[(0,g.jsx)("input",{type:"checkbox",checked:t.widgetdata.css_parent_node,onChange:e=>{(e=>{if(t&&t.widgetdata){let a=Object.assign({},t.widgetdata,{css_parent_node:e.target.checked});t.addTowidgethandler(a)}})(e)}}),(0,g.jsx)("span",{className:"wb-slider"})]})]})})]})})]})]}),(0,g.jsx)("div",{className:"wkit-editor",children:(0,g.jsxs)("div",{className:"wkit-wb-editor-content",children:[(0,g.jsx)("div",{id:"editor-html",className:"wkit-wb-editor-class"}),(0,g.jsxs)("div",{className:"wkit-wb-loopError-popup",style:{display:"none"},children:[(0,g.jsx)("div",{className:"wkit-wb-loopError-close",children:(0,g.jsx)("svg",{width:"10",height:"10",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,g.jsx)("path",{d:"M1.40091 15.2558C1.66182 15.5169 2.01481 15.6637 2.38274 15.6637C2.75067 15.6637 3.10366 15.5169 3.36456 15.2558L8.29499 10.2193L13.2254 15.2558C13.5884 15.6217 14.118 15.7645 14.6141 15.6306C15.1103 15.4967 15.4981 15.1062 15.6309 14.6064C15.7639 14.1067 15.6221 13.5733 15.2588 13.2076L10.2587 8.24141L15.2588 3.27521C15.5659 2.91424 15.6703 2.42082 15.5365 1.96497C15.4027 1.50913 15.0485 1.15236 14.5959 1.01757C14.1431 0.882762 13.6535 0.987976 13.2949 1.29727L8.29499 6.26348L3.36455 1.29727C3.00619 0.987976 2.51632 0.882762 2.06375 1.01757C1.61119 1.15237 1.257 1.50911 1.12317 1.96497C0.989339 2.42082 1.0938 2.91424 1.40087 3.27521L6.3313 8.24141L1.40087 13.2076C1.11968 13.4728 0.959961 13.8436 0.959961 14.2316C0.959961 14.6198 1.11968 14.9904 1.40087 15.2557L1.40091 15.2558Z",fill:"black"})})}),(0,g.jsxs)("div",{className:"wkit-wb-loopError-content",children:[(0,g.jsxs)("div",{className:"wkit-wb-loopError-header",children:[(0,g.jsx)("div",{className:"wkit-wb-loopError-icon",children:(0,g.jsx)("img",{src:F+"assets/images/wb-svg/error_info.svg"})}),(0,g.jsx)("div",{className:"wkit-wb-loopError-headerText",children:(0,a.__)("Perform activity inside the loop","wdesignkit")})]}),(0,g.jsx)("div",{className:"wkit-wb-loopError-description",children:(0,a.__)("You need to write or perform any of your activity inside the loop","wdesignkit")})]})]}),(0,g.jsx)("div",{id:"editor-css",className:"wkit-wb-editor-class"}),(0,g.jsx)("div",{id:"editor-js",className:"wkit-wb-editor-class"})]})}),(0,g.jsxs)("div",{className:"wkit-wb-bottom-characters",children:[(0,g.jsxs)("div",{className:"wkit-wb-characters",children:[(0,g.jsxs)("span",{className:"wkit-wb-characters-title",children:[(0,a.__)("•","wdesignkit")," ",h," ",(0,a.__)("Characters","wdesignkit")]}),(0,g.jsxs)("span",{className:"wkit-wb-characters-title",children:[(0,a.__)("•","wdesignkit")," ",_," ",(0,a.__)("Line","wdesignkit")]})]}),(0,g.jsxs)("div",{className:"wdkit-editor-actions",children:[0==r&&(0,g.jsx)("span",{className:"wdkit-editor-action-btn",onClick:e=>{v("css"),b("css")},children:(0,g.jsx)("i",{className:"wdkit-i-settings"})}),(0,g.jsx)("span",{className:"wdkit-editor-action-btn",onClick:()=>{M.current.requestFullscreen?M.current.requestFullscreen():M.current.webkitRequestFullscreen?M.current.webkitRequestFullscreen():M.current.msRequestFullscreen&&M.current.msRequestFullscreen(),document.exitFullscreen&&!0===r?document.exitFullscreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen&&document.msExitFullscreen()},children:(0,g.jsx)("i",{className:1==r?"wdkit-i-wb-expand":"wdkit-i-wb-collapse"})}),"bricks"!==t?.widgetdata?.type&&!r&&(0,g.jsx)(Vi,{widget_data:t.widgetdata,plugin_status:t.plugin_status})]})]})]}),"css"==k||"js"==k?(0,g.jsx)("div",{id:"wkit-wb-popup-open",className:"overlay",onClick:e=>{G(e)},children:(0,g.jsx)("div",{className:"wkit-wb-popup-links",children:(0,g.jsx)("div",{className:"wkit-wb-links-popup",children:(0,g.jsxs)("div",{className:"wkit-links-main-popup",children:[(0,g.jsxs)("div",{className:"wb-external-links",children:[(0,g.jsxs)("div",{className:"wkit-wb-links-content",children:[(0,g.jsxs)("span",{onClick:()=>{v("css")},className:"css"==x?"wkit-popup-link wkit-active-link":"wkit-popup-link",children:[(0,g.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,g.jsx)("rect",{width:"20",height:"20",rx:"4.44444",fill:"#F1F1F1","fill-opacity":"0.945098"}),(0,g.jsx)("rect",{x:"0.416667",y:"0.416667",width:"19.1667",height:"19.1667",rx:"4.02778",stroke:"white",strokeOpacity:"0.4",strokeWidth:"0.833333"}),(0,g.jsx)("path",{d:"M16.8 2.11161L15.5443 16.1785L9.89994 17.7433L4.27111 16.1807L3.01675 2.11161H16.8Z",fill:"#264DE4"}),(0,g.jsx)("path",{d:"M14.4691 15.2828L15.5422 3.26196H9.9082V16.5472L14.4691 15.2828Z",fill:"#2965F1"}),(0,g.jsx)("path",{d:"M5.89209 8.48006L6.04674 10.2056H9.90812V8.48006H5.89209Z",fill:"#EBEBEB"}),(0,g.jsx)("path",{d:"M9.90881 4.98743H9.90285H5.58203L5.73889 6.71296H9.90881V4.98743Z",fill:"#EBEBEB"}),(0,g.jsx)("path",{d:"M9.90831 14.7567V12.9614L9.90074 12.9634L7.97902 12.4445L7.85617 11.0684H6.92237H6.12402L6.36577 13.7777L9.90036 14.7589L9.90831 14.7567Z",fill:"#EBEBEB"}),(0,g.jsx)("path",{d:"M12.0273 10.2054L11.827 12.4433L9.9025 12.9627V14.7579L13.4399 13.7775L13.4659 13.486L13.8713 8.94327L13.9134 8.47992L14.2249 4.98743H9.9025V6.71296H12.3339L12.1769 8.47992H9.9025V10.2054H12.0273Z",fill:"white"})]}),(0,a.__)("CSS","wdesignkit")]}),(0,g.jsxs)("span",{onClick:()=>{v("js")},className:"js"==x?"wkit-popup-link wkit-active-link":"wkit-popup-link",children:[(0,g.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,g.jsx)("rect",{width:"20",height:"20",rx:"4.44444",fill:"#F7DF1E"}),(0,g.jsx)("rect",{x:"0.416667",y:"0.416667",width:"19.1667",height:"19.1667",rx:"4.02778",stroke:"white",strokeOpacity:"0.4",strokeWidth:"0.833333"}),(0,g.jsx)("path",{d:"M13.435 15.6251C13.8379 16.2829 14.362 16.7664 15.289 16.7664C16.0677 16.7664 16.5652 16.3772 16.5652 15.8394C16.5652 15.195 16.054 14.9667 15.1969 14.5918L14.7271 14.3902C13.3709 13.8124 12.4699 13.0886 12.4699 11.5585C12.4699 10.1489 13.5439 9.07593 15.2223 9.07593C16.4172 9.07593 17.2763 9.4918 17.8953 10.5807L16.4318 11.5204C16.1096 10.9426 15.762 10.715 15.2223 10.715C14.6718 10.715 14.3229 11.0642 14.3229 11.5204C14.3229 12.0842 14.6721 12.3124 15.4785 12.6616L15.9483 12.8629C17.5452 13.5477 18.4467 14.2458 18.4467 15.8153C18.4467 17.5074 17.1175 18.4343 15.3325 18.4343C13.5871 18.4343 12.4594 17.6026 11.9077 16.5124L13.435 15.6251ZM6.79595 15.788C7.09119 16.3118 7.35976 16.7547 8.00548 16.7547C8.62294 16.7547 9.01246 16.5131 9.01246 15.5737V9.18323H10.8918V15.5991C10.8918 17.5451 9.75087 18.4308 8.08548 18.4308C6.58072 18.4308 5.70929 17.6521 5.26611 16.7142L6.79595 15.788Z",fill:"black"})]}),(0,a.__)("JS","wdesignkit")]})]}),"css"==x&&(0,g.jsxs)("div",{className:"wkit-wb-editor-links",children:[(0,g.jsx)("span",{className:"wkit-Add-link",children:(0,a.__)("Insert CSS Library","wdesignkit")}),(0,g.jsx)("span",{className:"wkit-link-desc",children:(0,a.__)("Enter the URL of an external CSS library (CDN). You can search for a CSS CDN online or paste the link directly here.","wdesignkit")}),(0,g.jsxs)("div",{className:"wkit-links-search-bar",children:[(0,g.jsxs)("div",{className:"wdkit-cdn-search-container",children:[(0,g.jsx)("i",{className:"wdkit-i-search"}),(0,g.jsx)("input",{className:"wkit-links-search-input",type:"text",placeholder:(0,a.__)("Search CDNs...","wdesignkit"),value:y,onChange:e=>{j(e.target.value)}})]}),""!==y.trim()&&(0,g.jsx)("div",{className:"wkit-cdn-suggestion",children:C.length>0?(0,g.jsx)("ul",{className:"wkit-custom-cdn-list",children:C?.map(((e,t)=>(0,g.jsxs)("li",{onClick:t=>{R("search_data",e.latest)},children:[e.name," ",(0,g.jsx)("span",{children:q(e.latest)})]},t)))}):(0,g.jsxs)("div",{className:"wkit-search-cdn-not-found",children:[(0,g.jsx)("img",{src:F+"assets/images/jpg/not-found-bell.gif",alt:"not found",draggable:!1}),(0,g.jsx)("p",{className:"wkit-cdn-not-found",children:(0,a.__)("Not Result Found","wdesignkit")})]})})]}),(0,g.jsx)("div",{className:"wkit-wb-links-loop",children:t&&t.Editor_data[0]&&t.Editor_data[0].css&&t.Editor_data[0].css.map(((e,a)=>(0,g.jsx)(Wi,{children:(0,g.jsxs)("div",{draggable:!0,onDragStart:e=>{T.current=a},onDragOver:e=>{e.preventDefault()},onDrop:()=>{z(a,"css")},className:"wb-editor-popup-inp-content",children:[(0,g.jsx)("i",{className:"wdkit-i-wb-move popup-drag-icon"}),(0,g.jsx)("input",{type:"url",ref:L,value:e,className:"wb-editor-popup-input",placeholder:"Paste link here",onChange:e=>{V(e,"css",a)}}),""==e?(0,g.jsx)("span",{className:"eye-link-disabled",children:(0,g.jsx)("i",{className:"wdkit-i-eye"})}):(0,g.jsx)("a",{className:"popup-eye-link-content",target:"_blank",href:e,children:(0,g.jsx)("i",{className:"wdkit-i-eye"})}),1==t.Editor_data[0].css.length&&""==e&&0==a?(0,g.jsx)("span",{className:"popup-inp-remove-icon-disable",children:(0,g.jsx)("i",{className:"wdkit-i-delete"})}):(0,g.jsx)("span",{className:"popup-inp-remove-icon",onClick:e=>{W(a,"css")},children:(0,g.jsx)("i",{className:"wdkit-i-delete"})})]})},a)))}),(0,g.jsx)("div",{className:"wb-popuo-btn-class",children:(0,g.jsxs)("button",{className:"wb-editor-popup-add-btn",onClick:()=>{R("css")},children:[(0,g.jsx)("span",{children:(0,a.__)("Add more","wdesignkit")}),(0,g.jsx)("i",{className:"wdkit-i-wb-plus"})]})})]}),"js"==x&&(0,g.jsxs)("div",{className:"wkit-wb-editor-js-links",children:[(0,g.jsx)("span",{className:"wkit-Add-link",children:(0,a.__)("Insert JS Library","wdesignkit")}),(0,g.jsx)("span",{className:"wkit-link-desc",children:(0,a.__)("Enter the URL of an external JS library (CDN). You can search for a JS CDN online or paste the link directly here.","wdesignkit")}),(0,g.jsxs)("div",{className:"wkit-links-search-bar",children:[(0,g.jsxs)("div",{className:"wdkit-cdn-search-container",children:[(0,g.jsx)("i",{className:"wdkit-i-search"}),(0,g.jsx)("input",{className:"wkit-links-search-input",type:"text",placeholder:(0,a.__)("Search CDNs...","wdesignkit"),value:N,onChange:e=>{$(e.target.value)}})]}),""!==N.trim()&&(0,g.jsx)("div",{className:"wkit-cdn-suggestion",children:D.length>0?(0,g.jsx)("ul",{className:"wkit-custom-cdn-list",children:D?.map(((e,t)=>(0,g.jsxs)("li",{onClick:t=>{R("search_data",e.latest)},children:[e.name," ",(0,g.jsx)("span",{children:q(e.latest)})]},t)))}):(0,g.jsxs)("div",{className:"wkit-search-cdn-not-found",children:[(0,g.jsx)("img",{src:F+"assets/images/jpg/not-found-bell.gif",alt:"not found",draggable:!1}),(0,g.jsx)("p",{className:"wkit-cdn-not-found",children:(0,a.__)("Not Result Found","wdesignkit")})]})})]}),(0,g.jsx)("div",{className:"wkit-wb-links-loop",children:t&&t.Editor_data[0]&&t.Editor_data[0].js&&t.Editor_data[0].js.map(((e,a)=>(0,g.jsx)(Wi,{children:(0,g.jsxs)("div",{draggable:!0,onDragStart:e=>{T.current=a},onDragOver:e=>{e.preventDefault()},onDrop:()=>{z(a,"js")},className:"wb-editor-popup-inp-content",children:[(0,g.jsx)("i",{className:"wdkit-i-wb-move popup-drag-icon"}),(0,g.jsx)("input",{type:"url",value:e,className:"wb-editor-popup-input",placeholder:"Paste link here",onChange:e=>{V(e,"js",a)}}),""==e?(0,g.jsx)("span",{className:"eye-link-disabled",children:(0,g.jsx)("i",{className:"wdkit-i-eye"})}):(0,g.jsx)("a",{className:"popup-eye-link-content",href:e,target:"_blank",rel:"noopener noreferrer",children:(0,g.jsx)("i",{className:"wdkit-i-eye"})}),1==t.Editor_data[0].js.length&&""==e&&0==a?(0,g.jsx)("span",{className:"popup-inp-remove-icon-disable",children:(0,g.jsx)("i",{className:"wdkit-i-delete"})}):(0,g.jsx)("span",{className:"popup-inp-remove-icon",onClick:e=>{W(a,"js")},children:(0,g.jsx)("i",{className:"wdkit-i-delete"})})]})},a)))}),(0,g.jsx)("div",{className:"wb-popuo-btn-class",children:(0,g.jsxs)("button",{className:"wb-editor-popup-add-btn",onClick:()=>{R("js")},children:[(0,g.jsx)("span",{children:(0,a.__)("Add more","wdesignkit")}),(0,g.jsx)("i",{className:"wdkit-i-wb-plus"})]})})]})]}),(0,g.jsx)("div",{className:"close-popup-btn",children:(0,g.jsx)("button",{className:"wkit-wb-close-popup-btn",onClick:e=>{G(e)},children:(0,a.__)("Close","wdesignkit")})})]})})})}):""]})})),{Fragment:Gi}=wp.element,zi=Ya((e=>({widgetdata:e})),(e=>({addTowidgethandler:t=>e(Ni(t)),wdkit_set_notification:t=>e(si(t))})))((t=>{wdkitData.WDKIT_SITE_URL;var i=wdkitData.WDKIT_URL;const s={elementor:{defaultValue:"eicon-code",icons:[{label:(0,a.__)("E-icons","wdesignkit"),value:"E-icons"},{label:(0,a.__)("Font-Awesome","wdesignkit"),value:"Font-Awesome"}]},bricks:{defaultValue:"ti-shield",icons:[{label:(0,a.__)("Themify","wdesignkit"),value:"Themify"},{label:(0,a.__)("Font-Awesome","wdesignkit"),value:"Font-Awesome"}]},gutenberg:{defaultValue:"fas fa-yin-yang",icons:[{label:(0,a.__)("Font-Awesome","wdesignkit"),value:"Font-Awesome"}]}},n={"E-icons":"eicon-code",Themify:"ti-shield","Font-Awesome":"fas fa-yin-yang"},[r,l]=(0,e.useState)(t.widgetdata.WcardData.widgetdata.name),[o,d]=(0,e.useState)(t.widgetdata.WcardData.widgetdata.category),[c,p]=(0,e.useState)(t.widgetdata.WcardData.widgetdata.w_icon),[m,u]=(0,e.useState)(t.widgetdata.WcardData.widgetdata.description),[h,_]=(0,e.useState)(t.widgetdata.WcardData.widgetdata.helper_link),[f,k]=(0,e.useState)(t.widgetdata.WcardData.widgetdata.key_words),[b,x]=(0,e.useState)(t.widgetdata.WcardData.widgetdata.w_image),[v,y]=(0,e.useState)(),[j,N]=(0,e.useState)("none"),[$,C]=(0,e.useState)([]),[S,D]=(0,e.useState)(!1),[E,P]=(0,e.useState)(!1),[A,T]=(0,e.useState)(s?.[t.widgetdata.WcardData.widgetdata.type]?.icons[0]),[L,M]=(0,e.useState)(!1),[F,I]=(0,e.useState)(!1),[B,O]=(0,e.useState)(""),R=(0,e.useRef)(r),V=(0,e.useRef)(""),W=((0,e.useRef)(""),async e=>{D(!0);let t={manage_type:"update",category_list:[...e].filter((e=>""!==e))},a={type:"wkit_manage_widget_category",info:JSON.stringify(t)};await w(a).then((e=>{C(e)})).catch((e=>console.log(e))),D(!1),P(-1)});(0,e.useEffect)((()=>{(async()=>{let e={type:"wkit_manage_widget_category",info:JSON.stringify({manage_type:"get"})};await w(e).then((e=>{C(e)}))})()}),[]),(0,e.useEffect)((()=>{if("string"==typeof b&&V&&V.current&&"wkit-wb-widget-icon-drop_zone"==V.current.id&&(V.current.style.backgroundImage=`url('${b}')`),"object"==typeof b){const e=new FileReader;e.readAsDataURL(b),e.onload=()=>{V.current.style.backgroundImage=`url('${e.result}')`}}}));const q=(e,i)=>{if(i?.size&&Number(i?.size)/1e6>2)e.preventDefault(),t.wdkit_set_notification({title:(0,a.__)("Insert valid Image","wdesignkit"),desc:(0,a.__)("Image size must be less tahn 2 mb.","wdesignkit")});else{e.preventDefault();let s=i?.type.split("/");s.includes("png")||s.includes("jpg")||s.includes("jpeg")?(y((()=>{let e=(new Date).getFullYear().toString().slice(-2),t=Math.random();return t.toString(36),t.toString(36).substr(2,6)+e})()),x(i)):t.wdkit_set_notification({title:(0,a.__)("Insert valid Image","wdesignkit"),desc:(0,a.__)('only ".png", ".jpg", ".jpeg" images are allowed.',"wdesignkit")})}},G=(e,t)=>{"upload"==t?e.target.closest(".wkit-remove-widget-img")||document.querySelector("#drop-zone__input").click():"remove"==t&&(e.target.closest(".drop-zone").style.backgroundImage="",x(""))};return(0,g.jsx)("div",{className:"wkit-wb-content wkit-wb-popoupScroll",onClick:e=>{(e=>{L&&M(!1),F&&I(!1),"none"===j||e.target.closest(".wkit-wb-custom-category")||N("none")})(e)},children:(0,g.jsx)("div",{className:"wkit-wb-third-part-content show",children:(0,g.jsxs)("div",{className:"wkit-wb-block-detail",children:[(0,g.jsxs)("div",{className:"wkit-wb-block-wrapper",children:[(0,g.jsxs)("div",{className:"wkit-wb-block-name",children:[(0,g.jsxs)("div",{className:"wkit-wb-keyWord-title",children:[(0,g.jsx)("label",{className:"wkit-wb-block-label",children:(0,a.__)("Name","wdesignkit")}),(0,g.jsxs)("div",{className:"wdkit-wb-edit-tolltip-container",children:[(0,g.jsx)("span",{className:"wkit-wb-toolTip-icon",children:(0,g.jsx)("i",{className:"wdkit-i-info"})}),(0,g.jsx)("span",{className:"wdkit-wb-edit-tolltip",children:(0,a.__)("Only numbers and alphabet are allowed for this field, Widget name must be smaller then 25 charaters and first letter can't be digit.","wdesignkit")})]})]}),(0,g.jsx)("input",{className:"wkit-wb-block-text-inp",value:r,type:"text",ref:R,placeholder:(0,a.__)("Enter your Widget Name","wdesignkit"),onChange:e=>{""==R?.current?.value?(R.current.style.border="1px solid red",document.querySelector(".wb-wkit-widgetName-toolTip").style.display="flex",setTimeout((()=>{document.querySelector(".wb-wkit-widgetName-toolTip").style.display="none"}),2e3),l("")):""!=R?.current?.value&&(R.current.style.border="",/^[a-zA-Z][a-zA-Z0-9\s]{0,23}$/.test(R.current.value)?l(R.current.value):(document.querySelector(".wb-wkit-widgetName-toolTip").style.display="flex",setTimeout((()=>{document.querySelector(".wb-wkit-widgetName-toolTip").style.display="none"}),2e3)))}})]}),(0,g.jsxs)("div",{className:"wkit-wb-block-category",children:[(0,g.jsx)("div",{className:"wkit-wb-keyWord-title",children:(0,g.jsx)("label",{className:"wkit-wb-block-label",children:(0,a.__)("Category","wdesignkit")})}),(0,g.jsxs)("div",{className:"wkit-wb-category",children:[(0,g.jsxs)("div",{className:"wkit-wb-selected-category-header",children:[(0,g.jsx)("span",{className:"wkit-wb-selected-category",onClick:e=>{I(!F)},children:o}),(0,g.jsx)("span",{className:"wkit-wb-edit-category",onClick:e=>{N("none"==j?"flex":"none")},children:(0,g.jsx)("i",{className:"wdkit-i-wb-pen"})})]}),(0,g.jsx)("div",{style:{display:F?"flex":"none"},className:"wkit-wb-select-category-options",children:$&&$.map(((e,t)=>(0,g.jsx)(Gi,{children:(0,g.jsx)("span",{className:"wkit-wb-cat-option",onClick:t=>{d(e),I(!F)},children:e})},t)))})]}),(0,g.jsxs)("div",{className:"wkit-wb-custom-category",style:{display:j},children:[(0,g.jsx)("div",{className:"wkit-wb-custom-category-header",children:(0,g.jsx)("div",{className:"wkit-wb-keyWord-title",children:(0,g.jsx)("span",{className:"wkit-wb-custom-category-name",children:(0,a.__)("Create New Category","wdesignkit")})})}),(0,g.jsxs)("div",{className:"wkit-wb-custom-category-inp_content",children:[(0,g.jsx)("div",{className:"wkit-custom-category-content",children:(0,g.jsx)("input",{className:"wkit-wb-custom-category-inp",value:$[0],disabled:!0})}),$&&$.map(((e,t)=>{if(t>0)return(0,g.jsxs)("div",{className:"wkit-wb-caregory-map",children:[(0,g.jsxs)("div",{className:"wkit-custom-category-content",children:[(0,g.jsx)("input",{className:"wkit-wb-custom-category-inp",value:e,onBlur:()=>{W($),P(t)},onChange:e=>{((e,t)=>{let a=[...$];""==e.target.value||/^[a-zA-Z0-9-_ ]+$/.test(e.target.value)?a[t]=e.target.value:(document.querySelector(".wb-wkit-widgetCategory-toolTip").style.display="flex",setTimeout((()=>{document.querySelector(".wb-wkit-widgetCategory-toolTip").style.display="none"}),2e3)),C(a)})(e,t)},disabled:S}),S&&E==t&&(0,g.jsx)("div",{className:"wkit-publish-loader",children:(0,g.jsx)("div",{className:"wb-loader-circle wkit-category-loader"})})]}),(0,g.jsx)("span",{onClick:e=>{(async(e,t)=>{let a=[...$];await a.splice(t,1),await W(a),await C(a),await P(-1)})(0,t)},children:(0,g.jsx)("i",{className:"wdkit-i-delete"})})]},t)}))]}),(0,g.jsxs)("div",{className:"wkit-wb-custom-category-btns",onClick:e=>{(()=>{let e=[...$];e.push(""),C(e)})()},children:[(0,g.jsx)("span",{children:(0,a.__)("Add More","wdesignkit")}),(0,g.jsx)("i",{className:"wdkit-i-wb-plus"})]})]})]})]}),(0,g.jsxs)("div",{className:"wkit-wb-block-feature-img",children:[(0,g.jsxs)("div",{className:"wkit-wb-upload-block-icon",children:[(0,g.jsxs)("div",{className:"wkit-wb-keyWord-title",children:[(0,g.jsx)("label",{className:"wkit-wb-block-label",children:(0,a.__)("Featured Image","wdesignkit")}),(0,g.jsxs)("div",{className:"wdkit-wb-edit-tolltip-container",children:[(0,g.jsx)("span",{className:"wkit-wb-toolTip-icon",children:(0,g.jsx)("i",{className:"wdkit-i-info"})}),(0,g.jsx)("span",{className:"wdkit-wb-edit-tolltip",children:(0,a.__)("Only .jpg and .png are allowed","wdesignkit")})]})]}),(0,g.jsxs)("div",{className:"drop-zone",ref:V,id:"wkit-wb-widget-icon-drop_zone",onDragOver:e=>{e.preventDefault()},onDrop:e=>{q(e,e.dataTransfer.files[0])},onClick:e=>{G(e,"upload")},children:[b?(0,g.jsx)("span",{className:"wkit-remove-widget-img",onClick:e=>{G(e,"remove")},children:(0,g.jsx)("i",{className:"wdkit-i-cancel"})}):(0,g.jsxs)("div",{className:"drop-zone__prompt",children:[(0,g.jsx)("img",{className:"wkit-wb-plus-icon",src:i+"assets/images/wb-svg/Union.svg"}),(0,g.jsx)("div",{className:"wkit-wb-drag-drop-label",children:(0,a.__)("Upload Widget's featured image to show in widget listing. Only .jpg and .png images allowed.","wdesignkit")})]}),(0,g.jsx)("input",{type:"file",name:"myFile",className:"wkit-file-text",id:"drop-zone__input",accept:"image/*",onChange:e=>{q(e,e.target.files[0])}})]})]}),(()=>{let e=t.widgetdata.WcardData.widgetdata.type,r=vi[A?.value].filter((e=>""===B.trim()||e.toLocaleLowerCase().includes(B.trim().toLocaleLowerCase())));return(0,g.jsxs)("div",{className:"wkit-wb-upload-block-icon",children:[(0,g.jsxs)("div",{className:"wb-add-widget-name-title wkit-icons-data",children:[(0,g.jsx)("div",{className:"wkit-wb-keyWord-title",style:{margin:"0"},children:(0,g.jsx)("span",{className:"wkit-wb-block-label",children:(0,a.__)("Icon","wdesignkit")})}),(0,g.jsxs)("div",{className:"wkit-dropdown-data",children:[(0,g.jsxs)("div",{className:"wkit-icon-dropdown",onClick:e=>{M(!L)},children:[(0,g.jsx)("span",{className:"wkit-selected-icons",children:A?.label}),s?.[e]?.icons?.length>1&&(0,g.jsx)("img",{className:"wkit-svg "+(L?"wkit-rotate-svg":""),src:i+"assets/images/wb-svg/controller-open.svg"})]}),s?.[e]?.icons?.length>1&&(0,g.jsx)("div",{className:"wkit-value-dropdown "+(L?"wkit-dp-show":""),children:s?.[e]?.icons?.map(((e,t)=>(0,g.jsx)("span",{className:"wkit-icon-value",onClick:t=>{T(e),p(n[e?.value]),M(!L)},children:e?.label},t)))})]})]}),(0,g.jsx)("div",{className:"wkit-show-all-icons",children:"Font-Awesome"===A?.value||Object.keys(t.plugin_status).length>0&&"active"===t.plugin_status[e]?(0,g.jsxs)(g.Fragment,{children:[(0,g.jsxs)("div",{className:"wkit-search-select",children:[(0,g.jsxs)("div",{className:"wkit-icon-search",children:[(0,g.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,g.jsx)("path",{d:"M6.41667 11.0833C8.994 11.0833 11.0833 8.994 11.0833 6.41667C11.0833 3.83934 8.994 1.75 6.41667 1.75C3.83934 1.75 1.75 3.83934 1.75 6.41667C1.75 8.994 3.83934 11.0833 6.41667 11.0833Z",stroke:"#737373",strokeLinecap:"round",strokeLinejoin:"round"}),(0,g.jsx)("path",{d:"M12.2504 12.2523L9.71289 9.71484",stroke:"#737373",strokeLinecap:"round",strokeLinejoin:"round"})]}),(0,g.jsx)("input",{type:"text",className:"wkit-icons-search-box",value:B,onChange:e=>{O(e.target.value)},placeholder:(0,a.__)("Search icons","wdesignkit")})]}),(0,g.jsxs)("div",{className:"wkit-selected-text",children:[(0,g.jsx)("span",{className:"wkit-selected",children:(0,a.__)("Selected","wdesignkit")}),(0,g.jsx)("span",{className:`wkit-selected-icon ${c}`})]})]}),(0,g.jsx)("div",{className:"wkit-all-icon-list wkit-wb-popoupScroll",children:r.length>0?r?.map(((e,t)=>(0,g.jsx)("span",{className:`wkit-widget-icon-container ${e} ${e===c?"wkit-screened-icon":""}`,onClick:()=>p(e)},t))):(0,g.jsxs)("div",{className:"wdkit-not-found-icons-container",children:[(0,g.jsx)("img",{className:"wdkit-not-found-icons",src:i+"assets/images/jpg/not-found-bell.gif",alt:"not found",draggable:!1}),(0,g.jsx)("h4",{children:(0,a.__)("No Search Found","wdesignkit")})]})})]}):(0,g.jsx)("h4",{className:"wkit-plugin-not-found",children:(0,a.__)("Relevant Plugin/Theme is not Activated","wdesignkit")})})]})})()]}),(0,g.jsxs)("div",{className:"wkit-wb-widget-info",children:[(0,g.jsxs)("div",{className:"wkit-wb-key-words",children:[(0,g.jsxs)("div",{className:"wkit-wb-keyWord-title",children:[(0,g.jsx)("label",{className:"wkit-wb-input-lable",children:(0,a.__)("Keywords","wdesignkit")}),"elementor"==t.widgetdata.WcardData.widgetdata.type&&(0,g.jsxs)("div",{className:"wdkit-wb-edit-tolltip-container",children:[(0,g.jsx)("span",{className:"wkit-wb-toolTip-icon",children:(0,g.jsx)("i",{className:"wdkit-i-info"})}),(0,g.jsxs)("span",{className:"wdkit-wb-edit-tolltip",children:[(0,a.__)("Enter keywords to allow searching in elementor editor.","wdesignkit"),(0,g.jsx)("a",{href:"https://developers.elementor.com/docs/widgets/widget-data/",target:"_blank",rel:"noopener noreferrer",children:(0,a.__)("Read More","wdesignkit")})]})]})]}),(0,g.jsx)("input",{className:"wkit-wb-input-content",placeholder:"e.g. icon box, info box, icon",value:f,type:"text",onChange:e=>{k(e.target.value)}})]}),(0,g.jsxs)("div",{className:"wkit-wb-helper-link",children:[(0,g.jsxs)("div",{className:"wkit-wb-keyWord-title",children:[(0,g.jsx)("label",{className:"wkit-wb-input-lable",children:(0,a.__)("Help Link","wdesignkit")}),(0,g.jsxs)("div",{className:"wdkit-wb-edit-tolltip-container",children:[(0,g.jsx)("span",{className:"wkit-wb-toolTip-icon",children:(0,g.jsx)("i",{className:"wdkit-i-info"})}),(0,g.jsxs)("span",{className:"wdkit-wb-edit-tolltip",children:[(0,a.__)("Enter URL for users to get more information about this widget.","wdesignkit")," ",(0,g.jsx)("a",{href:"https://developers.elementor.com/docs/widgets/widget-data/",target:"_blank",rel:"noopener noreferrer",children:(0,a.__)("Read More","wdesignkit")})]})]})]}),(0,g.jsx)("input",{className:"wkit-wb-input-content",placeholder:"e.g. https://xyz.com/help/",value:h,type:"url",onChange:e=>{_(e.target.value)}})]})]}),(0,g.jsxs)("div",{className:"wkit-wp-btn-center wb-add-widget-footer",children:[(0,g.jsxs)("span",{className:"wdkit-trsprnt-btn",onClick:e=>{t.Close_popup()},children:[" ",(0,a.__)("Cancel","wdesignkit")," "]}),(0,g.jsx)("div",{className:"wkit-btn-class",onClick:e=>{N("none"),""!==r&&isNaN(r.charAt(0))&&(()=>{const e=""!==r&&isNaN(r.charAt(0)),a=/^[a-zA-Z0-9, ]*$/.test(f)||""===f,i=/^(ftp|http|https):\/\/[^ "]+$/.test(h)||""===h;if(!e)return document.querySelector(".wb-wkit-widgetName-toolTip").style.display="flex",setTimeout((()=>{document.querySelector(".wb-wkit-widgetName-toolTip").style.display="none"}),2e3),!1;if(!a)return document.querySelector(".wb-wkit-widgetkeyW-toolTip").style.display="flex",setTimeout((()=>{document.querySelector(".wb-wkit-widgetkeyW-toolTip").style.display="none"}),2e3),!1;if(!i)return document.querySelector(".wb-wkit-widgetHelper-toolTip").style.display="flex",setTimeout((()=>{document.querySelector(".wb-wkit-widgetHelper-toolTip").style.display="none"}),2e3),!1;let s=[];"string"==typeof f?f.split(",").forEach((e=>{s.push(e.trim())})):s=f;let n=Object.assign({},t.widgetdata.WcardData.widgetdata,{name:r.trim(),category:o,w_image:b,w_icon:c,description:m,helper_link:h,image_id:v,key_words:s});e&&a&&i&&t.Close_popup(),t.addTowidgethandler(n)})()},children:(0,a.__)("Save","wdesignkit")})]})]})})})})),Hi=Ya((e=>({widgetdata:e,wdkit_meta:e.wdkit_meta_data.wdkitmeta})),(e=>({addTowidgethandler:t=>e(Ni(t)),wdkit_set_meta:t=>e(Change_wdkit_meta(t)),wdkit_set_notification:t=>e(si(t))})))((t=>{const[i,s]=(0,e.useState)(!1),[n,r]=(0,e.useState)("default"),[l,o]=(0,e.useState)(""),[d,c]=(0,e.useState)(!1),[m,u]=(0,e.useState)(!1),[h,w]=(0,e.useState)(""),[_,f]=(0,e.useState)([""]),[k,b]=(0,e.useState)(!1),[x,v]=(0,e.useState)(""),y=(0,e.useRef)(),j=(0,e.useRef)(null),[N,$]=(0,e.useState)(t.widgetdata.WcardData.widgetdata.name),[C,S]=(0,e.useState)(t.widgetdata.WcardData.widgetdata.name.length),[D,E]=(0,e.useState)(!1),P=(ue(),he()),A=(0,e.useRef)("");var T=P.id,L=wdkitData.WDKIT_URL;(0,e.useEffect)((()=>{let e={CardItems:t.widgetdata?.CardItems,WcardData:t.widgetdata?.WcardData,Editor_data:t.widgetdata?.Editor_data,Editor_code:t.widgetdata?.Editor_code};A.current=JSON.stringify(e),document.querySelector(".wkit-wb-live-preview")&&document.querySelector(".wkit-wb-live-preview").getBoundingClientRect()&&document.querySelector(".wkit-wb-live-preview").getBoundingClientRect().top&&o(document.querySelector(".wkit-wb-live-preview").getBoundingClientRect().top)}),[]),(0,e.useEffect)((()=>{let e={CardItems:t.widgetdata?.CardItems,WcardData:t.widgetdata?.WcardData,Editor_data:t.widgetdata?.Editor_data,Editor_code:t.widgetdata?.Editor_code};A?.current&&t?.widgetdata&&A.current!==JSON.stringify(e)?r("change"):"default"!=n&&r("update")}),[t.widgetdata]),(0,e.useEffect)((()=>{window.location.hash.search("#/widget-listing/builder")>-1&&(window.onbeforeunload=function(e){if("change"==n)return"Are you sure you want to leave page"})}));const M=async(e,a)=>{r("loading");var i=ace.edit("editor-html",{theme:"ace/theme/cobalt",mode:"ace/mode/html"}),s=ace.edit("editor-css",{theme:"ace/theme/cobalt",mode:"ace/mode/css"}),n=ace.edit("editor-js",{theme:"ace/theme/cobalt",mode:"ace/mode/javascript"});let l=JSON.stringify(i.getValue()),o=JSON.stringify(s.getValue()),d=JSON.stringify(n.getValue());var c="",p="";if(t?.widgetdata?.WcardData?.widgetdata?.w_image){let e=t.widgetdata.WcardData.widgetdata.w_image;"object"==typeof e&&(p=e)}if(t?.widgetdata?.WcardData?.widgetdata?.w_icon){t.widgetdata.WcardData.widgetdata.w_icon}return"elementor"==t.widgetdata.WcardData.widgetdata.type?p?await Bt(a,e,l,o,d,T,p).then((e=>{c=e})):await Bt(a,e,l,o,d,T,"").then((e=>{c=e})):"gutenberg"==t.widgetdata.WcardData.widgetdata.type?p?await Ot(a,e,l,o,d,T,p).then((e=>{c=e})):await Ot(a,e,l,o,d,T,"").then((e=>{c=e})):"bricks"==t.widgetdata.WcardData.widgetdata.type&&(p?await It(a,e,l,o,d,T,p).then((e=>{c=e})):await It(a,e,l,o,d,T,"").then((e=>{c=e}))),setTimeout((()=>{r("update");let e={CardItems:t.widgetdata?.CardItems,WcardData:t.widgetdata?.WcardData,Editor_data:t.widgetdata?.Editor_data,Editor_code:t.widgetdata?.Editor_code};A.current=JSON.stringify(e)}),1e3),c},F=e=>{const a=Object.assign({},t.widgetdata.WcardData.widgetdata,{publish_type:e});t.addTowidgethandler(a)},I=(e,t)=>{(e&&e.target&&Object.values(e.target.classList)&&Object.values(e.target.classList).includes("overlay")||"click"==t)&&(b(""),v(""))},B=()=>(0,g.jsx)("i",{className:"wdkit-i-globe"}),O=()=>(0,g.jsx)("i",{className:"wdkit-i-file"}),R=e=>{let t={title:"",desc:""};return"widget_info"==k?(t.title=(0,a.__)("Edit Widget Information","wdesignkit"),t.desc=(0,a.__)("Update your widget details and click Save when done.","wdesignkit")):"version_info"==k&&(t.title=(0,a.__)("Sync Widget","wdesignkit"),t.desc=(0,a.__)("Are you sure you want to sync this widget ?","wdesignkit")),t[e]};return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"wkit-widget-edit-setting-panel",children:(0,g.jsxs)("div",{className:"wkit-wb-head-wrapper",children:[(0,g.jsxs)("div",{className:"wkit-wb-left-hand-side",children:[(0,g.jsx)("img",{className:"wkit-wb-plus-icon wkit-elementor-icon",src:L+"assets/images/wb-svg/elementor.svg",draggable:"false"}),(0,g.jsx)("img",{className:"wkit-wb-plus-icon wkit-gutenberg-icon",src:L+"assets/images/wb-svg/gutenberg.svg",draggable:"false"}),(0,g.jsx)("img",{className:"wkit-wb-plus-icon wkit-bricks-icon",src:L+"assets/images/wb-svg/bricks.svg",draggable:"false"}),(0,g.jsxs)("div",{className:"wkit-wb-widget-title",children:[(0,g.jsx)("span",{className:"wkit-wb-widgetTitle",style:{display:m&&"none"},children:t.widgetdata.WcardData.widgetdata.name}),(0,g.jsx)("input",{className:"wkit-wb-widget-title-inp",type:"text",value:N,onChange:e=>{(e=>{if(/^[a-zA-Z][a-zA-Z0-9\s]{0,23}$/.test(e.target.value)||""==e.target.value){$(e.target.value);const a=Object.assign({},t.widgetdata.WcardData.widgetdata,{name:e.target.value});t.addTowidgethandler(a)}})(e),S(e.target.value.length)},ref:y,style:{pointerEvents:!m&&"none",display:m&&"flex"},onBlur:e=>{(e=>{let a=e.target.value.trim();if(""==a){j.current;const e=Object.assign({},t.widgetdata.WcardData.widgetdata,{name:j.current});t.addTowidgethandler(e),$(j.current)}else{const e=Object.assign({},t.widgetdata.WcardData.widgetdata,{name:a});t.addTowidgethandler(e),$(a)}})(e),u(!m)},onFocus:e=>{(e=>{j.current=e.target.value})(e)}}),!m&&(0,g.jsx)("a",{children:(0,g.jsx)("span",{className:"wkit-wb-edit-nameIcon",onClick:e=>{u(!m),setTimeout((()=>{y.current.focus()}),0)},children:(0,g.jsx)("i",{className:"wdkit-i-wb-pen"})})})]})]}),(0,g.jsxs)("div",{className:"wkit-wb-right-hand-side",children:[(0,g.jsxs)("div",{className:"wkit-wb-setting-panel-link wkit-wb-dropdown",onClick:()=>{c(!d)},children:["Publish"==t.widgetdata.WcardData.widgetdata.publish_type?(0,g.jsx)(B,{}):(0,g.jsx)(O,{}),(0,g.jsx)("span",{className:"output",children:t.widgetdata.WcardData.widgetdata.publish_type}),(0,g.jsx)("i",{className:"wdkit-i-down-arrow "+(1==d?"wdkit-wb-rotate-icon":"")}),(0,g.jsxs)("div",{className:1==d?"wkit-wb-dropdown-content wkit-wb-show":"wkit-wb-dropdown-content",id:"mySelect",children:[(0,g.jsx)("div",{className:"wkit-dropdown-outerContent"}),(0,g.jsxs)("div",{className:"wkit-dropdown-item",value:"draft",name:"Draft",onClick:()=>{F("Draft")},children:[(0,g.jsx)(O,{}),(0,g.jsx)("span",{children:(0,a.__)("Draft","wdesignkit")})]}),(0,g.jsxs)("div",{className:"wkit-dropdown-item",value:"publish",name:"Publish",onClick:()=>F("Publish"),children:[(0,g.jsx)(B,{}),(0,g.jsx)("span",{children:(0,a.__)("Publish","wdesignkit")})]})]})]}),(0,g.jsx)("span",{className:"wdkit-wb-setting-icon",onClick:()=>{b("widget_info")},children:(0,g.jsx)("i",{className:"wdkit-i-settings"})}),0!=t.widgetdata?.WcardData?.widgetdata?.allow_push&&(0,g.jsxs)("button",{className:"wkit-wb-sync-btn "+(p()?"":"wkit-block-btn"),onClick:()=>{b("version_info")},children:[(0,g.jsx)("div",{className:"wkit-wb-sync-btn-tooltip",children:(0,g.jsx)("span",{children:(0,a.__)("Push widget on Cloud and Sync it","wdesignkit")})}),(0,g.jsx)("i",{className:"wdkit-i-wb-push"}),(0,g.jsx)("span",{children:(0,a.__)("Push","wdesignkit")})]}),(V=(0,a.__)("Save","wdesignkit"),W="",q="","default"==n?(V=(0,a.__)("Save","wdesignkit"),W=(0,g.jsx)("i",{className:"wdkit-i-wb-save"}),q="wdkit-disable"):"change"==n?(V=(0,a.__)("Save","wdesignkit"),W=(0,g.jsx)("i",{className:"wdkit-i-wb-save"}),q=""):"update"==n?(V=(0,a.__)("Saved","wdesignkit"),W=(0,g.jsx)("i",{className:"wdkit-i-wb-save"}),q="wdkit-saved"):"loading"==n&&(V="",W=(0,g.jsx)("div",{className:"wkit-publish-loader",children:(0,g.jsx)("div",{className:"wb-loader-circle"})}),q=""),(0,g.jsxs)("button",{className:`wkit-wb-publish-btn ${q}`,onClick:()=>{M(t.widgetdata,"update").then((e=>{e.api.success?t.wdkit_set_notification({title:(0,a.__)("Updates Saved!","wdesignkit"),desc:(0,a.__)("Your changes have been saved successfully.","wdesignkit")}):t.wdkit_set_notification({title:(0,a.__)("Fail to Save","wdesignkit"),desc:(0,a.__)("Fail! Can not Saved","wdesignkit")})}))},disabled:"change"!=n,children:[W,V]}))]})]})}),k&&(0,g.jsx)(Be,{title:R("title"),desc:R("desc"),body:"widget_info"==k?(0,g.jsx)(zi,{plugin_status:t.plugin_status,plugin_detail:t.plugin_detail,Close_popup:e=>I(e,"click")}):"version_info"==k?(0,g.jsxs)("div",{className:"wdkit-wb-sync-widget-container",children:[(0,g.jsxs)("div",{className:"wb-version-body",children:[(0,g.jsxs)("div",{className:"wb-version-wrap wb-widget-sync-details",children:[(0,g.jsxs)("div",{className:"wb-version-number",children:[(0,g.jsx)("span",{className:"wb-version-label",children:(0,a.__)("Current Version","wdesignkit")}),(0,g.jsx)("input",{style:{cursor:"not-allowed"},className:"wb-version-input",type:"text",defaultValue:t?.widgetdata?.WcardData?.widgetdata?.widget_version?t?.widgetdata?.WcardData?.widgetdata?.widget_version:"1.0.0",disabled:!0})]}),(0,g.jsxs)("div",{className:"wb-version-detais",children:[(0,g.jsx)("span",{className:"wb-version-label",children:(0,a.__)("Latest Version","wdesignkit")}),(0,g.jsx)("input",{className:"wb-version-input",type:"text",value:t?.widgetdata?.WcardData?.widgetdata?.widget_version?h:"1.0.0",onChange:e=>{(e=>{const a=e.target.value;if(""==a)v("");else if(!/^[0-9.]*$/.test(a))return void v("You can enter only number here");w(e.target.value),""==a.trim()?v("Version is required"):t?.widgetdata?.WcardData?.widgetdata?.widget_version>=e.target.value?v(`Version ${e.target.value} is already available`):v("")})(e)},disabled:!t?.widgetdata?.WcardData?.widgetdata?.widget_version}),(0,g.jsx)("p",{className:"wb-error-message",children:x})]})]}),(0,g.jsx)("span",{className:"wb-version-label wb-label-separate",children:(0,a.__)("Changelog","wdesignkit")}),(0,g.jsx)("div",{className:"wb-version-changes",children:_.map(((e,t)=>(0,g.jsxs)("div",{className:"wb-version-wrap",children:[(0,g.jsx)("textarea",{className:"wb-version-detail-input",value:e,placeholder:"Please enter description",rows:"2",onChange:e=>{((e,t)=>{let a=[..._];a[t]=e.target.value,f(a)})(e,t)}}),(0,g.jsx)("span",{className:"wdkit-wb-del-changelog-icon",onClick:()=>{(e=>{let t=[..._];t.length>1?(t.splice(e,1),f(t)):1==t.length&&(t[e]="",f(t))})(t)},children:(0,g.jsx)("i",{className:"wdkit-i-delete"})})]},t)))}),(0,g.jsxs)("button",{className:"wkit-add-log-btn",onClick:()=>{(()=>{let e=[..._];e.push(""),f(e)})()},children:[(0,g.jsx)("span",{children:(0,a.__)("Add more","wdesignkit")}),(0,g.jsx)("i",{className:"wdkit-i-wb-plus"})]})]}),(0,g.jsxs)("div",{className:"wb-quickedit-footer wb-add-widget-footer",children:[(0,g.jsxs)("span",{className:"wdkit-trsprnt-btn",onClick:e=>I(e,"click"),children:[" ",(0,a.__)("Cancel","wdesignkit")," "]}),(0,g.jsxs)("button",{className:"wkit-btn-class",style:{cursor:t?.widgetdata?.WcardData?.widgetdata?.widget_version{(async()=>{let e=t.wdkit_meta.widgettemplate;if(E(!0),e.length>0){let a=e.findIndex((e=>e.w_unique==t.widgetdata.WcardData.widgetdata.widget_id));if(_.length>1)var i=_;else i=1==_.length&&_[0]?_:[];if(a>-1)var s=Object.assign({},t.widgetdata.WcardData.widgetdata,{widget_version:h||"1.0.0",version_detail:i});else s=Object.assign({},t.widgetdata.WcardData.widgetdata,{widget_version:h||"1.0.0",version_detail:i})}else s=Object.assign({},t.widgetdata.WcardData.widgetdata,{widget_version:h||"1.0.0",version_detail:i});let n=Object.assign({},t.widgetdata.WcardData,{widgetdata:s}),r=Object.assign({},t.widgetdata,{WcardData:n});var l="";await M(r,"sync").then((e=>{l=e})),l&&l.ajax&&(1==l?.ajax?.data?.success?(b(""),v(""),t.wdkit_set_notification({title:(0,a.__)("Widget Pushed","wdesignkit"),desc:(0,a.__)("The widget has been pushed and is available for use.","wdesignkit")})):(t.wdkit_set_notification({title:(0,a.__)("Operation fail","wdesignkit"),desc:(0,a.__)("Something went wrong","wdesignkit")}),v(l?.ajax?.data?.message)));const o=Object.assign({},t.widgetdata.WcardData.widgetdata,{widget_version:h||"1.0.0"});t.addTowidgethandler(o),f([""]),E(!1)})()},children:[1==D&&(0,g.jsx)("div",{className:"wkit-publish-loader",children:(0,g.jsx)("div",{className:"wb-loader-circle"})}),0==D&&(0,g.jsx)("span",{children:(0,a.__)("Update","wdesignkit")})]})]})]}):void 0,close_popup:e=>I(e,"click")})]});var V,W,q})),{Fragment:Ui}=wp.element;wdkitData.WDKIT_SITE_URL;var Ji=wdkitData.WDKIT_URL;const Ki=Ya((e=>({cardData:e,controller:e.Active_controller,widgetdata:e.WcardData.widgetdata})),(e=>({addToCarthandler:t=>e(ji(t)),addToActiveController:t=>e(Si(t)),wdkit_set_notification:t=>e(si(t))})))((t=>{const i=()=>{if("elementor"==t?.widgetdata?.type)var e="#91003b";else"gutenberg"==t?.widgetdata?.type?e="#162D9E":"gutenberg-core"==t?.widgetdata?.type?e="#287CB2":"bricks"==t?.widgetdata?.type&&(e="#FFD64F");return e},[s,n]=(0,e.useState)("Inset"),[r,l]=(0,e.useState)("normal"),[o,d]=(0,e.useState)("normal"),[c,p]=(0,e.useState)(!0),[m,u]=(0,e.useState)(!1),h=(e,a)=>{let i=t?.nha_array.filter((e=>null!==e));if("width"===e){if(i?.length>0){let e=i.length;return 100/Number(e)+"%"}return"100%"}if("border"===e)return Number(i?.length)-1==a?"none":"";if("label"===e){let e=t?.nha_array.findIndex((e=>e==a));return e>-1&&t?.nha_array_lable?.[e]?t?.nha_array_lable[e]:a.charAt(0).toUpperCase()+a.slice(1)}},w=()=>{let e=(new Date).getFullYear().toString().slice(-2),t=Math.random();return t.toString(36),t.toString(36).substr(2,6)+e},_=(e,a,i,s)=>{let n=[...t.cardData.CardItems.cardData],r=e.target.closest(".wb-main-component").dataset;if(r.rnp)var l=n[0][r.array_type][r.sec_id].inner_sec[r.compo_id].fields[r.rnp];else l=n[0][r.array_type][r.sec_id].inner_sec[r.compo_id];if("nofollow"==a||"is_external"==a)var o=Object.assign({},l,{[a]:e.target.checked});else if("defaultValue_slider"==a){let t=[...l.slider_defaultValue];t[1]=e.target.value,o=Object.assign({},l,{slider_defaultValue:t})}else if("switcher_defaultValue"==a)o=Object.assign({},l,{defaultValue:e.target.checked});else if("dimension_defaultValue"==a){if("isLinked"!=i){var d=Object.assign({},l.dimension_defaultValue,{[i]:e.target.value});o=Object.assign({},l,{dimension_defaultValue:d})}else if("isLinked"==i){let e=l.dimension_defaultValue[i];d=Object.assign({},l.dimension_defaultValue,{[i]:!e}),o=Object.assign({},l,{dimension_defaultValue:d})}}else if("align_defaultValue"==a)o=Object.assign({},l,{align_defaultValue:i});else if("select2_defaultValue"==a){if("add"==s){let e=[...l[a]];e.push(i),o=Object.assign({},l,{[a]:e})}else if("remove"==s){let e=[...l[a]];e.splice(i,1),o=Object.assign({},l,{[a]:e})}}else o="select_defaultValue"==a?Object.assign({},l,{[a]:i}):"nha_type"==a?Object.assign({},l,{[a]:i}):Object.assign({},l,{[a]:e.target.value});r.rnp?n[0][r.array_type][r.sec_id].inner_sec[r.compo_id].fields.splice(r.rnp,1,o):n[0][r.array_type][r.sec_id].inner_sec.splice(r.compo_id,1,o),t.addToCarthandler(n)},f=(e,i,s,n,r)=>{let l=e.dataTransfer.getData("controller_id");if(l)if("repeater"==l||"popover"==l)t.wdkit_set_notification({title:(0,a.__)("Not Valid","wdesignkit"),desc:(0,a.__)("You Can Not put this controller here","wdesignkit")});else{const e=ki[l].name,a=Object.assign({},ki[l],{name:e+"_"+w()});let o=[...t.cardData.CardItems.cardData];if(null!=r){let e=o[0][n][i].inner_sec[s].fields[r],t=[...e.fields];t.push(a);let l=Object.assign({},e,{fields:t});o[0][n][i].inner_sec[s].fields[r]=l}else{let e=o[0][n][i].inner_sec[s],t=[...e.fields];t.push(a);let r=Object.assign({},e,{fields:t});o[0][n][i].inner_sec[s]=r}p(!0),t.addToCarthandler(o)}},k=e=>{let a=e.target.closest(".wb-main-component").dataset,i=[...t.cardData.CardItems.cardData];var s=ace.edit("editor-html",{theme:"ace/theme/cobalt",mode:"ace/mode/html"});let n=s.getValue();const r=(e,t)=>{if(n.search([e])>-1){var a=s.find(e,{wrap:!0,caseSensitive:!0,wholeWord:!0,regExp:!1,preventScroll:!0});null!=a&&(t?(s.session.replace(a,t),r(e,t)):(s.session.replace(a,""),r(e)))}},l=e=>{"gallery"!=e.type&&"select2"!=e.type&&"repeater"!=e.type||r(`data-${e.name}={${e.name}}`),"cpt"!=e.type&&"product_listing"!=e.type||(r(`data-${e.name}={${e.name}}`),r(`data-${e.name}_tag={${e.name}_tag}`),r(`data-${e.name}_cat={${e.name}_cat}`),r(`{{title_${e.name}}}`),r(`{{description_${e.name}}}`),r(`{{thumbnail_${e.name}}}`),r(`{{category_${e.name}}}`),r(`{{cat_name_${e.name}}}`),r(`{{cat_url_${e.name}}}`),r(`{{tag_${e.name}}}`),r(`{{tag_name_${e.name}}}`),r(`{{tag_url_${e.name}}}`),r(`{{post_date_${e.name}}}`),r(`{{post_link_${e.name}}}`),r(`{{auth_name_${e.name}}}`),r(`{{auth_email_${e.name}}}`),r(`{{auth_url_${e.name}}}`),r(`{{auth_id_${e.name}}}`),r(`{{auth_profile_${e.name}}}`)),"taxonomy"==e.type&&(r(`data-${e.name}={${e.name}}`),r(`{{title_${e.name}}}`),r(`{{description_${e.name}}}`),r(`{{taxo_image_${e.name}}}`),r(`{{taxo_slug_${e.name}}}`),r(`{{taxo_link_${e.name}}}`)),"url"==e.type&&(r(`{{${e.name}-url}}`),r(`{{${e.name}-is_external}}`),r(`{{${e.name}-nofollow}}`)),"headingtags"==e.type&&r(e.name,"div"),r(`{{${e.name}}}`)};if(a.rnp){var o=i[0][a.array_type][a.sec_id].inner_sec[a.compo_id].fields[a.rnp];l(o),"repeater"!=o.type&&"popover"!=o.type&&"cpt"!=o.type||o.fields.map((e=>{l(e)}))}else o=i[0][a.array_type][a.sec_id].inner_sec[a.compo_id],l(o),"repeater"!=o.type&&"popover"!=o.type||o.fields.map((e=>{l(e)}));a.rnp?(i[0][a.array_type][a.sec_id].inner_sec[a.compo_id].fields.splice(a.rnp,1),t.addToCarthandler(i)):(i[0][a.array_type][a.sec_id].inner_sec.splice(a.compo_id,1),t.addToCarthandler(i)),t.addToActiveController("")},b=async e=>{let a=e.target.closest(".wb-main-component").dataset,i=[...t.cardData.CardItems.cardData],s=w();if(a.rnp)if("false"!=a.rnp2){let e=i[0][a.array_type][a.sec_id].inner_sec[a.compo_id].fields[a.rnp].fields[a.rnp2],t=Object.assign({},i[0][a.array_type][a.sec_id].inner_sec[a.compo_id].fields[a.rnp].fields[a.rnp2],{name:e+"_"+s}),n=Number(a.rnp2);i[0][a.array_type][a.sec_id].inner_sec[a.compo_id].fields[a.rnp].fields.splice(n+1,0,t)}else{let e=i[0][a.array_type][a.sec_id].inner_sec[a.compo_id].fields[a.rnp].type,t=Object.assign({},i[0][a.array_type][a.sec_id].inner_sec[a.compo_id].fields[a.rnp],{name:e+"_"+s}),n=Number(a.rnp);i[0][a.array_type][a.sec_id].inner_sec[a.compo_id].fields.splice(n+1,0,t)}else{let e=i[0][a.array_type][a.sec_id].inner_sec[a.compo_id].type;if("repeater"==e||"popover"==e||"normalhover"==e){let t=i[0][a.array_type][a.sec_id].inner_sec[a.compo_id],n=Object.assign({},t,{name:e+"_"+s}),r=[];t.fields.map((e=>{let t=e.type,a=Object.assign({},e,{name:t+"_"+w()});r.push(a)}));let l=Object.assign({},n,{fields:r}),o=Number(a.compo_id);i[0][a.array_type][a.sec_id].inner_sec.splice(o+1,0,l)}else{let e=i[0][a.array_type][a.sec_id].inner_sec[a.compo_id].type,t=Object.assign({},i[0][a.array_type][a.sec_id].inner_sec[a.compo_id],{name:e+"_"+s}),n=Number(a.compo_id);i[0][a.array_type][a.sec_id].inner_sec.splice(n+1,0,t)}}t.addToCarthandler(i)},x=(e,a)=>{document.querySelector(".wkit-expand-icon-box-border.wkit-wb-selected")&&document.querySelector(".wkit-expand-icon-box-border").click();let i=e.target.closest(".wb-main-component");if(!e.target.closest(".duplicate-btn")&&!e.target.closest(".remove-btn"))if(i&&i.dataset.compo_id&&i.dataset.sec_id&&i.dataset.array_type&&i.dataset.rnp){let e={compo_id:i.dataset.compo_id,sec_id:i.dataset.sec_id,array_type:i.dataset.array_type,repeater:i.dataset.rnp};a&&(e=Object.assign({},e,{cpt_controller:!0})),"preview"!==t.cardData.CardItems.cardData[0][i.dataset.array_type][i.dataset.sec_id].inner_sec[i.dataset.compo_id].fields[i.dataset.rnp].type&&t.addToActiveController(e)}else if(i&&i.dataset.compo_id&&i.dataset.sec_id&&i.dataset.array_type){let e={compo_id:i.dataset.compo_id,sec_id:i.dataset.sec_id,array_type:i.dataset.array_type};t.addToActiveController(e)}},v=()=>{if(t.controller&&t.controller.controller){let e=t.controller.controller;if(t?.cardData?.CardItems?.cardData?.[0]?.[e?.array_type]?.[e?.sec_id]?.inner_sec?.[e?.compo_id]?.fields?.[e?.repeater]?.name)return t.cardData.CardItems.cardData[0][e.array_type][e.sec_id].inner_sec[e.compo_id].fields[e.repeater].name;if(t?.cardData?.CardItems?.cardData?.[0]?.[e?.array_type]?.[e?.sec_id]?.inner_sec?.[e?.compo_id]?.name)return t.cardData.CardItems.cardData[0][e.array_type][e.sec_id].inner_sec[e.compo_id].name}},y=e=>{let t=e.target.closest(".wkit-wb-custom-dropDown"),a=t.querySelector(".wkit-wb-custom-dropDown-content")?t.querySelector(".wkit-wb-custom-dropDown-content"):"";a&&(Object.values(a.classList).includes("wkit-wb-show")?a.classList.remove("wkit-wb-show"):a.classList.add("wkit-wb-show"))},j=e=>(0,g.jsx)("div",{className:"wb-hover-component",onClick:e=>{N(e)},children:!e?.only_edit&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsxs)("div",{className:"wb-sec-edit duplicate-btn",onClick:e=>{b(e)},children:[(0,g.jsx)("i",{className:"wdkit-i-copy"}),(0,a.__)("Duplicate","wdesignkit")]}),(0,g.jsxs)("div",{className:"wb-sec-edit remove-btn",onClick:e=>{k(e)},children:[(0,g.jsx)("i",{className:"wdkit-i-delete"}),(0,a.__)("Delete","wdesignkit")]})]})}),N=e=>{let t=e.target.closest(".wdkit-three-dot-cover")?.querySelector(".wdkit-three-dot-cover-content");t&&(t.classList.contains("wdkit-show-controller-actions")?t.classList.remove("wdkit-show-controller-actions"):t.classList.add("wdkit-show-controller-actions"))},$=()=>!t?.only_edit;if("text"==t.type)return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"wb-drop",onDragOver:e=>{e.preventDefault()},onDragEnter:e=>{e.target.classList.add("wb_drag-over")},onDrop:e=>{e.target.classList.remove("wb_drag-over")},onDragLeave:e=>{e.target.classList.remove("wb_drag-over")}}),(0,g.jsxs)("div",{className:"wb-append-content wb-main-component "+(v()===t.name?"wkit-wb-selected":""),draggable:m,onDragEnd:()=>{u(!1)},style:{marginTop:"before"==t.separator?"15px":"",marginBottom:"after"==t.separator?"15px":""},"data-compo_id":t.compo_index,"data-sec_id":t.sec_index,"data-array_type":t.array_type,"data-rnp":t.rnp_id,"data-rnp2":t.rnp2_id,"data-nha":t.nha_type,"data-editable":t?.only_edit,onClick:e=>{x(e)},children:[(0,g.jsx)("div",{className:"wb-draggable-icon",onMouseDown:()=>{u(!0)},onMouseUp:()=>{u(!0)},children:(0,g.jsx)("span",{className:"tp-sec-edit",children:(0,g.jsx)("i",{className:"wdkit-i-wb-move"})})}),(0,g.jsxs)("div",{className:"wb-append-input-field",style:{flexDirection:1==t.lableBlock?"column":"row"},children:[(0,g.jsx)("div",{className:"wb-append-inner",children:(0,g.jsx)("input",{style:{display:1==t.showLable?"":"none"},className:"wb-append-label",value:t.lable,onChange:e=>{_(e,"lable")}})}),(0,g.jsxs)("div",{className:"wdkit-wb-control-edit-cover",children:[(0,g.jsx)("div",{className:"wb-right-append",children:(0,g.jsx)("input",{className:"wb-append-inp",value:t.defaultValue,type:"text",placeholder:t.placeHolder,onChange:e=>{_(e,"defaultValue")}})}),t&&t.description.length>=1&&(0,g.jsx)("p",{className:"wb-append-dec",children:t.description})]})]}),$()&&(0,g.jsx)("div",{className:"wdkit-wb-cont-opt-cover",children:(0,g.jsxs)("div",{className:"wdkit-three-dot-cover",children:[(0,g.jsx)("i",{className:"wdkit-i-wb-vertical-menu",onClick:e=>{N(e)}}),(0,g.jsx)("div",{className:"wdkit-three-dot-cover-content",children:(0,g.jsx)(j,{only_edit:!!t?.only_edit})})]})})]})]});if("preview"==t.type)return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"wb-drop",onDragOver:e=>{e.preventDefault()},onDragEnter:e=>{e.target.classList.add("wb_drag-over")},onDrop:e=>{e.target.classList.remove("wb_drag-over")},onDragLeave:e=>{e.target.classList.remove("wb_drag-over")}}),(0,g.jsxs)("div",{className:"wb-append-content wb-main-component",draggable:m,onDragEnd:()=>{u(!1)},style:{marginTop:"before"==t.separator?"15px":"",marginBottom:"after"==t.separator?"15px":""},"data-compo_id":t.compo_index,"data-sec_id":t.sec_index,"data-array_type":t.array_type,"data-rnp":t.rnp_id,"data-rnp2":t.rnp2_id,"data-nha":t.nha_type,"data-editable":t?.only_edit,children:[(0,g.jsx)("div",{className:"wb-draggable-icon",onMouseDown:()=>{u(!0)},onMouseUp:()=>{u(!0)},children:(0,g.jsx)("span",{className:"tp-sec-edit",children:(0,g.jsx)("i",{className:"wdkit-i-wb-move"})})}),(0,g.jsxs)("div",{className:"wb-append-input-field",style:{flexDirection:1==t.lableBlock?"column":"row"},children:[(0,g.jsx)("div",{className:"wb-append-inner",children:(0,g.jsxs)("div",{className:"wkit-wb-preview-ct",children:[(0,g.jsx)("p",{className:"wkit-wb-preview-ct-text",children:(0,a.__)("Update changes to page","wdesignkit")}),(0,g.jsx)("span",{className:"wkit-wb-preview-ct-btn",children:(0,a.__)("Apply","wdesignkit")})]})}),$()&&(0,g.jsx)("div",{className:"wdkit-wb-cont-opt-cover",children:(0,g.jsxs)("div",{className:"wdkit-three-dot-cover",children:[(0,g.jsx)("i",{className:"wdkit-i-wb-vertical-menu",onClick:e=>{N(e)}}),(0,g.jsx)("div",{className:"wdkit-three-dot-cover-content",children:(0,g.jsx)(j,{hide_edit:!0})})]})})]})]})]});if("number"==t.type)return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"wb-drop",onDragEnter:e=>{e.target.classList.add("wb_drag-over")},onDragLeave:e=>{e.target.classList.remove("wb_drag-over")},onDragOver:e=>{e.preventDefault()},onDrop:e=>{e.target.classList.remove("wb_drag-over")}}),(0,g.jsxs)("div",{className:"wb-append-content wb-main-component "+(v()==t.name?"wkit-wb-selected":""),draggable:m,onDragEnd:()=>{u(!1)},style:{marginTop:"before"==t.separator?"15px":"",marginBottom:"after"==t.separator?"15px":""},"data-compo_id":t.compo_index,"data-sec_id":t.sec_index,"data-array_type":t.array_type,"data-rnp":t.rnp_id,"data-rnp2":t.rnp2_id,"data-nha":t.nha_type,"data-editable":t?.only_edit,onClick:e=>{x(e)},children:[(0,g.jsx)("div",{className:"wb-draggable-icon",onMouseDown:()=>{u(!0)},onMouseUp:()=>{u(!0)},children:(0,g.jsx)("i",{className:"wdkit-i-wb-move"})}),(0,g.jsxs)("div",{className:"wb-append-input-field",style:{flexDirection:1==t.lableBlock?"column":"row"},children:[(0,g.jsx)("div",{className:"wb-append-inner",children:(0,g.jsx)("input",{style:{display:1==t.showLable?"":"none"},className:"wb-append-label",value:t.lable,onChange:e=>{_(e,"lable")}})}),(0,g.jsx)("div",{className:"wb-right-append",children:(0,g.jsx)("input",{className:"wb-append-inp",value:t.defaultValue,type:"number",placeholder:t.placeHolder,min:t.number_setting.min,max:t.number_setting.max,step:t.number_setting.step,onChange:e=>{_(e,"defaultValue")}})})]}),$()&&(0,g.jsx)("div",{className:"wdkit-wb-cont-opt-cover",children:(0,g.jsxs)("div",{className:"wdkit-three-dot-cover",children:[(0,g.jsx)("i",{className:"wdkit-i-wb-vertical-menu",onClick:e=>{N(e)}}),(0,g.jsx)("div",{className:"wdkit-three-dot-cover-content",children:(0,g.jsx)(j,{only_edit:!!t?.only_edit})})]})}),t&&t.description.length>=1&&(0,g.jsx)("p",{className:"wb-append-dec",children:t.description})]})]});if("wysiwyg"==t.type)return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"wb-drop",onDragOver:e=>{e.preventDefault()},onDragEnter:e=>{e.target.classList.add("wb_drag-over")},onDrop:e=>{e.target.classList.remove("wb_drag-over")},onDragLeave:e=>{e.target.classList.remove("wb_drag-over")}}),(0,g.jsxs)("div",{className:"wb-textarea wb-main-component "+(v()==t.name?"wkit-wb-selected":""),draggable:m,onDragEnd:()=>{u(!1)},style:{marginTop:"before"==t.separator?"15px":"",marginBottom:"after"==t.separator?"15px":""},"data-compo_id":t.compo_index,"data-sec_id":t.sec_index,"data-array_type":t.array_type,"data-rnp":t.rnp_id,"data-rnp2":t.rnp2_id,"data-nha":t.nha_type,"data-editable":t?.only_edit,onClick:e=>{x(e)},children:[(0,g.jsx)("div",{className:"wb-draggable-icon",onMouseDown:()=>{u(!0)},onMouseUp:()=>{u(!0)},children:(0,g.jsx)("span",{className:"tp-sec-edit",children:(0,g.jsx)("i",{className:"wdkit-i-wb-move"})})}),(0,g.jsxs)("div",{className:"wb-textarea-content",style:{flexDirection:1==t.lableBlock?"column":"row"},children:[(0,g.jsx)("div",{className:"wb-append-inner",style:{display:1==t.lableBlock?"block":"flex"},children:(0,g.jsx)("input",{style:{display:1==t.showLable?"":"none"},className:"wb-append-label",value:t.lable,onChange:e=>{_(e,"lable")}})}),(0,g.jsx)("textarea",{className:"wb-textarea-inp",value:t.defaultValue,placeholder:t.placeHolder,onChange:e=>{_(e,"defaultValue")}})]}),$()&&(0,g.jsx)("div",{className:"wdkit-wb-cont-opt-cover",children:(0,g.jsxs)("div",{className:"wdkit-three-dot-cover",children:[(0,g.jsx)("i",{className:"wdkit-i-wb-vertical-menu",onClick:e=>{N(e)}}),(0,g.jsx)("div",{className:"wdkit-three-dot-cover-content",children:(0,g.jsx)(j,{only_edit:!!t?.only_edit})})]})}),t&&t.description.length>=1&&(0,g.jsx)("p",{className:"wb-append-dec",children:t.description})]})]});if("code"==t.type)return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"wb-drop",onDragOver:e=>{e.preventDefault()},onDragEnter:e=>{e.target.classList.add("wb_drag-over")},onDrop:e=>{e.target.classList.remove("wb_drag-over")},onDragLeave:e=>{e.target.classList.remove("wb_drag-over")}}),(0,g.jsxs)("div",{className:"wb-textarea wb-main-component "+(v()==t.name?"wkit-wb-selected":""),draggable:m,onDragEnd:()=>{u(!1)},style:{marginTop:"before"==t.separator?"15px":"",marginBottom:"after"==t.separator?"15px":""},"data-compo_id":t.compo_index,"data-sec_id":t.sec_index,"data-array_type":t.array_type,"data-rnp":t.rnp_id,"data-rnp2":t.rnp2_id,"data-nha":t.nha_type,"data-editable":t?.only_edit,onClick:e=>{x(e)},children:[(0,g.jsx)("div",{className:"wb-draggable-icon",onMouseDown:()=>{u(!0)},onMouseUp:()=>{u(!0)},children:(0,g.jsx)("span",{className:"tp-sec-edit",children:(0,g.jsx)("i",{className:"wdkit-i-wb-move"})})}),(0,g.jsxs)("div",{className:"wb-textarea-content",style:{flexDirection:1==t.lableBlock?"column":"row"},children:[(0,g.jsx)("div",{className:"wb-append-inner",style:{display:1==t.lableBlock?"block":"flex"},children:(0,g.jsx)("input",{style:{display:1==t.showLable?"":"none"},className:"wb-append-label",value:t.lable,onChange:e=>{_(e,"lable")}})}),(0,g.jsx)("textarea",{className:"wb-textarea-inp",rows:t.rows,value:t.defaultValue,placeholder:t.placeHolder,onChange:e=>{_(e,"defaultValue")}}),$()&&(0,g.jsxs)("div",{className:"wdkit-three-dot-cover",children:[(0,g.jsx)("i",{className:"wdkit-i-wb-vertical-menu",onClick:e=>{N(e)}}),(0,g.jsx)("div",{className:"wdkit-three-dot-cover-content",children:(0,g.jsx)(j,{only_edit:!!t?.only_edit})})]})]}),t&&t.description.length>=1&&(0,g.jsx)("p",{className:"wb-append-dec",children:t.description})]})]});if("choose"==t.type){let e=["eicon-text-align-left","eicon-text-align-right","eicon-text-align-center","eicon-text-align-justify","eicon-arrow-up","eicon-arrow-down","eicon-arrow-right","eicon-arrow-left"];return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"wb-drop",onDragOver:e=>{e.preventDefault()},onDragEnter:e=>{e.target.classList.add("wb_drag-over")},onDrop:e=>{e.target.classList.remove("wb_drag-over")},onDragLeave:e=>{e.target.classList.remove("wb_drag-over")}}),(0,g.jsxs)("div",{className:"wb-alignment wb-main-component wb-main-component "+(v()==t.name?"wkit-wb-selected":""),draggable:m,onDragEnd:()=>{u(!1)},style:{marginTop:"before"==t.separator?"15px":"",marginBottom:"after"==t.separator?"15px":""},"data-compo_id":t.compo_index,"data-sec_id":t.sec_index,"data-array_type":t.array_type,"data-rnp":t.rnp_id,"data-rnp2":t.rnp2_id,"data-nha":t.nha_type,"data-editable":t?.only_edit,onClick:e=>{x(e)},children:[(0,g.jsx)("div",{className:"wb-draggable-icon",onMouseDown:()=>{u(!0)},onMouseUp:()=>{u(!0)},children:(0,g.jsx)("span",{className:"tp-sec-edit",children:(0,g.jsx)("i",{className:"wdkit-i-wb-move"})})}),(0,g.jsxs)("div",{className:"wb-alignment-header",children:[(0,g.jsxs)("div",{className:"wb-append-inner",style:{flexDirection:1==t.lableBlock?"column":"row"},children:[(0,g.jsx)("input",{style:{display:1==t.showLable?"":"none"},className:"wb-append-label",value:t.lable,onChange:e=>{_(e,"lable")}}),(0,g.jsx)("div",{className:"wb-icons",style:{justifyContent:1==t.lableBlock?"flex-start":"flex-end"},children:t.align_option&&t.align_option.map(((a,i)=>(0,g.jsx)(Ui,{children:(0,g.jsxs)("div",{className:"wkit-wb-alignIcon-content",children:[a.align_lable&&(0,g.jsx)("div",{className:"wkit-wb-align-icon-lable",children:a.align_lable}),e.includes(a.align_icon)?a.align_value==t.align_defaultValue?(0,g.jsx)("img",{className:"wkit-wb-align-icon wb-icon-selected",src:`${Ji}assets/images/wb-svg/${a.align_icon}.svg`,onClick:e=>{_(e,"align_defaultValue",a.align_value)}}):(0,g.jsx)("img",{className:"wkit-wb-align-icon",src:`${Ji}assets/images/wb-svg/${a.align_icon}.svg`,onClick:e=>{_(e,"align_defaultValue",a.align_value)}}):a.align_value==t.align_defaultValue?(0,g.jsx)("img",{className:"wkit-wb-align-icon wb-icon-selected",src:`${Ji}assets/images/wb-svg/info-white.svg`,onClick:e=>{_(e,"align_defaultValue",a.align_value)}}):(0,g.jsx)("img",{className:"wkit-wb-align-icon",src:`${Ji}assets/images/wb-svg/info.svg`,onClick:e=>{_(e,"align_defaultValue",a.align_value)}})]})},i)))})]}),$()&&(0,g.jsx)("div",{className:"wdkit-wb-cont-opt-cover",children:(0,g.jsxs)("div",{className:"wdkit-three-dot-cover",children:[(0,g.jsx)("i",{className:"wdkit-i-wb-vertical-menu",onClick:e=>{N(e)}}),(0,g.jsx)("div",{className:"wdkit-three-dot-cover-content",children:(0,g.jsx)(j,{only_edit:!!t?.only_edit})})]})})]}),t&&t.description.length>=1&&(0,g.jsx)("p",{className:"wb-append-dec",children:t.description})]})]})}if("font"==t.type)return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"wb-drop",onDragOver:e=>{e.preventDefault()},onDragEnter:e=>{e.target.classList.add("wb_drag-over")},onDrop:e=>{e.target.classList.remove("wb_drag-over")},onDragLeave:e=>{e.target.classList.remove("wb_drag-over")}}),(0,g.jsxs)("div",{className:"wb-select wb-main-component "+(v()==t.name?"wkit-wb-selected":""),draggable:m,onDragEnd:()=>{u(!1)},style:{marginTop:"before"==t.separator?"15px":"",marginBottom:"after"==t.separator?"15px":""},"data-compo_id":t.compo_index,"data-sec_id":t.sec_index,"data-array_type":t.array_type,"data-rnp":t.rnp_id,"data-rnp2":t.rnp2_id,"data-nha":t.nha_type,"data-editable":t?.only_edit,onClick:e=>{x(e)},children:[(0,g.jsx)("div",{className:"wb-draggable-icon",onMouseDown:()=>{u(!0)},onMouseUp:()=>{u(!0)},children:(0,g.jsx)("span",{className:"tp-sec-edit",children:(0,g.jsx)("i",{className:"wdkit-i-wb-move"})})}),(0,g.jsxs)("div",{className:"wb-select-content",style:{flexDirection:1==t.lableBlock?"column":"row"},children:[(0,g.jsx)("div",{className:"wb-append-inner",children:(0,g.jsx)("input",{className:"wb-append-label",style:{display:1==t.showLable?"":"none"},value:t.lable,onChange:e=>{_(e,"lable")}})}),(0,g.jsxs)("select",{className:"select-dropdown",children:[(0,g.jsx)("option",{children:(0,a.__)("font-1","wdesignkit")}),(0,g.jsx)("option",{children:(0,a.__)("font-2","wdesignkit")}),(0,g.jsx)("option",{children:(0,a.__)("font-3","wdesignkit")})]}),$()&&(0,g.jsxs)("div",{className:"wdkit-three-dot-cover",children:[(0,g.jsx)("i",{className:"wdkit-i-wb-vertical-menu",onClick:e=>{N(e)}}),(0,g.jsx)("div",{className:"wdkit-three-dot-cover-content",children:(0,g.jsx)(j,{only_edit:!!t?.only_edit})})]})]})]})]});if("datetime"==t.type)return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"wb-drop",onDragOver:e=>{e.preventDefault()},onDragEnter:e=>{e.target.classList.add("wb_drag-over")},onDrop:e=>{e.target.classList.remove("wb_drag-over")},onDragLeave:e=>{e.target.classList.remove("wb_drag-over")}}),(0,g.jsxs)("div",{className:"wb-date-time wb-main-component "+(v()==t.name?"wkit-wb-selected":""),draggable:m,onDragEnd:()=>{u(!1)},style:{marginTop:"before"==t.separator?"15px":"",marginBottom:"after"==t.separator?"15px":""},"data-compo_id":t.compo_index,"data-sec_id":t.sec_index,"data-array_type":t.array_type,"data-rnp":t.rnp_id,"data-rnp2":t.rnp2_id,"data-nha":t.nha_type,"data-editable":t?.only_edit,onClick:e=>{x(e)},children:[(0,g.jsx)("div",{className:"wb-draggable-icon",onMouseDown:()=>{u(!0)},onMouseUp:()=>{u(!0)},children:(0,g.jsx)("span",{className:"tp-sec-edit",children:(0,g.jsx)("i",{className:"wdkit-i-wb-move"})})}),(0,g.jsxs)("div",{className:"wb-append-input-field",style:{flexDirection:1==t.lableBlock?"column":"row"},children:[(0,g.jsx)("div",{className:"wb-append-inner",children:(0,g.jsx)("input",{style:{display:1==t.showLable?"":"none"},className:"wb-append-label",value:t.lable,onChange:e=>{_(e,"lable")}})}),(0,g.jsx)("div",{className:"wb-right-append",style:{width:1==t.lableBlock?"100%":"50%"},children:(0,g.jsx)("input",{className:"wb-append-inp wb-date-time-w",value:t.defaultValue,type:"datetime-local",placeholder:t.placeHolder,onChange:e=>{_(e,"defaultValue")}})})]}),t&&t.description.length>=1&&(0,g.jsx)("p",{className:"wb-append-dec",children:t.description}),$()&&(0,g.jsx)("div",{className:"wdkit-wb-cont-opt-cover",children:(0,g.jsxs)("div",{className:"wdkit-three-dot-cover",children:[(0,g.jsx)("i",{className:"wdkit-i-wb-vertical-menu",onClick:e=>{N(e)}}),(0,g.jsx)("div",{className:"wdkit-three-dot-cover-content",children:(0,g.jsx)(j,{only_edit:!!t?.only_edit})})]})})]})]});if("gallery"==t.type)return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"wb-drop",onDragOver:e=>{e.preventDefault()},onDragEnter:e=>{e.target.classList.add("wb_drag-over")},onDrop:e=>{e.target.classList.remove("wb_drag-over")},onDragLeave:e=>{e.target.classList.remove("wb_drag-over")}}),(0,g.jsxs)("div",{className:"wb-gallery wb-main-component "+(v()==t.name?"wkit-wb-selected":""),draggable:m,onDragEnd:()=>{u(!1)},style:{marginTop:"before"==t.separator?"15px":"",marginBottom:"after"==t.separator?"15px":""},"data-compo_id":t.compo_index,"data-sec_id":t.sec_index,"data-array_type":t.array_type,"data-rnp":t.rnp_id,"data-rnp2":t.rnp2_id,"data-nha":t.nha_type,"data-editable":t?.only_edit,onClick:e=>{x(e)},children:[(0,g.jsx)("div",{className:"wb-draggable-icon",onMouseDown:()=>{u(!0)},onMouseUp:()=>{u(!0)},children:(0,g.jsx)("span",{className:"tp-sec-edit",children:(0,g.jsx)("i",{className:"wdkit-i-wb-move"})})}),(0,g.jsxs)("div",{className:"wb-gallery-content",style:{flexDirection:1==t.lableBlock?"column":"row"},children:[(0,g.jsx)("div",{className:"wb-append-inner",style:{width:"60%"},children:(0,g.jsx)("input",{className:"wb-append-label",style:{display:1==t.showLable?"block":"none"},value:t.lable,onChange:e=>{_(e,"lable")}})}),(0,g.jsxs)("div",{className:"wb-gallery-image",children:[(0,g.jsx)("div",{className:"wb-gallery-image-header",children:(0,g.jsx)("label",{children:(0,a.__)("No Images Selected","wdesignkit")})}),(0,g.jsx)("div",{className:"wb-gallery-image-content",children:(0,g.jsx)("div",{className:"wb-gallery-image-backgorund",children:(0,g.jsx)("img",{src:Ji+"assets/images/wb-svg/add-section-icon.svg"})})})]})]}),t&&t.description.length>=1&&(0,g.jsx)("p",{className:"wb-append-dec",children:t.description}),$()&&(0,g.jsx)("div",{className:"wdkit-wb-cont-opt-cover",children:(0,g.jsxs)("div",{className:"wdkit-three-dot-cover",children:[(0,g.jsx)("i",{className:"wdkit-i-wb-vertical-menu",onClick:e=>{N(e)}}),(0,g.jsx)("div",{className:"wdkit-three-dot-cover-content",children:(0,g.jsx)(j,{only_edit:!!t?.only_edit})})]})})]})]});if("background"==t.type)return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"wb-drop",onDragOver:e=>{e.preventDefault()},onDragEnter:e=>{e.target.classList.add("wb_drag-over")},onDrop:e=>{e.target.classList.remove("wb_drag-over")},onDragLeave:e=>{e.target.classList.remove("wb_drag-over")}}),(0,g.jsxs)("div",{className:"wb-background wb-main-component "+(v()==t.name?"wkit-wb-selected":""),draggable:m,onDragEnd:()=>{u(!1)},style:{marginTop:"before"==t.separator?"15px":"",marginBottom:"after"==t.separator?"15px":""},"data-compo_id":t.compo_index,"data-sec_id":t.sec_index,"data-array_type":t.array_type,"data-rnp":t.rnp_id,"data-rnp2":t.rnp2_id,"data-nha":t.nha_type,"data-editable":t?.only_edit,onClick:e=>{x(e)},children:[(0,g.jsx)("div",{className:"wb-draggable-icon",onMouseDown:()=>{u(!0)},onMouseUp:()=>{u(!0)},children:(0,g.jsx)("span",{className:"tp-sec-edit",children:(0,g.jsx)("i",{className:"wdkit-i-wb-move"})})}),(0,g.jsxs)("div",{className:"wb-background-header",children:[(0,g.jsx)("div",{className:"wb-append-inner",children:(0,g.jsx)("input",{className:"wb-append-label",value:t.lable,onChange:e=>{_(e,"lable")}})}),(0,g.jsxs)("div",{className:"wb-icons",children:[(0,g.jsx)("span",{style:{display:-1==t.types.indexOf('"classic"')?"none":"flex"},className:"wb-background-icon left",children:(0,g.jsx)("i",{className:"wdkit-i-wb-color-picker"})}),(0,g.jsx)("span",{style:{display:-1==t.types.indexOf('"gradient"')?"none":"flex"},className:"wb-background-icon",children:(0,g.jsx)("i",{className:"wdkit-i-wbc-background-1"})})]})]}),$()&&(0,g.jsx)("div",{className:"wdkit-wb-cont-opt-cover",children:(0,g.jsxs)("div",{className:"wdkit-three-dot-cover",children:[(0,g.jsx)("i",{className:"wdkit-i-wb-vertical-menu",onClick:e=>{N(e)}}),(0,g.jsx)("div",{className:"wdkit-three-dot-cover-content",children:(0,g.jsx)(j,{only_edit:!!t?.only_edit})})]})})]})]});if("border"==t.type)return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"wb-drop",onDragOver:e=>{e.preventDefault()},onDragEnter:e=>{e.target.classList.add("wb_drag-over")},onDrop:e=>{e.target.classList.remove("wb_drag-over")},onDragLeave:e=>{e.target.classList.remove("wb_drag-over")}}),(0,g.jsxs)("div",{className:"wb-border wb-main-component "+(v()==t.name?"wkit-wb-selected":""),draggable:m,onDragEnd:()=>{u(!1)},style:{marginTop:"before"==t.separator?"15px":"",marginBottom:"after"==t.separator?"15px":""},"data-compo_id":t.compo_index,"data-sec_id":t.sec_index,"data-array_type":t.array_type,"data-rnp":t.rnp_id,"data-rnp2":t.rnp2_id,"data-nha":t.nha_type,"data-editable":t?.only_edit,onClick:e=>{x(e)},children:[(0,g.jsx)("div",{className:"wb-draggable-icon",onMouseDown:()=>{u(!0)},onMouseUp:()=>{u(!0)},children:(0,g.jsx)("span",{className:"tp-sec-edit",children:(0,g.jsx)("i",{className:"wdkit-i-wb-move"})})}),(0,g.jsxs)("div",{className:"wb-border-header",children:[(0,g.jsx)("div",{className:"wb-append-inner",children:(0,g.jsx)("input",{className:"wb-append-label",value:t.lable,onChange:e=>{_(e,"lable")}})}),(0,g.jsxs)("div",{className:"wb-icons",children:[(0,g.jsx)("span",{className:"wb-border-icon left",children:(0,g.jsx)("i",{className:"wdkit-i-wbc-solid"})}),(0,g.jsx)("span",{className:"wb-border-icon",children:(0,g.jsx)("i",{className:"wdkit-i-wbc-dotted-border"})}),(0,g.jsx)("span",{className:"wb-border-icon",children:(0,g.jsx)("i",{className:"wdkit-i-wbc-dash"})}),(0,g.jsx)("span",{className:"wb-border-icon right",children:(0,g.jsx)("i",{className:"wdkit-i-wbc-double-border"})})]})]}),$()&&(0,g.jsx)("div",{className:"wdkit-wb-cont-opt-cover",children:(0,g.jsxs)("div",{className:"wdkit-three-dot-cover",children:[(0,g.jsx)("i",{className:"wdkit-i-wb-vertical-menu",onClick:e=>{N(e)}}),(0,g.jsx)("div",{className:"wdkit-three-dot-cover-content",children:(0,g.jsx)(j,{only_edit:!!t?.only_edit})})]})})]})]});if("boxshadow"==t.type)return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"wb-drop",onDragOver:e=>{e.preventDefault()},onDragEnter:e=>{e.target.classList.add("wb_drag-over")},onDrop:e=>{e.target.classList.remove("wb_drag-over")},onDragLeave:e=>{e.target.classList.remove("wb_drag-over")}}),(0,g.jsxs)("div",{className:"wb-box-shadow wb-main-component "+(v()==t.name?"wkit-wb-selected":""),draggable:m,onDragEnd:()=>{u(!1)},"data-compo_id":t.compo_index,"data-sec_id":t.sec_index,"data-array_type":t.array_type,"data-rnp":t.rnp_id,"data-rnp2":t.rnp2_id,"data-nha":t.nha_type,"data-editable":t?.only_edit,onClick:e=>{x(e)},children:[(0,g.jsx)("div",{className:"wb-draggable-icon",onMouseDown:()=>{u(!0)},onMouseUp:()=>{u(!0)},children:(0,g.jsx)("span",{className:"tp-sec-edit",children:(0,g.jsx)("i",{className:"wdkit-i-wb-move"})})}),(0,g.jsxs)("div",{className:"wb-append-input-field",style:{flexDirection:"column"},children:[(0,g.jsx)("div",{className:"wb-box-shadow-header",children:(0,g.jsx)("input",{className:"wb-append-label",value:t.lable,onChange:e=>{_(e,"lable")}})}),(0,g.jsxs)("div",{className:"wb-box-shadow-content",children:[(0,g.jsxs)("div",{className:"content-1",children:[(0,g.jsx)("span",{className:"content-text",children:(0,a.__)("Color","wdesignkit")}),(0,g.jsx)("img",{className:"wb-color-icon",src:Ji+"assets/images/wb-svg/box.svg"})]}),(0,g.jsxs)("div",{className:"content-2",children:[(0,g.jsx)("span",{className:"content-text",children:(0,a.__)("X","wdesignkit")}),(0,g.jsx)("input",{className:"shadow-inp",type:"number"})]}),(0,g.jsxs)("div",{className:"content-3",children:[(0,g.jsx)("span",{className:"content-text",children:(0,a.__)("Y","wdesignkit")}),(0,g.jsx)("input",{className:"shadow-inp",type:"number"})]}),(0,g.jsxs)("div",{className:"content-4",children:[(0,g.jsx)("span",{className:"content-text",children:(0,a.__)("Blur","wdesignkit")}),(0,g.jsx)("input",{className:"shadow-inp",type:"number"})]}),(0,g.jsxs)("div",{className:"content-5",children:[(0,g.jsx)("span",{className:"content-text",children:(0,a.__)("Spread","wdesignkit")}),(0,g.jsx)("input",{className:"shadow-inp",type:"number"})]})]})]}),$()&&(0,g.jsx)("div",{className:"wdkit-wb-cont-opt-cover",children:(0,g.jsxs)("div",{className:"wdkit-three-dot-cover",children:[(0,g.jsx)("i",{className:"wdkit-i-wb-vertical-menu",onClick:e=>{N(e)}}),(0,g.jsx)("div",{className:"wdkit-three-dot-cover-content",children:(0,g.jsx)(j,{only_edit:!!t?.only_edit})})]})})]})]});if("textshadow"==t.type)return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"wb-drop",onDragOver:e=>{e.preventDefault()},onDragEnter:e=>{e.target.classList.add("wb_drag-over")},onDrop:e=>{e.target.classList.remove("wb_drag-over")},onDragLeave:e=>{e.target.classList.remove("wb_drag-over")}}),(0,g.jsxs)("div",{className:"wb-box-shadow wb-main-component "+(v()==t.name?"wkit-wb-selected":""),draggable:m,onDragEnd:()=>{u(!1)},"data-compo_id":t.compo_index,"data-sec_id":t.sec_index,"data-array_type":t.array_type,"data-rnp":t.rnp_id,"data-rnp2":t.rnp2_id,"data-nha":t.nha_type,"data-editable":t?.only_edit,onClick:e=>{x(e)},children:[(0,g.jsx)("div",{className:"wb-draggable-icon",onMouseDown:()=>{u(!0)},onMouseUp:()=>{u(!0)},children:(0,g.jsx)("span",{className:"tp-sec-edit",children:(0,g.jsx)("i",{className:"wdkit-i-wb-move"})})}),(0,g.jsxs)("div",{className:"wb-append-input-field",style:{flexDirection:"column"},children:[(0,g.jsx)("div",{className:"wb-box-shadow-header",children:(0,g.jsx)("input",{className:"wb-append-label",value:t.lable,onChange:e=>{_(e,"lable")}})}),(0,g.jsxs)("div",{className:"wb-box-shadow-content",children:[(0,g.jsxs)("div",{className:"content-1",children:[(0,g.jsx)("span",{className:"content-text",children:(0,a.__)("Color","wdesignkit")}),(0,g.jsx)("img",{className:"wb-color-icon",src:Ji+"assets/images/wb-svg/box.svg"})]}),(0,g.jsxs)("div",{className:"content-2",children:[(0,g.jsx)("span",{className:"content-text",children:(0,a.__)("X","wdesignkit")}),(0,g.jsx)("input",{className:"shadow-inp",type:"number"})]}),(0,g.jsxs)("div",{className:"content-3",children:[(0,g.jsx)("span",{className:"content-text",children:(0,a.__)("Y","wdesignkit")}),(0,g.jsx)("input",{className:"shadow-inp",type:"number"})]}),(0,g.jsxs)("div",{className:"content-4",children:[(0,g.jsx)("span",{className:"content-text",children:(0,a.__)("Blur","wdesignkit")}),(0,g.jsx)("input",{className:"shadow-inp",type:"number"})]}),(0,g.jsxs)("div",{className:"content-5",children:[(0,g.jsx)("span",{className:"content-text",children:(0,a.__)("Spread","wdesignkit")}),(0,g.jsx)("input",{className:"shadow-inp",type:"number"})]})]})]}),$()&&(0,g.jsx)("div",{className:"wdkit-wb-cont-opt-cover",children:(0,g.jsxs)("div",{className:"wdkit-three-dot-cover",children:[(0,g.jsx)("i",{className:"wdkit-i-wb-vertical-menu",onClick:e=>{N(e)}}),(0,g.jsx)("div",{className:"wdkit-three-dot-cover-content",children:(0,g.jsx)(j,{only_edit:!!t?.only_edit})})]})})]})]});if("color"==t.type)return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"wb-drop",onDragOver:e=>{e.preventDefault()},onDragEnter:e=>{e.target.classList.add("wb_drag-over")},onDrop:e=>{e.target.classList.remove("wb_drag-over")},onDragLeave:e=>{e.target.classList.remove("wb_drag-over")}}),(0,g.jsxs)("div",{className:"wb-color wb-main-component "+(v()==t.name?"wkit-wb-selected":""),draggable:m,onDragEnd:()=>{u(!1)},style:{marginTop:"before"==t.separator?"15px":"",marginBottom:"after"==t.separator?"15px":""},"data-compo_id":t.compo_index,"data-sec_id":t.sec_index,"data-array_type":t.array_type,"data-rnp":t.rnp_id,"data-rnp2":t.rnp2_id,"data-nha":t.nha_type,"data-editable":t?.only_edit,onClick:e=>{x(e)},children:[(0,g.jsx)("div",{className:"wb-draggable-icon",onMouseDown:()=>{u(!0)},onMouseUp:()=>{u(!0)},children:(0,g.jsx)("span",{className:"tp-sec-edit",children:(0,g.jsx)("i",{className:"wdkit-i-wb-move"})})}),(0,g.jsx)("div",{className:"wb-border-color",children:(0,g.jsxs)("div",{className:"wb-append-inner-color",style:{flexDirection:1==t.lableBlock?"column":"row"},children:[(0,g.jsx)("input",{className:"wb-append-label",style:{display:1==t.showLable?"":"none"},value:t.lable,onChange:e=>{_(e,"lable")}}),(0,g.jsx)("div",{className:"wb-color-icon",children:(0,g.jsx)("input",{className:"wb-color-picker",type:"color",value:t.defaultValue,onChange:e=>{_(e,"defaultValue")}})})]})}),t&&t.description.length>=1&&(0,g.jsx)("p",{className:"wb-append-dec",children:t.description}),$()&&(0,g.jsx)("div",{className:"wdkit-wb-cont-opt-cover",children:(0,g.jsxs)("div",{className:"wdkit-three-dot-cover",children:[(0,g.jsx)("i",{className:"wdkit-i-wb-vertical-menu",onClick:e=>{N(e)}}),(0,g.jsx)("div",{className:"wdkit-three-dot-cover-content",children:(0,g.jsx)(j,{only_edit:!!t?.only_edit})})]})})]})]});if("cssfilter"==t.type)return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"wb-drop",onDragOver:e=>{e.preventDefault()},onDragEnter:e=>{e.target.classList.add("wb_drag-over")},onDrop:e=>{e.target.classList.remove("wb_drag-over")},onDragLeave:e=>{e.target.classList.remove("wb_drag-over")}}),(0,g.jsxs)("div",{className:"wb-css-filter wb-main-component "+(v()==t.name?"wkit-wb-selected":""),draggable:m,onDragEnd:()=>{u(!1)},"data-compo_id":t.compo_index,"data-sec_id":t.sec_index,"data-array_type":t.array_type,"data-rnp":t.rnp_id,"data-rnp2":t.rnp2_id,"data-nha":t.nha_type,"data-editable":t?.only_edit,onClick:e=>{x(e)},children:[(0,g.jsx)("div",{className:"wb-draggable-icon",onMouseDown:()=>{u(!0)},onMouseUp:()=>{u(!0)},children:(0,g.jsx)("span",{className:"tp-sec-edit",children:(0,g.jsx)("i",{className:"wdkit-i-wb-move"})})}),(0,g.jsxs)("div",{className:"wb-css-filter-content",children:[(0,g.jsx)("div",{className:"wb-append-inner",children:(0,g.jsx)("input",{className:"wb-append-label",value:t.lable,onChange:e=>{_(e,"lable")}})}),(0,g.jsx)("span",{className:"wb-css-filter-icon",children:(0,g.jsx)("i",{className:"wdkit-i-wb-configuration"})})]}),$()&&(0,g.jsx)("div",{className:"wdkit-wb-cont-opt-cover",children:(0,g.jsxs)("div",{className:"wdkit-three-dot-cover",children:[(0,g.jsx)("i",{className:"wdkit-i-wb-vertical-menu",onClick:e=>{N(e)}}),(0,g.jsx)("div",{className:"wdkit-three-dot-cover-content",children:(0,g.jsx)(j,{only_edit:!!t?.only_edit})})]})})]})]});if("dimension"==t.type)return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"wb-drop",onDragOver:e=>{e.preventDefault()},onDragEnter:e=>{e.target.classList.add("wb_drag-over")},onDrop:e=>{e.target.classList.remove("wb_drag-over")},onDragLeave:e=>{e.target.classList.remove("wb_drag-over")}}),(0,g.jsxs)("div",{className:"wb-dimension wb-main-component "+(v()==t.name?"wkit-wb-selected":""),draggable:m,onDragEnd:()=>{u(!1)},style:{marginTop:"before"==t.separator?"15px":"",marginBottom:"after"==t.separator?"15px":""},"data-compo_id":t.compo_index,"data-sec_id":t.sec_index,"data-array_type":t.array_type,"data-rnp":t.rnp_id,"data-rnp2":t.rnp2_id,"data-nha":t.nha_type,"data-editable":t?.only_edit,onClick:e=>{x(e)},children:[(0,g.jsx)("div",{className:"wb-draggable-icon",onMouseDown:()=>{u(!0)},onMouseUp:()=>{u(!0)},children:(0,g.jsx)("span",{className:"tp-sec-edit",children:(0,g.jsx)("i",{className:"wdkit-i-wb-move"})})}),(0,g.jsxs)("div",{className:"wb-append-input-field",style:{flexDirection:1==t.lableBlock?"column":"row"},children:[(0,g.jsx)("div",{className:"wb-append-inner",children:(0,g.jsx)("input",{className:"wb-append-label",style:{display:1==t.showLable?"":"none"},value:t.lable,onChange:e=>{_(e,"lable")}})}),(0,g.jsx)("div",{className:"wb-right-append",children:t.dimension_defaultValue&&(0,g.jsxs)("div",{className:"wb-dimension-content",children:[(0,g.jsxs)("div",{className:"wb-dimension-inp",children:[(0,g.jsx)("input",{className:"dimension-inp top-inp",value:t.dimension_defaultValue.top,onChange:e=>{_(e,"dimension_defaultValue","top")},type:"number"}),(0,g.jsx)("span",{className:"wb-dimension-lable",children:(0,a.__)("TOP","wdesignkit")})]}),(0,g.jsxs)("div",{className:"wb-dimension-inp",children:[(0,g.jsx)("input",{className:"dimension-inp right-inp",value:1==t.dimension_defaultValue.isLinked?t.dimension_defaultValue.top:t.dimension_defaultValue.right,onChange:e=>{_(e,"dimension_defaultValue",1==t.dimension_defaultValue.isLinked?"top":"right")},type:"number"}),(0,g.jsx)("span",{className:"wb-dimension-lable",children:(0,a.__)("RIGHT","wdesignkit")})]}),(0,g.jsxs)("div",{className:"wb-dimension-inp",children:[(0,g.jsx)("input",{className:"dimension-inp bottom-inp",value:1==t.dimension_defaultValue.isLinked?t.dimension_defaultValue.top:t.dimension_defaultValue.bottom,onChange:e=>{_(e,"dimension_defaultValue",1==t.dimension_defaultValue.isLinked?"top":"bottom")},type:"number"}),(0,g.jsx)("span",{className:"wb-dimension-lable",children:(0,a.__)("BOTTOM","wdesignkit")})]}),(0,g.jsxs)("div",{className:"wb-dimension-inp",children:[(0,g.jsx)("input",{className:"dimension-inp left-inp",value:1==t.dimension_defaultValue.isLinked?t.dimension_defaultValue.top:t.dimension_defaultValue.left,onChange:e=>{_(e,"dimension_defaultValue",1==t.dimension_defaultValue.isLinked?"top":"left")},type:"number"}),(0,g.jsx)("span",{className:"wb-dimension-lable",children:(0,a.__)("LEFT","wdesignkit")})]}),(0,g.jsx)("div",{className:"wb-dimension-icon",onClick:e=>{_(e,"dimension_defaultValue","isLinked")},children:(0,g.jsx)("span",{className:1==t.dimension_defaultValue.isLinked?"dimension-icon wkit-wb-dark":"dimension-icon",children:(0,g.jsx)("i",{className:"wdkit-i-wb-link"})})})]})})]}),$()&&(0,g.jsx)("div",{className:"wdkit-wb-cont-opt-cover",children:(0,g.jsxs)("div",{className:"wdkit-three-dot-cover",children:[(0,g.jsx)("i",{className:"wdkit-i-wb-vertical-menu",onClick:e=>{N(e)}}),(0,g.jsx)("div",{className:"wdkit-three-dot-cover-content",children:(0,g.jsx)(j,{only_edit:!!t?.only_edit})})]})})]})]});if("typography"==t.type)return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"wb-drop",onDragOver:e=>{e.preventDefault()},onDragEnter:e=>{e.target.classList.add("wb_drag-over")},onDrop:e=>{e.target.classList.remove("wb_drag-over")},onDragLeave:e=>{e.target.classList.remove("wb_drag-over")}}),(0,g.jsxs)("div",{className:"wb-typography wb-main-component "+(v()==t.name?"wkit-wb-selected":""),draggable:m,onDragEnd:()=>{u(!1)},"data-compo_id":t.compo_index,"data-sec_id":t.sec_index,"data-array_type":t.array_type,"data-rnp":t.rnp_id,"data-rnp2":t.rnp2_id,"data-nha":t.nha_type,"data-editable":t?.only_edit,onClick:e=>{x(e)},children:[(0,g.jsx)("div",{className:"wb-draggable-icon",onMouseDown:()=>{u(!0)},onMouseUp:()=>{u(!0)},children:(0,g.jsx)("span",{className:"tp-sec-edit",children:(0,g.jsx)("i",{className:"wdkit-i-wb-move"})})}),(0,g.jsxs)("div",{className:"wb-typography-content",children:[(0,g.jsx)("div",{className:"wb-append-inner",children:(0,g.jsx)("input",{className:"wb-append-label",value:t.lable,onChange:e=>{_(e,"lable")}})}),(0,g.jsx)("span",{className:"wb-typography-icon",children:(0,g.jsx)("i",{className:"wdkit-i-wb-configuration"})})]}),$()&&(0,g.jsx)("div",{className:"wdkit-wb-cont-opt-cover",children:(0,g.jsxs)("div",{className:"wdkit-three-dot-cover",children:[(0,g.jsx)("i",{className:"wdkit-i-wb-vertical-menu",onClick:e=>{N(e)}}),(0,g.jsx)("div",{className:"wdkit-three-dot-cover-content",children:(0,g.jsx)(j,{only_edit:!!t?.only_edit})})]})})]})]});if("gradientcolor"==t.type)return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"wb-drop",onDragOver:e=>{e.preventDefault()},onDragEnter:e=>{e.target.classList.add("wb_drag-over")},onDrop:e=>{e.target.classList.remove("wb_drag-over")},onDragLeave:e=>{e.target.classList.remove("wb_drag-over")}}),(0,g.jsxs)("div",{className:"wb-grediant-color wb-main-component "+(v()==t.name?"wkit-wb-selected":""),draggable:m,onDragEnd:()=>{u(!1)},"data-compo_id":t.compo_index,"data-sec_id":t.sec_index,"data-array_type":t.array_type,"data-rnp":t.rnp_id,"data-rnp2":t.rnp2_id,"data-nha":t.nha_type,"data-editable":t?.only_edit,onClick:e=>{x(e)},children:[(0,g.jsx)("div",{className:"wb-draggable-icon",onMouseDown:()=>{u(!0)},onMouseUp:()=>{u(!0)},children:(0,g.jsx)("span",{className:"tp-sec-edit",children:(0,g.jsx)("i",{className:"wdkit-i-wb-move"})})}),(0,g.jsxs)("div",{className:"wb-grediant-color-content wb-append-input-field",children:[(0,g.jsx)("div",{className:"wb-grediant-color-bar",style:{background:`${t.defaultValue}`}}),(0,g.jsxs)("div",{className:"wb-grediant-color-selector",children:["gutenberg"!=t.widgetdata.type&&(0,g.jsx)("div",{className:"wb-append-inner",children:(0,g.jsx)("input",{className:"wb-append-label",value:t.lable,onChange:e=>{_(e,"lable")}})}),(0,g.jsxs)("select",{className:"gradiant-color-dropDown",children:[(0,g.jsx)("option",{children:(0,a.__)("Linear","wdesignkit")}),(0,g.jsx)("option",{children:(0,a.__)("radial","wdesignkit")}),(0,g.jsx)("option",{children:(0,a.__)("conic","wdesignkit")})]}),(0,g.jsx)("input",{className:"grediant-color-inp",value:"135",type:"text"})]})]}),$()&&(0,g.jsxs)("div",{className:"wdkit-three-dot-cover",children:[(0,g.jsx)("i",{className:"wdkit-i-wb-vertical-menu",onClick:e=>{N(e)}}),(0,g.jsx)("div",{className:"wdkit-three-dot-cover-content",children:(0,g.jsx)(j,{only_edit:!!t?.only_edit})})]})]})]});if("heading"==t.type)return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"wb-drop",onDragOver:e=>{e.preventDefault()},onDragEnter:e=>{e.target.classList.add("wb_drag-over")},onDrop:e=>{e.target.classList.remove("wb_drag-over")},onDragLeave:e=>{e.target.classList.remove("wb_drag-over")}}),(0,g.jsxs)("div",{className:"wb-heading wb-main-component "+(v()==t.name?"wkit-wb-selected":""),draggable:m,onDragEnd:()=>{u(!1)},style:{marginTop:"before"==t.separator?"15px":"",marginBottom:"after"==t.separator?"15px":""},"data-compo_id":t.compo_index,"data-sec_id":t.sec_index,"data-array_type":t.array_type,"data-rnp":t.rnp_id,"data-rnp2":t.rnp2_id,"data-nha":t.nha_type,"data-editable":t?.only_edit,onClick:e=>{x(e)},children:[(0,g.jsx)("div",{className:"wb-draggable-icon",onMouseDown:()=>{u(!0)},onMouseUp:()=>{u(!0)},children:(0,g.jsx)("span",{className:"tp-sec-edit",children:(0,g.jsx)("i",{className:"wdkit-i-wb-move"})})}),(0,g.jsx)("div",{className:"wb-header-content",children:(0,g.jsx)("div",{className:"wb-append-inner",children:"bricks"==t.widgetdata.type?(0,g.jsx)("textarea",{className:"wb-textarea-inp wkit-wb-heading-textarea",value:t.lable,rows:3,onChange:e=>{_(e,"lable")}}):(0,g.jsx)("input",{className:"wb-append-label",value:t.lable,onChange:e=>{_(e,"lable")}})})}),$()&&(0,g.jsx)("div",{className:"wdkit-wb-cont-opt-cover",children:(0,g.jsxs)("div",{className:"wdkit-three-dot-cover",children:[(0,g.jsx)("i",{className:"wdkit-i-wb-vertical-menu",onClick:e=>{N(e)}}),(0,g.jsx)("div",{className:"wdkit-three-dot-cover-content",children:(0,g.jsx)(j,{only_edit:!!t?.only_edit})})]})})]})]});if("repeater"==t.type)return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"wb-drop",onDragOver:e=>{e.preventDefault()},onDragEnter:e=>{e.target.classList.add("wb_drag-over")},onDrop:e=>{e.target.classList.remove("wb_drag-over")},onDragLeave:e=>{e.target.classList.remove("wb_drag-over")}}),(0,g.jsxs)("div",{className:"wb-main-component wb-repeater "+(v()==t.name?"wkit-wb-main-selected":""),draggable:m,onDragEnd:()=>{u(!1)},style:{marginTop:"before"==t.separator?"15px":"",marginBottom:"after"==t.separator?"15px":""},"data-compo_id":t.compo_index,"data-sec_id":t.sec_index,"data-array_type":t.array_type,"data-rnp":t.rnp_id,"data-rnp2":t.rnp2_id,"data-nha":t.nha_type,"data-editable":t?.only_edit,onClick:e=>{!e.target.closest(".wb-repeater-droped")&&x(e)},children:[(0,g.jsx)("div",{className:"wb-draggable-main-icon",onMouseDown:()=>{u(!0)},onMouseUp:()=>{u(!0)},children:(0,g.jsx)("i",{className:"wdkit-i-wb-move"})}),(0,g.jsxs)("div",{className:"wb-repeater-content",children:[(0,g.jsx)("div",{className:"wb-append-inner",children:(0,g.jsx)("input",{className:"wb-append-label",value:t.lable,onChange:e=>{_(e,"lable")}})}),(0,g.jsx)("div",{className:"wb-repeater-field",onClick:()=>{p(!c)},children:(0,g.jsx)("input",{className:"wb-repeater-field-title",value:t.title_field,onChange:e=>{_(e,"title_field")}})}),(0,g.jsxs)("div",{className:"wb-repeater-options",style:{display:1==c?"block":"none"},children:[t.fields&&t.fields.map(((e,a)=>(0,g.jsx)("div",{children:(0,g.jsx)(Ki,{name:e.name,showLable:e.showLable,separator:e.separator,lableBlock:e.lableBlock,placeHolder:e.placeHolder,type:e.type,description:e.description,defaultValue:e.defaultValue,lable:e.lable,sec_index:t.sec_index,array_type:t.array_type,compo_index:t.compo_index,rnp_id:null!=t.rnp_id?t.rnp_id:a,rnp2_id:null!=t.rnp_id&&a,types:e.types,number_setting:e.number_setting,title_field:e.title_field,fields:e.fields,return_value:e.return_value,is_external:e.is_external,nofollow:e.nofollow,size_units:e.size_units,options:e.options,rows:e.rows,dimension_defaultValue:e.dimension_defaultValue,align_option:e.align_option,align_defaultValue:e.align_defaultValue,select_defaultValue:e.select_defaultValue,select2_defaultValue:e.select2_defaultValue,hTags_defaultValue:e.hTags_defaultValue,slider_defaultValue:e.slider_defaultValue,nha_array:e.nha_array,nha_type:e.nha_type,nha_array_lable:e.nha_array_lable,alignType:e.alignType,alert_type:e.alert_type,notice_type:e.notice_type,deprecatedValue:e.deprecatedValue,dismissible:e.dismissible,parent_class:e.parent_class})},a))),(0,g.jsx)("div",{className:"wb-drop",onDragOver:e=>{e.preventDefault()},onDragEnter:e=>{e.target.classList.add("wb_drag-over")},onDrop:e=>{e.target.classList.remove("wb_drag-over")},onDragLeave:e=>{e.target.classList.remove("wb_drag-over")}}),(0,g.jsx)("div",{className:"wb-main-component",draggable:"false","data-compo_id":t.compo_index,"data-rnp":t.fields.length,"data-sec_id":t.sec_index,"data-array_type":t.array_type}),(0,g.jsxs)("div",{className:`wb-repeater-droped class-${t.sec_index}-${t.compo_index}`,draggable:!0,onDragOver:e=>{e.preventDefault()},onDrop:e=>{e.preventDefault(),f(e,t.sec_index,t.compo_index,t.array_type,t.rnp_id)},onClick:e=>{t.addToActiveController({compo_id:t.compo_index,sec_id:t.sec_index,array_type:t.array_type,controller_type:t.type})},children:[(0,g.jsx)("span",{children:(0,a.__)("Add Controller","wdesignkit")}),(0,g.jsx)("i",{className:"wdkit-i-wb-plus"})]})]})]}),$()&&(0,g.jsx)("div",{className:"wdkit-wb-cont-opt-cover",children:(0,g.jsxs)("div",{className:"wdkit-three-dot-cover",children:[(0,g.jsx)("i",{className:"wdkit-i-wb-vertical-menu",onClick:e=>{N(e)}}),(0,g.jsx)("div",{className:"wdkit-three-dot-cover-content",children:(0,g.jsxs)("div",{className:"wb-hover-component",children:[(0,g.jsxs)("div",{className:"wb-sec-edit duplicate-btn",onClick:e=>{b(e)},children:[(0,g.jsx)("i",{className:"wdkit-i-copy"}),(0,a.__)("Duplicate","wdesignkit")]}),(0,g.jsxs)("div",{className:"wb-sec-edit remove-btn",onClick:e=>{k(e)},children:[(0,g.jsx)("i",{className:"wdkit-i-delete"}),(0,a.__)("Delete","wdesignkit")]})]})})]})})]})]});if("popover"==t.type)return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"wb-drop",onDragOver:e=>{e.preventDefault()},onDragEnter:e=>{e.target.classList.add("wb_drag-over")},onDrop:e=>{e.target.classList.remove("wb_drag-over")},onDragLeave:e=>{e.target.classList.remove("wb_drag-over")}}),(0,g.jsxs)("div",{className:"wb-popover wb-main-component "+(v()==t.name?"wkit-wb-main-selected":""),draggable:m,onDragEnd:()=>{u(!1)},style:{marginTop:"before"==t.separator?"15px":"",marginBottom:"after"==t.separator?"15px":""},"data-compo_id":t.compo_index,"data-sec_id":t.sec_index,"data-array_type":t.array_type,"data-rnp":t.rnp_id,"data-rnp2":t.rnp2_id,"data-nha":t.nha_type,"data-editable":t?.only_edit,onClick:e=>{!e.target.closest(".wb-popover-droped")&&x(e)},children:[(0,g.jsx)("div",{className:"wb-draggable-main-icon",onMouseDown:()=>{u(!0)},onMouseUp:()=>{u(!0)},children:(0,g.jsx)("i",{className:"wdkit-i-wb-move"})}),(0,g.jsxs)("div",{className:"wb-popover-content",style:{flexDirection:1==t.lableBlock?"column":"row"},children:[(0,g.jsx)("div",{className:"wb-append-inner wkit-wb-popoverLable",children:(0,g.jsx)("input",{className:"wb-append-label wkit-wb-popoverInput",style:{display:1==t.showLable?"":"none"},value:t.lable,onChange:e=>{_(e,"lable")}})}),(0,g.jsxs)("div",{className:"wb-popover-options",children:[t.fields&&t.fields.map(((e,a)=>(0,g.jsx)("div",{children:(0,g.jsx)(Ki,{name:e.name,showLable:e.showLable,separator:e.separator,lableBlock:e.lableBlock,placeHolder:e.placeHolder,type:e.type,description:e.description,defaultValue:e.defaultValue,lable:e.lable,sec_index:t.sec_index,array_type:t.array_type,compo_index:t.compo_index,rnp_id:null!=t.rnp_id?t.rnp_id:a,rnp2_id:null!=t.rnp_id&&a,types:e.types,number_setting:e.number_setting,title_field:e.title_field,fields:e.fields,return_value:e.return_value,is_external:e.is_external,nofollow:e.nofollow,size_units:e.size_units,options:e.options,rows:e.rows,dimension_defaultValue:e.dimension_defaultValue,align_option:e.align_option,align_defaultValue:e.align_defaultValue,select_defaultValue:e.select_defaultValue,hTags_defaultValue:e.hTags_defaultValue,select2_defaultValue:e.select2_defaultValue,slider_defaultValue:e.slider_defaultValue,nha_array:e.nha_array,nha_type:e.nha_type,nha_array_lable:e.nha_array_lable,alignType:e.alignType,alert_type:e.alert_type,notice_type:e.notice_type,deprecatedValue:e.deprecatedValue,dismissible:e.dismissible,parent_class:e.parent_class})},a))),(0,g.jsx)("div",{className:"wb-drop",onDragOver:e=>{e.preventDefault()},onDragEnter:e=>{e.target.classList.add("wb_drag-over")},onDrop:e=>{e.target.classList.remove("wb_drag-over")},onDragLeave:e=>{e.target.classList.remove("wb_drag-over")}}),(0,g.jsx)("div",{className:"wb-main-component",draggable:"false","data-compo_id":t.compo_index,"data-rnp":t.fields.length,"data-sec_id":t.sec_index,"data-array_type":t.array_type}),(0,g.jsxs)("div",{className:`wb-popover-droped class-${t.sec_index}-${t.compo_index}`,draggable:!0,onDragOver:e=>{e.preventDefault()},onDrop:e=>{e.preventDefault(),f(e,t.sec_index,t.compo_index,t.array_type,t.rnp_id)},onClick:e=>{t.addToActiveController({compo_id:t.compo_index,sec_id:t.sec_index,array_type:t.array_type,controller_type:t.type})},children:[(0,g.jsx)("i",{className:"wdkit-i-wb-plus"}),(0,g.jsx)("span",{children:(0,a.__)("Add Controller","wdesignkit")})]})]})]}),$()&&(0,g.jsx)("div",{className:"wdkit-wb-cont-opt-cover",children:(0,g.jsxs)("div",{className:"wdkit-three-dot-cover",children:[(0,g.jsx)("i",{className:"wdkit-i-wb-vertical-menu",onClick:e=>{N(e)}}),(0,g.jsx)("div",{className:"wdkit-three-dot-cover-content",children:(0,g.jsxs)("div",{className:"wb-hover-component",children:[(0,g.jsxs)("div",{className:"wb-sec-edit duplicate-btn",onClick:e=>{b(e)},children:[(0,g.jsx)("i",{className:"wdkit-i-copy"}),(0,a.__)("Duplicate","wdesignkit")]}),(0,g.jsxs)("div",{className:"wb-sec-edit remove-btn",onClick:e=>{k(e)},children:[(0,g.jsx)("i",{className:"wdkit-i-delete"}),(0,a.__)("Delete","wdesignkit")]})]})})]})})]})]});if("normalhover"==t.type)return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"wb-drop",onDragOver:e=>{e.preventDefault()},onDragEnter:e=>{e.target.classList.add("wb_drag-over")},onDrop:e=>{e.target.classList.remove("wb_drag-over")},onDragLeave:e=>{e.target.classList.remove("wb_drag-over")}}),(0,g.jsxs)("div",{className:"wb-popover wb-main-component "+(v()==t.name?"wkit-wb-main-selected":""),draggable:m,onDragEnd:()=>{u(!1)},style:{marginTop:"before"==t.separator?"15px":"",marginBottom:"after"==t.separator?"15px":""},"data-compo_id":t.compo_index,"data-sec_id":t.sec_index,"data-array_type":t.array_type,"data-rnp":t.rnp_id,"data-rnp2":t.rnp2_id,"data-nha":t.nha_type,"data-editable":t?.only_edit,onClick:e=>{!e.target.closest(".wb-popover-droped")&&x(e)},children:[(0,g.jsx)("div",{className:"wb-draggable-main-icon",onMouseDown:()=>{u(!0)},onMouseUp:()=>{u(!0)},children:(0,g.jsx)("i",{className:"wdkit-i-wb-move"})}),(0,g.jsxs)("div",{className:"wb-popover-content",style:{flexDirection:1==t.lableBlock?"column":"row"},children:[(0,g.jsx)("div",{className:"wb-append-inner",children:(0,g.jsx)("input",{className:"wb-append-label",style:{display:1==t.showLable?"":"none"},value:t.lable,onChange:e=>{_(e,"lable")}})}),(0,g.jsxs)("div",{className:"wb-popover-options wb-normalHover-options",children:[(0,g.jsx)("div",{className:"wkit-wb-normalHover",children:t.nha_array.length>0&&t?.nha_array.filter((e=>null!==e)).map(((e,a)=>(0,g.jsx)("div",{className:"wkit-wb-normalHoverList",style:{backgroundColor:t.nha_type==e?i():"white",color:t.nha_type==e?"#fff":"black",width:h("width"),border:h("border",a)},onClick:t=>{_(t,"nha_type",e||a)},children:h("label",e)})))}),t.fields&&t.fields.map(((e,a)=>{if(e.key==t.nha_type)return(0,g.jsx)("div",{children:(0,g.jsx)(Ki,{name:e.name,showLable:e.showLable,separator:e.separator,lableBlock:e.lableBlock,placeHolder:e.placeHolder,type:e.type,description:e.description,defaultValue:e.defaultValue,lable:e.lable,sec_index:t.sec_index,array_type:t.array_type,compo_index:t.compo_index,rnp_id:null!=t.rnp_id?t.rnp_id:a,rnp2_id:null!=t.rnp_id&&a,nha_id:a,types:e.types,number_setting:e.number_setting,title_field:e.title_field,fields:e.fields,return_value:e.return_value,is_external:e.is_external,nofollow:e.nofollow,size_units:e.size_units,options:e.options,rows:e.rows,dimension_defaultValue:e.dimension_defaultValue,align_option:e.align_option,align_defaultValue:e.align_defaultValue,select_defaultValue:e.select_defaultValue,hTags_defaultValue:e.hTags_defaultValue,select2_defaultValue:e.select2_defaultValue,slider_defaultValue:e.slider_defaultValue,nha_array:t.nha_array,nha_type:t.nha_type,nha_array_lable:t.nha_array_lable,alignType:t.alignType,alert_type:e.alert_type,notice_type:e.notice_type,deprecatedValue:e.deprecatedValue,dismissible:e.dismissible,parent_class:e.parent_class})},a)})),(0,g.jsx)("div",{className:"wb-drop",onDragOver:e=>{e.preventDefault()},onDragEnter:e=>{e.target.classList.add("wb_drag-over")},onDrop:e=>{e.target.classList.remove("wb_drag-over")},onDragLeave:e=>{e.target.classList.remove("wb_drag-over")}}),(0,g.jsx)("div",{className:"wb-main-component",draggable:"false","data-compo_id":t.compo_index,"data-rnp":t.fields.length,"data-sec_id":t.sec_index,"data-array_type":t.array_type,"data-nha":t.nha_type}),(0,g.jsxs)("div",{className:`wb-popover-droped class-${t.sec_index}-${t.compo_index}`,draggable:!0,onDragOver:e=>{e.preventDefault()},onDrop:e=>{e.preventDefault(),((e,i,s,n,r)=>{let l=e.dataTransfer.getData("controller_id");if(l)if("normalhover"==l)t.wdkit_set_notification({title:(0,a.__)("Not Valid","wdesignkit"),desc:(0,a.__)("You Can Not put this controller here","wdesignkit")});else{const e=ki[l].name,a=Object.assign({},ki[l],{name:e+"_"+w(),key:r});let o=[...t.cardData.CardItems.cardData],d=o[0][n][i].inner_sec[s],c=[...d.fields];c.push(a);let m=Object.assign({},d,{fields:c});o[0][n][i].inner_sec[s]=m,p(!0),t.addToCarthandler(o)}})(e,t.sec_index,t.compo_index,t.array_type,t.nha_type)},onClick:e=>{t.addToActiveController({compo_id:t.compo_index,sec_id:t.sec_index,array_type:t.array_type,controller_type:t.type,nha_type:t.nha_type})},children:[(0,g.jsx)("i",{className:"wdkit-i-wb-plus"}),(0,g.jsx)("span",{children:(0,a.__)("Add Controller","wdesignkit")})]})]})]}),$()&&(0,g.jsx)("div",{className:"wdkit-wb-cont-opt-cover",children:(0,g.jsxs)("div",{className:"wdkit-three-dot-cover",children:[(0,g.jsx)("i",{className:"wdkit-i-wb-vertical-menu",onClick:e=>{N(e)}}),(0,g.jsx)("div",{className:"wdkit-three-dot-cover-content",children:(0,g.jsxs)("div",{className:"wb-hover-component",children:[(0,g.jsxs)("div",{className:"wb-sec-edit duplicate-btn",onClick:e=>{b(e)},children:[(0,g.jsx)("i",{className:"wdkit-i-copy"}),(0,a.__)("Duplicate","wdesignkit")]}),(0,g.jsxs)("div",{className:"wb-sec-edit remove-btn",onClick:e=>{k(e)},children:[(0,g.jsx)("i",{className:"wdkit-i-delete"}),(0,a.__)("Delete","wdesignkit")]})]})})]})})]})]});if("divider"==t.type)return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"wb-drop",onDragOver:e=>{e.preventDefault()},onDragEnter:e=>{e.target.classList.add("wb_drag-over")},onDrop:e=>{e.target.classList.remove("wb_drag-over")},onDragLeave:e=>{e.target.classList.remove("wb_drag-over")}}),(0,g.jsxs)("div",{className:"wb-heading wkit-divider-controller wb-main-component "+(v()==t.name?"wkit-wb-selected":""),draggable:m,onDragEnd:()=>{u(!1)},style:{marginTop:"before"==t.separator?"15px":"",marginBottom:"after"==t.separator?"15px":""},"data-compo_id":t.compo_index,"data-sec_id":t.sec_index,"data-array_type":t.array_type,"data-rnp":t.rnp_id,"data-rnp2":t.rnp2_id,"data-nha":t.nha_type,"data-editable":t?.only_edit,onClick:e=>{x(e)},children:[(0,g.jsx)("div",{className:"wb-draggable-icon",onMouseDown:()=>{u(!0)},onMouseUp:()=>{u(!0)},children:(0,g.jsx)("span",{className:"tp-sec-edit",children:(0,g.jsx)("i",{className:"wdkit-i-wb-move"})})}),(0,g.jsx)("div",{className:"wb-header-content",children:(0,g.jsx)("hr",{})}),$()&&(0,g.jsx)("div",{className:"wdkit-wb-cont-opt-cover",children:(0,g.jsxs)("div",{className:"wdkit-three-dot-cover",children:[(0,g.jsx)("i",{className:"wdkit-i-wb-vertical-menu",onClick:e=>{N(e)}}),(0,g.jsx)("div",{className:"wdkit-three-dot-cover-content",children:(0,g.jsx)(j,{only_edit:!!t?.only_edit})})]})})]})]});if("rawhtml"==t.type)return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"wb-drop",onDragOver:e=>{e.preventDefault()},onDragEnter:e=>{e.target.classList.add("wb_drag-over")},onDrop:e=>{e.target.classList.remove("wb_drag-over")},onDragLeave:e=>{e.target.classList.remove("wb_drag-over")}}),(0,g.jsxs)("div",{className:"wb-heading wb-main-component "+(v()==t.name?"wkit-wb-selected":""),draggable:m,onDragEnd:()=>{u(!1)},style:{marginTop:"before"==t.separator?"15px":"",marginBottom:"after"==t.separator?"15px":""},"data-compo_id":t.compo_index,"data-sec_id":t.sec_index,"data-array_type":t.array_type,"data-rnp":t.rnp_id,"data-rnp2":t.rnp2_id,"data-nha":t.nha_type,"data-editable":t?.only_edit,onClick:e=>{x(e)},children:[(0,g.jsx)("div",{className:"wb-draggable-icon",onMouseDown:()=>{u(!0)},onMouseUp:()=>{u(!0)},children:(0,g.jsx)("span",{className:"tp-sec-edit",children:(0,g.jsx)("i",{className:"wdkit-i-wb-move"})})}),(0,g.jsxs)("div",{className:"wb-header-content",style:{flexDirection:1==t.lableBlock?"column":"row"},children:[(0,g.jsx)("div",{className:"wb-append-inner",children:(0,g.jsx)("input",{className:"wb-append-label",value:t.lable,onChange:e=>{_(e,"lable")}})}),(0,g.jsx)("div",{className:"wb-right-append",children:(0,g.jsx)("textarea",{className:"wb-append-inp",style:{width:"100%"},value:t.defaultValue,type:"text",placeholder:t.placeHolder,onChange:e=>{_(e,"defaultValue")}})})]}),$()&&(0,g.jsx)("div",{className:"wdkit-wb-cont-opt-cover",children:(0,g.jsxs)("div",{className:"wdkit-three-dot-cover",children:[(0,g.jsx)("i",{className:"wdkit-i-wb-vertical-menu",onClick:e=>{N(e)}}),(0,g.jsx)("div",{className:"wdkit-three-dot-cover-content",children:(0,g.jsx)(j,{only_edit:!!t?.only_edit})})]})})]})]});if("icon"==t.type)return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"wb-drop",onDragOver:e=>{e.preventDefault()},onDragEnter:e=>{e.target.classList.add("wb_drag-over")},onDrop:e=>{e.target.classList.remove("wb_drag-over")},onDragLeave:e=>{e.target.classList.remove("wb_drag-over")}}),(0,g.jsxs)("div",{className:"wb-icon-list wb-main-component "+(v()==t.name?"wkit-wb-selected":""),draggable:m,onDragEnd:()=>{u(!1)},"data-compo_id":t.compo_index,"data-sec_id":t.sec_index,"data-array_type":t.array_type,"data-rnp":t.rnp_id,"data-rnp2":t.rnp2_id,"data-nha":t.nha_type,"data-editable":t?.only_edit,onClick:e=>{x(e)},children:[(0,g.jsx)("div",{className:"wb-draggable-icon",onMouseDown:()=>{u(!0)},onMouseUp:()=>{u(!0)},children:(0,g.jsx)("span",{className:"tp-sec-edit",children:(0,g.jsx)("i",{className:"wdkit-i-wb-move"})})}),(0,g.jsx)("div",{className:"wb-icon-list-content",children:(0,g.jsxs)("div",{className:"wb-append-inner",children:[(0,g.jsx)("input",{className:"wb-append-label",value:t.lable,onChange:e=>{_(e,"lable")}}),(0,g.jsx)("span",{className:"wb-icon-list-icon",children:(0,g.jsx)("i",{className:"wdkit-i-wb-configuration"})}),$()&&(0,g.jsxs)("div",{className:"wdkit-three-dot-cover",children:[(0,g.jsx)("i",{className:"wdkit-i-wb-vertical-menu",onClick:e=>{N(e)}}),(0,g.jsx)("div",{className:"wdkit-three-dot-cover-content",children:(0,g.jsx)(j,{only_edit:!!t?.only_edit})})]})]})})]})]});if("hidden"==t.type)return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"wb-drop",onDragOver:e=>{e.preventDefault()},onDragEnter:e=>{e.target.classList.add("wb_drag-over")},onDrop:e=>{e.target.classList.remove("wb_drag-over")},onDragLeave:e=>{e.target.classList.remove("wb_drag-over")}}),(0,g.jsxs)("div",{className:"wb-icon-list wb-main-component "+(v()==t.name?"wkit-wb-selected":""),draggable:m,onDragEnd:()=>{u(!1)},"data-compo_id":t.compo_index,"data-sec_id":t.sec_index,"data-array_type":t.array_type,"data-rnp":t.rnp_id,"data-rnp2":t.rnp2_id,"data-nha":t.nha_type,"data-editable":t?.only_edit,onClick:e=>{x(e)},children:[(0,g.jsx)("div",{className:"wb-draggable-icon",onMouseDown:()=>{u(!0)},onMouseUp:()=>{u(!0)},children:(0,g.jsx)("span",{className:"tp-sec-edit",children:(0,g.jsx)("i",{className:"wdkit-i-wb-move"})})}),(0,g.jsx)("div",{className:"wb-icon-list-content",children:(0,g.jsxs)("div",{className:"wb-append-inner",children:[(0,g.jsx)("input",{className:"wb-append-label",value:t.lable,onChange:e=>{_(e,"lable")}}),(0,g.jsx)("i",{className:"wdkit-i-wb-configuration"}),$()&&(0,g.jsxs)("div",{className:"wdkit-three-dot-cover",children:[(0,g.jsx)("i",{className:"wdkit-i-wb-vertical-menu",onClick:e=>{N(e)}}),(0,g.jsx)("div",{className:"wdkit-three-dot-cover-content",children:(0,g.jsx)(j,{only_edit:!!t?.only_edit})})]})]})})]})]});if("media"==t.type)return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"wb-drop",onDragOver:e=>{e.preventDefault()},onDragEnter:e=>{e.target.classList.add("wb_drag-over")},onDrop:e=>{e.target.classList.remove("wb_drag-over")},onDragLeave:e=>{e.target.classList.remove("wb_drag-over")}}),(0,g.jsxs)("div",{className:"wb-media wb-main-component "+(v()==t.name?"wkit-wb-selected":""),draggable:m,onDragEnd:()=>{u(!1)},"data-compo_id":t.compo_index,"data-sec_id":t.sec_index,"data-array_type":t.array_type,"data-rnp":t.rnp_id,"data-rnp2":t.rnp2_id,"data-nha":t.nha_type,"data-editable":t?.only_edit,onClick:e=>{x(e)},children:[(0,g.jsx)("div",{className:"wb-draggable-icon",onMouseDown:()=>{u(!0)},onMouseUp:()=>{u(!0)},children:(0,g.jsx)("span",{className:"tp-sec-edit",children:(0,g.jsx)("i",{className:"wdkit-i-wb-move"})})}),(0,g.jsxs)("div",{className:"wb-media-content",style:{flexDirection:1==t.lableBlock?"column":"row"},children:[(0,g.jsx)("div",{className:"wb-append-inner",style:{display:1==t.showLable?"block":"none"},children:(0,g.jsx)("input",{className:"wb-append-label",value:t.lable,onChange:e=>{_(e,"lable")}})}),(0,g.jsx)("img",{className:"wb-media-icon",style:{width:1==t.lableBlock?"100%":"65%"},src:Ji+"assets/images/jpg/placeholder.png",draggable:"false"})]}),$()&&(0,g.jsx)("div",{className:"wdkit-wb-cont-opt-cover",children:(0,g.jsxs)("div",{className:"wdkit-three-dot-cover",children:[(0,g.jsx)("i",{className:"wdkit-i-wb-vertical-menu",onClick:e=>{N(e)}}),(0,g.jsx)("div",{className:"wdkit-three-dot-cover-content",children:(0,g.jsx)(j,{only_edit:!!t?.only_edit})})]})}),t&&t.description.length>=1&&(0,g.jsx)("p",{className:"wb-append-dec",children:t.description})]})]});if("iconscontrol"==t.type)return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"wb-drop",onDragOver:e=>{e.preventDefault()},onDragEnter:e=>{e.target.classList.add("wb_drag-over")},onDrop:e=>{e.target.classList.remove("wb_drag-over")},onDragLeave:e=>{e.target.classList.remove("wb_drag-over")}}),(0,g.jsxs)("div",{className:"wb-icon-list wb-main-component "+(v()==t.name?"wkit-wb-selected":""),draggable:m,onDragEnd:()=>{u(!1)},"data-compo_id":t.compo_index,"data-sec_id":t.sec_index,"data-array_type":t.array_type,"data-rnp":t.rnp_id,"data-rnp2":t.rnp2_id,"data-nha":t.nha_type,"data-editable":t?.only_edit,onClick:e=>{x(e)},children:[(0,g.jsx)("div",{className:"wb-draggable-icon",onMouseDown:()=>{u(!0)},onMouseUp:()=>{u(!0)},children:(0,g.jsx)("span",{className:"tp-sec-edit",children:(0,g.jsx)("i",{className:"wdkit-i-wb-move"})})}),(0,g.jsx)("div",{className:"wb-icon-list-content",style:{flexDirection:1==t.lableBlock?"column":"row"},children:(0,g.jsxs)("div",{className:"wb-append-inner",children:[(0,g.jsx)("input",{className:"wb-append-label",value:t.lable,onChange:e=>{_(e,"lable")}}),(0,g.jsx)("span",{className:"wb-icon-list-icon",children:(0,g.jsx)("i",{className:"wdkit-i-wb-configuration"})}),$()&&(0,g.jsx)("div",{className:"wdkit-wb-cont-opt-cover",children:(0,g.jsxs)("div",{className:"wdkit-three-dot-cover",children:[(0,g.jsx)("i",{className:"wdkit-i-wb-vertical-menu",onClick:e=>{N(e)}}),(0,g.jsx)("div",{className:"wdkit-three-dot-cover-content",children:(0,g.jsx)(j,{only_edit:!!t?.only_edit})})]})})]})})]})]});if("linksearch"==t.type)return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"wb-drop",onDragOver:e=>{e.preventDefault()},onDragEnter:e=>{e.target.classList.add("wb_drag-over")},onDrop:e=>{e.target.classList.remove("wb_drag-over")},onDragLeave:e=>{e.target.classList.remove("wb_drag-over")}}),(0,g.jsxs)("div",{className:"wb-link-search wb-main-component "+(v()==t.name?"wkit-wb-selected":""),draggable:m,onDragEnd:()=>{u(!1)},"data-compo_id":t.compo_index,"data-sec_id":t.sec_index,"data-array_type":t.array_type,"data-rnp":t.rnp_id,"data-rnp2":t.rnp2_id,"data-nha":t.nha_type,"data-editable":t?.only_edit,onClick:e=>{x(e)},children:[(0,g.jsx)("div",{className:"wb-draggable-icon",onMouseDown:()=>{u(!0)},onMouseUp:()=>{u(!0)},children:(0,g.jsx)("span",{className:"tp-sec-edit",children:(0,g.jsx)("i",{className:"wdkit-i-wb-move"})})}),(0,g.jsxs)("div",{className:"wb-link-search-content",children:[(0,g.jsx)("div",{className:"wb-append-inner",children:(0,g.jsx)("input",{className:"wb-append-label",value:t.lable,onChange:e=>{_(e,"lable")}})}),(0,g.jsx)("img",{className:"wb-link-search-icon",src:Ji+"assets/images/wb-svg/pana-icon.svg"})]})]})]});if("multirange"==t.type)return(0,e.useEffect)((()=>{const e=document.getElementById("input-left"),t=document.getElementById("input-right"),a=document.querySelector(".slider > .thumb.left"),i=document.querySelector(".slider > .thumb.right"),s=document.querySelector(".slider > .range");e.addEventListener("input",(()=>{const i=e,[n,r]=[parseInt(i.min),parseInt(i.max)];i.value=Math.min(parseInt(i.value),parseInt(t.value)-1);const l=(i.value-n)/(r-n)*100;a.style.left=l+"%",s.style.left=l+"%"})),t.addEventListener("input",(()=>{const a=t,[n,r]=[parseInt(a.min),parseInt(a.max)];a.value=Math.max(parseInt(a.value),parseInt(e.value)+1);const l=(a.value-n)/(r-n)*100;i.style.right=100-l+"%",s.style.right=100-l+"%"}))})),(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"wb-drop",onDragOver:e=>{e.preventDefault()},onDragEnter:e=>{e.target.classList.add("wb_drag-over")},onDrop:e=>{e.target.classList.remove("wb_drag-over")},onDragLeave:e=>{e.target.classList.remove("wb_drag-over")}}),(0,g.jsxs)("div",{className:"wb-multi-range wb-main-component "+(v()==t.name?"wkit-wb-selected":""),draggable:m,onDragEnd:()=>{u(!1)},"data-compo_id":t.compo_index,"data-sec_id":t.sec_index,"data-array_type":t.array_type,"data-rnp":t.rnp_id,"data-rnp2":t.rnp2_id,"data-nha":t.nha_type,"data-editable":t?.only_edit,onClick:e=>{x(e)},children:[(0,g.jsx)("div",{className:"wb-draggable-icon",onMouseDown:()=>{u(!0)},onMouseUp:()=>{u(!0)},children:(0,g.jsx)("span",{className:"tp-sec-edit",children:(0,g.jsx)("i",{className:"wdkit-i-wb-move"})})}),(0,g.jsxs)("div",{className:"wb-multi-range-content",children:[(0,g.jsx)("div",{className:"wb-append-inner",children:(0,g.jsx)("input",{className:"wb-append-label",value:t.lable,onChange:e=>{_(e,"lable")}})}),(0,g.jsx)("div",{className:"middle",children:(0,g.jsxs)("div",{className:"multi-range-slider",children:[(0,g.jsx)("input",{type:"range",id:"input-left",min:"0",max:"100",value:"25"}),(0,g.jsx)("input",{type:"range",id:"input-right",min:"0",max:"100",value:"75"}),(0,g.jsxs)("div",{className:"slider",children:[(0,g.jsx)("div",{className:"track"}),(0,g.jsx)("div",{className:"range"}),(0,g.jsx)("div",{className:"thumb left"}),(0,g.jsx)("div",{className:"thumb right"})]})]})})]}),$()&&(0,g.jsxs)("div",{className:"wdkit-three-dot-cover",children:[(0,g.jsx)("i",{className:"wdkit-i-wb-vertical-menu",onClick:e=>{N(e)}}),(0,g.jsx)("div",{className:"wdkit-three-dot-cover-content",children:(0,g.jsx)(j,{only_edit:!!t?.only_edit})})]})]})]});if("notice"==t.type){let e="",i="";return"warning"==t.notice_type&&(e="1px solid #f59e0b",i="#f59e0b"),"info"==t.notice_type&&(e="1px solid #2563eb",i="#2563eb"),"success"==t.notice_type&&(e="1px solid #0a875a",i="#0a875a"),"danger"==t.notice_type&&(e="1px solid #dc2626",i="#dc2626"),(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"wb-drop",onDragOver:e=>{e.preventDefault()},onDragEnter:e=>{e.target.classList.add("wb_drag-over")},onDrop:e=>{e.target.classList.remove("wb_drag-over")},onDragLeave:e=>{e.target.classList.remove("wb_drag-over")}}),(0,g.jsxs)("div",{className:"wb-note wb-main-component "+(v()==t.name?"wkit-wb-selected":""),draggable:m,onDragEnd:()=>{u(!1)},"data-compo_id":t.compo_index,"data-sec_id":t.sec_index,"data-array_type":t.array_type,"data-rnp":t.rnp_id,"data-rnp2":t.rnp2_id,"data-nha":t.nha_type,"data-editable":t?.only_edit,onClick:e=>{x(e)},children:[(0,g.jsx)("div",{className:"wb-draggable-icon",onMouseDown:()=>{u(!0)},onMouseUp:()=>{u(!0)},children:(0,g.jsx)("span",{className:"tp-sec-edit",children:(0,g.jsx)("i",{className:"wdkit-i-wb-move"})})}),(0,g.jsxs)("div",{className:"wb-note-content",style:{border:e,padding:"5px"},children:[(0,g.jsxs)("div",{style:{display:"flex",flexDirection:"row",gap:"10px"},children:[(0,g.jsx)("div",{className:"wb-notice-svg",children:(0,g.jsx)("svg",{width:"22",height:"22",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,g.jsx)("path",{d:"M2.25 9H3M9 2.25V3M15 9H15.75M4.2 4.2L4.725 4.725M13.8 4.2L13.275 4.725M7.27496 12.75H10.725M6.75 12C6.12035 11.5278 5.65525 10.8694 5.42057 10.1181C5.1859 9.36687 5.19355 8.56082 5.44244 7.81415C5.69133 7.06748 6.16884 6.41804 6.80734 5.95784C7.44583 5.49764 8.21294 5.25 9 5.25C9.78706 5.25 10.5542 5.49764 11.1927 5.95784C11.8312 6.41804 12.3087 7.06748 12.5576 7.81415C12.8065 8.56082 12.8141 9.36687 12.5794 10.1181C12.3448 10.8694 11.8796 11.5278 11.25 12C10.9572 12.2899 10.7367 12.6446 10.6064 13.0355C10.4761 13.4264 10.4397 13.8424 10.5 14.25C10.5 14.6478 10.342 15.0294 10.0607 15.3107C9.77936 15.592 9.39782 15.75 9 15.75C8.60218 15.75 8.22064 15.592 7.93934 15.3107C7.65804 15.0294 7.5 14.6478 7.5 14.25C7.56034 13.8424 7.52389 13.4264 7.3936 13.0355C7.2633 12.6446 7.04282 12.2899 6.75 12Z",stroke:i,strokeWidth:"1.2",strokeLinecap:"round",strokeLinejoin:"round"})})}),(0,g.jsxs)("div",{className:"wb-notice-content",children:[(0,g.jsx)("div",{className:"wb-append-inner",children:(0,g.jsx)("input",{className:"wb-append-label",value:t.lable,onChange:e=>{_(e,"lable")},style:{fontWeight:"600"}})}),""!==t.description&&(0,g.jsx)("div",{children:(0,g.jsx)("textarea",{className:"wb-note-inp",value:t.description,placeholder:(0,a.__)("Write Your Note here....","wdesignkit"),onChange:e=>{_(e,"description")}})})]})]}),1==t.dismissible&&(0,g.jsx)("div",{className:"wb-notice-close",children:(0,g.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",width:"13",height:"13",children:(0,g.jsx)("path",{d:"M 39.486328 6.9785156 A 1.50015 1.50015 0 0 0 38.439453 7.4394531 L 24 21.878906 L 9.5605469 7.4394531 A 1.50015 1.50015 0 0 0 8.484375 6.984375 A 1.50015 1.50015 0 0 0 7.4394531 9.5605469 L 21.878906 24 L 7.4394531 38.439453 A 1.50015 1.50015 0 1 0 9.5605469 40.560547 L 24 26.121094 L 38.439453 40.560547 A 1.50015 1.50015 0 1 0 40.560547 38.439453 L 26.121094 24 L 40.560547 9.5605469 A 1.50015 1.50015 0 0 0 39.486328 6.9785156 z"})})})]}),$()&&(0,g.jsxs)("div",{className:"wdkit-three-dot-cover",children:[(0,g.jsx)("i",{className:"wdkit-i-wb-vertical-menu",onClick:e=>{N(e)}}),(0,g.jsx)("div",{className:"wdkit-three-dot-cover-content",children:(0,g.jsx)(j,{only_edit:!!t?.only_edit})})]})]})]})}if("radioadvanced"==t.type)return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"wb-drop",onDragOver:e=>{e.preventDefault()},onDragEnter:e=>{e.target.classList.add("wb_drag-over")},onDrop:e=>{e.target.classList.remove("wb_drag-over")},onDragLeave:e=>{e.target.classList.remove("wb_drag-over")}}),(0,g.jsxs)("div",{className:"wb-radio-advanced wb-main-component "+(v()==t.name?"wkit-wb-selected":""),draggable:m,onDragEnd:()=>{u(!1)},"data-compo_id":t.compo_index,"data-sec_id":t.sec_index,"data-array_type":t.array_type,"data-rnp":t.rnp_id,"data-rnp2":t.rnp2_id,"data-nha":t.nha_type,"data-editable":t?.only_edit,onClick:e=>{x(e)},children:[(0,g.jsx)("div",{className:"wb-draggable-icon",onMouseDown:()=>{u(!0)},onMouseUp:()=>{u(!0)},children:(0,g.jsx)("span",{className:"tp-sec-edit",children:(0,g.jsx)("i",{className:"wdkit-i-wb-move"})})}),(0,g.jsxs)("div",{className:"wb-radio-advanced-content",children:[(0,g.jsx)("div",{className:"wb-append-inner",children:(0,g.jsx)("input",{className:"wb-append-label",value:t.lable,onChange:e=>{_(e,"lable")}})}),(0,g.jsxs)("div",{className:"wb-radio-color",children:[(0,g.jsx)("div",{className:"normal"==r?"radio-btn active-ra":"radio-btn",onClick:()=>{l("normal")},children:(0,a.__)("Normal","wdesignkit")}),(0,g.jsx)("div",{className:"grediant"==r?"radio-btn active-ra":"radio-btn",onClick:()=>{l("grediant")},children:(0,a.__)("grediant","wdesignkit")})]})]}),$()&&(0,g.jsxs)("div",{className:"wdkit-three-dot-cover",children:[(0,g.jsx)("i",{className:"wdkit-i-wb-vertical-menu",onClick:e=>{N(e)}}),(0,g.jsx)("div",{className:"wdkit-three-dot-cover-content",children:(0,g.jsx)(j,{only_edit:!!t?.only_edit})})]})]})]});if("slider"==t.type)return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"wb-drop",onDragOver:e=>{e.preventDefault()},onDragEnter:e=>{e.target.classList.add("wb_drag-over")},onDrop:e=>{e.target.classList.remove("wb_drag-over")},onDragLeave:e=>{e.target.classList.remove("wb_drag-over")}}),(0,g.jsxs)("div",{className:"wb-range wb-main-component "+(v()==t.name?"wkit-wb-selected":""),draggable:m,onDragEnd:()=>{u(!1)},style:{marginTop:"before"==t.separator?"15px":"",marginBottom:"after"==t.separator?"15px":""},"data-compo_id":t.compo_index,"data-sec_id":t.sec_index,"data-array_type":t.array_type,"data-rnp":t.rnp_id,"data-rnp2":t.rnp2_id,"data-nha":t.nha_type,"data-editable":t?.only_edit,onClick:e=>{x(e)},children:[(0,g.jsx)("div",{className:"wb-draggable-icon",onMouseDown:()=>{u(!0)},onMouseUp:()=>{u(!0)},children:(0,g.jsx)("span",{className:"tp-sec-edit",children:(0,g.jsx)("i",{className:"wdkit-i-wb-move"})})}),(0,g.jsx)("div",{className:"wb-range-content",children:(0,g.jsxs)("div",{className:"wb-append-input-field",style:{flexDirection:1==t.lableBlock?"column":"row"},children:[(0,g.jsx)("div",{className:"wb-append-inner",children:(0,g.jsx)("input",{style:{display:1==t.showLable?"":"none"},className:"wb-append-label",value:t.lable,onChange:e=>{_(e,"lable")}})}),(0,g.jsx)("div",{className:"wb-range-bar wb-right-append",children:t&&t.size_units&&t.slider_defaultValue&&t.slider_defaultValue[0]&&t.size_units.map(((e,a)=>{if(t.slider_defaultValue[0]==e.type)return(0,g.jsxs)(Ui,{children:[(0,g.jsx)("input",{className:"wb-range-inp",min:e.min,max:e.max,step:e.step,type:"range",value:t.slider_defaultValue[1],onChange:e=>{_(e,"defaultValue_slider")},style:{background:`linear-gradient(to right, ${i()} 0%, ${i()} ${100*(t.slider_defaultValue[1]-e.min)/(e.max-e.min)}%, #e1e1e1 0%, #e1e1e1 0%)`}}),(0,g.jsx)("input",{className:"range-inp-val",min:e.min,max:e.max,step:e.step,type:"number",value:t.slider_defaultValue[1],onChange:e=>{_(e,"defaultValue_slider")}})]},a)}))})]})}),$()&&(0,g.jsx)("div",{className:"wdkit-wb-cont-opt-cover",children:(0,g.jsxs)("div",{className:"wdkit-three-dot-cover",children:[(0,g.jsx)("i",{className:"wdkit-i-wb-vertical-menu",onClick:e=>{N(e)}}),(0,g.jsx)("div",{className:"wdkit-three-dot-cover-content",children:(0,g.jsx)(j,{only_edit:!!t?.only_edit})})]})})]})]});if("select"==t.type)return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"wb-drop",onDragOver:e=>{e.preventDefault()},onDragEnter:e=>{e.target.classList.add("wb_drag-over")},onDrop:e=>{e.target.classList.remove("wb_drag-over")},onDragLeave:e=>{e.target.classList.remove("wb_drag-over")}}),(0,g.jsxs)("div",{className:"wb-select wb-main-component "+(v()==t.name?"wkit-wb-selected":""),draggable:m,onDragEnd:()=>{u(!1)},style:{marginTop:"before"==t.separator?"15px":"",marginBottom:"after"==t.separator?"15px":""},"data-compo_id":t.compo_index,"data-sec_id":t.sec_index,"data-array_type":t.array_type,"data-rnp":t.rnp_id,"data-rnp2":t.rnp2_id,"data-nha":t.nha_type,"data-editable":t?.only_edit,onClick:e=>{x(e)},children:[(0,g.jsx)("div",{className:"wb-draggable-icon",onMouseDown:()=>{u(!0)},onMouseUp:()=>{u(!0)},children:(0,g.jsx)("span",{className:"tp-sec-edit",children:(0,g.jsx)("i",{className:"wdkit-i-wb-move"})})}),(0,g.jsxs)("div",{className:"wb-select-content",style:{flexDirection:1==t.lableBlock?"column":"row"},children:[(0,g.jsx)("div",{className:"wb-append-inner",children:(0,g.jsx)("input",{className:"wb-append-label",style:{display:1==t.showLable?"":"none"},value:t.lable,onChange:e=>{_(e,"lable")}})}),(0,g.jsxs)("div",{className:"wkit-wb-custom-dropDown",children:[(0,g.jsxs)("div",{className:"wkit-wb-custom-dropDown-header",onClick:e=>{y(e)},children:[(0,g.jsx)("label",{children:t.select_defaultValue[1]}),(0,g.jsx)("i",{className:"wdkit-i-down-arrow"})]}),(0,g.jsx)("div",{className:"wkit-wb-custom-dropDown-content",children:t.options.map(((e,t)=>{let a=[e.value,e.lable];return(0,g.jsx)(Ui,{children:(0,g.jsx)("option",{value:e.lable,onClick:e=>{_(e,"select_defaultValue",a)},children:e.lable})},t)}))})]})]}),$()&&(0,g.jsx)("div",{className:"wdkit-wb-cont-opt-cover",children:(0,g.jsxs)("div",{className:"wdkit-three-dot-cover",children:[(0,g.jsx)("i",{className:"wdkit-i-wb-vertical-menu",onClick:e=>{N(e)}}),(0,g.jsx)("div",{className:"wdkit-three-dot-cover-content",children:(0,g.jsx)(j,{only_edit:!!t?.only_edit})})]})})]})]});if("selecttemplate"==t.type)return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"wb-drop",onDragOver:e=>{e.preventDefault()},onDragEnter:e=>{e.target.classList.add("wb_drag-over")},onDrop:e=>{e.target.classList.remove("wb_drag-over")},onDragLeave:e=>{e.target.classList.remove("wb_drag-over")}}),(0,g.jsxs)("div",{className:"wb-select wb-main-component "+(v()==t.name?"wkit-wb-selected":""),draggable:m,onDragEnd:()=>{u(!1)},style:{marginTop:"before"==t.separator?"15px":"",marginBottom:"after"==t.separator?"15px":""},"data-compo_id":t.compo_index,"data-sec_id":t.sec_index,"data-array_type":t.array_type,"data-rnp":t.rnp_id,"data-rnp2":t.rnp2_id,"data-nha":t.nha_type,"data-editable":t?.only_edit,onClick:e=>{x(e)},children:[(0,g.jsx)("div",{className:"wb-draggable-icon",onMouseDown:()=>{u(!0)},onMouseUp:()=>{u(!0)},children:(0,g.jsx)("span",{className:"tp-sec-edit",children:(0,g.jsx)("i",{className:"wdkit-i-wb-move"})})}),(0,g.jsxs)("div",{className:"wb-select-content",style:{flexDirection:1==t.lableBlock?"column":"row"},children:[(0,g.jsx)("div",{className:"wb-append-inner",children:(0,g.jsx)("input",{className:"wb-append-label",style:{display:1==t.showLable?"":"none"},value:t.lable,onChange:e=>{_(e,"lable")}})}),(0,g.jsxs)("div",{className:"wkit-wb-custom-dropDown",children:[(0,g.jsxs)("div",{className:"wkit-wb-custom-dropDown-header",onClick:e=>{y(e)},children:[(0,g.jsx)("label",{children:"Select Template"}),(0,g.jsx)("i",{className:"wdkit-i-down-arrow"})]}),(0,g.jsx)("div",{className:"wkit-wb-custom-dropDown-content",children:(0,g.jsx)("option",{selected:"Select Template",children:(0,a.__)("Select Template","wdesignkit")})})]}),$()&&(0,g.jsx)("div",{className:"wdkit-wb-cont-opt-cover",children:(0,g.jsxs)("div",{className:"wdkit-three-dot-cover",children:[(0,g.jsx)("i",{className:"wdkit-i-wb-vertical-menu",onClick:e=>{N(e)}}),(0,g.jsx)("div",{className:"wdkit-three-dot-cover-content",children:(0,g.jsx)(j,{only_edit:!!t?.only_edit})})]})})]})]})]});if("align"==t.type)return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"wb-drop",onDragOver:e=>{e.preventDefault()},onDragEnter:e=>{e.target.classList.add("wb_drag-over")},onDrop:e=>{e.target.classList.remove("wb_drag-over")},onDragLeave:e=>{e.target.classList.remove("wb_drag-over")}}),(0,g.jsxs)("div",{className:"wb-alignment wb-main-component wb-main-component "+(v()==t.name?"wkit-wb-selected":""),draggable:m,onDragEnd:()=>{u(!1)},style:{marginTop:"before"==t.separator?"15px":"",marginBottom:"after"==t.separator?"15px":""},"data-compo_id":t.compo_index,"data-sec_id":t.sec_index,"data-array_type":t.array_type,"data-rnp":t.rnp_id,"data-rnp2":t.rnp2_id,"data-nha":t.nha_type,"data-editable":t?.only_edit,onClick:e=>{x(e)},children:[(0,g.jsx)("div",{className:"wb-draggable-icon",onMouseDown:()=>{u(!0)},onMouseUp:()=>{u(!0)},children:(0,g.jsx)("span",{className:"tp-sec-edit",children:(0,g.jsx)("i",{className:"wdkit-i-wb-move"})})}),(0,g.jsxs)("div",{className:"wb-alignment-header",children:[(0,g.jsxs)("div",{className:"wb-append-inner",style:{flexDirection:"row"},children:[(0,g.jsx)("input",{style:{display:1==t.showLable?"":"none"},className:"wb-append-label",value:t.lable,onChange:e=>{_(e,"lable")}}),(0,g.jsxs)("div",{className:"wb-icons",children:["text-align"==t.alignType&&(0,g.jsxs)(Ui,{children:[(0,g.jsxs)("div",{className:"wkit-wb-alignIcon-content",children:[(0,g.jsx)("div",{className:"wkit-wb-align-icon-lable",children:(0,a.__)("Left","wdesignkit")}),(0,g.jsx)("img",{className:"wkit-wb-align-icon",src:`${Ji}assets/images/wb-svg/eicon-text-align-left.svg`})]}),(0,g.jsxs)("div",{className:"wkit-wb-alignIcon-content",children:[(0,g.jsx)("div",{className:"wkit-wb-align-icon-lable",children:(0,a.__)("Center","wdesignkit")}),(0,g.jsx)("img",{className:"wkit-wb-align-icon",src:`${Ji}assets/images/wb-svg/eicon-text-align-center.svg`})]}),(0,g.jsxs)("div",{className:"wkit-wb-alignIcon-content",children:[(0,g.jsx)("div",{className:"wkit-wb-align-icon-lable",children:(0,a.__)("Right","wdesignkit")}),(0,g.jsx)("img",{className:"wkit-wb-align-icon",src:`${Ji}assets/images/wb-svg/eicon-text-align-right.svg`})]}),(0,g.jsxs)("div",{className:"wkit-wb-alignIcon-content",children:[(0,g.jsx)("div",{className:"wkit-wb-align-icon-lable",children:(0,a.__)("Justify","wdesignkit")}),(0,g.jsx)("img",{className:"wkit-wb-align-icon",src:`${Ji}assets/images/wb-svg/eicon-text-align-justify.svg`})]})]}),"justify-content"==t.alignType&&(0,g.jsxs)(Ui,{children:[(0,g.jsxs)("div",{className:"wkit-wb-alignIcon-content",children:[(0,g.jsx)("div",{className:"wkit-wb-align-icon-lable",children:(0,a.__)("Start","wdesignkit")}),(0,g.jsx)("img",{className:"wkit-wb-align-icon",src:`${Ji}assets/images/wb-svg/justify-content-start.svg`})]}),(0,g.jsxs)("div",{className:"wkit-wb-alignIcon-content",children:[(0,g.jsx)("div",{className:"wkit-wb-align-icon-lable",children:(0,a.__)("Center","wdesignkit")}),(0,g.jsx)("img",{className:"wkit-wb-align-icon",src:`${Ji}assets/images/wb-svg/justify-content-center.svg`})]}),(0,g.jsxs)("div",{className:"wkit-wb-alignIcon-content",children:[(0,g.jsx)("div",{className:"wkit-wb-align-icon-lable",children:(0,a.__)("End","wdesignkit")}),(0,g.jsx)("img",{className:"wkit-wb-align-icon",src:`${Ji}assets/images/wb-svg/justify-content-end.svg`})]}),(0,g.jsxs)("div",{className:"wkit-wb-alignIcon-content",children:[(0,g.jsx)("div",{className:"wkit-wb-align-icon-lable",children:(0,a.__)("Space Between","wdesignkit")}),(0,g.jsx)("img",{className:"wkit-wb-align-icon",src:`${Ji}assets/images/wb-svg/justify-content-space-between.svg`})]}),(0,g.jsxs)("div",{className:"wkit-wb-alignIcon-content",children:[(0,g.jsx)("div",{className:"wkit-wb-align-icon-lable",children:(0,a.__)("Space Around","wdesignkit")}),(0,g.jsx)("img",{className:"wkit-wb-align-icon",src:`${Ji}assets/images/wb-svg/justify-content-space-around.svg`})]}),(0,g.jsxs)("div",{className:"wkit-wb-alignIcon-content",children:[(0,g.jsx)("div",{className:"wkit-wb-align-icon-lable",children:(0,a.__)("Space Evenly","wdesignkit")}),(0,g.jsx)("img",{className:"wkit-wb-align-icon",src:`${Ji}assets/images/wb-svg/justify-content-space-evenly.svg`})]})]}),"align-items"==t.alignType&&(0,g.jsxs)(Ui,{children:[(0,g.jsxs)("div",{className:"wkit-wb-alignIcon-content",children:[(0,g.jsx)("div",{className:"wkit-wb-align-icon-lable",children:(0,a.__)("Start","wdesignkit")}),(0,g.jsx)("img",{className:"wkit-wb-align-icon",src:`${Ji}assets/images/wb-svg/align-items-start.svg`})]}),(0,g.jsxs)("div",{className:"wkit-wb-alignIcon-content",children:[(0,g.jsx)("div",{className:"wkit-wb-align-icon-lable",children:(0,a.__)("Center","wdesignkit")}),(0,g.jsx)("img",{className:"wkit-wb-align-icon",src:`${Ji}assets/images/wb-svg/align-items-center.svg`})]}),(0,g.jsxs)("div",{className:"wkit-wb-alignIcon-content",children:[(0,g.jsx)("div",{className:"wkit-wb-align-icon-lable",children:(0,a.__)("End","wdesignkit")}),(0,g.jsx)("img",{className:"wkit-wb-align-icon",src:`${Ji}assets/images/wb-svg/align-items-end.svg`})]}),(0,g.jsxs)("div",{className:"wkit-wb-alignIcon-content",children:[(0,g.jsx)("div",{className:"wkit-wb-align-icon-lable",children:(0,a.__)("Stretch","wdesignkit")}),(0,g.jsx)("img",{className:"wkit-wb-align-icon",src:`${Ji}assets/images/wb-svg/align-items-stretch.svg`})]})]}),"flex-direction"==t.alignType&&(0,g.jsxs)(Ui,{children:[(0,g.jsxs)("div",{className:"wkit-wb-alignIcon-content",children:[(0,g.jsxs)("div",{className:"wkit-wb-align-icon-lable",children:[(0,a.__)("Vertical","wdesignkit"),"(Collumn)"]}),(0,g.jsx)("img",{className:"wkit-wb-align-icon",src:`${Ji}assets/images/wb-svg/align-vertical-direction.svg`})]}),(0,g.jsxs)("div",{className:"wkit-wb-alignIcon-content",children:[(0,g.jsxs)("div",{className:"wkit-wb-align-icon-lable",children:[(0,a.__)("Horizontal","wdesignkit"),"(row)"]}),(0,g.jsx)("img",{className:"wkit-wb-align-icon",src:`${Ji}assets/images/wb-svg/align-horizontal-direction.svg`})]}),(0,g.jsxs)("div",{className:"wkit-wb-alignIcon-content",children:[(0,g.jsx)("div",{className:"wkit-wb-align-icon-lable",children:(0,a.__)("Row","wdesignkit")}),(0,g.jsx)("img",{className:"wkit-wb-align-icon",src:`${Ji}assets/images/wb-svg/align-reverse-direction.svg`})]})]})]})]}),$()&&(0,g.jsxs)("div",{className:"wdkit-three-dot-cover",children:[(0,g.jsx)("i",{className:"wdkit-i-wb-vertical-menu",onClick:e=>{N(e)}}),(0,g.jsx)("div",{className:"wdkit-three-dot-cover-content",children:(0,g.jsx)(j,{only_edit:!!t?.only_edit})})]})]}),t&&t.description.length>=1&&(0,g.jsx)("p",{className:"wb-append-dec",children:t.description})]})]});if("headingtags"==t.type)return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"wb-drop",onDragOver:e=>{e.preventDefault()},onDragEnter:e=>{e.target.classList.add("wb_drag-over")},onDrop:e=>{e.target.classList.remove("wb_drag-over")},onDragLeave:e=>{e.target.classList.remove("wb_drag-over")}}),(0,g.jsxs)("div",{className:"wb-select wb-main-component "+(v()==t.name?"wkit-wb-selected":""),draggable:m,onDragEnd:()=>{u(!1)},style:{marginTop:"before"==t.separator?"15px":"",marginBottom:"after"==t.separator?"15px":""},"data-compo_id":t.compo_index,"data-sec_id":t.sec_index,"data-array_type":t.array_type,"data-rnp":t.rnp_id,"data-rnp2":t.rnp2_id,"data-nha":t.nha_type,"data-editable":t?.only_edit,onClick:e=>{x(e)},children:[(0,g.jsx)("div",{className:"wb-draggable-icon",onMouseDown:()=>{u(!0)},onMouseUp:()=>{u(!0)},children:(0,g.jsx)("span",{className:"tp-sec-edit",children:(0,g.jsx)("i",{className:"wdkit-i-wb-move"})})}),(0,g.jsxs)("div",{className:"wb-select-content",style:{flexDirection:1==t.lableBlock?"column":"row"},children:[(0,g.jsx)("div",{className:"wb-append-inner",children:(0,g.jsx)("input",{className:"wb-append-label",value:t.lable,onChange:e=>{_(e,"lable")}})}),(0,g.jsxs)("div",{className:"wkit-wb-custom-dropDown",children:[(0,g.jsxs)("div",{className:"wkit-wb-custom-dropDown-header",onClick:e=>{y(e)},children:[(0,g.jsx)("label",{children:t.select_defaultValue?.[1]}),(0,g.jsx)("i",{className:"wdkit-i-down-arrow"})]}),(0,g.jsx)("div",{className:"wkit-wb-custom-dropDown-content",children:t?.options?.length>0&&t?.options.map(((e,t)=>{let a=[e.value,e.lable];return(0,g.jsx)(Ui,{children:(0,g.jsx)("option",{value:e.lable,onClick:e=>{_(e,"select_defaultValue",a)},children:e.lable})},t)}))})]})]}),$()&&(0,g.jsx)("div",{className:"wdkit-wb-cont-opt-cover",children:(0,g.jsxs)("div",{className:"wdkit-three-dot-cover",children:[(0,g.jsx)("i",{className:"wdkit-i-wb-vertical-menu",onClick:e=>{N(e)}}),(0,g.jsx)("div",{className:"wdkit-three-dot-cover-content",children:(0,g.jsx)(j,{only_edit:!!t?.only_edit})})]})})]})]});if("select2"==t.type)return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"wb-drop",onDragOver:e=>{e.preventDefault()},onDragEnter:e=>{e.target.classList.add("wb_drag-over")},onDrop:e=>{e.target.classList.remove("wb_drag-over")},onDragLeave:e=>{e.target.classList.remove("wb_drag-over")}}),(0,g.jsxs)("div",{className:"wb-main-component wb-select2 "+(v()==t.name?"wkit-wb-selected":""),draggable:m,onDragEnd:()=>{u(!1)},style:{marginTop:"before"==t.separator?"15px":"",marginBottom:"after"==t.separator?"15px":""},"data-compo_id":t.compo_index,"data-sec_id":t.sec_index,"data-array_type":t.array_type,"data-rnp":t.rnp_id,"data-rnp2":t.rnp2_id,"data-nha":t.nha_type,"data-editable":t?.only_edit,onClick:e=>{x(e)},children:[(0,g.jsx)("div",{className:"wb-draggable-icon",onMouseDown:()=>{u(!0)},onMouseUp:()=>{u(!0)},children:(0,g.jsx)("span",{className:"tp-sec-edit",children:(0,g.jsx)("i",{className:"wdkit-i-wb-move"})})}),(0,g.jsxs)("div",{className:"wb-select2-content",style:{flexDirection:1==t.lableBlock?"column":"row"},children:[(0,g.jsx)("div",{className:"wb-append-inner",children:(0,g.jsx)("input",{className:"wb-append-label",style:{display:1==t.showLable?"":"none"},value:t.lable,onChange:e=>{_(e,"lable")}})}),(0,g.jsxs)("div",{className:"wkit-wb-custom-dropDown",children:[(0,g.jsxs)("div",{className:"wkit-wb-custom-dropDown-header wkit-multi-select-dropDown",onClick:e=>{y(e)},children:[t.select2_defaultValue&&t.select2_defaultValue.map(((e,t)=>(0,g.jsxs)("div",{className:"wkit-wb-multi-selected",children:[(0,g.jsx)("div",{className:"wkit-wb-remove-value",onClick:e=>{_(e,"select2_defaultValue",t,"remove")},children:(0,g.jsx)("i",{className:"wdkit-i-cancel"})}),(0,g.jsx)("label",{children:e.lable})]},t))),(0,g.jsx)("i",{className:"wdkit-i-wb-plus"})]}),(0,g.jsx)("div",{className:"wkit-wb-custom-dropDown-content wkit-multi-select-dropDown",style:{marginBottom:-37*(t.options.length-t.select2_defaultValue.length)+"px"},children:t.options.map(((e,a)=>{let i={value:e.value,lable:e.lable};return(0,g.jsx)("div",{className:"wkit-wb-multiSelect-value",children:t.select2_defaultValue.find((e=>e.value==i.value))&&t.select2_defaultValue.find((e=>e.lable==i.lable))?"":(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("input",{type:"checkbox",style:{display:"none"},onChange:e=>{_(e,"select2_defaultValue",i,"add")}}),(0,g.jsx)("label",{onClick:e=>{e.target.previousSibling.click()},children:e.lable})]})},a)}))})]})]}),$()&&(0,g.jsx)("div",{className:"wdkit-wb-cont-opt-cover",children:(0,g.jsxs)("div",{className:"wdkit-three-dot-cover",children:[(0,g.jsx)("i",{className:"wdkit-i-wb-vertical-menu",onClick:e=>{N(e)}}),(0,g.jsx)("div",{className:"wdkit-three-dot-cover-content",children:(0,g.jsx)(j,{only_edit:!!t?.only_edit})})]})})]})]});if("textarea"==t.type)return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"wb-drop",onDragOver:e=>{e.preventDefault()},onDragEnter:e=>{e.target.classList.add("wb_drag-over")},onDrop:e=>{e.target.classList.remove("wb_drag-over")},onDragLeave:e=>{e.target.classList.remove("wb_drag-over")}}),(0,g.jsxs)("div",{className:"wb-textarea wb-main-component "+(v()==t.name?"wkit-wb-selected":""),draggable:m,onDragEnd:()=>{u(!1)},style:{marginTop:"before"==t.separator?"15px":"",marginBottom:"after"==t.separator?"15px":""},"data-compo_id":t.compo_index,"data-sec_id":t.sec_index,"data-array_type":t.array_type,"data-rnp":t.rnp_id,"data-rnp2":t.rnp2_id,"data-nha":t.nha_type,"data-editable":t?.only_edit,onClick:e=>{x(e)},children:[(0,g.jsx)("div",{className:"wb-draggable-icon",onMouseDown:()=>{u(!0)},onMouseUp:()=>{u(!0)},children:(0,g.jsx)("span",{className:"tp-sec-edit",children:(0,g.jsx)("i",{className:"wdkit-i-wb-move"})})}),(0,g.jsxs)("div",{className:"wb-textarea-content",style:{flexDirection:1==t.lableBlock?"column":"row"},children:[(0,g.jsx)("div",{className:"wb-append-inner",children:(0,g.jsx)("input",{style:{display:1==t.showLable?"":"none"},className:"wb-append-label",value:t.lable,onChange:e=>{_(e,"lable")}})}),(0,g.jsx)("textarea",{className:"wb-textarea-inp",rows:t.rows,value:t.defaultValue,placeholder:t.placeHolder,onChange:e=>{_(e,"defaultValue")}})]}),$()&&(0,g.jsx)("div",{className:"wdkit-wb-cont-opt-cover",children:(0,g.jsxs)("div",{className:"wdkit-three-dot-cover",children:[(0,g.jsx)("i",{className:"wdkit-i-wb-vertical-menu",onClick:e=>{N(e)}}),(0,g.jsx)("div",{className:"wdkit-three-dot-cover-content",children:(0,g.jsx)(j,{only_edit:!!t?.only_edit})})]})}),t&&t.description.length>=1&&(0,g.jsx)("p",{className:"wb-append-dec",children:t.description})]})]});if("switcher"==t.type)return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"wb-drop",onDragOver:e=>{e.preventDefault()},onDragEnter:e=>{e.target.classList.add("wb_drag-over")},onDrop:e=>{e.target.classList.remove("wb_drag-over")},onDragLeave:e=>{e.target.classList.remove("wb_drag-over")}}),(0,g.jsxs)("div",{className:"wb-toggle wb-main-component "+(v()==t.name?"wkit-wb-selected":""),draggable:m,onDragEnd:()=>{u(!1)},style:{marginTop:"before"==t.separator?"15px":"",marginBottom:"after"==t.separator?"15px":""},"data-compo_id":t.compo_index,"data-sec_id":t.sec_index,"data-array_type":t.array_type,"data-rnp":t.rnp_id,"data-rnp2":t.rnp2_id,"data-nha":t.nha_type,"data-editable":t?.only_edit,onClick:e=>{x(e)},children:[(0,g.jsx)("div",{className:"wb-draggable-icon",onMouseDown:()=>{u(!0)},onMouseUp:()=>{u(!0)},children:(0,g.jsx)("span",{className:"tp-sec-edit",children:(0,g.jsx)("i",{className:"wdkit-i-wb-move"})})}),(0,g.jsxs)("div",{className:"wb-toggle-content",style:{flexDirection:1==t.lableBlock?"column":"row"},children:[(0,g.jsx)("input",{className:"wb-append-inner wb-append-label",style:{display:1==t.showLable?"":"none"},value:t.lable,onChange:e=>{_(e,"lable")}}),(0,g.jsxs)("label",{className:"wb-switch",children:[(0,g.jsx)("input",{type:"checkbox",checked:t.defaultValue,onChange:e=>{_(e,"switcher_defaultValue")}}),(0,g.jsx)("span",{className:"wb-slider"})]})]}),$()&&(0,g.jsx)("div",{className:"wdkit-wb-cont-opt-cover",children:(0,g.jsxs)("div",{className:"wdkit-three-dot-cover",children:[(0,g.jsx)("i",{className:"wdkit-i-wb-vertical-menu",onClick:e=>{N(e)}}),(0,g.jsx)("div",{className:"wdkit-three-dot-cover-content",children:(0,g.jsx)(j,{only_edit:!!t?.only_edit})})]})})]})]});if("url"==t.type)return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"wb-drop",onDragOver:e=>{e.preventDefault()},onDragEnter:e=>{e.target.classList.add("wb_drag-over")},onDrop:e=>{e.target.classList.remove("wb_drag-over")},onDragLeave:e=>{e.target.classList.remove("wb_drag-over")}}),(0,g.jsxs)("div",{className:"wb-url wb-main-component "+(v()==t.name?"wkit-wb-selected":""),draggable:m,onDragEnd:()=>{u(!1)},style:{marginTop:"before"==t.separator?"15px":"",marginBottom:"after"==t.separator?"15px":""},"data-compo_id":t.compo_index,"data-sec_id":t.sec_index,"data-array_type":t.array_type,"data-rnp":t.rnp_id,"data-rnp2":t.rnp2_id,"data-nha":t.nha_type,"data-editable":t?.only_edit,onClick:e=>{x(e)},children:[(0,g.jsx)("div",{className:"wb-draggable-icon",onMouseDown:()=>{u(!0)},onMouseUp:()=>{u(!0)},children:(0,g.jsx)("span",{className:"tp-sec-edit",children:(0,g.jsx)("i",{className:"wdkit-i-wb-move"})})}),(0,g.jsxs)("div",{className:"wb-append-input-field",style:{flexDirection:1==t.lableBlock?"column":"row"},children:[(0,g.jsx)("div",{className:"wb-append-inner",children:(0,g.jsx)("input",{className:"wb-append-label",style:{display:1==t.showLable?"":"none"},value:t.lable,onChange:e=>{_(e,"lable")}})}),(0,g.jsxs)("div",{className:"wb-right-append",children:[(0,g.jsxs)("div",{className:"wb-url-content",children:[(0,g.jsx)("input",{className:"wb-url-inp",type:"url",placeholder:t.placeHolder,value:t.defaultValue,onChange:e=>{_(e,"defaultValue")}}),(0,g.jsx)("span",{className:"inp-url-icon",onClick:e=>{Object.values(e.target.parentElement.nextSibling.classList).includes("wb-show")?e.target.parentElement.nextSibling.classList.remove("wb-show"):e.target.parentElement.nextSibling.classList.add("wb-show")},children:(0,g.jsx)("i",{className:"wdkit-i-settings"})})]}),(0,g.jsxs)("div",{className:"wb-url-options",children:[(0,g.jsxs)("div",{className:"url-opt",children:[(0,g.jsx)("input",{type:"checkbox",checked:t.is_external,onChange:e=>{_(e,"is_external")}}),(0,g.jsx)("label",{children:(0,a.__)("Open in new window","wdesignkit")})]}),(0,g.jsxs)("div",{className:"url-opt",children:[(0,g.jsx)("input",{type:"checkbox",checked:t.nofollow,onChange:e=>{_(e,"nofollow")}}),(0,g.jsx)("label",{children:(0,a.__)("Add Nofollow","wdesignkit")})]})]})]})]}),t&&t.description.length>=1&&(0,g.jsx)("p",{className:"wb-append-dec",children:t.description}),$()&&(0,g.jsx)("div",{className:"wdkit-wb-cont-opt-cover",children:(0,g.jsxs)("div",{className:"wdkit-three-dot-cover",children:[(0,g.jsx)("i",{className:"wdkit-i-wb-vertical-menu",onClick:e=>{N(e)}}),(0,g.jsx)("div",{className:"wdkit-three-dot-cover-content",children:(0,g.jsx)(j,{only_edit:!!t?.only_edit})})]})})]})]});if("alert"==t.type){let e="",a="";return"warning"==t.alert_type&&(e="2px solid #f59e0b",a="#fffbeb"),"info"==t.alert_type&&(e="2px solid #2563eb",a="#f0f7ff"),"success"==t.alert_type&&(e="2px solid #0a875a",a="#f2fdf5"),"danger"==t.alert_type&&(e="2px solid #dc2626",a="#fef1f4"),(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"wb-drop",onDragOver:e=>{e.preventDefault()},onDragEnter:e=>{e.target.classList.add("wb_drag-over")},onDrop:e=>{e.target.classList.remove("wb_drag-over")},onDragLeave:e=>{e.target.classList.remove("wb_drag-over")}}),(0,g.jsxs)("div",{className:"wb-note wb-main-component "+(v()==t.name?"wkit-wb-selected":""),draggable:m,onDragEnd:()=>{u(!1)},"data-compo_id":t.compo_index,"data-sec_id":t.sec_index,"data-array_type":t.array_type,"data-rnp":t.rnp_id,"data-rnp2":t.rnp2_id,"data-nha":t.nha_type,"data-editable":t?.only_edit,onClick:e=>{x(e)},children:[(0,g.jsx)("div",{className:"wb-draggable-icon",onMouseDown:()=>{u(!0)},onMouseUp:()=>{u(!0)},children:(0,g.jsx)("span",{className:"tp-sec-edit",children:(0,g.jsx)("i",{className:"wdkit-i-wb-move"})})}),(0,g.jsxs)("div",{className:"wb-note-content",style:{borderLeft:e,background:a,padding:"10px"},children:[(0,g.jsxs)("div",{className:"wb-append-inner",style:{flexDirection:"column"},children:[(0,g.jsx)("input",{className:"wb-append-label",value:t.lable,onChange:e=>{_(e,"lable")},style:{background:a}}),(0,g.jsx)("input",{className:"wb-append-label",value:t.description,onChange:e=>{_(e,"description")},style:{background:a}})]}),(0,g.jsx)("div",{})]}),$()&&(0,g.jsxs)("div",{className:"wdkit-three-dot-cover",children:[(0,g.jsx)("i",{className:"wdkit-i-wb-vertical-menu",onClick:e=>{N(e)}}),(0,g.jsx)("div",{className:"wdkit-three-dot-cover-content",children:(0,g.jsx)(j,{only_edit:!!t?.only_edit})})]})]})]})}return"deprecatednotice"==t.type?(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"wb-drop",onDragOver:e=>{e.preventDefault()},onDragEnter:e=>{e.target.classList.add("wb_drag-over")},onDrop:e=>{e.target.classList.remove("wb_drag-over")},onDragLeave:e=>{e.target.classList.remove("wb_drag-over")}}),(0,g.jsxs)("div",{className:"wb-note wb-main-component "+(v()==t.name?"wkit-wb-selected":""),draggable:m,onDragEnd:()=>{u(!1)},"data-compo_id":t.compo_index,"data-sec_id":t.sec_index,"data-array_type":t.array_type,"data-rnp":t.rnp_id,"data-rnp2":t.rnp2_id,"data-nha":t.nha_type,"data-editable":t?.only_edit,onClick:e=>{x(e)},children:[(0,g.jsx)("div",{className:"wb-draggable-icon",onMouseDown:()=>{u(!0)},onMouseUp:()=>{u(!0)},children:(0,g.jsx)("span",{className:"tp-sec-edit",children:(0,g.jsx)("i",{className:"wdkit-i-wb-move"})})}),(0,g.jsxs)("div",{className:"wb-note-content",style:{borderLeft:"2px solid #f59e0b",background:"#fffbeb",padding:"10px"},children:[(0,g.jsx)("div",{className:"wb-append-inner",children:(0,g.jsx)("p",{className:"wb-append-label",style:{background:"#fffbeb",height:"180px"},children:(0,a.__)(`The ${t.deprecatedValue[0].Widget} widget has been deprecated since ${t.deprecatedValue[3].Plugin} ${t.deprecatedValue[1].Since}. It has been replaced by ${t.deprecatedValue[4].Replacement}. Note that ${t.deprecatedValue[0].Widget} will be completely removed once ${t.deprecatedValue[3].Plugin} ${t.deprecatedValue[2].Last} is released.`,"wdesignkit")})}),(0,g.jsx)("div",{})]}),$()&&(0,g.jsxs)("div",{className:"wdkit-three-dot-cover",children:[(0,g.jsx)("i",{className:"wdkit-i-wb-vertical-menu",onClick:e=>{N(e)}}),(0,g.jsx)("div",{className:"wdkit-three-dot-cover-content",children:(0,g.jsx)(j,{only_edit:!!t?.only_edit})})]})]})]}):"styleimage"==t.type?(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"wb-drop",onDragOver:e=>{e.preventDefault()},onDragEnter:e=>{e.target.classList.add("wb_drag-over")},onDrop:e=>{e.target.classList.remove("wb_drag-over")},onDragLeave:e=>{e.target.classList.remove("wb_drag-over")}}),(0,g.jsxs)("div",{className:"wb-select wb-main-component "+(v()==t.name?"wkit-wb-selected":""),draggable:m,onDragEnd:()=>{u(!1)},style:{marginTop:"before"==t.separator?"15px":"",marginBottom:"after"==t.separator?"15px":""},"data-compo_id":t.compo_index,"data-sec_id":t.sec_index,"data-array_type":t.array_type,"data-rnp":t.rnp_id,"data-rnp2":t.rnp2_id,onClick:e=>{x(e)},children:[(0,g.jsx)("div",{className:"wb-draggable-icon",onMouseDown:()=>{u(!0)},onMouseUp:()=>{u(!0)},children:(0,g.jsx)("span",{className:"tp-sec-edit",children:(0,g.jsx)("i",{className:"wdkit-i-wb-move"})})}),(0,g.jsxs)("div",{className:"wb-select-content",style:{flexDirection:"row"},children:[(0,g.jsx)("div",{className:"wb-append-inner",children:(0,g.jsx)("input",{className:"wb-append-label",style:{display:1==t.showLable?"":"none"},value:t.lable,onChange:e=>{_(e,"lable")}})}),(0,g.jsxs)("div",{className:"wkit-wb-custom-dropDown",children:[(0,g.jsxs)("div",{className:"wkit-wb-custom-dropDown-header",onClick:e=>{y(e)},children:[(0,g.jsx)("label",{children:t.select_defaultValue[1]}),(0,g.jsx)("i",{className:"wdkit-i-down-arrow"})]}),(0,g.jsx)("div",{className:"wkit-wb-custom-dropDown-content",children:t.options.map(((e,t)=>{let a=[e.value,e.lable];return(0,g.jsx)(Ui,{children:(0,g.jsx)("option",{value:e.lable,onClick:e=>{_(e,"select_defaultValue",a)},children:e.lable})},t)}))})]})]}),$()&&(0,g.jsxs)("div",{className:"wdkit-three-dot-cover",children:[(0,g.jsx)("i",{className:"wdkit-i-wb-vertical-menu",onClick:e=>{N(e)}}),(0,g.jsx)("div",{className:"wdkit-three-dot-cover-content",children:(0,g.jsx)(j,{only_edit:!!t?.only_edit})})]})]})]}):"svg"==t.type||"query"==t.type?(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"wb-drop",onDragOver:e=>{e.preventDefault()},onDragEnter:e=>{e.target.classList.add("wb_drag-over")},onDrop:e=>{e.target.classList.remove("wb_drag-over")},onDragLeave:e=>{e.target.classList.remove("wb_drag-over")}}),(0,g.jsxs)("div",{className:"wb-icon-list wb-main-component "+(v()==t.name?"wkit-wb-selected":""),draggable:m,onDragEnd:()=>{u(!1)},"data-compo_id":t.compo_index,"data-sec_id":t.sec_index,"data-array_type":t.array_type,"data-rnp":t.rnp_id,"data-rnp2":t.rnp2_id,"data-nha":t.nha_type,"data-editable":t?.only_edit,onClick:e=>{x(e)},children:[(0,g.jsx)("div",{className:"wb-draggable-icon",onMouseDown:()=>{u(!0)},onMouseUp:()=>{u(!0)},children:(0,g.jsx)("span",{className:"tp-sec-edit",children:(0,g.jsx)("i",{className:"wdkit-i-wb-move"})})}),(0,g.jsxs)("div",{className:"wb-icon-list-content",children:[(0,g.jsx)("div",{className:"wb-append-inner",children:(0,g.jsx)("input",{className:"wb-append-label",value:t.lable,onChange:e=>{_(e,"lable")}})}),(0,g.jsx)("img",{className:"wb-icon-list-icon",src:Ji+"assets/images/wb-svg/pana-icon.svg"})]}),$()&&(0,g.jsxs)("div",{className:"wdkit-three-dot-cover",children:[(0,g.jsx)("i",{className:"wdkit-i-wb-vertical-menu",onClick:e=>{N(e)}}),(0,g.jsx)("div",{className:"wdkit-three-dot-cover-content",children:(0,g.jsx)(j,{only_edit:!!t?.only_edit})})]})]})]}):"cpt"==t.type?(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"wb-drop",onDragOver:e=>{e.preventDefault()},onDragEnter:e=>{e.target.classList.add("wb_drag-over")},onDrop:e=>{e.target.classList.remove("wb_drag-over")},onDragLeave:e=>{e.target.classList.remove("wb_drag-over")}}),(0,g.jsxs)("div",{className:"wb-main-component wb-cpt-inner "+(v()==t.name?"wkit-wb-main-selected":""),draggable:m,onDragEnd:()=>{u(!1)},style:{marginTop:"before"==t.separator?"15px":"",marginBottom:"after"==t.separator?"15px":""},"data-compo_id":t.compo_index,"data-sec_id":t.sec_index,"data-array_type":t.array_type,"data-rnp":t.rnp_id,"data-rnp2":t.rnp2_id,"data-nha":t.nha_type,"data-editable":t?.only_edit,onClick:e=>{!e.target.closest(".wb-repeater-droped")&&x(e,"cpt_controller")},children:[(0,g.jsx)("div",{className:"wb-draggable-main-icon",onMouseDown:()=>{u(!0)},onMouseUp:()=>{u(!0)},children:(0,g.jsx)("i",{className:"wdkit-i-wb-move"})}),(0,g.jsx)("div",{className:"wb-select wb-cpt-select",children:(0,g.jsxs)("div",{className:"wb-select-content",style:{flexDirection:1==t.lableBlock?"column":"row"},children:[(0,g.jsx)("div",{className:"wb-append-inner",children:(0,g.jsx)("input",{className:"wb-append-label",style:{display:1==t.showLable?"":"none"},value:t.lable,onChange:e=>{_(e,"lable")}})}),(0,g.jsxs)("div",{className:"wkit-wb-custom-dropDown",children:[(0,g.jsxs)("div",{className:"wkit-wb-custom-dropDown-header",onClick:e=>{y(e)},children:[(0,g.jsx)("label",{children:t?.select_defaultValue?.[1]}),(0,g.jsx)("i",{className:"wdkit-i-down-arrow"})]}),(0,g.jsx)("div",{className:"wkit-wb-custom-dropDown-content",children:t?.options.map(((e,t)=>{let a=[e.value,e.lable];return(0,g.jsx)(Ui,{children:(0,g.jsx)("option",{value:e.lable,onClick:e=>{_(e,"select_defaultValue",a)},children:e.lable})},t)}))})]})]})}),(0,g.jsx)("div",{className:"wb-repeater-content",children:t.fields&&t.fields.map(((e,a)=>(0,g.jsx)("div",{children:(0,g.jsx)(Ki,{name:e.name,showLable:e.showLable,separator:e.separator,lableBlock:e.lableBlock,placeHolder:e.placeHolder,type:e.type,description:e.description,defaultValue:e.defaultValue,lable:e.lable,sec_index:t.sec_index,array_type:t.array_type,compo_index:t.compo_index,rnp_id:null!=t.rnp_id?t.rnp_id:a,rnp2_id:null!=t.rnp_id&&a,types:e.types,number_setting:e.number_setting,title_field:e.title_field,fields:e.fields,return_value:e.return_value,is_external:e.is_external,nofollow:e.nofollow,size_units:e.size_units,options:e.options,rows:e.rows,dimension_defaultValue:e.dimension_defaultValue,align_option:e.align_option,align_defaultValue:e.align_defaultValue,select_defaultValue:e.select_defaultValue,select2_defaultValue:e.select2_defaultValue,hTags_defaultValue:e.hTags_defaultValue,slider_defaultValue:e.slider_defaultValue,nha_array:e.nha_array,nha_type:e.nha_type,nha_array_lable:e.nha_array_lable,alignType:e.alignType,alert_type:e.alert_type,notice_type:e.notice_type,deprecatedValue:e.deprecatedValue,dismissible:e.dismissible,parent_class:e.parent_class,only_edit:!0})},a)))}),$()&&(0,g.jsx)("div",{className:"wdkit-wb-cont-opt-cover",children:(0,g.jsxs)("div",{className:"wdkit-three-dot-cover",children:[(0,g.jsx)("i",{className:"wdkit-i-wb-vertical-menu",onClick:e=>{N(e)}}),(0,g.jsx)("div",{className:"wdkit-three-dot-cover-content",children:(0,g.jsxs)("div",{className:"wb-hover-component",children:[(0,g.jsxs)("div",{className:"wb-sec-edit duplicate-btn",onClick:e=>{b(e)},children:[(0,g.jsx)("i",{className:"wdkit-i-copy"}),(0,a.__)("Duplicate","wdesignkit")]}),(0,g.jsxs)("div",{className:"wb-sec-edit remove-btn",onClick:e=>{k(e)},children:[(0,g.jsx)("i",{className:"wdkit-i-delete"}),(0,a.__)("Delete","wdesignkit")]})]})})]})})]})]}):"product_listing"==t.type?(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"wb-drop",onDragOver:e=>{e.preventDefault()},onDragEnter:e=>{e.target.classList.add("wb_drag-over")},onDrop:e=>{e.target.classList.remove("wb_drag-over")},onDragLeave:e=>{e.target.classList.remove("wb_drag-over")}}),(0,g.jsxs)("div",{className:"wb-main-component wb-cpt-inner "+(v()==t.name?"wkit-wb-main-selected":""),draggable:m,onDragEnd:()=>{u(!1)},style:{marginTop:"before"==t.separator?"15px":"",marginBottom:"after"==t.separator?"15px":""},"data-compo_id":t.compo_index,"data-sec_id":t.sec_index,"data-array_type":t.array_type,"data-rnp":t.rnp_id,"data-rnp2":t.rnp2_id,"data-nha":t.nha_type,"data-editable":t?.only_edit,onClick:e=>{!e.target.closest(".wb-repeater-droped")&&x(e,"cpt_controller")},children:[(0,g.jsx)("div",{className:"wb-draggable-main-icon",onMouseDown:()=>{u(!0)},onMouseUp:()=>{u(!0)},children:(0,g.jsx)("i",{className:"wdkit-i-wb-move"})}),(0,g.jsx)("div",{className:"wb-repeater-content",children:t.fields&&t.fields.map(((e,a)=>(0,g.jsx)("div",{children:(0,g.jsx)(Ki,{name:e.name,showLable:e.showLable,separator:e.separator,lableBlock:e.lableBlock,placeHolder:e.placeHolder,type:e.type,description:e.description,defaultValue:e.defaultValue,lable:e.lable,sec_index:t.sec_index,array_type:t.array_type,compo_index:t.compo_index,rnp_id:null!=t.rnp_id?t.rnp_id:a,rnp2_id:null!=t.rnp_id&&a,types:e.types,number_setting:e.number_setting,title_field:e.title_field,fields:e.fields,return_value:e.return_value,is_external:e.is_external,nofollow:e.nofollow,size_units:e.size_units,options:e.options,rows:e.rows,dimension_defaultValue:e.dimension_defaultValue,align_option:e.align_option,align_defaultValue:e.align_defaultValue,select_defaultValue:e.select_defaultValue,select2_defaultValue:e.select2_defaultValue,hTags_defaultValue:e.hTags_defaultValue,slider_defaultValue:e.slider_defaultValue,nha_array:e.nha_array,nha_type:e.nha_type,nha_array_lable:e.nha_array_lable,alignType:e.alignType,alert_type:e.alert_type,notice_type:e.notice_type,deprecatedValue:e.deprecatedValue,dismissible:e.dismissible,parent_class:e.parent_class,only_edit:!0})},a)))}),$()&&(0,g.jsx)("div",{className:"wdkit-wb-cont-opt-cover",children:(0,g.jsxs)("div",{className:"wdkit-three-dot-cover",children:[(0,g.jsx)("i",{className:"wdkit-i-wb-vertical-menu",onClick:e=>{N(e)}}),(0,g.jsx)("div",{className:"wdkit-three-dot-cover-content",children:(0,g.jsxs)("div",{className:"wb-hover-component",children:[(0,g.jsxs)("div",{className:"wb-sec-edit duplicate-btn",onClick:e=>{b(e)},children:[(0,g.jsx)("i",{className:"wdkit-i-copy"}),(0,a.__)("Duplicate","wdesignkit")]}),(0,g.jsxs)("div",{className:"wb-sec-edit remove-btn",onClick:e=>{k(e)},children:[(0,g.jsx)("i",{className:"wdkit-i-delete"}),(0,a.__)("Delete","wdesignkit")]})]})})]})})]})]}):"taxonomy"==t.type?(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"wb-drop",onDragOver:e=>{e.preventDefault()},onDragEnter:e=>{e.target.classList.add("wb_drag-over")},onDrop:e=>{e.target.classList.remove("wb_drag-over")},onDragLeave:e=>{e.target.classList.remove("wb_drag-over")}}),(0,g.jsxs)("div",{className:"wb-main-component wb-cpt-inner "+(v()==t.name?"wkit-wb-main-selected":""),draggable:m,onDragEnd:()=>{u(!1)},style:{marginTop:"before"==t.separator?"15px":"",marginBottom:"after"==t.separator?"15px":""},"data-compo_id":t.compo_index,"data-sec_id":t.sec_index,"data-array_type":t.array_type,"data-rnp":t.rnp_id,"data-rnp2":t.rnp2_id,"data-nha":t.nha_type,"data-editable":t?.only_edit,onClick:e=>{!e.target.closest(".wb-repeater-droped")&&x(e,"cpt_controller")},children:[(0,g.jsx)("div",{className:"wb-draggable-main-icon",onMouseDown:()=>{u(!0)},onMouseUp:()=>{u(!0)},children:(0,g.jsx)("i",{className:"wdkit-i-wb-move"})}),(0,g.jsx)("div",{className:"wb-select wb-cpt-select",children:(0,g.jsxs)("div",{className:"wb-select-content",style:{flexDirection:1==t.lableBlock?"column":"row"},children:[(0,g.jsx)("div",{className:"wb-append-inner",children:(0,g.jsx)("input",{className:"wb-append-label",style:{display:1==t.showLable?"":"none"},value:t.lable,onChange:e=>{_(e,"lable")}})}),(0,g.jsxs)("div",{className:"wkit-wb-custom-dropDown",children:[(0,g.jsxs)("div",{className:"wkit-wb-custom-dropDown-header",onClick:e=>{y(e)},children:[(0,g.jsx)("label",{children:t?.select_defaultValue?.[1]}),(0,g.jsx)("i",{className:"wdkit-i-down-arrow"})]}),(0,g.jsx)("div",{className:"wkit-wb-custom-dropDown-content",children:t?.options.map(((e,t)=>{let a=[e.value,e.lable];return(0,g.jsx)(Ui,{children:(0,g.jsx)("option",{value:e.lable,onClick:e=>{_(e,"select_defaultValue",a)},children:e.lable})},t)}))})]})]})}),(0,g.jsx)("div",{className:"wb-repeater-content",children:t.fields&&t.fields.map(((e,a)=>(0,g.jsx)("div",{children:(0,g.jsx)(Ki,{name:e.name,showLable:e.showLable,separator:e.separator,lableBlock:e.lableBlock,placeHolder:e.placeHolder,type:e.type,description:e.description,defaultValue:e.defaultValue,lable:e.lable,sec_index:t.sec_index,array_type:t.array_type,compo_index:t.compo_index,rnp_id:null!=t.rnp_id?t.rnp_id:a,rnp2_id:null!=t.rnp_id&&a,types:e.types,number_setting:e.number_setting,title_field:e.title_field,fields:e.fields,return_value:e.return_value,is_external:e.is_external,nofollow:e.nofollow,size_units:e.size_units,options:e.options,rows:e.rows,dimension_defaultValue:e.dimension_defaultValue,align_option:e.align_option,align_defaultValue:e.align_defaultValue,select_defaultValue:e.select_defaultValue,select2_defaultValue:e.select2_defaultValue,hTags_defaultValue:e.hTags_defaultValue,slider_defaultValue:e.slider_defaultValue,nha_array:e.nha_array,nha_type:e.nha_type,nha_array_lable:e.nha_array_lable,alignType:e.alignType,alert_type:e.alert_type,notice_type:e.notice_type,deprecatedValue:e.deprecatedValue,dismissible:e.dismissible,parent_class:e.parent_class,only_edit:!0})},a)))}),$()&&(0,g.jsx)("div",{className:"wdkit-wb-cont-opt-cover",children:(0,g.jsxs)("div",{className:"wdkit-three-dot-cover",children:[(0,g.jsx)("i",{className:"wdkit-i-wb-vertical-menu",onClick:e=>{N(e)}}),(0,g.jsx)("div",{className:"wdkit-three-dot-cover-content",children:(0,g.jsxs)("div",{className:"wb-hover-component",children:[(0,g.jsxs)("div",{className:"wb-sec-edit duplicate-btn",onClick:e=>{b(e)},children:[(0,g.jsx)("i",{className:"wdkit-i-copy"}),(0,a.__)("Duplicate","wdesignkit")]}),(0,g.jsxs)("div",{className:"wb-sec-edit remove-btn",onClick:e=>{k(e)},children:[(0,g.jsx)("i",{className:"wdkit-i-delete"}),(0,a.__)("Delete","wdesignkit")]})]})})]})})]})]}):void 0})),{Fragment:Zi}=wp.element,Yi=Ya((e=>({cardData:e.CardItems.cardData,widgetdata:e.WcardData.widgetdata,controller:e.Active_controller,section_id:e.Active_section.section})),(e=>({addToCarthandler:t=>e(ji(t)),addToActiveController:t=>e(Si(t)),addToActiveSection:t=>e(Di(t)),wdkit_set_notification:t=>e(si(t))})))((t=>{wdkitData.WDKIT_URL;const i=()=>{let e=(new Date).getFullYear().toString().slice(-2),t=Math.random();return t.toString(36),t.toString(36).substr(2,6)+e},[s,n]=(0,e.useState)(!1),[r,l]=(0,e.useState)(0),o=(0,e.useRef)(),d=(0,e.useRef)(),c=(0,e.useRef)(),[p,m]=((0,e.useRef)(),(0,e.useState)(0)),[u,h]=(0,e.useState)(""),w=[{slide_img:"https://i.ytimg.com/vi/Bw5IHPxr0Nc/hq720.jpg?sqp=-oaymwEnCNAFEJQDSFryq4qpAxkIARUAAIhCGAHYAQHiAQoIGBACGAY4AUAB&rs=AOn4CLDlvdVCQFiMcg2IEXzlqqnb7SUSJg",yt_link:"https://www.youtube.com/watch?v=Bw5IHPxr0Nc"},{slide_img:"https://i.ytimg.com/vi/tuzLhe8cuXM/hq720.jpg?sqp=-oaymwEnCNAFEJQDSFryq4qpAxkIARUAAIhCGAHYAQHiAQoIGBACGAY4AUAB&rs=AOn4CLAhCZV4OP9MUiwrA_jLPPWlP1AcGQ",yt_link:"https://www.youtube.com/watch?v=tuzLhe8cuXM"},{slide_img:"https://i.ytimg.com/vi/4RhZwuyFd8k/hqdefault.jpg?sqp=-oaymwEmCKgBEF5IWvKriqkDGQgBFQAAiEIYAdgBAeIBCggYEAIYBjgBQAE=&rs=AOn4CLBdHd-boAdQdDe6N1SoY_npGiBagw",yt_link:"https://www.youtube.com/watch?v=4RhZwuyFd8k"}];(0,e.useEffect)((()=>{const e=setInterval((()=>{m((e=>(e+1)%w.length))}),1e4);return()=>{clearInterval(e)}}),[]),(0,e.useEffect)((()=>{var e=document.querySelectorAll(".wb-main-component");e.length>0&&e.forEach((e=>{e.addEventListener("dragstart",(e=>{e.target.closest(".wb-main-component").dataset.array_type==t.array_type&&(e.stopImmediatePropagation(),c.current=e.target.closest(".wb-main-component").dataset)}))}));var s=document.querySelectorAll(".wb-drop");s.length>0&&s.forEach((e=>{e.addEventListener("drop",(e=>{if(e.dataTransfer.getData("controller_id")&&e.target.nextElementSibling.dataset.sec_id){e.stopImmediatePropagation();let n=e.dataTransfer.getData("controller_id"),r=e.target.nextElementSibling.dataset.sec_id,l=e.target.nextElementSibling.dataset.compo_id;const o=ki[n].name;if(e.target.nextSibling.dataset.nha)var s=Object.assign({},ki[n],{name:o+"_"+i(),key:e.target.nextSibling.dataset.nha});else s=Object.assign({},ki[n],{name:o+"_"+i()});let d=[...t.cardData];if(e.target.nextSibling.dataset.editable)return t.wdkit_set_notification({title:(0,a.__)("Not Valid","wdesignkit"),desc:(0,a.__)("You Can Not put this controller here","wdesignkit")}),e.target.classList.remove("wb_drag-over"),!1;if(e.target.nextSibling.dataset.rnp)if("repeater"==o||"popover"==o||"normalhover"==o||"cpt"==o||"product_listing"==o||"taxonomy"==o)t.wdkit_set_notification({title:(0,a.__)("Not Valid","wdesignkit"),desc:(0,a.__)("You Can Not put this controller here","wdesignkit")});else{let a=e.target.nextSibling.dataset.rnp,i=d[0][t.array_type][r].inner_sec[l],n=[...i.fields];n.splice(a,0,s);let o=Object.assign({},i,{fields:n});d[0][t.array_type][r].inner_sec[l]=o}else d[0][t.array_type][r].inner_sec.splice(l,0,s);e.target.classList.remove("wb_drag-over"),t.addToCarthandler(d)}else if(e.target.nextElementSibling.dataset.array_type==t.array_type){e.stopImmediatePropagation();let t=e.target.nextElementSibling.dataset;e.target.classList.remove("wb_drag-over"),_(t)}}))}))}));const _=e=>{let a=c.current?.sec_id,i=c.current?.compo_id,s=null!=c.current?.rnp?c.current?.rnp:"",n=e?.sec_id,r=e?.compo_id,l=null!=e?.rnp?e?.rnp:"",o=[...t.cardData];if(o?.[0]?.[t?.array_type]?.[a]?.inner_sec[i]){if(s&&l){let e=o[0][t.array_type][a].inner_sec[i].fields[s];o[0][t.array_type][a].inner_sec[i].fields.splice(s,1),s{let s=e.dataTransfer.getData("controller_id");if(s){let e=i();const n=ki[s];let r=[];"cpt"!=s.toLowerCase()&&"product_listing"!=s.toLowerCase()&&"taxonomy"!=s.toLowerCase()||n?.fields.length>0&&n.fields.map((t=>{let a=Object.assign({},t,{name:t.name+"_"+e});r.push(a)}));const l=Object.assign({},ki[s],{name:n.name+"_"+e,unique_id:e,fields:r});let o=[...t.cardData];o[0][t.array_type][a].inner_sec.push(l),t.addToCarthandler(o)}},k=(e,a)=>{let i=[...t.cardData];const s=r+1,n=`Section-${s}`;if(i[0][t.array_type].every((e=>e.section!==n))){const r={name:`builder-${s}`,section:n,compo_index:s,inner_sec:[]};if(i[0][t.array_type].push(r),t.addToCarthandler(i),l(s),void 0!==a){let a=i[0][t.array_type].length-1;f(e,a),t.addToActiveSection({sec_id:Number(a),array_type:t.array_type})}}else{const n={name:`builder-${s+1}`,section:`Section-${s+1}`,compo_index:s+1,inner_sec:[]};if(i[0][t.array_type].push(n),t.addToCarthandler(i),l(s+1),void 0!==a){let a=i[0][t.array_type].length-1;f(e,a),t.addToActiveSection({sec_id:Number(a),array_type:t.array_type})}}},b=e=>{t.section_id.sec_id==e?t.addToActiveSection({sec_id:-1,array_type:t.array_type}):t.addToActiveSection({sec_id:e,array_type:t.array_type})},x=(e,t)=>{let a=e.target.closest(".wb-droped");"add"==t?a.classList.add("wkit-drag-over"):"remove"==t&&a.classList.remove("wkit-drag-over")};return(0,g.jsx)("div",{className:"wb-second-layout-container",children:(0,g.jsxs)("div",{className:"wb-second-layout-content",children:[(0,g.jsx)("div",{className:"append",children:Object.values(t.cardData[0][t.array_type])?.map(((e,l)=>(0,g.jsx)(Zi,{children:(0,g.jsxs)("div",{draggable:s,className:"wb-section",id:`builder-${l}`,"data-index":l,onDragEnd:e=>{d.current=null,o.current=null,n(!1)},onDragEnter:e=>{((e,a)=>{let i=[...t.cardData],s=i[0][t.array_type][d.current];null!==d.current&&void 0!==d.current&&d.current!==a&&(i[0][t.array_type][d.current]=i[0][t.array_type][a],i[0][t.array_type][a]=s,d.current=a,t.addToCarthandler(i)),o.current=a,t.addToActiveSection({sec_id:a,array_type:t.array_type})})(0,l)},onDragStart:e=>{((e,t)=>{d.current=t})(0,l)},children:[(0,g.jsxs)("div",{className:"wb-section-header","data-sec_index":l,onClick:e=>{!e.target.closest(".wb-section-btns")&&t.section_id.sec_id!=l&&b(l)},children:[(0,g.jsxs)("div",{className:"wb-section-title",children:[(0,g.jsx)("div",{className:"wdkit-wb-move-icon",onMouseDown:()=>{n(!0)},onMouseUp:()=>{n(!1)},children:(0,g.jsx)("span",{className:"wb-section-title-icon",children:(0,g.jsx)("i",{className:"wdkit-i-wb-move"})})}),(0,g.jsx)("i",{className:"wdkit-i-up-arrow",style:{transform:t.section_id.sec_id==l?"":"rotate(180deg)",transition:"transform 0.3s linear"},onClick:e=>{b(l)}}),(0,g.jsx)("span",{className:"wb-section-title-text",children:e?.section})]}),(0,g.jsxs)("div",{className:"wb-section-btns",children:[(0,g.jsx)("span",{className:"wb-sec-btn",children:(0,g.jsx)("i",{className:"wdkit-i-copy",onClick:e=>{((e,a)=>{let s=[...t.cardData],n=s[0][t.array_type][a].section,l=e.target.closest(".wb-section-header").dataset.sec_index,o=[...s[0][t.array_type]],d=[];o[l].inner_sec.map((e=>{if("repeater"==e.type||"popover"==e.type||"normalhover"==e.type){let t=[];e.fields.map((e=>{let a=Object.assign({},e,{name:e.type+"_"+i()});t.push(a)}));let a=Object.assign({},e,{fields:t}),s=Object.assign({},a,{name:a.type+"_"+i()});d.push(s)}else{let t=Object.assign({},e,{name:e.type+"_"+i()});d.push(t)}}));let c=function(e,t){let a=e,i=2;for(;t.some((e=>e.section===a));)a=e+i,i++;return a}(n+"-copy",s[0][t.array_type]),p=Object.assign({},o[l],{compo_index:r,name:i(),inner_sec:d,section:c}),m=Number(l);s[0][t.array_type].splice(m+1,0,p),t.addToCarthandler(s)})(e,l)}})}),(0,g.jsx)("span",{className:"wb-sec-btn",children:(0,g.jsx)("i",{className:"wdkit-i-wb-pen",onClick:e=>{t.addToActiveController({sec_id:l,array_type:t.array_type})}})}),(0,g.jsx)("span",{className:"wb-sec-btn",children:(0,g.jsx)("i",{className:"wdkit-i-delete",onClick:e=>{((e,a)=>{var i=ace.edit("editor-html",{theme:"ace/theme/cobalt",mode:"ace/mode/html"});const s=(e,t)=>{var a=i.find(e,{wrap:!0,caseSensitive:!0,wholeWord:!0,regExp:!1,preventScroll:!0});null!=a&&(t?(i?.session?.replace(a,t),s(e,t)):(i?.session?.replace(a,""),s(e)))};let n=[...t.cardData];n[0][t.array_type][a]?.inner_sec?.map((e=>{"repeater"==e?.type||"popover"==e?.type?(s(`data-${e.name}={${e.name}}`),e?.fields?.map((e=>{"gallery"!=e?.type&&"select2"!=e?.type&&"repeater"!=e?.type||s(`data-${e?.name}={${e?.name}}`),"url"==e?.type&&(s(`{{${e.name}-url}}`),s(`{{${e.name}-is_external}}`),s(`{{${e.name}-nofollow}}`)),"headingtags"==e?.type&&s(e.name,"div"),s(`{{${e?.name}}}`)}))):("gallery"!=e?.type&&"select2"!=e?.type&&"repeater"!=e?.type||s(`data-${e?.name}={${e?.name}}`),"url"==e?.type&&(s(`{{${e.name}-url}}`),s(`{{${e.name}-is_external}}`),s(`{{${e.name}-nofollow}}`)),"cpt"!=e.type&&"product_listing"!=e.type||(s(`data-${e.name}={${e.name}}`),s(`data-${e.name}_cat={${e.name}_cat}`),s(`data-${e.name}_tag={${e.name}_tag}`),s(`{{title_${e.name}}}`),s(`{{description_${e.name}}}`),s(`{{thumbnail_${e.name}}}`),s(`{{category_${e.name}}}`),s(`{{cat_name_${e.name}}}`),s(`{{cat_url_${e.name}}}`),s(`{{tag_${e.name}}}`),s(`{{tag_name_${e.name}}}`),s(`{{tag_url_${e.name}}}`),s(`{{post_date_${e.name}}}`),s(`{{post_link_${e.name}}}`),s(`{{auth_name_${e.name}}}`),s(`{{auth_email_${e.name}}}`),s(`{{auth_url_${e.name}}}`),s(`{{auth_id_${e.name}}}`),s(`{{auth_profile_${e.name}}}`)),"taxonomy"==e.type&&(s(`data-${e.name}={${e.name}}`),s(`{{title_${e.name}}}`),s(`{{description_${e.name}}}`),s(`{{taxo_image_${e.name}}}`),s(`{{taxo_slug_${e.name}}}`),s(`{{taxo_link_${e.name}}}`)),"headingtags"==e?.type&&s(e.name,"div"),s(`{{${e?.name}}}`))})),n[0][t.array_type].splice(a,1),t.addToCarthandler(n),t.addToActiveController("")})(0,l)}})})]})]}),(0,g.jsxs)("div",{className:t.section_id.sec_id==l?"wb-components-settings wb-show":"wb-components-settings",children:[e?.inner_sec.length>0?Object.values(e?.inner_sec)?.map(((e,a)=>(0,g.jsx)(Zi,{children:(0,g.jsx)(Ki,{name:e.name,showLable:e.showLable,separator:e.separator,lableBlock:e.lableBlock,placeHolder:e.placeHolder,type:e.type,description:e.description,defaultValue:e.defaultValue,lable:e.lable,sec_index:l,array_type:t.array_type,compo_index:a,types:e.types,number_setting:e.number_setting,title_field:e.title_field,fields:e.fields,return_value:e.return_value,is_external:e.is_external,nofollow:e.nofollow,size_units:e.size_units,options:e.options,rows:e.rows,dimension_defaultValue:e.dimension_defaultValue,align_option:e.align_option,align_defaultValue:e.align_defaultValue,select_defaultValue:e.select_defaultValue,hTags_defaultValue:e.hTags_defaultValue,select2_defaultValue:e.select2_defaultValue,slider_defaultValue:e.slider_defaultValue,nha_array:e.nha_array,nha_type:e.nha_type,nha_array_lable:e.nha_array_lable,alignType:e.alignType,alert_type:e.alert_type,notice_type:e.notice_type,deprecatedValue:e.deprecatedValue,dismissible:e.dismissible,parent_class:e.parent_class})},a))):"",(0,g.jsx)("div",{className:"wb-drop",onDragOver:e=>{e.preventDefault()},onDragEnter:e=>{e.target.classList.add("wb_drag-over")},onDrop:e=>{e.target.classList.remove("wb_drag-over")},onDragLeave:e=>{e.target.classList.remove("wb_drag-over")}}),(0,g.jsx)("div",{className:"wb-main-component",draggable:"false","data-compo_id":e?.inner_sec.length,"data-sec_id":l,"data-array_type":t.array_type}),(0,g.jsxs)("div",{className:"wb-droped",draggable:!0,onDragOver:e=>{e.preventDefault()},onDragEnter:e=>{x(e,"add")},onDragLeave:e=>{x(e,"remove")},onDrop:e=>{e.preventDefault(),f(e,l),x(e,"remove")},onClick:e=>{t.addToActiveController("")},children:[(0,a.__)("Add More","wdesignkit"),(0,g.jsx)("i",{className:"wdkit-i-wb-plus"})]})]})]},("builder-"+l).toString())},l)))}),(0,g.jsx)("div",{className:"wb-add-section",onClick:()=>{k()},onDragOver:e=>{e.preventDefault()},onDrop:e=>{k(e,t.array_type)},children:(0,g.jsxs)("span",{className:"add-section-btn",children:[(0,g.jsx)("span",{children:(0,a.__)("Add Section","wdesignkit")}),(0,g.jsx)("i",{className:"wdkit-i-wb-plus"})]})})]})})})),Xi=Ya((e=>({Editor_code:e.Editor_code,widgetdata:e.WcardData.widgetdata,controller:e.Active_controller})),(e=>({addToEditor_code:t=>e(Ci(t)),addToCarthandler:t=>e(ji(t)),addTowidgethandler:t=>e(Ni(t)),addTolinkhandler:t=>e($i(t)),addToActiveController:t=>e(Si(t))})))((t=>{const i=[{name:"elementor",label:"elementor",plugin_slug:"elementor/elementor.php",type:"plugin",freepro:"0",text:(0,a.__)("Oops! Elementor Page Builder is not activated. Please install it now to unlock full functionality.","wdesignkit"),class:"wkit-elementor-bg",color:"#91003B"},{name:"the-plus-addons-for-block-editor",label:"gutenberg",plugin_slug:"the-plus-addons-for-block-editor/the-plus-addons-for-block-editor.php",type:"plugin",freepro:"0",text:(0,a.__)("Oops! Nexter blocks is not activated. Please install it now to unlock full functionality.","wdesignkit"),class:"wkit-nexter-bg",color:"#162D9E"},{name:"bricks",label:"bricks",original_slug:"bricks",plugin_slug:"bricks/bricks.php",type:"theme",freepro:"1",text:(0,a.__)("Oops! Bricks Theme is not activated. Please install it now to unlock full functionality.","wdesignkit"),link:"https://academy.bricksbuilder.io/article/installation-activation/",class:"wkit-bricks-bg",color:"#000000"}],s=i.findIndex((e=>e.label===t.widgetdata.type)),[n,r]=(0,e.useState)("layout"),[d,c]=(0,e.useState)([]),[p,m]=(0,e.useState)(!1);(0,e.useEffect)((()=>{u("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.2/css/all.min.css"),o([i[s]]).then((e=>{let t=Array.isArray(e?.data?.plugins)&&Array.isArray(e?.data?.theme)?[...e?.data?.plugins,...e?.data?.theme]:[];if(t?.length>0){let e={},a=t.findIndex((e=>"bricks"==e.name));a>-1&&"active"==t?.[a]?.status&&u(wdkitData.WDKIT_SITE_URL+"/wp-content/themes/bricks/assets/css/libs/themify-icons.min.css"),t.map((t=>{e[t.name]=t.status})),c(e)}}))}),[]),(0,e.useEffect)((()=>{document.body.classList.contains("folded")||document.body.classList.add("folded")}));const u=e=>{if(!document.querySelector(`link[href="${e}"]`)){let t=document.createElement("link");t.rel="stylesheet",t.href=e+"?v="+(new Date).getTime(),document.head.appendChild(t)}};var h="",w=0,_=0;t&&t.widgetdata&&t.widgetdata.type&&"elementor"==t.widgetdata.type?h="wkit-elementor-builder":t&&t.widgetdata&&t.widgetdata.type&&"gutenberg"==t.widgetdata.type?h="wkit-gutenberg-builder":t&&t.widgetdata&&t.widgetdata.type&&"bricks"==t.widgetdata.type&&(h="wkit-bricks-builder");const f=e=>{const t=e.clientX-w;let a=`${_+t}px`;e.target.parentElement.style.width=a,document.querySelector(".wkit-wb-third.content.wkit-wb-hide")?document.querySelector(".wkit-wb-second.content").style.width=`calc((100% - ${a})) `:(document.querySelector(".wkit-wb-second.content").style.width=`calc((100% - ${a})/2) `,document.querySelector(".wkit-wb-third.content").style.width=`calc((100% - ${a})/2) `)};return(0,g.jsx)(g.Fragment,{children:(0,g.jsxs)("div",{className:`wkit-wb-main-builder-page ${h}`,onClick:e=>{(e=>{let t=document.querySelectorAll(".wkit-wb-custom-dropDown-content.wkit-wb-show"),a=document.querySelectorAll(".wdkit-three-dot-cover-content.wdkit-show-controller-actions"),i=document.querySelectorAll(".wkit-wb-choose-popup.wkit-wb-flex-show");!e.target.closest(".wkit-wb-custom-dropDown-header")&&t&&t.forEach((e=>{e.classList.remove("wkit-wb-show")})),!e.target.closest(".wdkit-three-dot-cover")&&a&&a.forEach((e=>{e.classList.remove("wdkit-show-controller-actions")})),e.target.closest(".wkit-wb-choose-popup.wkit-wb-flex-show")||e.target.closest(".wb-options-inp.wkit-wb-icon-select")||!i||i.forEach((e=>{e.classList.remove("wkit-wb-flex-show")}))})(e)},children:[d&&Object.keys(d)?.length>0&&"active"!==d?.[i?.[s]?.name]&&(0,g.jsxs)("div",{className:`wkit-install-dependency wkit-wb-notice ${i[s]?.class}`,children:[(0,g.jsxs)("div",{className:"wkit-wb-notice-content",children:[(0,g.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"wkit-notice-svg",width:"18",height:"16",viewBox:"0 0 18 16",fill:"none",children:[(0,g.jsx)("path",{d:"M7.75548 1.47626L0.768852 13.5766C0.642649 13.7951 0.576195 14.043 0.576172 14.2953C0.576149 14.5477 0.642556 14.7956 0.768719 15.0141C0.894882 15.2326 1.07635 15.4141 1.29489 15.5403C1.51343 15.6664 1.76132 15.7328 2.01366 15.7328H15.9858C16.2381 15.7328 16.486 15.6664 16.7046 15.5403C16.9231 15.4141 17.1046 15.2326 17.2307 15.0141C17.3569 14.7956 17.4233 14.5477 17.4233 14.2953C17.4233 14.043 17.3568 13.7951 17.2306 13.5766L10.2447 1.47626C10.1186 1.25778 9.93716 1.07636 9.71868 0.950229C9.50021 0.824095 9.25238 0.75769 9.0001 0.75769C8.74783 0.75769 8.5 0.824095 8.28152 0.950229C8.06304 1.07636 7.88162 1.25778 7.75548 1.47626Z",fill:i[s]?.color}),(0,g.jsx)("path",{d:"M9.09088 5.20837H8.90863C8.45993 5.20837 8.09619 5.57211 8.09619 6.02081V9.90412C8.09619 10.3528 8.45993 10.7166 8.90863 10.7166H9.09088C9.53958 10.7166 9.90332 10.3528 9.90332 9.90412V6.02081C9.90332 5.57211 9.53958 5.20837 9.09088 5.20837Z",fill:"#FFF7ED"}),(0,g.jsx)("path",{d:"M8.99975 13.7964C9.49878 13.7964 9.90332 13.3918 9.90332 12.8928C9.90332 12.3938 9.49878 11.9893 8.99975 11.9893C8.50073 11.9893 8.09619 12.3938 8.09619 12.8928C8.09619 13.3918 8.50073 13.7964 8.99975 13.7964Z",fill:"#FFF7ED"})]}),(0,g.jsx)("span",{className:"wkit-install-plugin-text",children:i[s]?.text})]}),i[s]?.link?(0,g.jsx)("a",{href:i[s]?.link,className:"wkit-redirect-link ",target:"_blank",rel:"noopener noreferrer",children:(0,a.__)("How to Install ?","wdesignkit")}):"loading"===d[i[s].name]?(0,g.jsx)("button",{className:"wkit-install-plugin-btn",children:(0,g.jsx)("span",{className:"wdkit-plugin-install-loader"})}):(0,g.jsx)("button",{className:"wkit-install-plugin-btn",onClick:()=>{(async e=>{let a={...d,[e.name]:"loading"};c(a);let i={freepro:e.freepro,original_slug:e.name,plugin_slug:e.plugin_slug,status:"inactive",type:e.type};l(i).then((i=>{i.data.success?(a={...d,[i.data.slug]:i.data.status},c(a),"elementor"==e.name&&u(wdkitData.WDKIT_SITE_URL+"/wp-content/plugins/elementor/assets/lib/eicons/css/elementor-icons.css")):t.wdkit_set_notification({title:"Installation Failed!",desc:"Plugin is not installed"})}))})(i[s])},children:(0,a.__)("Install Now","wdesignkit")})]}),(0,g.jsx)(Hi,{plugin_status:d,plugin_detail:i}),(0,g.jsxs)("div",{className:"wkit-wb-widget-builder "+(Object.keys(d).length>0&&"active"!==d[i[s].name]?"wkit-wb-rm-height":""),children:[(0,g.jsxs)("div",{className:"wkit-wb-first-part content",children:[(0,g.jsx)("div",{className:"wkit-wb-first-part-content",children:(0,g.jsx)(qi,{plugin_status:d})}),(0,g.jsx)("div",{className:"wkit-wb-first-second-drag",draggable:!0,onDragStart:e=>{(e=>{w=e.clientX;const t=window.getComputedStyle(e.target.parentElement);_=parseInt(t.width,10)})(e)},onDrag:e=>{f(e)},onDragEnd:e=>{f(e)}})]}),(0,g.jsxs)("div",{className:"wkit-wb-second content",children:[(0,g.jsxs)("div",{className:"wb-second-header",children:[(0,g.jsxs)("div",{className:"layout"==n?"wb-second-header-layout active":"wb-second-header-layout",onClick:()=>r("layout"),children:[(0,g.jsx)("i",{className:"wdkit-i-wb-layout-2"}),(0,g.jsx)("span",{className:"wb-layout-text",children:(0,a.__)("Layout","wdesignkit")})]}),(0,g.jsxs)("div",{className:"style"==n?"wb-second-header-style active":"wb-second-header-style",onClick:()=>r("style"),children:[(0,g.jsx)("i",{className:"wdkit-i-wb-brush"}),(0,g.jsx)("span",{className:"wb-style-text",children:(0,a.__)("Style","wdesignkit")})]})]}),"layout"==n&&(0,g.jsx)(Yi,{array_type:"layout"}),"style"==n&&(0,g.jsx)(Yi,{array_type:"style"})]}),(0,g.jsxs)("div",{className:"wkit-wb-third content",children:[(0,g.jsxs)("div",{className:"wkit-wb-third-header",children:[(0,g.jsxs)("div",{className:t&&!t.controller||!t.controller.controller||t&&t.controller.controller?.controller_type?"wkit-wb-third-header-text activate":"wkit-wb-third-header-text",onClick:e=>{t.addToActiveController("")},children:[(0,g.jsx)("i",{className:"wdkit-i-wb-elements"}),(0,g.jsx)("span",{children:(0,a.__)("Controls","wdesignkit")})]}),(0,g.jsxs)("div",{className:t&&t.controller&&t.controller.controller&&!t.controller.controller?.controller_type?"wkit-wb-third-header-text activate":"wkit-wb-third-header-text-edit",children:[(0,g.jsx)("i",{className:"wdkit-i-wb-edit"}),(0,g.jsx)("span",{children:(0,a.__)("Edit","wdesignkit")})]})]}),t&&t.controller&&t.controller.controller&&!t.controller.controller?.controller_type&&(0,g.jsx)(Li,{}),(0,g.jsx)("div",{style:{display:t&&!t.controller||!t.controller.controller||t.controller.controller?.controller_type?"block":"none",height:"100%"},children:(0,g.jsx)(Oi,{array_type:n})}),t&&(!t.controller||!t.controller.controller||t.controller.controller?.controller_type)&&!wdkitData?.wdkit_white_label?.plugin_news&&(0,g.jsxs)("div",{className:"wkit-wb-yt-link",onClick:()=>m(!0),children:[(0,g.jsx)("i",{className:"wdkit-i-youtube"}),(0,g.jsx)("span",{className:"wkit-wb-yt-link-text",children:(0,a.__)(" Watch Video Tutorials")})]}),p&&(0,g.jsx)("div",{id:"wkit-yt-popup-open",className:"wkit-yt-overlay",onClick:e=>{(e=>{Object.values(e?.target?.classList).includes("wkit-wb-yt-popup")&&m(!1)})(e)},children:(0,g.jsx)("div",{className:"wkit-wb-yt-popup",children:(0,g.jsx)("div",{className:"wkit-yt-carousel-slide",children:(0,g.jsx)("iframe",{className:"wkit-wb-yt-carousel-img",src:"https://www.youtube.com/embed/videoseries?list=PLFRO-irWzXaJUu7MKQ8Gv63ATyZENEAPG&showinfo=1&autoplay=1&rel=0",allowFullScreen:!0})})})})]})]})]})})})),Qi=Ya((e=>({Editor_data:e.Editor_data.links,Editor_code:e.Editor_code.Editor_codes,widgetdata:e.WcardData.widgetdata,cardData:e.CardItems.cardData,wdkit_meta:e.wdkit_meta_data.wdkitmeta})),(e=>({addToEditor_code:t=>e(Ci(t)),addToCarthandler:t=>e(ji(t)),addTowidgethandler:t=>e(Ni(t)),addTolinkhandler:t=>e($i(t)),wdkit_set_meta:t=>e(ti(t)),wdkit_set_notification:t=>e(si(t))})))((t=>{const[i,s]=(0,e.useState)(!0),[n,r]=(0,e.useState)("");var l=wdkitData.WDKIT_URL;const o=he(),d=ue();(0,e.useEffect)((()=>{p()||d("/login")}),[]),(0,e.useEffect)((()=>{null!=t.wdkit_meta.success&&c()}),[t.wdkit_meta]),(0,e.useEffect)((()=>{t?.Editor_code&&t?.Editor_data&&t?.cardData&&t?.widgetdata&&n?.Editor_code&&n?.carddata&&n?.widgetdata&&n?.e_links&&JSON.stringify(t.Editor_code)==JSON.stringify(n.Editor_code)&&JSON.stringify(t.Editor_data)==JSON.stringify(n.e_links)&&JSON.stringify(t.cardData)==JSON.stringify(n.carddata)&&JSON.stringify(t.widgetdata)==JSON.stringify(n.widgetdata)&&s(!1)}),[n]);const c=async()=>{let e=t?.wdkit_meta?.widget_list?.length>0?t?.wdkit_meta?.widget_list:[],i=await e.filter((e=>{if("plugin"==e?.type||"done"==e?.type)return e})),s=o?.id,n=s?s.replaceAll(" ","_"):"",l=i.findIndex((e=>e.title.replaceAll(" ","_")+"_"+e.w_unique==n));if(l>-1){let e=i[l];if("deactive"!=e?.is_activated){let a=e?.title?e.title.replaceAll(" ","_")+"_"+e.w_unique:"",i={type:"wkit_widget_json",folder_name:e?.title?e.title.replaceAll(" ","-")+"_"+e.w_unique:"",file_name:a,widget_type:e.builder};var c=await w(i).then((e=>e.success?e.data:[]));let s=[...t.Editor_code];s[0]=c.Editor_data;let n=c.Editor_data,l=c.section_data,o=c.widget_data.widgetdata,d=c.Editor_Link.links,p={Editor_code:[n],carddata:l,widgetdata:o,e_links:d};t.addToEditor_code(s),t.addToCarthandler(l),t.addTowidgethandler(o),t.addTolinkhandler(d),r(p)}else t.wdkit_set_notification({title:(0,a.__)("Widget Deactivated","wdesignkit"),desc:(0,a.__)("This Widget is Deactivated ","wdesignkit")}),d("/widget-listing")}else t.wdkit_set_notification({title:(0,a.__)("Widget Not Found","wdesignkit"),desc:(0,a.__)("Widget not found try again later","wdesignkit")}),d("/widget-listing")};if(i){let e=wdkitData?.wdkit_white_label?.plugin_logo||l+"assets/images/jpg/wdkit_loader.gif";return(0,g.jsx)("div",{className:"wkit-loading-content",style:{display:"flex"},draggable:!1,children:(0,g.jsx)("img",{style:{width:"150px",height:"150px"},src:e,draggable:!1})})}return(0,g.jsx)(Xi,{})})),es=t=>{var a=wdkitData.WDKIT_URL;const i=e=>Array.from({length:e}),[s,n]=(0,e.useState)(!0);return(0,g.jsxs)(g.Fragment,{children:[t?.filter&&(0,g.jsx)(g.Fragment,{children:(0,g.jsx)("div",{className:"wkit-browse-widget-column",children:(0,g.jsxs)("div",{className:"wkit-browse-widget-inner-column",children:[(0,g.jsx)("div",{className:"wdkit-filter-title-b",children:(0,g.jsx)("div",{className:"wdkit-filter-title-txt-b",children:"Filters"})}),(0,g.jsxs)("div",{className:"wkit-filter-wrap-panel",children:[(0,g.jsx)("div",{className:"wdkit-filter-accordion-b",children:(0,g.jsx)("div",{className:"wdkit-accordion-title-b",children:"Page Builder"})}),(0,g.jsx)("div",{className:"wkit-filter-builder",children:i(2).map(((e,t)=>(0,g.jsx)("div",{className:"wkit-wb-widgetType",children:(0,g.jsxs)("div",{className:"wkit-select-builder-list",children:[(0,g.jsx)("input",{type:"checkbox",className:"wkit-builder-radio"}),(0,g.jsx)("label",{className:"wkit-builder-label",children:(0,g.jsx)("img",{className:"wkit-browse-filter-builder wkit-select-builder",src:wdkitData.wdkit_site_api_url+"images/uploads/wpdk-admin/widgets-builder/builder-63a02503.svg",draggable:"false"})})]})},t)))}),(0,g.jsx)("hr",{style:{width:"100%"}}),(0,g.jsx)("div",{className:"wdkit-filter-accordion-b",children:(0,g.jsx)("div",{className:"wdkit-accordion-title-b",children:"Free / Pro"})}),(0,g.jsx)("div",{className:"wkit-freePro-wrap wkit-accordion-content",children:i(2).map(((e,t)=>(0,g.jsxs)("label",{className:"wkit-select-freePro-type",children:[(0,g.jsx)("input",{type:"checkbox",className:"wkit-check-box wkit-freePro-radio-inp"}),(0,g.jsx)("span",{className:"wkit-freePro-label",children:"Free"})]},t)))}),(0,g.jsx)("hr",{style:{width:"100%"}}),(0,g.jsxs)("div",{className:"wkit-filter-category",children:[(0,g.jsx)("div",{className:"wdkit-filter-accordion-b",children:(0,g.jsx)("div",{className:"wdkit-accordion-title-b",children:"Categories"})}),(0,g.jsx)("div",{className:"wdkit-category-acc-cover",children:i(7).map(((e,t)=>(0,g.jsx)("div",{className:"wkit-accordion-content",children:(0,g.jsx)("div",{className:"wkit-plugin-wrap",children:(0,g.jsxs)("label",{className:"wkit-plugin-name",children:[(0,g.jsx)("input",{type:"checkbox",className:"wkit-check-box wkit-styled-checkbox"}),(0,g.jsx)("span",{className:"wkit-widget-category-select",children:"Essential"})]})})},t)))})]})]})]})})}),(0,g.jsxs)("div",{className:"wkit-browse-widget-right-column",children:[t?.filter&&(0,g.jsx)("div",{className:"wdkit-search-filter",children:(0,g.jsx)("div",{className:"wdkit-search-wrapper-b",children:(0,g.jsx)("input",{className:"wkit-search-input-b",placeholder:"Search Widgets",type:"text"})})}),t?.cards&&(0,g.jsx)("div",{className:"wkit-browse-widget-right-column",children:(0,g.jsx)("div",{className:`wkit-skeleton-row wdkit-templates-card-main ${s?"wdkit-grid-3col":"wdkit-grid-4col"} ${s?"":"wkit-browse-filter-close"}`,children:i(12).map(((e,t)=>{return i=t,(0,g.jsx)("div",{className:"wkit-widgetlist-grid-content",children:(0,g.jsxs)("div",{className:"wdkit-browse-card",children:[(0,g.jsx)("div",{className:"wdkit-browse-img-cover",children:(0,g.jsx)("div",{className:"wdkit-browse-img-container",children:(0,g.jsx)("div",{className:"wdkit-template-picture",children:(0,g.jsx)("img",{className:"wdkit-card-template-img wkit-widget-placeholder-img",src:a+"assets/images/wkit-dummy-bg.png",draggable:"false",style:{opacity:"0"}})})})}),(0,g.jsxs)("div",{className:"wdkit-browse-info",children:[(0,g.jsx)("p",{className:"wdkit-browse-card-name",children:(0,g.jsx)("span",{children:"Modern Hover Post"})}),(0,g.jsxs)("div",{className:"wdkit-browse-card-btngroup",children:[(0,g.jsx)("div",{className:"wdkit-browse-card-download",children:(0,g.jsx)("div",{className:"plugin-download-icon",children:(0,g.jsx)("i",{className:"wdkit-i-download"})})}),(0,g.jsx)("div",{className:"wkit-widget-builder-icon",children:(0,g.jsx)("img",{src:wdkitData.wdkit_site_api_url+"images/uploads/wpdk-admin/widgets-builder/builder-63a02503.svg",draggable:"false"})})]})]})]})},i);var i}))})})]})]})},{Fragment:ts}=wp.element;let as=new AbortController;const is=t=>{const i=ue(),n=pe(),[r,l]=(0,e.useState)(1),[o,d]=(0,e.useState)(24),[c,m]=(0,e.useState)("loading"),[u,h]=(0,e.useState)(!0),[w,_]=(0,e.useState)(""),[f,k]=(0,e.useState)(),[b,x]=(0,e.useState)([]),[v,j]=(0,e.useState)(["page_builder","category","free_pro"]),[N,$]=(0,e.useState)(0),[C,S]=(0,e.useState)(!0),[D,E]=(0,e.useState)(!0),[P,A]=(0,e.useState)([]),[T,L]=(0,e.useState)(""),[M,F]=(0,e.useState)(""),[I,B]=(0,e.useState)({free_pro:"",type:"widget_browse_page",buildertype:"",perpage:o,page:r}),O=(0,e.useRef)(null),[R,V]=(0,e.useState)([]),[W,q]=(0,e.useState)(window.innerWidth<992),G=t?.wdkit_meta?.widgetbuilder?[...t?.wdkit_meta?.widgetbuilder]:[],z=t?.wdkit_meta?.widgetscategory?[...t?.wdkit_meta?.widgetscategory]:[],[H,U]=(0,e.useState)("");p()||t.wdkit_Login_Route("/widget-browse"),(0,e.useEffect)((()=>{k(t.wdkit_meta)}),[t.wdkit_meta]),(0,e.useEffect)((()=>{if(S(!0),n?.search){const e=new URLSearchParams(n.search),t={};Array.from(e?.entries()).map((([e,a])=>{t[e]=a})),B((e=>({...e,...t}))),t.category&&x(JSON.parse(t.category)),t.buildertype&&_(t.buildertype),t.free_pro&&U(t.free_pro),t.search&&(F(t.search),L(t.search))}}),[]),(0,e.useEffect)((()=>{X(),E(!0)}),[I,o,r,f]),(0,e.useEffect)((()=>{const e=()=>{q(window.innerWidth<992)};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}}),[]),(0,e.useEffect)((()=>{let e=[];t?.wdkit_meta?.Setting?.elementor_builder&&e.push(1),t?.wdkit_meta?.Setting?.gutenberg_builder&&e.push(2),t?.wdkit_meta?.Setting?.bricks_builder&&e.push(3),V(e)}),[t?.wdkit_meta?.Setting]);const J=e=>{let t=[];return G?.length>0&&e.map((e=>{let a=G.findIndex((t=>t.w_id==e)),i=G[a]?.builder_name;t.push(i)})),t},K=e=>Object.fromEntries(Object.entries(e).filter((([e,t])=>t.length>1&&"[]"!==t&&"type"!==e&&"page"!==e&&"perpage"!==e))),Z=(e,t)=>{if("category"===t){let t=[...b];if(t.includes(Number(e.target.value))){let i=t.indexOf(Number(e.target.value));t.splice(i,1),x(t);var a=Object.assign({},I,{category:JSON.stringify(t),page:1});l(1)}else t.push(Number(e.target.value)),x(t),a=Object.assign({},I,{category:JSON.stringify(t),page:1}),l(1)}else if("builder"===t){var s="";e.target.checked&&(s=e.target.value),_(s),a=Object.assign({},I,{buildertype:s,page:1}),l(1)}else if("search"===t)a=Object.assign({},I,{page:1}),l(1);else if("free_pro"===t){var n="";e.target.checked&&(n=e.target.value),U(n),a=Object.assign({},I,{free_pro:n,page:1}),l(1)}a=Object.assign({},a,{search:T}),B(a),F(T);const r=new URLSearchParams(K(a)).toString();i(`/widget-browse?${r}`)},Y=e=>{if(b.includes(e))return!0},X=async()=>{if(w)var e=Object.assign({},I,{buildertype:JSON.stringify([w])});else e=Object.assign({},I,{buildertype:JSON.stringify(J(R))});if(f?.widgetbuilder?.length>0){as&&as.abort(),as=new AbortController;let a=new FormData;a.append("action","get_wdesignkit"),a.append("kit_nonce",wdkitData.kit_nonce),Object.entries(e).forEach((([e,t])=>{a.append(e,t)})),await s().post(ajaxurl,a,{signal:as.signal}).then((async e=>{e?.data?.data?.widgets&&(m(e?.data),$(Math.ceil(e?.data?.data?.widgetscount/o)),await(async e=>{let a=[];(t?.wdkit_meta?.widget_list?t.wdkit_meta.widget_list:[]).map((async t=>{"plugin"!=t?.type&&"done"!=t?.type||(e?.data?.widgets&&e?.data?.widgets.findIndex((e=>e.w_unique==t.w_unique)))>-1&&a.push(t.w_unique)})),A(a)})(e?.data)),S(!1),E(!1)})).catch((e=>{s().isCancel(e)}))}},Q=async e=>{let t=document.querySelector(".wkit-browse-widget-column");e?(t.classList.add("wdkit-browse-column-collapse"),h(!0),setTimeout((()=>{t.classList.remove("wdkit-browse-column-collapse")}),50)):(t.classList.add("wdkit-browse-column-collapse"),setTimeout((()=>{h(!1)}),150))},ee=e=>{if(v?.includes(e)){var t=v.filter((t=>t!==e));j(t)}else j([...v,e])};return(0,g.jsx)("div",{className:`wkit-browse-widget-wrap ${C?"wkit-skeleton":""} ${D?"wkit-widget-skeleton":""}`,children:(0,g.jsxs)("div",{className:"wkit-browse-widget-main",children:[u&&W&&(0,g.jsx)("div",{className:"wdkit-filter-overlay",onClick:()=>Q(!1)}),0==C&&c?.data?.widgets&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"wkit-browse-widget-column",style:u?{display:"block"}:{display:"none"},children:(0,g.jsxs)("div",{className:"wkit-browse-widget-inner-column",children:[(0,g.jsx)(Le,{title:(0,a.__)("Filters","wdesignkit"),filterToggle:u,setFilterToggle:Q}),"wdkit"==wdkitData.use_editor&&(0,g.jsxs)("div",{className:"wkit-filter-wrap-panel wkit-mt-15 wkit-justify-left",children:[(()=>{if(R.length>1)return(0,g.jsxs)(ts,{children:[(0,g.jsx)(Fe,{id:"page_builder",title:(0,a.__)("Page Builder","wdesignkit"),accordionToggle:v,onToggle:ee}),v?.includes("page_builder")&&(0,g.jsx)("div",{className:"wkit-filter-builder",children:G.length>0&&R.length>1&&Object.values(G)?.map(((e,t)=>{if(R.includes(e.w_id))return(0,g.jsx)(ts,{children:(0,g.jsx)("div",{className:"wdkit-wb-widget-type",children:(0,g.jsxs)("div",{className:"wkit-select-builder-list",children:[(0,g.jsx)("input",{type:"checkbox",id:"select_builder_"+e.builder_name,className:"wkit-builder-radio",value:e.builder_name.toLowerCase(),name:"selectBuilder",onChange:e=>{Z(e,"builder")},checked:w.includes(e.builder_name.toLowerCase())}),(0,g.jsx)("label",{className:"wkit-builder-label "+(w==e.builder_name.toLowerCase()?"wkit-select-builder":""),htmlFor:"select_builder_"+e.builder_name,children:""!=e.builder_icon&&(0,g.jsx)("img",{className:"wkit-browse-filter-builder",src:e.builder_icon,draggable:!1})}),(0,g.jsx)("span",{className:"wkit-builder-toolTip",children:e.builder_name})]})})},t)}))}),(0,g.jsx)("hr",{style:{width:"90%"}})]})})(),(0,g.jsxs)(ts,{children:[(0,g.jsx)(Fe,{id:"free_pro",title:(0,a.__)("Free / Pro","wdesignkit"),accordionToggle:v,onToggle:ee}),v?.includes("free_pro")&&(0,g.jsxs)("div",{className:"wkit-freePro-wrap wdkit-accordion-content",children:[(0,g.jsxs)("label",{htmlFor:"wkit-free-all-btn-label",className:"wkit-select-freePro-type",children:[(0,g.jsx)("input",{type:"radio",className:"wkit-styled-type-radio wkit-freePro-radio-inp",id:"wkit-free-all-btn-label",value:"",name:"FreeProFilter",onChange:e=>{Z(e,"free_pro")},checked:!I.free_pro||""==I.free_pro}),(0,g.jsx)("span",{className:"wkit-freePro-label",children:(0,a.__)("All","wdesignkit")})]}),(0,g.jsxs)("label",{htmlFor:"wkit-free-btn-label",className:"wkit-select-freePro-type",children:[(0,g.jsx)("input",{type:"radio",className:"wkit-styled-type-radio wkit-freePro-radio-inp",id:"wkit-free-btn-label",value:"free",name:"FreeProFilter",onChange:e=>{Z(e,"free_pro")},checked:"free"==I.free_pro}),(0,g.jsx)("span",{className:"wkit-freePro-label",children:(0,a.__)("Free","wdesignkit")})]}),(0,g.jsxs)("label",{htmlFor:"wkit-pro-btn-label",className:"wkit-select-freePro-type",children:[(0,g.jsx)("input",{type:"radio",className:"wkit-styled-type-radio wkit-freePro-radio-inp",id:"wkit-pro-btn-label",value:"pro",name:"FreeProFilter",onChange:e=>{Z(e,"free_pro")},checked:"pro"==I.free_pro}),(0,g.jsx)("span",{className:"wkit-freePro-label",children:(0,a.__)("Pro","wdesignkit")})]})]}),(0,g.jsx)("hr",{style:{width:"90%"}})]}),(0,g.jsxs)("div",{className:"wkit-filter-category",children:[(0,g.jsx)(Fe,{id:"category",title:(0,a.__)("Categories","wdesignkit"),accordionToggle:v,onToggle:ee}),(0,g.jsx)("div",{className:"wdkit-category-acc-cover",children:z&&v.includes("category")&&z.map(((e,t)=>(0,g.jsx)(ts,{children:(0,g.jsx)("div",{className:"wdkit-accordion-content",children:(0,g.jsx)("div",{className:"wkit-plugin-wrap",children:(0,g.jsxs)("label",{htmlFor:"category_"+e.term_id,className:"wkit-plugin-name",children:[(0,g.jsx)("input",{type:"checkbox",value:Number(e.term_id),className:"wkit-check-box wkit-styled-checkbox",id:"category_"+e.term_id,name:"selectPlugin",onChange:e=>Z(e,"category"),checked:Y(e.term_id)}),(0,g.jsx)("span",{className:"wkit-widget-category-select",children:e.term_name})]})})},t)},t)))})]})]})]})}),(0,g.jsxs)("div",{className:"wkit-browse-widget-right-column",children:[(()=>{const e=(e,t)=>{let a;if("builder"==t)_(""),a=Object.assign({},I,{buildertype:""}),B(a);else if("category"==t){let t=[...b];t=t.filter((t=>t!==Number(e))),x(t),a=Object.assign({},I,{category:JSON.stringify(t)}),B(a)}else"free_pro"==t?(U(""),a=Object.assign({},I,{free_pro:""}),B(a)):"search"==t&&(F(""),L(""),a=Object.assign({},I,{search:""}),B(a));const s=new URLSearchParams(K(a)).toString();i(`/widget-browse?${s}`)};return(0,g.jsx)("div",{className:"wdkit-free-dropdown-mixed",children:(""!=H||b.length>0||""!=w||""!=M)&&(0,g.jsx)("div",{className:"wdkit-browse-applied-filter",children:(0,g.jsxs)(ts,{children:[(0,g.jsx)("label",{className:"wdkit-applied-filter-text",children:(0,a.__)("Applied Filter :")}),""!=w&&(0,g.jsxs)("div",{className:"wdkit-applied-list",children:[(0,g.jsx)("label",{children:(0,g.jsx)("span",{children:w})}),(0,g.jsxs)("button",{onClick:t=>e(t,"builder"),children:[(0,g.jsx)("svg",{width:"10",height:"10",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,g.jsx)("path",{d:"M1.40091 15.2558C1.66182 15.5169 2.01481 15.6637 2.38274 15.6637C2.75067 15.6637 3.10366 15.5169 3.36456 15.2558L8.29499 10.2193L13.2254 15.2558C13.5884 15.6217 14.118 15.7645 14.6141 15.6306C15.1103 15.4967 15.4981 15.1062 15.6309 14.6064C15.7639 14.1067 15.6221 13.5733 15.2588 13.2076L10.2587 8.24141L15.2588 3.27521C15.5659 2.91424 15.6703 2.42082 15.5365 1.96497C15.4027 1.50913 15.0485 1.15236 14.5959 1.01757C14.1431 0.882762 13.6535 0.987976 13.2949 1.29727L8.29499 6.26348L3.36455 1.29727C3.00619 0.987976 2.51632 0.882762 2.06375 1.01757C1.61119 1.15237 1.257 1.50911 1.12317 1.96497C0.989339 2.42082 1.0938 2.91424 1.40087 3.27521L6.3313 8.24141L1.40087 13.2076C1.11968 13.4728 0.959961 13.8436 0.959961 14.2316C0.959961 14.6198 1.11968 14.9904 1.40087 15.2557L1.40091 15.2558Z",fill:"black"})})," "]})]}),""!=M&&(0,g.jsxs)("div",{className:"wdkit-applied-list",children:[(0,g.jsx)("label",{children:(0,g.jsx)("span",{children:M})}),(0,g.jsx)("button",{onClick:t=>e(t,"search"),children:(0,g.jsx)("svg",{width:"10",height:"10",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,g.jsx)("path",{d:"M1.40091 15.2558C1.66182 15.5169 2.01481 15.6637 2.38274 15.6637C2.75067 15.6637 3.10366 15.5169 3.36456 15.2558L8.29499 10.2193L13.2254 15.2558C13.5884 15.6217 14.118 15.7645 14.6141 15.6306C15.1103 15.4967 15.4981 15.1062 15.6309 14.6064C15.7639 14.1067 15.6221 13.5733 15.2588 13.2076L10.2587 8.24141L15.2588 3.27521C15.5659 2.91424 15.6703 2.42082 15.5365 1.96497C15.4027 1.50913 15.0485 1.15236 14.5959 1.01757C14.1431 0.882762 13.6535 0.987976 13.2949 1.29727L8.29499 6.26348L3.36455 1.29727C3.00619 0.987976 2.51632 0.882762 2.06375 1.01757C1.61119 1.15237 1.257 1.50911 1.12317 1.96497C0.989339 2.42082 1.0938 2.91424 1.40087 3.27521L6.3313 8.24141L1.40087 13.2076C1.11968 13.4728 0.959961 13.8436 0.959961 14.2316C0.959961 14.6198 1.11968 14.9904 1.40087 15.2557L1.40091 15.2558Z",fill:"black"})})})]}),""!=H&&(0,g.jsxs)("div",{className:"wdkit-applied-list",children:[(0,g.jsx)("label",{children:(0,g.jsx)("span",{children:H})}),(0,g.jsxs)("button",{onClick:t=>e(t,"free_pro"),children:[(0,g.jsx)("svg",{width:"10",height:"10",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,g.jsx)("path",{d:"M1.40091 15.2558C1.66182 15.5169 2.01481 15.6637 2.38274 15.6637C2.75067 15.6637 3.10366 15.5169 3.36456 15.2558L8.29499 10.2193L13.2254 15.2558C13.5884 15.6217 14.118 15.7645 14.6141 15.6306C15.1103 15.4967 15.4981 15.1062 15.6309 14.6064C15.7639 14.1067 15.6221 13.5733 15.2588 13.2076L10.2587 8.24141L15.2588 3.27521C15.5659 2.91424 15.6703 2.42082 15.5365 1.96497C15.4027 1.50913 15.0485 1.15236 14.5959 1.01757C14.1431 0.882762 13.6535 0.987976 13.2949 1.29727L8.29499 6.26348L3.36455 1.29727C3.00619 0.987976 2.51632 0.882762 2.06375 1.01757C1.61119 1.15237 1.257 1.50911 1.12317 1.96497C0.989339 2.42082 1.0938 2.91424 1.40087 3.27521L6.3313 8.24141L1.40087 13.2076C1.11968 13.4728 0.959961 13.8436 0.959961 14.2316C0.959961 14.6198 1.11968 14.9904 1.40087 15.2557L1.40091 15.2558Z",fill:"black"})})," "]})]}),b.length>0&&Object.values(z)?.map(((t,a)=>(0,g.jsx)(ts,{children:b.includes(t.term_id)&&(0,g.jsxs)("div",{className:"wdkit-applied-list",children:[(0,g.jsx)("label",{children:(0,g.jsx)("span",{children:t.term_name})}),(0,g.jsx)("button",{onClick:()=>{e(t.term_id,"category")},children:(0,g.jsx)("svg",{width:"10",height:"10",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,g.jsx)("path",{d:"M1.40091 15.2558C1.66182 15.5169 2.01481 15.6637 2.38274 15.6637C2.75067 15.6637 3.10366 15.5169 3.36456 15.2558L8.29499 10.2193L13.2254 15.2558C13.5884 15.6217 14.118 15.7645 14.6141 15.6306C15.1103 15.4967 15.4981 15.1062 15.6309 14.6064C15.7639 14.1067 15.6221 13.5733 15.2588 13.2076L10.2587 8.24141L15.2588 3.27521C15.5659 2.91424 15.6703 2.42082 15.5365 1.96497C15.4027 1.50913 15.0485 1.15236 14.5959 1.01757C14.1431 0.882762 13.6535 0.987976 13.2949 1.29727L8.29499 6.26348L3.36455 1.29727C3.00619 0.987976 2.51632 0.882762 2.06375 1.01757C1.61119 1.15237 1.257 1.50911 1.12317 1.96497C0.989339 2.42082 1.0938 2.91424 1.40087 3.27521L6.3313 8.24141L1.40087 13.2076C1.11968 13.4728 0.959961 13.8436 0.959961 14.2316C0.959961 14.6198 1.11968 14.9904 1.40087 15.2557L1.40091 15.2558Z",fill:"black"})})})]})},a))),(0,g.jsx)("button",{className:"wdkit-reset-all-filters wdkit-btn-class",onClick:()=>{x([]),U(""),_(""),F(""),L(""),B(Object.assign({},I,{free_pro:"",category:JSON.stringify([]),buildertype:"",search:"",perpage:o,page:1})),i("/widget-browse")},children:"Clear All"})]})})})})(),(0,g.jsxs)("div",{className:"wdkit-search-filter",children:[!u&&(0,g.jsx)("div",{className:"wdkit-filter-btn",onClick:()=>{Q(!u)},children:(0,g.jsx)("i",{className:"wdkit-i-filter"})}),(0,g.jsx)(Me,{type:"browse-widgets",searchQuery:T,setSearchQuery:L,handleKeyPress:e=>{"Enter"===e.key&&(Z(e,"search"),O.current.blur())},handleFilterChecked:Z,inputRef:O})]}),0==D&&c?.data?.widgets.length>0&&(0,g.jsxs)("div",{className:"wkit-browse-widget-right-column",children:[(0,g.jsx)("div",{className:`wdkit-templates-card-main ${u?"wdkit-grid-3col":"wdkit-grid-4col"} ${u?"":"wkit-browse-filter-close"}`,children:c?.data?.widgets.map(((e,a)=>{if("active"==e.is_activated)return(0,g.jsx)(ts,{children:(0,g.jsx)(Vt,{widgetData:e,wdkit_dark_mode:t?.wdkit_dark_mode,existingwidget:P,setexistingwidget:e=>{A(e)},widgetbuilder:t.wdkit_meta.widgetbuilder,index:a,userinfo:t?.wdkit_meta?.userinfo,credits:t?.wdkit_meta?.credits,type:"widget-browse",wdkit_set_meta:e=>{t.wdkit_set_meta(e)},wdkit_meta:t?.wdkit_meta,wdkit_set_notification:e=>t.wdkit_set_notification(e)})},a)}))}),(0,g.jsxs)("div",{className:"wkit-pagination-main wdkit-pagination-with-count",children:[c?.data?.showwidgets>0&&c?.data?.widgetscount>0&&(0,g.jsx)(st,{showCount:c?.data?.showwidgets,totalCount:c?.data?.widgetscount,typeText:(0,a.__)("Widgets","wdesignkit")}),N>1&&(0,g.jsx)(y(),{breakLabel:"...",nextLabel:(0,g.jsx)("i",{className:"wdkit-i-right-arrow"}),pageRangeDisplayed:2,pageCount:N,marginPagesDisplayed:1,previousLabel:(0,g.jsx)("i",{className:"wdkit-i-left-arrow"}),pageClassName:"wkit-page-item",pageLinkClassName:"wkit-pagination-item",previousClassName:"wkit-next-prev wkit-prev-pagination",previousLinkClassName:"wkit-pagination-item",nextClassName:"wkit-next-prev wkit-next-pagination",nextLinkClassName:"wkit-pagination-item",breakClassName:"wkit-page-item",breakLinkClassName:"page-link",containerClassName:"wkit-pagination",activeClassName:"active",onClick:e=>{window.scrollTo({top:0,left:0,behavior:"smooth"}),null!=e.nextSelectedPage&&(l(e.nextSelectedPage+1),I.page=e.nextSelectedPage+1)},forcePage:r-1,onPageActive:()=>{}})]})]}),0==D&&c?.data?.widgets.length<=0&&(0,g.jsx)("div",{className:"wkit-post-not-found",children:(0,g.jsx)(it,{page:"widget",link:wdkitData.WDKIT_DOC_URL+"manage-versions-of-a-widget/"})}),1==D&&(0,g.jsx)(es,{cards:!0})]})]}),!0===C&&(0,g.jsx)(es,{filter:!0,cards:!0,filterArgs:I})]})})};let ss=new AbortController;const ns=t=>{const[i,n]=(0,e.useState)(!1),[r,l]=(0,e.useState)(""),[o,d]=(0,e.useState)(""),[c,m]=(0,e.useState)(""),[u,h]=(0,e.useState)("Select Version"),[_,f]=(0,e.useState)(!1),[k,b]=(0,e.useState)(!0),[x,v]=(0,e.useState)(!1),[y,j]=(0,e.useState)(!1),N=wdkitData?.wdkit_white_label,[$,C]=(0,e.useState)({plugin_name:N?.plugin_name||"",plugin_desc:N?.plugin_desc||"",developer_name:N?.developer_name||"",website_url:N?.website_url||"",plugin_logo:N?.plugin_logo||"",help_link:N?.help_link||!1,plugin_news:N?.plugin_news||!1,licence_tab:N?.licence_tab||!1,rollback_tab:N?.rollback_tab||!1,force_disable:N?.force_disable||!1});(0,e.useEffect)((()=>{D()}),[]),(0,e.useEffect)((()=>{!i&&x&&v(!1)}),[i]);const S={plugin_name:"WDesignKit",plugin_desc:"Your All-in-One solution for effortless WordPress website creation and collaboration. With over 1,000+ Elementor and WordPress website templates, a library of 50+ pre-made widgets for Elementor, Gutenberg Blocks, and Bricks, along with a cloud workspace for collaboration and more.",developer_name:"POSIMYTH",website_url:wdkitData.wdkit_server_url,plugin_logo:"",help_link:!1,plugin_news:!1,licence_tab:!1,rollback_tab:!1,force_disable:!1},D=()=>{C(N?{plugin_name:N?.plugin_name||"",plugin_desc:N?.plugin_desc||"",developer_name:N?.developer_name||"",website_url:N?.website_url||"",plugin_logo:N?.plugin_logo||"",help_link:N?.help_link||!1,plugin_news:N?.plugin_news||!1,licence_tab:N?.licence_tab||!1,rollback_tab:N?.rollback_tab||!1,force_disable:N?.force_disable||!1}:S)};t.wdkit_Login_Route("/settings");var E=wdkitData.WDKIT_URL;const P=["studio","lifetime"];var A=!0,T=!0,L=!0,M=!0,F=!0,I=!0,B=!0,O=!0,R={remove_entries:!1,all_data:!1,promotion_data:!1,widget_builder_data:!1};if(t?.wdkit_meta?.Setting){var V=t?.wdkit_meta?.Setting;0==V?.elementor_builder&&(A=!1),0==V?.gutenberg_builder&&(T=!1),0==V?.bricks_builder&&(L=!1),0==V?.template&&(M=!1),0==V?.builder&&(F=!1),0==V?.gutenberg_template&&(I=!1),0==V?.elementor_template&&(B=!1),0==V?.code_snippet&&(O=!1),"on"==t?.wdkit_meta?.Setting.remove_db?.remove_entries&&(R.remove_entries=!0,1==t?.wdkit_meta?.Setting.remove_db?.all_data&&(R.all_data=!0),1==t?.wdkit_meta?.Setting.remove_db?.promotion_data&&(R.promotion_data=!0),1==t?.wdkit_meta?.Setting.remove_db?.widget_builder_data&&(R.widget_builder_data=!0))}const W=e=>{var t="";return"error_handling"==e?t=(0,a.__)("Error Handling","wdesignkit"):"performance"==e?t=(0,a.__)("Performance","wdesignkit"):"role_manager"==e&&(t=(0,a.__)("Role Manager","wdesignkit")),(0,g.jsx)("div",{className:"wkit-mange-boxed-inner",children:(0,g.jsx)("div",{className:"wkit-settings-boxed",children:(0,g.jsx)("div",{children:(0,g.jsxs)("div",{className:"wdkit-setting-card-header",children:[(0,g.jsx)("h3",{className:"wdkit-settings-boxed-head",children:t}),(0,g.jsx)("span",{className:"wdkit-comming-soon-pin",children:(0,a.__)("Coming Soon","wdesignkit")})]})})})})},q=e=>{var i="",s="";"builder"==e?i=(0,a.__)("Widget Builders","wdesignkit"):"features_enable"==e?i=(0,a.__)("Features Manager","wdesignkit"):"template"==e?i=(0,a.__)("Design Templates","wdesignkit"):"roll_back"==e?i=(0,a.__)("Roll Back","wdesignkit"):"plugin_uninstall"==e?i=(0,a.__)("Remove Database","wdesignkit"):"white_label"==e&&(i=(0,a.__)("White Label","wdesignkit"));const r=a=>{if(("builder"===e||"template"===e)&&0==t?.wdkit_meta?.Setting?.[e]){if("disable_btn"===a)return"wkit-disable-btn-class";if("disable_element"===a)return"wdkit-diabled-element"}if(!("white_label"!==e||p()&&P.includes(t?.wdkit_meta?.credits?.user_type))&&(s=(0,g.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,g.jsx)("path",{d:"M23.4001 8.60399C23.4001 9.41758 22.8721 10.1376 22.3945 10.4256L21.5809 16.9392C21.5329 17.3208 21.2449 17.6568 20.8609 17.8008C15.2089 19.764 9.07932 19.764 3.47289 17.8008C3.0913 17.7048 2.80328 17.3208 2.75529 16.9392L1.94172 10.4256C1.1737 10.1856 0.600098 9.46559 0.600098 8.60399C0.600098 7.55039 1.46172 6.68878 2.51529 6.68878C3.5689 6.68878 4.43289 7.55039 4.43289 8.60399C4.43289 8.93999 4.3849 9.22799 4.24088 9.46559L6.01211 11.2392C6.3961 11.6688 7.06568 11.6688 7.49769 11.2392L10.7065 8.03039C10.3705 7.64638 10.1329 7.16638 10.1329 6.6408C10.1329 5.58719 10.9945 4.72559 12.0481 4.72559C13.1017 4.72559 13.9633 5.58719 13.9633 6.6408C13.9633 7.21438 13.7233 7.69438 13.3897 8.03039L16.5985 11.2392C16.9825 11.6688 17.6521 11.6688 18.0841 11.2392L19.8073 9.51359C19.6633 9.22799 19.5673 8.93999 19.5673 8.60399C19.5673 7.55039 20.4313 6.68878 21.4849 6.68878C22.5385 6.68878 23.4001 7.55039 23.4001 8.60399Z",fill:"#FFC100"})}),"wl-pro"===a))return"wdkit-setting-btn-enable-disble wdkit-btn-opacity"};return(0,g.jsx)("div",{className:`wkit-mange-boxed-inner ${r("disable_btn")}`,children:(0,g.jsxs)("div",{className:`wkit-settings-boxed ${r("disable_element")}`,children:[(0,g.jsx)("div",{children:(0,g.jsxs)("div",{className:"wdkit-card-title",children:[(0,g.jsxs)("span",{className:"wdkit-card-detail",children:["white_label"===e&&!s&&!wdkitData?.wdkit_white_label?.help_link&&(0,g.jsx)("span",{className:"wdkit-label-tooltip",children:(0,g.jsx)("a",{href:wdkitData.WDKIT_DOC_URL+"white-label-wdesignkit-with-your-brand-name/",target:"_blank",rel:"noopener noreferrer",className:"wkit-wl-doc-link",children:(0,a.__)("Read Document","wdesignkit")})}),(0,g.jsx)("h3",{className:"wdkit-settings-boxed-head",children:i})]}),s&&(0,g.jsxs)("div",{className:"wdkit-wl-tolltip",children:[s,(0,g.jsxs)("span",{className:"wdkit-wl-user-msg",children:[(0,a.__)("Only lifetime & studio users can access this feature.","wdesignkit"),!wdkitData?.wdkit_white_label?.help_link&&(0,g.jsx)("a",{className:"wkit-wl-doc",href:wdkitData.WDKIT_DOC_URL+"white-label-wdesignkit-with-your-brand-name/",target:"_blank",rel:"noopener noreferrer",children:(0,a.__)(" Read Document","wdesignkit")})]})]})]})}),(0,g.jsx)("div",{className:"wdkit-setting-panel-ed",children:(0,g.jsx)("button",{type:"submit",disabled:!!s,className:`wkit-setting-icon-bg wdkit-transp-btn ${r("wl-pro")}`,onClick:()=>{l(e),d(i),n(!0)},children:(0,g.jsx)("span",{children:(0,a.__)("Customize","wdesignkit")})})})]})})},G=()=>{const e=[{text:(0,a.__)("Hide all Help Links?","wdesignkit"),key:"help_link"},{text:(0,a.__)("Hide all Plugin Updates related News?","wdesignkit"),key:"plugin_news"},{text:(0,a.__)("Hide Licence Key Tab?","wdesignkit"),key:"licence_tab"},{text:(0,a.__)("Hide Plugin RollBack Tab?","wdesignkit"),key:"rollback_tab"},{text:"Enable Force Disable Options : If you enable this option, It will be completely hidden. If you want it back, You have to deactivate and activate plugin to make it work again.",key:"force_disable"}],i=(e,t)=>{"plugin_name"==e&&j(!1);let a=Object.assign({},$,{[e]:t});C(a)};return(0,g.jsxs)("div",{className:"wkit-whiteLabel-container",children:[(0,g.jsx)("div",{className:"wkit-inp-container",children:(0,g.jsxs)("div",{className:"wkit-data-container",children:[(0,g.jsx)("label",{htmlFor:"wdkit_plugin_name_update",className:"wkit-whiteLabel-label",children:(0,a.__)("Plugin Name","wdesignkit")}),(0,g.jsx)("input",{id:"wdkit_plugin_name_update",className:"wkit-whiteLabel-input "+(y?"wkit-error-border":""),onChange:e=>{i("plugin_name",e.target.value)},value:$?.plugin_name,type:"text",placeholder:(0,a.__)("Enter Plugin Name","wdesignkit")}),y&&(0,g.jsx)("span",{className:"wkit-wl-tooltip",children:(0,a.__)("Name cannot be empty","wdesignkit")})]})}),(0,g.jsx)("div",{className:"wkit-inp-container",children:(0,g.jsxs)("div",{className:"wkit-data-container",children:[(0,g.jsx)("label",{htmlFor:"wdkit_plugin_desc_update",className:"wkit-whiteLabel-label",children:(0,a.__)("Plugin Description","wdesignkit")}),(0,g.jsx)("textarea",{id:"wdkit_plugin_desc_update",value:$?.plugin_desc,onChange:e=>{i("plugin_desc",e.target.value)},className:"wkit-whiteLabel-input wkit-whiteLabel-textarea",placeholder:(0,a.__)("Enter Plugin Description","wdesignkit"),cols:"5"})]})}),(0,g.jsxs)("div",{className:"wdkit_field_card_cover",children:[(0,g.jsxs)("div",{className:"wkit-data-container",children:[(0,g.jsx)("label",{htmlFor:"wdkit_plugin_dname",className:"wkit-whiteLabel-label",children:(0,a.__)("Developer/Agency","wdesignkit")}),(0,g.jsx)("input",{id:"wdkit_plugin_dname",value:$?.developer_name,onChange:e=>{i("developer_name",e.target.value)},className:"wkit-whiteLabel-input",type:"text",placeholder:(0,a.__)("Enter Developer Name","wdesignkit")})]}),(0,g.jsxs)("div",{className:"wkit-data-container",children:[(0,g.jsx)("label",{htmlFor:"wdkit_plugin_webURL",className:"wkit-whiteLabel-label",children:(0,a.__)("Website URL","wdesignkit")}),(0,g.jsx)("input",{id:"wdkit_plugin_webURL",value:$?.website_url,onChange:e=>{i("website_url",e.target.value)},className:"wkit-whiteLabel-input",type:"text",placeholder:(0,a.__)("Enter Web URL","wdesignkit")})]})]}),(0,g.jsx)("div",{className:"wkit-inp-container",children:(0,g.jsxs)("div",{className:"wkit-data-container",children:[(0,g.jsx)("label",{className:"wkit-whiteLabel-label",children:(0,a.__)("Plus Icon/Logo","wdesignkit")}),(0,g.jsx)("div",{className:"wkit-wl-logo-content",onClick:e=>{(e=>{e.target.closest(".wkit_wl_remove_img")?i("plugin_logo",""):(()=>{const e=wp?.media({title:(0,a.__)("Select or Upload Media","wdesignkit"),button:{text:(0,a.__)("Use this media","wdesignkit")},multiple:!1,library:{type:"image"}});e.on("select",(()=>{const t=e.state().get("selection").first().toJSON();i("plugin_logo",t.url)})),e.open()})()})(e)},children:$?.plugin_logo?(0,g.jsxs)("div",{className:"wkit-plugin-icon-upload wkit-wl-img-uploaded",children:[(0,g.jsx)("span",{className:"wkit_wl_remove_img",children:(0,g.jsx)("i",{className:"wdkit-i-cancel"})}),(0,g.jsx)("img",{src:$?.plugin_logo})]}):(0,g.jsxs)("div",{className:"wkit-plugin-icon-upload",children:[(0,g.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"45",height:"42",viewBox:"0 0 45 42",fill:"none",children:(0,g.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.5 0.75C0.5 0.335786 0.835786 0 1.25 0H2.75C3.16421 0 3.5 0.335786 3.5 0.75V2.25C3.5 2.66421 3.16421 3 2.75 3H1.25C0.835786 3 0.5 2.66421 0.5 2.25V0.75ZM30.5 22.6935C30.5 21.5302 31.7667 20.8097 32.7666 21.4042L44.0634 28.1212C45.1789 28.7845 44.9829 30.4552 43.7442 30.8423L40.2441 31.9361L43.5291 37.6102C43.9396 38.3193 43.7053 39.2265 43.0027 39.648L40.5391 41.1262C39.8209 41.5571 38.8889 41.3164 38.4692 40.5915L35.1917 34.9303L33.009 36.9145C32.0454 37.7905 30.5 37.1068 30.5 35.8046V22.6935ZM43.2968 29.4105L32 22.6935V35.8046L34.1827 33.8203C34.8902 33.1772 36.0108 33.3512 36.4898 34.1787L39.7674 39.8399L42.231 38.3618L38.9459 32.6876C38.4641 31.8554 38.8788 30.7912 39.7967 30.5043L43.2968 29.4105ZM8.75 0C8.33579 0 8 0.335786 8 0.75V2.25C8 2.66421 8.33579 3 8.75 3H10.25C10.6642 3 11 2.66421 11 2.25V0.75C11 0.335786 10.6642 0 10.25 0H8.75ZM15.5 0.75C15.5 0.335786 15.8358 0 16.25 0H17.75C18.1642 0 18.5 0.335786 18.5 0.75V2.25C18.5 2.66421 18.1642 3 17.75 3H16.25C15.8358 3 15.5 2.66421 15.5 2.25V0.75ZM23.75 0C23.3358 0 23 0.335786 23 0.75V2.25C23 2.66421 23.3358 3 23.75 3H25.25C25.6642 3 26 2.66421 26 2.25V0.75C26 0.335786 25.6642 0 25.25 0H23.75ZM23 8.25C23 7.83579 23.3358 7.5 23.75 7.5H25.25C25.6642 7.5 26 7.83579 26 8.25V9.75C26 10.1642 25.6642 10.5 25.25 10.5H23.75C23.3358 10.5 23 10.1642 23 9.75V8.25ZM16.25 12C14.5931 12 13.25 13.3431 13.25 15V36C13.25 37.6569 14.5931 39 16.25 39H26.75V37.5H16.25C15.4216 37.5 14.75 36.8284 14.75 36V15C14.75 14.1716 15.4216 13.5 16.25 13.5H37.25C38.0784 13.5 38.75 14.1716 38.75 15V20.25H40.25V15C40.25 13.3431 38.9069 12 37.25 12H16.25ZM0.5 8.25C0.5 7.83579 0.835786 7.5 1.25 7.5H2.75C3.16421 7.5 3.5 7.83579 3.5 8.25V9.75C3.5 10.1642 3.16421 10.5 2.75 10.5H1.25C0.835786 10.5 0.5 10.1642 0.5 9.75V8.25ZM1.25 15C0.835786 15 0.5 15.3358 0.5 15.75V17.25C0.5 17.6642 0.835786 18 1.25 18H2.75C3.16421 18 3.5 17.6642 3.5 17.25V15.75C3.5 15.3358 3.16421 15 2.75 15H1.25ZM0.5 23.25C0.5 22.8358 0.835786 22.5 1.25 22.5H2.75C3.16421 22.5 3.5 22.8358 3.5 23.25V24.75C3.5 25.1642 3.16421 25.5 2.75 25.5H1.25C0.835786 25.5 0.5 25.1642 0.5 24.75V23.25ZM8.75 22.5C8.33579 22.5 8 22.8358 8 23.25V24.75C8 25.1642 8.33579 25.5 8.75 25.5H10.25C10.6642 25.5 11 25.1642 11 24.75V23.25C11 22.8358 10.6642 22.5 10.25 22.5H8.75Z",fill:"#A1A1A1"})}),(0,g.jsx)("span",{className:"tpae_select_img_txt",children:(0,a.__)("Upload Icon File (Only .PNG, .JPG, and .SVG are supported)","wdesignkit")})]})})]})}),(0,g.jsx)("div",{className:"wkit_wl_checkbox_list",children:e.length>0&&e.map(((e,t)=>(0,g.jsxs)("div",{className:"wkit_check_box_list",children:[(0,g.jsx)("input",{type:"checkbox",id:"wkit_"+e.key,className:"wkit-check-box",checked:$?.[e.key],onChange:t=>{i(e.key,t.target.checked)}}),(0,g.jsx)("label",{className:"wkit_checkbox_label",dangerouslySetInnerHTML:{__html:e.text},htmlFor:"wkit_"+e.key})]},t)))}),(0,g.jsxs)("div",{className:"wdkit_field_card_cover",children:[(0,g.jsx)("button",{className:"wkit-btn-class",disabled:JSON.stringify($)==JSON.stringify(S),onClick:()=>{(async()=>{confirm("Are you sure you want to reset the white label?")&&await w({type:"wkit_reset_wl"}).then((e=>{e?.success&&window.location.reload()}))})()},children:(0,a.__)("Reset","wdesignkit")}),(0,g.jsx)("button",{className:"wkit-btn-class",onClick:()=>{(async()=>{if(!$?.plugin_name.trim()){j(!0);const e=document.querySelector(".wkit-whiteLabel-container"),t=document.querySelector("#wdkit_plugin_name_update").offsetTop-150;return void e.scrollTo({top:t,behavior:"smooth"})}if(!confirm("Would you like to proceed with the white label update?"))return;let e={type:"wkit_white_label",WhiteLabelData:JSON.stringify($)};await w(e).then((e=>{if(e?.data){let a=Object.assign({},t?.wdkit_meta,{white_label:e?.data});t.wdkit_set_meta(a),window.location.reload()}}))})()},children:(0,a.__)("Save Settings","wdesignkit")})]})]})},z=(e,a,i)=>{if(i){if(a)var n=Object.assign({},t?.wdkit_meta?.Setting?.[i],{[e]:a});else delete t?.wdkit_meta?.Setting?.[i]?.[e],n=t?.wdkit_meta?.Setting?.[i];var r=Object.assign({},t?.wdkit_meta?.Setting,{[i]:n})}else r=Object.assign({},t?.wdkit_meta?.Setting,{[e]:a});let l=Object.assign({},t?.wdkit_meta,{Setting:r});t.wdkit_set_meta(l);let o=new FormData;o.append("action","get_wdesignkit"),o.append("kit_nonce",wdkitData.kit_nonce),o.append("type","wkit_setting_panel"),o.append("event","set"),o.append("data",JSON.stringify(r)),ss&&ss.abort(),ss=new AbortController,s().post(ajaxurl,o,{signal:ss.signal}).then((async e=>{if(1==e?.success&&e?.data){let e=Object.assign({},t?.wdkit_meta,{Setting:r});t.wdkit_set_meta(e)}})).catch((e=>{s().isCancel(e)}))},H=(e,t)=>{var i="",s="";return"builder"==e?(i=(0,a.__)("Widget Builders","wdesignkit"),s=(0,a.__)("Create and customize your own widgets.","wdesignkit")):"features_enable"==e?(i=(0,a.__)("Features Manager","wdesignkit"),s=(0,a.__)("Manage and control all features.","wdesignkit")):"template"==e?(i=(0,a.__)("Design Templates","wdesignkit"),s=(0,a.__)("Browse and use ready-made templates.","wdesignkit")):"roll_back"==e?(i=(0,a.__)("Roll Back","wdesignkit"),s=(0,a.__)("Restore a previous version easily.","wdesignkit")):"plugin_uninstall"==e?(i=(0,a.__)("Wipe Settings before Uninstall","wdesignkit"),s=(0,a.__)("Delete the selected database permanently.","wdesignkit")):"white_label"==e&&(i=(0,a.__)("White Label","wdesignkit"),s=(0,a.__)("Customize branding with your own identity. ","wdesignkit")),"title"==t?i:"desc"==t?s:void 0};return(0,g.jsx)("div",{className:"wdkit-settings-page-main",children:(0,g.jsxs)("div",{className:"wkit-settings-boxed-wrapper",children:[q("features_enable"),q("template"),q("builder"),q("plugin_uninstall"),t?.wdkit_meta?.success&&!N?.rollback_tab&&q("roll_back"),t?.wdkit_meta?.success&&!N?.force_disable&&q("white_label"),W("role_manager"),W("error_handling"),W("performance"),i&&(0,g.jsx)(Be,{title:H(r,"title"),desc:H(r,"desc"),body:(e=>"builder"==e?(0,g.jsxs)("div",{className:"wkit-builder-wrapper",children:[(0,g.jsxs)("div",{className:"wkit-builder-items",children:[(0,g.jsxs)("div",{className:"manage-builder-popup-item",children:[(0,g.jsx)("img",{src:E+"assets/images/wb-svg/elementor.svg",className:"no-plugin-img",alt:"no-plugin",draggable:"false"}),(0,g.jsx)("span",{className:"wkit-popup-plugin-name",children:(0,a.__)("Elementor Widget Builder","wdesignkit")}),(0,g.jsxs)("div",{className:"tooltip-text-hover",children:[(0,g.jsx)("i",{className:"wdkit-i-info"}),(0,g.jsx)("span",{className:"toolTip",children:(0,a.__)("Enable/Disable Elementor widget builder and all Elementor widgets.","wdesignkit")})]})]}),(0,g.jsx)("div",{className:"wkit-switch-setting-wrap",children:(0,g.jsxs)("label",{className:"wkit-switcher-label",children:[(0,g.jsx)("input",{type:"checkbox",onChange:e=>z("elementor_builder",e.target.checked),checked:A}),(0,g.jsx)("span",{className:"wkit-switcher-slider"})]})})]}),(0,g.jsxs)("div",{className:"wkit-builder-items",children:[(0,g.jsxs)("div",{className:"manage-builder-popup-item",children:[(0,g.jsx)("img",{src:E+"assets/images/wb-svg/gutenberg.svg",className:"no-plugin-img",alt:"no-plugin",draggable:"false"}),(0,g.jsx)("span",{className:"wkit-popup-plugin-name",children:(0,a.__)("Nexter Widget Builder","wdesignkit")}),(0,g.jsxs)("div",{className:"tooltip-text-hover",children:[(0,g.jsx)("i",{className:"wdkit-i-info"}),(0,g.jsx)("span",{className:"toolTip",children:(0,a.__)("Enable/Disable Nexter Widget builder and all Gutenberg Widgets.","wdesignkit")})]})]}),(0,g.jsx)("div",{className:"manage-builder-popup-item",children:(0,g.jsx)("div",{className:"wkit-switch-setting-wrap",children:(0,g.jsxs)("label",{className:"wkit-switcher-label",children:[(0,g.jsx)("input",{type:"checkbox",onChange:e=>z("gutenberg_builder",e.target.checked),checked:T}),(0,g.jsx)("span",{className:"wkit-switcher-slider"})]})})})]}),(0,g.jsxs)("div",{className:"wkit-builder-items",children:[(0,g.jsxs)("div",{className:"manage-builder-popup-item",children:[(0,g.jsx)("img",{src:E+"assets/images/wb-svg/bricks.svg",className:"no-plugin-img",alt:"no-plugin",draggable:"false"}),(0,g.jsx)("span",{className:"wkit-popup-plugin-name",children:(0,a.__)("Bricks Widget Builder","wdesignkit")}),(0,g.jsxs)("div",{className:"tooltip-text-hover",children:[(0,g.jsx)("i",{className:"wdkit-i-info"}),(0,g.jsx)("span",{className:"toolTip",children:(0,a.__)("Enable/Disable Bricks Widget builder and all Bricks Widgets.","wdesignkit")})]})]}),(0,g.jsx)("div",{className:"manage-builder-popup-item",children:(0,g.jsx)("div",{className:"wkit-switch-setting-wrap",children:(0,g.jsxs)("label",{className:"wkit-switcher-label",children:[(0,g.jsx)("input",{type:"checkbox",onChange:e=>z("bricks_builder",e.target.checked),checked:L}),(0,g.jsx)("span",{className:"wkit-switcher-slider"})]})})})]})]}):"features_enable"==e?(0,g.jsxs)("div",{className:"wkit-builder-wrapper",children:[(0,g.jsxs)("div",{className:"wkit-builder-items",children:[(0,g.jsxs)("div",{className:"manage-builder-popup-item",children:[(0,g.jsx)("span",{className:"wkit-popup-plugin-name",children:(0,a.__)("Design Template","wdesignkit")}),(0,g.jsxs)("div",{className:"tooltip-text-hover",children:[(0,g.jsx)("i",{className:"wdkit-i-info"}),(0,g.jsx)("span",{className:"toolTip",children:(0,a.__)("Enable/Disable Templates Feature Manage all template-related options, including downloading, uploading, and workspace functionalities.","wdesignkit")})]})]}),(0,g.jsx)("div",{className:"wkit-switch-setting-wrap",children:(0,g.jsxs)("label",{className:"wkit-switcher-label",children:[(0,g.jsx)("input",{type:"checkbox",onChange:e=>z("template",e.target.checked),checked:M}),(0,g.jsx)("span",{className:"wkit-switcher-slider"})]})})]}),(0,g.jsxs)("div",{className:"wkit-builder-items",children:[(0,g.jsxs)("div",{className:"manage-builder-popup-item",children:[(0,g.jsx)("span",{className:"wkit-popup-plugin-name",children:(0,a.__)("Widget Builder","wdesignkit")}),(0,g.jsxs)("div",{className:"tooltip-text-hover",children:[(0,g.jsx)("i",{className:"wdkit-i-info"}),(0,g.jsx)("span",{className:"toolTip",children:(0,a.__)("Enable/Disable Widget Builder Control access to the No-Code Widget Builder, including widget creation, and upload/download options for Elementor, Gutenberg and Bricks.","wdesignkit")})]})]}),(0,g.jsx)("div",{className:"manage-builder-popup-item",children:(0,g.jsx)("div",{className:"wkit-switch-setting-wrap",children:(0,g.jsxs)("label",{className:"wkit-switcher-label",children:[(0,g.jsx)("input",{type:"checkbox",onChange:e=>z("builder",e.target.checked),checked:F}),(0,g.jsx)("span",{className:"wkit-switcher-slider"})]})})})]}),(0,g.jsxs)("div",{className:"wkit-builder-items",children:[(0,g.jsxs)("div",{className:"manage-builder-popup-item",children:[(0,g.jsx)("span",{className:"wkit-popup-plugin-name",children:(0,a.__)("Code Snippet","wdesignkit")}),(0,g.jsxs)("div",{className:"tooltip-text-hover",children:[(0,g.jsx)("i",{className:"wdkit-i-info"}),(0,g.jsx)("span",{className:"toolTip",children:(0,a.__)("Enable or disable the Code Snippet feature. Disabling it will also turn off Browse Snippets, My Snippets, and workspace snippet options.","wdesignkit")})]})]}),(0,g.jsx)("div",{className:"manage-builder-popup-item",children:(0,g.jsx)("div",{className:"wkit-switch-setting-wrap",children:(0,g.jsxs)("label",{className:"wkit-switcher-label",children:[(0,g.jsx)("input",{type:"checkbox",onChange:e=>z("code_snippet",e.target.checked),checked:O}),(0,g.jsx)("span",{className:"wkit-switcher-slider"})]})})})]})]}):"template"==e?(0,g.jsxs)("div",{className:"wkit-builder-wrapper",children:[(0,g.jsxs)("div",{className:"wkit-builder-items",children:[(0,g.jsxs)("div",{className:"manage-builder-popup-item",children:[(0,g.jsx)("img",{src:E+"assets/images/wb-svg/elementor.svg",className:"no-plugin-img",alt:"no-plugin",draggable:"false"}),(0,g.jsx)("span",{className:"wkit-popup-plugin-name",children:(0,a.__)("Elementor Page Builder","wdesignkit")}),(0,g.jsxs)("div",{className:"tooltip-text-hover",children:[(0,g.jsx)("i",{className:"wdkit-i-info"}),(0,g.jsx)("span",{className:"toolTip",children:(0,a.__)("Enable/Disable Elementor Builder Control the Elementor page builder. Only enabled templates will remain active.","wdesignkit")})]})]}),(0,g.jsx)("div",{className:"wkit-switch-setting-wrap",children:(0,g.jsxs)("label",{className:"wkit-switcher-label",children:[(0,g.jsx)("input",{type:"checkbox",onChange:e=>z("elementor_template",e.target.checked),checked:B}),(0,g.jsx)("span",{className:"wkit-switcher-slider"})]})})]}),(0,g.jsxs)("div",{className:"wkit-builder-items",children:[(0,g.jsxs)("div",{className:"manage-builder-popup-item",children:[(0,g.jsx)("img",{src:E+"assets/images/wb-svg/gutenberg-core.svg",className:"no-plugin-img",alt:"no-plugin",draggable:"false"}),(0,g.jsx)("span",{className:"wkit-popup-plugin-name",children:(0,a.__)("Gutenberg Page Builder","wdesignkit")}),(0,g.jsxs)("div",{className:"tooltip-text-hover",children:[(0,g.jsx)("i",{className:"wdkit-i-info"}),(0,g.jsx)("span",{className:"toolTip",children:(0,a.__)("Enable/Disable Gutenberg Builder Control the Gutenberg page builder. Only enabled templates will remain active.","wdesignkit")})]})]}),(0,g.jsx)("div",{className:"manage-builder-popup-item",children:(0,g.jsx)("div",{className:"wkit-switch-setting-wrap",children:(0,g.jsxs)("label",{className:"wkit-switcher-label",children:[(0,g.jsx)("input",{type:"checkbox",onChange:e=>z("gutenberg_template",e.target.checked),checked:I}),(0,g.jsx)("span",{className:"wkit-switcher-slider"})]})})})]})]}):"roll_back"==e?(c||w({type:"get_wkit_version"}).then((e=>{e?.success?m(e?.data):e?.message||(0,a.__)("Operation failed","wdesignkit")})),(0,g.jsxs)("div",{className:"wkit-rollBack-container",children:[(0,g.jsxs)("div",{className:"wkit-wb-custom-dropDown",onClick:e=>{v(!x)},children:[(0,g.jsxs)("div",{className:"wkit-wb-custom-dropDown-header",children:[(0,g.jsx)("label",{children:u}),(0,g.jsx)("i",{className:"wdkit-i-down-arrow "+(x?"wkit-rotate-icon":"")})]}),(0,g.jsx)("div",{className:"wkit-wb-custom-dropDown-content "+(x?"wkit-show-versions":""),children:c?.length>0?c.sort(((e,t)=>e.localeCompare(t,void 0,{numeric:!0}))).reverse().map(((e,t)=>(0,g.jsx)("span",{className:"wkit-rollBack-option",onClick:()=>{h(e),k&&b(!1)},children:e},t))):(0,g.jsx)("span",{className:"wkit-rollback-loader",children:(0,g.jsx)("span",{className:"wkit-loading"})})})]}),_?(0,g.jsx)("button",{className:"wkit-pink-btn-class wkit-rollBack-btn",children:(0,g.jsx)("span",{className:"wkit-loading"})}):(0,g.jsx)("button",{className:"wkit-pink-btn-class wkit-rollBack-btn",disabled:!!k,onClick:e=>{(async()=>{if("Select Version"!==u){if(!confirm((0,a.__)(`Are you sure you want to reinstall ${u} version?`,"wdesignkit")))return;f(!0);let e={type:"rollback_wdkit",version:u};await w(e).then((async e=>{window.location.reload(!0)}))}})()},children:(0,a.__)("Roll Back","wdesignkit")})]})):"plugin_uninstall"==e?(()=>{const e=[{text:(0,a.__)("Delete all the WDesignKit promotion related data.","wdesignkit"),id:"remove-promotion",value:"promotion_data",checked:R.promotion_data},{text:(0,a.__)("Delete all the Widget Builder widget data.","wdesignkit"),id:"remove-wl-entry",value:"widget_builder_data",checked:R.widget_builder_data},{text:(0,a.__)("Delete all WDesignKit plugin data (templates/widgets)","wdesignkit"),id:"all-data",value:"all_data",checked:R.all_data}];return(0,g.jsx)("div",{className:"wkit-popup-body wkit-plugin-uninstall-container",children:(0,g.jsxs)("div",{className:"wkit-builder-wrapper",children:[(0,g.jsxs)("div",{className:"wkit-builder-items",children:[(0,g.jsx)("div",{className:"manage-builder-popup-item",children:(0,g.jsx)("span",{className:"wkit-popup-plugin-name",children:(0,a.__)("Remove Database","wdesignkit")})}),(0,g.jsx)("div",{className:"wkit-switch-setting-wrap",children:(0,g.jsxs)("label",{className:"wkit-switcher-label",children:[(0,g.jsx)("input",{type:"checkbox",onChange:e=>z("remove_entries",e.target.checked?"on":"off","remove_db"),checked:R.remove_entries}),(0,g.jsx)("span",{className:"wkit-switcher-slider"})]})})]}),"on"===t?.wdkit_meta?.Setting.remove_db?.remove_entries&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"wkit-remove-entry-options",children:e.map(((e,t)=>(0,g.jsxs)("span",{className:"wkit-remove-checkbox",children:[(0,g.jsx)("input",{type:"checkbox",id:e.id,className:"wkit-check-box",onChange:t=>{z(e.value,t.target.checked,"remove_db")},checked:e.checked}),(0,g.jsx)("label",{className:"wkit-remove-widgets-text",htmlFor:e.id,children:e.text})]},t)))}),(0,g.jsx)("div",{className:"wkit-remove-plugin-notice",children:(0,g.jsx)("span",{className:"wkit-notice-text",children:(0,a.__)("Note: This button will delete all of WDesignKit's settings from Database. You will then need to enter all your settings again. You can also do this before deactivating/deinstalling WDesignKit if you wish.","wdesignkit")})})]}),(0,g.jsx)("div",{className:"wdkit-pop-btns",children:(0,g.jsx)("span",{className:"wdkit-trsprnt-btn",onClick:()=>{n(!1)},children:"Cancel"})})]})})})():"white_label"==e?G():void 0)([r]),close_popup:()=>{n(!1)}})]})})},rs=()=>{let t=wdkitData.WDKIT_URL;const i=ue(),s=pe(),[n,r]=(0,e.useState)(),l=["/login","/login-api","/browse","/share_with_me","/manage_workspace","/manage_workspace/workspace_template/:id","/my_uploaded","/:kit_parent/kit/:kit_id","/","/theplus_popup","/download/widget/:w_unique","/widget-listing","/widget-listing/builder/:id","/widget-browse","/activate","/settings","/save_template","/save_template/section"];return(0,e.useEffect)((()=>{let e=s?.pathname;l.includes(e)>-1?r("disable"):(r("error-404"),i("error-404"))}),[]),"disable"==n?(0,g.jsx)("div",{className:"wkit-post-notFound",children:(0,g.jsxs)("div",{className:"wkit-post-notFound-content",children:[(0,g.jsx)("img",{className:"wkit-pin-img-temp",src:t+"assets/images/jpg/not-found-bell.gif",alt:"section",draggable:!1}),(0,g.jsx)("h5",{className:"wkit-common-desc",children:(0,a.__)("No Result Found","wdesignkit")}),(0,g.jsx)($t,{className:"wkit-pink-btn-class",to:"/settings",children:(0,a.__)("Go to Settings","wdesignkit")})]})}):(0,g.jsx)("div",{className:"wkit-post-notFound",children:(0,g.jsxs)("div",{className:"wkit-post-notFound-content",children:[(0,g.jsx)("img",{className:"wkit-pin-img-temp",src:t+"assets/images/jpg/not-found-bell.gif",alt:"section",draggable:!1}),(0,g.jsx)("h5",{className:"wkit-common-desc",children:(0,a.__)("No Result Found","wdesignkit")}),(0,g.jsx)($t,{className:"wkit-pink-btn-class",to:"/",children:(0,a.__)("Back to home","wdesignkit")})]})})},ls=window.wp.editPost,{Component:os,Fragment:ds}=wp.element,cs=class extends os{constructor(e){super(e),this.state={copiedCss:{},checkCopyOrNot:!1}}render(){return(0,g.jsx)(ds,{children:(0,g.jsx)(ls.PluginBlockSettingsMenuItem,{icon:"wdkit-save-section",label:(0,a.__)("Save in WDesignKit","wdesignkit"),onClick:()=>{document.querySelector(".wkit-gutenber-btn").click();let e=wp.blocks.serialize(wp.data.select("core/block-editor").getSelectedBlock());localStorage.setItem("wdkit_section",e),setTimeout((function(){window.location&&"#/save_template"!=window.location.hash&&(window.location.hash="#/save_template/section")}),20)}})})}};function ps(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var ms=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")(),us=()=>Math.random().toString(36).substring(7).split("").join("."),hs={INIT:`@@redux/INIT${us()}`,REPLACE:`@@redux/REPLACE${us()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${us()}`};function gs(e,t,a){if("function"!=typeof e)throw new Error(ps(2));if("function"==typeof t&&"function"==typeof a||"function"==typeof a&&"function"==typeof arguments[3])throw new Error(ps(0));if("function"==typeof t&&void 0===a&&(a=t,t=void 0),void 0!==a){if("function"!=typeof a)throw new Error(ps(1));return a(gs)(e,t)}let i=e,s=t,n=new Map,r=n,l=0,o=!1;function d(){r===n&&(r=new Map,n.forEach(((e,t)=>{r.set(t,e)})))}function c(){if(o)throw new Error(ps(3));return s}function p(e){if("function"!=typeof e)throw new Error(ps(4));if(o)throw new Error(ps(5));let t=!0;d();const a=l++;return r.set(a,e),function(){if(t){if(o)throw new Error(ps(6));t=!1,d(),r.delete(a),n=null}}}function m(e){if(!function(e){if("object"!=typeof e||null===e)return!1;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||null===Object.getPrototypeOf(e)}(e))throw new Error(ps(7));if(void 0===e.type)throw new Error(ps(8));if("string"!=typeof e.type)throw new Error(ps(17));if(o)throw new Error(ps(9));try{o=!0,s=i(s,e)}finally{o=!1}return(n=r).forEach((e=>{e()})),e}return m({type:hs.INIT}),{dispatch:m,subscribe:p,getState:c,replaceReducer:function(e){if("function"!=typeof e)throw new Error(ps(10));i=e,m({type:hs.REPLACE})},[ms]:function(){const e=p;return{subscribe(t){if("object"!=typeof t||null===t)throw new Error(ps(11));function a(){const e=t;e.next&&e.next(c())}return a(),{unsubscribe:e(a)}},[ms](){return this}}}}}function ws(e,t,a){return gs(e,t,a)}const _s={cardData:[{layout:[],style:[]}]},fs={widgetdata:{name:"",category:"",w_icon:"",w_image:"",description:"",helper_link:"",type:"elementor",publish_type:"Publish",key_words:"",css_parent_node:!0,widget_id:"",widget_version:"1.0.0",version_detail:[]}},ks={links:[{js:[""],css:[""],external_cdn:[]}]},bs={Editor_codes:[{html:"",css:"",js:""}]},xs={},vs={section:{sec_id:"0"}},ys={settingdata:{builder:!0,template:!0,gutenberg_builder:!0,elementor_builder:!0,debugger_mode:!1}},js={route_history:"/my_uploaded"},Ns={wdkitmeta:{plugin:[],builder:[],category:[],tags:[],widgetbuilder:[],widgetscategory:[],plugin_icons:[],Setting:{builder:!0,debugger_mode:!1,elementor_builder:!0,gutenberg_builder:!0,template:!0}}},$s={wdkitSnippet:[]},Cs={notification_content:""},Ss={dark_mode:"light"},Ds={},Es=function(e){const t=Object.keys(e),a={};for(let i=0;i{const a=e[t];if(void 0===a(void 0,{type:hs.INIT}))throw new Error(ps(12));if(void 0===a(void 0,{type:hs.PROBE_UNKNOWN_ACTION()}))throw new Error(ps(13))}))}(a)}catch(e){s=e}return function(e={},t){if(s)throw s;let n=!1;const r={};for(let s=0;s