View file File name : controls.js Content :(()=>{var e,t,n,o={117:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var o=n(307),r=n(444);const i=(0,o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,o.createElement)(r.Path,{d:"M18 11.2h-5.2V6h-1.6v5.2H6v1.6h5.2V18h1.6v-5.2H18z"}))},241:(e,t,n)=>{"use strict";var o=n(307),r=(n(909),n(167));const i=window.wp.neve.components;var a=n(697),l=n.n(a);const s=({control:e})=>{const{label:t,description:n}=e.params,[r,a]=(0,o.useState)(e.setting.get());(0,o.useEffect)((()=>{document.addEventListener("neve-changed-customizer-value",(t=>!!t.detail&&t.detail.id===e.id&&t.detail.value!==r&&void l(t.detail.value)))}),[]);const l=t=>{a(t),e.setting.set(t)};return(0,o.createElement)(i.Toggle,{description:n,label:t,checked:r,onChange:l})};s.propTypes={control:l().object.isRequired};const c=s,u=wp.customize.Control.extend({renderContent:function(){(0,o.render)((0,o.createElement)(c,{control:this}),this.container[0])}});var d=n(609);const m=({control:e})=>{(0,o.useEffect)((()=>{document.addEventListener("neve-changed-customizer-value",(t=>!!t.detail&&t.detail.id===e.id&&void n(t.detail.value)))}),[]);const[t,n]=(0,o.useState)(e.setting.get()),[r,a]=(0,o.useState)("desktop");return(0,o.createElement)("div",{className:"neve-white-background-control flex-contents"},(0,o.createElement)(d.ToggleControl,{className:"neve-toggle-control",checked:t[r],label:e.params.label,onChange:o=>{const i={...t};i[r]=o,n(i),e.setting.set(i)}}),(0,o.createElement)(i.ResponsiveControl,{excluded:e.params.excluded||[],hideResponsive:e.params.hideResponsive||!1,onChange:e=>{a(e)}}))};m.propTypes={control:l().object.isRequired};const p=m,h=wp.customize.Control.extend({renderContent:function(){(0,o.render)((0,o.createElement)(p,{control:this}),this.container[0])}}),f=({control:e})=>{const t=e.setting.get(),{label:n,description:r}=e.params,[a,l]=(0,o.useState)({type:t.type||"color",imageUrl:t.imageUrl||"",focusPoint:t.focusPoint||{x:.5,y:.5},colorValue:t.colorValue||"#ffffff",overlayColorValue:t.overlayColorValue||"",overlayOpacity:t.overlayOpacity||50,fixed:t.fixed||!1,useFeatured:t.useFeatured||!1}),s=t=>{const n={...a,...t};l(n),e.setting.set(n)};return(0,o.useEffect)((()=>{document.addEventListener("neve-changed-customizer-value",(t=>!!t.detail&&t.detail.id===e.id&&void s(t.detail.value)))}),[]),(0,o.createElement)(i.Background,{onChange:s,value:a,label:n,description:r})};f.propTypes={control:l().object.isRequired};const v=f,g=wp.customize.Control.extend({renderContent:function(){(0,o.render)((0,o.createElement)(v,{control:this}),this.container[0])}});var b=n(184),y=n.n(b),w=n(736);const _=window.lodash,E=({control:e})=>{const t={min:-300,max:300,hideResponsiveButtons:!1,units:["px","em","rem","%"]},n=e.params.input_attrs?{...t,...e.params.input_attrs}:t,{axis:r,dependsOn:a}=n;let l={top:0,right:0,bottom:0,left:0};r&&(l="vertical"===r?{top:0,bottom:0}:{right:0,left:0});const s={mobile:l,tablet:l,desktop:l,"mobile-unit":"px","tablet-unit":"px","desktop-unit":"px"},c=e.params.default?{...s,...e.params.default}:s,u=e.setting.get(),m=(0,i.mergeDeep)(c,u),[p,h]=(0,o.useState)(m),[f,v]=(0,o.useState)("desktop");let g=!0;if(a){const e=Object.keys(a)[0],t=Object.values(a)[0];g=wp.customize.control(e).setting.get()===t}const[b,E]=(0,o.useState)(g),S=t=>{h(t),e.setting.set(t)};if((0,o.useEffect)((()=>{document.addEventListener("neve-changed-customizer-value",(t=>!!t.detail&&t.detail.id===e.id&&void S(t.detail.value||c))),a&&(e=>{const t=Object.keys(e)[0],n=Object.values(e)[0];wp.customize(t,(e=>{e.bind((e=>{E(e===n)}))}))})(a)}),[]),a&&!1===b)return null;const C=["em","rem"].includes(p[f+"-unit"]),x=[{type:"top",label:(0,w.__)("Top","neve"),value:"horizontal"===r?void 0:p[f].top,disabled:"horizontal"===r},{type:"right",label:(0,w.__)("Right","neve"),value:"vertical"===r?void 0:p[f].right,disabled:"vertical"===r},{type:"bottom",label:(0,w.__)("Bottom","neve"),value:"horizontal"===r?void 0:p[f].bottom,disabled:"horizontal"===r},{type:"left",label:(0,w.__)("Left","neve"),value:"vertical"===r?void 0:p[f].left,disabled:"vertical"===r}],{min:k,max:N,hideResponsiveButtons:O}=n,{label:z}=e.params,I=y()(["neve-white-background-control","neve-sizing"]);return(0,o.createElement)("div",{className:I},(0,o.createElement)("div",{className:"neve-control-header"},z&&(0,o.createElement)("span",{className:"customize-control-title"},z),(0,o.createElement)(i.ResponsiveControl,{hideResponsive:O,onChange:e=>{v(e)}}),(0,o.createElement)("div",{className:"neve-units"},(()=>{const{units:e}=n;return 1===e.length?(0,o.createElement)(d.Button,{isSmall:!0,disabled:!0,className:"active alone"},e[0]):e.map(((e,t)=>{const n=y()({active:p[f+"-unit"]===e});return(0,o.createElement)(d.Button,{isSmall:!0,key:t,className:n,onClick:()=>{const t={...p};t[f+"-unit"]=e,"em"!==e&&(t[f]=(0,_.mapValues)(t[f],(e=>e?parseInt(e):e))),S(t)}},e)}))})())),(0,o.createElement)(i.SizingControl,{min:k,max:N,step:C?.1:1,options:x,defaults:c[f],value:p[f],onChange:e=>{const t={...p};t[f]=e,S(t)},onReset:()=>{S(c)}}))};E.propTypes={control:l().object.isRequired};const S=E,C=wp.customize.Control.extend({renderContent:function(){(0,o.render)((0,o.createElement)(S,{control:this}),this.container[0])}}),x=e=>{const[t,n]=(0,o.useState)("desktop"),{label:r,fontFamilyControl:a,withTextTransform:l=!0,value:s={fontSize:{suffix:{mobile:"px",tablet:"px",desktop:"px"},mobile:"",tablet:"",desktop:""},lineHeight:{suffix:{mobile:"em",tablet:"em",desktop:"em"},mobile:"",tablet:"",desktop:""},letterSpacing:{mobile:"",tablet:"",desktop:""},fontWeight:"none",textTransform:"none"},onChange:c,refreshAfterReset:u=!1,fSUnit:d=["em","px"],lHunit:m=["em","px","—"],defaultFS:p={suffix:{mobile:"px",tablet:"px",desktop:"px"},mobile:"",tablet:"",desktop:""},defaultLH:h={suffix:{mobile:"em",tablet:"em",desktop:"em"},mobile:"",tablet:"",desktop:""},defaultLS:f={mobile:"",tablet:"",desktop:""}}=e,[v,g]=(0,o.useState)(wp.customize.control(a)?wp.customize.control(a).setting():"");return(0,o.useEffect)((()=>{window.wp.customize.bind("change",(e=>{e.id===a&&g(e.get())}))}),[]),(0,o.createElement)(o.Fragment,null,r&&(0,o.createElement)("span",{className:"customize-control-title"},r),(0,o.createElement)("div",{className:"neve-typeface-control neve-white-background-control"},(()=>{if(l)return(0,o.createElement)(i.InlineSelect,{label:(0,w.__)("Transform","neve"),value:s.textTransform,options:[{value:"none",label:(0,w.__)("None","neve")},{value:"capitalize",label:(0,w.__)("Capitalize","neve")},{value:"lowercase",label:(0,w.__)("Lowercase","neve")},{value:"uppercase",label:(0,w.__)("Uppercase","neve")}],onChange:e=>{c({textTransform:e})}})})(),(()=>{let{fontWeight:e}=s;e||(e="none");const{fontVariants:t,systemFontVariants:n}=NeveReactCustomize,r={...t,...n},a=[{value:"none",label:(0,w.__)("None","neve")},{value:100,label:"100"},{value:200,label:"200"},{value:300,label:"300"},{value:400,label:"400"},{value:500,label:"500"},{value:600,label:"600"},{value:700,label:"700"},{value:800,label:"800"},{value:900,label:"900"}];let l;return void 0!==r[v]&&(l=r[v].filter((e=>!e.includes("italic"))).reduce(((e,t)=>[...e,{value:parseInt(t),label:t}]),[{value:"none",label:(0,w.__)("None","neve")}])),(0,o.createElement)(i.InlineSelect,{label:(0,w.__)("Weight","neve"),value:e,options:l||a,onChange:e=>{c({fontWeight:e}),"none"===e&&u&&wp.customize.previewer.refresh()}})})(),(()=>{let{fontSize:e}=s;return e||(e={...p}),(0,o.createElement)(i.NumberControl,{className:"font-size",label:(0,w.__)("Font Size","neve"),default:p[t],value:e[t],step:["em","rem"].includes(e.suffix[t])?.1:1,units:d,activeUnit:e.suffix[t],hasResponsive:!0,onChange:n=>{const o=e;o[t]=n,c({fontSize:o})},onUnitChange:n=>{const o=e;o.suffix[t]=n,c({fontSize:o})},onReset:()=>{c({fontSize:p}),u&&wp.customize.previewer.refresh()},onChangedDevice:n})})(),(()=>{let{lineHeight:e}=s;return e||(e={...h}),(0,o.createElement)(i.NumberControl,{className:"line-height",label:(0,w.__)("Line Height","neve"),step:["em","—"].includes(e.suffix[t])?.1:1,default:h[t],value:e[t],units:m,activeUnit:e.suffix[t],max:"em"===e.suffix[t]?4:200,min:"em"===e.suffix[t]?.5:1,hasResponsive:!0,onChange:n=>{const o=e;o[t]=n,c({lineHeight:o})},onReset:()=>{c({lineHeight:h}),u&&wp.customize.previewer.refresh()},onUnitChange:n=>{const o=e;o.suffix[t]=n,c({lineHeight:o})},onChangedDevice:n})})(),(()=>{let{letterSpacing:e}=s;return e||(e={...f}),(0,o.createElement)(i.NumberControl,{className:"letter-spacing",label:(0,w.__)("Letter Spacing","neve"),step:.1,default:f[t],value:e&&e[t]?e[t]:"",max:20,min:-5,units:["px"],hasResponsive:!0,onChange:n=>{const o=e;o[t]=n,c({letterSpacing:o})},onReset:()=>{c({letterSpacing:f}),u&&wp.customize.previewer.refresh()},onChangedDevice:n})})()))},k=x,N={mobile:l().oneOfType([l().string,l().number]),tablet:l().oneOfType([l().string,l().number]),desktop:l().oneOfType([l().string,l().number])};x.propTypes={label:l().string,value:l().shape({fontSize:l().shape({suffix:l().shape(N),...N}),lineHeight:l().shape({suffix:l().shape(N),...N}),letterSpacing:l().shape(N),fontWeight:l().oneOfType([l().string,l().number]),textTransform:l().string}),withTextTransform:l().bool,refreshAfterReset:l().bool,fSUnit:l().array,lHunit:l().array,onChange:l().func.isRequired,defaultFS:l().shape({suffix:l().shape(N),...N}),defaultLH:l().shape({suffix:l().shape(N),...N}),defaultLS:l().shape(N)};const O=({control:e})=>{let t=e.setting.get(),n={size_units:["em","px"],line_height_units:["em","px","—"],weight_default:400,text_transform:"none",size_default:{suffix:{mobile:"px",tablet:"px",desktop:"px"},mobile:15,tablet:15,desktop:15},line_height_default:{suffix:{mobile:"em",tablet:"em",desktop:"em"},mobile:1.6,tablet:1.6,desktop:1.6},letter_spacing_default:{mobile:0,tablet:0,desktop:0}};const r={size_units:["em","px"],line_height_units:["em","px","-"],weight_default:"none",text_transform:"none",size_default:{suffix:{mobile:"px",tablet:"px",desktop:"px"},mobile:"",tablet:"",desktop:""},line_height_default:{suffix:{mobile:"em",tablet:"em",desktop:"em"},mobile:"",tablet:"",desktop:""},letter_spacing_default:{mobile:"",tablet:"",desktop:""}};t||(t={fontSize:{suffix:{mobile:"px",tablet:"px",desktop:"px"},mobile:"",tablet:"",desktop:""},lineHeight:{suffix:{mobile:"em",tablet:"em",desktop:"em"},mobile:"",tablet:"",desktop:""},letterSpacing:{mobile:"",tablet:"",desktop:""},fontWeight:"none",textTransform:"none"}),"string"==typeof t&&(t=n);const i=e.params.input_attrs?{...n,...JSON.parse(e.params.input_attrs)}:n;e.params.input_attrs.length&&JSON.parse(e.params.input_attrs).default_is_empty&&(n=r),t.lineHeight=t.lineHeight||n.line_height_default,t.lineHeight.suffix=t.lineHeight.suffix||n.line_height_default.suffix,i.line_height_default.suffix=i.line_height_default.suffix||n.line_height_default.suffix;const[a,l]=(0,o.useState)({fontSize:t.fontSize,lineHeight:t.lineHeight,letterSpacing:t.letterSpacing,fontWeight:t.fontWeight,textTransform:t.textTransform,flag:!1}),{label:s,font_family_control:c,refresh_on_reset:u}=e.params,{disable_transform:d,size_default:m,size_units:p,line_height_default:h,line_height_units:f,letter_spacing_default:v}=i;return(0,o.createElement)(k,{label:s,value:a,fontFamilyControl:c,withTextTransform:d,defaultFS:m,fSUnit:p,onChange:t=>{l({...a,...t}),e.setting.set({...e.setting.get(),...t,flag:!e.setting.get().flag})},refreshAfterReset:u,defaultLH:h,lHunit:f,defaultLS:v})};O.propTypes={control:l().object.isRequired};const z=O,I=wp.customize.Control.extend({renderContent:function(){(0,o.render)((0,o.createElement)(z,{control:this}),this.container[0])}});function D({setting:e,fontFamily:t}){const{fontVariants:n}=window.NeveReactCustomize,[r,a]=(0,o.useState)(e()||[]),l=t=>{a(t),e.set(t)};if((0,o.useEffect)((()=>{if(!n[t])return;const e=[...n[t]],o=r.filter((t=>e.includes(t)));l(o)}),[t]),!n[t])return null;if(n[t].length<1)return null;const s=[...n[t]],c={};return s.forEach((e=>{e=e.toString(),c[e]=i.fontVariantMap[e]})),(0,o.createElement)(i.MultiSelect,{label:(0,w.__)("Additional Font Variants","neve"),choices:c,currentValue:r,onChange:l})}D.propTypes={setting:l().func.isRequired,fontFamily:l().string.isRequired};const T=(0,o.lazy)((()=>n.e(557).then(n.bind(n,557)))),R=({control:e})=>{const[t,n]=(0,o.useState)(e.setting.get()),[r,i]=(0,o.useState)(!1),{section:a}=e.params,{variants:l}=e.settings,s={default_is_inherit:!1},c=e.params.input_attrs?{...s,...e.params.input_attrs}:s;(0,o.useEffect)((()=>{window.wp.customize.bind("ready",(()=>{window.wp.customize.state("expandedSection").bind((e=>{e&&e.id&&e.id===a&&i(!0)}))}))}),[]),(0,o.useEffect)((()=>{document.addEventListener("neve-changed-customizer-value",(t=>{if(!t.detail)return!1;if(t.detail.id!==e.id)return!1;if("object"!=typeof t.detail.value||Array.isArray(t.detail.value)||null===t.detail.value)return!1;if(!Object.hasOwn(t.detail.value,"font")||!Object.hasOwn(t.detail.value,"fontSource"))return!1;const{font:n,fontSource:o}=t.detail.value;m(o,n)}))}),[]);const u=e=>{const{typekitSlugs:t}=NeveReactCustomize;return t&&t[e]?t[e]:e},m=(e,t)=>{n(t),p(t,e)},p=(t,n)=>{e.setting.set(u(t)),"neve_fallback_font_family"!==e.id&&wp.customize.previewer.send("font-selection",{value:u(t),source:n,controlId:e.id,type:"\\Neve\\Customizer\\Controls\\React\\Font_Family",inherit:c.default_is_inherit})};return(0,o.createElement)(o.Fragment,null,e.params.label&&(0,o.createElement)("span",{className:"customize-control-title"},e.params.label),(0,o.createElement)("div",{className:"neve-typeface-control neve-white-background-control"},(0,o.createElement)(o.Suspense,{fallback:(0,o.createElement)(d.Spinner,null)},r&&(0,o.createElement)(o.Fragment,null,(0,o.createElement)(T,{fonts:NeveReactCustomize.fonts,selected:t,onFontChoice:(e,t)=>{m(e,t)},inheritDefault:c.default_is_inherit,systemFonts:c.system,maybeGetTypekit:u}),l&&(0,o.createElement)(D,{setting:l,fontFamily:t})))))};R.propTypes={control:l().object.isRequired};const A=R,P=wp.customize.Control.extend({renderContent:function(){(0,o.render)((0,o.createElement)(i.ControlWithLink,{link:this.params.input_attrs.link},(0,o.createElement)(A,{control:this})),this.container[0])}});var j=n(444);const L=(0,o.createElement)(j.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,o.createElement)(j.Path,{d:"M20.8 10.7l-4.3-4.3-1.1 1.1 4.3 4.3c.1.1.1.3 0 .4l-4.3 4.3 1.1 1.1 4.3-4.3c.7-.8.7-1.9 0-2.6zM4.2 11.8l4.3-4.3-1-1-4.3 4.3c-.7.7-.7 1.8 0 2.5l4.3 4.3 1.1-1.1-4.3-4.3c-.2-.1-.2-.3-.1-.4z"})),M=({control:e})=>{const[t,n]=(0,o.useState)(e.setting.get()),{custom:r}=e.settings;(0,o.useEffect)((()=>{document.addEventListener("neve-changed-customizer-value",(t=>!!t.detail&&t.detail.id===e.id&&void a(t.detail.value)))}),[]);const a=t=>{n(t),e.setting.set(t)},{label:l,large_buttons:s,showLabels:c,footerDescription:u}=e.params,m=(()=>{const{is_for:t,choices:n}=e.params;if(!t)return n;switch(t){case"logo":return{default:{tooltip:(0,w.__)("Logo Only","neve"),icon:i.SVG.logoOnly},logoTitle:{tooltip:(0,w.__)("Logo - Title & Tagline","neve"),icon:i.SVG.logoTitle},titleLogo:{tooltip:(0,w.__)("Title & Tagline - Logo","neve"),icon:i.SVG.titleLogo},logoTopTitle:{tooltip:(0,w.__)("Logo on Top","neve"),icon:i.SVG.logoTopTitle}};case"menu":return{"style-plain":{tooltip:(0,w.__)("Plain","neve"),icon:i.SVG.menuPlain},"style-full-height":{tooltip:(0,w.__)("Background","neve"),icon:i.SVG.menuFilled},"style-border-bottom":{tooltip:(0,w.__)("Bottom Border","neve"),icon:i.SVG.menuUnderline},"style-border-top":{tooltip:(0,w.__)("Top Border","neve"),icon:i.SVG.menuOverline}};case"account_component":return{user_icon_style1:{tooltip:(0,w.__)("Icon Style 2","neve"),icon:i.SVG.myAccountUserSolid},user_icon_style2:{tooltip:(0,w.__)("Icon Style 1","neve"),icon:i.SVG.myAccountUserRegular},user_icon_style3:{tooltip:(0,w.__)("Icon Style 3","neve"),icon:i.SVG.myAccountUserTagSolid},user_icon_style4:{tooltip:(0,w.__)("Icon Style 4","neve"),icon:i.SVG.myAccountUserAltSolid},user_icon_style5:{tooltip:(0,w.__)("Icon Style 5","neve"),icon:i.SVG.myAccountUsersSolid},user_icon_style6:{tooltip:(0,w.__)("Icon Style 6","neve"),icon:i.SVG.myAccountUsersFirendsSolid},user_avatar:{tooltip:(0,w.__)("WordPress Avatar","neve"),icon:i.SVG.myAccountUserAvatar},none:{tooltip:(0,w.__)("No Icon","neve"),icon:i.SVG.myAccountNone}};case"cart_component":return{"cart-icon-style1":{tooltip:(0,w.__)("Style 1","neve"),icon:i.SVG.cartIconStyle1},"cart-icon-style2":{tooltip:(0,w.__)("Style 2","neve"),icon:i.SVG.cartIconStyle2},"cart-icon-style3":{tooltip:(0,w.__)("Style 3","neve"),icon:i.SVG.cartIconStyle3},"cart-icon-style4":{tooltip:(0,w.__)("Style 4","neve"),icon:i.SVG.cartIconStyle4},"cart-icon-style5":{tooltip:(0,w.__)("Style 5","neve"),icon:i.SVG.cartIconStyle5},"cart-icon-style6":{tooltip:(0,w.__)("Style 6","neve"),icon:i.SVG.cartIconStyle6}};case"palette_switch":return{contrast:{tooltip:(0,w.__)("Contrast","neve"),icon:i.SVG.paletteIconStyle1},night:{tooltip:(0,w.__)("Night","neve"),icon:i.SVG.paletteIconStyle2},toggle:{tooltip:(0,w.__)("Toggle","neve"),icon:i.SVG.paletteIconStyle3},accessibility:{tooltip:(0,w.__)("Accessibility","neve"),icon:i.SVG.paletteIconStyle4}};case"scroll_to_top":return{"stt-icon-style-1":{tooltip:(0,w.__)("Icon Style 1","neve"),icon:i.SVG.sttIcon1},"stt-icon-style-2":{tooltip:(0,w.__)("Icon Style 2","neve"),icon:i.SVG.sttIcon2},"stt-icon-style-3":{tooltip:(0,w.__)("Icon Style 3","neve"),icon:i.SVG.sttIcon3},"stt-icon-style-4":{tooltip:(0,w.__)("Icon Style 4","neve"),icon:i.SVG.sttIcon4},"stt-icon-style-5":{tooltip:(0,w.__)("Icon Style 5","neve"),icon:i.SVG.sttIcon5},"stt-icon-style-6":{tooltip:(0,w.__)("Icon Style 6","neve"),icon:i.SVG.sttIcon6}};case"menu_caret":return{"mc-icon-style-1":{tooltip:(0,w.__)("Icon Style 1","neve"),icon:i.SVG.mcIcon1},"mc-icon-style-2":{tooltip:(0,w.__)("Icon Style 2","neve"),icon:i.SVG.mcIcon2},"mc-icon-style-3":{tooltip:(0,w.__)("Icon Style 3","neve"),icon:i.SVG.mcIcon3},"mc-icon-style-4":{tooltip:(0,w.__)("Icon Style 4","neve"),icon:i.SVG.mcIcon4},"mc-icon-style-5":{tooltip:(0,w.__)("Icon Style 5","neve"),icon:i.SVG.mcIcon5},"mc-icon-style-6":{tooltip:(0,w.__)("Icon Style 6","neve"),icon:i.SVG.mcIcon6}};case"search_icon":return{[NeveReactCustomize.constants.HFGSearch.defaultIconKey]:{tooltip:(0,w.__)("Icon Style 1","neve"),icon:i.SVG.searchIcon1},"hfgs-icon-style-2":{tooltip:(0,w.__)("Icon Style 2","neve"),icon:i.SVG.searchIcon2},"hfgs-icon-style-3":{tooltip:(0,w.__)("Icon Style 3","neve"),icon:i.SVG.searchIcon3},"hfgs-icon-style-4":{tooltip:(0,w.__)("Icon Style 4","neve"),icon:i.SVG.searchIcon4},"hfgs-icon-style-5":{tooltip:(0,w.__)("Icon Style 5","neve"),icon:i.SVG.searchIcon5},[NeveReactCustomize.constants.HFGSearch.customIconKey]:{tooltip:(0,w.__)("Custom SVG","neve"),icon:i.SVG.customSVG}}}})();r&&(m.custom={tooltip:(0,w.__)("Custom SVG","neve"),icon:L});const p=u[t]?(0,o.createInterpolateElement)(u[t].template.replace(/</g,"<").replace(/>/g,">"),{ctaButton:(0,o.createElement)((e=>{const{data:t,children:n}=e;if(!t.control_to_focus)return null;const r=t.control_to_focus;return(0,o.createElement)(d.Button,{variant:"link",onClick:()=>{const e=wp.customize.control(r);e&&e.focus()}},n)}),{data:u[t]})}):"";return(0,o.createElement)("div",{className:"neve-white-background-control"},l&&(0,o.createElement)("span",{className:"customize-control-title"},l),(0,o.createElement)(i.RadioIcons,{largeButtons:s,showLabels:c,value:t,customSetting:r,options:m,onChange:a}),u[t]&&p)};M.propTypes={control:l().object.isRequired};const F=M,V=wp.customize.Control.extend({renderContent:function(){(0,o.render)((0,o.createElement)(F,{control:this}),this.container[0])}}),B=({control:e})=>{const t=e.setting.get(),n={borderRadius:{top:3,right:3,bottom:3,left:3},borderWidth:{top:1,right:1,bottom:1,left:1},useShadow:!1,shadowColor:"rgba(0,0,0,0.5)",shadowProperties:{blur:5,width:0,height:0},useShadowHover:!1,shadowColorHover:"rgba(0,0,0,0.5)",shadowPropertiesHover:{blur:5,width:0,height:0}};"number"==typeof t.borderRadius&&(t.borderRadius={top:t.borderRadius,right:t.borderRadius,bottom:t.borderRadius,left:t.borderRadius}),"number"==typeof t.borderWidth&&(t.borderWidth={top:t.borderWidth,right:t.borderWidth,bottom:t.borderWidth,left:t.borderWidth});const r=e.params.defaultVals?{...n,...e.params.defaultVals}:n,[a,l]=(0,o.useState)({...r,...t}),{label:s,no_hover:c,no_shadow:u,no_border:d}=e.params;return(0,o.useEffect)((()=>{document.addEventListener("neve-changed-customizer-value",(t=>{if(!t.detail)return!1;if(t.detail.id!==e.id)return!1;const n=t.detail.value.borderRadius;!n||"string"!=typeof n&&"number"!=typeof n||(t.detail.value.borderRadius={top:n,bottom:n,right:n,left:n});const o=t.detail.value.borderWidth;!o||"string"!=typeof o&&"number"!=typeof o||(t.detail.value.borderWidth={top:o,bottom:o,right:o,left:o}),l({...a,...t.detail.value}),e.setting.set(t.detail.value)}))}),[]),(0,o.createElement)(i.ButtonAppearance,{defaultVals:r,onChange:(t,n)=>{const o={...a,[t]:n};l(o),e.setting.set(o)},value:a,label:s,noHover:c,noShadow:u,noBorder:d})};B.propTypes={control:l().object.isRequired};const H=B,G=wp.customize.Control.extend({renderContent:function(){(0,o.render)((0,o.createElement)(H,{control:this}),this.container[0])}}),q=({label:e,defaultVal:t,value:n,onChange:r,min:i=0,max:a=100,step:l=1})=>(0,o.createElement)("div",{className:"neve-white-background-control neve-range-control"},(0,o.createElement)("div",{className:"neve-control-header"},e&&(0,o.createElement)("span",{className:"customize-control-title"},e)),(0,o.createElement)("div",{className:"range-wrap"},(0,o.createElement)(d.RangeControl,{resetFallbackValue:0===t?0:t||"",value:0===parseInt(n)?0:n||"",min:i<0?i:0,max:a,step:l,allowReset:!0,onChange:r})));q.propTypes={defaultVal:l().oneOfType([l().string,l().number]),onChange:l().func.isRequired,value:l().oneOfType([l().string,l().number]),label:l().string,min:l().number,max:l().number,step:l().number};const W=q,U=({control:e})=>{(0,o.useEffect)((()=>{document.addEventListener("neve-changed-customizer-value",(t=>!!t.detail&&t.detail.id===e.id&&void u(t.detail.value)))}),[]);const[t,n]=(0,o.useState)(e.setting.get()),r={min:0,max:100,defaultVal:15,step:1,...e.params.input_attrs||{}},{label:i}=e.params,{defaultVal:a,min:l,max:s,step:c}=r,u=t=>{n(t),e.setting.set(t)};return(0,o.createElement)(W,{value:t,label:i,defaultVal:a,onChange:u,step:c,min:l,max:s})};U.propTypes={control:l().object.isRequired};const $=U,J=wp.customize.Control.extend({renderContent:function(){(0,o.render)((0,o.createElement)($,{control:this}),this.container[0])}}),X=({control:e})=>{const t=(0,i.maybeParseJson)(e.setting.get()),[n,r]=(0,o.useState)("desktop"),[a,l]=(0,o.useState)(t);(0,o.useEffect)((()=>{const t=(0,i.getIntValAsResponsive)(e.setting.get());a!==t&&l(t),document.addEventListener("neve-changed-customizer-value",(t=>{if(!t.detail)return!1;if(t.detail.id!==e.id)return!1;const n=(0,i.getIntValAsResponsive)(t.detail.value);l((0,i.maybeParseJson)(n)),e.setting.set(JSON.stringify(n))}))}),[]);const{label:s}=e.params,{hideResponsive:c,units:u,defaultVal:m,min:p,max:h}=e.params.input_attrs,f=()=>{if(!u)return null;const e=m.suffix&&m.suffix[n]?m.suffix[n]:null;return a.suffix&&a.suffix[n]?a.suffix[n]:e},v=()=>["em","rem"].includes(f());let g=parseFloat(a[n]);return g=0===g?0:g||m.currentDevice,(0,o.createElement)("div",{className:"neve-white-background-control neve-range-control"},(0,o.createElement)("div",{className:"neve-control-header"},s&&(0,o.createElement)("span",{className:"customize-control-title"},s),(0,o.createElement)(i.ResponsiveControl,{onChange:e=>r(e),hideResponsive:c||!1}),(0,o.createElement)("div",{className:"neve-units"},u?1===u.length?(0,o.createElement)(d.Button,{isSmall:!0,disabled:!0,className:"active alone"},u[0]):u.map(((t,r)=>{const i=y()({active:f()===t});return(0,o.createElement)(d.Button,{key:r,isSmall:!0,className:i,onClick:()=>{const o={...a};o.suffix={...o.suffix},o.suffix[n]=t,v()||(o[n]=parseInt(o[n])),l(o),e.setting.set(JSON.stringify(o))}},t)})):null)),(0,o.createElement)("div",{className:"range-wrap"},(0,o.createElement)(d.RangeControl,{value:g,min:p||0,max:h||100,step:v()?.1:1,allowReset:!0,onChange:t=>{(t=>{if(void 0===t)return l(m),void e.setting.set(JSON.stringify(m));const o={...a};o[n]=t,l(o),e.setting.set(JSON.stringify(o))})(t)}})))};X.propTypes={control:l().object.isRequired};const Y=X,K=wp.customize.Control.extend({renderContent:function(){(0,o.render)((0,o.createElement)(Y,{control:this}),this.container[0])}}),Z=({control:e,children:t})=>{const[n,r]=(0,o.useState)(e.setting.get()),a=t=>{r(t),e.setting.set(t)};return(0,o.useEffect)((()=>{document.addEventListener("neve-changed-customizer-value",(t=>!!t.detail&&t.detail.id===e.id&&void a(t.detail.value)))}),[]),(0,o.createElement)("div",{className:"neve-white-background-control neve-color-control"},(0,o.createElement)(i.ColorControl,{label:e.params.label,selectedColor:n,defaultValue:e.params.default,alphaDisabled:e.params.disableAlpha,onChange:a,allowGradient:e.params.allowGradient},t))};Z.propTypes={control:l().object.isRequired};const Q=Z,ee=wp.customize.Control.extend({renderContent:function(){(0,o.render)((0,o.createElement)(Q,{control:this}),this.container[0])}});var te=n(196),ne=n.n(te);const oe=({presets:e,onSelect:t})=>{const[n,r]=(0,o.useState)(""),i=e.filter((e=>e.label.toLowerCase().includes(n.toLowerCase())));return ne().createElement("div",{className:"neve-preset-selector"},ne().createElement("div",{className:"search"},ne().createElement("input",{type:"search",placeholder:(0,w.__)("Search Header Presets…","neve"),onChange:e=>{r(e.target.value)}})),i.length>0?i.map(((e,n)=>{const{image:o,label:r,setup:i}=e;return ne().createElement(d.Tooltip,{key:n,text:r},ne().createElement("button",{onClick:e=>{e.preventDefault(),t(i)}},ne().createElement("img",{src:o,alt:r})))})):ne().createElement("p",null,(0,w.__)("No header presets found","neve")))},re=(e,t)=>e===t||!(!Array.isArray(e)||!Array.isArray(t))&&null!==e&&null!==t&&e.length===t.length&&JSON.stringify(e)===JSON.stringify(t),ie=e=>{if("string"!=typeof e)return e;try{JSON.parse(e)}catch(t){return e}return JSON.parse(e)},ae={left:[],"c-left":[],center:[],"c-right":[],right:[]},le=({control:e})=>{const{presets:t,builder:n}=e.params;return ne().createElement(oe,{onSelect:e=>{const t=ie(e);Object.keys(t).forEach((e=>{if(e===n)return document.dispatchEvent(new CustomEvent("neve-changed-builder-value",{detail:{value:t[e],id:"header"}})),!1;const o=window.wp.customize.control(e);if(!o)return!1;const{type:r}=o.params;if(["text","textarea","select"].includes(r))return o.setting.set(t[e]),!1;document.dispatchEvent(new CustomEvent("neve-changed-customizer-value",{detail:{value:t[e]||"",id:e}}))}))},presets:t})},se=wp.customize.Control.extend({renderContent:function(){(0,o.render)((0,o.createElement)(le,{control:this}),this.container[0])}}),ce=({control:e})=>{const[t,n]=(0,o.useState)(e.setting.get()),{choices:r,label:a}=e.params;return(0,o.createElement)(i.MultiSelect,{label:a,choices:r,onChange:t=>{n(t),e.setting.set(t)},currentValue:t})},ue=wp.customize.Control.extend({renderContent:function(){(0,o.render)((0,o.createElement)(ce,{control:this}),this.container[0])}}),de=({control:e})=>{const t=(0,i.maybeParseJson)(e.setting.get()),[n,r]=(0,o.useState)(t),{choices:a,label:l,description:s}=e.params;return(0,o.createElement)(i.FormTokenFieldControl,{label:l,description:s,choices:a,value:n,onChange:t=>{r(t),e.setting.set(JSON.stringify(t))}})},me=wp.customize.Control.extend({renderContent:function(){(0,o.render)((0,o.createElement)(de,{control:this}),this.container[0])}}),pe=({control:e})=>{const{choices:t,label:n}=e.params,[r,a]=(0,o.useState)(e.setting.get()),[l,s]=(0,o.useState)("desktop"),c=t=>{a(t),e.setting.set(t)};return(0,o.useEffect)((()=>{const t=e.id.indexOf("primary-menu")>-1||e.id.indexOf("secondary-menu")>-1;"string"==typeof r&&a({mobile:t?"left":r,tablet:t?"left":r,desktop:r}),document.addEventListener("neve-changed-customizer-value",(n=>{if(!n.detail)return!1;if(n.detail.id!==e.id)return!1;let o=n.detail.value;"string"==typeof o&&(o={mobile:t?"left":o,tablet:t?"left":o,desktop:o}),c(o)}))}),[]),(0,o.createElement)("div",{className:"neve-white-background-control"},(0,o.createElement)("div",{className:"neve-control-header"},n&&(0,o.createElement)("span",{className:"customize-control-title"},n),(0,o.createElement)(i.ResponsiveControl,{onChange:s})),(0,o.createElement)(i.RadioIcons,{value:r[l],options:t,onChange:e=>{c({...r,[l]:e})}}))};pe.propTypes={control:l().object.isRequired};const he=pe,fe=wp.customize.Control.extend({renderContent:function(){(0,o.render)((0,o.createElement)(he,{control:this}),this.container[0])}}),ve=({control:e})=>{const[t,n]=(0,o.useState)(e.setting.get()),{choices:r,label:a,documentation:l}=e.params;return(0,o.createElement)(i.RadioImage,{label:a,documentation:l,choices:r,onClick:t=>{n(t),e.setting.set(t)},value:t})};ve.propTypes={control:l().object.isRequired};const ge=ve,be=wp.customize.Control.extend({renderContent:function(){(0,o.render)((0,o.createElement)(ge,{control:this}),this.container[0])}}),ye=(0,o.lazy)((()=>n.e(637).then(n.bind(n,971)))),we=({control:e})=>{const{section:t,components:n,label:r}=e.params,a=e=>[...e.map((e=>({id:e,visible:!0}))),...Object.keys(n).filter((t=>!e.includes(t))).map((e=>({id:e,visible:!1})))],[l,s]=(0,o.useState)(a((0,i.maybeParseJson)(e.setting.get()))),[c,u]=(0,o.useState)(!1),m=t=>{const n=t.filter((e=>!0===e.visible)).map((e=>e.id));s(t),e.setting.set(JSON.stringify(n))};return(0,o.useEffect)((()=>{window.wp.customize.bind("ready",(()=>{window.wp.customize.state("expandedSection").bind((e=>{e&&e.id&&e.id===t&&u(!0)})),"neve_layout_product_elements_order"===e.id&&wp.customize("neve_product_content_alignment",(t=>{t.bind((t=>{const o=(0,i.maybeParseJson)(e.setting.get());n.title=(0,w.__)("Title","neve"),n.price=(0,w.__)("Product Price","neve"),"inline"===t&&(n.title=(0,w.__)("Title","neve")+" + "+(0,w.__)("Product Price","neve"),delete n.price),m(a(o))}))}))}))}),[]),(0,o.useEffect)((()=>{const t=/neve_layout_single_(.+)_elements_order/m.exec(e.id);null!==t&&window.wp.customize.control("neve_"+t[1]+"_header_layout",(t=>{t.setting.bind((t=>{let o,r,l=(0,i.maybeParseJson)(e.setting.get());switch(t){case"cover":o=l.indexOf("title-meta"),-1!==o&&l.splice(o,1),r=l.indexOf("thumbnail"),-1!==r&&l.splice(r,1),delete n["title-meta"],delete n.thumbnail;break;case"normal":n["title-meta"]||(n["title-meta"]=(0,w.__)("Title & Meta","neve")),n.thumbnail||(n.thumbnail=(0,w.__)("Thumbnail","neve")),r=l.indexOf("thumbnail"),-1===r&&(l=["thumbnail"].concat(l)),o=l.indexOf("title-meta"),-1===o&&(l=["title-meta"].concat(l))}m(a(l))}))}))}),[]),(0,o.createElement)("div",{className:"neve-white-background-control"},(0,o.createElement)(o.Suspense,{fallback:(0,o.createElement)(d.Spinner,null)},c&&(0,o.createElement)(ye,{label:r,value:l,components:n,onUpdate:m})))};we.propTypes={control:l().object.isRequired};const _e=we,Ee=wp.customize.Control.extend({renderContent:function(){(0,o.render)((0,o.createElement)(_e,{control:this}),this.container[0])}}),Se=(0,o.createElement)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,o.createElement)(j.Path,{d:"M20 5h-5.7c0-1.3-1-2.3-2.3-2.3S9.7 3.7 9.7 5H4v2h1.5v.3l1.7 11.1c.1 1 1 1.7 2 1.7h5.7c1 0 1.8-.7 2-1.7l1.7-11.1V7H20V5zm-3.2 2l-1.7 11.1c0 .1-.1.2-.3.2H9.1c-.1 0-.3-.1-.3-.2L7.2 7h9.6z"})),Ce=({values:e,save:t})=>{const{palettes:n,activePalette:r}=e,[i,a]=(0,o.useState)(!1),[l,s]=(0,o.useState)(""),c=["nv-primary-accent","nv-dark-bg","nv-light-bg","nv-site-bg"],u=()=>{const n={...e};r===l&&(n.activePalette="base"),delete n.palettes[l],a(!1),s(""),t(n)},m=[...Object.keys(e.palettes).filter((e=>!n[e].allowDeletion)),...Object.keys(e.palettes).filter((e=>n[e].allowDeletion))];return(0,o.createElement)("div",{className:"neve-palettes-wrap"},m.map((m=>{const{colors:p,allowDeletion:h,name:f}=n[m],v=y()(["neve-global-color-palette-inner",{active:r===m}]);return(0,o.createElement)("div",{key:m,className:"neve-global-color-palette"},h&&(0,o.createElement)(o.Fragment,null,(0,o.createElement)(d.Button,{isLink:!0,icon:Se,iconSize:21,className:"delete-palette",title:(0,w.__)("Remove Palette","neve"),onClick:()=>{s(m),a(!0)}}),i&&(0,o.createElement)(d.Modal,{isDismissible:!1,className:"neve-global-colors-confirm-delete-modal",title:(0,w.sprintf)(// translators: %s - name of palette that will be deleted. (0,w.__)("Are you sure you want to delete the %s palette?","neve"),n[l].name)},(0,o.createElement)("p",null,(0,w.__)("If this is the currently active palette, the current palette will be switched to the Base one.","neve")),(0,o.createElement)("div",{className:"actions"},(0,o.createElement)(d.Button,{isPrimary:!0,icon:"trash",onClick:u},(0,w.__)("Delete","neve")),(0,o.createElement)(d.Button,{isSecondary:!0,onClick:()=>{a(!1),s("")}},(0,w.__)("Cancel","neve"))))),(0,o.createElement)("button",{className:v,onClick:n=>{n.preventDefault(),(n=>{const o={...e};o.activePalette=n,t(o)})(m)},key:f.toLowerCase()},c.map(((e,t)=>(0,o.createElement)("div",{className:"color",key:t,style:{background:p[e]}}))),(0,o.createElement)("span",{className:"title"},f)))})))},xe=(0,o.createElement)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,o.createElement)(j.Path,{d:"M12 4V2.2L9 4.8l3 2.5V5.5c3.6 0 6.5 2.9 6.5 6.5 0 2.9-1.9 5.3-4.5 6.2v.2l-.1-.2c-.4.1-.7.2-1.1.2l.2 1.5c.3 0 .6-.1 1-.2 3.5-.9 6-4 6-7.7 0-4.4-3.6-8-8-8zm-7.9 7l1.5.2c.1-1.2.5-2.3 1.2-3.2l-1.1-.9C4.8 8.2 4.3 9.6 4.1 11zm1.5 1.8l-1.5.2c.1.7.3 1.4.5 2 .3.7.6 1.3 1 1.8l1.2-.8c-.3-.5-.6-1-.8-1.5s-.4-1.1-.4-1.7zm1.5 5.5c1.1.9 2.4 1.4 3.8 1.6l.2-1.5c-1.1-.1-2.2-.5-3.1-1.2l-.9 1.1z"})),ke=({values:e,defaults:t,save:n})=>{const{palettes:r,activePalette:a}=e,l=r[a],{colors:s,allowDeletion:c}=l,u=t.palettes[a]?{...t.palettes[a].colors}:{},m=Object.keys(u).filter((e=>u[e]!==s[e])).length<1;return(0,o.createElement)(i.Accordion,{label:(0,w.__)("Palette Colors","neve")},(0,o.createElement)("div",{className:"color-array-wrap"},i.globalPaletteColors.map(((r,l)=>(0,o.createElement)(o.Fragment,{key:a+"_"+l},l>0&&(0,o.createElement)("hr",null),Object.keys(r).map((l=>(0,o.createElement)(i.ColorControl,{disableGlobal:!0,key:l,label:r[l],selectedColor:s[l],defaultValue:t.palettes[a]?t.palettes[a].colors[l]:"#FFFFFF",onChange:(0,_.debounce)((t=>{((t,o)=>{const r={...e};if(r.palettes[a].colors[t]===o)return!1;r.palettes[a].colors[t]=o,n(r)})(l,t)}),100)})))))),!c&&(0,o.createElement)(o.Fragment,null,(0,o.createElement)("hr",null),(0,o.createElement)(d.Button,{isLink:!0,className:"reset-palette",onClick:()=>{const t={...e};t.palettes[a].colors=u,n(t)},disabled:m,icon:xe},(0,w.__)("Reset all to default","neve")))))},Ne=(0,o.createElement)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,o.createElement)(j.Path,{d:"M2 12C2 6.44444 6.44444 2 12 2C17.5556 2 22 6.44444 22 12C22 17.5556 17.5556 22 12 22C6.44444 22 2 17.5556 2 12ZM13 11V7H11V11H7V13H11V17H13V13H17V11H13Z"})),Oe=({values:e,save:t,disabled:n})=>{const{palettes:r}=e,[i,a]=(0,o.useState)(!1),[l,s]=(0,o.useState)(""),[c,u]=(0,o.useState)("base"),m=()=>{a(!i),s("")},p=e=>{u(e.target.value)};return i?(0,o.createElement)("div",{className:"add-palette-form"},(0,o.createElement)("input",{type:"text",placeholder:(0,w.__)("Palette Title","neve"),onChange:e=>{s(e.target.value)}}),(0,o.createElement)("span",{className:"customize-control-title"},(0,w.__)("Extend from:","neve")),(0,o.createElement)("select",{value:c,onChange:p,onBlur:p},Object.keys(r).map(((e,t)=>(0,o.createElement)("option",{key:t,value:e},r[e].name)))),(0,o.createElement)("div",{className:"actions"},(0,o.createElement)(d.Button,{isSmall:!0,isSecondary:!0,isDestructive:!0,onClick:m},(0,w.__)("Cancel","neve")),(0,o.createElement)(d.Button,{isSmall:!0,icon:Ne,iconSize:16,isPrimary:!0,onClick:n=>{n.preventDefault();const o={...e},r=(0,_.camelCase)(l);o.palettes[r]={name:l,allowDeletion:!0,colors:{...o.palettes[c].colors}},o.activePalette=r,t(o),m()},disabled:Object.keys(r).filter((e=>(0,_.camelCase)(l)===e)).length>0||l.length<1},(0,w.__)("Add","neve")))):(0,o.createElement)("div",{className:"add-palette-form"},(0,o.createElement)(d.Button,{disabled:n,style:{alignSelf:"flex-start"},isSmall:!0,isSecondary:!0,icon:Ne,iconSize:16,onClick:m},(0,w.__)("Add Custom Palette","neve")))},ze=({onChange:e,currentValue:t,label:n,defaultValues:r})=>(0,o.createElement)("div",{className:"neve-global-colors-wrap"},n&&(0,o.createElement)("span",{className:"customize-control-title"},n),(0,o.createElement)(Ce,{values:t,save:e}),(0,o.createElement)(Oe,{values:t,save:e,disabled:Object.keys(t.palettes).length>5}),(0,o.createElement)(ke,{values:t,save:e,defaults:r})),Ie=({control:e})=>{const{label:t,defaultValues:n}=e.params,[r,i]=(0,o.useState)({...e.setting.get()});return(0,o.createElement)(ze,{onChange:t=>{i(t),t.flag?delete t.flag:t.flag=!0,e.setting.set(t);const n=document.querySelector("#nv-css-vars-inline-css"),{activePalette:o,palettes:r}=t,a=r[o],{colors:l}=a;let s=":root{";Object.keys(l).map((e=>(s+=`--${e}:${l[e]};`,!1))),s+="}",n.innerHTML=s},currentValue:r,label:t,defaultValues:n})},De=wp.customize.Control.extend({renderContent:function(){(0,o.render)((0,o.createElement)(i.ControlWithLink,{link:this.params.input_attrs.link},(0,o.createElement)(Ie,{control:this})),this.container[0])}}),Te=({currentLabel:e,slug:t,save:n,cancel:r})=>{const[i,a]=(0,o.useState)(e);return(0,o.createElement)("div",{className:"custom-label-edit-wrapper"},(0,o.createElement)(d.TextControl,{onChange:a,value:i,maxLength:16}),(0,o.createElement)(d.Button,{onClick:()=>{n(t,i)},isSmall:!0,variant:"primary"},(0,w.__)("Save","neve")),(0,o.createElement)(d.Button,{onClick:r,isSmall:!0,variant:"secondary"},(0,w.__)("Cancel","neve")))};var Re=n(117);const Ae=(0,o.createElement)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},(0,o.createElement)(j.Path,{d:"M10 2c4.42 0 8 3.58 8 8s-3.58 8-8 8-8-3.58-8-8 3.58-8 8-8zm1.13 9.38l.35-6.46H8.52l.35 6.46h2.26zm-.09 3.36c.24-.23.37-.55.37-.96 0-.42-.12-.74-.36-.97s-.59-.35-1.06-.35-.82.12-1.07.35-.37.55-.37.97c0 .41.13.73.38.96.26.23.61.34 1.06.34s.8-.11 1.05-.34z"})),Pe=({values:e,save:t})=>{const n=Number(NeveReactCustomize.allowedGlobalCustomColor),[r,a]=(0,o.useState)(""),[l,s]=(0,o.useState)(""),c=""!==r,u=()=>a(""),m=Object.keys(e).filter((e=>"flag"!==e)),p=m.length>=n,h=(n,o)=>{const r={...e};if(r[n].label===o)return s(""),!1;r[n].label=o,t(r),s("")},f=()=>s("");return(0,o.createElement)(o.Fragment,null,(0,o.createElement)(i.Accordion,{label:(0,w.__)("Custom Colors","neve")},(0,o.createElement)("div",{className:"color-array-wrap"},m.map((n=>{if("flag"===n)return null;const r=l===n;return(0,o.createElement)(i.ColorControl,{disableGlobal:!0,key:n,label:r?null:e[n].label,selectedColor:e[n].val,onChange:(0,_.debounce)((o=>{((n,o,r)=>{const i={...e};if(i[n].val===r)return!1;i[n].label=o,i[n].val=r,t(i)})(n,e[n].label,o)}),100)},r&&(0,o.createElement)(Te,{currentLabel:e[n].label,slug:n,save:h,cancel:f}),!r&&(0,o.createElement)("div",{className:"action-icon-wrapper"},(0,o.createElement)(d.Icon,{onClick:()=>{s(n)},icon:"edit"})),(0,o.createElement)("div",{className:"action-icon-wrapper"},(0,o.createElement)(d.Icon,{onClick:()=>{a(n)},icon:"trash"})))})),(0,o.createElement)(d.Button,{className:"new-custom-color",disabled:p,onClick:()=>{(()=>{const n={...e},o=(()=>{if(0===m.length)return 1;const e=m.filter((e=>"custom-"===e.substring(0,7))).map((e=>parseInt(e.substring(7))));return e.sort(((e,t)=>e-t)),e.at(-1)+1})();n[`custom-${o}`]={label:`Custom ${o}`,val:"#fff"},t(n)})()},variant:"secondary"},(0,w.sprintf)(// translators: %s: Context which will be added. (0,w.__)("Add %s","neve"),(0,w.__)("Custom Color","neve")),(0,o.createElement)(d.Icon,{icon:Re.Z})),p&&(0,o.createElement)("div",{className:"cc-limit-notice"},(0,o.createElement)(d.Icon,{icon:Ae}),(0,o.createElement)("p",null,(0,w.sprintf)(// translators: %d: Allowed maximum custom color %s: Context which will be added. (0,w.__)("Maximum %1$d %2$s can be added.","neve"),n,(0,w.__)("Custom Colors","neve").toLocaleLowerCase()))),c&&(0,o.createElement)(d.Modal,{onRequestClose:u,title:(0,w.sprintf)(// translators: %s: Context which will be deleted. (0,w.__)("Are you sure you want to delete the %s?","neve"),`"${e[r].label}" ${(0,w.__)("Color","neve")}`)},(0,o.createElement)("p",null,(0,w.__)("If this color is currently used anywhere on your site, it will be switched to a default color.","neve")),(0,o.createElement)(d.ButtonGroup,{className:"remove-custom-color-btn-wrapper"},(0,o.createElement)(d.Button,{variant:"primary",onClick:()=>{if(!r)return;const n={...e};delete n[r],t(n),u()}},(0,w.__)("Delete","neve")),(0,o.createElement)(d.Button,{variant:"secondary",onClick:u},(0,w.__)("Cancel","neve")))))))},je=({onChange:e,currentValue:t,defaultValues:n})=>(0,o.createElement)("div",{className:"neve-global-colors-wrap"},(0,o.createElement)(Pe,{values:t,save:e,defaults:n})),Le=({control:e})=>{const{label:t,defaultValues:n}=e.params,[r,i]=(0,o.useState)({...e.setting.get()});return(0,o.createElement)(je,{onChange:t=>{i(t),t.flag?delete t.flag:t.flag=!0,e.setting.set(t);const n=document.querySelector("#nv-custom-color-vars-inline-css");let o=":root{";Object.keys(t).map((e=>("flag"!==e&&(o+=`--${e}:${t[e].val};`),!1))),o+="}",n.innerHTML=o},currentValue:r,label:t,defaultValues:n})},Me=wp.customize.Control.extend({renderContent(){(0,o.render)((0,o.createElement)(i.ControlWithLink,{link:this.params.input_attrs.link},(0,o.createElement)(Le,{control:this})),this.container[0])}}),Fe=({control:e})=>{const{params:t={},setting:n}=e,r={min:0,max:300,units:["px","em","rem","%"],label:!1,defaultVal:{top:0,right:0,bottom:0,left:0,unit:"px"},...t},{min:a,max:l,units:s,label:c,defaultVal:u}=r,[m,p]=(0,o.useState)({...u,...n.get()}),{top:h,right:f,bottom:v,left:g,unit:b}=m;(0,o.useEffect)((()=>{document.addEventListener("neve-changed-customizer-value",(t=>{if(!t.detail)return!1;if(t.detail.id!==e.id)return!1;const n=t.detail.value||u;E(n)}))}),[]);const _=[{type:"top",label:(0,w.__)("Top","neve"),value:h},{type:"right",label:(0,w.__)("Right","neve"),value:f},{type:"bottom",label:(0,w.__)("Bottom","neve"),value:v},{type:"left",label:(0,w.__)("Left","neve"),value:g}],E=e=>{p(e),n.set(e)},S=e=>["em","rem"].includes(e),C=y()(["neve-white-background-control","neve-sizing"]);return(0,o.createElement)("div",{className:C},(0,o.createElement)("div",{className:"neve-control-header"},c&&(0,o.createElement)("span",{className:"customize-control-title"},c),(0,o.createElement)("div",{className:"neve-units"},(0,o.createElement)((()=>1===s.length?(0,o.createElement)(d.Button,{isSmall:!0,disabled:!0,className:"active alone"},s[0]):s.map(((e,t)=>{const n=y()({active:b===e});return(0,o.createElement)(d.Button,{key:t,isSmall:!0,className:n,onClick:()=>(e=>{const t={...m};t.unit=e,S(e)||(t.top=parseInt(t.top),t.right=parseInt(t.right),t.bottom=parseInt(m.bottom),t.left=parseInt(m.left)),E(t)})(e)},e)}))),null))),(0,o.createElement)(i.SizingControl,{min:a,max:l,step:S(b)?.1:1,options:_,defaults:u,onChange:e=>{E({...e,unit:b})},value:m,onReset:()=>{E(u)}}))};Fe.propTypes={control:l().object.isRequired};const Ve=Fe,Be=wp.customize.Control.extend({renderContent:function(){(0,o.render)((0,o.createElement)(Ve,{control:this}),this.container[0])}}),He=({control:e})=>{const{label:t,options:n,changesOn:r}=e.params,[a,l]=(0,o.useState)(e.setting()),s=Object.keys(n).map((e=>({value:e,label:n[e]}))),[c,u]=(0,o.useState)(s);(0,o.useEffect)((()=>{"string"==typeof r&&"neve_global_colors"===r&&(window.wp.customize.bind("ready",(()=>{const e=window.wp.customize.control(r).setting.get().palettes,t=Object.keys(e).map((t=>({value:t,label:e[t].name})));u(t)})),wp.customize.bind("change",(function(e){e&&e.id===r&&window.wp.customize.previewer.refresh()})),window.wp.customize.control(r,(e=>{e.setting.bind("changed",(e=>{const t=e.palettes,n=Object.keys(t).map((e=>({value:e,label:t[e].name})));JSON.stringify(c)!==JSON.stringify(n)&&(u(n),void 0===n.find((e=>e.value===a))&&d("darkMode"))}))})))}),[c,a]);const d=t=>{l(t),e.setting.set(t)};return(0,o.createElement)("div",{className:"neve-white-background-control"},(0,o.createElement)(i.InlineSelect,{value:a,onChange:d,options:c,label:t}))},Ge=wp.customize.Control.extend({renderContent:function(){(0,o.render)((0,o.createElement)(i.ControlWithLink,{link:this.params.link},(0,o.createElement)(He,{control:this})),this.container[0])}});var qe=n(926);const We=(0,o.lazy)((()=>n.e(568).then(n.bind(n,568)))),Ue=(0,o.lazy)((()=>n.e(841).then(n.bind(n,841)))),$e=({hasColumns:e,builder:t,onChange:n,value:r,hidden:i,portalMount:a,mounted:l})=>{const[s,c]=(0,o.useState)("desktop"),[u,m]=(0,o.useState)(!1),[p,h]=(0,o.useState)(!1),[f,v]=(0,o.useState)(""),g=(e=null)=>{const n=e||r,o=window.NeveReactCustomize.HFG[t].items,i=n&&n[s]?(e=>{const t=[];return Object.values(e).forEach((e=>{if(Array.isArray(e)&&e.length)return e.forEach((e=>{if(!e.id)return!1;t.push(e.id)})),!1;"object"==typeof e&&null!==e&&Object.values(e).forEach((e=>{Array.isArray(e)&&e.forEach((e=>t.push(e.id)))}))})),t})(n[s]):Object.keys(o);return Object.keys(o).filter((e=>!i.includes(e))).map((e=>({id:e}))).sort(((e,t)=>e.id<t.id?-1:1))},[b,y]=(0,o.useState)(g()),w=()=>{y([...g()])},_=()=>{m(!1)},E=e=>{""!==e&&"header_palette_switch"===e&&(localStorage.removeItem("neve_user_theme"),window.wp.customize.previewer.refresh())};(0,o.useEffect)((()=>{S(),C()}),[]),(0,o.useEffect)((()=>{w()}),[s]);const S=()=>{window.wp.customize.bind("ready",(()=>{window.wp.customize.previewedDevice.bind((e=>{if("tablet"===e&&(e="mobile"),!r[e])return!1;c(e)})),window.wp.customize.state("expandedSection").bind((e=>{e&&e.id?v(e.id):v("")}))}))},C=()=>{document.addEventListener("neve-changed-builder-value",(e=>{const{detail:o}=e;if(!o)return!1;const{id:i,value:a}=o;let l=a;if(l||(l={...r}),!i||i!==t)return!1;const s=ie(l);return n(s),y([...g(s)]),!1}))},x={updateLayout:(t,o,i)=>{_();const a={...r[s]},l=[...i];if("sidebar"===t){if(re(i,a[t]))return!1;a[t]=l;const e={...r,[s]:a};n(e)}else{if(a[t]||(a[t]=ae),re(i,a[t][o]))return!1;const c=a[t];"center"!==o||0!==i.length||e||["c-left","c-right"].forEach((e=>{if(!Array.isArray(c[e]))return!1;if(c[e].length<1)return!1;const n="c-left"===e?"left":"right";c[e].forEach((e=>{"left"===n?a[t][n].push(e):a[t][n].unshift(e)})),a[t][e]=[]})),c[o]=l,a[t][o]=l;const u={...r,[s]:a};n(u)}},onDragStart:()=>{m(!0)},onDragEnd:_,removeItem:(t,o,i)=>{const a={...r[s]};if("sidebar"===t){E(a[t][i].id),a[t].splice(i,1);const e={...r,[s]:a};return n(e),!1}E(a[t][o][i].id),a[t][o].splice(i,1),"center"!==o||0!==a[t][o].length||e||["c-left","c-right"].forEach((e=>{if(!Array.isArray(a[t][e]))return!1;if(a[t][e].length<1)return!1;const n="c-left"===e?"left":"right";a[t][e].forEach((e=>{"left"===n?a[t][n].push(e):a[t][n].unshift(e)})),a[t][e]=[]}));const l={...r,[s]:a};n(l)},setDevice:c,setSidebarItems:y,togglePreviewSidebar:h,updateSidebarItems:w};return ne().createElement(qe.Z.Provider,{value:{actions:x,sidebarItems:b,dragging:u,currentSection:f,builder:t,hasColumns:e,device:s,previewSidebar:p}},ne().createElement("div",null,ne().createElement(o.Suspense,{fallback:ne().createElement(d.Spinner,null)},l&&ne().createElement(ne().Fragment,null,ne().createElement("div",{className:"neve-hfg-builder"},ne().createElement(Ue,{items:b})),(0,o.createPortal)(ne().createElement(We,{hidden:i,value:r,portalMount:a}),a)))))},Je=({control:e,portalMount:t})=>{const{setting:n,params:r}=e,i=r.builderType,a=r.columnsLayout,[l,s]=(0,o.useState)(ie(n.get())),[c,u]=(0,o.useState)(!0),[d,m]=(0,o.useState)(!1);return(0,o.useEffect)((()=>{window.wp.customize.state("expandedPanel").bind((e=>{if(e.id&&e.id===`hfg_${i}`&&c)return u(!1),!1;u(!0)})),window.wp.customize.notifications.bind("add",(e=>{if("neve_migrating_builders"!==e.code)return!1;u(!0)})),window.wp.customize.notifications.bind("removed",(e=>{if("neve_migrating_builders"!==e.code)return!1;u(!1)})),window.wp.customize.bind("ready",(()=>{window.wp.customize.state("paneVisible").bind((e=>{const t=window.wp.customize.state("expandedPanel").get();if(e)return t.id&&t.id===`hfg_${i}`&&c&&u(!1),!1;u(!0)}))}))}),[]),(0,o.useEffect)((()=>{window.wp.customize.bind("ready",(()=>{window.wp.customize.state("expandedPanel").bind((e=>{e&&e.id&&e.id===`hfg_${i}`&&"hfg_page_header"!==e.id&&m(!0)})),window.wp.customize.state("expandedSection").bind((e=>{const t=window.wp.customize.state("expandedPanel").get();if(t.id&&"hfg_page_header"===t.id){if(!e)return void m(!1);m(!0)}}))}))}),[]),ne().createElement($e,{hasColumns:a,hidden:c,builder:i,value:l,onChange:t=>{const o=JSON.stringify(t);o!==n.get()&&(-1===o.search("header_palette_switch")&&localStorage.getItem("neve_user_theme")&&(localStorage.removeItem("neve_user_theme"),window.wp.customize.previewer.refresh()),s(t),e.setting.set(o))},portalMount:t,mounted:d})},Xe=wp.customize.Control.extend({renderContent(){const e=document.getElementById("customize-controls");let t=document.querySelector(`#accordion-section-${this.params.section}`);if("page_header"===this.params.builderType){const e=document.querySelector("#customize-control-neve_pro_page_header_layout_components");(0,_.isNull)(e)||"undefined"===e||(t=e)}const n=document.createElement("div");n.classList.add("neve-builder-portal-wrap","neve-hfg-builder"),e.appendChild(n),(0,o.render)((0,o.createElement)(Je,{control:this,portalMount:n}),t)}}),Ye=e=>{const{label:t,value:n,onChange:o,columns:r,choices:a}=e,l=a[r];return ne().createElement("div",{className:"neve-white-background-control"},t&&ne().createElement("span",{className:"customize-control-title"},t),ne().createElement(i.RadioImage,{choices:l,value:n,onClick:o}))},Ke=({control:e})=>{const{setting:t,params:n}=e,{label:r,choices:i,columnsControl:a}=n,[l,s]=(0,o.useState)(t.get()),[c,u]=(0,o.useState)(1),d=t=>{s(t),e.setting.set(t)};return(0,o.useEffect)((()=>{window.wp.customize.bind("ready",(()=>{const e=window.wp.customize.control(a).setting.get();u(parseInt(e))})),window.wp.customize.control(a,(e=>{e.setting.bind((e=>{const n=parseInt(e),o=t.get();if(!Object.keys(i[n]).includes(o)){const e=Object.keys(i[n])[0];d(e)}u(n)}))}))})),ne().createElement(Ye,{value:l,columns:c,onChange:d,label:r,choices:i})},Ze=wp.customize.Control.extend({renderContent(){(0,o.render)((0,o.createElement)(Ke,{control:this}),this.container[0])}}),Qe=({control:e})=>{const t={rows:4},n=e.params.input_attrs?{...t,...e.params.input_attrs}:t,[r,i]=(0,o.useState)(e.setting.get()),{label:a}=e.params;return(0,o.createElement)("div",{className:"neve-white-background-control"},(0,o.createElement)("div",{className:"neve-control-header"},a&&(0,o.createElement)("span",{className:"customize-control-title"},a)),(0,o.createElement)("div",{className:"textarea-wrap"},(0,o.createElement)(d.TextareaControl,{rows:n.rows,value:r,onChange:t=>{i(t),e.setting.set(t)}})))};Qe.propTypes={control:l().object.isRequired};const et=Qe,tt=wp.customize.Control.extend({renderContent:function(){(0,o.render)((0,o.createElement)(et,{control:this}),this.container[0])}}),nt=({control:e})=>{const{params:t,id:n}=e,{options:o}=t,{description:r,quickLinks:i,builderMigrated:a,hadOldBuilder:l}=o,s=Object.keys(i);return ne().createElement("div",{className:"quick-links-inner"},r&&ne().createElement(ne().Fragment,null,ne().createElement("p",null,r),ne().createElement("hr",null)),s.length&&ne().createElement("div",{className:"quick-links-wrap"},ne().createElement("span",{className:"customize-control-title"},(0,w.__)("Quick Links","neve")),ne().createElement("ul",{className:"quick-links"},s.map(((e,t)=>{const{label:n,icon:o,url:r}=i[e];return ne().createElement("li",{key:t},ne().createElement(d.Button,{isLink:!0,href:r||void 0,target:"_blank",onClick:()=>{var t;r||("toggle_sidebar"!==(t=e)?window.wp.customize.control(t).focus({completeCallback:()=>{(e=>{const{type:t}=window.wp.customize.control(e).params;"neve_customizer_heading"===t&&window.wp.customize.control(e).triggerExpandHeader()})(t)}}):window.wp.customize.previewer.send("header_sidebar_open"))}},ne().createElement("span",{className:`dashicons ${o}`}),n))})))))},ot=wp.customize.Control.extend({renderContent(){(0,o.render)((0,o.createElement)(nt,{control:this}),this.container[0])}}),rt=({categoryLabel:e,label:t,accordion:n})=>{const r=e=>{e.currentTarget.parentElement.classList.toggle("expanded")};return(0,o.createElement)(o.Fragment,null,e&&(0,o.createElement)("span",{className:"customize-control-title"},e),(0,o.createElement)("div",{className:"neve-customizer-heading",onClick:r,role:"button",tabIndex:"0",onKeyPress:r},(0,o.createElement)("span",{className:"accordion-heading"},t),n&&(0,o.createElement)("span",{className:"accordion-expand-button"})))},it=({control:e})=>{const{label:t,categoryLabel:n,accordion:r,style:i}=e.params;return(0,o.createElement)(o.Fragment,null,(0,o.createElement)(rt,{categoryLabel:n,label:t,accordion:r}),i&&(0,o.createElement)("style",{dangerouslySetInnerHTML:{__html:i}}))};it.propTypes={control:l().object.isRequired};const at=it,lt=wp.customize.Control.extend({triggerExpandHeader:function(){this.container[0].classList.contains("expanded")||this.container[0].classList.toggle("expanded")},renderContent:function(){(0,o.render)((0,o.createElement)(at,{control:this}),this.container[0])}}),{wp:st}=window,ct=e=>st.media.query({order:"ASC",orderby:"post__in",post__in:e,posts_per_page:-1,query:!0,type:"image"}),ut=(e,t,n,o,r,i)=>!(r===i&&0===r||!0===e&&!0===t||!0===e&&o===i||!0===t&&n===r||n===r&&o===i||r<=n),dt=(e,t)=>{const n=t.get("control"),o=e.get("width"),r=e.get("height");let i=parseInt(n.params.width,10),a=parseInt(n.params.height,10);const l=i/a;t.set("canSkipCrop",!0);const s=i,c=a;o/r>l?(a=r,i=a*l):(i=o,a=i/l);const u=parseFloat(((o-i)/2).toFixed(2)),d=parseFloat(((r-a)/2).toFixed(2));return{handles:!0,keys:!0,instance:!0,persistent:!1,imageWidth:parseFloat(o.toFixed(2)),imageHeight:parseFloat(r.toFixed(2)),minWidth:s>i?i:s,minHeight:c>a?a:c,x1:u,y1:d,x2:parseFloat((i+u).toFixed(2)),y2:parseFloat((a+d).toFixed(2))}},mt=(e,t,n,o)=>{const r={};return r.url=e,r.thumbnail_url=e,r.timestamp=(0,_.now)(),t&&(r.id=t),n&&(r.width=n),o&&(r.height=o),r};class pt extends o.Component{constructor(){super(...arguments),this.openModal=this.openModal.bind(this),this.onOpen=this.onOpen.bind(this),this.onSelect=this.onSelect.bind(this),this.onClose=this.onClose.bind(this),this.onCropped=this.onCropped.bind(this),this.onSkippedCrop=this.onSkippedCrop.bind(this),this.buildAndSetGalleryFrame()}createStates(){const{title:e=st.media.view.l10n.createGalleryTitle,suggestedWidth:t=200,suggestedHeight:n=50,flexWidth:o=!1,flexHeight:r=!0}=this.props,i=[],a=st.media.controller.Library.extend({defaults:(0,_.defaults)({autoSelect:!0,content:"browse",contentUserSetting:!0,date:!1,describe:!1,filterable:!1,id:"library",menu:"default",multiple:!1,syncSelection:!0,title:e,toolbar:"select",suggestedWidth:t,suggestedHeight:n},st.media.controller.Library.prototype.defaults)});i.push(new a);const l={id:"crop-control-id",params:{flex_width:o,flex_height:r,width:t,height:n}};l.mustBeCropped=ut;const s=new st.media.controller.CustomizeImageCropper({imgSelectOptions:dt,control:l});return i.push(s),i}buildAndSetGalleryFrame(){const{button:e={text:st.media.view.l10n.selectAndCrop,close:!1},multiple:t=!1,value:n={}}=this.props;this.frame&&this.frame.remove();const o=ct(n),r=new st.media.model.Selection(o.models,{props:o.props.toJSON(),multiple:t}),i=this.createStates();this.frame=st.media({button:e,selection:r,state:"library",states:i}),this.initializeListeners()}initializeListeners(){this.frame.on("select",this.onSelect),this.frame.on("open",this.onOpen),this.frame.on("close",this.onClose),this.frame.on("cropped",this.onCropped),this.frame.on("skippedcrop",this.onSkippedCrop)}onCropped(e){const{onSelect:t}=this.props,n=e.url,o=e.id,r=e.width,i=e.height;t(mt(n,o,r,i))}onSkippedCrop(e){const{onSelect:t}=this.props,n=e.get("url"),o=e.get("width"),r=e.get("height");t(mt(n,e.id,o,r))}onSelect(){const{onSelect:e,multiple:t=!1,suggestedWidth:n=200,suggestedHeight:o=50,flexWidth:r=!1,flexHeight:i=!0}=this.props,a=this.frame.state().get("selection").toJSON();n!==a.width||o!==a.height||r||i?this.frame.setState("cropper"):(e(t?a:a[0]),this.frame.close())}onOpen(){var e;if(this.frame.setState("library"),this.updateCollection(),Array.isArray(this.props.value)?null!==(e=this.props.value)&&void 0!==e&&e.length:this.props.value){if(!this.props.gallery){const e=this.frame.state().get("selection");(0,_.castArray)(this.props.value).forEach((t=>{e.add(st.media.attachment(t))}))}ct((0,_.castArray)(this.props.value)).more()}}updateCollection(){const e=this.frame.content.get();if(e&&e.collection){const t=e.collection;t.toArray().forEach((e=>e.trigger("destroy",e))),t.mirroring._hasMore=!0,t.more()}}onClose(){const{onClose:e}=this.props;e&&e()}openModal(e){e.preventDefault(),this.buildAndSetGalleryFrame(),this.frame.open()}render(){return this.props.render({open:this.openModal})}}const ht=pt,ft=({control:e})=>{const t=(0,i.maybeParseJson)(e.setting.get()),{height:n,width:r,flexHeight:a,flexWidth:l,sameLabel:s,builderListen:c,compChange:u}=e.params.input_attrs,[m,p]=(0,o.useState)(t),[h,f]=(0,o.useState)(),[v,g]=(0,o.useState)(),[b,y]=(0,o.useState)(!1),_=(e,t)=>Object.values(e).some((function(e){return e===t||(e&&"object"==typeof e?_(e,t):!(!e||"[object Array]"!==Object.prototype.toString.call(e))&&e.some((e=>_(e,t))))})),E=(t,n)=>{const o=_(t,n);p((0,i.maybeParseJson)(e.setting.get())),o||k(!0),y(o)};(0,o.useEffect)((()=>{"string"==typeof c&&"string"==typeof u&&""!==c&&""!==u&&(window.wp.customize.bind("ready",(()=>{const e=(0,i.maybeParseJson)(window.wp.customize.control(c).setting.get());E(e,u)})),window.wp.customize.control(c,(e=>{e.setting.bind("changed",(e=>{const t=(0,i.maybeParseJson)(e);E(t,u)}))})))}),[c,u]);const S=(e,t="light")=>{wp.media.attachment(e).get("url")||wp.media.attachment(e).fetch().then((e=>{"light"===t&&f(e),"dark"===t&&g(e)}))};S(m.light,"light"),S(m.dark,"dark");const C=t=>{p(t),e.setting.set(JSON.stringify(t))},x=(e,t="light")=>{const n={...m};"light"===t&&(f(e),n.light={...n.light},n.light=e.id),("dark"===t||m.same)&&(g(e),n.dark={...n.dark},n.dark=e.id),C(n)},k=t=>{const n={...(0,i.maybeParseJson)(e.setting.get())};n.same=t,C(n)},N=(e="light")=>{const t={...m};"light"===e&&(t.light={...t.light},t.light=0,f(null)),"dark"===e&&(t.dark={...t.dark},t.dark=0,g(null)),C(t)};return(0,o.createElement)(o.Fragment,null,(0,o.createElement)("div",{className:"logo-wrap"},(0,o.createElement)(ht,{onSelect:e=>{x(e)},value:m.light,suggestedWidth:r,suggestedHeight:n,flexWidth:l,flexHeight:a,title:(0,w.__)("Change Logo","neve"),render:({open:e})=>(0,o.createElement)(o.Fragment,null,(0,o.createElement)("div",{className:"logo-select"},h&&(0,o.createElement)(d.Button,{className:"remove",icon:Se,iconSize:20,onClick:()=>{N("light")}}),(0,o.createElement)("button",{className:"logo-select-inner",onClick:e},!h&&(0,o.createElement)(d.Icon,{className:"add-icon",icon:Ne}),(0,o.createElement)("p",null,(0,w.__)("Light Palette","neve"),(0,o.createElement)("br",null),v?(0,w.__)("Change Logo","neve"):(0,w.__)("Upload Logo","neve"))),h&&(0,o.createElement)("img",{"aria-hidden":"true",alt:(0,w.__)("Light Palette","neve"),src:h.url})))}),!m.same&&b&&(0,o.createElement)(ht,{onSelect:e=>{x(e,"dark")},value:m.dark,suggestedWidth:r,suggestedHeight:n,flexWidth:l,flexHeight:a,title:(0,w.__)("Change Logo","neve"),render:({open:e})=>(0,o.createElement)(o.Fragment,null,(0,o.createElement)("div",{className:"logo-select dark"},v&&(0,o.createElement)(d.Button,{className:"remove",icon:Se,iconSize:20,onClick:()=>{N("dark")}}),(0,o.createElement)("button",{className:"logo-select-inner",onClick:e},!v&&(0,o.createElement)(d.Icon,{className:"add-icon",icon:Ne}),(0,o.createElement)("p",null,(0,w.__)("Dark Palette","neve"),(0,o.createElement)("br",null),v?(0,w.__)("Change Logo","neve"):(0,w.__)("Upload Logo","neve"))),v&&(0,o.createElement)("img",{"aria-hidden":"true",alt:(0,w.__)("Dark Palette","neve"),src:v.url})))})),b&&(0,o.createElement)(i.Toggle,{label:s,checked:m.same,onChange:k}))},vt=wp.customize.Control.extend({renderContent:function(){(0,o.render)((0,o.createElement)(ft,{control:this}),this.container[0])}});function gt(){return gt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},gt.apply(this,arguments)}const bt=(0,o.lazy)((()=>n.e(403).then(n.bind(n,403)))),yt=({label:e,value:t,onIconChoice:n,icons:r})=>{const[i,a]=(0,o.useState)(!1);return(0,o.createElement)("div",{className:"neve-control-header icon-control"},e&&(0,o.createElement)("span",{className:"customize-control-title"},e),r[t]&&(0,o.createElement)(d.ButtonGroup,{className:"icon-setter"},(0,o.createElement)(d.Button,{className:"repeater-icon-preview",onClick:()=>a(!i)},r[t]),(0,o.createElement)(d.Button,{className:"repeater-delete-icon",onClick:()=>{n("")}},(0,o.createElement)(d.Icon,{icon:"no-alt"}))),!r[t]&&(0,o.createElement)(d.Button,{className:"add-icon-button",onClick:()=>a(!i)},(0,o.createElement)(d.Icon,{icon:"plus-alt2"})),i&&(0,o.createElement)(d.Popover,{position:"bottom left",onFocusOutside:()=>{a(!i)},inline:!0},(0,o.createElement)(o.Suspense,{fallback:(0,o.createElement)(d.Spinner,null)},(0,o.createElement)(bt,{onIconChoice:n,setVisible:a,icons:r}))))};yt.propTypes={label:l().string.isRequired,value:l().string.isRequired,onIconChoice:l().func.isRequired,icons:l().object.isRequired};const wt=yt,_t=({fields:e,newItemFields:t,value:n,index:r,onContentChange:a,onRemove:l})=>{const s="yes"===n[r].blocked,c=Object.keys(t).length>0&&!1===s?t:e,u=(t,o)=>{const i={...n[r]},l=!!e[t]&&e[t].dependent;if(l){let t=e[l].type;if("object"==typeof t&&(t=t[o]),"select"===t){let t=e[l].choices;"object"==typeof t&&(t=Object.keys(t[o])[0]),i[l]=t}else i[l]=""}i[t]=o,a(i)};return(0,o.createElement)("div",{className:"nv-repeater-content"},Object.entries(c).map((([t])=>((t,a)=>{const l={...c[t]};if(l.depends_on){const e=a[l.depends_on];for(const[t,n]of Object.entries(l))"object"==typeof n&&(l[t]=n[e])}switch(l.type){case"text":return(0,o.createElement)(d.TextControl,{label:l.label,value:n[r][t]||l.default,onChange:e=>u(t,e),key:t+r});case"textarea":return(0,o.createElement)(d.TextareaControl,{label:l.label,value:n[r][t]||l.default,onChange:e=>u(t,e),key:t+r});case"icon":return(0,o.createElement)(wt,{label:l.label,value:n[r][t],onIconChoice:e=>u(t,e),icons:(0,i.getIcons)(18),key:t+r});case"color":return(0,o.createElement)(i.ColorControl,{className:"repeater-color-control",label:l.label,selectedColor:n[r][t],allowGradient:l.gradient||!1,onChange:e=>u(t,e),key:t+r});case"select":const a=[{value:"",label:"Select",disabled:!0}];return(0,o.createElement)(d.SelectControl,{label:l.label,value:n[r][t]||"",onChange:e=>u(t,e),options:a.concat(Object.entries(l.choices).map((([e,t])=>({value:e,label:t,disabled:!1})))),key:t+r});case"checkbox":return(0,o.createElement)(d.ToggleControl,{label:e[t].label,checked:n[r][t],onChange:e=>u(t,e),key:t+r});case"range":return(0,o.createElement)(W,gt({label:e[t].label,onChange:e=>u(t,e),key:t+r,value:n[r][t]},e[t]))}})(t,n[r]))),n.length>1&&!s&&(0,o.createElement)(d.Button,{className:"nv-repeater-remove-button",isDestructive:!0,isLink:!0,onClick:()=>l(r)},(0,w.__)("Remove","neve")))};_t.propTypes={fields:l().object.isRequired,newItemFields:l().object.isRequired,value:l().array.isRequired,index:l().number.isRequired,onContentChange:l().func.isRequired,onRemove:l().func.isRequired};const Et=_t,St=()=>(0,o.createElement)(d.Tooltip,{text:(0,w.__)("Drag to Reorder","neve")},(0,o.createElement)("button",{"aria-label":(0,w.__)("Drag to Reorder","neve"),className:"nv-repeater-handle",onClick:e=>{e.preventDefault()}},(0,o.createElement)(d.Icon,{icon:"menu"}))),Ct=({fields:e,newItemFields:t,value:n,itemIndex:r,sorting:i,onToggle:a,onContentChange:l,onRemove:s})=>{const[c,u]=(0,o.useState)(!1),m=(0,o.createElement)(d.Icon,{icon:"arrow-up"}),p=(0,o.createElement)(d.Icon,{icon:"arrow-down"}),h=(0,o.createElement)(d.Icon,{icon:"visibility"}),f=(0,o.createElement)(d.Icon,{icon:"hidden"}),v=()=>{let e=(0,w.__)("Item","neve");return n[r].title&&(e=n[r].title),n[r].field&&(e=n[r].field),(0,o.createElement)("span",{className:"repeater-item-title"},e)},g="yes"===n[r].visibility;return(0,o.createElement)("div",{className:"nv-repeater-item"},(0,o.createElement)("div",{className:y()(["nv-repeater-item-header",{"visibility-hidden":!g}])},(0,o.createElement)(d.Tooltip,{text:(0,w.__)("Toggle Visibility","neve")},(0,o.createElement)("button",{"aria-label":(0,w.__)("Toggle Visibility","neve"),className:"repeater-visibility-button",onClick:e=>{e.preventDefault(),e.stopPropagation(),a(r)}},g?h:f)),!i&&(0,o.createElement)("button",{className:"nv-repeater-expand-button",onClick:e=>{e.preventDefault(),u(!c)}},v(),c?m:p),i&&v(),i&&(0,o.createElement)(St,null)),!i&&c&&(0,o.createElement)(Et,{fields:e,newItemFields:t,value:n,index:r,onContentChange:l,onRemove:e=>{u(!1),s(e)}}))};Ct.propTypes={fields:l().object.isRequired,newItemFields:l().object.isRequired,value:l().array.isRequired,itemIndex:l().number.isRequired,sorting:l().bool.isRequired,onToggle:l().func.isRequired,onContentChange:l().func.isRequired,onRemove:l().func.isRequired};const xt=Ct;var kt=n(941);const Nt=({label:e,fields:t,allowNew:n,value:r,onUpdate:i,newItemFields:a})=>{const[l,s]=(0,o.useState)(!1),c=Object.keys(a).length>0?a:t,u=e=>{const t=[...r];t[e].visibility="yes"===r[e].visibility?"no":"yes",i(t)},m=e=>{const t=[...r];t.splice(e,1),i(t)};return(0,o.createElement)("div",{className:"nv-repeater"},e&&(0,o.createElement)("span",{className:"customize-control-title"},e),(0,o.createElement)(kt._O,{className:"nv-repeater-items-container",list:r,setList:(e,t,{dragging:n})=>{n&&(e=>{const t=e.map((e=>(Object.keys(e).forEach((t=>{[...Object.keys(c),"title","visibility","blocked","slug"].includes(t)||delete e[t]})),e)));i(t)})(e)},animation:300,forceFallback:!0,handle:".nv-repeater-handle"},r.map(((e,n)=>(0,o.createElement)(xt,{className:"nv-repeater-item",newItemFields:a,fields:t,value:r,itemIndex:n,onToggle:u,onContentChange:e=>((e,t)=>{const n=[...r];n[e]=t,i(n)})(n,e),onRemove:m,index:n,sorting:l,key:"repeater-item-"+n})))),(0,o.createElement)("div",{className:"nv-repeater-options"},r.length>1&&(0,o.createElement)(d.Button,{className:"nv-repeater-reorder-button",isLink:!0,onClick:()=>{s(!l)}},l?(0,w.__)("Done","neve"):(0,w.__)("Reorder","neve")),!l&&"yes"===n&&(0,o.createElement)(d.Button,{isSecondary:!0,onClick:()=>{const e=[...r],t={};for(const[e]of Object.entries(c)){if(t.visibility="yes","boolean"==typeof r[0][e]){t[e]=!0,"hide_on_mobile"===e&&(t[e]=!1);continue}let n=c[e].type;if("object"==typeof n&&(n=Object.values(c[e].type)[0]),"select"!==n)t[e]=c[e].default;else{let n=c[e].choices;"object"==typeof Object.values(n)[0]&&(n=Object.values(c[e].choices)[0]),t[e]=Object.keys(n)[0]}}e.push(t),i(e)},className:"nv-repeater-add-item-button"},(0,w.__)("Add Item","neve"))))};Nt.propTypes={value:l().array.isRequired,fields:l().object.isRequired,newItemFields:l().object,allowNew:l().oneOf(["no","yes"]).isRequired,onUpdate:l().func.isRequired};const Ot=Nt,zt=({control:e})=>{const{label:t,components:n,fields:r}=e.params,a=e.params.allow_new_fields,l=e.params.new_item_fields,[s,c]=(0,o.useState)((e=>{if(0===n.length)return e;const t=e.filter((e=>!("yes"===e.blocked&&!Object.keys(n).includes(e.slug))));return Object.keys(n).forEach((e=>{if(0===t.filter((t=>t.slug===e)).length){const o={slug:e,title:n[e],visibility:"no",blocked:"yes"};Object.keys(r).forEach((e=>{o[e]=""})),t.push(o)}})),"no"===a?t.filter((e=>e.slug)):t})((0,i.maybeParseJson)(e.setting.get()))),u=e.params.allow_new_fields;return(0,o.createElement)(Ot,{label:t,fields:r,newItemFields:l,allowNew:u,value:s,onUpdate:t=>{c(t),e.setting.set(JSON.stringify(t))}})};zt.propTypes={control:l().object.isRequired};const It=zt,Dt=wp.customize.Control.extend({renderContent:function(){(0,o.render)((0,o.createElement)(It,{control:this}),this.container[0])}}),Tt=(0,o.lazy)((()=>n.e(63).then(n.bind(n,63)))),Rt=({control:e})=>{const[t,n]=(0,o.useState)(!1);let r=e.setting.get();r=r.replace(/[a-zA-Z0-9\}(?:\s)]\n/g,(function(e){return e+"<br/>"}));const[i,a]=(0,o.useState)(r),{id:l,params:s}=e,{label:c,section:u,toolbars:m,allowedDynamicFields:p}=s,h=t=>{a(t),e.setting.set(t)};return(0,o.useEffect)((()=>{window.wp.customize.bind("ready",(()=>{window.wp.customize.state("expandedSection").bind((e=>{e&&e.id&&e.id===u&&!1===t&&n(!0)}))}))}),[]),(0,o.useEffect)((()=>{document.addEventListener("neve-changed-customizer-value",(e=>{if(!t)return!!e.detail&&e.detail.id===l&&void h(e.detail.value)}))}),[]),(0,o.createElement)(o.Suspense,{fallback:(0,o.createElement)(d.Spinner,null)},t&&(0,o.createElement)(Tt,{id:l,label:c,onChange:h,toolbars:m,allowedDynamicFields:p,currentValue:i}))};Rt.propTypes={control:l().object.isRequired};const At=Rt,Pt=wp.customize.Control.extend({renderContent:function(){(0,o.render)((0,o.createElement)(At,{control:this}),this.container[0])}}),jt=({control:e})=>{const{label:t,url:n,description:o}=e.params;return ne().createElement("div",{className:"neve-white-background-control"},o&&""!==o&&ne().createElement("p",null,o),ne().createElement("a",{href:n},t))},Lt=wp.customize.Control.extend({renderContent:function(){(0,o.render)((0,o.createElement)(jt,{control:this}),this.container[0])}}),Mt=({control:e})=>{const{options:t,label:n,disabled:r,description:a}=e.params,[l,s]=(0,o.useState)((0,i.maybeParseJson)(e.setting.get()));return(0,o.createElement)(i.GroupSelectControl,{label:n,multiple:!0,disabled:r,value:l,description:a,onChange:t=>{s(t),e.setting.set(JSON.stringify(t))},options:t})},Ft=wp.customize.Control.extend({renderContent:function(){(0,o.render)((0,o.createElement)(Mt,{control:this}),this.container[0])}}),Vt=({control:e})=>{const{params:t}=e,{title:n,url:o}=t;return ne().createElement("div",{className:"documentation-inner"},n&&ne().createElement("div",{className:"neve-customizer-heading"},ne().createElement("span",{className:"accordion-heading"},t.title),o&&ne().createElement(d.Button,{target:"_blank",rel:"external noreferrer noopener",href:o,isSecondary:!0},(0,w.__)("Documentation","neve"),ne().createElement("span",{className:"components-visually-hidden"},(0,w.__)("(opens in a new tab)","neve")))))},Bt=({control:e})=>{var t,n,o,r,i,a,l,s,c,u,m,p;const{params:h}=e,{title:f,url:v}=h;return(null===(n=null===(t=null===window||void 0===window?void 0:window.NeveReactCustomize)||void 0===t?void 0:t.deal)||void 0===n?void 0:n.active)&&(null===(r=null===(o=null===window||void 0===window?void 0:window.NeveReactCustomize)||void 0===o?void 0:o.deal)||void 0===r?void 0:r.customizerBannerStoreUrl)&&(null===(a=null===(i=null===window||void 0===window?void 0:window.NeveReactCustomize)||void 0===i?void 0:i.deal)||void 0===a?void 0:a.customizerBannerUrl)?ne().createElement("div",{className:"upsell-inner"},ne().createElement("a",{href:null===(s=null===(l=null===window||void 0===window?void 0:window.NeveReactCustomize)||void 0===l?void 0:l.deal)||void 0===s?void 0:s.customizerBannerStoreUrl,target:"_blank",rel:"external noreferrer noopener",style:{width:"100%",lineHeight:"0"}},ne().createElement("img",{src:null===(u=null===(c=null===window||void 0===window?void 0:window.NeveReactCustomize)||void 0===c?void 0:c.deal)||void 0===u?void 0:u.customizerBannerUrl,alt:null===(p=null===(m=null===window||void 0===window?void 0:window.NeveReactCustomize)||void 0===m?void 0:m.deal)||void 0===p?void 0:p.customizerBannerAlt,style:{width:"100%"}}))):ne().createElement("div",{className:"upsell-inner"},f&&ne().createElement("div",{className:"neve-customizer-heading"},ne().createElement("span",{className:"accordion-heading"},h.title),v&&ne().createElement(d.Button,{target:"_blank",rel:"external noreferrer noopener",href:v,isPrimary:!0},(0,w.__)("Learn More","neve"),ne().createElement("span",{className:"components-visually-hidden"},(0,w.__)("(opens in a new tab)","neve")))))},Ht="neve_upsell_banner_hide",Gt=({control:e})=>{const{params:t}=e,{title:n,text:r,buttonText:i,logoPath:a,useLogo:l,url:s,nonce:c,id:u}=t,m=n||r,p=i||(0,w.__)("Learn More","neve"),[h,f]=(0,te.useState)(!1);return(0,o.useEffect)((()=>{const e=e=>{e&&e instanceof Event&&e.type===Ht&&f(!0)};return document.addEventListener(Ht,e),()=>{document.removeEventListener(Ht,e)}}),[]),h?null:ne().createElement("div",{className:"upsell-inner"},m&&ne().createElement("div",{className:"neve-customizer-heading"},l&&a&&ne().createElement("img",{src:a,alt:"Neve",className:"logo"}),ne().createElement("span",{className:"accordion-heading"},m),s&&ne().createElement(d.Button,{target:"_blank",rel:"external noreferrer noopener",href:s,isPrimary:!0},p,ne().createElement("span",{className:"components-visually-hidden"},(0,w.__)("(opens in a new tab)","neve"))),ne().createElement(d.Button,{className:"nv-dismiss-upsell",onClick:()=>{((e="",t="")=>{const n=new FormData;n.append("action","neve_dismiss_customizer_upsell_notice"),n.append("nonce",t),n.append("id",e),fetch("/wp-admin/admin-ajax.php",{method:"POST",body:n}).then((e=>e.json()))})(u,c),document.dispatchEvent(new Event(Ht))},style:{padding:3}},ne().createElement(d.Icon,{icon:"no-alt",size:20}))))},qt=({onToggle:e})=>ne().createElement(ne().Fragment,null,ne().createElement(d.Button,{icon:"search",iconSize:28,isSmall:!0,isLink:!0,label:(0,w.__)("Search","neve")+" "+(0,w.__)("Toggle","neve"),onClick:e},ne().createElement("span",{className:"screen-reader-text"},(0,w.__)("Search","neve")))),Wt=({isOpened:e,search:t,setSearch:n,matchResults:r,setMatchResults:i})=>{const a=document.getElementById("customize-theme-controls"),l=Object.values(_wpCustomizeSettings.controls).map((e=>(Object.values(_wpCustomizeSettings.sections).forEach((t=>{e.section===t.id&&Object.values(_wpCustomizeSettings.panels).forEach((n=>{""===t.panel&&(e.panelName=t.title),t.panel===n.id&&(e.sectionName=t.title,e.panel=t.panel,e.panelName=n.title)}))})),e)));(0,o.useEffect)((()=>{window.wp.customize.state("expandedPanel").bind((()=>{s(),(null==a?void 0:a.classList.contains("search-not-found"))&&(null==a||a.classList.remove("search-not-found"))})),window.wp.customize.state("expandedSection").bind((()=>{s(),(null==a?void 0:a.classList.contains("search-not-found"))&&(null==a||a.classList.remove("search-not-found"))}))}),[]),(0,o.useEffect)((()=>{var t,n,o;e?(null===(t=document.getElementById("neve-customize-search-field"))||void 0===t||t.classList.add("visible"),null===(n=document.getElementById("nv-customizer-search-input"))||void 0===n||n.focus()):(null===(o=document.getElementById("neve-customize-search-field"))||void 0===o||o.classList.remove("visible"),s())}),[e]),(0,o.useEffect)((()=>{""===t?(null==a?void 0:a.classList.contains("search-not-found"))&&(null==a||a.classList.remove("search-not-found")):(null==a?void 0:a.classList.contains("search-not-found"))||null==a||a.classList.add("search-not-found"),0===r.length&&(null==a?void 0:a.classList.contains("search-not-found"))&&(null==a||a.classList.remove("search-not-found"))}),[t,r]);const s=()=>{var e;n(""),null===(e=document.getElementById("nv-customizer-search-input"))||void 0===e||e.focus(),null==a||a.classList.remove("search-not-found")};return ne().createElement(ne().Fragment,null,ne().createElement("span",{className:"accordion-section"},ne().createElement("span",{className:"search-input"},(0,w.__)("Search","neve")+" "+(0,w.__)("Settings","neve").toLowerCase()),ne().createElement("span",{className:"nv-search-wrap"},ne().createElement("input",{type:"text",placeholder:(0,w.__)("Search","neve"),id:"nv-customizer-search-input",className:"nv-customizer-search-input",value:t,onChange:e=>{const o=e.target.value;n(o);const r=(e=>l.filter((t=>{t.label||(t.label=""),t.panelName||(t.panelName=""),t.sectionName||(t.sectionName="");const n=e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),o=new RegExp(n,"gi");return t.label.match(o)||t.panelName.match(o)||t.sectionName.match(o)})))(t);i(r)}}),ne().createElement(d.Button,{label:(0,w.__)("Clear","neve"),isSmall:!0,isSecondary:!0,onClick:s},(0,w.__)("Clear","neve"),ne().createElement("span",{className:"screen-reader-text"},(0,w.__)("Clear","neve"))))))},Ut=({matchResults:e,query:t,setQuery:n})=>{const o=(e,t)=>{const n=t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),o=e.split(new RegExp(`(${n})`,"gi"));return ne().createElement("span",null," ",o.map(((e,n)=>ne().createElement("span",{key:n,className:y()({hl:e.toLowerCase()===t.toLowerCase()}),style:e.toLowerCase()===t.toLowerCase()?{fontWeight:"bold"}:{}},e)))," ")};return ne().createElement(ne().Fragment,null,""!==t&&ne().createElement("ul",{id:"customizer-search-results"},e.map((e=>{if(""===e.label)return"";let r=e.panelName;null===r&&(r=""),""!==e.sectionName&&(r=`${r} ▸ ${e.sectionName}`);const i=e.label;return ne().createElement("li",{id:`accordion-section-${e.section}`,className:"accordion-section control-section control-section-default","aria-owns":`sub-accordion-section-${e.section}`,key:e.instanceNumber,onClick:t=>{var o,r,i,a;t.preventDefault(),o=e.section,r=e.panel,(o||r)&&(r&&(null===(i=wp.customize.panel(r))||void 0===i||i.expand()),o&&(null===(a=wp.customize.section(o))||void 0===a||a.expand()),n(""))}},ne().createElement("h3",{className:"accordion-section-title",tabIndex:0},o(i,t),ne().createElement("span",{className:"screen-reader-text"},"Press return or enter to open this section")),ne().createElement("span",{className:"search-setting-path"},o(r,t)))}))))},$t=({search:e,button:t,results:n})=>{const[r,i]=(0,te.useState)(!1),[a,l]=(0,te.useState)(""),[s,c]=(0,te.useState)([]);return ne().createElement(ne().Fragment,null,(0,o.createPortal)(ne().createElement(qt,{onToggle:()=>{i(!r)}}),t),(0,o.createPortal)(ne().createElement(Wt,{isOpened:r,search:a,setSearch:l,matchResults:s,setMatchResults:c}),e),(0,o.createPortal)(ne().createElement(Ut,{matchResults:s,query:a,setQuery:l}),n))},Jt=({description:e,pairs:t,onSelect:n})=>{const[r,i]=(0,o.useState)(-1),[a,l]=(0,o.useState)({font:"",fontSource:"System"}),[s,c]=(0,o.useState)({font:"",fontSource:"System"}),u=()=>{window.document.dispatchEvent(new window.CustomEvent("neve-changed-customizer-value",{detail:{value:""!==a.font?a:{font:!1,fontSource:"System"},id:"neve_body_font_family"}})),window.document.dispatchEvent(new window.CustomEvent("neve-changed-customizer-value",{detail:{value:""!==s.font?s:{font:!1,fontSource:"System"},id:"neve_headings_font_family"}}))},m=e=>{const t={font:"",fontSource:"System"};if(!e)return t;const n=NeveReactCustomize.fonts;return Object.keys(n).map((o=>{const r=n[o].filter((t=>t.toLowerCase().includes(e.toLowerCase())));return r.length>0&&(t.font=r[0],t.fontSource=o),o})),t},p=()=>{const e=window.wp.customize.control("neve_body_font_family").setting.get(),t=window.wp.customize.control("neve_headings_font_family").setting.get();if(-1===r){const t=m(e);l(t)}if(-1===r){const e=m(t);c(e)}return{bodyFont:e,headingFont:t}};return(0,o.useEffect)((()=>{window.wp.customize.bind("ready",(()=>{const{bodyFont:e,headingFont:n}=p(),o=t.findIndex((t=>t.headingFont.font===n&&t.bodyFont.font===e));i(o)}))}),[]),ne().createElement("div",{className:"neve-font-pair-selector"},e&&e.text&&e.link&&ne().createElement("span",{className:"description",dangerouslySetInnerHTML:{__html:`${e.text} ${e.link}`}}),t.length>0?t.map(((e,t)=>{const{bodyFont:o,headingFont:a}=e,l=`${a.font} & ${o.font}`,s={fontFamily:`${a.font}, sans-serif`},c={fontFamily:`${o.font}, sans-serif`};return a.previewSize&&(parseInt(a.previewSize.replace("px",""))>27&&(s.textOverflow="ellipsis"),s.fontSize=a.previewSize),o.previewSize&&(parseInt(o.previewSize.replace("px",""))>24&&(c.textOverflow="ellipsis"),c.fontSize=o.previewSize),ne().createElement(d.Tooltip,{key:t,text:l},ne().createElement("button",{className:r===t?"active dashicons-before dashicons-yes":void 0,onClick:o=>{if(o.preventDefault(),r===t)return u(),void i(-1);p(),n(e),i(t)}},ne().createElement("span",{className:"neve-font-preview",style:s},"The big brown fox"),ne().createElement("span",{className:"neve-font-preview",style:c},"Jumps over the lazy dog")))})):null,t.length>0&&ne().createElement("button",{className:"reset",onClick:e=>{e.preventDefault(),u(),i(-1)}},ne().createElement("span",{className:"dashicons dashicons-image-rotate"}),(0,w.__)("Reset all to default","neve")))},Xt=({control:e})=>{const{pairs:t,description:n}=e.params.input_attrs;return ne().createElement(Jt,{description:n,onSelect:e=>{window.document.dispatchEvent(new window.CustomEvent("neve-changed-customizer-value",{detail:{value:e.bodyFont,id:"neve_body_font_family"}})),window.document.dispatchEvent(new window.CustomEvent("neve-changed-customizer-value",{detail:{value:e.headingFont,id:"neve_headings_font_family"}}))},pairs:t})},Yt=wp.customize.Control.extend({renderContent:function(){(0,o.render)((0,o.createElement)(Xt,{control:this}),this.container[0])}}),{controlConstructor:Kt}=wp.customize;Kt.neve_toggle_control=u,Kt.neve_responsive_toggle_control=h,Kt.neve_background_control=g,Kt.neve_spacing=C,Kt.neve_typeface_control=I,Kt.neve_font_family_control=P,Kt.neve_font_pairings_control=Yt,Kt.neve_radio_buttons_control=V,Kt.neve_button_appearance=G,Kt.neve_range_control=J,Kt.neve_responsive_range_control=K,Kt.neve_color_control=ee,Kt.neve_presets_selector=se,Kt.neve_multiselect=ue,Kt.neve_form_token_field=me,Kt.neve_group_select=Ft,Kt.neve_responsive_radio_buttons_control=fe,Kt.neve_radio_image_control=be,Kt.neve_ordering_control=Ee,Kt.neve_global_colors=De,Kt.neve_global_custom_colors=Me,Kt.neve_non_responsive_spacing=Be,Kt.neve_inline_select=Ge,Kt.neve_builder_control=Xe,Kt.neve_builder_columns=Ze,Kt.neve_textarea=tt,Kt.hfg_instructions=ot,Kt.neve_customizer_heading=lt,Kt.neve_logo_palette_control=vt,Kt.neve_repeater_control=Dt,Kt.neve_rich_text=Pt,Kt.neve_link=Lt;const Zt=()=>{wp.customize.section("neve_blog_archive_layout",(e=>{e.expanded.bind((e=>{let t="";"page"===wp.customize.control("show_on_front").setting()&&(t=wp.customize.control("page_for_posts").setting()),e&&wp.customize.previewer.previewUrl.set(t?`/?page_id=${t}`:"/")}))}))};window.wp.customize.bind("ready",(()=>{document.querySelectorAll(".control-section.neve-documentation").forEach((e=>{const t=e.getAttribute("data-slug"),n=wp.customize.section(t);n&&(0,o.render)((0,o.createElement)(Vt,{control:n}),n.container[0])})),(()=>{var e,t;const n=(null===(e=NeveReactCustomize)||void 0===e||null===(t=e.dynamicTags)||void 0===t?void 0:t.controls)||!1;if(!n)return!1;NeveReactCustomize.fieldSelection={},Object.keys(n).forEach((e=>{var t,i;const a=wp.customize.control(e);if(void 0===a)return!1;const l=a.container[0],s=document.createElement("div");s.setAttribute("id",`dynamic-${e}`),s.classList.add("neve-dynamic-tag-selector"),l.classList.add("neve-has-dynamic-tag-selector"),l.appendChild(s),document.querySelector(`[data-customize-setting-link="${a.id}"]`).addEventListener("focusout",(function(t){NeveReactCustomize.fieldSelection[e]={start:t.target.selectionStart,end:t.target.selectionEnd}})),(0,o.render)((0,o.createElement)(r.Z,{options:(null===(t=NeveReactCustomize)||void 0===t||null===(i=t.dynamicTags)||void 0===i?void 0:i.options)||[],allowedOptionsTypes:n[e],onSelect:(e,t)=>function(e,t,n){let o;const r=document.querySelector(`[data-customize-setting-link="${t.id}"]`);if(o="url"===n&&"textarea"===t.params.type?`<a href="{${e}}">Link</a>`:`{${e}}`,"url"===n&&"#"===r.value)r.value=o;else if(NeveReactCustomize.fieldSelection[t.id]){const{start:e,end:n}=NeveReactCustomize.fieldSelection[t.id],i=r.value.length;r.value=r.value.substring(0,e)+o+r.value.substring(n,i)}else r.value+=o;NeveReactCustomize.fieldSelection[t.id]=!1,r.focus(),r.dispatchEvent(new Event("change"))}(e,a,t)}),s)}))})(),document.querySelectorAll(".control-section.neve-upsell").forEach((e=>{const t=e.getAttribute("data-slug"),n=wp.customize.section(t);n&&(0,o.render)((0,o.createElement)(Bt,{control:n}),n.container[0])})),document.querySelectorAll(".control-section.neve-upsell-banner").forEach((e=>{const t=e.getAttribute("data-slug"),n=wp.customize.section(t);n&&(0,o.render)((0,o.createElement)(Gt,{control:n}),n.container[0])})),document.querySelectorAll(".customize-control.neve-upsell-banner").forEach((e=>{const t=e.getAttribute("data-slug"),n=wp.customize.control(t);n&&(0,o.render)((0,o.createElement)(Gt,{control:n}),n.container[0])})),document.querySelectorAll(".control-section.neve-quick-links").forEach((e=>{const t=e.getAttribute("data-slug"),n=wp.customize.section(t);n&&(0,o.render)((0,o.createElement)(nt,{control:n}),n.container[0])})),(()=>{const e=document.querySelectorAll("[data-control-focus]");e&&e.forEach((e=>{e.addEventListener("click",(()=>{const t=e.getAttribute("data-control-focus");if(!t)return;const n=window.wp.customize.control(t);n&&n.focus()}))}))})(),Zt(),(()=>{const{sectionsFocus:e}=window.NeveReactCustomize;void 0!==e&&Object.keys(e).forEach((t=>{wp.customize.section(t,(n=>{n.expanded.bind((n=>{n&&wp.customize.previewer.previewUrl.set(e[t])}))}))}))})(),NeveReactCustomize.elementor.hasElementorShopTemplate&&window.wp.customize.section("woocommerce_product_catalog").notifications.add(new window.wp.customize.Notification("neve-custom-elementor-shop-template",{type:"warning",message:"Some of the settings might not work as expected because you are using a custom shop template made in Elementor."})),NeveReactCustomize.elementor.hasElementorProductTemplate&&window.wp.customize.section("neve_single_product_layout").notifications.add(new window.wp.customize.Notification("neve-custom-elementor-product-template",{type:"warning",message:"Some of the settings might not work as expected because you are using a custom product template made in Elementor."})),document.querySelector("#customize-footer-actions .devices, .hfg--cb-devices-switcher a.switch-to").addEventListener("click",(function(e){const t=new CustomEvent("neveChangedRepsonsivePreview",{detail:e.target.dataset.device});document.dispatchEvent(t)})),Zt(),(()=>{const e=document.querySelector("#customize-info .accordion-section-title");new MutationObserver(((e,t)=>{for(const o of e)if("childList"===o.type){var n;document.querySelectorAll("#customize-info .accordion-section-title .dashicons-search").length>1&&(t.disconnect(),null===(n=document.getElementById("neve-customize-search"))||void 0===n||n.remove())}})).observe(e,{attributes:!1,childList:!0,subtree:!1});const t=document.getElementById("customize-controls"),n=document.createElement("div");t.appendChild(n);const r=document.querySelector("#customize-info .accordion-section-title"),i=document.getElementById("customize-theme-controls"),a=document.getElementById("customize-info"),l=document.createElement("div"),s=document.createElement("div"),c=document.createElement("div");l.setAttribute("id","neve-customize-search"),s.setAttribute("id","neve-customize-search-field"),c.setAttribute("id","neve-customize-search-results"),r.append(l),a.append(s),i.after(c),(0,o.render)((0,o.createElement)($t,{search:s,button:l,results:c}),n)})(),(()=>{const e=document.querySelector(".control-section-typography_extra_section");if(!e)return;const t=e.getAttribute("data-slug"),n=wp.customize.section(t);if(!n)return;const r=new wp.customize.controlConstructor.neve_toggle_control(NeveReactCustomize.localGoogleFonts.key,{section:n.id,label:(0,w.__)("Local fonts hosting","neve"),setting:NeveReactCustomize.localGoogleFonts.key,description:NeveReactCustomize.localGoogleFonts.learnMore,priority:5});(0,o.render)((0,o.createElement)(c,{control:r}),n.container[0])})()})),window.HFG={getSettings:()=>{const e={},{headerControls:t}=window.NeveReactCustomize;return Object.keys(t).forEach((n=>{const o=window.wp.customize.control(n);if(!o)return;const r=o.setting();JSON.stringify(r)!==JSON.stringify(t[n])&&(e[n]=r)})),JSON.stringify(e)}}},167:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var o=n(307),r=n(697),i=n.n(r),a=n(736),l=n(609);const s=({options:e=[],onSelect:t,allowedOptionsTypes:n})=>(0,o.createElement)(l.DropdownMenu,{icon:"image-filter",label:(0,a.__)("Insert Dynamic Tag","neve")},(()=>{const r=[];return e.forEach(((e,i)=>{const a=[];Object.keys(e.controls).forEach(((r,i)=>{if(!n.includes(e.controls[r].type))return!1;a.push((0,o.createElement)(l.MenuItem,{key:i,onClick:()=>{t(r,e.controls[r].type)}},e.controls[r].label))})),r.push((0,o.createElement)(l.MenuGroup,{key:i,label:e.label},a))})),r}));s.propTypes={allowedOptionsTypes:i().array.isRequired,onSelect:i().func.isRequired};const c=s},909:(e,t,n)=>{n.p=window.NeveReactCustomize.bundlePath},184:(e,t)=>{var n;!function(){"use strict";var o={}.hasOwnProperty;function r(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var i=typeof n;if("string"===i||"number"===i)e.push(n);else if(Array.isArray(n)){if(n.length){var a=r.apply(null,n);a&&e.push(a)}}else if("object"===i)if(n.toString===Object.prototype.toString)for(var l in n)o.call(n,l)&&n[l]&&e.push(l);else e.push(n.toString())}}return e.join(" ")}e.exports?(r.default=r,e.exports=r):void 0===(n=function(){return r}.apply(t,[]))||(e.exports=n)}()},703:(e,t,n)=>{"use strict";var o=n(414);function r(){}function i(){}i.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,i,a){if(a!==o){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:r};return n.PropTypes=n,n}},697:(e,t,n)=>{e.exports=n(703)()},414:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},941:(e,t,n)=>{var o=p(n(177)),r=n(196),i=r.Children,a=r.cloneElement,l=r.Component,s=r.createElement,c=r.createRef,u=p(n(184)),d=n(474),m=p(d);function p(e){return e&&e.__esModule?e.default:e}function h(e){return function(e){if(Array.isArray(e))return f(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(Object(n),!0).forEach((function(t){b(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y(e){null!==e.parentElement&&e.parentElement.removeChild(e)}function w(e){e.forEach((function(e){return y(e.element)}))}function _(e){e.forEach((function(e){var t,n,o,r;t=e.parentElement,n=e.element,o=e.oldIndex,r=t.children[o]||null,t.insertBefore(n,r)}))}function E(e,t){var n=x(e),o={parentElement:e.from},r=[];switch(n){case"normal":r=[{element:e.item,newIndex:e.newIndex,oldIndex:e.oldIndex,parentElement:e.from}];break;case"swap":r=[g({element:e.item,oldIndex:e.oldIndex,newIndex:e.newIndex},o),g({element:e.swapItem,oldIndex:e.newIndex,newIndex:e.oldIndex},o)];break;case"multidrag":r=e.oldIndicies.map((function(t,n){return g({element:t.multiDragElement,oldIndex:t.index,newIndex:e.newIndicies[n].index},o)}))}return function(e,t){return e.map((function(e){return g(g({},e),{},{item:t[e.oldIndex]})})).sort((function(e,t){return e.oldIndex-t.oldIndex}))}(r,t)}function S(e,t){var n=h(t);return e.concat().reverse().forEach((function(e){return n.splice(e.oldIndex,1)})),n}function C(e,t,n,o){var r=h(t);return e.forEach((function(e){var t=o&&n&&o(e.item,n);r.splice(e.newIndex,0,t||e.item)})),r}function x(e){return e.oldIndicies&&e.oldIndicies.length>0?"multidrag":e.swapItem?"swap":"normal"}function k(e){return(k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function N(e){return function(e){if(Array.isArray(e))return O(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return O(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?O(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function O(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function z(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function I(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?z(Object(n),!0).forEach((function(t){A(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):z(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function D(e,t){return(D=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function T(e,t){return!t||"object"!==k(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function R(e){return(R=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function A(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}d.Direction,d.DOMRect,d.GroupOptions,d.MoveEvent,d.Options,d.PullResult,d.PutResult,d.SortableEvent,d.SortableOptions,d.Utils;var P={dragging:null},j=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&D(e,t)}(r,l);var t,n=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=R(e);if(t){var r=R(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return T(this,n)}}(r);function r(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),(t=n.call(this,e)).ref=c();var i=e.list.map((function(e){return I(I({},e),{},{chosen:!1,selected:!1})}));return e.setList(i,t.sortable,P),o(!e.plugins,'\nPlugins prop is no longer supported.\nInstead, mount it with "Sortable.mount(new MultiDrag())"\nPlease read the updated README.md at https://github.com/SortableJS/react-sortablejs.\n '),t}return(t=[{key:"componentDidMount",value:function(){if(null!==this.ref.current){var e=this.makeOptions();m.create(this.ref.current,e)}}},{key:"render",value:function(){var e=this.props,t=e.tag,n={style:e.style,className:e.className,id:e.id};return s(t&&null!==t?t:"div",I({ref:this.ref},n),this.getChildren())}},{key:"getChildren",value:function(){var e=this.props,t=e.children,n=e.dataIdAttr,o=e.selectedClass,r=void 0===o?"sortable-selected":o,l=e.chosenClass,s=void 0===l?"sortable-chosen":l,c=(e.dragClass,e.fallbackClass,e.ghostClass,e.swapClass,e.filter),d=void 0===c?"sortable-filter":c,m=e.list;if(!t||null==t)return null;var p=n||"data-id";return i.map(t,(function(e,t){var n,o,i=m[t],l=e.props.className,c="string"==typeof d&&A({},d.replace(".",""),!!i.filtered),h=u(l,I((A(n={},r,i.selected),A(n,s,i.chosen),n),c));return a(e,(A(o={},p,e.key),A(o,"className",h),o))}))}},{key:"makeOptions",value:function(){var e,t=this,n=((e=this.props).list,e.setList,e.children,e.tag,e.style,e.className,e.clone,e.onAdd,e.onChange,e.onChoose,e.onClone,e.onEnd,e.onFilter,e.onRemove,e.onSort,e.onStart,e.onUnchoose,e.onUpdate,e.onMove,e.onSpill,e.onSelect,e.onDeselect,function(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,["list","setList","children","tag","style","className","clone","onAdd","onChange","onChoose","onClone","onEnd","onFilter","onRemove","onSort","onStart","onUnchoose","onUpdate","onMove","onSpill","onSelect","onDeselect"]));return["onAdd","onChoose","onDeselect","onEnd","onRemove","onSelect","onSpill","onStart","onUnchoose","onUpdate"].forEach((function(e){return n[e]=t.prepareOnHandlerPropAndDOM(e)})),["onChange","onClone","onFilter","onSort"].forEach((function(e){return n[e]=t.prepareOnHandlerProp(e)})),I(I({},n),{},{onMove:function(e,n){var o=t.props.onMove,r=e.willInsertAfter||-1;if(!o)return r;var i=o(e,n,t.sortable,P);return void 0!==i&&i}})}},{key:"prepareOnHandlerPropAndDOM",value:function(e){var t=this;return function(n){t.callOnHandlerProp(n,e),t[e](n)}}},{key:"prepareOnHandlerProp",value:function(e){var t=this;return function(n){t.callOnHandlerProp(n,e)}}},{key:"callOnHandlerProp",value:function(e,t){var n=this.props[t];n&&n(e,this.sortable,P)}},{key:"onAdd",value:function(e){var t=this.props,n=t.list,o=t.setList,r=t.clone,i=E(e,N(P.dragging.props.list));w(i),o(C(i,n,e,r).map((function(e){return I(I({},e),{},{selected:!1})})),this.sortable,P)}},{key:"onRemove",value:function(e){var t=this,n=this.props,r=n.list,i=n.setList,a=x(e),l=E(e,r);_(l);var s=N(r);if("clone"!==e.pullMode)s=S(l,s);else{var c=l;switch(a){case"multidrag":c=l.map((function(t,n){return I(I({},t),{},{element:e.clones[n]})}));break;case"normal":c=l.map((function(t){return I(I({},t),{},{element:e.clone})}));break;default:o(!0,'mode "'.concat(a,'" cannot clone. Please remove "props.clone" from <ReactSortable/> when using the "').concat(a,'" plugin'))}w(c),l.forEach((function(n){var o=n.oldIndex,r=t.props.clone(n.item,e);s.splice(o,1,r)}))}i(s=s.map((function(e){return I(I({},e),{},{selected:!1})})),this.sortable,P)}},{key:"onUpdate",value:function(e){var t=this.props,n=t.list,o=t.setList,r=E(e,n);return w(r),_(r),o(function(e,t){return C(e,S(e,t))}(r,n),this.sortable,P)}},{key:"onStart",value:function(){P.dragging=this}},{key:"onEnd",value:function(){P.dragging=null}},{key:"onChoose",value:function(e){var t=this.props,n=t.list;(0,t.setList)(n.map((function(t,n){return n===e.oldIndex?I(I({},t),{},{chosen:!0}):t})),this.sortable,P)}},{key:"onUnchoose",value:function(e){var t=this.props,n=t.list;(0,t.setList)(n.map((function(t,n){return n===e.oldIndex?I(I({},t),{},{chosen:!1}):t})),this.sortable,P)}},{key:"onSpill",value:function(e){var t=this.props,n=t.removeOnSpill,o=t.revertOnSpill;n&&!o&&y(e.item)}},{key:"onSelect",value:function(e){var t=this.props,n=t.list,o=t.setList,r=n.map((function(e){return I(I({},e),{},{selected:!1})}));e.newIndicies.forEach((function(t){var n=t.index;if(-1===n)return console.log('"'.concat(e.type,'" had indice of "').concat(t.index,"\", which is probably -1 and doesn't usually happen here.")),void console.log(e);r[n].selected=!0})),o(r,this.sortable,P)}},{key:"onDeselect",value:function(e){var t=this.props,n=t.list,o=t.setList,r=n.map((function(e){return I(I({},e),{},{selected:!1})}));e.newIndicies.forEach((function(e){var t=e.index;-1!==t&&(r[t].selected=!0)})),o(r,this.sortable,P)}},{key:"sortable",get:function(){var e=this.ref.current;if(null===e)return null;var t=Object.keys(e).find((function(e){return e.includes("Sortable")}));return t?e[t]:null}}])&&function(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}(r.prototype,t),r}();t._O=j,A(j,"defaultProps",{clone:function(e){return e}})},474:(e,t,n)=>{"use strict";function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(){return i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},i.apply(this,arguments)}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){r(e,t,n[t])}))}return e}function l(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function s(e){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(e)}n.r(t),n.d(t,{default:()=>wt,MultiDrag:()=>gt,Sortable:()=>Me,Swap:()=>at});var c=s(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),u=s(/Edge/i),d=s(/firefox/i),m=s(/safari/i)&&!s(/chrome/i)&&!s(/android/i),p=s(/iP(ad|od|hone)/i),h=s(/chrome/i)&&s(/android/i),f={capture:!1,passive:!1};function v(e,t,n){e.addEventListener(t,n,!c&&f)}function g(e,t,n){e.removeEventListener(t,n,!c&&f)}function b(e,t){if(t){if(">"===t[0]&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch(e){return!1}return!1}}function y(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function w(e,t,n,o){if(e){n=n||document;do{if(null!=t&&(">"===t[0]?e.parentNode===n&&b(e,t):b(e,t))||o&&e===n)return e;if(e===n)break}while(e=y(e))}return null}var _,E=/\s+/g;function S(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var o=(" "+e.className+" ").replace(E," ").replace(" "+t+" "," ");e.className=(o+(n?" "+t:"")).replace(E," ")}}function C(e,t,n){var o=e&&e.style;if(o){if(void 0===n)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),void 0===t?n:n[t];t in o||-1!==t.indexOf("webkit")||(t="-webkit-"+t),o[t]=n+("string"==typeof n?"":"px")}}function x(e,t){var n="";if("string"==typeof e)n=e;else do{var o=C(e,"transform");o&&"none"!==o&&(n=o+" "+n)}while(!t&&(e=e.parentNode));var r=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return r&&new r(n)}function k(e,t,n){if(e){var o=e.getElementsByTagName(t),r=0,i=o.length;if(n)for(;r<i;r++)n(o[r],r);return o}return[]}function N(){return document.scrollingElement||document.documentElement}function O(e,t,n,o,r){if(e.getBoundingClientRect||e===window){var i,a,l,s,u,d,m;if(e!==window&&e.parentNode&&e!==N()?(a=(i=e.getBoundingClientRect()).top,l=i.left,s=i.bottom,u=i.right,d=i.height,m=i.width):(a=0,l=0,s=window.innerHeight,u=window.innerWidth,d=window.innerHeight,m=window.innerWidth),(t||n)&&e!==window&&(r=r||e.parentNode,!c))do{if(r&&r.getBoundingClientRect&&("none"!==C(r,"transform")||n&&"static"!==C(r,"position"))){var p=r.getBoundingClientRect();a-=p.top+parseInt(C(r,"border-top-width")),l-=p.left+parseInt(C(r,"border-left-width")),s=a+i.height,u=l+i.width;break}}while(r=r.parentNode);if(o&&e!==window){var h=x(r||e),f=h&&h.a,v=h&&h.d;h&&(s=(a/=v)+(d/=v),u=(l/=f)+(m/=f))}return{top:a,left:l,bottom:s,right:u,width:m,height:d}}}function z(e,t,n){for(var o=A(e,!0),r=O(e)[t];o;){var i=O(o)[n];if(!("top"===n||"left"===n?r>=i:r<=i))return o;if(o===N())break;o=A(o,!1)}return!1}function I(e,t,n){for(var o=0,r=0,i=e.children;r<i.length;){if("none"!==i[r].style.display&&i[r]!==Me.ghost&&i[r]!==Me.dragged&&w(i[r],n.draggable,e,!1)){if(o===t)return i[r];o++}r++}return null}function D(e,t){for(var n=e.lastElementChild;n&&(n===Me.ghost||"none"===C(n,"display")||t&&!b(n,t));)n=n.previousElementSibling;return n||null}function T(e,t){var n=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)"TEMPLATE"===e.nodeName.toUpperCase()||e===Me.clone||t&&!b(e,t)||n++;return n}function R(e){var t=0,n=0,o=N();if(e)do{var r=x(e),i=r.a,a=r.d;t+=e.scrollLeft*i,n+=e.scrollTop*a}while(e!==o&&(e=e.parentNode));return[t,n]}function A(e,t){if(!e||!e.getBoundingClientRect)return N();var n=e,o=!1;do{if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var r=C(n);if(n.clientWidth<n.scrollWidth&&("auto"==r.overflowX||"scroll"==r.overflowX)||n.clientHeight<n.scrollHeight&&("auto"==r.overflowY||"scroll"==r.overflowY)){if(!n.getBoundingClientRect||n===document.body)return N();if(o||t)return n;o=!0}}}while(n=n.parentNode);return N()}function P(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}function j(e,t){return function(){if(!_){var n=arguments,o=this;1===n.length?e.call(o,n[0]):e.apply(o,n),_=setTimeout((function(){_=void 0}),t)}}}function L(e,t,n){e.scrollLeft+=t,e.scrollTop+=n}function M(e){var t=window.Polymer,n=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):n?n(e).clone(!0)[0]:e.cloneNode(!0)}function F(e,t){C(e,"position","absolute"),C(e,"top",t.top),C(e,"left",t.left),C(e,"width",t.width),C(e,"height",t.height)}function V(e){C(e,"position",""),C(e,"top",""),C(e,"left",""),C(e,"width",""),C(e,"height","")}var B="Sortable"+(new Date).getTime();var H=[],G={initializeByDefault:!0},q={mount:function(e){for(var t in G)G.hasOwnProperty(t)&&!(t in e)&&(e[t]=G[t]);H.forEach((function(t){if(t.pluginName===e.pluginName)throw"Sortable: Cannot mount plugin ".concat(e.pluginName," more than once")})),H.push(e)},pluginEvent:function(e,t,n){var o=this;this.eventCanceled=!1,n.cancel=function(){o.eventCanceled=!0};var r=e+"Global";H.forEach((function(o){t[o.pluginName]&&(t[o.pluginName][r]&&t[o.pluginName][r](a({sortable:t},n)),t.options[o.pluginName]&&t[o.pluginName][e]&&t[o.pluginName][e](a({sortable:t},n)))}))},initializePlugins:function(e,t,n,o){for(var r in H.forEach((function(o){var r=o.pluginName;if(e.options[r]||o.initializeByDefault){var a=new o(e,t,e.options);a.sortable=e,a.options=e.options,e[r]=a,i(n,a.defaults)}})),e.options)if(e.options.hasOwnProperty(r)){var a=this.modifyOption(e,r,e.options[r]);void 0!==a&&(e.options[r]=a)}},getEventProperties:function(e,t){var n={};return H.forEach((function(o){"function"==typeof o.eventProperties&&i(n,o.eventProperties.call(t[o.pluginName],e))})),n},modifyOption:function(e,t,n){var o;return H.forEach((function(r){e[r.pluginName]&&r.optionListeners&&"function"==typeof r.optionListeners[t]&&(o=r.optionListeners[t].call(e[r.pluginName],n))})),o}};function W(e){var t=e.sortable,n=e.rootEl,o=e.name,r=e.targetEl,i=e.cloneEl,l=e.toEl,s=e.fromEl,d=e.oldIndex,m=e.newIndex,p=e.oldDraggableIndex,h=e.newDraggableIndex,f=e.originalEvent,v=e.putSortable,g=e.extraEventProperties;if(t=t||n&&n[B]){var b,y=t.options,w="on"+o.charAt(0).toUpperCase()+o.substr(1);!window.CustomEvent||c||u?(b=document.createEvent("Event")).initEvent(o,!0,!0):b=new CustomEvent(o,{bubbles:!0,cancelable:!0}),b.to=l||n,b.from=s||n,b.item=r||n,b.clone=i,b.oldIndex=d,b.newIndex=m,b.oldDraggableIndex=p,b.newDraggableIndex=h,b.originalEvent=f,b.pullMode=v?v.lastPutMode:void 0;var _=a({},g,q.getEventProperties(o,t));for(var E in _)b[E]=_[E];n&&n.dispatchEvent(b),y[w]&&y[w].call(t,b)}}var U=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=n.evt,r=l(n,["evt"]);q.pluginEvent.bind(Me)(e,t,a({dragEl:J,parentEl:X,ghostEl:Y,rootEl:K,nextEl:Z,lastDownEl:Q,cloneEl:ee,cloneHidden:te,dragStarted:he,putSortable:le,activeSortable:Me.active,originalEvent:o,oldIndex:ne,oldDraggableIndex:re,newIndex:oe,newDraggableIndex:ie,hideGhostForTarget:Ae,unhideGhostForTarget:Pe,cloneNowHidden:function(){te=!0},cloneNowShown:function(){te=!1},dispatchSortableEvent:function(e){$({sortable:t,name:e,originalEvent:o})}},r))};function $(e){W(a({putSortable:le,cloneEl:ee,targetEl:J,rootEl:K,oldIndex:ne,oldDraggableIndex:re,newIndex:oe,newDraggableIndex:ie},e))}var J,X,Y,K,Z,Q,ee,te,ne,oe,re,ie,ae,le,se,ce,ue,de,me,pe,he,fe,ve,ge,be,ye=!1,we=!1,_e=[],Ee=!1,Se=!1,Ce=[],xe=!1,ke=[],Ne="undefined"!=typeof document,Oe=p,ze=u||c?"cssFloat":"float",Ie=Ne&&!h&&!p&&"draggable"in document.createElement("div"),De=function(){if(Ne){if(c)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto","auto"===e.style.pointerEvents}}(),Te=function(e,t){var n=C(e),o=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),r=I(e,0,t),i=I(e,1,t),a=r&&C(r),l=i&&C(i),s=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+O(r).width,c=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+O(i).width;if("flex"===n.display)return"column"===n.flexDirection||"column-reverse"===n.flexDirection?"vertical":"horizontal";if("grid"===n.display)return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(r&&a.float&&"none"!==a.float){var u="left"===a.float?"left":"right";return!i||"both"!==l.clear&&l.clear!==u?"horizontal":"vertical"}return r&&("block"===a.display||"flex"===a.display||"table"===a.display||"grid"===a.display||s>=o&&"none"===n[ze]||i&&"none"===n[ze]&&s+c>o)?"vertical":"horizontal"},Re=function(e){function t(e,n){return function(o,r,i,a){var l=o.options.group.name&&r.options.group.name&&o.options.group.name===r.options.group.name;if(null==e&&(n||l))return!0;if(null==e||!1===e)return!1;if(n&&"clone"===e)return e;if("function"==typeof e)return t(e(o,r,i,a),n)(o,r,i,a);var s=(n?o:r).options.group.name;return!0===e||"string"==typeof e&&e===s||e.join&&e.indexOf(s)>-1}}var n={},r=e.group;r&&"object"==o(r)||(r={name:r}),n.name=r.name,n.checkPull=t(r.pull,!0),n.checkPut=t(r.put),n.revertClone=r.revertClone,e.group=n},Ae=function(){!De&&Y&&C(Y,"display","none")},Pe=function(){!De&&Y&&C(Y,"display","")};Ne&&document.addEventListener("click",(function(e){if(we)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),we=!1,!1}),!0);var je=function(e){if(J){e=e.touches?e.touches[0]:e;var t=(r=e.clientX,i=e.clientY,_e.some((function(e){if(!D(e)){var t=O(e),n=e[B].options.emptyInsertThreshold,o=r>=t.left-n&&r<=t.right+n,l=i>=t.top-n&&i<=t.bottom+n;return n&&o&&l?a=e:void 0}})),a);if(t){var n={};for(var o in e)e.hasOwnProperty(o)&&(n[o]=e[o]);n.target=n.rootEl=t,n.preventDefault=void 0,n.stopPropagation=void 0,t[B]._onDragOver(n)}}var r,i,a},Le=function(e){J&&J.parentNode[B]._isOutsideThisEl(e.target)};function Me(e,t){if(!e||!e.nodeType||1!==e.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=i({},t),e[B]=this;var n,o,r={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Te(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(e,t){e.setData("Text",t.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==Me.supportPointer&&"PointerEvent"in window&&!m,emptyInsertThreshold:5};for(var l in q.initializePlugins(this,e,r),r)!(l in t)&&(t[l]=r[l]);for(var s in Re(t),this)"_"===s.charAt(0)&&"function"==typeof this[s]&&(this[s]=this[s].bind(this));this.nativeDraggable=!t.forceFallback&&Ie,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?v(e,"pointerdown",this._onTapStart):(v(e,"mousedown",this._onTapStart),v(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(v(e,"dragover",this),v(e,"dragenter",this)),_e.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),i(this,(o=[],{captureAnimationState:function(){o=[],this.options.animation&&[].slice.call(this.el.children).forEach((function(e){if("none"!==C(e,"display")&&e!==Me.ghost){o.push({target:e,rect:O(e)});var t=a({},o[o.length-1].rect);if(e.thisAnimationDuration){var n=x(e,!0);n&&(t.top-=n.f,t.left-=n.e)}e.fromRect=t}}))},addAnimationState:function(e){o.push(e)},removeAnimationState:function(e){o.splice(function(e,t){for(var n in e)if(e.hasOwnProperty(n))for(var o in t)if(t.hasOwnProperty(o)&&t[o]===e[n][o])return Number(n);return-1}(o,{target:e}),1)},animateAll:function(e){var t=this;if(!this.options.animation)return clearTimeout(n),void("function"==typeof e&&e());var r=!1,i=0;o.forEach((function(e){var n=0,o=e.target,a=o.fromRect,l=O(o),s=o.prevFromRect,c=o.prevToRect,u=e.rect,d=x(o,!0);d&&(l.top-=d.f,l.left-=d.e),o.toRect=l,o.thisAnimationDuration&&P(s,l)&&!P(a,l)&&(u.top-l.top)/(u.left-l.left)==(a.top-l.top)/(a.left-l.left)&&(n=function(e,t,n,o){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-n.top,2)+Math.pow(t.left-n.left,2))*o.animation}(u,s,c,t.options)),P(l,a)||(o.prevFromRect=a,o.prevToRect=l,n||(n=t.options.animation),t.animate(o,u,l,n)),n&&(r=!0,i=Math.max(i,n),clearTimeout(o.animationResetTimer),o.animationResetTimer=setTimeout((function(){o.animationTime=0,o.prevFromRect=null,o.fromRect=null,o.prevToRect=null,o.thisAnimationDuration=null}),n),o.thisAnimationDuration=n)})),clearTimeout(n),r?n=setTimeout((function(){"function"==typeof e&&e()}),i):"function"==typeof e&&e(),o=[]},animate:function(e,t,n,o){if(o){C(e,"transition",""),C(e,"transform","");var r=x(this.el),i=r&&r.a,a=r&&r.d,l=(t.left-n.left)/(i||1),s=(t.top-n.top)/(a||1);e.animatingX=!!l,e.animatingY=!!s,C(e,"transform","translate3d("+l+"px,"+s+"px,0)"),this.forRepaintDummy=function(e){return e.offsetWidth}(e),C(e,"transition","transform "+o+"ms"+(this.options.easing?" "+this.options.easing:"")),C(e,"transform","translate3d(0,0,0)"),"number"==typeof e.animated&&clearTimeout(e.animated),e.animated=setTimeout((function(){C(e,"transition",""),C(e,"transform",""),e.animated=!1,e.animatingX=!1,e.animatingY=!1}),o)}}}))}function Fe(e,t,n,o,r,i,a,l){var s,d,m=e[B],p=m.options.onMove;return!window.CustomEvent||c||u?(s=document.createEvent("Event")).initEvent("move",!0,!0):s=new CustomEvent("move",{bubbles:!0,cancelable:!0}),s.to=t,s.from=e,s.dragged=n,s.draggedRect=o,s.related=r||t,s.relatedRect=i||O(t),s.willInsertAfter=l,s.originalEvent=a,e.dispatchEvent(s),p&&(d=p.call(m,s,a)),d}function Ve(e){e.draggable=!1}function Be(){xe=!1}function He(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,o=0;n--;)o+=t.charCodeAt(n);return o.toString(36)}function Ge(e){return setTimeout(e,0)}function qe(e){return clearTimeout(e)}Me.prototype={constructor:Me,_isOutsideThisEl:function(e){this.el.contains(e)||e===this.el||(fe=null)},_getDirection:function(e,t){return"function"==typeof this.options.direction?this.options.direction.call(this,e,t,J):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,n=this.el,o=this.options,r=o.preventOnFilter,i=e.type,a=e.touches&&e.touches[0]||e.pointerType&&"touch"===e.pointerType&&e,l=(a||e).target,s=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||l,c=o.filter;if(function(e){ke.length=0;for(var t=e.getElementsByTagName("input"),n=t.length;n--;){var o=t[n];o.checked&&ke.push(o)}}(n),!J&&!(/mousedown|pointerdown/.test(i)&&0!==e.button||o.disabled)&&!s.isContentEditable&&(this.nativeDraggable||!m||!l||"SELECT"!==l.tagName.toUpperCase())&&!((l=w(l,o.draggable,n,!1))&&l.animated||Q===l)){if(ne=T(l),re=T(l,o.draggable),"function"==typeof c){if(c.call(this,e,l,this))return $({sortable:t,rootEl:s,name:"filter",targetEl:l,toEl:n,fromEl:n}),U("filter",t,{evt:e}),void(r&&e.cancelable&&e.preventDefault())}else if(c&&(c=c.split(",").some((function(o){if(o=w(s,o.trim(),n,!1))return $({sortable:t,rootEl:o,name:"filter",targetEl:l,fromEl:n,toEl:n}),U("filter",t,{evt:e}),!0}))))return void(r&&e.cancelable&&e.preventDefault());o.handle&&!w(s,o.handle,n,!1)||this._prepareDragStart(e,a,l)}}},_prepareDragStart:function(e,t,n){var o,r=this,i=r.el,a=r.options,l=i.ownerDocument;if(n&&!J&&n.parentNode===i){var s=O(n);if(K=i,X=(J=n).parentNode,Z=J.nextSibling,Q=n,ae=a.group,Me.dragged=J,se={target:J,clientX:(t||e).clientX,clientY:(t||e).clientY},me=se.clientX-s.left,pe=se.clientY-s.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,J.style["will-change"]="all",o=function(){U("delayEnded",r,{evt:e}),Me.eventCanceled?r._onDrop():(r._disableDelayedDragEvents(),!d&&r.nativeDraggable&&(J.draggable=!0),r._triggerDragStart(e,t),$({sortable:r,name:"choose",originalEvent:e}),S(J,a.chosenClass,!0))},a.ignore.split(",").forEach((function(e){k(J,e.trim(),Ve)})),v(l,"dragover",je),v(l,"mousemove",je),v(l,"touchmove",je),v(l,"mouseup",r._onDrop),v(l,"touchend",r._onDrop),v(l,"touchcancel",r._onDrop),d&&this.nativeDraggable&&(this.options.touchStartThreshold=4,J.draggable=!0),U("delayStart",this,{evt:e}),!a.delay||a.delayOnTouchOnly&&!t||this.nativeDraggable&&(u||c))o();else{if(Me.eventCanceled)return void this._onDrop();v(l,"mouseup",r._disableDelayedDrag),v(l,"touchend",r._disableDelayedDrag),v(l,"touchcancel",r._disableDelayedDrag),v(l,"mousemove",r._delayedDragTouchMoveHandler),v(l,"touchmove",r._delayedDragTouchMoveHandler),a.supportPointer&&v(l,"pointermove",r._delayedDragTouchMoveHandler),r._dragStartTimer=setTimeout(o,a.delay)}}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){J&&Ve(J),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;g(e,"mouseup",this._disableDelayedDrag),g(e,"touchend",this._disableDelayedDrag),g(e,"touchcancel",this._disableDelayedDrag),g(e,"mousemove",this._delayedDragTouchMoveHandler),g(e,"touchmove",this._delayedDragTouchMoveHandler),g(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||"touch"==e.pointerType&&e,!this.nativeDraggable||t?this.options.supportPointer?v(document,"pointermove",this._onTouchMove):v(document,t?"touchmove":"mousemove",this._onTouchMove):(v(J,"dragend",this),v(K,"dragstart",this._onDragStart));try{document.selection?Ge((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(e){}},_dragStarted:function(e,t){if(ye=!1,K&&J){U("dragStarted",this,{evt:t}),this.nativeDraggable&&v(document,"dragover",Le);var n=this.options;!e&&S(J,n.dragClass,!1),S(J,n.ghostClass,!0),Me.active=this,e&&this._appendGhost(),$({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(ce){this._lastX=ce.clientX,this._lastY=ce.clientY,Ae();for(var e=document.elementFromPoint(ce.clientX,ce.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(ce.clientX,ce.clientY))!==t;)t=e;if(J.parentNode[B]._isOutsideThisEl(e),t)do{if(t[B]&&t[B]._onDragOver({clientX:ce.clientX,clientY:ce.clientY,target:e,rootEl:t})&&!this.options.dragoverBubble)break;e=t}while(t=t.parentNode);Pe()}},_onTouchMove:function(e){if(se){var t=this.options,n=t.fallbackTolerance,o=t.fallbackOffset,r=e.touches?e.touches[0]:e,i=Y&&x(Y,!0),a=Y&&i&&i.a,l=Y&&i&&i.d,s=Oe&&be&&R(be),c=(r.clientX-se.clientX+o.x)/(a||1)+(s?s[0]-Ce[0]:0)/(a||1),u=(r.clientY-se.clientY+o.y)/(l||1)+(s?s[1]-Ce[1]:0)/(l||1);if(!Me.active&&!ye){if(n&&Math.max(Math.abs(r.clientX-this._lastX),Math.abs(r.clientY-this._lastY))<n)return;this._onDragStart(e,!0)}if(Y){i?(i.e+=c-(ue||0),i.f+=u-(de||0)):i={a:1,b:0,c:0,d:1,e:c,f:u};var d="matrix(".concat(i.a,",").concat(i.b,",").concat(i.c,",").concat(i.d,",").concat(i.e,",").concat(i.f,")");C(Y,"webkitTransform",d),C(Y,"mozTransform",d),C(Y,"msTransform",d),C(Y,"transform",d),ue=c,de=u,ce=r}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!Y){var e=this.options.fallbackOnBody?document.body:K,t=O(J,!0,Oe,!0,e),n=this.options;if(Oe){for(be=e;"static"===C(be,"position")&&"none"===C(be,"transform")&&be!==document;)be=be.parentNode;be!==document.body&&be!==document.documentElement?(be===document&&(be=N()),t.top+=be.scrollTop,t.left+=be.scrollLeft):be=N(),Ce=R(be)}S(Y=J.cloneNode(!0),n.ghostClass,!1),S(Y,n.fallbackClass,!0),S(Y,n.dragClass,!0),C(Y,"transition",""),C(Y,"transform",""),C(Y,"box-sizing","border-box"),C(Y,"margin",0),C(Y,"top",t.top),C(Y,"left",t.left),C(Y,"width",t.width),C(Y,"height",t.height),C(Y,"opacity","0.8"),C(Y,"position",Oe?"absolute":"fixed"),C(Y,"zIndex","100000"),C(Y,"pointerEvents","none"),Me.ghost=Y,e.appendChild(Y),C(Y,"transform-origin",me/parseInt(Y.style.width)*100+"% "+pe/parseInt(Y.style.height)*100+"%")}},_onDragStart:function(e,t){var n=this,o=e.dataTransfer,r=n.options;U("dragStart",this,{evt:e}),Me.eventCanceled?this._onDrop():(U("setupClone",this),Me.eventCanceled||((ee=M(J)).draggable=!1,ee.style["will-change"]="",this._hideClone(),S(ee,this.options.chosenClass,!1),Me.clone=ee),n.cloneId=Ge((function(){U("clone",n),Me.eventCanceled||(n.options.removeCloneOnHide||K.insertBefore(ee,J),n._hideClone(),$({sortable:n,name:"clone"}))})),!t&&S(J,r.dragClass,!0),t?(we=!0,n._loopId=setInterval(n._emulateDragOver,50)):(g(document,"mouseup",n._onDrop),g(document,"touchend",n._onDrop),g(document,"touchcancel",n._onDrop),o&&(o.effectAllowed="move",r.setData&&r.setData.call(n,o,J)),v(document,"drop",n),C(J,"transform","translateZ(0)")),ye=!0,n._dragStartId=Ge(n._dragStarted.bind(n,t,e)),v(document,"selectstart",n),he=!0,m&&C(document.body,"user-select","none"))},_onDragOver:function(e){var t,n,o,r,i=this.el,l=e.target,s=this.options,c=s.group,u=Me.active,d=ae===c,m=s.sort,p=le||u,h=this,f=!1;if(!xe){if(void 0!==e.preventDefault&&e.cancelable&&e.preventDefault(),l=w(l,s.draggable,i,!0),j("dragOver"),Me.eventCanceled)return f;if(J.contains(e.target)||l.animated&&l.animatingX&&l.animatingY||h._ignoreWhileAnimating===l)return F(!1);if(we=!1,u&&!s.disabled&&(d?m||(o=!K.contains(J)):le===this||(this.lastPutMode=ae.checkPull(this,u,J,e))&&c.checkPut(this,u,J,e))){if(r="vertical"===this._getDirection(e,l),t=O(J),j("dragOverValid"),Me.eventCanceled)return f;if(o)return X=K,M(),this._hideClone(),j("revert"),Me.eventCanceled||(Z?K.insertBefore(J,Z):K.appendChild(J)),F(!0);var v=D(i,s.draggable);if(!v||function(e,t,n){var o=O(D(n.el,n.options.draggable));return t?e.clientX>o.right+10||e.clientX<=o.right&&e.clientY>o.bottom&&e.clientX>=o.left:e.clientX>o.right&&e.clientY>o.top||e.clientX<=o.right&&e.clientY>o.bottom+10}(e,r,this)&&!v.animated){if(v===J)return F(!1);if(v&&i===e.target&&(l=v),l&&(n=O(l)),!1!==Fe(K,i,J,t,l,n,e,!!l))return M(),i.appendChild(J),X=i,V(),F(!0)}else if(l.parentNode===i){n=O(l);var g,b,y,_=J.parentNode!==i,E=!function(e,t,n){var o=n?e.left:e.top,r=n?e.right:e.bottom,i=n?e.width:e.height,a=n?t.left:t.top,l=n?t.right:t.bottom,s=n?t.width:t.height;return o===a||r===l||o+i/2===a+s/2}(J.animated&&J.toRect||t,l.animated&&l.toRect||n,r),x=r?"top":"left",k=z(l,"top","top")||z(J,"top","top"),N=k?k.scrollTop:void 0;if(fe!==l&&(b=n[x],Ee=!1,Se=!E&&s.invertSwap||_),g=function(e,t,n,o,r,i,a,l){var s=o?e.clientY:e.clientX,c=o?n.height:n.width,u=o?n.top:n.left,d=o?n.bottom:n.right,m=!1;if(!a)if(l&&ge<c*r){if(!Ee&&(1===ve?s>u+c*i/2:s<d-c*i/2)&&(Ee=!0),Ee)m=!0;else if(1===ve?s<u+ge:s>d-ge)return-ve}else if(s>u+c*(1-r)/2&&s<d-c*(1-r)/2)return function(e){return T(J)<T(e)?1:-1}(t);return(m=m||a)&&(s<u+c*i/2||s>d-c*i/2)?s>u+c/2?1:-1:0}(e,l,n,r,E?1:s.swapThreshold,null==s.invertedSwapThreshold?s.swapThreshold:s.invertedSwapThreshold,Se,fe===l),0!==g){var I=T(J);do{I-=g,y=X.children[I]}while(y&&("none"===C(y,"display")||y===Y))}if(0===g||y===l)return F(!1);fe=l,ve=g;var R=l.nextElementSibling,A=!1,P=Fe(K,i,J,t,l,n,e,A=1===g);if(!1!==P)return 1!==P&&-1!==P||(A=1===P),xe=!0,setTimeout(Be,30),M(),A&&!R?i.appendChild(J):l.parentNode.insertBefore(J,A?R:l),k&&L(k,0,N-k.scrollTop),X=J.parentNode,void 0===b||Se||(ge=Math.abs(b-O(l)[x])),V(),F(!0)}if(i.contains(J))return F(!1)}return!1}function j(s,c){U(s,h,a({evt:e,isOwner:d,axis:r?"vertical":"horizontal",revert:o,dragRect:t,targetRect:n,canSort:m,fromSortable:p,target:l,completed:F,onMove:function(n,o){return Fe(K,i,J,t,n,O(n),e,o)},changed:V},c))}function M(){j("dragOverAnimationCapture"),h.captureAnimationState(),h!==p&&p.captureAnimationState()}function F(t){return j("dragOverCompleted",{insertion:t}),t&&(d?u._hideClone():u._showClone(h),h!==p&&(S(J,le?le.options.ghostClass:u.options.ghostClass,!1),S(J,s.ghostClass,!0)),le!==h&&h!==Me.active?le=h:h===Me.active&&le&&(le=null),p===h&&(h._ignoreWhileAnimating=l),h.animateAll((function(){j("dragOverAnimationComplete"),h._ignoreWhileAnimating=null})),h!==p&&(p.animateAll(),p._ignoreWhileAnimating=null)),(l===J&&!J.animated||l===i&&!l.animated)&&(fe=null),s.dragoverBubble||e.rootEl||l===document||(J.parentNode[B]._isOutsideThisEl(e.target),!t&&je(e)),!s.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),f=!0}function V(){oe=T(J),ie=T(J,s.draggable),$({sortable:h,name:"change",toEl:i,newIndex:oe,newDraggableIndex:ie,originalEvent:e})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){g(document,"mousemove",this._onTouchMove),g(document,"touchmove",this._onTouchMove),g(document,"pointermove",this._onTouchMove),g(document,"dragover",je),g(document,"mousemove",je),g(document,"touchmove",je)},_offUpEvents:function(){var e=this.el.ownerDocument;g(e,"mouseup",this._onDrop),g(e,"touchend",this._onDrop),g(e,"pointerup",this._onDrop),g(e,"touchcancel",this._onDrop),g(document,"selectstart",this)},_onDrop:function(e){var t=this.el,n=this.options;oe=T(J),ie=T(J,n.draggable),U("drop",this,{evt:e}),X=J&&J.parentNode,oe=T(J),ie=T(J,n.draggable),Me.eventCanceled||(ye=!1,Se=!1,Ee=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),qe(this.cloneId),qe(this._dragStartId),this.nativeDraggable&&(g(document,"drop",this),g(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),m&&C(document.body,"user-select",""),C(J,"transform",""),e&&(he&&(e.cancelable&&e.preventDefault(),!n.dropBubble&&e.stopPropagation()),Y&&Y.parentNode&&Y.parentNode.removeChild(Y),(K===X||le&&"clone"!==le.lastPutMode)&&ee&&ee.parentNode&&ee.parentNode.removeChild(ee),J&&(this.nativeDraggable&&g(J,"dragend",this),Ve(J),J.style["will-change"]="",he&&!ye&&S(J,le?le.options.ghostClass:this.options.ghostClass,!1),S(J,this.options.chosenClass,!1),$({sortable:this,name:"unchoose",toEl:X,newIndex:null,newDraggableIndex:null,originalEvent:e}),K!==X?(oe>=0&&($({rootEl:X,name:"add",toEl:X,fromEl:K,originalEvent:e}),$({sortable:this,name:"remove",toEl:X,originalEvent:e}),$({rootEl:X,name:"sort",toEl:X,fromEl:K,originalEvent:e}),$({sortable:this,name:"sort",toEl:X,originalEvent:e})),le&&le.save()):oe!==ne&&oe>=0&&($({sortable:this,name:"update",toEl:X,originalEvent:e}),$({sortable:this,name:"sort",toEl:X,originalEvent:e})),Me.active&&(null!=oe&&-1!==oe||(oe=ne,ie=re),$({sortable:this,name:"end",toEl:X,originalEvent:e}),this.save())))),this._nulling()},_nulling:function(){U("nulling",this),K=J=X=Y=Z=ee=Q=te=se=ce=he=oe=ie=ne=re=fe=ve=le=ae=Me.dragged=Me.ghost=Me.clone=Me.active=null,ke.forEach((function(e){e.checked=!0})),ke.length=ue=de=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":J&&(this._onDragOver(e),function(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.cancelable&&e.preventDefault()}(e));break;case"selectstart":e.preventDefault()}},toArray:function(){for(var e,t=[],n=this.el.children,o=0,r=n.length,i=this.options;o<r;o++)w(e=n[o],i.draggable,this.el,!1)&&t.push(e.getAttribute(i.dataIdAttr)||He(e));return t},sort:function(e,t){var n={},o=this.el;this.toArray().forEach((function(e,t){var r=o.children[t];w(r,this.options.draggable,o,!1)&&(n[e]=r)}),this),t&&this.captureAnimationState(),e.forEach((function(e){n[e]&&(o.removeChild(n[e]),o.appendChild(n[e]))})),t&&this.animateAll()},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,t){return w(e,t||this.options.draggable,this.el,!1)},option:function(e,t){var n=this.options;if(void 0===t)return n[e];var o=q.modifyOption(this,e,t);n[e]=void 0!==o?o:t,"group"===e&&Re(n)},destroy:function(){U("destroy",this);var e=this.el;e[B]=null,g(e,"mousedown",this._onTapStart),g(e,"touchstart",this._onTapStart),g(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(g(e,"dragover",this),g(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),(function(e){e.removeAttribute("draggable")})),this._onDrop(),this._disableDelayedDragEvents(),_e.splice(_e.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!te){if(U("hideClone",this),Me.eventCanceled)return;C(ee,"display","none"),this.options.removeCloneOnHide&&ee.parentNode&&ee.parentNode.removeChild(ee),te=!0}},_showClone:function(e){if("clone"===e.lastPutMode){if(te){if(U("showClone",this),Me.eventCanceled)return;J.parentNode!=K||this.options.group.revertClone?Z?K.insertBefore(ee,Z):K.appendChild(ee):K.insertBefore(ee,J),this.options.group.revertClone&&this.animate(J,ee),C(ee,"display",""),te=!1}}else this._hideClone()}},Ne&&v(document,"touchmove",(function(e){(Me.active||ye)&&e.cancelable&&e.preventDefault()})),Me.utils={on:v,off:g,css:C,find:k,is:function(e,t){return!!w(e,t,e,!1)},extend:function(e,t){if(e&&t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e},throttle:j,closest:w,toggleClass:S,clone:M,index:T,nextTick:Ge,cancelNextTick:qe,detectDirection:Te,getChild:I},Me.get=function(e){return e[B]},Me.mount=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t[0].constructor===Array&&(t=t[0]),t.forEach((function(e){if(!e.prototype||!e.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(e));e.utils&&(Me.utils=a({},Me.utils,e.utils)),q.mount(e)}))},Me.create=function(e,t){return new Me(e,t)},Me.version="1.13.0";var We,Ue,$e,Je,Xe,Ye,Ke=[],Ze=!1;function Qe(){Ke.forEach((function(e){clearInterval(e.pid)})),Ke=[]}function et(){clearInterval(Ye)}var tt,nt=j((function(e,t,n,o){if(t.scroll){var r,i=(e.touches?e.touches[0]:e).clientX,a=(e.touches?e.touches[0]:e).clientY,l=t.scrollSensitivity,s=t.scrollSpeed,c=N(),u=!1;Ue!==n&&(Ue=n,Qe(),We=t.scroll,r=t.scrollFn,!0===We&&(We=A(n,!0)));var d=0,m=We;do{var p=m,h=O(p),f=h.top,v=h.bottom,g=h.left,b=h.right,y=h.width,w=h.height,_=void 0,E=void 0,S=p.scrollWidth,x=p.scrollHeight,k=C(p),z=p.scrollLeft,I=p.scrollTop;p===c?(_=y<S&&("auto"===k.overflowX||"scroll"===k.overflowX||"visible"===k.overflowX),E=w<x&&("auto"===k.overflowY||"scroll"===k.overflowY||"visible"===k.overflowY)):(_=y<S&&("auto"===k.overflowX||"scroll"===k.overflowX),E=w<x&&("auto"===k.overflowY||"scroll"===k.overflowY));var D=_&&(Math.abs(b-i)<=l&&z+y<S)-(Math.abs(g-i)<=l&&!!z),T=E&&(Math.abs(v-a)<=l&&I+w<x)-(Math.abs(f-a)<=l&&!!I);if(!Ke[d])for(var R=0;R<=d;R++)Ke[R]||(Ke[R]={});Ke[d].vx==D&&Ke[d].vy==T&&Ke[d].el===p||(Ke[d].el=p,Ke[d].vx=D,Ke[d].vy=T,clearInterval(Ke[d].pid),0==D&&0==T||(u=!0,Ke[d].pid=setInterval(function(){o&&0===this.layer&&Me.active._onTouchMove(Xe);var t=Ke[this.layer].vy?Ke[this.layer].vy*s:0,n=Ke[this.layer].vx?Ke[this.layer].vx*s:0;"function"==typeof r&&"continue"!==r.call(Me.dragged.parentNode[B],n,t,e,Xe,Ke[this.layer].el)||L(Ke[this.layer].el,n,t)}.bind({layer:d}),24))),d++}while(t.bubbleScroll&&m!==c&&(m=A(m,!1)));Ze=u}}),30),ot=function(e){var t=e.originalEvent,n=e.putSortable,o=e.dragEl,r=e.activeSortable,i=e.dispatchSortableEvent,a=e.hideGhostForTarget,l=e.unhideGhostForTarget;if(t){var s=n||r;a();var c=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,u=document.elementFromPoint(c.clientX,c.clientY);l(),s&&!s.el.contains(u)&&(i("spill"),this.onSpill({dragEl:o,putSortable:n}))}};function rt(){}function it(){}function at(){function e(){this.defaults={swapClass:"sortable-swap-highlight"}}return e.prototype={dragStart:function(e){var t=e.dragEl;tt=t},dragOverValid:function(e){var t=e.completed,n=e.target,o=e.onMove,r=e.activeSortable,i=e.changed,a=e.cancel;if(r.options.swap){var l=this.sortable.el,s=this.options;if(n&&n!==l){var c=tt;!1!==o(n)?(S(n,s.swapClass,!0),tt=n):tt=null,c&&c!==tt&&S(c,s.swapClass,!1)}i(),t(!0),a()}},drop:function(e){var t,n,o,r,i,a,l=e.activeSortable,s=e.putSortable,c=e.dragEl,u=s||this.sortable,d=this.options;tt&&S(tt,d.swapClass,!1),tt&&(d.swap||s&&s.options.swap)&&c!==tt&&(u.captureAnimationState(),u!==l&&l.captureAnimationState(),n=tt,i=(t=c).parentNode,a=n.parentNode,i&&a&&!i.isEqualNode(n)&&!a.isEqualNode(t)&&(o=T(t),r=T(n),i.isEqualNode(a)&&o<r&&r++,i.insertBefore(n,i.children[o]),a.insertBefore(t,a.children[r])),u.animateAll(),u!==l&&l.animateAll())},nulling:function(){tt=null}},i(e,{pluginName:"swap",eventProperties:function(){return{swapItem:tt}}})}rt.prototype={startIndex:null,dragStart:function(e){var t=e.oldDraggableIndex;this.startIndex=t},onSpill:function(e){var t=e.dragEl,n=e.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var o=I(this.sortable.el,this.startIndex,this.options);o?this.sortable.el.insertBefore(t,o):this.sortable.el.appendChild(t),this.sortable.animateAll(),n&&n.animateAll()},drop:ot},i(rt,{pluginName:"revertOnSpill"}),it.prototype={onSpill:function(e){var t=e.dragEl,n=e.putSortable||this.sortable;n.captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),n.animateAll()},drop:ot},i(it,{pluginName:"removeOnSpill"});var lt,st,ct,ut,dt,mt=[],pt=[],ht=!1,ft=!1,vt=!1;function gt(){function e(e){for(var t in this)"_"===t.charAt(0)&&"function"==typeof this[t]&&(this[t]=this[t].bind(this));e.options.supportPointer?v(document,"pointerup",this._deselectMultiDrag):(v(document,"mouseup",this._deselectMultiDrag),v(document,"touchend",this._deselectMultiDrag)),v(document,"keydown",this._checkKeyDown),v(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,setData:function(t,n){var o="";mt.length&&st===e?mt.forEach((function(e,t){o+=(t?", ":"")+e.textContent})):o=n.textContent,t.setData("Text",o)}}}return e.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(e){var t=e.dragEl;ct=t},delayEnded:function(){this.isMultiDrag=~mt.indexOf(ct)},setupClone:function(e){var t=e.sortable,n=e.cancel;if(this.isMultiDrag){for(var o=0;o<mt.length;o++)pt.push(M(mt[o])),pt[o].sortableIndex=mt[o].sortableIndex,pt[o].draggable=!1,pt[o].style["will-change"]="",S(pt[o],this.options.selectedClass,!1),mt[o]===ct&&S(pt[o],this.options.chosenClass,!1);t._hideClone(),n()}},clone:function(e){var t=e.sortable,n=e.rootEl,o=e.dispatchSortableEvent,r=e.cancel;this.isMultiDrag&&(this.options.removeCloneOnHide||mt.length&&st===t&&(bt(!0,n),o("clone"),r()))},showClone:function(e){var t=e.cloneNowShown,n=e.rootEl,o=e.cancel;this.isMultiDrag&&(bt(!1,n),pt.forEach((function(e){C(e,"display","")})),t(),dt=!1,o())},hideClone:function(e){var t=this,n=(e.sortable,e.cloneNowHidden),o=e.cancel;this.isMultiDrag&&(pt.forEach((function(e){C(e,"display","none"),t.options.removeCloneOnHide&&e.parentNode&&e.parentNode.removeChild(e)})),n(),dt=!0,o())},dragStartGlobal:function(e){e.sortable,!this.isMultiDrag&&st&&st.multiDrag._deselectMultiDrag(),mt.forEach((function(e){e.sortableIndex=T(e)})),mt=mt.sort((function(e,t){return e.sortableIndex-t.sortableIndex})),vt=!0},dragStarted:function(e){var t=this,n=e.sortable;if(this.isMultiDrag){if(this.options.sort&&(n.captureAnimationState(),this.options.animation)){mt.forEach((function(e){e!==ct&&C(e,"position","absolute")}));var o=O(ct,!1,!0,!0);mt.forEach((function(e){e!==ct&&F(e,o)})),ft=!0,ht=!0}n.animateAll((function(){ft=!1,ht=!1,t.options.animation&&mt.forEach((function(e){V(e)})),t.options.sort&&yt()}))}},dragOver:function(e){var t=e.target,n=e.completed,o=e.cancel;ft&&~mt.indexOf(t)&&(n(!1),o())},revert:function(e){var t=e.fromSortable,n=e.rootEl,o=e.sortable,r=e.dragRect;mt.length>1&&(mt.forEach((function(e){o.addAnimationState({target:e,rect:ft?O(e):r}),V(e),e.fromRect=r,t.removeAnimationState(e)})),ft=!1,function(e,t){mt.forEach((function(n,o){var r=t.children[n.sortableIndex+(e?Number(o):0)];r?t.insertBefore(n,r):t.appendChild(n)}))}(!this.options.removeCloneOnHide,n))},dragOverCompleted:function(e){var t=e.sortable,n=e.isOwner,o=e.insertion,r=e.activeSortable,i=e.parentEl,a=e.putSortable,l=this.options;if(o){if(n&&r._hideClone(),ht=!1,l.animation&&mt.length>1&&(ft||!n&&!r.options.sort&&!a)){var s=O(ct,!1,!0,!0);mt.forEach((function(e){e!==ct&&(F(e,s),i.appendChild(e))})),ft=!0}if(!n)if(ft||yt(),mt.length>1){var c=dt;r._showClone(t),r.options.animation&&!dt&&c&&pt.forEach((function(e){r.addAnimationState({target:e,rect:ut}),e.fromRect=ut,e.thisAnimationDuration=null}))}else r._showClone(t)}},dragOverAnimationCapture:function(e){var t=e.dragRect,n=e.isOwner,o=e.activeSortable;if(mt.forEach((function(e){e.thisAnimationDuration=null})),o.options.animation&&!n&&o.multiDrag.isMultiDrag){ut=i({},t);var r=x(ct,!0);ut.top-=r.f,ut.left-=r.e}},dragOverAnimationComplete:function(){ft&&(ft=!1,yt())},drop:function(e){var t=e.originalEvent,n=e.rootEl,o=e.parentEl,r=e.sortable,i=e.dispatchSortableEvent,a=e.oldIndex,l=e.putSortable,s=l||this.sortable;if(t){var c=this.options,u=o.children;if(!vt)if(c.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),S(ct,c.selectedClass,!~mt.indexOf(ct)),~mt.indexOf(ct))mt.splice(mt.indexOf(ct),1),lt=null,W({sortable:r,rootEl:n,name:"deselect",targetEl:ct,originalEvt:t});else{if(mt.push(ct),W({sortable:r,rootEl:n,name:"select",targetEl:ct,originalEvt:t}),t.shiftKey&<&&r.el.contains(lt)){var d,m,p=T(lt),h=T(ct);if(~p&&~h&&p!==h)for(h>p?(m=p,d=h):(m=h,d=p+1);m<d;m++)~mt.indexOf(u[m])||(S(u[m],c.selectedClass,!0),mt.push(u[m]),W({sortable:r,rootEl:n,name:"select",targetEl:u[m],originalEvt:t}))}else lt=ct;st=s}if(vt&&this.isMultiDrag){if((o[B].options.sort||o!==n)&&mt.length>1){var f=O(ct),v=T(ct,":not(."+this.options.selectedClass+")");if(!ht&&c.animation&&(ct.thisAnimationDuration=null),s.captureAnimationState(),!ht&&(c.animation&&(ct.fromRect=f,mt.forEach((function(e){if(e.thisAnimationDuration=null,e!==ct){var t=ft?O(e):f;e.fromRect=t,s.addAnimationState({target:e,rect:t})}}))),yt(),mt.forEach((function(e){u[v]?o.insertBefore(e,u[v]):o.appendChild(e),v++})),a===T(ct))){var g=!1;mt.forEach((function(e){e.sortableIndex===T(e)||(g=!0)})),g&&i("update")}mt.forEach((function(e){V(e)})),s.animateAll()}st=s}(n===o||l&&"clone"!==l.lastPutMode)&&pt.forEach((function(e){e.parentNode&&e.parentNode.removeChild(e)}))}},nullingGlobal:function(){this.isMultiDrag=vt=!1,pt.length=0},destroyGlobal:function(){this._deselectMultiDrag(),g(document,"pointerup",this._deselectMultiDrag),g(document,"mouseup",this._deselectMultiDrag),g(document,"touchend",this._deselectMultiDrag),g(document,"keydown",this._checkKeyDown),g(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(e){if(!(void 0!==vt&&vt||st!==this.sortable||e&&w(e.target,this.options.draggable,this.sortable.el,!1)||e&&0!==e.button))for(;mt.length;){var t=mt[0];S(t,this.options.selectedClass,!1),mt.shift(),W({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:t,originalEvt:e})}},_checkKeyDown:function(e){e.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(e){e.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},i(e,{pluginName:"multiDrag",utils:{select:function(e){var t=e.parentNode[B];t&&t.options.multiDrag&&!~mt.indexOf(e)&&(st&&st!==t&&(st.multiDrag._deselectMultiDrag(),st=t),S(e,t.options.selectedClass,!0),mt.push(e))},deselect:function(e){var t=e.parentNode[B],n=mt.indexOf(e);t&&t.options.multiDrag&&~n&&(S(e,t.options.selectedClass,!1),mt.splice(n,1))}},eventProperties:function(){var e,t=this,n=[],o=[];return mt.forEach((function(e){var r;n.push({multiDragElement:e,index:e.sortableIndex}),r=ft&&e!==ct?-1:ft?T(e,":not(."+t.options.selectedClass+")"):T(e),o.push({multiDragElement:e,index:r})})),{items:(e=mt,function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()),clones:[].concat(pt),oldIndicies:n,newIndicies:o}},optionListeners:{multiDragKey:function(e){return"ctrl"===(e=e.toLowerCase())?e="Control":e.length>1&&(e=e.charAt(0).toUpperCase()+e.substr(1)),e}}})}function bt(e,t){pt.forEach((function(n,o){var r=t.children[n.sortableIndex+(e?Number(o):0)];r?t.insertBefore(n,r):t.appendChild(n)}))}function yt(){mt.forEach((function(e){e!==ct&&e.parentNode&&e.parentNode.removeChild(e)}))}Me.mount(new function(){function e(){for(var e in this.defaults={scroll:!0,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)"_"===e.charAt(0)&&"function"==typeof this[e]&&(this[e]=this[e].bind(this))}return e.prototype={dragStarted:function(e){var t=e.originalEvent;this.sortable.nativeDraggable?v(document,"dragover",this._handleAutoScroll):this.options.supportPointer?v(document,"pointermove",this._handleFallbackAutoScroll):t.touches?v(document,"touchmove",this._handleFallbackAutoScroll):v(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(e){var t=e.originalEvent;this.options.dragOverBubble||t.rootEl||this._handleAutoScroll(t)},drop:function(){this.sortable.nativeDraggable?g(document,"dragover",this._handleAutoScroll):(g(document,"pointermove",this._handleFallbackAutoScroll),g(document,"touchmove",this._handleFallbackAutoScroll),g(document,"mousemove",this._handleFallbackAutoScroll)),et(),Qe(),clearTimeout(_),_=void 0},nulling:function(){Xe=Ue=We=Ze=Ye=$e=Je=null,Ke.length=0},_handleFallbackAutoScroll:function(e){this._handleAutoScroll(e,!0)},_handleAutoScroll:function(e,t){var n=this,o=(e.touches?e.touches[0]:e).clientX,r=(e.touches?e.touches[0]:e).clientY,i=document.elementFromPoint(o,r);if(Xe=e,t||u||c||m){nt(e,this.options,i,t);var a=A(i,!0);!Ze||Ye&&o===$e&&r===Je||(Ye&&et(),Ye=setInterval((function(){var i=A(document.elementFromPoint(o,r),!0);i!==a&&(a=i,Qe()),nt(e,n.options,i,t)}),10),$e=o,Je=r)}else{if(!this.options.bubbleScroll||A(i,!0)===N())return void Qe();nt(e,this.options,A(i,!1),!1)}}},i(e,{pluginName:"scroll",initializeByDefault:!0})}),Me.mount(it,rt);const wt=Me},177:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});const o=function(e,t){if(!e)throw new Error("Invariant failed")}},926:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});const o=(0,n(307).createContext)({})},196:e=>{"use strict";e.exports=window.React},850:e=>{"use strict";e.exports=window.ReactDOM},609:e=>{"use strict";e.exports=window.wp.components},307:e=>{"use strict";e.exports=window.wp.element},736:e=>{"use strict";e.exports=window.wp.i18n},444:e=>{"use strict";e.exports=window.wp.primitives}},r={};function i(e){var t=r[e];if(void 0!==t)return t.exports;var n=r[e]={exports:{}};return o[e].call(n.exports,n,n.exports,i),n.exports}i.m=o,e=[],i.O=(t,n,o,r)=>{if(!n){var a=1/0;for(u=0;u<e.length;u++){n=e[u][0],o=e[u][1],r=e[u][2];for(var l=!0,s=0;s<n.length;s++)(!1&r||a>=r)&&Object.keys(i.O).every((e=>i.O[e](n[s])))?n.splice(s--,1):(l=!1,r<a&&(a=r));if(l){e.splice(u--,1);var c=o();void 0!==c&&(t=c)}}return t}r=r||0;for(var u=e.length;u>0&&e[u-1][2]>r;u--)e[u]=e[u-1];e[u]=[n,o,r]},i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.f={},i.e=e=>Promise.all(Object.keys(i.f).reduce(((t,n)=>(i.f[n](e,t),t)),[])),i.u=e=>557===e?"a6f7963c7815fc4d9859.js":637===e?"f00c3ef10f4f3cd20437.js":568===e?"ca15adfa622d3d918edc.js":841===e?"7dfa03d13b56aa1f7030.js":403===e?"585056780d73ab9a0975.js":63===e?"d5364615d9e73d44cc26.js":void 0,i.miniCssF=e=>({470:"style-controls",960:"controls"}[e]+".css"),i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),t={},n="neve:",i.l=(e,o,r,a)=>{if(t[e])t[e].push(o);else{var l,s;if(void 0!==r)for(var c=document.getElementsByTagName("script"),u=0;u<c.length;u++){var d=c[u];if(d.getAttribute("src")==e||d.getAttribute("data-webpack")==n+r){l=d;break}}l||(s=!0,(l=document.createElement("script")).charset="utf-8",l.timeout=120,i.nc&&l.setAttribute("nonce",i.nc),l.setAttribute("data-webpack",n+r),l.src=e),t[e]=[o];var m=(n,o)=>{l.onerror=l.onload=null,clearTimeout(p);var r=t[e];if(delete t[e],l.parentNode&&l.parentNode.removeChild(l),r&&r.forEach((e=>e(o))),n)return n(o)},p=setTimeout(m.bind(null,void 0,{type:"timeout",target:l}),12e4);l.onerror=m.bind(null,l.onerror),l.onload=m.bind(null,l.onload),s&&document.head.appendChild(l)}},i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;i.g.importScripts&&(e=i.g.location+"");var t=i.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");n.length&&(e=n[n.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),i.p=e})(),(()=>{var e={960:0,470:0};i.f.j=(t,n)=>{var o=i.o(e,t)?e[t]:void 0;if(0!==o)if(o)n.push(o[2]);else if(470!=t){var r=new Promise(((n,r)=>o=e[t]=[n,r]));n.push(o[2]=r);var a=i.p+i.u(t),l=new Error;i.l(a,(n=>{if(i.o(e,t)&&(0!==(o=e[t])&&(e[t]=void 0),o)){var r=n&&("load"===n.type?"missing":n.type),a=n&&n.target&&n.target.src;l.message="Loading chunk "+t+" failed.\n("+r+": "+a+")",l.name="ChunkLoadError",l.type=r,l.request=a,o[1](l)}}),"chunk-"+t,t)}else e[t]=0},i.O.j=t=>0===e[t];var t=(t,n)=>{var o,r,a=n[0],l=n[1],s=n[2],c=0;if(a.some((t=>0!==e[t]))){for(o in l)i.o(l,o)&&(i.m[o]=l[o]);if(s)var u=s(i)}for(t&&t(n);c<a.length;c++)r=a[c],i.o(e,r)&&e[r]&&e[r][0](),e[a[c]]=0;return i.O(u)},n=self.webpackChunkneve=self.webpackChunkneve||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})();var a=i.O(void 0,[470],(()=>i(241)));a=i.O(a)})();