(()=>{var e,t={2247:(e,t,o)=>{"use strict";const n=window.React;var a=o.n(n);const i=window.wp.i18n,r=window.wp.blocks,l=window.wp.blockEditor,d=window.kadence.icons;var c=o(2485),s=o.n(c);const p=window.lodash,g=window.wp.data,b=window.wp.components,u=window.wp.coreData,v=window.wp.element,k=window.wp.apiFetch;var _=o.n(k);function m(e,t="post"){const[o,n]=(0,v.useState)(!1),{receiveEntityRecords:a}=(0,g.useDispatch)(u.store);return[o,async()=>{n(!0);try{const o=await _()({method:"POST",path:`/wp/v2/${e}/auto-draft`,data:{post_type:t}});a("postType",o.type,[o]);const i=o.id;try{const t=await _()({method:"POST",path:`/wp/v2/${e}/${i}`,data:{status:"publish"}});return a("postType",t.type,[t]),t}finally{n(!1)}}finally{n(!1)}}]}const h=window.wp.primitives,y=(0,v.createElement)(h.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,v.createElement)(h.Path,{d:"M6 5V18.5911L12 13.8473L18 18.5911V5H6Z"}));function f({onSelect:e,isSelecting:t,onAdd:o,onAddOtherType:a,isAdding:r,postType:l="post",label:d=(0,i.__)("Post"),instructions:c=(0,i.__)("Select an existing navigation or create a new one.","kadence-blocks"),placeholder:s=(0,i.__)("Select Navigation","kadence-blocks")}){const[p,u]=(0,v.useState)(0),{posts:k,menus:_}=(0,g.useSelect)((e=>({posts:e("core").getEntityRecords("postType",l,{per_page:-1,orderby:"title",order:"asc"}),menus:e("core").getEntityRecords("taxonomy","nav_menu",{order:"asc",orderby:"name",per_page:50})})),[l]),m=[...(k||[]).map((e=>({label:w(e.title.raw),value:e.id,type:"kadence_navigation"})))],h=[...(_||[]).map((e=>({label:w(e.name),value:e.id,type:"nav_menu"})))],f=[...m,...h],T=[{label:(0,i.__)("Kadence Navigations","kadence-blocks"),options:m},{label:(0,i.__)("Import WordPress Menu","kadence-blocks"),options:h}].map(((e,t)=>(0,n.createElement)(n.Fragment,null,e.options?.length&&(0,n.createElement)("optgroup",{label:e.label},e.options.map((e=>(0,n.createElement)("option",{value:e.value},e.label))))))),M=f.find((e=>e.value==p));return M&&(M.id=M.value),"undefined"==typeof pagenow||"widgets"!==pagenow&&"customize"!==pagenow?(0,n.createElement)(b.Placeholder,{className:"kb-select-or-create-placeholder",icon:y,label:d,instructions:c},(0,n.createElement)("form",{className:"kb-select-or-create-placeholder__actions"},(0,n.createElement)(b.SelectControl,{label:d,value:p,onChange:u,hideLabelFromVision:!0},(0,n.createElement)("option",{value:"0",disabled:!0},(0,i.__)("Make selection…","kadence-blocks")),T),(0,n.createElement)(b.Button,{style:{marginTop:"20px",marginRight:"10px"},variant:"primary",type:"submit",disabled:!p||r,isBusy:t,onClick:()=>{"kadence_navigation"===M?.type?e(Number.parseInt(M?.id)):a(M)}},"nav_menu"===M?.type?(0,i.__)("Import","kadence-blocks"):(0,i.__)("Select","kadence-blocks")," "),(0,n.createElement)(b.Button,{variant:"secondary",onClick:o,disabled:t,isBusy:r},(0,i.__)("Create New","kadence-blocks")))):(m.unshift({label:s,value:""}),(0,n.createElement)(b.Placeholder,{className:"kb-select-or-create-placeholder",icon:y,label:d,instructions:c},(0,n.createElement)("form",{className:"kb-select-or-create-placeholder__actions"},(0,n.createElement)(b.SelectControl,{label:d,hideLabelFromVision:!0,options:m,onChange:u,value:p}),(0,n.createElement)(b.Button,{variant:"primary",type:"submit",disabled:!p||r,isBusy:t,onClick:()=>e(Number.parseInt(p))},(0,i.__)("Select","kadence-blocks")))))}function w(e){const t=(e=e||"").replace(/<!--[\s\S]*?(-->|$)/g,"").replace(/<(script|style)[^>]*>[\s\S]*?(<\/\1>|$)/gi,"").replace(/<\/?[a-z][\s\S]*?(>|$)/gi,"");return t!==e?w(t):t}const T=window.kadence.components,M=(0,v.createElement)(h.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,v.createElement)(h.Path,{d:"M18 11.2h-5.2V6h-1.6v5.2H6v1.6h5.2V18h1.6v-5.2H18z"})),C=["kadence/column","kadence/rowlayout"],S=(0,v.createElement)(h.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,v.createElement)(h.Path,{d:"M11 13h2v-2h-2v2zm-6 0h2v-2H5v2zm12-2v2h2v-2h-2z"})),A=(0,v.createElement)(h.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,v.createElement)(h.Path,{d:"m19 7-3-3-8.5 8.5-1 4 4-1L19 7Zm-7 11.5H5V20h7v-1.5Z"})),D=(0,v.createElement)(h.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,v.createElement)(h.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"})),x=window.ReactDOM,H="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function E(e){const t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function B(e){return"nodeType"in e}function z(e){var t,o;return e?E(e)?e:B(e)&&null!=(t=null==(o=e.ownerDocument)?void 0:o.defaultView)?t:window:window}function R(e){const{Document:t}=z(e);return e instanceof t}function I(e){return!E(e)&&e instanceof z(e).HTMLElement}function P(e){return e instanceof z(e).SVGElement}function L(e){return e?E(e)?e.document:B(e)?R(e)?e:I(e)||P(e)?e.ownerDocument:document:document:document}const N=H?n.useLayoutEffect:n.useEffect;function F(e){const t=(0,n.useRef)(e);return N((()=>{t.current=e})),(0,n.useCallback)((function(){for(var e=arguments.length,o=new Array(e),n=0;n<e;n++)o[n]=arguments[n];return null==t.current?void 0:t.current(...o)}),[])}function O(e,t){void 0===t&&(t=[e]);const o=(0,n.useRef)(e);return N((()=>{o.current!==e&&(o.current=e)}),t),o}function U(e,t){const o=(0,n.useRef)();return(0,n.useMemo)((()=>{const t=e(o.current);return o.current=t,t}),[...t])}function V(e){const t=F(e),o=(0,n.useRef)(null),a=(0,n.useCallback)((e=>{e!==o.current&&(null==t||t(e,o.current)),o.current=e}),[]);return[o,a]}function G(e){const t=(0,n.useRef)();return(0,n.useEffect)((()=>{t.current=e}),[e]),t.current}let W={};function q(e,t){return(0,n.useMemo)((()=>{if(t)return t;const o=null==W[e]?0:W[e]+1;return W[e]=o,e+"-"+o}),[e,t])}function K(e){return function(t){for(var o=arguments.length,n=new Array(o>1?o-1:0),a=1;a<o;a++)n[a-1]=arguments[a];return n.reduce(((t,o)=>{const n=Object.entries(o);for(const[o,a]of n){const n=t[o];null!=n&&(t[o]=n+e*a)}return t}),{...t})}}const $=K(1),j=K(-1);function X(e){if(!e)return!1;const{KeyboardEvent:t}=z(e.target);return t&&e instanceof t}function Y(e){if(function(e){if(!e)return!1;const{TouchEvent:t}=z(e.target);return t&&e instanceof t}(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:o}=e.touches[0];return{x:t,y:o}}if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:o}=e.changedTouches[0];return{x:t,y:o}}}return function(e){return"clientX"in e&&"clientY"in e}(e)?{x:e.clientX,y:e.clientY}:null}const Z=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:o}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(o?Math.round(o):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:o}=e;return"scaleX("+t+") scaleY("+o+")"}},Transform:{toString(e){if(e)return[Z.Translate.toString(e),Z.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:o,easing:n}=e;return t+" "+o+"ms "+n}}}),J="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function Q(e){return e.matches(J)?e:e.querySelector(J)}const ee={display:"none"};function te(e){let{id:t,value:o}=e;return a().createElement("div",{id:t,style:ee},o)}function oe(e){let{id:t,announcement:o,ariaLiveType:n="assertive"}=e;return a().createElement("div",{id:t,style:{position:"fixed",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"},role:"status","aria-live":n,"aria-atomic":!0},o)}const ne=(0,n.createContext)(null),ae={draggable:"\n To pick up a draggable item, press the space bar.\n While dragging, use the arrow keys to move the item.\n Press space again to drop the item in its new position, or press escape to cancel.\n "},ie={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:o}=e;return o?"Draggable item "+t.id+" was moved over droppable area "+o.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:o}=e;return o?"Draggable item "+t.id+" was dropped over droppable area "+o.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function re(e){let{announcements:t=ie,container:o,hiddenTextDescribedById:i,screenReaderInstructions:r=ae}=e;const{announce:l,announcement:d}=function(){const[e,t]=(0,n.useState)("");return{announce:(0,n.useCallback)((e=>{null!=e&&t(e)}),[]),announcement:e}}(),c=q("DndLiveRegion"),[s,p]=(0,n.useState)(!1);if((0,n.useEffect)((()=>{p(!0)}),[]),function(e){const t=(0,n.useContext)(ne);(0,n.useEffect)((()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)}),[e,t])}((0,n.useMemo)((()=>({onDragStart(e){let{active:o}=e;l(t.onDragStart({active:o}))},onDragMove(e){let{active:o,over:n}=e;t.onDragMove&&l(t.onDragMove({active:o,over:n}))},onDragOver(e){let{active:o,over:n}=e;l(t.onDragOver({active:o,over:n}))},onDragEnd(e){let{active:o,over:n}=e;l(t.onDragEnd({active:o,over:n}))},onDragCancel(e){let{active:o,over:n}=e;l(t.onDragCancel({active:o,over:n}))}})),[l,t])),!s)return null;const g=a().createElement(a().Fragment,null,a().createElement(te,{id:i,value:r.draggable}),a().createElement(oe,{id:c,announcement:d}));return o?(0,x.createPortal)(g,o):g}var le;function de(){}!function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"}(le||(le={}));const ce=Object.freeze({x:0,y:0});function se(e,t){const o=Y(e);return o?(o.x-t.left)/t.width*100+"% "+(o.y-t.top)/t.height*100+"%":"0 0"}function pe(e,t){let{data:{value:o}}=e,{data:{value:n}}=t;return n-o}function ge(e,t){const o=Math.max(t.top,e.top),n=Math.max(t.left,e.left),a=Math.min(t.left+t.width,e.left+e.width),i=Math.min(t.top+t.height,e.top+e.height),r=a-n,l=i-o;if(n<a&&o<i){const o=t.width*t.height,n=e.width*e.height,a=r*l;return Number((a/(o+n-a)).toFixed(4))}return 0}const be=e=>{let{collisionRect:t,droppableRects:o,droppableContainers:n}=e;const a=[];for(const e of n){const{id:n}=e,i=o.get(n);if(i){const o=ge(i,t);o>0&&a.push({id:n,data:{droppableContainer:e,value:o}})}}return a.sort(pe)};function ue(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:ce}function ve(e){return function(t){for(var o=arguments.length,n=new Array(o>1?o-1:0),a=1;a<o;a++)n[a-1]=arguments[a];return n.reduce(((t,o)=>({...t,top:t.top+e*o.y,bottom:t.bottom+e*o.y,left:t.left+e*o.x,right:t.right+e*o.x})),{...t})}}const ke=ve(1);function _e(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}const me={ignoreTransform:!1};function he(e,t){void 0===t&&(t=me);let o=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:t,transformOrigin:n}=z(e).getComputedStyle(e);t&&(o=function(e,t,o){const n=_e(t);if(!n)return e;const{scaleX:a,scaleY:i,x:r,y:l}=n,d=e.left-r-(1-a)*parseFloat(o),c=e.top-l-(1-i)*parseFloat(o.slice(o.indexOf(" ")+1)),s=a?e.width/a:e.width,p=i?e.height/i:e.height;return{width:s,height:p,top:c,right:d+s,bottom:c+p,left:d}}(o,t,n))}const{top:n,left:a,width:i,height:r,bottom:l,right:d}=o;return{top:n,left:a,width:i,height:r,bottom:l,right:d}}function ye(e){return he(e,{ignoreTransform:!0})}function fe(e,t){const o=[];return e?function n(a){if(null!=t&&o.length>=t)return o;if(!a)return o;if(R(a)&&null!=a.scrollingElement&&!o.includes(a.scrollingElement))return o.push(a.scrollingElement),o;if(!I(a)||P(a))return o;if(o.includes(a))return o;const i=z(e).getComputedStyle(a);return a!==e&&function(e,t){void 0===t&&(t=z(e).getComputedStyle(e));const o=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some((e=>{const n=t[e];return"string"==typeof n&&o.test(n)}))}(a,i)&&o.push(a),function(e,t){return void 0===t&&(t=z(e).getComputedStyle(e)),"fixed"===t.position}(a,i)?o:n(a.parentNode)}(e):o}function we(e){const[t]=fe(e,1);return null!=t?t:null}function Te(e){return H&&e?E(e)?e:B(e)?R(e)||e===L(e).scrollingElement?window:I(e)?e:null:null:null}function Me(e){return E(e)?e.scrollX:e.scrollLeft}function Ce(e){return E(e)?e.scrollY:e.scrollTop}function Se(e){return{x:Me(e),y:Ce(e)}}var Ae;function De(e){return!(!H||!e)&&e===document.scrollingElement}function xe(e){const t={x:0,y:0},o=De(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},n={x:e.scrollWidth-o.width,y:e.scrollHeight-o.height};return{isTop:e.scrollTop<=t.y,isLeft:e.scrollLeft<=t.x,isBottom:e.scrollTop>=n.y,isRight:e.scrollLeft>=n.x,maxScroll:n,minScroll:t}}!function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"}(Ae||(Ae={}));const He={x:.2,y:.2};function Ee(e,t,o,n,a){let{top:i,left:r,right:l,bottom:d}=o;void 0===n&&(n=10),void 0===a&&(a=He);const{isTop:c,isBottom:s,isLeft:p,isRight:g}=xe(e),b={x:0,y:0},u={x:0,y:0},v=t.height*a.y,k=t.width*a.x;return!c&&i<=t.top+v?(b.y=Ae.Backward,u.y=n*Math.abs((t.top+v-i)/v)):!s&&d>=t.bottom-v&&(b.y=Ae.Forward,u.y=n*Math.abs((t.bottom-v-d)/v)),!g&&l>=t.right-k?(b.x=Ae.Forward,u.x=n*Math.abs((t.right-k-l)/k)):!p&&r<=t.left+k&&(b.x=Ae.Backward,u.x=n*Math.abs((t.left+k-r)/k)),{direction:b,speed:u}}function Be(e){if(e===document.scrollingElement){const{innerWidth:e,innerHeight:t}=window;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}const{top:t,left:o,right:n,bottom:a}=e.getBoundingClientRect();return{top:t,left:o,right:n,bottom:a,width:e.clientWidth,height:e.clientHeight}}function ze(e){return e.reduce(((e,t)=>$(e,Se(t))),ce)}function Re(e,t){if(void 0===t&&(t=he),!e)return;const{top:o,left:n,bottom:a,right:i}=t(e);we(e)&&(a<=0||i<=0||o>=window.innerHeight||n>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const Ie=[["x",["left","right"],function(e){return e.reduce(((e,t)=>e+Me(t)),0)}],["y",["top","bottom"],function(e){return e.reduce(((e,t)=>e+Ce(t)),0)}]];class Pe{constructor(e,t){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const o=fe(t),n=ze(o);this.rect={...e},this.width=e.width,this.height=e.height;for(const[e,t,a]of Ie)for(const i of t)Object.defineProperty(this,i,{get:()=>{const t=a(o),r=n[e]-t;return this.rect[i]+r},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class Le{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach((e=>{var t;return null==(t=this.target)?void 0:t.removeEventListener(...e)}))},this.target=e}add(e,t,o){var n;null==(n=this.target)||n.addEventListener(e,t,o),this.listeners.push([e,t,o])}}function Ne(e,t){const o=Math.abs(e.x),n=Math.abs(e.y);return"number"==typeof t?Math.sqrt(o**2+n**2)>t:"x"in t&&"y"in t?o>t.x&&n>t.y:"x"in t?o>t.x:"y"in t&&n>t.y}var Fe,Oe,Ue;function Ve(e){e.preventDefault()}function Ge(e){e.stopPropagation()}!function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"}(Fe||(Fe={})),(Ue=Oe||(Oe={})).Space="Space",Ue.Down="ArrowDown",Ue.Right="ArrowRight",Ue.Left="ArrowLeft",Ue.Up="ArrowUp",Ue.Esc="Escape",Ue.Enter="Enter";const We={start:[Oe.Space,Oe.Enter],cancel:[Oe.Esc],end:[Oe.Space,Oe.Enter]},qe=(e,t)=>{let{currentCoordinates:o}=t;switch(e.code){case Oe.Right:return{...o,x:o.x+25};case Oe.Left:return{...o,x:o.x-25};case Oe.Down:return{...o,y:o.y+25};case Oe.Up:return{...o,y:o.y-25}}};class Ke{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;const{event:{target:t}}=e;this.props=e,this.listeners=new Le(L(t)),this.windowListeners=new Le(z(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(Fe.Resize,this.handleCancel),this.windowListeners.add(Fe.VisibilityChange,this.handleCancel),setTimeout((()=>this.listeners.add(Fe.Keydown,this.handleKeyDown)))}handleStart(){const{activeNode:e,onStart:t}=this.props,o=e.node.current;o&&Re(o),t(ce)}handleKeyDown(e){if(X(e)){const{active:t,context:o,options:n}=this.props,{keyboardCodes:a=We,coordinateGetter:i=qe,scrollBehavior:r="smooth"}=n,{code:l}=e;if(a.end.includes(l))return void this.handleEnd(e);if(a.cancel.includes(l))return void this.handleCancel(e);const{collisionRect:d}=o.current,c=d?{x:d.left,y:d.top}:ce;this.referenceCoordinates||(this.referenceCoordinates=c);const s=i(e,{active:t,context:o.current,currentCoordinates:c});if(s){const t=j(s,c),n={x:0,y:0},{scrollableAncestors:a}=o.current;for(const o of a){const a=e.code,{isTop:i,isRight:l,isLeft:d,isBottom:c,maxScroll:p,minScroll:g}=xe(o),b=Be(o),u={x:Math.min(a===Oe.Right?b.right-b.width/2:b.right,Math.max(a===Oe.Right?b.left:b.left+b.width/2,s.x)),y:Math.min(a===Oe.Down?b.bottom-b.height/2:b.bottom,Math.max(a===Oe.Down?b.top:b.top+b.height/2,s.y))},v=a===Oe.Right&&!l||a===Oe.Left&&!d,k=a===Oe.Down&&!c||a===Oe.Up&&!i;if(v&&u.x!==s.x){const e=o.scrollLeft+t.x,i=a===Oe.Right&&e<=p.x||a===Oe.Left&&e>=g.x;if(i&&!t.y)return void o.scrollTo({left:e,behavior:r});n.x=i?o.scrollLeft-e:a===Oe.Right?o.scrollLeft-p.x:o.scrollLeft-g.x,n.x&&o.scrollBy({left:-n.x,behavior:r});break}if(k&&u.y!==s.y){const e=o.scrollTop+t.y,i=a===Oe.Down&&e<=p.y||a===Oe.Up&&e>=g.y;if(i&&!t.x)return void o.scrollTo({top:e,behavior:r});n.y=i?o.scrollTop-e:a===Oe.Down?o.scrollTop-p.y:o.scrollTop-g.y,n.y&&o.scrollBy({top:-n.y,behavior:r});break}}this.handleMove(e,$(j(s,this.referenceCoordinates),n))}}}handleMove(e,t){const{onMove:o}=this.props;e.preventDefault(),o(t)}handleEnd(e){const{onEnd:t}=this.props;e.preventDefault(),this.detach(),t()}handleCancel(e){const{onCancel:t}=this.props;e.preventDefault(),this.detach(),t()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}function $e(e){return Boolean(e&&"distance"in e)}function je(e){return Boolean(e&&"delay"in e)}Ke.activators=[{eventName:"onKeyDown",handler:(e,t,o)=>{let{keyboardCodes:n=We,onActivation:a}=t,{active:i}=o;const{code:r}=e.nativeEvent;if(n.start.includes(r)){const t=i.activatorNode.current;return!(t&&e.target!==t||(e.preventDefault(),null==a||a({event:e.nativeEvent}),0))}return!1}}];class Xe{constructor(e,t,o){var n;void 0===o&&(o=function(e){const{EventTarget:t}=z(e);return e instanceof t?e:L(e)}(e.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=e,this.events=t;const{event:a}=e,{target:i}=a;this.props=e,this.events=t,this.document=L(i),this.documentListeners=new Le(this.document),this.listeners=new Le(o),this.windowListeners=new Le(z(i)),this.initialCoordinates=null!=(n=Y(a))?n:ce,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:e,props:{options:{activationConstraint:t,bypassActivationConstraint:o}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),this.windowListeners.add(Fe.Resize,this.handleCancel),this.windowListeners.add(Fe.DragStart,Ve),this.windowListeners.add(Fe.VisibilityChange,this.handleCancel),this.windowListeners.add(Fe.ContextMenu,Ve),this.documentListeners.add(Fe.Keydown,this.handleKeydown),t){if(null!=o&&o({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(je(t))return void(this.timeoutId=setTimeout(this.handleStart,t.delay));if($e(t))return}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),null!==this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handleStart(){const{initialCoordinates:e}=this,{onStart:t}=this.props;e&&(this.activated=!0,this.documentListeners.add(Fe.Click,Ge,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(Fe.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){var t;const{activated:o,initialCoordinates:n,props:a}=this,{onMove:i,options:{activationConstraint:r}}=a;if(!n)return;const l=null!=(t=Y(e))?t:ce,d=j(n,l);if(!o&&r){if($e(r)){if(null!=r.tolerance&&Ne(d,r.tolerance))return this.handleCancel();if(Ne(d,r.distance))return this.handleStart()}return je(r)&&Ne(d,r.tolerance)?this.handleCancel():void 0}e.cancelable&&e.preventDefault(),i(l)}handleEnd(){const{onEnd:e}=this.props;this.detach(),e()}handleCancel(){const{onCancel:e}=this.props;this.detach(),e()}handleKeydown(e){e.code===Oe.Esc&&this.handleCancel()}removeTextSelection(){var e;null==(e=this.document.getSelection())||e.removeAllRanges()}}const Ye={move:{name:"pointermove"},end:{name:"pointerup"}};class Ze extends Xe{constructor(e){const{event:t}=e,o=L(t.target);super(e,Ye,o)}}Ze.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:o}=e,{onActivation:n}=t;return!(!o.isPrimary||0!==o.button||(null==n||n({event:o}),0))}}];const Je={move:{name:"mousemove"},end:{name:"mouseup"}};var Qe;!function(e){e[e.RightClick=2]="RightClick"}(Qe||(Qe={})),class extends Xe{constructor(e){super(e,Je,L(e.event.target))}}.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:o}=e,{onActivation:n}=t;return o.button!==Qe.RightClick&&(null==n||n({event:o}),!0)}}];const et={move:{name:"touchmove"},end:{name:"touchend"}};var tt,ot;(class extends Xe{constructor(e){super(e,et)}static setup(){return window.addEventListener(et.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(et.move.name,e)};function e(){}}}).activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:o}=e,{onActivation:n}=t;const{touches:a}=o;return!(a.length>1||(null==n||n({event:o}),0))}}],function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"}(tt||(tt={})),function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"}(ot||(ot={}));const nt={x:{[Ae.Backward]:!1,[Ae.Forward]:!1},y:{[Ae.Backward]:!1,[Ae.Forward]:!1}};var at,it;!function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"}(at||(at={})),function(e){e.Optimized="optimized"}(it||(it={}));const rt=new Map;function lt(e,t){return U((o=>e?o||("function"==typeof t?t(e):e):null),[t,e])}function dt(e){let{callback:t,disabled:o}=e;const a=F(t),i=(0,n.useMemo)((()=>{if(o||"undefined"==typeof window||void 0===window.ResizeObserver)return;const{ResizeObserver:e}=window;return new e(a)}),[o]);return(0,n.useEffect)((()=>()=>null==i?void 0:i.disconnect()),[i]),i}function ct(e){return new Pe(he(e),e)}function st(e,t,o){void 0===t&&(t=ct);const[a,i]=(0,n.useReducer)((function(n){if(!e)return null;var a;if(!1===e.isConnected)return null!=(a=null!=n?n:o)?a:null;const i=t(e);return JSON.stringify(n)===JSON.stringify(i)?n:i}),null),r=function(e){let{callback:t,disabled:o}=e;const a=F(t),i=(0,n.useMemo)((()=>{if(o||"undefined"==typeof window||void 0===window.MutationObserver)return;const{MutationObserver:e}=window;return new e(a)}),[a,o]);return(0,n.useEffect)((()=>()=>null==i?void 0:i.disconnect()),[i]),i}({callback(t){if(e)for(const o of t){const{type:t,target:n}=o;if("childList"===t&&n instanceof HTMLElement&&n.contains(e)){i();break}}}}),l=dt({callback:i});return N((()=>{i(),e?(null==l||l.observe(e),null==r||r.observe(document.body,{childList:!0,subtree:!0})):(null==l||l.disconnect(),null==r||r.disconnect())}),[e]),a}const pt=[];function gt(e,t){void 0===t&&(t=[]);const o=(0,n.useRef)(null);return(0,n.useEffect)((()=>{o.current=null}),t),(0,n.useEffect)((()=>{const t=e!==ce;t&&!o.current&&(o.current=e),!t&&o.current&&(o.current=null)}),[e]),o.current?j(e,o.current):ce}function bt(e){return(0,n.useMemo)((()=>e?function(e){const t=e.innerWidth,o=e.innerHeight;return{top:0,left:0,right:t,bottom:o,width:t,height:o}}(e):null),[e])}const ut=[];function vt(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return I(t)?t:e}const kt=[{sensor:Ze,options:{}},{sensor:Ke,options:{}}],_t={current:{}},mt={draggable:{measure:ye},droppable:{measure:ye,strategy:at.WhileDragging,frequency:it.Optimized},dragOverlay:{measure:he}};class ht extends Map{get(e){var t;return null!=e&&null!=(t=super.get(e))?t:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter((e=>{let{disabled:t}=e;return!t}))}getNodeFor(e){var t,o;return null!=(t=null==(o=this.get(e))?void 0:o.node.current)?t:void 0}}const yt={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new ht,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:de},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:mt,measureDroppableContainers:de,windowRect:null,measuringScheduled:!1},ft={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:de,draggableNodes:new Map,over:null,measureDroppableContainers:de},wt=(0,n.createContext)(ft),Tt=(0,n.createContext)(yt);function Mt(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new ht}}}function Ct(e,t){switch(t.type){case le.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case le.DragMove:return e.draggable.active?{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}}:e;case le.DragEnd:case le.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case le.RegisterDroppable:{const{element:o}=t,{id:n}=o,a=new ht(e.droppable.containers);return a.set(n,o),{...e,droppable:{...e.droppable,containers:a}}}case le.SetDroppableDisabled:{const{id:o,key:n,disabled:a}=t,i=e.droppable.containers.get(o);if(!i||n!==i.key)return e;const r=new ht(e.droppable.containers);return r.set(o,{...i,disabled:a}),{...e,droppable:{...e.droppable,containers:r}}}case le.UnregisterDroppable:{const{id:o,key:n}=t,a=e.droppable.containers.get(o);if(!a||n!==a.key)return e;const i=new ht(e.droppable.containers);return i.delete(o),{...e,droppable:{...e.droppable,containers:i}}}default:return e}}function St(e){let{disabled:t}=e;const{active:o,activatorEvent:a,draggableNodes:i}=(0,n.useContext)(wt),r=G(a),l=G(null==o?void 0:o.id);return(0,n.useEffect)((()=>{if(!t&&!a&&r&&null!=l){if(!X(r))return;if(document.activeElement===r.target)return;const e=i.get(l);if(!e)return;const{activatorNode:t,node:o}=e;if(!t.current&&!o.current)return;requestAnimationFrame((()=>{for(const e of[t.current,o.current]){if(!e)continue;const t=Q(e);if(t){t.focus();break}}}))}}),[a,t,i,l,r]),null}function At(e,t){let{transform:o,...n}=t;return null!=e&&e.length?e.reduce(((e,t)=>t({transform:e,...n})),o):o}const Dt=(0,n.createContext)({...ce,scaleX:1,scaleY:1});var xt;!function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"}(xt||(xt={}));const Ht=(0,n.memo)((function(e){var t,o,i,r;let{id:l,accessibility:d,autoScroll:c=!0,children:s,sensors:p=kt,collisionDetection:g=be,measuring:b,modifiers:u,...v}=e;const k=(0,n.useReducer)(Ct,void 0,Mt),[_,m]=k,[h,y]=function(){const[e]=(0,n.useState)((()=>new Set)),t=(0,n.useCallback)((t=>(e.add(t),()=>e.delete(t))),[e]);return[(0,n.useCallback)((t=>{let{type:o,event:n}=t;e.forEach((e=>{var t;return null==(t=e[o])?void 0:t.call(e,n)}))}),[e]),t]}(),[f,w]=(0,n.useState)(xt.Uninitialized),T=f===xt.Initialized,{draggable:{active:M,nodes:C,translate:S},droppable:{containers:A}}=_,D=M?C.get(M):null,E=(0,n.useRef)({initial:null,translated:null}),B=(0,n.useMemo)((()=>{var e;return null!=M?{id:M,data:null!=(e=null==D?void 0:D.data)?e:_t,rect:E}:null}),[M,D]),R=(0,n.useRef)(null),[P,L]=(0,n.useState)(null),[F,W]=(0,n.useState)(null),K=O(v,Object.values(v)),j=q("DndDescribedBy",l),X=(0,n.useMemo)((()=>A.getEnabled()),[A]),Z=(J=b,(0,n.useMemo)((()=>({draggable:{...mt.draggable,...null==J?void 0:J.draggable},droppable:{...mt.droppable,...null==J?void 0:J.droppable},dragOverlay:{...mt.dragOverlay,...null==J?void 0:J.dragOverlay}})),[null==J?void 0:J.draggable,null==J?void 0:J.droppable,null==J?void 0:J.dragOverlay]));var J;const{droppableRects:Q,measureDroppableContainers:ee,measuringScheduled:te}=function(e,t){let{dragging:o,dependencies:a,config:i}=t;const[r,l]=(0,n.useState)(null),{frequency:d,measure:c,strategy:s}=i,p=(0,n.useRef)(e),g=function(){switch(s){case at.Always:return!1;case at.BeforeDragging:return o;default:return!o}}(),b=O(g),u=(0,n.useCallback)((function(e){void 0===e&&(e=[]),b.current||l((t=>null===t?e:t.concat(e.filter((e=>!t.includes(e))))))}),[b]),v=(0,n.useRef)(null),k=U((t=>{if(g&&!o)return rt;if(!t||t===rt||p.current!==e||null!=r){const t=new Map;for(let o of e){if(!o)continue;if(r&&r.length>0&&!r.includes(o.id)&&o.rect.current){t.set(o.id,o.rect.current);continue}const e=o.node.current,n=e?new Pe(c(e),e):null;o.rect.current=n,n&&t.set(o.id,n)}return t}return t}),[e,r,o,g,c]);return(0,n.useEffect)((()=>{p.current=e}),[e]),(0,n.useEffect)((()=>{g||u()}),[o,g]),(0,n.useEffect)((()=>{r&&r.length>0&&l(null)}),[JSON.stringify(r)]),(0,n.useEffect)((()=>{g||"number"!=typeof d||null!==v.current||(v.current=setTimeout((()=>{u(),v.current=null}),d))}),[d,g,u,...a]),{droppableRects:k,measureDroppableContainers:u,measuringScheduled:null!=r}}(X,{dragging:T,dependencies:[S.x,S.y],config:Z.droppable}),oe=function(e,t){const o=null!==t?e.get(t):void 0,n=o?o.node.current:null;return U((e=>{var o;return null===t?null:null!=(o=null!=n?n:e)?o:null}),[n,t])}(C,M),ae=(0,n.useMemo)((()=>F?Y(F):null),[F]),ie=function(){const e=!1===(null==P?void 0:P.autoScrollEnabled),t="object"==typeof c?!1===c.enabled:!1===c,o=T&&!e&&!t;return"object"==typeof c?{...c,enabled:o}:{enabled:o}}(),de=function(e,t){return lt(e,t)}(oe,Z.draggable.measure);!function(e){let{activeNode:t,measure:o,initialRect:a,config:i=!0}=e;const r=(0,n.useRef)(!1),{x:l,y:d}="boolean"==typeof i?{x:i,y:i}:i;N((()=>{if(!l&&!d||!t)return void(r.current=!1);if(r.current||!a)return;const e=null==t?void 0:t.node.current;if(!e||!1===e.isConnected)return;const n=ue(o(e),a);if(l||(n.x=0),d||(n.y=0),r.current=!0,Math.abs(n.x)>0||Math.abs(n.y)>0){const t=we(e);t&&t.scrollBy({top:n.y,left:n.x})}}),[t,l,d,a,o])}({activeNode:M?C.get(M):null,config:ie.layoutShiftCompensation,initialRect:de,measure:Z.draggable.measure});const se=st(oe,Z.draggable.measure,de),pe=st(oe?oe.parentElement:null),ge=(0,n.useRef)({activatorEvent:null,active:null,activeNode:oe,collisionRect:null,collisions:null,droppableRects:Q,draggableNodes:C,draggingNode:null,draggingNodeRect:null,droppableContainers:A,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),ve=A.getNodeFor(null==(t=ge.current.over)?void 0:t.id),_e=function(e){let{measure:t}=e;const[o,a]=(0,n.useState)(null),i=dt({callback:(0,n.useCallback)((e=>{for(const{target:o}of e)if(I(o)){a((e=>{const n=t(o);return e?{...e,width:n.width,height:n.height}:n}));break}}),[t])}),r=(0,n.useCallback)((e=>{const o=vt(e);null==i||i.disconnect(),o&&(null==i||i.observe(o)),a(o?t(o):null)}),[t,i]),[l,d]=V(r);return(0,n.useMemo)((()=>({nodeRef:l,rect:o,setRef:d})),[o,l,d])}({measure:Z.dragOverlay.measure}),me=null!=(o=_e.nodeRef.current)?o:oe,ye=T?null!=(i=_e.rect)?i:se:null,Me=Boolean(_e.nodeRef.current&&_e.rect),Ce=ue(xe=Me?null:se,lt(xe));var xe;const He=bt(me?z(me):null),Be=function(e){const t=(0,n.useRef)(e),o=U((o=>e?o&&o!==pt&&e&&t.current&&e.parentNode===t.current.parentNode?o:fe(e):pt),[e]);return(0,n.useEffect)((()=>{t.current=e}),[e]),o}(T?null!=ve?ve:oe:null),Re=function(e,t){void 0===t&&(t=he);const[o]=e,a=bt(o?z(o):null),[i,r]=(0,n.useReducer)((function(){return e.length?e.map((e=>De(e)?a:new Pe(t(e),e))):ut}),ut),l=dt({callback:r});return e.length>0&&i===ut&&r(),N((()=>{e.length?e.forEach((e=>null==l?void 0:l.observe(e))):(null==l||l.disconnect(),r())}),[e]),i}(Be),Ie=At(u,{transform:{x:S.x-Ce.x,y:S.y-Ce.y,scaleX:1,scaleY:1},activatorEvent:F,active:B,activeNodeRect:se,containerNodeRect:pe,draggingNodeRect:ye,over:ge.current.over,overlayNodeRect:_e.rect,scrollableAncestors:Be,scrollableAncestorRects:Re,windowRect:He}),Le=ae?$(ae,S):null,Ne=function(e){const[t,o]=(0,n.useState)(null),a=(0,n.useRef)(e),i=(0,n.useCallback)((e=>{const t=Te(e.target);t&&o((e=>e?(e.set(t,Se(t)),new Map(e)):null))}),[]);return(0,n.useEffect)((()=>{const t=a.current;if(e!==t){n(t);const r=e.map((e=>{const t=Te(e);return t?(t.addEventListener("scroll",i,{passive:!0}),[t,Se(t)]):null})).filter((e=>null!=e));o(r.length?new Map(r):null),a.current=e}return()=>{n(e),n(t)};function n(e){e.forEach((e=>{const t=Te(e);null==t||t.removeEventListener("scroll",i)}))}}),[i,e]),(0,n.useMemo)((()=>e.length?t?Array.from(t.values()).reduce(((e,t)=>$(e,t)),ce):ze(e):ce),[e,t])}(Be),Fe=gt(Ne),Oe=gt(Ne,[se]),Ue=$(Ie,Fe),Ve=ye?ke(ye,Ie):null,Ge=B&&Ve?g({active:B,collisionRect:Ve,droppableRects:Q,droppableContainers:X,pointerCoordinates:Le}):null,We=function(e){if(!e||0===e.length)return null;const[t]=e;return t.id}(Ge),[qe,Ke]=(0,n.useState)(null),$e=function(e,t,o){return{...e,scaleX:t&&o?t.width/o.width:1,scaleY:t&&o?t.height/o.height:1}}(Me?Ie:$(Ie,Oe),null!=(r=null==qe?void 0:qe.rect)?r:null,se),je=(0,n.useCallback)(((e,t)=>{let{sensor:o,options:n}=t;if(null==R.current)return;const a=C.get(R.current);if(!a)return;const i=e.nativeEvent,r=new o({active:R.current,activeNode:a,event:i,options:n,context:ge,onStart(e){const t=R.current;if(null==t)return;const o=C.get(t);if(!o)return;const{onDragStart:n}=K.current,a={active:{id:t,data:o.data,rect:E}};(0,x.unstable_batchedUpdates)((()=>{null==n||n(a),w(xt.Initializing),m({type:le.DragStart,initialCoordinates:e,active:t}),h({type:"onDragStart",event:a})}))},onMove(e){m({type:le.DragMove,coordinates:e})},onEnd:l(le.DragEnd),onCancel:l(le.DragCancel)});function l(e){return async function(){const{active:t,collisions:o,over:n,scrollAdjustedTranslate:a}=ge.current;let r=null;if(t&&a){const{cancelDrop:l}=K.current;r={activatorEvent:i,active:t,collisions:o,delta:a,over:n},e===le.DragEnd&&"function"==typeof l&&await Promise.resolve(l(r))&&(e=le.DragCancel)}R.current=null,(0,x.unstable_batchedUpdates)((()=>{m({type:e}),w(xt.Uninitialized),Ke(null),L(null),W(null);const t=e===le.DragEnd?"onDragEnd":"onDragCancel";if(r){const e=K.current[t];null==e||e(r),h({type:t,event:r})}}))}}(0,x.unstable_batchedUpdates)((()=>{L(r),W(e.nativeEvent)}))}),[C]),Xe=(0,n.useCallback)(((e,t)=>(o,n)=>{const a=o.nativeEvent,i=C.get(n);if(null!==R.current||!i||a.dndKit||a.defaultPrevented)return;const r={active:i};!0===e(o,t.options,r)&&(a.dndKit={capturedBy:t.sensor},R.current=n,je(o,t))}),[C,je]),Ye=function(e,t){return(0,n.useMemo)((()=>e.reduce(((e,o)=>{const{sensor:n}=o;return[...e,...n.activators.map((e=>({eventName:e.eventName,handler:t(e.handler,o)})))]}),[])),[e,t])}(p,Xe);!function(e){(0,n.useEffect)((()=>{if(!H)return;const t=e.map((e=>{let{sensor:t}=e;return null==t.setup?void 0:t.setup()}));return()=>{for(const e of t)null==e||e()}}),e.map((e=>{let{sensor:t}=e;return t})))}(p),N((()=>{se&&f===xt.Initializing&&w(xt.Initialized)}),[se,f]),(0,n.useEffect)((()=>{const{onDragMove:e}=K.current,{active:t,activatorEvent:o,collisions:n,over:a}=ge.current;if(!t||!o)return;const i={active:t,activatorEvent:o,collisions:n,delta:{x:Ue.x,y:Ue.y},over:a};(0,x.unstable_batchedUpdates)((()=>{null==e||e(i),h({type:"onDragMove",event:i})}))}),[Ue.x,Ue.y]),(0,n.useEffect)((()=>{const{active:e,activatorEvent:t,collisions:o,droppableContainers:n,scrollAdjustedTranslate:a}=ge.current;if(!e||null==R.current||!t||!a)return;const{onDragOver:i}=K.current,r=n.get(We),l=r&&r.rect.current?{id:r.id,rect:r.rect.current,data:r.data,disabled:r.disabled}:null,d={active:e,activatorEvent:t,collisions:o,delta:{x:a.x,y:a.y},over:l};(0,x.unstable_batchedUpdates)((()=>{Ke(l),null==i||i(d),h({type:"onDragOver",event:d})}))}),[We]),N((()=>{ge.current={activatorEvent:F,active:B,activeNode:oe,collisionRect:Ve,collisions:Ge,droppableRects:Q,draggableNodes:C,draggingNode:me,draggingNodeRect:ye,droppableContainers:A,over:qe,scrollableAncestors:Be,scrollAdjustedTranslate:Ue},E.current={initial:ye,translated:Ve}}),[B,oe,Ge,Ve,C,me,ye,Q,A,qe,Be,Ue]),function(e){let{acceleration:t,activator:o=tt.Pointer,canScroll:a,draggingRect:i,enabled:r,interval:l=5,order:d=ot.TreeOrder,pointerCoordinates:c,scrollableAncestors:s,scrollableAncestorRects:p,delta:g,threshold:b}=e;const u=function(e){let{delta:t,disabled:o}=e;const n=G(t);return U((e=>{if(o||!n||!e)return nt;const a=Math.sign(t.x-n.x),i=Math.sign(t.y-n.y);return{x:{[Ae.Backward]:e.x[Ae.Backward]||-1===a,[Ae.Forward]:e.x[Ae.Forward]||1===a},y:{[Ae.Backward]:e.y[Ae.Backward]||-1===i,[Ae.Forward]:e.y[Ae.Forward]||1===i}}}),[o,t,n])}({delta:g,disabled:!r}),[v,k]=function(){const e=(0,n.useRef)(null);return[(0,n.useCallback)(((t,o)=>{e.current=setInterval(t,o)}),[]),(0,n.useCallback)((()=>{null!==e.current&&(clearInterval(e.current),e.current=null)}),[])]}(),_=(0,n.useRef)({x:0,y:0}),m=(0,n.useRef)({x:0,y:0}),h=(0,n.useMemo)((()=>{switch(o){case tt.Pointer:return c?{top:c.y,bottom:c.y,left:c.x,right:c.x}:null;case tt.DraggableRect:return i}}),[o,i,c]),y=(0,n.useRef)(null),f=(0,n.useCallback)((()=>{const e=y.current;if(!e)return;const t=_.current.x*m.current.x,o=_.current.y*m.current.y;e.scrollBy(t,o)}),[]),w=(0,n.useMemo)((()=>d===ot.TreeOrder?[...s].reverse():s),[d,s]);(0,n.useEffect)((()=>{if(r&&s.length&&h){for(const e of w){if(!1===(null==a?void 0:a(e)))continue;const o=s.indexOf(e),n=p[o];if(!n)continue;const{direction:i,speed:r}=Ee(e,n,h,t,b);for(const e of["x","y"])u[e][i[e]]||(r[e]=0,i[e]=0);if(r.x>0||r.y>0)return k(),y.current=e,v(f,l),_.current=r,void(m.current=i)}_.current={x:0,y:0},m.current={x:0,y:0},k()}else k()}),[t,f,a,k,r,l,JSON.stringify(h),JSON.stringify(u),v,s,w,p,JSON.stringify(b)])}({...ie,delta:S,draggingRect:Ve,pointerCoordinates:Le,scrollableAncestors:Be,scrollableAncestorRects:Re});const Ze=(0,n.useMemo)((()=>({active:B,activeNode:oe,activeNodeRect:se,activatorEvent:F,collisions:Ge,containerNodeRect:pe,dragOverlay:_e,draggableNodes:C,droppableContainers:A,droppableRects:Q,over:qe,measureDroppableContainers:ee,scrollableAncestors:Be,scrollableAncestorRects:Re,measuringConfiguration:Z,measuringScheduled:te,windowRect:He})),[B,oe,se,F,Ge,pe,_e,C,A,Q,qe,ee,Be,Re,Z,te,He]),Je=(0,n.useMemo)((()=>({activatorEvent:F,activators:Ye,active:B,activeNodeRect:se,ariaDescribedById:{draggable:j},dispatch:m,draggableNodes:C,over:qe,measureDroppableContainers:ee})),[F,Ye,B,se,m,j,C,qe,ee]);return a().createElement(ne.Provider,{value:y},a().createElement(wt.Provider,{value:Je},a().createElement(Tt.Provider,{value:Ze},a().createElement(Dt.Provider,{value:$e},s)),a().createElement(St,{disabled:!1===(null==d?void 0:d.restoreFocus)})),a().createElement(re,{...d,hiddenTextDescribedById:j}))})),Et=(0,n.createContext)(null),Bt="button";function zt(){return(0,n.useContext)(Tt)}const Rt={timeout:25};function It(e){let{animation:t,children:o}=e;const[i,r]=(0,n.useState)(null),[l,d]=(0,n.useState)(null),c=G(o);return o||i||!c||r(c),N((()=>{if(!l)return;const e=null==i?void 0:i.key,o=null==i?void 0:i.props.id;null!=e&&null!=o?Promise.resolve(t(o,l)).then((()=>{r(null)})):r(null)}),[t,i,l]),a().createElement(a().Fragment,null,o,i?(0,n.cloneElement)(i,{ref:d}):null)}const Pt={x:0,y:0,scaleX:1,scaleY:1};function Lt(e){let{children:t}=e;return a().createElement(wt.Provider,{value:ft},a().createElement(Dt.Provider,{value:Pt},t))}const Nt={position:"fixed",touchAction:"none"},Ft=e=>X(e)?"transform 250ms ease":void 0,Ot=(0,n.forwardRef)(((e,t)=>{let{as:o,activatorEvent:n,adjustScale:i,children:r,className:l,rect:d,style:c,transform:s,transition:p=Ft}=e;if(!d)return null;const g=i?s:{...s,scaleX:1,scaleY:1},b={...Nt,width:d.width,height:d.height,top:d.top,left:d.left,transform:Z.Transform.toString(g),transformOrigin:i&&n?se(n,d):void 0,transition:"function"==typeof p?p(n):p,...c};return a().createElement(o,{className:l,style:b,ref:t},r)})),Ut=e=>t=>{let{active:o,dragOverlay:n}=t;const a={},{styles:i,className:r}=e;if(null!=i&&i.active)for(const[e,t]of Object.entries(i.active))void 0!==t&&(a[e]=o.node.style.getPropertyValue(e),o.node.style.setProperty(e,t));if(null!=i&&i.dragOverlay)for(const[e,t]of Object.entries(i.dragOverlay))void 0!==t&&n.node.style.setProperty(e,t);return null!=r&&r.active&&o.node.classList.add(r.active),null!=r&&r.dragOverlay&&n.node.classList.add(r.dragOverlay),function(){for(const[e,t]of Object.entries(a))o.node.style.setProperty(e,t);null!=r&&r.active&&o.node.classList.remove(r.active)}},Vt={duration:250,easing:"ease",keyframes:e=>{let{transform:{initial:t,final:o}}=e;return[{transform:Z.Transform.toString(t)},{transform:Z.Transform.toString(o)}]},sideEffects:Ut({styles:{active:{opacity:"0"}}})};let Gt=0;function Wt(e){return(0,n.useMemo)((()=>{if(null!=e)return Gt++,Gt}),[e])}const qt=a().memo((e=>{let{adjustScale:t=!1,children:o,dropAnimation:i,style:r,transition:l,modifiers:d,wrapperElement:c="div",className:s,zIndex:p=999}=e;const{activatorEvent:g,active:b,activeNodeRect:u,containerNodeRect:v,draggableNodes:k,droppableContainers:_,dragOverlay:m,over:h,measuringConfiguration:y,scrollableAncestors:f,scrollableAncestorRects:w,windowRect:T}=zt(),M=(0,n.useContext)(Dt),C=Wt(null==b?void 0:b.id),S=At(d,{activatorEvent:g,active:b,activeNodeRect:u,containerNodeRect:v,draggingNodeRect:m.rect,over:h,overlayNodeRect:m.rect,scrollableAncestors:f,scrollableAncestorRects:w,transform:M,windowRect:T}),A=lt(u),D=function(e){let{config:t,draggableNodes:o,droppableContainers:n,measuringConfiguration:a}=e;return F(((e,i)=>{if(null===t)return;const r=o.get(e);if(!r)return;const l=r.node.current;if(!l)return;const d=vt(i);if(!d)return;const{transform:c}=z(i).getComputedStyle(i),s=_e(c);if(!s)return;const p="function"==typeof t?t:function(e){const{duration:t,easing:o,sideEffects:n,keyframes:a}={...Vt,...e};return e=>{let{active:i,dragOverlay:r,transform:l,...d}=e;if(!t)return;const c=r.rect.left-i.rect.left,s=r.rect.top-i.rect.top,p={scaleX:1!==l.scaleX?i.rect.width*l.scaleX/r.rect.width:1,scaleY:1!==l.scaleY?i.rect.height*l.scaleY/r.rect.height:1},g={x:l.x-c,y:l.y-s,...p},b=a({...d,active:i,dragOverlay:r,transform:{initial:l,final:g}}),[u]=b,v=b[b.length-1];if(JSON.stringify(u)===JSON.stringify(v))return;const k=null==n?void 0:n({active:i,dragOverlay:r,...d}),_=r.node.animate(b,{duration:t,easing:o,fill:"forwards"});return new Promise((e=>{_.onfinish=()=>{null==k||k(),e()}}))}}(t);return Re(l,a.draggable.measure),p({active:{id:e,data:r.data,node:l,rect:a.draggable.measure(l)},draggableNodes:o,dragOverlay:{node:i,rect:a.dragOverlay.measure(d)},droppableContainers:n,measuringConfiguration:a,transform:s})}))}({config:i,draggableNodes:k,droppableContainers:_,measuringConfiguration:y}),x=A?m.setRef:void 0;return a().createElement(Lt,null,a().createElement(It,{animation:D},b&&C?a().createElement(Ot,{key:C,id:b.id,ref:x,as:c,activatorEvent:g,adjustScale:t,className:s,transition:l,rect:A,style:{zIndex:p,...r},transform:S},o):null))}));function Kt(e,t,o){const n=e.slice();return n.splice(o<0?n.length+o:o,0,n.splice(t,1)[0]),n}function $t(e,t){return e.reduce(((e,o,n)=>{const a=t.get(o);return a&&(e[n]=a),e}),Array(e.length))}function jt(e){return null!==e&&e>=0}const Xt=e=>{let{rects:t,activeIndex:o,overIndex:n,index:a}=e;const i=Kt(t,n,o),r=t[a],l=i[a];return l&&r?{x:l.left-r.left,y:l.top-r.top,scaleX:l.width/r.width,scaleY:l.height/r.height}:null},Yt={scaleX:1,scaleY:1},Zt=e=>{var t;let{activeIndex:o,activeNodeRect:n,index:a,rects:i,overIndex:r}=e;const l=null!=(t=i[o])?t:n;if(!l)return null;if(a===o){const e=i[r];return e?{x:0,y:o<r?e.top+e.height-(l.top+l.height):e.top-l.top,...Yt}:null}const d=function(e,t,o){const n=e[t],a=e[t-1],i=e[t+1];return n?o<t?a?n.top-(a.top+a.height):i?i.top-(n.top+n.height):0:i?i.top-(n.top+n.height):a?n.top-(a.top+a.height):0:0}(i,a,o);return a>o&&a<=r?{x:0,y:-l.height-d,...Yt}:a<o&&a>=r?{x:0,y:l.height+d,...Yt}:{x:0,y:0,...Yt}},Jt="Sortable",Qt=a().createContext({activeIndex:-1,containerId:Jt,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:Xt,disabled:{draggable:!1,droppable:!1}});function eo(e){let{children:t,id:o,items:i,strategy:r=Xt,disabled:l=!1}=e;const{active:d,dragOverlay:c,droppableRects:s,over:p,measureDroppableContainers:g}=zt(),b=q(Jt,o),u=Boolean(null!==c.rect),v=(0,n.useMemo)((()=>i.map((e=>"object"==typeof e&&"id"in e?e.id:e))),[i]),k=null!=d,_=d?v.indexOf(d.id):-1,m=p?v.indexOf(p.id):-1,h=(0,n.useRef)(v),y=!function(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let o=0;o<e.length;o++)if(e[o]!==t[o])return!1;return!0}(v,h.current),f=-1!==m&&-1===_||y,w=function(e){return"boolean"==typeof e?{draggable:e,droppable:e}:e}(l);N((()=>{y&&k&&g(v)}),[y,v,k,g]),(0,n.useEffect)((()=>{h.current=v}),[v]);const T=(0,n.useMemo)((()=>({activeIndex:_,containerId:b,disabled:w,disableTransforms:f,items:v,overIndex:m,useDragOverlay:u,sortedRects:$t(v,s),strategy:r})),[_,b,w.draggable,w.droppable,f,v,m,s,u,r]);return a().createElement(Qt.Provider,{value:T},t)}const to=e=>{let{id:t,items:o,activeIndex:n,overIndex:a}=e;return Kt(o,n,a).indexOf(t)},oo=e=>{let{containerId:t,isSorting:o,wasDragging:n,index:a,items:i,newIndex:r,previousItems:l,previousContainerId:d,transition:c}=e;return!(!c||!n||l!==i&&a===r||!o&&(r===a||t!==d))},no={duration:200,easing:"ease"},ao="transform",io=Z.Transition.toString({property:ao,duration:0,easing:"linear"}),ro={roleDescription:"sortable"};function lo(e){let{animateLayoutChanges:t=oo,attributes:o,disabled:a,data:i,getNewIndex:r=to,id:l,strategy:d,resizeObserverConfig:c,transition:s=no}=e;const{items:p,containerId:g,activeIndex:b,disabled:u,disableTransforms:v,sortedRects:k,overIndex:_,useDragOverlay:m,strategy:h}=(0,n.useContext)(Qt),y=function(e,t){var o,n;return"boolean"==typeof e?{draggable:e,droppable:!1}:{draggable:null!=(o=null==e?void 0:e.draggable)?o:t.draggable,droppable:null!=(n=null==e?void 0:e.droppable)?n:t.droppable}}(a,u),f=p.indexOf(l),w=(0,n.useMemo)((()=>({sortable:{containerId:g,index:f,items:p},...i})),[g,i,f,p]),T=(0,n.useMemo)((()=>p.slice(p.indexOf(l))),[p,l]),{rect:M,node:C,isOver:S,setNodeRef:A}=function(e){let{data:t,disabled:o=!1,id:a,resizeObserverConfig:i}=e;const r=q("Droppable"),{active:l,dispatch:d,over:c,measureDroppableContainers:s}=(0,n.useContext)(wt),p=(0,n.useRef)({disabled:o}),g=(0,n.useRef)(!1),b=(0,n.useRef)(null),u=(0,n.useRef)(null),{disabled:v,updateMeasurementsFor:k,timeout:_}={...Rt,...i},m=O(null!=k?k:a),h=dt({callback:(0,n.useCallback)((()=>{g.current?(null!=u.current&&clearTimeout(u.current),u.current=setTimeout((()=>{s(Array.isArray(m.current)?m.current:[m.current]),u.current=null}),_)):g.current=!0}),[_]),disabled:v||!l}),y=(0,n.useCallback)(((e,t)=>{h&&(t&&(h.unobserve(t),g.current=!1),e&&h.observe(e))}),[h]),[f,w]=V(y),T=O(t);return(0,n.useEffect)((()=>{h&&f.current&&(h.disconnect(),g.current=!1,h.observe(f.current))}),[f,h]),N((()=>(d({type:le.RegisterDroppable,element:{id:a,key:r,disabled:o,node:f,rect:b,data:T}}),()=>d({type:le.UnregisterDroppable,key:r,id:a}))),[a]),(0,n.useEffect)((()=>{o!==p.current.disabled&&(d({type:le.SetDroppableDisabled,id:a,key:r,disabled:o}),p.current.disabled=o)}),[a,r,o,d]),{active:l,rect:b,isOver:(null==c?void 0:c.id)===a,node:f,over:c,setNodeRef:w}}({id:l,data:w,disabled:y.droppable,resizeObserverConfig:{updateMeasurementsFor:T,...c}}),{active:D,activatorEvent:x,activeNodeRect:H,attributes:E,setNodeRef:B,listeners:z,isDragging:R,over:I,setActivatorNodeRef:P,transform:L}=function(e){let{id:t,data:o,disabled:a=!1,attributes:i}=e;const r=q("Droppable"),{activators:l,activatorEvent:d,active:c,activeNodeRect:s,ariaDescribedById:p,draggableNodes:g,over:b}=(0,n.useContext)(wt),{role:u=Bt,roleDescription:v="draggable",tabIndex:k=0}=null!=i?i:{},_=(null==c?void 0:c.id)===t,m=(0,n.useContext)(_?Dt:Et),[h,y]=V(),[f,w]=V(),T=function(e,t){return(0,n.useMemo)((()=>e.reduce(((e,o)=>{let{eventName:n,handler:a}=o;return e[n]=e=>{a(e,t)},e}),{})),[e,t])}(l,t),M=O(o);return N((()=>(g.set(t,{id:t,key:r,node:h,activatorNode:f,data:M}),()=>{const e=g.get(t);e&&e.key===r&&g.delete(t)})),[g,t]),{active:c,activatorEvent:d,activeNodeRect:s,attributes:(0,n.useMemo)((()=>({role:u,tabIndex:k,"aria-disabled":a,"aria-pressed":!(!_||u!==Bt)||void 0,"aria-roledescription":v,"aria-describedby":p.draggable})),[a,u,k,_,v,p.draggable]),isDragging:_,listeners:a?void 0:T,node:h,over:b,setNodeRef:y,setActivatorNodeRef:w,transform:m}}({id:l,data:w,attributes:{...ro,...o},disabled:y.draggable}),F=function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return(0,n.useMemo)((()=>e=>{t.forEach((t=>t(e)))}),t)}(A,B),U=Boolean(D),G=U&&!v&&jt(b)&&jt(_),W=!m&&R,K=W&&G?L:null,$=G?null!=K?K:(null!=d?d:h)({rects:k,activeNodeRect:H,activeIndex:b,overIndex:_,index:f}):null,j=jt(b)&&jt(_)?r({id:l,items:p,activeIndex:b,overIndex:_}):f,Y=null==D?void 0:D.id,J=(0,n.useRef)({activeId:Y,items:p,newIndex:j,containerId:g}),Q=p!==J.current.items,ee=t({active:D,containerId:g,isDragging:R,isSorting:U,id:l,index:f,items:p,newIndex:J.current.newIndex,previousItems:J.current.items,previousContainerId:J.current.containerId,transition:s,wasDragging:null!=J.current.activeId}),te=function(e){let{disabled:t,index:o,node:a,rect:i}=e;const[r,l]=(0,n.useState)(null),d=(0,n.useRef)(o);return N((()=>{if(!t&&o!==d.current&&a.current){const e=i.current;if(e){const t=he(a.current,{ignoreTransform:!0}),o={x:e.left-t.left,y:e.top-t.top,scaleX:e.width/t.width,scaleY:e.height/t.height};(o.x||o.y)&&l(o)}}o!==d.current&&(d.current=o)}),[t,o,a,i]),(0,n.useEffect)((()=>{r&&l(null)}),[r]),r}({disabled:!ee,index:f,node:C,rect:M});return(0,n.useEffect)((()=>{U&&J.current.newIndex!==j&&(J.current.newIndex=j),g!==J.current.containerId&&(J.current.containerId=g),p!==J.current.items&&(J.current.items=p)}),[U,j,g,p]),(0,n.useEffect)((()=>{if(Y===J.current.activeId)return;if(Y&&!J.current.activeId)return void(J.current.activeId=Y);const e=setTimeout((()=>{J.current.activeId=Y}),50);return()=>clearTimeout(e)}),[Y]),{active:D,activeIndex:b,attributes:E,data:w,rect:M,index:f,newIndex:j,items:p,isOver:S,isSorting:U,isDragging:R,listeners:z,node:C,overIndex:_,over:I,setNodeRef:F,setActivatorNodeRef:P,setDroppableNodeRef:A,setDraggableNodeRef:B,transform:null!=te?te:$,transition:te||Q&&J.current.newIndex===f?io:W&&!X(x)||!s?void 0:U||ee?Z.Transition.toString({...s,property:ao}):void 0}}Oe.Down,Oe.Right,Oe.Up,Oe.Left;const co=(0,n.memo)((e=>(0,n.createElement)("div",{className:"drag-handle",style:{cursor:"grab",marginRight:"5px"},...e},(0,n.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 18 18"},(0,n.createElement)("path",{d:"M13 8c.6 0 1-.4 1-1s-.4-1-1-1-1 .4-1 1 .4 1 1 1zM5 6c-.6 0-1 .4-1 1s.4 1 1 1 1-.4 1-1-.4-1-1-1zm0 4c-.6 0-1 .4-1 1s.4 1 1 1 1-.4 1-1-.4-1-1-1zm8 0c-.6 0-1 .4-1 1s.4 1 1 1 1-.4 1-1-.4-1-1-1zM9 6c-.6 0-1 .4-1 1s.4 1 1 1 1-.4 1-1-.4-1-1-1zm0 4c-.6 0-1 .4-1 1s.4 1 1 1 1-.4 1-1-.4-1-1-1z"})))));function so({thisBlock:e,activeBlock:t,toggleCollapse:o,collapsed:a,isOver:l,dropZone:d,isPreview:c=!1}){const s=(0,p.get)(e,["attributes","forceOpenInEditor"],!1),[u,k]=(0,v.useState)(s),_={};s&&wp.data.dispatch("core/block-editor").updateBlockAttributes(e.clientId,{forceOpenInEditor:!1});const m=e?.children?.length>0,h=(0,g.useSelect)((t=>t("core/blocks").getBlockType(e.name)),[]);let y=function(e){const t=document.createElement("DIV");return t.innerHTML=e,t.textContent||t.innerText||""}((0,p.get)(e,["attributes","label"],""));""===y&&(y=(0,p.get)(h,["title"],""));const f=(0,v.useMemo)((()=>0===e.depth?0:20*e.depth+30),[e.depth]),{attributes:w,listeners:T,setNodeRef:x,transform:H,transition:E}=lo({id:e.clientId,data:{name:e.name,attributes:e.attributes}}),B=(0,v.useMemo)((()=>{const e={marginLeft:f+"px",transition:E,position:"relative",zIndex:t?1:"auto"};return c&&H&&(e.transform=`translate3d(${H.x}px, ${H.y}px, 0)`),e}),[f,E,t]),z=(0,v.useMemo)((()=>c?{background:"#eee",opacity:.8,position:"relative",top:"-10px",left:"-10px"}:{opacity:t?.5:1}),[t]);_.ref=x,_.style=B;const R={...T,...w},I=("post-type"===e?.attributes?.kind||"post"===e?.attributes?.type||"page"===e?.attributes?.type)&&"post-type"===e?.attributes?.kind&&e?.attributes?.id&&!e?.attributes?.disableLink;return(0,n.createElement)("div",{..._},(0,n.createElement)("div",{className:"menu-block "+(m?"":"no-children"),style:z},"kadence/navigation-link"===e.name&&(0,n.createElement)(co,{...R}),m&&(0,n.createElement)(b.Icon,{className:"has-children",icon:a?"arrow-right-alt2":"arrow-down-alt2",onClick:()=>o(e.clientId)}),(0,n.createElement)(b.Icon,{className:"block-icon",icon:h?.icon?.src}),(0,n.createElement)("span",{className:"block-label",onClick:()=>k(!u)},y),(0,n.createElement)(b.DropdownMenu,{icon:S,className:"block-settings",label:(0,i.__)("Options","kadence-blocks"),controls:[{title:(0,i.__)("Edit","kadence-blocks"),icon:A,isDisabled:"kadence/navigation-link"!==e.name,onClick:()=>k(!u)},{title:(0,i.__)("Delete","kadence-blocks"),icon:D,isDisabled:C.includes(e.name),onClick:()=>po(e.clientId)}]})),l&&(0,n.createElement)(n.Fragment,null,"before"===d&&(0,n.createElement)("div",{style:{position:"absolute",left:0,right:0,height:"2px",backgroundColor:"rgba(0, 120, 260, 0.8)",top:"-1px"}}),"child"===d&&(0,n.createElement)("div",{style:{position:"absolute",right:0,left:`${f+75}px`,height:"2px",backgroundColor:"rgba(0, 120, 260, 0.8)",bottom:"-1px"}})),u&&"kadence/navigation-link"===e.name&&(0,n.createElement)("div",{key:e.clientId,style:{display:"block",marginLeft:"25px",backgroundColor:"rgb(242, 242, 242)",padding:"15px"}},(0,n.createElement)(b.TextControl,{label:(0,i.__)("Label","kadence-blocks"),value:e.attributes.label,onChange:t=>{wp.data.dispatch("core/block-editor").updateBlockAttributes(e.clientId,{label:t})}}),(0,n.createElement)(b.TextControl,{label:(0,i.__)("URL","kadence-blocks"),value:e.attributes.url,onChange:t=>{wp.data.dispatch("core/block-editor").updateBlockAttributes(e.clientId,{url:t})},disabled:I}),(0,n.createElement)("div",{style:{marginTop:"15px",display:"flex"}},(0,n.createElement)(b.Button,{style:{marginRight:"10px"},onClick:()=>{wp.data.dispatch("core/block-editor").insertBlocks([(0,r.createBlock)("kadence/navigation-link",{label:(0,i.__)("New Link","kadence-blocks"),url:"",kind:"custom",uniqueID:Math.random().toString(36).substr(2,9),forceOpenInEditor:!0})],99999,e.clientId,!1,null)},icon:M,isSecondary:!0},(0,i.__)("Add sub menu link","kadence-blocks")),(0,n.createElement)(b.Button,{onClick:()=>k(!1),isPrimary:!0},(0,i.__)("Close","kadence-blocks")))))}const po=e=>{wp.data.dispatch("core/block-editor").removeBlock(e,!1)};function go({blocks:e}){const[t,o]=(0,v.useState)([]),[a,r]=(0,v.useState)(null),[l,d]=(0,v.useState)(null),[c,s]=(0,v.useState)(null),p=function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return(0,n.useMemo)((()=>[...t].filter((e=>null!=e))),[...t])}((g=Ze,b={activationConstraint:{distance:8}},(0,n.useMemo)((()=>({sensor:g,options:null!=b?b:{}})),[g,b])));var g,b;function u(e,t){const o=[];function n(t){t.forEach((t=>{if(!o.includes(t)){o.push(t);const a=e.find((e=>e.id===t));a&&a.children&&n(a.children)}}))}return e.filter((e=>!o.includes(e.id)&&((t.includes(e.id)||o.includes(e.id))&&e.children&&n(e.children),!0)))}const k=e=>{o((t=>t.includes(e)?t.filter((t=>t!==e)):[...t,e]))},_=(0,v.useMemo)((()=>{const o=((e,t=0)=>{const o=[],n=(e,t)=>{const{innerBlocks:a,clientId:i}=e,r=a.map((e=>e.clientId));o.push({id:e.clientId,...e,depth:t,children:r}),a.forEach((e=>n(e,t+1)))};return e.forEach((e=>n(e,t))),o})(e);let n=t;return a&&(n=[...t,a]),u(o,n)}),[e,t,a]),m=(0,v.useMemo)((()=>_.map((({id:e})=>e))),[_]);return(0,n.createElement)("div",{className:"menu-management"},0===e.length?(0,n.createElement)("p",null,(0,i.__)("Insert links to get started.","kadence-blocks")):(0,n.createElement)(Ht,{sensors:p,onDragStart:function({active:e}){r(e.id),d(e.data.current.attributes.label)},onDragMove:function({active:e,over:t}){if(t){const o=e.id,n=t.id,a=wp.data.select("core/block-editor").getBlock(n);let i="before";const r=e.rect.current.translated.left-t.rect.left;"kadence/navigation-link"===a.name&&r>80&&o!==n&&!function(e,t){let o=wp.data.select("core/block-editor").getBlockRootClientId(t);for(;o;){if(o===e)return!0;o=wp.data.select("core/block-editor").getBlockRootClientId(o)}return!1}(o,n)&&(i="child"),s({id:n,dropZone:i})}else s(null)},onDragEnd:function({active:e,over:t}){if(t&&e.id!==t.id){const o=e.id,n=t.id,a=wp.data.select("core/block-editor").getBlock(o),i=(wp.data.select("core/block-editor").getBlock(n),wp.data.select("core/block-editor").getBlockRootClientId(o)),r=wp.data.select("core/block-editor").getBlockRootClientId(n),l=wp.data.select("core/block-editor").getBlockIndex(n);"child"===c.dropZone?wp.data.dispatch("core/block-editor").moveBlockToPosition(o,i,n,0):!r&&i?wp.data.dispatch("core/block-editor").moveBlockToPosition(o,i,"",l):wp.data.dispatch("core/block-editor").moveBlockToPosition(o,i,r,l),"child"===c.dropZone&&"kadence/navigation-link"===a.name?wp.data.dispatch("core/block-editor").updateBlockAttributes(o,{parentId:n}):!r&&i&&"kadence/navigation-link"===a.name&&wp.data.dispatch("core/block-editor").updateBlockAttributes(o,{parentId:""})}r(null),d(null),s(null)}},(0,n.createElement)(eo,{items:m,strategy:Zt},_.map((e=>(0,n.createElement)(so,{activeBlock:a===e.clientId,key:e.clientId,thisBlock:e,toggleCollapse:k,collapsed:t.includes(e.clientId),isOver:c&&c.id===e.clientId,dropZone:c&&c.id===e.clientId?c.dropZone:null})))),(0,n.createElement)(qt,null,(0,n.createElement)(so,{activeBlock:!0,key:a,isPreview:!0,thisBlock:{clientId:a,depth:0,name:"kadence/navigation-link",attributes:{label:l||"Kadence Link"}},toggleCollapse:k,collapsed:t.includes(a),isOver:!1,dropZone:!1}))))}function bo({clientId:e,closeModal:t,title:o,setTitle:a,updateBlocksCallback:l,orientation:d,orientationTablet:c,setMetaAttribute:s}){const[p,u]=(0,v.useState)("page"),{blocks:k}=(0,g.useSelect)((t=>{const{getBlock:o,getBlockOrder:n}=t("core/block-editor");return{blocks:n(e).map((e=>o(e)))}}),[e]),{addStash:_}=(0,g.useDispatch)("kadenceblocks/data");(0,v.useEffect)((()=>{_("open-navigation-builder",e)}),[e]);const m=e=>{const t=[];e.forEach((e=>{t.push((0,r.createBlock)("kadence/navigation-link",{label:e.title.rendered,url:e.link,id:e.id,type:e.type,kind:"post-type",uniqueID:Math.random().toString(36).substr(2,9)}))})),0!==t.length&&l(t)},h=e=>{const t=[];e.forEach((e=>{t.push((0,r.createBlock)("kadence/navigation-link",{label:e.name,url:e.link,id:e.id,type:e.type,kind:"post-type",uniqueID:Math.random().toString(36).substr(2,9)}))})),0!==t.length&&l(t)};return(0,n.createElement)("div",{className:"kb-menu-visual-editor"},(0,n.createElement)("div",{className:"left-column"},(0,n.createElement)("div",{className:"menu-container"},(0,n.createElement)(T.KadenceRadioButtons,{label:(0,i.__)("Desktop Orientation","kadence-blocks"),value:""!==d?d:"horizontal",options:[{value:"vertical",label:(0,i.__)("Vertical","kadence-blocks")},{value:"horizontal",label:(0,i.__)("Horizontal","kadence-blocks")}],hideLabel:!1,onChange:e=>{s(e,"orientation")}}),(0,n.createElement)(T.KadenceRadioButtons,{label:(0,i.__)("Tablet Orientation","kadence-blocks"),value:""!==c?c:""!==d?d:"horizontal",options:[{value:"vertical",label:(0,i.__)("Vertical","kadence-blocks")},{value:"horizontal",label:(0,i.__)("Horizontal","kadence-blocks")}],hideLabel:!1,onChange:e=>{s(e,"orientationTablet")}}),kadence_blocks_params.postTypesSearchable.map((e=>(0,n.createElement)(T.PostSelectorCheckbox,{key:e.value,forceOpen:p===e.value,useForceState:!0,onPanelBodyToggle:()=>u(p===e.value?null:e.value),postType:e.value,title:e.label,onSelect:m}))),(0,n.createElement)(T.PostSelectorCheckbox,{key:"categories",forceOpen:"categories"===p,useForceState:!0,onPanelBodyToggle:()=>u("categories"===p?null:"categories"),postType:"categories",title:"Categories",onSelect:h}),kadence_blocks_params.hasWoocommerce&&(0,n.createElement)(T.PostSelectorCheckbox,{key:"product_cat",forceOpen:"product_cat"===p,useForceState:!0,onPanelBodyToggle:()=>u("product_cat"===p?null:"product_cat"),postType:"product_cat",title:"Product Categories",onSelect:h})),(0,n.createElement)("div",{className:"add-menu"})),(0,n.createElement)("div",{className:"right-column"},(0,n.createElement)("div",null,(0,n.createElement)(b.TextControl,{value:"Auto Draft"===o?"":o,onChange:a,label:(0,i.__)("Navigation Name","kadence-blocks"),help:(0,i.__)("This is used for your reference only.","kadence-blocks")}),(0,n.createElement)(go,{blocks:k})),(0,n.createElement)("div",{className:"footer"},(0,n.createElement)(b.Button,{isSecondary:!0,onClick:()=>{l([(0,r.createBlock)("kadence/navigation-link",{label:(0,i.__)("New Link","kadence-blocks"),url:"",kind:"custom",uniqueID:Math.random().toString(36).substr(2,9),forceOpenInEditor:!0})])},icon:M},(0,i.__)("Custom link","kadence-blocks")),(0,n.createElement)(b.Button,{isPrimary:!0,onClick:t},(0,i.__)("Done Editing","kadence-blocks")))))}const uo=window.kadence.helpers,vo=window.wp.url;function ko(e,t=99999){const o=(0,r.createBlock)("kadence/navigation-link",{});wp.data.dispatch("core/block-editor").insertBlocks(o,t,e)}const _o={name:"kadence/navigation-link"},mo=["kadence/navigation-link","core/navigation-link","core/search","core/social-links","core/page-list","core/spacer","core/home-link","core/site-title","core/site-logo","core/navigation-submenu","core/loginout","core/buttons"],ho=["kadence/navigation-link"];function yo(e){const{attributes:t,isSelected:o,previewDevice:a,metaAttributes:i,context:r}=e,{uniqueID:l,id:d,templateKey:c}=t,{padding:s,tabletPadding:p,mobilePadding:g,paddingUnit:b,margin:u,tabletMargin:v,mobileMargin:k,marginUnit:_,paddingDropdown:m,tabletPaddingDropdown:h,mobilePaddingDropdown:y,paddingDropdownUnit:f,marginDropdown:w,tabletMarginDropdown:T,mobileMarginDropdown:M,marginDropdownUnit:C,paddingLink:S,tabletPaddingLink:A,mobilePaddingLink:D,paddingLinkUnit:x,marginLink:H,tabletMarginLink:E,mobileMarginLink:B,marginLinkUnit:z,paddingDropdownLink:R,tabletPaddingDropdownLink:I,mobilePaddingDropdownLink:P,paddingDropdownLinkUnit:L,marginDropdownLink:N,tabletMarginDropdownLink:F,mobileMarginDropdownLink:O,marginDropdownLinkUnit:U,orientation:V,orientationTablet:G,orientationMobile:W,style:q,styleTablet:K,styleMobile:$,spacing:j,spacingTablet:X,spacingMobile:Y,spacingUnit:Z,stretch:J,stretchFill:Q,parentActive:ee,parentActiveTablet:te,parentActiveMobile:oe,linkColor:ne,linkColorHover:ae,linkColorActive:ie,linkColorTablet:re,linkColorHoverTablet:le,linkColorActiveTablet:de,linkColorMobile:ce,linkColorHoverMobile:se,linkColorActiveMobile:pe,background:ge,backgroundHover:be,backgroundActive:ue,backgroundTablet:ve,backgroundHoverTablet:ke,backgroundActiveTablet:_e,backgroundMobile:me,backgroundHoverMobile:he,backgroundActiveMobile:ye,linkColorDropdown:fe,linkColorDropdownHover:we,linkColorDropdownActive:Te,linkColorDropdownTablet:Me,linkColorDropdownHoverTablet:Ce,linkColorDropdownActiveTablet:Se,linkColorDropdownMobile:Ae,linkColorDropdownHoverMobile:De,linkColorDropdownActiveMobile:xe,backgroundDropdown:He,backgroundDropdownHover:Ee,backgroundDropdownActive:Be,backgroundDropdownTablet:ze,backgroundDropdownHoverTablet:Re,backgroundDropdownActiveTablet:Ie,backgroundDropdownMobile:Pe,backgroundDropdownHoverMobile:Le,backgroundDropdownActiveMobile:Ne,linkColorTransparent:Fe,linkColorTransparentHover:Oe,linkColorTransparentActive:Ue,linkColorTransparentTablet:Ve,linkColorTransparentHoverTablet:Ge,linkColorTransparentActiveTablet:We,linkColorTransparentMobile:qe,linkColorTransparentHoverMobile:Ke,linkColorTransparentActiveMobile:$e,backgroundTransparent:je,backgroundTransparentHover:Xe,backgroundTransparentActive:Ye,backgroundTransparentTablet:Ze,backgroundTransparentHoverTablet:Je,backgroundTransparentActiveTablet:Qe,backgroundTransparentMobile:et,backgroundTransparentHoverMobile:tt,backgroundTransparentActiveMobile:ot,linkColorSticky:nt,linkColorStickyHover:at,linkColorStickyActive:it,linkColorStickyTablet:rt,linkColorStickyHoverTablet:lt,linkColorStickyActiveTablet:dt,linkColorStickyMobile:ct,linkColorStickyHoverMobile:st,linkColorStickyActiveMobile:pt,backgroundSticky:gt,backgroundStickyHover:bt,backgroundStickyActive:ut,backgroundStickyTablet:vt,backgroundStickyHoverTablet:kt,backgroundStickyActiveTablet:_t,backgroundStickyMobile:mt,backgroundStickyHoverMobile:ht,backgroundStickyActiveMobile:yt,typography:ft,dropdownTypography:wt,descriptionTypography:Tt,descriptionSpacing:Mt,descriptionSpacingTablet:Ct,descriptionSpacingMobile:St,descriptionSpacingUnit:At,descriptionColor:Dt,descriptionColorTablet:xt,descriptionColorMobile:Ht,descriptionColorHover:Et,descriptionColorHoverTablet:Bt,descriptionColorHoverMobile:zt,descriptionColorActive:Rt,descriptionColorActiveTablet:It,descriptionColorActiveMobile:Pt,descriptionPositioning:Lt,descriptionPositioningTablet:Nt,descriptionPositioningMobile:Ft,dropdownDescriptionTypography:Ot,dropdownDescriptionSpacing:Ut,dropdownDescriptionSpacingTablet:Vt,dropdownDescriptionSpacingMobile:Gt,dropdownDescriptionSpacingUnit:Wt,dropdownDescriptionColor:qt,dropdownDescriptionColorTablet:Kt,dropdownDescriptionColorMobile:$t,dropdownDescriptionColorHover:jt,dropdownDescriptionColorHoverTablet:Xt,dropdownDescriptionColorHoverMobile:Yt,dropdownDescriptionColorActive:Zt,dropdownDescriptionColorActiveTablet:Jt,dropdownDescriptionColorActiveMobile:Qt,dropdownDescriptionPositioning:eo,dropdownDescriptionPositioningTablet:to,dropdownDescriptionPositioningMobile:oo,collapseSubMenus:no,parentTogglesMenus:ao,divider:io,dividerTablet:ro,dividerMobile:lo,dropdownDivider:co,dropdownDividerTablet:so,dropdownDividerMobile:po,transparentDivider:go,transparentDividerTablet:bo,transparentDividerMobile:vo,stickyDivider:ko,stickyDividerTablet:_o,stickyDividerMobile:mo,dropdownWidth:ho,dropdownWidthTablet:yo,dropdownWidthMobile:fo,dropdownWidthUnit:wo,dropdownVerticalSpacing:To,dropdownVerticalSpacingTablet:Mo,dropdownVerticalSpacingMobile:Co,dropdownVerticalSpacingUnit:So,dropdownHorizontalAlignment:Ao,dropdownHorizontalAlignmentTablet:Do,dropdownHorizontalAlignmentMobile:xo,dropdownShadow:Ho,dropdownBorder:Eo,dropdownBorderTablet:Bo,dropdownBorderMobile:zo,dropdownBorderRadius:Ro,dropdownBorderRadiusTablet:Io,dropdownBorderRadiusMobile:Po,dropdownBorderRadiusUnit:Lo,horizontalGrid:No,horizontalGridTablet:Fo,horizontalGridMobile:Oo,dropdownLinkHorizontalAlignment:Uo,dropdownLinkHorizontalAlignmentTablet:Vo,dropdownLinkHorizontalAlignmentMobile:Go,linkHorizontalAlignment:Wo,linkHorizontalAlignmentTablet:qo,linkHorizontalAlignmentMobile:Ko}=i,$o=new uo.KadenceBlocksCSS,jo=(0,uo.getPreviewSize)(a,No,Fo,Oo),Xo=j[1],Yo=X[1],Zo=Y[1],Jo=(0,uo.getPreviewSize)(a,Xo,Yo,Zo),Qo=j[0],en=X[0],tn=Y[0],on=(0,uo.getPreviewSize)(a,Qo,en,tn),nn=!d&&c?c.includes("vertical")?"vertical":"horizontal":(0,uo.getPreviewSize)(a,V,G,W),an=(0,uo.getPreviewSize)(a,q,K,$),rn=(0,uo.getPreviewSize)(a,ee,te,oe),ln=(0,uo.getPreviewSize)(a,ho,yo,fo),dn=((0,uo.getPreviewSize)(a,ne,re,ce),(0,uo.getPreviewSize)(a,ge,ve,me),(0,uo.getPreviewSize)(a,ae,le,se),(0,uo.getPreviewSize)(a,be,ke,he),(0,uo.getPreviewSize)(a,ie,de,pe)),cn=(0,uo.getPreviewSize)(a,ue,_e,ye),sn=(0,uo.getPreviewSize)(a,fe,Me,Ae),pn=(0,uo.getPreviewSize)(a,He,ze,Pe),gn=(0,uo.getPreviewSize)(a,we,Ce,De),bn=(0,uo.getPreviewSize)(a,Ee,Re,Le),un=(0,uo.getPreviewSize)(a,Te,Se,xe),vn=(0,uo.getPreviewSize)(a,Be,Ie,Ne),kn=(0,uo.getPreviewSize)(a,Fe,Ve,qe),mn=(0,uo.getPreviewSize)(a,je,Ze,et),hn=(0,uo.getPreviewSize)(a,Oe,Ge,Ke),yn=(0,uo.getPreviewSize)(a,Xe,Je,tt),fn=(0,uo.getPreviewSize)(a,Ue,We,$e),wn=(0,uo.getPreviewSize)(a,Ye,Qe,ot),Tn=(0,uo.getPreviewSize)(a,nt,rt,ct),Mn=(0,uo.getPreviewSize)(a,gt,vt,mt),Cn=(0,uo.getPreviewSize)(a,at,lt,st),Sn=(0,uo.getPreviewSize)(a,bt,kt,ht),An=(0,uo.getPreviewSize)(a,it,dt,pt),Dn=(0,uo.getPreviewSize)(a,ut,_t,yt),xn=(0,uo.getPreviewSize)(a,To,Mo,Co),Hn=(0,uo.getPreviewSize)(a,Mt,Ct,St),En=(0,uo.getPreviewSize)(a,Dt,xt,Ht),Bn=(0,uo.getPreviewSize)(a,Et,Bt,zt),zn=(0,uo.getPreviewSize)(a,Rt,It,Pt),Rn=(0,uo.getPreviewSize)(a,Ut,Vt,Gt),In=(0,uo.getPreviewSize)(a,qt,Kt,$t),Pn=(0,uo.getPreviewSize)(a,jt,Xt,Yt),Ln=(0,uo.getPreviewSize)(a,Zt,Jt,Qt),Nn=(0,uo.getPreviewSize)(a,void 0!==Ro?Ro[0]:"",void 0!==Io?Io[0]:"",void 0!==Po?Po[0]:""),Fn=(0,uo.getPreviewSize)(a,void 0!==Ro?Ro[1]:"",void 0!==Io?Io[1]:"",void 0!==Po?Po[1]:""),On=(0,uo.getPreviewSize)(a,void 0!==Ro?Ro[2]:"",void 0!==Io?Io[2]:"",void 0!==Po?Po[2]:""),Un=(0,uo.getPreviewSize)(a,void 0!==Ro?Ro[3]:"",void 0!==Io?Io[3]:"",void 0!==Po?Po[3]:""),Vn=(0,uo.getPreviewSize)(a,Ao,Do,xo),Gn=(0,uo.getPreviewSize)(a,Uo,Vo,Go),Wn=(0,uo.getPreviewSize)(a,Wo,qo,Ko),qn=$o.render_border(io,ro,lo,a,"bottom"),Kn=$o.render_border(co,so,po,a,"bottom"),$n=$o.render_border(go,bo,vo,a,"bottom"),jn=$o.render_border(ko,_o,mo,a,"bottom");if($o.set_selector(`.wp-block-kadence-navigation${l}`),$o.render_measure_output(m,h,y,a,"--kb-nav-dropdown-padding",f),$o.render_measure_output(w,T,M,a,"--kb-nav-dropdown-margin",C),$o.add_property("--kb-nav-column-gap",$o.render_size(Jo,Z),Jo),$o.add_property("--kb-nav-top-link-color-active-ancestor",$o.render_color(dn),rn),$o.add_property("--kb-nav-top-link-background-active-ancestor",$o.render_color(cn),rn),$o.add_property("--kb-nav-dropdown-link-color",$o.render_color(sn),sn),$o.add_property("--kb-nav-dropdown-link-color-hover",$o.render_color(gn),gn),$o.add_property("--kb-nav-dropdown-link-color-active",$o.render_color(un),un),$o.add_property("--kb-nav-dropdown-link-color-active-ancestor",$o.render_color(un),rn&&un),$o.add_property("--kb-nav-dropdown-background",$o.render_color(pn)),$o.add_property("--kb-nav-dropdown-link-background-hover",$o.render_color(bn)),$o.add_property("--kb-nav-dropdown-link-background-active",$o.render_color(vn)),$o.add_property("--kb-nav-dropdown-border-top",$o.render_border(Eo,Bo,zo,a,"top")),$o.add_property("--kb-nav-dropdown-border-right",$o.render_border(Eo,Bo,zo,a,"right")),$o.add_property("--kb-nav-dropdown-border-bottom",$o.render_border(Eo,Bo,zo,a,"bottom")),$o.add_property("--kb-nav-dropdown-border-left",$o.render_border(Eo,Bo,zo,a,"left")),$o.add_property("--kb-nav-dropdown-border-top-left-radius",(0,uo.getSpacingOptionOutput)(Nn,Lo)),$o.add_property("--kb-nav-dropdown-border-top-right-radius",(0,uo.getSpacingOptionOutput)(Fn,Lo)),$o.add_property("--kb-nav-dropdown-border-bottom-right-radius",(0,uo.getSpacingOptionOutput)(On,Lo)),$o.add_property("--kb-nav-dropdown-border-bottom-left-radius",(0,uo.getSpacingOptionOutput)(Un,Lo)),jo&&parseFloat(jo)&&$o.add_property("--kb-nav-grid-columns",`repeat(${jo}, 1fr)`),$o.render_measure_output(R,I,P,a,"--kb-nav-dropdown-link-padding",L),$o.render_measure_output(N,F,O,a,"--kb-nav-dropdown-link-margin",U),$o.render_measure_output(S,A,D,a,"--kb-nav-top-link-padding",x),$o.render_measure_output(H,E,B,a,"--kb-nav-top-link-margin",z),$o.render_measure_output(R,I,P,a,"--kb-nav-link-padding",L),$o.render_measure_output(N,F,O,a,"--kb-nav-link-margin",U),$o.add_property("--kb-nav-dropdown-link-padding-top",$o.render_size(xn,So),xn),$o.add_property("--kb-nav-dropdown-link-padding-bottom",$o.render_size(xn,So),xn),!isNaN(parseFloat(on))&&isFinite(on)&&$o.add_property("--kb-nav-row-gap",$o.render_size(on,Z)),$o.add_property("--kb-nav-top-link-description-padding-top",$o.render_size(Hn,At)),$o.add_property("--kb-nav-top-link-description-color",$o.render_color(En)),$o.add_property("--kb-nav-top-link-description-color-hover",$o.render_color(Bn)),$o.add_property("--kb-nav-top-link-description-color-active",$o.render_color(zn)),$o.add_property("--kb-nav-dropdown-link-description-padding-top",$o.render_size(Rn,Wt)),$o.add_property("--kb-nav-dropdown-link-description-color",$o.render_color(In)),$o.add_property("--kb-nav-dropdown-link-description-color-hover",$o.render_color(Pn)),$o.add_property("--kb-nav-dropdown-link-description-color-active",$o.render_color(Ln)),$o.render_button_styles_with_states({colorBase:"linkColor",backgroundBase:"background",backgroundTypeBase:"backgroundType",backgroundGradientBase:"backgroundGradient",borderBase:"border",borderRadiusBase:"borderRadius",borderRadiusUnitBase:"borderRadiusUnit",shadowBase:"shadow",renderAsVars:!0,varBase:"--kb-nav-top-link-"},i,a),"1"==r?.["kadence/headerIsTransparent"]&&($o.add_property("--kb-nav-top-link-color",$o.render_color(kn)),$o.add_property("--kb-nav-top-link-color-hover",$o.render_color(hn)),$o.add_property("--kb-nav-top-link-color-active",$o.render_color(fn)),$o.add_property("--kb-nav-top-link-color-active-ancestor",$o.render_color(fn),rn),$o.add_property("--kb-nav-top-link-background",$o.render_color(mn)),$o.add_property("--kb-nav-top-link-background-hover",$o.render_color(yn)),$o.add_property("--kb-nav-top-link-background-active",$o.render_color(wn)),$o.add_property("--kb-nav-top-link-background-active-ancestor",$o.render_color(wn)),"vertical"==nn?($o.add_property("--kb-nav-link-wrap-border-bottom",$n),$o.add_property("--kb-nav-dropdown-toggle-border-left",$n)):$o.add_property("--kb-nav-top-not-last-link-border-right",$n)),"1"==r?.["kadence/headerIsSticky"]&&($o.add_property("--kb-nav-top-link-color",$o.render_color(Tn)),$o.add_property("--kb-nav-top-link-color-hover",$o.render_color(Cn)),$o.add_property("--kb-nav-top-link-color-active",$o.render_color(An)),$o.add_property("--kb-nav-top-link-color-active-ancestor",$o.render_color(An),rn),$o.add_property("--kb-nav-top-link-background",$o.render_color(Mn)),$o.add_property("--kb-nav-top-link-background-hover",$o.render_color(Sn)),$o.add_property("--kb-nav-top-link-background-active",$o.render_color(Dn)),$o.add_property("--kb-nav-top-link-background-active-ancestor",$o.render_color(Dn)),"vertical"==nn?($o.add_property("--kb-nav-link-wrap-border-bottom",jn),$o.add_property("--kb-nav-dropdown-toggle-border-left",jn)):$o.add_property("--kb-nav-top-not-last-link-border-right",jn)),"vertical"!=nn?($o.add_property("--kb-nav-dropdown-link-width",$o.render_size(ln,wo)),$o.add_property("--kb-nav-top-not-last-link-border-right",qn),$o.add_property("--kb-nav-top-not-last-link-border-bottom","var(--kb-nav-link-border-bottom)"),$o.add_property("--kb-nav-dropdown-toggle-border-left","var(--kb-nav-link-border-left)"),Ho?.[0]?.enable&&$o.add_property("--kb-nav-dropdown-box-shadow",$o.render_shadow(Ho[0])),"center"==Vn?($o.add_property("--kb-nav-dropdown-show-left","50%"),$o.add_property("--kb-nav-dropdown-show-right","unset"),$o.add_property("--kb-nav-dropdown-show-transform-x","-50%"),$o.add_property("--kb-nav-dropdown-hide-transform-x","-50%")):"right"==Vn?($o.add_property("--kb-nav-dropdown-show-right","0px"),$o.add_property("--kb-nav-dropdown-show-left","unset"),$o.add_property("--kb-nav-dropdown-show-transform-x","0px"),$o.add_property("--kb-nav-dropdown-hide-transform-x","0px")):"left"==Vn&&($o.add_property("--kb-nav-dropdown-show-left","0px"),$o.add_property("--kb-nav-dropdown-show-right","unset"),$o.add_property("--kb-nav-dropdown-show-transform-x","0px"),$o.add_property("--kb-nav-dropdown-hide-transform-x","0px"))):($o.add_property("--kb-nav-top-not-last-link-border-bottom",qn),$o.add_property("--kb-nav-dropdown-toggle-border-left",qn),$o.add_property("--kb-nav-top-not-last-link-border-right","var(--kb-nav-link-border-right)")),Wn){$o.add_property("--kb-nav-top-link-align",Wn);const e="right"==Wn?"end":"center"==Wn?"center":"start";$o.add_property("--kb-nav-top-link-flex-justify",e),$o.add_property("--kb-nav-top-link-media-container-align-self",e)}if(Gn){$o.add_property("--kb-nav-dropdown-link-align",Gn);const e="right"==Gn?"end":"center"==Gn?"center":"start";$o.add_property("--kb-nav-dropdown-link-flex-justify",e),$o.add_property("--kb-nav-dropdown-link-media-container-align-self",e)}$o.set_selector(`.wp-block-kadence-navigation${l} .sub-menu > .menu-item:not(:last-of-type), .wp-block-kadence-navigation${l} .sub-menu.mega-menu > .menu-item > .kb-link-wrap > .kb-nav-link-content`),$o.add_property("--kb-nav-menu-item-border-bottom",Kn),$o.set_selector(`.wp-block-kadence-navigation${l} > .navigation > .menu-container > .menu`),$o.render_measure_output(u,v,k,a,"--kb-nav-margin",_),$o.render_measure_output(s,p,g,a,"--kb-nav-padding",b),$o.set_selector(`.wp-block-kadence-navigation${l} .menu-container > .menu > .wp-block-kadence-navigation-link > .kb-link-wrap > .kb-nav-link-content`),$o.render_font(ft||[],a),$o.set_selector(`.wp-block-kadence-navigation${l} .sub-menu > .menu-item > .kb-link-wrap > .kb-nav-link-content`),$o.render_font(wt||[],a),$o.set_selector(`.wp-block-kadence-navigation${l} .menu-container > .menu > .wp-block-kadence-navigation-link > .kb-link-wrap .kb-nav-label-description`),$o.render_font(Tt||[],a),$o.set_selector(`.wp-block-kadence-navigation${l} .sub-menu > .menu-item > .kb-link-wrap .kb-nav-label-description`),$o.render_font(Ot||[],a),an.includes("fullheight")&&($o.set_selector(`.wp-block-kadence-header .wp-block-kadence-navigation${l}`),$o.add_property("height","100%")),o&&($o.set_selector(".block-editor-block-popover__inbetween-container .block-editor-block-list__insertion-point.is-with-inserter"),$o.add_property("display","none"));const Xn=$o.css_output();return(0,n.createElement)("style",null,`${Xn}`)}const fo=(0,v.createElement)(h.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},(0,v.createElement)(h.Path,{d:"M10 1c-5 0-9 4-9 9s4 9 9 9 9-4 9-9-4-9-9-9zm0 16c-3.9 0-7-3.1-7-7s3.1-7 7-7 7 3.1 7 7-3.1 7-7 7zm1-11H9v3H6v2h3v3h2v-3h3V9h-3V6zM10 1c-5 0-9 4-9 9s4 9 9 9 9-4 9-9-4-9-9-9zm0 16c-3.9 0-7-3.1-7-7s3.1-7 7-7 7 3.1 7 7-3.1 7-7 7zm1-11H9v3H6v2h3v3h2v-3h3V9h-3V6z"})),wo=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"kadence/navigation","title":"Navigation (Adv)","category":"kadence-blocks","description":"An advanced navigation block.","keywords":["menu","navigation","links"],"textdomain":"kadence-blocks","attributes":{"uniqueID":{"type":"string"},"id":{"type":"integer","default":0},"templateKey":{"type":"string","default":""},"makePost":{"type":"boolean","default":false}},"supports":{"align":["wide","full"],"reusable":false,"ariaLabel":true,"html":false,"customClassName":false},"usesContext":["kadence/headerPostId","kadence/headerIsSticky","kadence/headerIsTransparent"]}'),To=/[\s#]/g,Mo=function(e){const{attributes:t,setAttributes:o,clientId:a,direct:c,id:k,isSelected:m,context:h}=e,{uniqueID:y,templateKey:f}=t,{previewDevice:w,childSelected:C,offCanvasParent:S}=(0,g.useSelect)((e=>({previewDevice:e("kadenceblocks/data").getPreviewDeviceType(),childSelected:e("core/block-editor").hasSelectedInnerBlock(a,!0),offCanvasParent:e("core/block-editor").getBlockParentsByBlockName(a,"kadence/off-canvas").slice(-1)[0]})),[a]),[A,D]=(0,v.useState)("general"),[x,H]=(0,v.useState)([]),[E,B]=(0,v.useState)([]),[z,R]=(0,v.useState)(!1),I=()=>{R(!1)},P=(0,uo.mouseOverVisualizer)(),L=(0,uo.mouseOverVisualizer)(),[N,F]=((0,uo.mouseOverVisualizer)(),Co("meta")),O={padding:N?._kad_navigation_padding,tabletPadding:N?._kad_navigation_tabletPadding,mobilePadding:N?._kad_navigation_mobilePadding,paddingUnit:N?._kad_navigation_paddingUnit,margin:N?._kad_navigation_margin,tabletMargin:N?._kad_navigation_tabletMargin,mobileMargin:N?._kad_navigation_mobileMargin,marginUnit:N?._kad_navigation_marginUnit,paddingDropdown:N?._kad_navigation_paddingDropdown,tabletPaddingDropdown:N?._kad_navigation_tabletPaddingDropdown,mobilePaddingDropdown:N?._kad_navigation_mobilePaddingDropdown,paddingDropdownUnit:N?._kad_navigation_paddingDropdownUnit,marginDropdown:N?._kad_navigation_marginDropdown,tabletMarginDropdown:N?._kad_navigation_tabletMarginDropdown,mobileMarginDropdown:N?._kad_navigation_mobileMarginDropdown,marginDropdownUnit:N?._kad_navigation_marginDropdownUnit,paddingLink:N?._kad_navigation_paddingLink,tabletPaddingLink:N?._kad_navigation_tabletPaddingLink,mobilePaddingLink:N?._kad_navigation_mobilePaddingLink,paddingLinkUnit:N?._kad_navigation_paddingLinkUnit,marginLink:N?._kad_navigation_marginLink,tabletMarginLink:N?._kad_navigation_tabletMarginLink,mobileMarginLink:N?._kad_navigation_mobileMarginLink,marginLinkUnit:N?._kad_navigation_marginLinkUnit,paddingDropdownLink:N?._kad_navigation_paddingDropdownLink,tabletPaddingDropdownLink:N?._kad_navigation_tabletPaddingDropdownLink,mobilePaddingDropdownLink:N?._kad_navigation_mobilePaddingDropdownLink,paddingDropdownLinkUnit:N?._kad_navigation_paddingDropdownLinkUnit,marginDropdownLink:N?._kad_navigation_marginDropdownLink,tabletMarginDropdownLink:N?._kad_navigation_tabletMarginDropdownLink,mobileMarginDropdownLink:N?._kad_navigation_mobileMarginDropdownLink,marginDropdownLinkUnit:N?._kad_navigation_marginDropdownLinkUnit,className:N?._kad_navigation_className,anchor:N?._kad_navigation_anchor,orientation:N?._kad_navigation_orientation,orientationTablet:N?._kad_navigation_orientationTablet,orientationMobile:N?._kad_navigation_orientationMobile,style:N?._kad_navigation_style,styleTablet:N?._kad_navigation_styleTablet,styleMobile:N?._kad_navigation_styleMobile,spacing:N?._kad_navigation_spacing,spacingTablet:N?._kad_navigation_spacingTablet,spacingMobile:N?._kad_navigation_spacingMobile,spacingUnit:N?._kad_navigation_spacingUnit,stretchFill:N?._kad_navigation_stretchFill,stretchFillTablet:N?._kad_navigation_stretchFillTablet,stretchFillMobile:N?._kad_navigation_stretchFillMobile,horizontalLayout:N?._kad_navigation_horizontalLayout,horizontalLayoutTablet:N?._kad_navigation_horizontalLayoutTablet,horizontalLayoutMobile:N?._kad_navigation_horizontalLayoutMobile,horizontalGrid:N?._kad_navigation_horizontalGrid,horizontalGridTablet:N?._kad_navigation_horizontalGridTablet,horizontalGridMobile:N?._kad_navigation_horizontalGridMobile,parentActive:N?._kad_navigation_parentActive,parentActiveTablet:N?._kad_navigation_parentActiveTablet,parentActiveMobile:N?._kad_navigation_parentActiveMobile,collapseSubMenus:N?._kad_navigation_collapseSubMenus,collapseSubMenusTablet:N?._kad_navigation_collapseSubMenusTablet,collapseSubMenusMobile:N?._kad_navigation_collapseSubMenusMobile,parentTogglesMenus:N?._kad_navigation_parentTogglesMenus,parentTogglesMenusTablet:N?._kad_navigation_parentTogglesMenusTablet,parentTogglesMenusMobile:N?._kad_navigation_parentTogglesMenusMobile,linkColor:N?._kad_navigation_linkColor,linkColorHover:N?._kad_navigation_linkColorHover,linkColorActive:N?._kad_navigation_linkColorActive,linkColorTablet:N?._kad_navigation_linkColorTablet,linkColorHoverTablet:N?._kad_navigation_linkColorHoverTablet,linkColorActiveTablet:N?._kad_navigation_linkColorActiveTablet,linkColorMobile:N?._kad_navigation_linkColorMobile,linkColorHoverMobile:N?._kad_navigation_linkColorHoverMobile,linkColorActiveMobile:N?._kad_navigation_linkColorActiveMobile,background:N?._kad_navigation_background,backgroundHover:N?._kad_navigation_backgroundHover,backgroundActive:N?._kad_navigation_backgroundActive,backgroundTablet:N?._kad_navigation_backgroundTablet,backgroundHoverTablet:N?._kad_navigation_backgroundHoverTablet,backgroundActiveTablet:N?._kad_navigation_backgroundActiveTablet,backgroundMobile:N?._kad_navigation_backgroundMobile,backgroundHoverMobile:N?._kad_navigation_backgroundHoverMobile,backgroundActiveMobile:N?._kad_navigation_backgroundActiveMobile,linkColorDropdown:N?._kad_navigation_linkColorDropdown,linkColorDropdownHover:N?._kad_navigation_linkColorDropdownHover,linkColorDropdownActive:N?._kad_navigation_linkColorDropdownActive,linkColorDropdownTablet:N?._kad_navigation_linkColorDropdownTablet,linkColorDropdownHoverTablet:N?._kad_navigation_linkColorDropdownHoverTablet,linkColorDropdownActiveTablet:N?._kad_navigation_linkColorDropdownActiveTablet,linkColorDropdownMobile:N?._kad_navigation_linkColorDropdownMobile,linkColorDropdownHoverMobile:N?._kad_navigation_linkColorDropdownHoverMobile,linkColorDropdownActiveMobile:N?._kad_navigation_linkColorDropdownActiveMobile,backgroundDropdown:N?._kad_navigation_backgroundDropdown,backgroundDropdownHover:N?._kad_navigation_backgroundDropdownHover,backgroundDropdownActive:N?._kad_navigation_backgroundDropdownActive,backgroundDropdownTablet:N?._kad_navigation_backgroundDropdownTablet,backgroundDropdownHoverTablet:N?._kad_navigation_backgroundDropdownHoverTablet,backgroundDropdownActiveTablet:N?._kad_navigation_backgroundDropdownActiveTablet,backgroundDropdownMobile:N?._kad_navigation_backgroundDropdownMobile,backgroundDropdownHoverMobile:N?._kad_navigation_backgroundDropdownHoverMobile,backgroundDropdownActiveMobile:N?._kad_navigation_backgroundDropdownActiveMobile,linkColorTransparent:N?._kad_navigation_linkColorTransparent,linkColorTransparentHover:N?._kad_navigation_linkColorTransparentHover,linkColorTransparentActive:N?._kad_navigation_linkColorTransparentActive,linkColorTransparentTablet:N?._kad_navigation_linkColorTransparentTablet,linkColorTransparentHoverTablet:N?._kad_navigation_linkColorTransparentHoverTablet,linkColorTransparentActiveTablet:N?._kad_navigation_linkColorTransparentActiveTablet,linkColorTransparentMobile:N?._kad_navigation_linkColorTransparentMobile,linkColorTransparentHoverMobile:N?._kad_navigation_linkColorTransparentHoverMobile,linkColorTransparentActiveMobile:N?._kad_navigation_linkColorTransparentActiveMobile,backgroundTransparent:N?._kad_navigation_backgroundTransparent,backgroundTransparentHover:N?._kad_navigation_backgroundTransparentHover,backgroundTransparentActive:N?._kad_navigation_backgroundTransparentActive,backgroundTransparentTablet:N?._kad_navigation_backgroundTransparentTablet,backgroundTransparentHoverTablet:N?._kad_navigation_backgroundTransparentHoverTablet,backgroundTransparentActiveTablet:N?._kad_navigation_backgroundTransparentActiveTablet,backgroundTransparentMobile:N?._kad_navigation_backgroundTransparentMobile,backgroundTransparentHoverMobile:N?._kad_navigation_backgroundTransparentHoverMobile,backgroundTransparentActiveMobile:N?._kad_navigation_backgroundTransparentActiveMobile,linkColorSticky:N?._kad_navigation_linkColorSticky,linkColorStickyHover:N?._kad_navigation_linkColorStickyHover,linkColorStickyActive:N?._kad_navigation_linkColorStickyActive,linkColorStickyTablet:N?._kad_navigation_linkColorStickyTablet,linkColorStickyHoverTablet:N?._kad_navigation_linkColorStickyHoverTablet,linkColorStickyActiveTablet:N?._kad_navigation_linkColorStickyActiveTablet,linkColorStickyMobile:N?._kad_navigation_linkColorStickyMobile,linkColorStickyHoverMobile:N?._kad_navigation_linkColorStickyHoverMobile,linkColorStickyActiveMobile:N?._kad_navigation_linkColorStickyActiveMobile,backgroundSticky:N?._kad_navigation_backgroundSticky,backgroundStickyHover:N?._kad_navigation_backgroundStickyHover,backgroundStickyActive:N?._kad_navigation_backgroundStickyActive,backgroundStickyTablet:N?._kad_navigation_backgroundStickyTablet,backgroundStickyHoverTablet:N?._kad_navigation_backgroundStickyHoverTablet,backgroundStickyActiveTablet:N?._kad_navigation_backgroundStickyActiveTablet,backgroundStickyMobile:N?._kad_navigation_backgroundStickyMobile,backgroundStickyHoverMobile:N?._kad_navigation_backgroundStickyHoverMobile,backgroundStickyActiveMobile:N?._kad_navigation_backgroundStickyActiveMobile,typography:N?._kad_navigation_typography?N?._kad_navigation_typography:[{size:["","",""],sizeType:"px",lineHeight:["","",""],lineType:"",letterSpacing:["","",""],letterType:"px",textTransform:"",family:"",google:!1,style:"",weight:"",variant:"",subset:"",loadGoogle:!0}],dropdownTypography:N?._kad_navigation_dropdownTypography?N?._kad_navigation_dropdownTypography:[{size:["","",""],sizeType:"px",lineHeight:["","",""],lineType:"",letterSpacing:["","",""],letterType:"px",textTransform:"",family:"",google:!1,style:"",weight:"",variant:"",subset:"",loadGoogle:!0}],descriptionTypography:N?._kad_navigation_descriptionTypography?N?._kad_navigation_descriptionTypography:[{size:["","",""],sizeType:"px",lineHeight:["","",""],lineType:"",letterSpacing:["","",""],letterType:"px",textTransform:"",family:"",google:!1,style:"",weight:"",variant:"",subset:"",loadGoogle:!0}],dropdownDescriptionTypography:N?._kad_navigation_dropdownDescriptionTypography?N?._kad_navigation_dropdownDescriptionTypography:[{size:["","",""],sizeType:"px",lineHeight:["","",""],lineType:"",letterSpacing:["","",""],letterType:"px",textTransform:"",family:"",google:!1,style:"",weight:"",variant:"",subset:"",loadGoogle:!0}],divider:N?._kad_navigation_divider,dividerTablet:N?._kad_navigation_dividerTablet,dividerMobile:N?._kad_navigation_dividerMobile,dropdownDivider:N?._kad_navigation_dropdownDivider,dropdownDividerTablet:N?._kad_navigation_dropdownDividerTablet,dropdownDividerMobile:N?._kad_navigation_dropdownDividerMobile,transparentDivider:N?._kad_navigation_transparentDivider,transparentDividerTablet:N?._kad_navigation_transparentDividerTablet,transparentDividerMobile:N?._kad_navigation_transparentDividerMobile,stickyDivider:N?._kad_navigation_stickyDivider,stickyDividerTablet:N?._kad_navigation_stickyDividerTablet,stickyDividerMobile:N?._kad_navigation_stickyDividerMobile,dropdownWidth:N?._kad_navigation_dropdownWidth,dropdownWidthTablet:N?._kad_navigation_dropdownWidthTablet,dropdownWidthMobile:N?._kad_navigation_dropdownWidthMobile,dropdownWidthUnit:N?._kad_navigation_dropdownWidthUnit,dropdownVerticalSpacing:N?._kad_navigation_dropdownVerticalSpacing,dropdownVerticalSpacingTablet:N?._kad_navigation_dropdownVerticalSpacingTablet,dropdownVerticalSpacingMobile:N?._kad_navigation_dropdownVerticalSpacingMobile,dropdownVerticalSpacingUnit:N?._kad_navigation_dropdownVerticalSpacingUnit,dropdownHorizontalAlignment:N?._kad_navigation_dropdownHorizontalAlignment,dropdownHorizontalAlignmentTablet:N?._kad_navigation_dropdownHorizontalAlignmentTablet,dropdownHorizontalAlignmentMobile:N?._kad_navigation_dropdownHorizontalAlignmentMobile,dropdownHorizontalAlignmentCustom:N?._kad_navigation_dropdownHorizontalAlignmentCustom,dropdownHorizontalAlignmentCustomTablet:N?._kad_navigation_dropdownHorizontalAlignmentCustomTablet,dropdownHorizontalAlignmentCustomMobile:N?._kad_navigation_dropdownHorizontalAlignmentCustomMobile,dropdownHorizontalAlignmentCustomUnit:N?._kad_navigation_dropdownHorizontalAlignmentCustomUnit,dropdownShadow:N?._kad_navigation_dropdownShadow,dropdownReveal:N?._kad_navigation_dropdownReveal,dropdownRevealTablet:N?._kad_navigation_dropdownRevealTablet,dropdownRevealMobile:N?._kad_navigation_dropdownRevealMobile,dropdownBorder:N?._kad_navigation_dropdownBorder,dropdownBorderTablet:N?._kad_navigation_dropdownBorderTablet,dropdownBorderMobile:N?._kad_navigation_dropdownBorderMobile,dropdownBorderRadius:N?._kad_navigation_dropdownBorderRadius,dropdownBorderRadiusTablet:N?._kad_navigation_dropdownBorderRadiusTablet,dropdownBorderRadiusMobile:N?._kad_navigation_dropdownBorderRadiusMobile,dropdownBorderRadiusUnit:N?._kad_navigation_dropdownBorderRadiusUnit,backgroundType:N?._kad_navigation_backgroundType,backgroundTypeHover:N?._kad_navigation_backgroundTypeHover,backgroundTypeActive:N?._kad_navigation_backgroundTypeActive,backgroundGradient:N?._kad_navigation_backgroundGradient,backgroundGradientHover:N?._kad_navigation_backgroundGradientHover,backgroundGradientActive:N?._kad_navigation_backgroundGradientActive,border:N?._kad_navigation_border,borderTablet:N?._kad_navigation_borderTablet,borderMobile:N?._kad_navigation_borderMobile,borderHover:N?._kad_navigation_borderHover,borderHoverTablet:N?._kad_navigation_borderHoverTablet,borderHoverMobile:N?._kad_navigation_borderHoverMobile,borderActive:N?._kad_navigation_borderActive,borderActiveTablet:N?._kad_navigation_borderActiveTablet,borderActiveMobile:N?._kad_navigation_borderActiveMobile,borderRadius:N?._kad_navigation_borderRadius,borderRadiusTablet:N?._kad_navigation_borderRadiusTablet,borderRadiusMobile:N?._kad_navigation_borderRadiusMobile,borderRadiusHover:N?._kad_navigation_borderRadiusHover,borderRadiusHoverTablet:N?._kad_navigation_borderRadiusHoverTablet,borderRadiusHoverMobile:N?._kad_navigation_borderRadiusHoverMobile,borderRadiusActive:N?._kad_navigation_borderRadiusActive,borderRadiusActiveTablet:N?._kad_navigation_borderRadiusActiveTablet,borderRadiusActiveMobile:N?._kad_navigation_borderRadiusActiveMobile,borderUnit:N?._kad_navigation_borderUnit,borderUnitHover:N?._kad_navigation_borderUnitHover,borderUnitActive:N?._kad_navigation_borderUnitActive,shadow:N?._kad_navigation_shadow,shadowHover:N?._kad_navigation_shadowHover,shadowActive:N?._kad_navigation_shadowActive,descriptionColor:N?._kad_navigation_descriptionColor,descriptionColorHover:N?._kad_navigation_descriptionColorHover,descriptionColorActive:N?._kad_navigation_descriptionColorActive,descriptionColorTablet:N?._kad_navigation_descriptionColorTablet,descriptionColorHoverTablet:N?._kad_navigation_descriptionColorHoverTablet,descriptionColorActiveTablet:N?._kad_navigation_descriptionColorActiveTablet,descriptionColorMobile:N?._kad_navigation_descriptionColorMobile,descriptionColorHoverMobile:N?._kad_navigation_descriptionColorHoverMobile,descriptionColorActiveMobile:N?._kad_navigation_descriptionColorActiveMobile,descriptionSpacing:N?._kad_navigation_descriptionSpacing,descriptionSpacingTablet:N?._kad_navigation_descriptionSpacingTablet,descriptionSpacingMobile:N?._kad_navigation_descriptionSpacingMobile,descriptionSpacingUnit:N?._kad_navigation_descriptionSpacingUnit,descriptionPositioning:N?._kad_navigation_descriptionPositioning,descriptionPositioningTablet:N?._kad_navigation_descriptionPositioningTablet,descriptionPositioningMobile:N?._kad_navigation_descriptionPositioningMobile,dropdownDescriptionColor:N?._kad_navigation_dropdownDescriptionColor,dropdownDescriptionColorHover:N?._kad_navigation_dropdownDescriptionColorHover,dropdownDescriptionColorActive:N?._kad_navigation_dropdownDescriptionColorActive,dropdownDescriptionColorTablet:N?._kad_navigation_dropdownDescriptionColorTablet,dropdownDescriptionColorHoverTablet:N?._kad_navigation_dropdownDescriptionColorHoverTablet,dropdownDescriptionColorActiveTablet:N?._kad_navigation_dropdownDescriptionColorActiveTablet,dropdownDescriptionColorMobile:N?._kad_navigation_dropdownDescriptionColorMobile,dropdownDescriptionColorHoverMobile:N?._kad_navigation_dropdownDescriptionColorHoverMobile,dropdownDescriptionColorActiveMobile:N?._kad_navigation_dropdownDescriptionColorActiveMobile,dropdownDescriptionSpacing:N?._kad_navigation_dropdownDescriptionSpacing,dropdownDescriptionSpacingTablet:N?._kad_navigation_dropdownDescriptionSpacingTablet,dropdownDescriptionSpacingMobile:N?._kad_navigation_dropdownDescriptionSpacingMobile,dropdownDescriptionSpacingUnit:N?._kad_navigation_dropdownDescriptionSpacingUnit,dropdownDescriptionPositioning:N?._kad_navigation_dropdownDescriptionPositioning,dropdownDescriptionPositioningTablet:N?._kad_navigation_dropdownDescriptionPositioningTablet,dropdownDescriptionPositioningMobile:N?._kad_navigation_dropdownDescriptionPositioningMobile,dropdownLinkHorizontalAlignment:N?._kad_navigation_dropdownLinkHorizontalAlignment,dropdownLinkHorizontalAlignmentTablet:N?._kad_navigation_dropdownLinkHorizontalAlignmentTablet,dropdownLinkHorizontalAlignmentMobile:N?._kad_navigation_dropdownLinkHorizontalAlignmentMobile,linkHorizontalAlignment:N?._kad_navigation_linkHorizontalAlignment,linkHorizontalAlignmentTablet:N?._kad_navigation_linkHorizontalAlignmentTablet,linkHorizontalAlignmentMobile:N?._kad_navigation_linkHorizontalAlignmentMobile,enableScrollSpy:N?._kad_navigation_enableScrollSpy,scrollSpyOffsetManual:N?._kad_navigation_scrollSpyOffsetManual,scrollSpyOffset:N?._kad_navigation_scrollSpyOffset,scrollSpyOffsetTablet:N?._kad_navigation_scrollSpyOffsetTablet,scrollSpyOffsetMobile:N?._kad_navigation_scrollSpyOffsetMobile},{padding:U,tabletPadding:V,mobilePadding:G,paddingUnit:W,margin:q,tabletMargin:K,mobileMargin:$,marginUnit:j,paddingDropdown:X,tabletPaddingDropdown:Y,mobilePaddingDropdown:Z,paddingDropdownUnit:J,marginDropdown:Q,tabletMarginDropdown:ee,mobileMarginDropdown:te,marginDropdownUnit:oe,paddingLink:ne,tabletPaddingLink:ae,mobilePaddingLink:ie,paddingLinkUnit:re,marginLink:le,tabletMarginLink:de,mobileMarginLink:ce,marginLinkUnit:se,paddingDropdownLink:pe,tabletPaddingDropdownLink:ge,mobilePaddingDropdownLink:be,paddingDropdownLinkUnit:ue,marginDropdownLink:ve,tabletMarginDropdownLink:ke,mobileMarginDropdownLink:_e,marginDropdownLinkUnit:me,border:he,borderRadius:ye,borderColor:fe,borderUnit:we,className:Te,anchor:Me,orientation:Ce,orientationTablet:Se,orientationMobile:Ae,style:De,styleTablet:xe,styleMobile:He,spacing:Ee,spacingTablet:Be,spacingMobile:ze,spacingUnit:Re,horizontalLayout:Ie,horizontalLayoutTablet:Pe,horizontalLayoutMobile:Le,horizontalGrid:Ne,horizontalGridTablet:Fe,horizontalGridMobile:Oe,stretchFill:Ue,stretchFillTablet:Ve,stretchFillMobile:Ge,parentActive:We,parentActiveTablet:qe,parentActiveMobile:Ke,collapseSubMenus:$e,collapseSubMenusTablet:je,collapseSubMenusMobile:Xe,parentTogglesMenus:Ye,parentTogglesMenusTablet:Ze,parentTogglesMenusMobile:Je,linkColor:Qe,linkColorHover:et,linkColorActive:tt,linkColorTablet:ot,linkColorHoverTablet:nt,linkColorActiveTablet:at,linkColorMobile:it,linkColorHoverMobile:rt,linkColorActiveMobile:lt,background:dt,backgroundHover:ct,backgroundActive:st,backgroundTablet:pt,backgroundHoverTablet:gt,backgroundActiveTablet:bt,backgroundMobile:ut,backgroundHoverMobile:vt,backgroundActiveMobile:kt,linkColorDropdown:_t,linkColorDropdownHover:mt,linkColorDropdownActive:ht,linkColorDropdownTablet:yt,linkColorDropdownHoverTablet:ft,linkColorDropdownActiveTablet:wt,linkColorDropdownMobile:Tt,linkColorDropdownHoverMobile:Mt,linkColorDropdownActiveMobile:Ct,backgroundDropdown:St,backgroundDropdownHover:At,backgroundDropdownActive:Dt,backgroundDropdownTablet:xt,backgroundDropdownHoverTablet:Ht,backgroundDropdownActiveTablet:Et,backgroundDropdownMobile:Bt,backgroundDropdownHoverMobile:zt,backgroundDropdownActiveMobile:Rt,linkColorTransparent:It,linkColorTransparentHover:Pt,linkColorTransparentActive:Lt,linkColorTransparentTablet:Nt,linkColorTransparentHoverTablet:Ft,linkColorTransparentActiveTablet:Ot,linkColorTransparentMobile:Ut,linkColorTransparentHoverMobile:Vt,linkColorTransparentActiveMobile:Gt,backgroundTransparent:Wt,backgroundTransparentHover:qt,backgroundTransparentActive:Kt,backgroundTransparentTablet:$t,backgroundTransparentHoverTablet:jt,backgroundTransparentActiveTablet:Xt,backgroundTransparentMobile:Yt,backgroundTransparentHoverMobile:Zt,backgroundTransparentActiveMobile:Jt,linkColorSticky:Qt,linkColorStickyHover:eo,linkColorStickyActive:to,linkColorStickyTablet:oo,linkColorStickyHoverTablet:no,linkColorStickyActiveTablet:ao,linkColorStickyMobile:io,linkColorStickyHoverMobile:ro,linkColorStickyActiveMobile:lo,backgroundSticky:co,backgroundStickyHover:so,backgroundStickyActive:po,backgroundStickyTablet:go,backgroundStickyHoverTablet:Mo,backgroundStickyActiveTablet:So,backgroundStickyMobile:Ao,backgroundStickyHoverMobile:Do,backgroundStickyActiveMobile:xo,typography:Ho,dropdownTypography:Eo,descriptionTypography:Bo,dropdownDescriptionTypography:zo,divider:Ro,dividerTablet:Io,dividerMobile:Po,dropdownDivider:Lo,dropdownDividerTablet:No,dropdownDividerMobile:Fo,transparentDivider:Oo,transparentDividerTablet:Uo,transparentDividerMobile:Vo,stickyDivider:Go,stickyDividerTablet:Wo,stickyDividerMobile:qo,dropdownWidth:Ko,dropdownWidthTablet:$o,dropdownWidthMobile:jo,dropdownWidthUnit:Xo,dropdownVerticalSpacing:Yo,dropdownVerticalSpacingTablet:Zo,dropdownVerticalSpacingMobile:Jo,dropdownVerticalSpacingUnit:Qo,dropdownHorizontalAlignment:en,dropdownHorizontalAlignmentTablet:tn,dropdownHorizontalAlignmentMobile:on,dropdownShadow:nn,dropdownReveal:an,dropdownRevealTablet:rn,dropdownRevealMobile:ln,dropdownBorder:dn,dropdownBorderTablet:cn,dropdownBorderMobile:sn,dropdownBorderRadius:pn,dropdownBorderRadiusTablet:gn,dropdownBorderRadiusMobile:bn,dropdownBorderRadiusUnit:un,descriptionSpacing:vn,descriptionSpacingTablet:kn,descriptionSpacingMobile:mn,descriptionSpacingUnit:hn,dropdownDescriptionSpacing:yn,dropdownDescriptionSpacingTablet:fn,dropdownDescriptionSpacingMobile:wn,dropdownDescriptionSpacingUnit:Tn,descriptionPositioning:Mn,descriptionPositioningTablet:Cn,descriptionPositioningMobile:Sn,dropdownDescriptionPositioning:An,dropdownDescriptionPositioningTablet:Dn,dropdownDescriptionPositioningMobile:xn,dropdownLinkHorizontalAlignment:Hn,dropdownLinkHorizontalAlignmentTablet:En,dropdownLinkHorizontalAlignmentMobile:Bn,linkHorizontalAlignment:zn,linkHorizontalAlignmentTablet:Rn,linkHorizontalAlignmentMobile:In,enableScrollSpy:Pn,scrollSpyOffsetManual:Ln,scrollSpyOffset:Nn,scrollSpyOffsetTablet:Fn,scrollSpyOffsetMobile:On}=O,Un=!k&&f,Vn=Un?f.includes("vertical")?"vertical":"horizontal":(0,uo.getPreviewSize)(w,Ce,Se,Ae),Gn=(0,uo.getPreviewSize)(w,Ie,Pe,Le),Wn=(0,uo.getPreviewSize)(w,Ue,Ve,Ge),qn=(e,t)=>{F({...N,["_kad_navigation_"+t]:e})},Kn=e=>{const t=Ho.map(((t,o)=>(0===o&&(t={...t,...e}),t)));qn(t,"typography")},$n=e=>{const t=Eo.map(((t,o)=>(0===o&&(t={...t,...e}),t)));qn(t,"dropdownTypography")},jn=e=>{const t=Bo.map(((t,o)=>(0===o&&(t={...t,...e}),t)));qn(t,"descriptionTypography")},Xn=e=>{const t=zo.map(((t,o)=>(0===o&&(t={...t,...e}),t)));qn(t,"dropdownDescriptionTypography")},Yn=e=>{const t=nn.map(((t,o)=>(0===o&&(t={...t,...e}),t)));qn(t,"dropdownShadow")},Zn=s()("navigation",{[`navigation-desktop-dropdown-animation-${an||"none"}`]:!w||"Desktop"===w,[`navigation-tablet-dropdown-animation-${rn}`]:"Tablet"===w,[`navigation-mobile-dropdown-animation-${ln}`]:"Mobile"===w,[`navigation-desktop-style-${De}`]:!w||"Desktop"===w,[`navigation-tablet-style-${xe}`]:"Tablet"===w,[`navigation-mobile-style-${He}`]:"Mobile"===w,[`navigation-desktop-collapse-sub-menus-${$e}`]:!w||"Desktop"===w,[`navigation-tablet-collapse-sub-menus-${je}`]:"Tablet"===w,[`navigation-mobile-collapse-sub-menus-${Xe}`]:"Mobile"===w,[`navigation-desktop-parent-active-${We}`]:!w||"Desktop"===w,[`navigation-tablet-parent-active-${qe}`]:"Tablet"===w,[`navigation-mobile-parent-active-${Ke}`]:"Mobile"===w}),Jn=s()("menu",{"kb-navigation":!0,[`kb-navigation-${k}`]:!0}),[Qn,ea]=Co("title");let[ta,oa,na]=(0,u.useEntityBlockEditor)("postType","kadence_navigation",k);(0,v.useEffect)((()=>{ta&&0!==ta.length||(f?(e=>{e.includes("long")?H([(0,r.createBlock)("kadence/navigation",{},[(0,r.createBlock)("kadence/navigation-link",{label:"about",url:"#"}),(0,r.createBlock)("kadence/navigation-link",{label:"blog",url:"#"}),(0,r.createBlock)("kadence/navigation-link",{label:"contact",url:"#"}),(0,r.createBlock)("kadence/navigation-link",{label:"resources",url:"#"}),(0,r.createBlock)("kadence/navigation-link",{label:"locations",url:"#"}),(0,r.createBlock)("kadence/navigation-link",{label:"shop",url:"#"})])]):H([(0,r.createBlock)("kadence/navigation",{},[(0,r.createBlock)("kadence/navigation-link",{label:"about",url:"#"}),(0,r.createBlock)("kadence/navigation-link",{label:"blog",url:"#"}),(0,r.createBlock)("kadence/navigation-link",{label:"contact",url:"#"})])])})(f):H([(0,r.createBlock)("kadence/navigation",{})]))}),[]),(0,v.useEffect)((()=>{!N||O.orientation||O.orientationTablet||O.orientationMobile||!S||qn("vertical","orientation")}),[]),(0,v.useEffect)((()=>{m&&f&&!k&&o({templateKey:"",id:0})}),[m]),(0,v.useEffect)((()=>{let e=!0;return(async()=>{if(void 0!==window.kb_navigation_import_core&&k===window.kb_navigation_import_core.id){const t=await(e=>{const t=(e,o=0)=>e.filter((e=>e.parent===o)).map((o=>{const n=t(e,o.id);return{...o,children:n}})),o=e=>{const t=e.children.map((e=>o(e)));return(0,r.createBlock)("kadence/navigation-link",{kind:"custom",label:e.title.rendered,url:e.url,uniqueID:Math.random().toString(36).substr(2,9)},t)};return(async()=>{try{const n=(0,vo.addQueryArgs)("/wp/v2/menu-items",{menus:e,per_page:100}),a=await _()({path:n});return t(a).map((e=>o(e)))}catch(e){return console.error("Error fetching menu items:",e),!1}})()})(window.kb_navigation_import_core.coreMenuId);e&&(!1!==t&&(B(t),ea(window.kb_navigation_import_core.label)),window.kb_navigation_import_core=void 0)}})(),()=>{e=!1}}),[window.kb_navigation_import_core]),(0,v.useEffect)((()=>{0!==E.length&&(pa(E),B([]))}),[E]),ta&&0!==ta.length||(ta=x);const aa=(0,v.useMemo)((()=>(0,p.get)(ta,[0,"innerBlocks"],[])),[ta]),ia=(0,v.useMemo)((()=>(0,p.get)(ta,[0],{})),[ta]),ra=((0,i.__)("Home","kadence-blocks"),(0,l.useInnerBlocksProps)({className:Jn},{allowedBlocks:mo,prioritizedInserterBlocks:ho,value:c?void 0:aa,onInput:c?void 0:(e,t)=>oa([{...ia,innerBlocks:e}],t),onChange:c?void 0:(e,t)=>na([{...ia,innerBlocks:e}],t),templateLock:!1,defaultBlock:_o,renderAppender:!1})),la=(e="")=>{const t=O["collapseSubMenus"+e],o=O["parentTogglesMenus"+e],a=O["parentActive"+e],r=O["orientation"+e];return(0,n.createElement)(n.Fragment,null,"vertical"===r&&(0,n.createElement)(b.ToggleControl,{label:(0,i.__)("Collapse Vertical Sub Menus","kadence-blocks"),checked:t,onChange:t=>qn(t,"collapseSubMenus"+e)}),"vertical"===r&&t&&(0,n.createElement)(b.ToggleControl,{label:(0,i.__)("Entire Item Expands Vertical Sub Menu","kadence-blocks"),checked:o,onChange:t=>qn(t,"parentTogglesMenus"+e)}),(0,n.createElement)(b.ToggleControl,{label:(0,i.__)("Make Parent of Current Menu item Active","kadence-blocks"),checked:a,onChange:t=>qn(t,"parentActive"+e)}))},da=(e="",t="")=>{const o=O["linkColor"+t+e],a=O["background"+t+e],r=O["linkColor"+t+"Hover"+e],l=O["background"+t+"Hover"+e],d=O["linkColor"+t+"Active"+e],c=O["background"+t+"Active"+e];return(0,n.createElement)(n.Fragment,null,(0,n.createElement)(T.HoverToggleControl,{normal:(0,n.createElement)(n.Fragment,null,(0,n.createElement)(T.PopColorControl,{label:(0,i.__)("Link Color","kadence-blocks"),value:o,default:"",onChange:o=>qn(o,"linkColor"+t+e),key:"normal"}),(0,n.createElement)(T.PopColorControl,{label:(0,i.__)("Background","kadence-blocks"),value:a,default:"",onChange:o=>qn(o,"background"+t+e),key:"normalb"})),hover:(0,n.createElement)(n.Fragment,null,(0,n.createElement)(T.PopColorControl,{label:(0,i.__)("Link Color Hover","kadence-blocks"),value:r,default:"",onChange:o=>qn(o,"linkColor"+t+"Hover"+e),key:"hover"}),(0,n.createElement)(T.PopColorControl,{label:(0,i.__)("Background Hover","kadence-blocks"),value:l,default:"",onChange:o=>qn(o,"background"+t+"Hover"+e),key:"hoverb"})),active:(0,n.createElement)(n.Fragment,null,(0,n.createElement)(T.PopColorControl,{label:(0,i.__)("Link Color Active","kadence-blocks"),value:d,default:"",onChange:o=>qn(o,"linkColor"+t+"Active"+e),key:"active"}),(0,n.createElement)(T.PopColorControl,{label:(0,i.__)("Background Active","kadence-blocks"),value:c,default:"",onChange:o=>qn(o,"background"+t+"Active"+e),key:"activeb"}))}))},ca=(e="",t="")=>{const o=O["descriptionColor"+t+e],a=O["descriptionColor"+t+"Hover"+e],r=O["descriptionColor"+t+"Active"+e];return(0,n.createElement)(n.Fragment,null,(0,n.createElement)(T.HoverToggleControl,{normal:(0,n.createElement)(n.Fragment,null,(0,n.createElement)(T.PopColorControl,{label:(0,i.__)("Color","kadence-blocks"),value:o,default:"",onChange:o=>qn(o,"descriptionColor"+t+e),key:"normal"})),hover:(0,n.createElement)(n.Fragment,null,(0,n.createElement)(T.PopColorControl,{label:(0,i.__)("Color Hover","kadence-blocks"),value:a,default:"",onChange:o=>qn(o,"descriptionColor"+t+"Hover"+e),key:"hover"})),active:(0,n.createElement)(n.Fragment,null,(0,n.createElement)(T.PopColorControl,{label:(0,i.__)("Color Active","kadence-blocks"),value:r,default:"",onChange:o=>qn(o,"descriptionColor"+t+"Active"+e),key:"active"}))}))},sa=(e="",t="")=>{const o=O["dropdownDescriptionColor"+t+e],a=O["dropdownDescriptionColor"+t+"Hover"+e],r=O["dropdownDescriptionColor"+t+"Active"+e];return(0,n.createElement)(n.Fragment,null,(0,n.createElement)(T.HoverToggleControl,{normal:(0,n.createElement)(n.Fragment,null,(0,n.createElement)(T.PopColorControl,{label:(0,i.__)("Color","kadence-blocks"),value:o,default:"",onChange:o=>qn(o,"dropdownDescriptionColor"+t+e),key:"normal"})),hover:(0,n.createElement)(n.Fragment,null,(0,n.createElement)(T.PopColorControl,{label:(0,i.__)("Color Hover","kadence-blocks"),value:a,default:"",onChange:o=>qn(o,"dropdownDescriptionColor"+t+"Hover"+e),key:"hover"})),active:(0,n.createElement)(n.Fragment,null,(0,n.createElement)(T.PopColorControl,{label:(0,i.__)("Color Active","kadence-blocks"),value:r,default:"",onChange:o=>qn(o,"dropdownDescriptionColor"+t+"Active"+e),key:"active"}))}))},pa=e=>{na([{...ia,innerBlocks:[...aa,...e]}],a)};if((0,v.useEffect)((()=>{0!==aa.length||f||R(!0)}),[aa.length]),Un)return(0,n.createElement)("nav",{className:Zn},(0,n.createElement)("div",{className:"menu-container"},(0,n.createElement)("ul",{...ra})));if("undefined"!=typeof pagenow&&("widgets"===pagenow||"customize"===pagenow)){const e=(0,vo.addQueryArgs)("post.php",{post:k,action:"edit"});return(0,n.createElement)(n.Fragment,null,(0,n.createElement)(b.Placeholder,{className:"kb-select-or-create-placeholder",label:(0,i.__)("Kadence Navigation","kadence-blocks"),icon:d.formBlockIcon},(0,n.createElement)("p",{style:{width:"100%",marginBottom:"10px"}},(0,i.__)("Advanced Navs can not be edited within the widgets screen.","kadence-blocks")),(0,n.createElement)(b.Button,{href:e,variant:"primary",className:"kb-navigation-edit-link"},(0,i.__)("Edit Navigation","kadence-blocks"))),(0,n.createElement)(l.InspectorControls,null,(0,n.createElement)(T.KadencePanelBody,{panelName:"kb-advanced-navigation-selected-switch"},(0,n.createElement)(T.SelectPostFromPostType,{postType:"kadence_navigation",label:(0,i.__)("Selected Navigation","kadence-blocks"),hideLabelFromVision:!1,onChange:e=>{o({id:parseInt(e)})},value:k}),(0,n.createElement)(b.Button,{isLink:!0,onClick:()=>{o({id:0})},style:{marginBottom:"10px"}},(0,i.__)("Create a New Navigation","kadence-blocks")))))}return(0,n.createElement)(n.Fragment,null,z&&(0,n.createElement)("style",null,"\n\t\t\t\t\t\t.components-modal__content > div:not(.components-modal__header) { height: 100%; }\n\t\t\t\t\t\t.components-modal__content { padding-bottom: 0; }\n\t\t\t\t\t"),(0,n.createElement)(l.BlockControls,null,(0,n.createElement)(T.CopyPasteAttributes,{attributes:N,excludedAttributes:["_kad_navigation_description"],blockSlug:wo.name,onPaste:e=>F({...N,...e})}),(0,n.createElement)(b.ToolbarGroup,null,(0,n.createElement)(b.ToolbarButton,{className:"kb-icons-add-icon",icon:fo,onClick:()=>{ko(a)},label:(0,i.__)("Add Navigation Link","kadence-blocks"),showTooltip:!0}))),m&&(0,n.createElement)(l.BlockSettingsMenuControls,null,(e=>{const{selectedBlocks:t,onClose:o}=e;if(1===t.length&&"kadence/navigation"===t[0])return(0,n.createElement)(b.MenuItem,{onClick:()=>{ko(a),o()},label:(0,i.__)("Add Navigation Link","kadence-blocks"),role:null},(0,i.__)("Add Navigation Link","kadence-blocks"))})),z&&(0,n.createElement)(b.Modal,{size:"fill",title:(0,i.__)("Navigation Builder","kadence-blocks"),onRequestClose:I},(0,n.createElement)(bo,{updateBlocksCallback:pa,clientId:a,closeModal:I,title:Qn,setTitle:ea,setMetaAttribute:qn,orientation:N?._kad_navigation_orientation,orientationTablet:N?._kad_navigation_orientationTablet})),(0,n.createElement)(yo,{...e,metaAttributes:O,previewDevice:w}),(0,n.createElement)(l.InspectorControls,null,(0,n.createElement)(T.InspectorControlTabs,{panelName:"advanced-navigation",setActiveTab:e=>D(e),activeTab:A}),"general"===A&&(0,n.createElement)(n.Fragment,null,(0,n.createElement)(T.KadencePanelBody,{panelName:"kb-navigation-selected-switch"},!c&&(0,n.createElement)(n.Fragment,null,(0,n.createElement)(T.SelectPostFromPostType,{postType:"kadence_navigation",label:(0,i.__)("Selected Navigation","kadence-blocks"),onChange:e=>o({id:parseInt(e)}),value:k,overrideLabel:Qn}),(0,n.createElement)(b.Button,{isLink:!0,onClick:()=>{o({id:0})},style:{marginBottom:"10px"}},(0,i.__)("Create a New Navigation","kadence-blocks")))),(0,n.createElement)(T.KadencePanelBody,{panelName:"kb-navigation-modal"},(0,n.createElement)(b.Button,{variant:"secondary",onClick:()=>R(!0),style:{margin:"0 auto"}},(0,i.__)("Open Navigation Builder","kadence-blocks"))),(0,n.createElement)("div",{className:"kt-sidebar-settings-spacer"}),(0,n.createElement)(T.KadencePanelBody,{panelName:"kb-navigation-general"},(0,n.createElement)(T.ResponsiveSelectControl,{label:(0,i.__)("Orientation","kadence-blocks"),value:Ce,tabletValue:Se,mobileValue:Ae,options:[{value:"horizontal",label:(0,i.__)("Horizontal","kadence-blocks")},{value:"vertical",label:(0,i.__)("Vertical","kadence-blocks")}],tabletOptions:[{value:"",label:(0,i.__)("Inherit","kadence-blocks")},{value:"horizontal",label:(0,i.__)("Horizontal","kadence-blocks")},{value:"vertical",label:(0,i.__)("Vertical","kadence-blocks")}],onChange:e=>qn(e,"orientation"),onChangeTablet:e=>qn(e,"orientationTablet"),onChangeMobile:e=>qn(e,"orientationMobile")}),(0,n.createElement)(T.ResponsiveRangeControls,{label:(0,i.__)("Horizontal Item Spacing","kadence-blocks"),value:parseFloat(Ee[1])?parseFloat(Ee[1]):"",valueTablet:parseFloat(Be[1])?parseFloat(Be[1]):"",valueMobile:parseFloat(ze[1])?parseFloat(ze[1]):"",onChange:e=>qn([Ee[0],String(null!=e?e:""),Ee[2],String(null!=e?e:"")],"spacing"),onChangeTablet:e=>qn([Be[0],String(null!=e?e:""),Be[2],String(null!=e?e:"")],"spacingTablet"),onChangeMobile:e=>qn([ze[0],String(null!=e?e:""),ze[2],String(null!=e?e:"")],"spacingMobile"),min:0,max:"em"===Re||"rem"===Re?24:"px"===Re?200:100,step:"em"===Re||"rem"===Re?.1:1,unit:Re,units:["em","rem","px","vw"],onUnit:e=>qn(e,"spacingUnit"),showUnit:!0,reset:()=>qn([ze[0],"",ze[2],""],"spacing")}),("vertical"===Vn||"underline"===De||"standard"===De||""===De)&&(0,n.createElement)(T.ResponsiveRangeControls,{label:(0,i.__)("Vertical Item Spacing","kadence-blocks"),value:parseFloat(Ee[0])?parseFloat(Ee[0]):"",valueTablet:parseFloat(Be[0])?parseFloat(Be[0]):"",valueMobile:parseFloat(ze[0])?parseFloat(ze[0]):"",onChange:e=>qn([String(null!=e?e:""),Ee[1],String(null!=e?e:""),Ee[3]],"spacing"),onChangeTablet:e=>qn([String(null!=e?e:""),Be[1],String(null!=e?e:""),Be[3]],"spacingTablet"),onChangeMobile:e=>qn([e.toString(),ze[1],e.toString(),ze[3]],"spacingMobile"),min:0,max:"em"===Re||"rem"===Re?24:"px"===Re?200:100,step:"em"===Re||"rem"===Re?.1:1,unit:Re,units:["em","rem","px","vw"],onUnit:e=>qn(e,"spacingUnit"),showUnit:!0,reset:()=>qn(["",ze[1],"",ze[3]],"spacing")})),(0,n.createElement)(T.KadencePanelBody,{panelName:"kb-navigation-layout",title:(0,i.__)("Layout Options","kadence-blocks")},"vertical"!==Vn&&(0,n.createElement)(T.ResponsiveSelectControl,{label:(0,i.__)("Horizontal Layout","kadence-blocks"),value:Ie,tabletValue:Pe,mobileValue:Le,options:[{value:"standard",label:(0,i.__)("Standard","kadence-blocks")},{value:"stretch",label:(0,i.__)("Stretch","kadence-blocks")},{value:"grid",label:(0,i.__)("Grid","kadence-blocks")}],tabletOptions:[{value:"",label:(0,i.__)("Inherit","kadence-blocks")},{value:"standard",label:(0,i.__)("Standard","kadence-blocks")},{value:"stretch",label:(0,i.__)("Stretch","kadence-blocks")},{value:"grid",label:(0,i.__)("Grid","kadence-blocks")}],onChange:e=>qn(e,"horizontalLayout"),onChangeTablet:e=>qn(e,"horizontalLayoutTablet"),onChangeMobile:e=>qn(e,"horizontalLayoutMobile")}),"vertical"!==Vn&&"grid"===Gn&&(0,n.createElement)(T.ResponsiveRangeControls,{label:(0,i.__)("Horizontal Grid Columns","kadence-blocks"),value:Ne?parseFloat(Ne):"",valueTablet:Fe?parseFloat(Fe):"",valueMobile:Oe?parseFloat(Oe):"",onChange:e=>qn(String(null!=e?e:""),"horizontalGrid"),onChangeTablet:e=>qn(String(null!=e?e:""),"horizontalGridTablet"),onChangeMobile:e=>qn(String(null!=e?e:""),"horizontalGridMobile"),min:1,max:12,step:1,showUnit:!1}),"vertical"!==Vn&&"stretch"===Gn&&(0,n.createElement)(T.ResponsiveSelectControl,{label:(0,i.__)("Stretch Behavior","kadence-blocks"),value:Ue,tabletValue:Ve,mobileValue:Ge,options:[{value:"standard",label:(0,i.__)("Standard","kadence-blocks")},{value:"fill",label:(0,i.__)("Fill and Center","kadence-blocks")}],tabletOptions:[{value:"",label:(0,i.__)("Inherit","kadence-blocks")},{value:"standard",label:(0,i.__)("Standard","kadence-blocks")},{value:"fill",label:(0,i.__)("Fill and Center","kadence-blocks")}],onChange:e=>qn(e,"stretchFill"),onChangeTablet:e=>qn(e,"stretchFillTablet"),onChangeMobile:e=>qn(e,"stretchFillMobile"),help:(0,i.__)("Standard adds space between navigation links to fill the available space. Fill and Center adjusts the text area with additional spacing and centers the text; text alignment can be updated in the Style tab.","kadence-blocks")}),(0,n.createElement)(T.SmallResponsiveControl,{label:(0,i.__)("Other Options","kadence-blocks"),desktopChildren:la(),tabletChildren:la("Tablet"),mobileChildren:la("Mobile")}),(0,n.createElement)(b.ToggleControl,{label:(0,i.__)("Activate anchor links on scroll.","kadence-blocks"),checked:Pn,onChange:e=>qn(e,"enableScrollSpy")}),Pn&&(0,n.createElement)(b.SelectControl,{label:(0,i.__)("Activation Offset","kadence-blocks"),value:Ln,options:[{value:"",label:(0,i.__)("Auto","kadence-blocks")},{value:"manual",label:(0,i.__)("Manual","kadence-blocks")}],onChange:e=>qn(e,"scrollSpyOffsetManual")}),Pn&&Ln&&(0,n.createElement)(T.ResponsiveRangeControls,{label:(0,i.__)("Activation Offset Amount","kadence-blocks"),help:(0,i.__)("Controls how far below the navigation link the anchor should be when the navigation link will be marked active.","kadence-blocks"),value:Nn?parseFloat(Nn):"",valueTablet:Fn?parseFloat(Fn):"",valueMobile:On?parseFloat(On):"",onChange:e=>qn(e.toString(),"scrollSpyOffset"),onChangeTablet:e=>qn(e.toString(),"scrollSpyOffsetTablet"),onChangeMobile:e=>qn(e.toString(),"scrollSpyOffsetMobile"),min:0,max:1e3,step:1,reset:()=>qn("","scrollSpyOffset"),unit:"px",units:["px"],showUnit:!0}))),"style"===A&&(0,n.createElement)(n.Fragment,null,"vertical"!=Vn&&(0,n.createElement)(T.KadencePanelBody,{panelName:"kb-navigation-style"},(0,n.createElement)(T.ResponsiveSelectControl,{label:(0,i.__)("Style","kadence-blocks"),value:De,tabletValue:xe,mobileValue:He,options:[{value:"standard",label:(0,i.__)("Standard","kadence-blocks")},{value:"fullheight",label:(0,i.__)("Full Height","kadence-blocks")},{value:"underline",label:(0,i.__)("Underline","kadence-blocks")},{value:"underline-fullheight",label:(0,i.__)("Full Height Underline","kadence-blocks")}],onChange:e=>qn(e,"style"),onChangeTablet:e=>qn(e,"styleTablet"),onChangeMobile:e=>qn(e,"styleMobile")})),(0,n.createElement)(T.KadencePanelBody,{title:(0,i.__)("Navigation Item Styles","kadence-blocks"),initialOpen:!1,panelName:"kb-navigation-nav-item-styles"},(0,n.createElement)(T.ResponsiveButtonStyleControlsWithStates,{colorBase:"linkColor",backgroundBase:"background",backgroundTypeBase:"backgroundType",backgroundGradientBase:"backgroundGradient",borderBase:"border",borderRadiusBase:"borderRadius",borderRadiusUnitBase:"borderRadiusUnit",shadowBase:"shadow",setMetaAttribute:qn,attributes:O}),("vertical"==Vn||"stretch"===Gn&&"fill"==Wn)&&(0,n.createElement)(T.ResponsiveAlignControls,{label:(0,i.__)("Alignment","kadence-blocks"),value:zn||"",tabletValue:Rn||"",mobileValue:In||"",onChange:e=>qn(e,"linkHorizontalAlignment"),onChangeTablet:e=>qn(e,"linkHorizontalAlignmentTablet"),onChangeMobile:e=>qn(e,"linkHorizontalAlignmentMobile")})),"1"==h?.["kadence/headerIsTransparent"]&&(0,n.createElement)(T.KadencePanelBody,{title:(0,i.__)("Transparent Styles","kadence-blocks"),initialOpen:!1,panelName:"kb-navigation-transparent-styles"},(0,n.createElement)(T.SmallResponsiveControl,{label:(0,i.__)("Colors","kadence-blocks"),desktopChildren:da("","Transparent"),tabletChildren:da("Tablet","Transparent"),mobileChildren:da("Mobile","Transparent")}),(0,n.createElement)(T.ResponsiveSingleBorderControl,{label:(0,i.__)("Divider","kadence-blocks"),value:Oo,tabletValue:Uo,mobileValue:Vo,onChange:e=>qn(e,"transparentDivider"),onChangeTablet:e=>qn(e,"transparentDividerTablet"),onChangeMobile:e=>qn(e,"transparentDividerMobile")})),"1"==h?.["kadence/headerIsSticky"]&&(0,n.createElement)(T.KadencePanelBody,{title:(0,i.__)("Sticky Styles","kadence-blocks"),initialOpen:!1,panelName:"kb-navigation-sticky-styles"},(0,n.createElement)(T.SmallResponsiveControl,{label:(0,i.__)("Colors","kadence-blocks"),desktopChildren:da("","Sticky"),tabletChildren:da("Tablet","Sticky"),mobileChildren:da("Mobile","Sticky")}),(0,n.createElement)(T.ResponsiveSingleBorderControl,{label:"Divider",value:Go,tabletValue:Wo,mobileValue:qo,onChange:e=>qn(e,"stickyDivider"),onChangeTablet:e=>qn(e,"stickyDividerTablet"),onChangeMobile:e=>qn(e,"stickyDividerMobile")})),(0,n.createElement)(T.KadencePanelBody,{title:(0,i.__)("Divider Settings","kadence-blocks"),initialOpen:!1,panelName:"kb-navigation-divider"},(0,n.createElement)(T.ResponsiveSingleBorderControl,{label:(0,i.__)("Divider","kadence-blocks"),value:Ro,tabletValue:Io,mobileValue:Po,onChange:e=>qn(e,"divider"),onChangeTablet:e=>qn(e,"dividerTablet"),onChangeMobile:e=>qn(e,"dividerMobile")})),(0,uo.showSettings)("fontSettings","kadence/navigation")&&(0,n.createElement)(T.KadencePanelBody,{title:(0,i.__)("Typography Settings","kadence-blocks"),initialOpen:!1,panelName:"kb-adv-btn-font-family"},(0,n.createElement)(T.TypographyControls,{fontSize:Ho?.[0]?.size,onFontSize:e=>Kn({size:e}),fontSizeType:Ho?.[0]?.sizeType,onFontSizeType:e=>Kn({sizeType:e}),lineHeight:Ho?.[0]?.lineHeight,onLineHeight:e=>Kn({lineHeight:e}),lineHeightType:Ho?.[0]?.lineType,onLineHeightType:e=>Kn({lineType:e}),reLetterSpacing:Ho?.[0]?.letterSpacing,onLetterSpacing:e=>Kn({letterSpacing:e}),letterSpacingType:Ho?.[0]?.letterType,onLetterSpacingType:e=>Kn({letterType:e}),textTransform:Ho?.[0]?.textTransform,onTextTransform:e=>Kn({textTransform:e}),fontFamily:Ho?.[0]?.family,onFontFamily:e=>Kn({family:e}),onFontChange:e=>{Kn({family:e.value,google:e.google})},onFontArrayChange:e=>Kn(e),googleFont:Ho?.[0]?.google,onGoogleFont:e=>Kn({google:e}),loadGoogleFont:Ho?.[0]?.loadGoogle,onLoadGoogleFont:e=>Kn({loadGoogle:e}),fontVariant:Ho?.[0]?.variant,onFontVariant:e=>Kn({variant:e}),fontWeight:Ho?.[0]?.weight,onFontWeight:e=>Kn({weight:e}),fontStyle:Ho?.[0]?.style,onFontStyle:e=>Kn({style:e}),fontSubset:Ho?.[0]?.subset,onFontSubset:e=>Kn({subset:e})})),(0,n.createElement)(T.KadencePanelBody,{title:(0,i.__)("Sub Menu Styles","kadence-blocks"),panelName:"kb-navigation-style-sub-menus",initialOpen:!1},(0,n.createElement)(T.KadenceSubPanelBody,{title:(0,i.__)("Sub Menu Container","kadence-blocks")},"vertical"!=Vn&&(0,n.createElement)(n.Fragment,null,(0,n.createElement)(T.ResponsiveSelectControl,{label:(0,i.__)("Reveal Animation","kadence-blocks"),value:an,tabletValue:rn,mobileValue:ln,options:[{value:"none",label:(0,i.__)("None","kadence-blocks")},{value:"fade",label:(0,i.__)("Fade","kadence-blocks")},{value:"fade-up",label:(0,i.__)("Fade Up","kadence-blocks")},{value:"fade-down",label:(0,i.__)("Fade Down","kadence-blocks")}],onChange:e=>qn(e,"dropdownReveal"),onChangeTablet:e=>qn(e,"dropdownRevealTablet"),onChangeMobile:e=>qn(e,"dropdownRevealMobile")}),(0,n.createElement)(T.ResponsiveSelectControl,{label:(0,i.__)("Dropdown Horizontal Alignment","kadence-blocks"),value:en,tabletValue:tn,mobileValue:on,options:[{value:"",label:(0,i.__)("Default","kadence-blocks")},{value:"left",label:(0,i.__)("Left","kadence-blocks")},{value:"center",label:(0,i.__)("Center","kadence-blocks")},{value:"right",label:(0,i.__)("Right","kadence-blocks")}],tabletOptions:[{value:"",label:(0,i.__)("Inherit","kadence-blocks")},{value:"left",label:(0,i.__)("Left","kadence-blocks")},{value:"center",label:(0,i.__)("Center","kadence-blocks")},{value:"right",label:(0,i.__)("Right","kadence-blocks")}],onChange:e=>qn(e,"dropdownHorizontalAlignment"),onChangeTablet:e=>qn(e,"dropdownHorizontalAlignmentTablet"),onChangeMobile:e=>qn(e,"dropdownHorizontalAlignmentMobile")}),(0,n.createElement)(T.ResponsiveRangeControls,{label:(0,i.__)("Dropdown Width","kadence-blocks"),value:Ko?parseFloat(Ko):"",valueTablet:$o?parseFloat($o):"",valueMobile:jo?parseFloat(jo):"",onChange:e=>qn(e.toString(),"dropdownWidth"),onChangeTablet:e=>qn(e.toString(),"dropdownWidthTablet"),onChangeMobile:e=>qn(e.toString(),"dropdownWidthMobile"),min:0,max:"em"===Xo||"rem"===Xo?24:"px"===Xo?2e3:100,step:"em"===Xo||"rem"===Xo?.1:1,reset:()=>qn("","dropdownWidth"),unit:Xo,units:["em","rem","px","vw"],onUnit:e=>qn(e,"dropdownWidthUnit"),showUnit:!0})),(0,n.createElement)(T.ResponsiveRangeControls,{label:(0,i.__)("Vertical Spacing","kadence-blocks"),value:Yo?parseFloat(Yo):"",valueTablet:Zo?parseFloat(Zo):"",valueMobile:Jo?parseFloat(Jo):"",onChange:e=>qn(e.toString(),"dropdownVerticalSpacing"),onChangeTablet:e=>qn(e.toString(),"dropdownVerticalSpacingTablet"),onChangeMobile:e=>qn(e.toString(),"dropdownVerticalSpacingMobile"),min:0,max:"em"===Qo||"rem"===Qo?24:"px"===Qo?200:100,step:"em"===Qo||"rem"===Qo?.1:1,reset:()=>qn("","dropdownVerticalSpacing"),unit:Qo,units:["em","rem","px","vw"],onUnit:e=>qn(e,"dropdownVerticalSpacingUnit"),showUnit:!0}),(0,n.createElement)(T.ResponsiveBorderControl,{label:(0,i.__)("Border","kadence-blocks"),value:dn,tabletValue:cn,mobileValue:sn,onChange:e=>qn(e,"dropdownBorder"),onChangeTablet:e=>qn(e,"dropdownBorderTablet"),onChangeMobile:e=>qn(e,"dropdownBorderMobile")}),(0,n.createElement)(T.ResponsiveMeasurementControls,{label:(0,i.__)("Border Radius","kadence-blocks"),value:pn,tabletValue:gn,mobileValue:bn,onChange:e=>qn(e,"dropdownBorderRadius"),onChangeTablet:e=>qn(e,"dropdownBorderRadiusTablet"),onChangeMobile:e=>qn(e,"dropdownBorderRadiusMobile"),unit:un,units:["px","em","rem","%"],onUnit:e=>qn(e,"dropdownBorderRadiusUnit"),max:"em"===un||"rem"===un?24:100,step:"em"===un||"rem"===un?.1:1,min:0,isBorderRadius:!0,allowEmpty:!0}),"vertical"!=Vn&&(0,n.createElement)(T.BoxShadowControl,{label:(0,i.__)("Box Shadow","kadence-blocks"),enable:void 0===nn||void 0===nn[0]||void 0===nn[0].enable||nn[0].enable,color:void 0!==nn&&void 0!==nn[0]&&void 0!==nn[0].color?nn[0].color:"#000000",colorDefault:"#000000",onArrayChange:(e,t)=>{Yn({color:e,opacity:t})},opacity:void 0!==nn&&void 0!==nn[0]&&void 0!==nn[0].opacity?nn[0].opacity:.2,hOffset:void 0!==nn&&void 0!==nn[0]&&void 0!==nn[0].hOffset?nn[0].hOffset:0,vOffset:void 0!==nn&&void 0!==nn[0]&&void 0!==nn[0].vOffset?nn[0].vOffset:0,blur:void 0!==nn&&void 0!==nn[0]&&void 0!==nn[0].blur?nn[0].blur:14,spread:void 0!==nn&&void 0!==nn[0]&&void 0!==nn[0].spread?nn[0].spread:0,inset:void 0!==nn&&void 0!==nn[0]&&void 0!==nn[0].inset&&nn[0].inset,onEnableChange:e=>{Yn({enable:e})},onColorChange:e=>{Yn({color:e})},onOpacityChange:e=>{Yn({opacity:e})},onHOffsetChange:e=>{Yn({hOffset:e})},onVOffsetChange:e=>{Yn({vOffset:e})},onBlurChange:e=>{Yn({blur:e})},onSpreadChange:e=>{Yn({spread:e})},onInsetChange:e=>{Yn({inset:e})}}),(0,n.createElement)(T.ResponsiveMeasureRangeControl,{label:(0,i.__)("Padding","kadence-blocks"),value:X,tabletValue:Y,mobileValue:Z,onChange:e=>{qn(e.map(String),"paddingDropdown")},onChangeTablet:e=>{qn(e.map(String),"tabletPaddingDropdown")},onChangeMobile:e=>{qn(e.map(String),"mobilePaddingDropdown")},min:0,max:"em"===J||"rem"===J?24:"px"===J?200:100,step:"em"===J||"rem"===J?.1:1,unit:J,units:["px","em","rem","%"],onUnit:e=>qn(e,"paddingDropdownUnit")}),(0,n.createElement)(T.ResponsiveMeasureRangeControl,{label:(0,i.__)("Margin","kadence-blocks"),value:Q,tabletValue:ee,mobileValue:te,onChange:e=>{qn(e.map(String),"marginDropdown")},onChangeTablet:e=>{qn(e.map(String),"tabletMarginDropdown")},onChangeMobile:e=>{qn(e.map(String),"mobileMarginDropdown")},min:"em"===oe||"rem"===oe?-25:"px"===oe?-400:-100,max:"em"===oe||"rem"===oe?24:"px"===oe?200:100,step:"em"===oe||"rem"===oe?.1:1,unit:oe,units:["px","em","rem","%"],onUnit:e=>qn(e,"marginDropdownUnit")})),(0,n.createElement)(T.KadenceSubPanelBody,{title:(0,i.__)("Sub Menu Links","kadence-blocks")},(0,n.createElement)(T.SmallResponsiveControl,{label:(0,i.__)("Colors","kadence-blocks"),desktopChildren:da("","Dropdown"),tabletChildren:da("Tablet","Dropdown"),mobileChildren:da("Mobile","Dropdown")}),(0,n.createElement)(T.ResponsiveSingleBorderControl,{label:(0,i.__)("Divider","kadence-blocks"),value:Lo,tabletValue:No,mobileValue:Fo,onChange:e=>qn(e,"dropdownDivider"),onChangeTablet:e=>qn(e,"dropdownDividerTablet"),onChangeMobile:e=>qn(e,"dropdownDividerMobile")}),(0,n.createElement)(T.ResponsiveMeasureRangeControl,{label:(0,i.__)("Link Padding","kadence-blocks"),value:pe,tabletValue:ge,mobileValue:be,onChange:e=>{qn(e.map(String),"paddingDropdownLink")},onChangeTablet:e=>{qn(e.map(String),"tabletPaddingDropdownLink")},onChangeMobile:e=>{qn(e.map(String),"mobilePaddingDropdownLink")},min:0,max:"em"===ue||"rem"===ue?24:"px"===ue?200:100,step:"em"===ue||"rem"===ue?.1:1,unit:ue,units:["px","em","rem","%"],onUnit:e=>qn(e,"paddingDropdownLinkUnit")}),(0,n.createElement)(T.ResponsiveMeasureRangeControl,{label:(0,i.__)("Link Margin","kadence-blocks"),value:ve,tabletValue:ke,mobileValue:_e,onChange:e=>{qn(e.map(String),"marginDropdownLink")},onChangeTablet:e=>{qn(e.map(String),"tabletMarginDropdownLink")},onChangeMobile:e=>{qn(e.map(String),"mobileMarginDropdownLink")},min:0,max:"em"===me||"rem"===me?24:"px"===me?200:100,step:"em"===me||"rem"===me?.1:1,unit:me,units:["px","em","rem","%"],onUnit:e=>qn(e,"marginDropdownLinkUnit")}),(0,n.createElement)(T.ResponsiveAlignControls,{label:(0,i.__)("Alignment","kadence-blocks"),value:Hn||"",tabletValue:En||"",mobileValue:Bn||"",onChange:e=>qn(e,"dropdownLinkHorizontalAlignment"),onChangeTablet:e=>qn(e,"dropdownLinkHorizontalAlignmentTablet"),onChangeMobile:e=>qn(e,"dropdownLinkHorizontalAlignmentMobile")}),(0,uo.showSettings)("fontSettings","kadence/navigation")&&(0,n.createElement)(T.KadencePanelBody,{title:(0,i.__)("Typography Settings","kadence-blocks"),initialOpen:!1,panelName:"kb-adv-nav-sub-font"},(0,n.createElement)(T.TypographyControls,{fontSize:Eo?.[0]?.size,onFontSize:e=>$n({size:e}),fontSizeType:Eo?.[0]?.sizeType,onFontSizeType:e=>$n({sizeType:e}),lineHeight:Eo?.[0]?.lineHeight,onLineHeight:e=>$n({lineHeight:e}),lineHeightType:Eo?.[0]?.lineType,onLineHeightType:e=>$n({lineType:e}),reLetterSpacing:Eo?.[0]?.letterSpacing,onLetterSpacing:e=>$n({letterSpacing:e}),letterSpacingType:Eo?.[0]?.letterType,onLetterSpacingType:e=>$n({letterType:e}),textTransform:Eo?.[0]?.textTransform,onTextTransform:e=>$n({textTransform:e}),fontFamily:Eo?.[0]?.family,onFontFamily:e=>$n({family:e}),onFontChange:e=>{$n({family:e.value,google:e.google})},onFontArrayChange:e=>$n(e),googleFont:Eo?.[0]?.google,onGoogleFont:e=>$n({google:e}),loadGoogleFont:Eo?.[0]?.loadGoogle,onLoadGoogleFont:e=>$n({loadGoogle:e}),fontVariant:Eo?.[0]?.variant,onFontVariant:e=>$n({variant:e}),fontWeight:Eo?.[0]?.weight,onFontWeight:e=>$n({weight:e}),fontStyle:Eo?.[0]?.style,onFontStyle:e=>$n({style:e}),fontSubset:Eo?.[0]?.subset,onFontSubset:e=>$n({subset:e})}))),(0,n.createElement)(T.KadenceSubPanelBody,{title:(0,i.__)("Sub Menu Descriptions","kadence-blocks")},(0,n.createElement)(T.ResponsiveRangeControls,{label:(0,i.__)("Spacing from label","kadence-blocks"),value:yn?parseFloat(yn):"",valueTablet:fn?parseFloat(fn):"",valueMobile:wn?parseFloat(wn):"",onChange:e=>qn(e.toString(),"dropdownDescriptionSpacing"),onChangeTablet:e=>qn(e.toString(),"dropdownDescriptionSpacingTablet"),onChangeMobile:e=>qn(e.toString(),"dropdownDescriptionSpacingMobile"),min:0,max:"em"===Tn||"rem"===Tn?24:"px"===Tn?2e3:100,step:"em"===Tn||"rem"===Tn?.1:1,reset:()=>qn("","dropdownDescriptionSpacing"),unit:Tn,units:["em","rem","px","vw"],onUnit:e=>qn(e,"dropdownDescriptionSpacingUnit"),showUnit:!0}),(0,n.createElement)(T.SmallResponsiveControl,{label:(0,i.__)("Colors","kadence-blocks"),desktopChildren:sa("",""),tabletChildren:sa("Tablet",""),mobileChildren:sa("Mobile","")}),(0,uo.showSettings)("fontSettings","kadence/navigation")&&(0,n.createElement)(T.KadencePanelBody,{title:(0,i.__)("Typography Settings","kadence-blocks"),initialOpen:!1,panelName:"kb-nav-sub-desc-font"},(0,n.createElement)(T.TypographyControls,{fontSize:zo?.[0]?.size,onFontSize:e=>Xn({size:e}),fontSizeType:zo?.[0]?.sizeType,onFontSizeType:e=>Xn({sizeType:e}),lineHeight:zo?.[0]?.lineHeight,onLineHeight:e=>Xn({lineHeight:e}),lineHeightType:zo?.[0]?.lineType,onLineHeightType:e=>Xn({lineType:e}),reLetterSpacing:zo?.[0]?.letterSpacing,onLetterSpacing:e=>Xn({letterSpacing:e}),letterSpacingType:zo?.[0]?.letterType,onLetterSpacingType:e=>Xn({letterType:e}),textTransform:zo?.[0]?.textTransform,onTextTransform:e=>Xn({textTransform:e}),fontFamily:zo?.[0]?.family,onFontFamily:e=>Xn({family:e}),onFontChange:e=>{Xn({family:e.value,google:e.google})},onFontArrayChange:e=>Xn(e),googleFont:zo?.[0]?.google,onGoogleFont:e=>Xn({google:e}),loadGoogleFont:zo?.[0]?.loadGoogle,onLoadGoogleFont:e=>Xn({loadGoogle:e}),fontVariant:zo?.[0]?.variant,onFontVariant:e=>Xn({variant:e}),fontWeight:zo?.[0]?.weight,onFontWeight:e=>Xn({weight:e}),fontStyle:zo?.[0]?.style,onFontStyle:e=>Xn({style:e}),fontSubset:zo?.[0]?.subset,onFontSubset:e=>Xn({subset:e})})))),(0,n.createElement)(T.KadencePanelBody,{title:(0,i.__)("Description Styles","kadence-blocks"),panelName:"kb-navigation-style-description",initialOpen:!1},(0,n.createElement)(T.ResponsiveRangeControls,{label:(0,i.__)("Spacing from label","kadence-blocks"),value:vn?parseFloat(vn):"",valueTablet:kn?parseFloat(kn):"",valueMobile:mn?parseFloat(mn):"",onChange:e=>qn(e.toString(),"descriptionSpacing"),onChangeTablet:e=>qn(e.toString(),"descriptionSpacingTablet"),onChangeMobile:e=>qn(e.toString(),"descriptionSpacingMobile"),min:0,max:"em"===hn||"rem"===hn?24:"px"===hn?2e3:100,step:"em"===hn||"rem"===hn?.1:1,reset:()=>qn("","descriptionSpacing"),unit:hn,units:["em","rem","px","vw"],onUnit:e=>qn(e,"descriptionSpacingUnit"),showUnit:!0}),(0,n.createElement)(T.SmallResponsiveControl,{label:(0,i.__)("Colors","kadence-blocks"),desktopChildren:ca("",""),tabletChildren:ca("Tablet",""),mobileChildren:ca("Mobile","")}),(0,uo.showSettings)("fontSettings","kadence/navigation")&&(0,n.createElement)(T.KadencePanelBody,{title:(0,i.__)("Typography Settings","kadence-blocks"),initialOpen:!1,panelName:"kb-nav-desc-font"},(0,n.createElement)(T.TypographyControls,{fontSize:Bo?.[0]?.size,onFontSize:e=>jn({size:e}),fontSizeType:Bo?.[0]?.sizeType,onFontSizeType:e=>jn({sizeType:e}),lineHeight:Bo?.[0]?.lineHeight,onLineHeight:e=>jn({lineHeight:e}),lineHeightType:Bo?.[0]?.lineType,onLineHeightType:e=>jn({lineType:e}),reLetterSpacing:Bo?.[0]?.letterSpacing,onLetterSpacing:e=>jn({letterSpacing:e}),letterSpacingType:Bo?.[0]?.letterType,onLetterSpacingType:e=>jn({letterType:e}),textTransform:Bo?.[0]?.textTransform,onTextTransform:e=>jn({textTransform:e}),fontFamily:Bo?.[0]?.family,onFontFamily:e=>jn({family:e}),onFontChange:e=>{jn({family:e.value,google:e.google})},onFontArrayChange:e=>jn(e),googleFont:Bo?.[0]?.google,onGoogleFont:e=>jn({google:e}),loadGoogleFont:Bo?.[0]?.loadGoogle,onLoadGoogleFont:e=>jn({loadGoogle:e}),fontVariant:Bo?.[0]?.variant,onFontVariant:e=>jn({variant:e}),fontWeight:Bo?.[0]?.weight,onFontWeight:e=>jn({weight:e}),fontStyle:Bo?.[0]?.style,onFontStyle:e=>jn({style:e}),fontSubset:Bo?.[0]?.subset,onFontSubset:e=>jn({subset:e})})))),"advanced"===A&&(0,n.createElement)(n.Fragment,null,(0,n.createElement)(T.KadencePanelBody,{panelName:"kb-navigation-padding"},(0,n.createElement)(T.ResponsiveMeasureRangeControl,{label:(0,i.__)("Padding","kadence-blocks"),value:(0,uo.arrayStringToInt)(U),tabletValue:(0,uo.arrayStringToInt)(V),mobileValue:(0,uo.arrayStringToInt)(G),onChange:e=>{qn(e.map(String),"padding")},onChangeTablet:e=>{qn(e.map(String),"tabletPadding")},onChangeMobile:e=>{qn(e.map(String),"mobilePadding")},min:0,max:"em"===W||"rem"===W?24:"px"===W?200:100,step:"em"===W||"rem"===W?.1:1,unit:W,units:["px","em","rem","%"],onUnit:e=>qn(e,"paddingUnit"),onMouseOver:P.onMouseOver,onMouseOut:P.onMouseOut}),(0,n.createElement)(T.ResponsiveMeasureRangeControl,{label:(0,i.__)("Margin","kadence-blocks"),value:(0,uo.arrayStringToInt)(q),tabletValue:(0,uo.arrayStringToInt)(K),mobileValue:(0,uo.arrayStringToInt)($),onChange:e=>{qn(e.map(String),"margin")},onChangeTablet:e=>{qn(e.map(String),"tabletMargin")},onChangeMobile:e=>{qn(e.map(String),"mobileMargin")},min:"em"===j||"rem"===j?-25:"px"===j?-400:-100,max:"em"===j||"rem"===j?24:"px"===j?200:100,step:"em"===j||"rem"===j?.1:1,unit:j,units:["px","em","rem","%"],onUnit:e=>qn(e,"marginUnit"),onMouseOver:L.onMouseOver,onMouseOut:L.onMouseOut}),(0,n.createElement)(T.ResponsiveMeasureRangeControl,{label:(0,i.__)("Nav Link Padding","kadence-blocks"),value:(0,uo.arrayStringToInt)(ne),tabletValue:(0,uo.arrayStringToInt)(ae),mobileValue:(0,uo.arrayStringToInt)(ie),onChange:e=>{qn(e.map(String),"paddingLink")},onChangeTablet:e=>{qn(e.map(String),"tabletPaddingLink")},onChangeMobile:e=>{qn(e.map(String),"mobilePaddingLink")},min:0,max:"em"===re||"rem"===re?24:"px"===re?200:100,step:"em"===re||"rem"===re?.1:1,unit:re,units:["px","em","rem","%"],onUnit:e=>qn(e,"linkPaddinggUnit")}),(0,n.createElement)(T.ResponsiveMeasureRangeControl,{label:(0,i.__)("Nav Link Margin","kadence-blocks"),value:(0,uo.arrayStringToInt)(le),tabletValue:(0,uo.arrayStringToInt)(de),mobileValue:(0,uo.arrayStringToInt)(ce),onChange:e=>{qn(e.map(String),"marginLink")},onChangeTablet:e=>{qn(e.map(String),"tabletMarginLink")},onChangeMobile:e=>{qn(e.map(String),"mobileMarginLink")},min:0,max:"em"===se||"rem"===se?24:"px"===se?200:100,step:"em"===se||"rem"===se?.1:1,unit:se,units:["px","em","rem","%"],onUnit:e=>qn(e,"marginLinkUnit")})))),(0,n.createElement)(l.InspectorAdvancedControls,null,(0,n.createElement)(b.TextControl,{__nextHasNoMarginBottom:!0,className:"html-anchor-control",label:(0,i.__)("HTML anchor","kadence-blocks"),help:(0,n.createElement)(n.Fragment,null,(0,i.__)("Enter a word or two — without spaces — to make a unique web address just for this block, called an “anchor.” Then, you’ll be able to link directly to this section of your page.","kadence-blocks"),(0,n.createElement)(b.ExternalLink,{href:(0,i.__)("https://wordpress.org/documentation/article/page-jumps/")},(0,i.__)("Learn more about anchors","kadence-blocks"))),value:Me,placeholder:(0,i.__)("Add an anchor","kadence-blocks"),onChange:e=>{e=e.replace(To,"-"),qn(e,"anchor")},autoCapitalize:"none",autoComplete:"off"}),(0,n.createElement)(b.TextControl,{__nextHasNoMarginBottom:!0,autoComplete:"off",label:(0,i.__)("Additional CSS class(es)","kadence-blocks"),value:Te,onChange:e=>{qn(""!==e?e:void 0,"className")},help:(0,i.__)("Separate multiple classes with spaces.","kadence-blocks")})),(0,n.createElement)("nav",{className:Zn},(0,n.createElement)("div",{className:"menu-container"},(0,n.createElement)("ul",{...ra}),(m||C)&&(0,n.createElement)("div",{style:{display:"flex",alignItems:"center"}},(0,n.createElement)(b.Button,{className:s()(Te,{"block-editor-inserter__toggle":!0,"has-icon":!0}),style:{minWidth:"24px",padding:"0px",height:"24px",background:"#000",color:"#FFF",borderRadius:"2px"},onClick:()=>{ko(a)},icon:M})))),Ho?.[0]?.google&&(0,n.createElement)(T.KadenceWebfontLoader,{typography:Ho,clientId:a,id:"typography"}),Eo?.[0]?.google&&(0,n.createElement)(T.KadenceWebfontLoader,{typography:Eo,clientId:a,id:"dropdownTypography"}),Bo?.[0]?.google&&(0,n.createElement)(T.KadenceWebfontLoader,{typography:Bo,clientId:a,id:"descriptionTypography"}))};function Co(e){return(0,u.useEntityProp)("postType","kadence_navigation",e)}const So={_kad_navigation_collapseSubMenus:"1",_kad_navigation_collapseSubMenusTablet:"1",_kad_navigation_collapseSubMenusMobile:"1",_kad_navigation_orientation:"vertical",_kad_navigation_spacing:["","2","","2"],_kad_navigation_linkColor:"palette3",_kad_navigation_linkColorHover:"palette3",_kad_navigation_linkColorActive:"palette3",_kad_navigation_background:"palette9",_kad_navigation_backgroundHover:"palette7",_kad_navigation_backgroundActive:"palette7",_kad_navigation_typography:[{size:["sm","",""],sizeType:"px",lineHeight:["","",""],lineType:"",letterSpacing:[.5,"",""],letterType:"px",textTransform:"",family:"",google:!1,style:"",weight:"bold",variant:"",subset:"",loadGoogle:!0}]},Ao={_kad_navigation_collapseSubMenus:"1",_kad_navigation_collapseSubMenusTablet:"1",_kad_navigation_collapseSubMenusMobile:"1",_kad_navigation_orientation:"vertical",_kad_navigation_linkColor:"palette3",_kad_navigation_linkColorHover:"palette3",_kad_navigation_linkColorActive:"palette3",_kad_navigation_background:"palette9",_kad_navigation_backgroundHover:"palette7",_kad_navigation_backgroundActive:"palette7",_kad_navigation_typography:[{size:["sm","",""],sizeType:"px",lineHeight:["","",""],lineType:"",letterSpacing:[.5,"",""],letterType:"px",textTransform:"",family:"",google:!1,style:"",weight:"bold",variant:"",subset:"",loadGoogle:!0}]},Do={_kad_navigation_collapseSubMenus:"1",_kad_navigation_collapseSubMenusTablet:"1",_kad_navigation_collapseSubMenusMobile:"1",_kad_navigation_orientation:"vertical",_kad_navigation_spacing:["1","1","1","1"],_kad_navigation_linkColor:"palette3",_kad_navigation_linkColorHover:"palette3",_kad_navigation_linkColorActive:"palette3",_kad_navigation_backgroundHover:"palette8",_kad_navigation_backgroundActive:"palette8",_kad_navigation_typography:[{size:["sm","",""],sizeType:"px",lineHeight:["","",""],lineType:"",letterSpacing:["","",""],letterType:"px",textTransform:"",family:"",google:!1,style:"",weight:"bold",variant:"",subset:"",loadGoogle:!0}]},xo={_kad_navigation_collapseSubMenus:"1",_kad_navigation_collapseSubMenusTablet:"1",_kad_navigation_collapseSubMenusMobile:"1",_kad_navigation_orientation:"vertical",_kad_navigation_spacing:["1","1","1","1"],_kad_navigation_linkColor:"palette4",_kad_navigation_linkColorHover:"palette1",_kad_navigation_linkColorActive:"palette1",_kad_navigation_background:"palette9",_kad_navigation_typography:[{size:["sm","",""],sizeType:"px",lineHeight:["","",""],lineType:"",letterSpacing:["","",""],letterType:"px",textTransform:"",family:"",google:!1,style:"",weight:"",variant:"",subset:"",loadGoogle:!0}]},Ho={_kad_navigation_collapseSubMenus:"1",_kad_navigation_collapseSubMenusTablet:"1",_kad_navigation_collapseSubMenusMobile:"1",_kad_navigation_orientation:"vertical",_kad_navigation_spacing:["1","1","1","1"],_kad_navigation_linkColor:"palette4",_kad_navigation_linkColorHover:"palette1",_kad_navigation_linkColorActive:"palette1",_kad_navigation_background:"palette9",_kad_navigation_typography:[{size:["sm","",""],sizeType:"px",lineHeight:["","",""],lineType:"",letterSpacing:["","",""],letterType:"px",textTransform:"",family:"",google:!1,style:"",weight:"",variant:"",subset:"",loadGoogle:!0}]},Eo={_kad_navigation_stretch:"1",_kad_navigation_collapseSubMenus:"1",_kad_navigation_collapseSubMenusTablet:"1",_kad_navigation_collapseSubMenusMobile:"1",_kad_navigation_margin:["xs","","xs",""],_kad_navigation_spacing:["","2","","2"],_kad_navigation_linkColor:"palette5",_kad_navigation_divider:[{top:["","",""],right:["","",""],bottom:["palette7","",2],left:["","",""],unit:"px"}],_kad_navigation_dividerTablet:[{top:["","",""],right:["","",""],bottom:["","",""],left:["","",""],unit:""}],_kad_navigation_dividerMobile:[{top:["","",""],right:["","",""],bottom:["","",""],left:["","",""],unit:""}],_kad_navigation_typography:[{size:[12,"",""],sizeType:"px",lineHeight:["","",""],lineType:"",letterSpacing:["","",""],letterType:"px",textTransform:"capitalize",family:"",google:!1,style:"",weight:"",variant:"",subset:"",loadGoogle:!0}]},Bo={_kad_navigation_orientation:"horizontal",_kad_navigation_stretchFill:"fill",_kad_navigation_collapseSubMenus:"1",_kad_navigation_collapseSubMenusTablet:"1",_kad_navigation_collapseSubMenusMobile:"1",_kad_navigation_spacing:["0","0.5","0","0.5"],_kad_navigation_linkColor:"palette3",_kad_navigation_linkColorHover:"palette3",_kad_navigation_linkColorActive:"palette3",_kad_navigation_background:"palette9",_kad_navigation_backgroundHover:"rgba(43, 108, 176, 0.1)",_kad_navigation_backgroundActive:"rgba(43, 108, 176, 0.1)",_kad_navigation_typography:[{size:["sm","",""],sizeType:"px",lineHeight:["","",""],lineType:"",letterSpacing:["","",""],letterType:"px",textTransform:"",family:"",google:!1,style:"",weight:"inherit",variant:"",subset:"",loadGoogle:!0}]},zo={_kad_navigation_collapseSubMenus:"1",_kad_navigation_collapseSubMenusTablet:"1",_kad_navigation_collapseSubMenusMobile:"1",_kad_navigation_orientation:"vertical",_kad_navigation_spacing:["1","","1",""],_kad_navigation_dropdownDividerTablet:[{top:["","",""],right:["","",""],bottom:["","",""],left:["","",""],unit:""}],_kad_navigation_dropdownDividerMobile:[{top:["","",""],right:["","",""],bottom:["","",""],left:["","",""],unit:""}],_kad_navigation_linkColor:"palette4",_kad_navigation_linkColorHover:"palette1",_kad_navigation_linkColorActive:"palette1",_kad_navigation_descriptionColor:"palette6",_kad_navigation_typography:[{size:["sm","",""],sizeType:"px",lineHeight:["","",""],lineType:"",letterSpacing:["","",""],letterType:"px",textTransform:"",family:"var( --global-body-font-family, inherit )",google:!1,style:"normal",weight:"400",variant:"",subset:"",loadGoogle:!0}],_kad_navigation_dropdownTypography:[{size:["","",""],sizeType:"px",lineHeight:["","",""],lineType:"",letterSpacing:["","",""],letterType:"px",textTransform:"",family:"",google:!1,style:"",weight:"",variant:"",subset:"",loadGoogle:!0}],_kad_navigation_dropdownBorderTablet:[{top:["","solid",""],right:["","solid",""],bottom:["","solid",""],left:["","solid",""],unit:""}],_kad_navigation_dropdownBorderMobile:[{top:["","solid",""],right:["","solid",""],bottom:["","solid",""],left:["","solid",""],unit:""}]},Ro={_kad_navigation_collapseSubMenus:"1",_kad_navigation_collapseSubMenusTablet:"1",_kad_navigation_collapseSubMenusMobile:"1",_kad_navigation_orientation:"vertical",_kad_navigation_spacing:["1","","1",""],_kad_navigation_dropdownDividerTablet:[{top:["","",""],right:["","",""],bottom:["","",""],left:["","",""],unit:""}],_kad_navigation_dropdownDividerMobile:[{top:["","",""],right:["","",""],bottom:["","",""],left:["","",""],unit:""}],_kad_navigation_linkColor:"palette4",_kad_navigation_linkColorHover:"palette1",_kad_navigation_linkColorActive:"palette1",_kad_navigation_descriptionColor:"palette6",_kad_navigation_typography:[{size:["sm","",""],sizeType:"px",lineHeight:["","",""],lineType:"",letterSpacing:["","",""],letterType:"px",textTransform:"",family:"var( --global-body-font-family, inherit )",google:!1,style:"normal",weight:"400",variant:"",subset:"",loadGoogle:!0}],_kad_navigation_dropdownTypography:[{size:["","",""],sizeType:"px",lineHeight:["","",""],lineType:"",letterSpacing:["","",""],letterType:"px",textTransform:"capitalize",family:"",google:!1,style:"",weight:"",variant:"",subset:"",loadGoogle:!0}],_kad_navigation_dropdownBorderTablet:[{top:["","solid",""],right:["","solid",""],bottom:["","solid",""],left:["","solid",""],unit:""}],_kad_navigation_dropdownBorderMobile:[{top:["","solid",""],right:["","solid",""],bottom:["","solid",""],left:["","solid",""],unit:""}]},Io={_kad_navigation_collapseSubMenus:"1",_kad_navigation_collapseSubMenusTablet:"1",_kad_navigation_collapseSubMenusMobile:"1",_kad_navigation_orientation:"vertical",_kad_navigation_spacing:["1","","1",""],_kad_navigation_dropdownDividerTablet:[{top:["","",""],right:["","",""],bottom:["","",""],left:["","",""],unit:""}],_kad_navigation_dropdownDividerMobile:[{top:["","",""],right:["","",""],bottom:["","",""],left:["","",""],unit:""}],_kad_navigation_linkColor:"palette4",_kad_navigation_linkColorHover:"palette1",_kad_navigation_linkColorActive:"palette1",_kad_navigation_descriptionColor:"palette6",_kad_navigation_typography:[{size:["sm","",""],sizeType:"px",lineHeight:["","",""],lineType:"",letterSpacing:["","",""],letterType:"px",textTransform:"",family:"var( --global-body-font-family, inherit )",google:!1,style:"normal",weight:"400",variant:"",subset:"",loadGoogle:!0}],_kad_navigation_dropdownTypography:[{size:["","",""],sizeType:"px",lineHeight:["","",""],lineType:"",letterSpacing:["","",""],letterType:"px",textTransform:"",family:"",google:!1,style:"",weight:"",variant:"",subset:"",loadGoogle:!0}],_kad_navigation_dropdownBorderTablet:[{top:["","solid",""],right:["","solid",""],bottom:["","solid",""],left:["","solid",""],unit:""}],_kad_navigation_dropdownBorderMobile:[{top:["","solid",""],right:["","solid",""],bottom:["","solid",""],left:["","solid",""],unit:""}]},Po={_kad_navigation_collapseSubMenus:"1",_kad_navigation_collapseSubMenusTablet:"1",_kad_navigation_collapseSubMenusMobile:"1",_kad_navigation_orientation:"vertical",_kad_navigation_spacing:["1","","1",""],_kad_navigation_dropdownDividerTablet:[{top:["","",""],right:["","",""],bottom:["","",""],left:["","",""],unit:""}],_kad_navigation_dropdownDividerMobile:[{top:["","",""],right:["","",""],bottom:["","",""],left:["","",""],unit:""}],_kad_navigation_linkColor:"palette4",_kad_navigation_linkColorHover:"palette1",_kad_navigation_linkColorActive:"palette1",_kad_navigation_descriptionColor:"palette6",_kad_navigation_typography:[{size:["sm","",""],sizeType:"px",lineHeight:["","",""],lineType:"",letterSpacing:["","",""],letterType:"px",textTransform:"",family:"var( --global-body-font-family, inherit )",google:!1,style:"normal",weight:"400",variant:"",subset:"",loadGoogle:!0}],_kad_navigation_dropdownTypography:[{size:["","",""],sizeType:"px",lineHeight:["","",""],lineType:"",letterSpacing:["","",""],letterType:"px",textTransform:"",family:"",google:!1,style:"",weight:"",variant:"",subset:"",loadGoogle:!0}],_kad_navigation_dropdownBorderTablet:[{top:["","solid",""],right:["","solid",""],bottom:["","solid",""],left:["","solid",""],unit:""}],_kad_navigation_dropdownBorderMobile:[{top:["","solid",""],right:["","solid",""],bottom:["","solid",""],left:["","solid",""],unit:""}]};function Lo(){return[(0,r.createBlock)("kadence/navigation",{},[(0,r.createBlock)("kadence/navigation-link",{uniqueID:"376_03ert41d-5b",label:"Short Title",url:"#",kind:"custom"},[]),(0,r.createBlock)("kadence/navigation-link",{uniqueID:"376_032341d-5b",label:"Short Title",url:"#",kind:"custom"},[]),(0,r.createBlock)("kadence/navigation-link",{uniqueID:"376_4442342-d5",label:"Short Title",url:"#",kind:"custom"},[]),(0,r.createBlock)("kadence/navigation-link",{uniqueID:"376_6323e99-fb",label:"Short Title",url:"#",kind:"custom"},[])])]}const No={_kad_navigation_orientation:"vertical"};function Fo(e,t=null){return function(e,t=null){const o={};if("mega-2-nav-1"===e)o.templatePostMeta=So,o.templateInnerBlocks=[(0,r.createBlock)("kadence/navigation",{},[(0,r.createBlock)("kadence/navigation-link",{uniqueID:"320_ddfd5b-7f",label:"Add a short title",description:"Use this space to add a short description.",url:"#",kind:"custom",linkColor:"palette3",mediaType:"icon",mediaAlign:"left",mediaIcon:[{icon:"fe_star",size:20,sizeTablet:"",sizeMobile:"",width:2,widthTablet:2,widthMobile:2,hoverAnimation:"none",title:"",flipIcon:""}],mediaColor:"palette9",mediaColorHover:"palette9",mediaColorActive:"palette9",mediaBackground:"palette6",mediaBackgroundHover:"palette6",mediaBackgroundActive:"palette6",mediaBorderRadius:["7","7","7","7"],mediaStyle:[{color:"palette9",colorTablet:"",colorMobile:"",colorHover:"palette9",colorHoverTablet:"",colorHoverMobile:"",colorActive:"palette9",colorActiveTablet:"",colorActiveMobile:"",background:"palette6",backgroundTablet:"",backgroundMobile:"",backgroundHover:"palette6",backgroundHoverTablet:"",backgroundHoverMobile:"",backgroundActive:"palette6",backgroundActiveTablet:"",backgroundActiveMobile:"",border:"",hoverBorder:"",borderRadius:7,borderRadiusTablet:"",borderRadiusMobile:"",borderWidth:[0,0,0,0],padding:[5,5,5,5],paddingTablet:["","","",""],paddingMobile:["","","",""],paddingType:"px",margin:[8,"","",""],marginTablet:["","","",""],marginMobile:["","","",""],marginType:"px"}]},[]),(0,r.createBlock)("kadence/navigation-link",{uniqueID:"320_ae34d1-d7",label:"Add a short title",description:"Use this space to add a short description.",url:"#",kind:"custom",linkColor:"palette3",mediaType:"icon",mediaAlign:"left",mediaIcon:[{icon:"fe_star",size:20,sizeTablet:"",sizeMobile:"",width:2,widthTablet:2,widthMobile:2,hoverAnimation:"none",title:"",flipIcon:""}],mediaColor:"palette9",mediaColorHover:"palette9",mediaColorActive:"palette9",mediaBackground:"palette6",mediaBackgroundHover:"palette6",mediaBackgroundActive:"palette6",mediaBorderRadius:["7","7","7","7"],mediaStyle:[{color:"palette9",colorTablet:"",colorMobile:"",colorHover:"palette9",colorHoverTablet:"",colorHoverMobile:"",colorActive:"palette9",colorActiveTablet:"",colorActiveMobile:"",background:"palette6",backgroundTablet:"",backgroundMobile:"",backgroundHover:"palette6",backgroundHoverTablet:"",backgroundHoverMobile:"",backgroundActive:"palette6",backgroundActiveTablet:"",backgroundActiveMobile:"",border:"",hoverBorder:"",borderRadius:7,borderRadiusTablet:"",borderRadiusMobile:"",borderWidth:[0,0,0,0],padding:[5,5,5,5],paddingTablet:["","","",""],paddingMobile:["","","",""],paddingType:"px",margin:[8,"","",""],marginTablet:["","","",""],marginMobile:["","","",""],marginType:"px"}]},[]),(0,r.createBlock)("kadence/navigation-link",{uniqueID:"320_96d062-2d",label:"Add a short title",description:"Use this space to add a short description.",url:"#",kind:"custom",linkColor:"palette3",mediaType:"icon",mediaAlign:"left",mediaIcon:[{icon:"fe_star",size:20,sizeTablet:"",sizeMobile:"",width:2,widthTablet:2,widthMobile:2,hoverAnimation:"none",title:"",flipIcon:""}],mediaColor:"palette9",mediaColorHover:"palette9",mediaColorActive:"palette9",mediaBackground:"palette6",mediaBackgroundHover:"palette6",mediaBackgroundActive:"palette6",mediaBorderRadius:["7","7","7","7"],mediaStyle:[{color:"palette9",colorTablet:"",colorMobile:"",colorHover:"palette9",colorHoverTablet:"",colorHoverMobile:"",colorActive:"palette9",colorActiveTablet:"",colorActiveMobile:"",background:"palette6",backgroundTablet:"",backgroundMobile:"",backgroundHover:"palette6",backgroundHoverTablet:"",backgroundHoverMobile:"",backgroundActive:"palette6",backgroundActiveTablet:"",backgroundActiveMobile:"",border:"",hoverBorder:"",borderRadius:7,borderRadiusTablet:"",borderRadiusMobile:"",borderWidth:[0,0,0,0],padding:[5,5,5,5],paddingTablet:["","","",""],paddingMobile:["","","",""],paddingType:"px",margin:[8,"","",""],marginTablet:["","","",""],marginMobile:["","","",""],marginType:"px"}]},[])])];else if("mega-2-nav-2"===e)o.templatePostMeta=Ao,o.templateInnerBlocks=[(0,r.createBlock)("kadence/navigation",{},[(0,r.createBlock)("kadence/navigation-link",{uniqueID:"320_31fdc9-c3",label:"Add a short title",url:"Add%20a%20short%20title",kind:"custom"},[]),(0,r.createBlock)("kadence/navigation-link",{uniqueID:"320_fe64a2-93",label:"Add a short title",url:"Add%20a%20short%20title",kind:"custom"},[]),(0,r.createBlock)("kadence/navigation-link",{uniqueID:"320_4c592b-41",label:"Add a short title",url:"Add%20a%20short%20title",kind:"custom"},[])])];else if("mega-4-nav-1"===e)o.templatePostMeta=Do,o.templateInnerBlocks=[(0,r.createBlock)("kadence/navigation",{},[(0,r.createBlock)("kadence/navigation-link",{uniqueID:"372_59c297-f5",label:"Short Title",description:"Use this space to add a short description.",url:"#",kind:"custom",typography:[{size:["","",""],sizeType:"px",lineHeight:["","",""],lineType:"",letterSpacing:["","",""],letterType:"px",textTransform:"",family:"",google:"",style:"",weight:"400",variant:"",subset:"",loadGoogle:!0}],mediaType:"icon",mediaAlign:"left",mediaIcon:[{icon:"fe_cloud",size:20,sizeTablet:"",sizeMobile:"",width:2,widthTablet:2,widthMobile:2,hoverAnimation:"none",title:"",flipIcon:""}],mediaColor:"palette9",mediaBackground:"palette1",mediaBorderRadius:["3","3","3","3"],mediaStyle:[{color:"palette9",colorTablet:"",colorMobile:"",colorHover:"",colorHoverTablet:"",colorHoverMobile:"",colorActive:"",colorActiveTablet:"",colorActiveMobile:"",background:"palette1",backgroundTablet:"",backgroundMobile:"",backgroundHover:"",backgroundHoverTablet:"",backgroundHoverMobile:"",backgroundActive:"",backgroundActiveTablet:"",backgroundActiveMobile:"",border:"",hoverBorder:"",borderRadius:3,borderRadiusTablet:"",borderRadiusMobile:"",borderWidth:[0,0,0,0],padding:[5,5,5,5],paddingTablet:["","","",""],paddingMobile:["","","",""],paddingType:"px",margin:[10,"","",""],marginTablet:["","","",""],marginMobile:["","","",""],marginType:"px"}],descriptionSpacing:"5",descriptionColor:"palette5",descriptionColorHover:"palette5",descriptionColorActive:"palette5",borderRadiusHover:[30,30,30,30],borderRadiusActive:[30,30,30,30]},[]),(0,r.createBlock)("kadence/navigation-link",{uniqueID:"372_833e19-55",label:"Short Title",description:"Use this space to add a short description.",url:"#",kind:"custom",typography:[{size:["","",""],sizeType:"px",lineHeight:["","",""],lineType:"",letterSpacing:["","",""],letterType:"px",textTransform:"",family:"",google:"",style:"",weight:"400",variant:"",subset:"",loadGoogle:!0}],mediaType:"icon",mediaAlign:"left",mediaIcon:[{icon:"fe_cloudLightning",size:20,sizeTablet:"",sizeMobile:"",width:2,widthTablet:2,widthMobile:2,hoverAnimation:"none",title:"",flipIcon:""}],mediaColor:"palette9",mediaBackground:"palette2",mediaBorderRadius:["3","3","3","3"],mediaStyle:[{color:"palette9",colorTablet:"",colorMobile:"",colorHover:"",colorHoverTablet:"",colorHoverMobile:"",colorActive:"",colorActiveTablet:"",colorActiveMobile:"",background:"palette2",backgroundTablet:"",backgroundMobile:"",backgroundHover:"",backgroundHoverTablet:"",backgroundHoverMobile:"",backgroundActive:"",backgroundActiveTablet:"",backgroundActiveMobile:"",border:"",hoverBorder:"",borderRadius:3,borderRadiusTablet:"",borderRadiusMobile:"",borderWidth:[0,0,0,0],padding:[5,5,5,5],paddingTablet:["","","",""],paddingMobile:["","","",""],paddingType:"px",margin:[10,"","",""],marginTablet:["","","",""],marginMobile:["","","",""],marginType:"px"}],descriptionSpacing:"5",descriptionColor:"palette5",descriptionColorHover:"palette5",descriptionColorActive:"palette5"},[]),(0,r.createBlock)("kadence/navigation-link",{uniqueID:"372_70deb0-0d",label:"Short Title",description:"Use this space to add a short description.",url:"#",kind:"custom",typography:[{size:["","",""],sizeType:"px",lineHeight:["","",""],lineType:"",letterSpacing:["","",""],letterType:"px",textTransform:"",family:"",google:"",style:"",weight:"400",variant:"",subset:"",loadGoogle:!0}],mediaType:"icon",mediaAlign:"left",mediaIcon:[{icon:"fe_cloudDrizzle",size:20,sizeTablet:"",sizeMobile:"",width:2,widthTablet:2,widthMobile:2,hoverAnimation:"none",title:"",flipIcon:""}],mediaColor:"palette9",mediaBackground:"palette4",mediaBorderRadius:["3","3","3","3"],mediaStyle:[{color:"palette9",colorTablet:"",colorMobile:"",colorHover:"",colorHoverTablet:"",colorHoverMobile:"",colorActive:"",colorActiveTablet:"",colorActiveMobile:"",background:"palette4",backgroundTablet:"",backgroundMobile:"",backgroundHover:"",backgroundHoverTablet:"",backgroundHoverMobile:"",backgroundActive:"",backgroundActiveTablet:"",backgroundActiveMobile:"",border:"",hoverBorder:"",borderRadius:3,borderRadiusTablet:"",borderRadiusMobile:"",borderWidth:[0,0,0,0],padding:[5,5,5,5],paddingTablet:["","","",""],paddingMobile:["","","",""],paddingType:"px",margin:[10,"","",""],marginTablet:["","","",""],marginMobile:["","","",""],marginType:"px"}],descriptionSpacing:"5",descriptionColor:"palette5",descriptionColorHover:"palette5",descriptionColorActive:"palette5"},[])])];else if("mega-4-nav-2"===e)o.templatePostMeta=xo,o.templateInnerBlocks=[(0,r.createBlock)("kadence/navigation",{},[(0,r.createBlock)("kadence/navigation-link",{uniqueID:"372_7c5694-c2",label:"Link Title",description:"Use this space to add a short description.",url:"#",kind:"custom",mediaType:"icon",mediaAlign:"left",mediaIcon:[{icon:"fe_film",size:20,sizeTablet:"",sizeMobile:"",width:2,widthTablet:2,widthMobile:2,hoverAnimation:"none",title:"",flipIcon:""}],mediaColor:"palette1",mediaColorHover:"palette1",mediaColorActive:"palette1",mediaStyle:[{color:"palette1",colorTablet:"",colorMobile:"",colorHover:"palette1",colorHoverTablet:"",colorHoverMobile:"",colorActive:"palette1",colorActiveTablet:"",colorActiveMobile:"",background:"",backgroundTablet:"",backgroundMobile:"",backgroundHover:"",backgroundHoverTablet:"",backgroundHoverMobile:"",backgroundActive:"",backgroundActiveTablet:"",backgroundActiveMobile:"",border:"",hoverBorder:"",borderRadius:"",borderRadiusTablet:"",borderRadiusMobile:"",borderWidth:[0,0,0,0],padding:[5,5,5,5],paddingTablet:["","","",""],paddingMobile:["","","",""],paddingType:"px",margin:[8,"","",""],marginTablet:["","","",""],marginMobile:["","","",""],marginType:"px"}]},[]),(0,r.createBlock)("kadence/navigation-link",{uniqueID:"372_8c8051-3c",label:"Link Title",description:"Use this space to add a short description.",url:"#",kind:"custom",mediaType:"icon",mediaAlign:"left",mediaIcon:[{icon:"fe_battery",size:20,sizeTablet:"",sizeMobile:"",width:2,widthTablet:2,widthMobile:2,hoverAnimation:"none",title:"",flipIcon:""}],mediaColor:"palette1",mediaColorHover:"palette1",mediaColorActive:"palette1",mediaStyle:[{color:"palette1",colorTablet:"",colorMobile:"",colorHover:"palette1",colorHoverTablet:"",colorHoverMobile:"",colorActive:"palette1",colorActiveTablet:"",colorActiveMobile:"",background:"",backgroundTablet:"",backgroundMobile:"",backgroundHover:"",backgroundHoverTablet:"",backgroundHoverMobile:"",backgroundActive:"",backgroundActiveTablet:"",backgroundActiveMobile:"",border:"",hoverBorder:"",borderRadius:"",borderRadiusTablet:"",borderRadiusMobile:"",borderWidth:[0,0,0,0],padding:[5,5,5,5],paddingTablet:["","","",""],paddingMobile:["","","",""],paddingType:"px",margin:[8,"","",""],marginTablet:["","","",""],marginMobile:["","","",""],marginType:"px"}]},[]),(0,r.createBlock)("kadence/navigation-link",{uniqueID:"372_c6744c-a1",label:"Link Title",description:"Use this space to add a short description.",url:"#",kind:"custom",mediaType:"icon",mediaAlign:"left",mediaIcon:[{icon:"fe_feather",size:20,sizeTablet:"",sizeMobile:"",width:2,widthTablet:2,widthMobile:2,hoverAnimation:"none",title:"",flipIcon:""}],mediaColor:"palette1",mediaColorHover:"palette1",mediaColorActive:"palette1",mediaStyle:[{color:"palette1",colorTablet:"",colorMobile:"",colorHover:"palette1",colorHoverTablet:"",colorHoverMobile:"",colorActive:"palette1",colorActiveTablet:"",colorActiveMobile:"",background:"",backgroundTablet:"",backgroundMobile:"",backgroundHover:"",backgroundHoverTablet:"",backgroundHoverMobile:"",backgroundActive:"",backgroundActiveTablet:"",backgroundActiveMobile:"",border:"",hoverBorder:"",borderRadius:"",borderRadiusTablet:"",borderRadiusMobile:"",borderWidth:[0,0,0,0],padding:[5,5,5,5],paddingTablet:["","","",""],paddingMobile:["","","",""],paddingType:"px",margin:[8,"","",""],marginTablet:["","","",""],marginMobile:["","","",""],marginType:"px"}]},[]),(0,r.createBlock)("kadence/navigation-link",{uniqueID:"372_0a0c94-ab",label:"Link Title",description:"Use this space to add a short description.",url:"#",kind:"custom",mediaType:"icon",mediaAlign:"left",mediaIcon:[{icon:"fe_mic",size:20,sizeTablet:"",sizeMobile:"",width:2,widthTablet:2,widthMobile:2,hoverAnimation:"none",title:"",flipIcon:""}],mediaColor:"palette1",mediaColorHover:"palette1",mediaColorActive:"palette1",mediaStyle:[{color:"palette1",colorTablet:"",colorMobile:"",colorHover:"palette1",colorHoverTablet:"",colorHoverMobile:"",colorActive:"palette1",colorActiveTablet:"",colorActiveMobile:"",background:"",backgroundTablet:"",backgroundMobile:"",backgroundHover:"",backgroundHoverTablet:"",backgroundHoverMobile:"",backgroundActive:"",backgroundActiveTablet:"",backgroundActiveMobile:"",border:"",hoverBorder:"",borderRadius:"",borderRadiusTablet:"",borderRadiusMobile:"",borderWidth:[0,0,0,0],padding:[5,5,5,5],paddingTablet:["","","",""],paddingMobile:["","","",""],paddingType:"px",margin:[8,"","",""],marginTablet:["","","",""],marginMobile:["","","",""],marginType:"px"}]},[])])];else if("mega-4-nav-3"===e)o.templatePostMeta=Ho,o.templateInnerBlocks=[(0,r.createBlock)("kadence/navigation",{},[(0,r.createBlock)("kadence/navigation-link",{uniqueID:"372_45c883-68",label:"Link Title",description:"Use this space to add a short description.",url:"#",kind:"custom",mediaType:"icon",mediaAlign:"left",mediaIcon:[{icon:"fe_paperclip",size:20,sizeTablet:"",sizeMobile:"",width:2,widthTablet:2,widthMobile:2,hoverAnimation:"none",title:"",flipIcon:""}],mediaColor:"palette1",mediaColorHover:"palette1",mediaColorActive:"palette1",mediaStyle:[{color:"palette1",colorTablet:"",colorMobile:"",colorHover:"palette1",colorHoverTablet:"",colorHoverMobile:"",colorActive:"palette1",colorActiveTablet:"",colorActiveMobile:"",background:"",backgroundTablet:"",backgroundMobile:"",backgroundHover:"",backgroundHoverTablet:"",backgroundHoverMobile:"",backgroundActive:"",backgroundActiveTablet:"",backgroundActiveMobile:"",border:"",hoverBorder:"",borderRadius:"",borderRadiusTablet:"",borderRadiusMobile:"",borderWidth:[0,0,0,0],padding:[5,5,5,5],paddingTablet:["","","",""],paddingMobile:["","","",""],paddingType:"px",margin:[8,"","",""],marginTablet:["","","",""],marginMobile:["","","",""],marginType:"px"}]},[]),(0,r.createBlock)("kadence/navigation-link",{uniqueID:"372_eea3ed-17",label:"Link Title",description:"Use this space to add a short description.",url:"#",kind:"custom",mediaType:"icon",mediaAlign:"left",mediaIcon:[{icon:"fe_image",size:20,sizeTablet:"",sizeMobile:"",width:2,widthTablet:2,widthMobile:2,hoverAnimation:"none",title:"",flipIcon:""}],mediaColor:"palette1",mediaColorHover:"palette1",mediaColorActive:"palette1",mediaStyle:[{color:"palette1",colorTablet:"",colorMobile:"",colorHover:"palette1",colorHoverTablet:"",colorHoverMobile:"",colorActive:"palette1",colorActiveTablet:"",colorActiveMobile:"",background:"",backgroundTablet:"",backgroundMobile:"",backgroundHover:"",backgroundHoverTablet:"",backgroundHoverMobile:"",backgroundActive:"",backgroundActiveTablet:"",backgroundActiveMobile:"",border:"",hoverBorder:"",borderRadius:"",borderRadiusTablet:"",borderRadiusMobile:"",borderWidth:[0,0,0,0],padding:[5,5,5,5],paddingTablet:["","","",""],paddingMobile:["","","",""],paddingType:"px",margin:[8,"","",""],marginTablet:["","","",""],marginMobile:["","","",""],marginType:"px"}]},[]),(0,r.createBlock)("kadence/navigation-link",{uniqueID:"372_2e2290-89",label:"Link Title",description:"Use this space to add a short description.",url:"#",kind:"custom",mediaType:"icon",mediaAlign:"left",mediaIcon:[{icon:"fe_moon",size:20,sizeTablet:"",sizeMobile:"",width:2,widthTablet:2,widthMobile:2,hoverAnimation:"none",title:"",flipIcon:""}],mediaColor:"palette1",mediaColorHover:"palette1",mediaColorActive:"palette1",mediaStyle:[{color:"palette1",colorTablet:"",colorMobile:"",colorHover:"palette1",colorHoverTablet:"",colorHoverMobile:"",colorActive:"palette1",colorActiveTablet:"",colorActiveMobile:"",background:"",backgroundTablet:"",backgroundMobile:"",backgroundHover:"",backgroundHoverTablet:"",backgroundHoverMobile:"",backgroundActive:"",backgroundActiveTablet:"",backgroundActiveMobile:"",border:"",hoverBorder:"",borderRadius:"",borderRadiusTablet:"",borderRadiusMobile:"",borderWidth:[0,0,0,0],padding:[5,5,5,5],paddingTablet:["","","",""],paddingMobile:["","","",""],paddingType:"px",margin:[8,"","",""],marginTablet:["","","",""],marginMobile:["","","",""],marginType:"px"}]},[]),(0,r.createBlock)("kadence/navigation-link",{uniqueID:"372_eeb2b5-c1",label:"Link Title",description:"Use this space to add a short description.",url:"#",kind:"custom",mediaType:"icon",mediaAlign:"left",mediaIcon:[{icon:"fe_watch",size:20,sizeTablet:"",sizeMobile:"",width:2,widthTablet:2,widthMobile:2,hoverAnimation:"none",title:"",flipIcon:""}],mediaColor:"palette1",mediaColorHover:"palette1",mediaColorActive:"palette1",mediaStyle:[{color:"palette1",colorTablet:"",colorMobile:"",colorHover:"palette1",colorHoverTablet:"",colorHoverMobile:"",colorActive:"palette1",colorActiveTablet:"",colorActiveMobile:"",background:"",backgroundTablet:"",backgroundMobile:"",backgroundHover:"",backgroundHoverTablet:"",backgroundHoverMobile:"",backgroundActive:"",backgroundActiveTablet:"",backgroundActiveMobile:"",border:"",hoverBorder:"",borderRadius:"",borderRadiusTablet:"",borderRadiusMobile:"",borderWidth:[0,0,0,0],padding:[5,5,5,5],paddingTablet:["","","",""],paddingMobile:["","","",""],paddingType:"px",margin:[8,"","",""],marginTablet:["","","",""],marginMobile:["","","",""],marginType:"px"}]},[])])];else if("mega-4-nav-4"===e)o.templatePostMeta=Eo,o.templateInnerBlocks=[(0,r.createBlock)("kadence/navigation",{},[(0,r.createBlock)("kadence/navigation-link",{uniqueID:"372_6fa62d-de",label:"View Demo",url:"#",kind:"custom"},[]),(0,r.createBlock)("kadence/navigation-link",{uniqueID:"372_6edcc1-8e",label:"Contact Sales",url:"#",kind:"custom"},[]),(0,r.createBlock)("kadence/navigation-link",{uniqueID:"372_c4f166-e5",label:"Documentation",url:"#",kind:"custom"},[])])];else if("mega-6-nav-1"===e)o.templatePostMeta=Bo,o.templateInnerBlocks=[(0,r.createBlock)("kadence/navigation",{},[(0,r.createBlock)("kadence/navigation-link",{uniqueID:"374_fd7683-b6",label:"Short Title",description:"Use this space to add a medium length description.",url:"#",mediaType:"icon",mediaAlign:"top",mediaColor:"palette3",mediaColorHover:"palette9",mediaColorActive:"palette9",mediaBackground:"rgba(43,108,176,0.1)",mediaBackgroundHover:"palette1",mediaBackgroundActive:"palette1",mediaBorderRadius:["50","50","50","50"],mediaStyle:[{color:"palette3",colorTablet:"",colorMobile:"",colorHover:"palette9",colorHoverTablet:"",colorHoverMobile:"",colorActive:"palette9",colorActiveTablet:"",colorActiveMobile:"",background:"rgba(43,108,176,0.1)",backgroundTablet:"",backgroundMobile:"",backgroundHover:"palette1",backgroundHoverTablet:"",backgroundHoverMobile:"",backgroundActive:"palette1",backgroundActiveTablet:"",backgroundActiveMobile:"",border:"",hoverBorder:"",borderRadius:50,borderRadiusTablet:"",borderRadiusMobile:"",borderWidth:[0,0,0,0],padding:[5,5,5,5],paddingTablet:["","","",""],paddingMobile:["","","",""],paddingType:"px",margin:[9,"","",""],marginTablet:["","","",""],marginMobile:["","","",""],marginType:"px"}]},[]),(0,r.createBlock)("kadence/navigation-link",{uniqueID:"374_22bf7e-36",label:"Short title",description:"Use this space to add a medium length description.",url:"#",kind:"custom",mediaType:"icon",mediaAlign:"top",mediaColor:"palette3",mediaColorHover:"palette9",mediaColorActive:"palette9",mediaBackground:"rgba(43,108,176,0.1)",mediaBackgroundHover:"palette1",mediaBackgroundActive:"palette1",mediaBorderRadius:["50","50","50","50"],mediaStyle:[{color:"palette3",colorTablet:"",colorMobile:"",colorHover:"palette9",colorHoverTablet:"",colorHoverMobile:"",colorActive:"palette9",colorActiveTablet:"",colorActiveMobile:"",background:"rgba(43,108,176,0.1)",backgroundTablet:"",backgroundMobile:"",backgroundHover:"palette1",backgroundHoverTablet:"",backgroundHoverMobile:"",backgroundActive:"palette1",backgroundActiveTablet:"",backgroundActiveMobile:"",border:"",hoverBorder:"",borderRadius:50,borderRadiusTablet:"",borderRadiusMobile:"",borderWidth:[0,0,0,0],padding:[5,5,5,5],paddingTablet:["","","",""],paddingMobile:["","","",""],paddingType:"px",margin:[0,"","",""],marginTablet:["","","",""],marginMobile:["","","",""],marginType:"px"}]},[]),(0,r.createBlock)("kadence/navigation-link",{uniqueID:"374_7bfb70-25",label:"Short Title",description:"Use this space to add a medium length description.",url:"#",kind:"custom",mediaType:"icon",mediaAlign:"top",mediaColor:"palette3",mediaColorHover:"palette9",mediaColorActive:"palette9",mediaBackground:"rgba(43,108,176,0.1)",mediaBackgroundHover:"palette1",mediaBackgroundActive:"palette1",mediaBorderRadius:["50","50","50","50"],mediaStyle:[{color:"palette3",colorTablet:"",colorMobile:"",colorHover:"palette9",colorHoverTablet:"",colorHoverMobile:"",colorActive:"palette9",colorActiveTablet:"",colorActiveMobile:"",background:"rgba(43,108,176,0.1)",backgroundTablet:"",backgroundMobile:"",backgroundHover:"palette1",backgroundHoverTablet:"",backgroundHoverMobile:"",backgroundActive:"palette1",backgroundActiveTablet:"",backgroundActiveMobile:"",border:"",hoverBorder:"",borderRadius:50,borderRadiusTablet:"",borderRadiusMobile:"",borderWidth:[0,0,0,0],padding:[5,5,5,5],paddingTablet:["","","",""],paddingMobile:["","","",""],paddingType:"px",margin:[0,"","",""],marginTablet:["","","",""],marginMobile:["","","",""],marginType:"px"}]},[]),(0,r.createBlock)("kadence/navigation-link",{uniqueID:"374_75cf22-1a",label:"Short Title",description:"Use this space to add a medium length description.",url:"#",kind:"custom",mediaType:"icon",mediaAlign:"top",mediaColor:"palette3",mediaColorHover:"palette9",mediaColorActive:"palette9",mediaBackground:"rgba(43,108,176,0.1)",mediaBackgroundHover:"palette1",mediaBackgroundActive:"palette1",mediaBorderRadius:["50","50","50","50"],mediaStyle:[{color:"palette3",colorTablet:"",colorMobile:"",colorHover:"palette9",colorHoverTablet:"",colorHoverMobile:"",colorActive:"palette9",colorActiveTablet:"",colorActiveMobile:"",background:"rgba(43,108,176,0.1)",backgroundTablet:"",backgroundMobile:"",backgroundHover:"palette1",backgroundHoverTablet:"",backgroundHoverMobile:"",backgroundActive:"palette1",backgroundActiveTablet:"",backgroundActiveMobile:"",border:"",hoverBorder:"",borderRadius:50,borderRadiusTablet:"",borderRadiusMobile:"",borderWidth:[0,0,0,0],padding:[5,5,5,5],paddingTablet:["","","",""],paddingMobile:["","","",""],paddingType:"px",margin:[0,"","",""],marginTablet:["","","",""],marginMobile:["","","",""],marginType:"px"}]},[]),(0,r.createBlock)("kadence/navigation-link",{uniqueID:"374_e05329-8e",label:"Short Title",description:"Use this space to add a medium length description.",url:"#",kind:"custom",mediaType:"icon",mediaAlign:"top",mediaColor:"palette3",mediaColorHover:"palette9",mediaColorActive:"palette9",mediaBackground:"rgba(43,108,176,0.1)",mediaBackgroundHover:"palette1",mediaBackgroundActive:"palette1",mediaBorderRadius:["50","50","50","50"],mediaStyle:[{color:"palette3",colorTablet:"",colorMobile:"",colorHover:"palette9",colorHoverTablet:"",colorHoverMobile:"",colorActive:"palette9",colorActiveTablet:"",colorActiveMobile:"",background:"rgba(43,108,176,0.1)",backgroundTablet:"",backgroundMobile:"",backgroundHover:"palette1",backgroundHoverTablet:"",backgroundHoverMobile:"",backgroundActive:"palette1",backgroundActiveTablet:"",backgroundActiveMobile:"",border:"",hoverBorder:"",borderRadius:50,borderRadiusTablet:"",borderRadiusMobile:"",borderWidth:[0,0,0,0],padding:[5,5,5,5],paddingTablet:["","","",""],paddingMobile:["","","",""],paddingType:"px",margin:[0,"","",""],marginTablet:["","","",""],marginMobile:["","","",""],marginType:"px"}]},[])])];else if("mega-7-nav-1"===e)o.templatePostMeta=zo,o.templateInnerBlocks=[(0,r.createBlock)("kadence/navigation",{},[(0,r.createBlock)("kadence/navigation-link",{uniqueID:"376_790057-62",label:"Short Title",description:"Use this space to add a short description.",url:"#",kind:"custom",highlightLabel:"New",iconSide:"left",highlightIcon:[{icon:"ic_star",size:10,sizeTablet:"",sizeMobile:"",width:2,widthTablet:2,widthMobile:2,hoverAnimation:"none",title:"",flipIcon:""}],highlightSpacing:[{border:"",tabletBorder:"",mobileBorder:"",borderRadius:[5,5,5,5],tabletBorderRadius:[5,5,5,5],mobileBorderRadius:[5,5,5,5],borderWidth:[0,0,0,0],gap:[3,"",""],padding:[5,5,5,5],tabletPadding:[5,5,5,5],mobilePadding:[5,5,5,5],margin:["","","",""],tabletMargin:["","","",""],mobileMargin:["","","",""]}]},[]),(0,r.createBlock)("kadence/navigation-link",{uniqueID:"376_03ad1d-5b",label:"Short Title",description:"Use this space to add a short description.",url:"#",kind:"custom"},[]),(0,r.createBlock)("kadence/navigation-link",{uniqueID:"376_44a642-d5",label:"Short Title",description:"Use this space to add a short description.",url:"#",kind:"custom"},[]),(0,r.createBlock)("kadence/navigation-link",{uniqueID:"376_619e99-fb",label:"Short Title",description:"Use this space to add a short description.",url:"#",kind:"custom"},[])])];else if("mega-7-nav-2"===e)o.templatePostMeta=Ro,o.templateInnerBlocks=[(0,r.createBlock)("kadence/navigation",{},[(0,r.createBlock)("kadence/navigation-link",{uniqueID:"376_790057-63",label:"Short Title",description:"Use this space to add a short description.",url:"#",kind:"custom",highlightLabel:"New",iconSide:"left",highlightIcon:[{icon:"ic_star",size:10,sizeTablet:"",sizeMobile:"",width:2,widthTablet:2,widthMobile:2,hoverAnimation:"none",title:"",flipIcon:""}],highlightSpacing:[{border:"",tabletBorder:"",mobileBorder:"",borderRadius:[5,5,5,5],tabletBorderRadius:[5,5,5,5],mobileBorderRadius:[5,5,5,5],borderWidth:[0,0,0,0],gap:[3,"",""],padding:[5,5,5,5],tabletPadding:[5,5,5,5],mobilePadding:[5,5,5,5],margin:["","","",""],tabletMargin:["","","",""],mobileMargin:["","","",""]}]},[]),(0,r.createBlock)("kadence/navigation-link",{uniqueID:"376_03ad1d-5c",label:"Short Title",description:"Use this space to add a short description.",url:"#",kind:"custom"},[]),(0,r.createBlock)("kadence/navigation-link",{uniqueID:"376_44a642-d6",label:"Short Title",description:"Use this space to add a short description.",url:"#",kind:"custom"},[]),(0,r.createBlock)("kadence/navigation-link",{uniqueID:"376_619e99-fc",label:"Short Title",description:"Use this space to add a short description.",url:"#",kind:"custom"},[])])];else if("mega-7-nav-3"===e)o.templatePostMeta=Io,o.templateInnerBlocks=[(0,r.createBlock)("kadence/navigation",{},[(0,r.createBlock)("kadence/navigation-link",{uniqueID:"376_790057-64",label:"Short Title",description:"Use this space to add a short description.",url:"#",kind:"custom",highlightLabel:"New",iconSide:"left",highlightIcon:[{icon:"ic_star",size:10,sizeTablet:"",sizeMobile:"",width:2,widthTablet:2,widthMobile:2,hoverAnimation:"none",title:"",flipIcon:""}],highlightSpacing:[{border:"",tabletBorder:"",mobileBorder:"",borderRadius:[5,5,5,5],tabletBorderRadius:[5,5,5,5],mobileBorderRadius:[5,5,5,5],borderWidth:[0,0,0,0],gap:[3,"",""],padding:[5,5,5,5],tabletPadding:[5,5,5,5],mobilePadding:[5,5,5,5],margin:["","","",""],tabletMargin:["","","",""],mobileMargin:["","","",""]}]},[]),(0,r.createBlock)("kadence/navigation-link",{uniqueID:"376_03ad1d-5d",label:"Short Title",description:"Use this space to add a short description.",url:"#",kind:"custom"},[]),(0,r.createBlock)("kadence/navigation-link",{uniqueID:"376_44a642-d7",label:"Short Title",description:"Use this space to add a short description.",url:"#",kind:"custom"},[]),(0,r.createBlock)("kadence/navigation-link",{uniqueID:"376_619e99-fd",label:"Short Title",description:"Use this space to add a short description.",url:"#",kind:"custom"},[])])];else if("mega-simple-nav-1"===e)o.templatePostMeta=Po,o.templateInnerBlocks=Lo();else if("mega-simple-nav-2"===e)o.templatePostMeta=Po,o.templateInnerBlocks=Lo();else if("mega-simple-nav-3"===e)o.templatePostMeta=Po,o.templateInnerBlocks=Lo();else if("mega-simple-nav-4"===e)o.templatePostMeta=Po,o.templateInnerBlocks=Lo();else if(e.includes("mega-existing-sub-menu")){const n=e.split("|")?.[1];n&&t&&(o.templatePostMeta=No,o.templateInnerBlocks=function(e,t){const o=t(e);return[(0,r.createBlock)("kadence/navigation",{},o)]}(n,t))}return o.templateInnerBlocks&&(o.templateInnerBlocks=Oo(o.templateInnerBlocks,"/wp-content/plugins/kadence-blocks/includes/assets/images/placeholder/",kadence_blocks_params.kadenceBlocksUrl+"/includes/assets/images/placeholder/")),o}(e,t)}function Oo(e,t,o){if(Array.isArray(e))e.forEach(((n,a)=>{e[a]=Oo(n,t,o)}));else if("object"==typeof e&&null!==e)for(const n in e)"string"==typeof e[n]?e[n]=e[n].replace(t,o):e[n]=Oo(e[n],t,o);return e}function Uo({id:e,post:t,commit:o,postExists:a}){const[r,l]=m("kadence_navigation","kadence_navigation");return(0,n.createElement)(f,{postType:"kadence_navigation",label:(0,i.__)("Advanced Navigation","kadence-blocks"),instructions:(0,i.__)("Select an existing navigation or create a new one.","kadence-blocks"),placeholder:(0,i.__)("Select navigation","kadence-blocks"),onSelect:o,isSelecting:e&&(0,p.isEmpty)(t)&&void 0!==a,onAddOtherType:async e=>{try{const t=await l();o(t.id),window.kb_navigation_import_core={coreMenuId:e.id,id:t.id,label:e.label}}catch(e){console.error(e)}},onAdd:async()=>{try{const e=await l();o(e.id)}catch(e){console.error(e)}},isAdding:r})}function Vo(e,t){return(0,u.useEntityProp)("postType","kadence_navigation",e,t)}(0,r.registerBlockType)("kadence/navigation",{...wo,title:(0,i._x)("Navigation (Adv)","block title","kadence-blocks"),icon:d.navigationBlockIcon,example:{attributes:{overlayMenu:"never"},innerBlocks:[{name:"core/navigation-link",attributes:{ // translators: 'Home' as in a website's home page. label:(0,i.__)("Home"),url:"https://make.wordpress.org/"}},{name:"core/navigation-link",attributes:{ // translators: 'About' as in a website's about page. label:(0,i.__)("About"),url:"https://make.wordpress.org/"}},{name:"core/navigation-link",attributes:{ // translators: 'Contact' as in a website's contact page. label:(0,i.__)("Contact"),url:"https://make.wordpress.org/"}}]},edit:function(e){const{attributes:t,setAttributes:o,isSelected:a,clientId:c}=e,{id:k,uniqueID:_,templateKey:h,makePost:y}=t,[f,w]=(0,v.useState)(!1),[M,C]=(0,v.useState)(!1),[S,A]=(0,v.useState)(h),{post:D,postExists:x,isLoading:H,currentPostType:E,postId:B}=(0,g.useSelect)((e=>({post:k&&e(u.store).getEditedEntityRecord("postType","kadence_navigation",k),postExists:k&&e(u.store).getEntityRecord("postType","kadence_navigation",k),isLoading:e(u.store).isResolving("getEntityRecord",["postType","kadence_navigation",k]),currentPostType:e("core/editor")?.getCurrentPostType()?e("core/editor")?.getCurrentPostType():"",postId:e("core/editor")?.getCurrentPostId()?e("core/editor")?.getCurrentPostId():""})),[k]),[z,R]=Vo("meta","kadence_navigation"===E?B:k),[I,P]=Vo("title","kadence_navigation"===E?B:k),[L,N]=m("kadence_navigation","kadence_navigation"),[F,O,U]=(0,u.useEntityBlockEditor)("postType","kadence_navigation",{id:k}),V={orientation:z?._kad_navigation_orientation,orientationTablet:z?._kad_navigation_orientationTablet,orientationMobile:z?._kad_navigation_orientationMobile,stretchFill:z?._kad_navigation_stretchFill,stretchFillTablet:z?._kad_navigation_stretchFillTablet,stretchFillMobile:z?._kad_navigation_stretchFillMobile,horizontalLayout:z?._kad_navigation_horizontalLayout,horizontalLayoutTablet:z?._kad_navigation_horizontalLayoutTablet,horizontalLayoutMobile:z?._kad_navigation_horizontalLayoutMobile,horizontalGrid:z?._kad_navigation_horizontalGrid,horizontalGridTablet:z?._kad_navigation_horizontalGridTablet,horizontalGridMobile:z?._kad_navigation_horizontalGridMobile},{orientation:G,orientationTablet:W,orientationMobile:q,stretchFill:K,stretchFillTablet:$,stretchFillMobile:j,horizontalLayout:X,horizontalLayoutTablet:Y,horizontalLayoutMobile:Z}=V,J=!k&&h,Q=J?h.includes("vertical")?"vertical":"horizontal":G,ee=J?h.includes("vertical")?"vertical":"horizontal":W,te=J?h.includes("vertical")?"vertical":"horizontal":q,{addUniqueID:oe}=(0,g.useDispatch)("kadenceblocks/data"),{isUniqueID:ne,isUniqueBlock:ae,parentData:ie,previewDevice:re,isPreviewMode:le,getStash:de}=(0,g.useSelect)((e=>({isUniqueID:t=>e("kadenceblocks/data").isUniqueID(t),isUniqueBlock:(t,o)=>e("kadenceblocks/data").isUniqueBlock(t,o),isPreviewMode:e("core/block-editor").getSettings().__unstableIsPreviewMode,previewDevice:e("kadenceblocks/data").getPreviewDeviceType(),parentData:{rootBlock:e("core/block-editor").getBlock(e("core/block-editor").getBlockHierarchyRootClientId(c)),postId:e("core/editor")?.getCurrentPostId()?e("core/editor")?.getCurrentPostId():"",reusableParent:e("core/block-editor").getBlockAttributes(e("core/block-editor").getBlockParentsByBlockName(c,"core/block").slice(-1)[0]),editedPostId:!!e("core/edit-site")&&e("core/edit-site").getEditedPostId()},getStash:t=>e("kadenceblocks/data").getStash(t)})),[c]);(0,v.useEffect)((()=>{const n=(0,uo.getPostOrFseId)(e,ie),a=(0,uo.getUniqueId)(_,c,ne,ae,n);a!==_?(t.uniqueID=a,o({uniqueID:a}),oe(a,c)):oe(a,c),"kadence_navigation"===E&&window.wp.data.dispatch("core/block-editor").setTemplateValidity(!0)}),[]);const ce=(0,uo.getPreviewSize)(re,X,Y,Z),se=(0,uo.getPreviewSize)(re,K,$,j),pe=(0,uo.getPreviewSize)(re,Q||"horizontal",ee,te),ge=s()({[`wp-block-kadence-navigation${_}`]:_,[`kb-navigation-horizontal-layout-${ce}`]:ce,[`kb-navigation-orientation-${pe}`]:pe,"kb-navigation-layout-stretch-fill":"fill"===se,[`navigation-desktop-orientation-${Q||"horizontal"}`]:!re||"Desktop"==re,[`navigation-tablet-orientation-${ee||"horizontal"}`]:"Tablet"==re,[`navigation-mobile-orientation-${te||"horizontal"}`]:"Mobile"==re}),be=(0,l.useBlockProps)({className:ge});return"kadence_navigation"===E?(0,n.createElement)("div",{...be},(0,n.createElement)(Mo,{...e,direct:!0,id:B})):((0,v.useEffect)((()=>{!k&&h&&y&&(async()=>{try{C(!0);const e=await N(),t=e?.id;t&&o({id:t})}catch(e){console.error(e)}})()}),[]),(0,v.useEffect)((()=>{if(k&&h&&y){o({makePost:!1});const{templateInnerBlocks:e,templatePostMeta:t}=Fo(h,de);U(e||[(0,r.createBlock)("kadence/navigation",{},[])],c),P(h),t._kad_navigation_description="A placeholder navigation",R({...z,...t}),wp.data.dispatch("core").saveEditedEntityRecord("postType","kadence_navigation",k).then((()=>{C(!1)}))}}),[k]),(0,v.useEffect)((()=>{"kadence_navigation"===E||a||0!==k||""!==h||""===S||o({templateKey:S})}),[a]),!f&&H&&w(!0),M?(0,n.createElement)(b.Spinner,null):(0,n.createElement)("div",{...be},(0===k&&!h||void 0===x&&f&&!H&&null!==D)&&(0,n.createElement)(Uo,{id:k,postExists:x,post:D,commit:e=>o({id:e})}),k>0&&(0,p.isEmpty)(D)&&void 0===x&&H&&(0,n.createElement)(n.Fragment,null,(0,n.createElement)(b.Spinner,null),(0,n.createElement)(l.InspectorControls,null,(0,n.createElement)(T.KadencePanelBody,{panelName:"kb-navigation-selected-switch",title:(0,i.__)("Selected Navigation","kadence-blocks")},(0,n.createElement)(T.SelectPostFromPostType,{postType:"kadence_navigation",label:(0,i.__)("Selected Navigation","kadence-blocks"),hideLabelFromVision:!0,onChange:e=>{o({id:parseInt(e)})},value:k}),(0,n.createElement)(b.Button,{isLink:!0,onClick:()=>{o({id:0})},style:{marginBottom:"10px"}},(0,i.__)("Create a New Navigation","kadence-blocks"))))),k>0&&!(0,p.isEmpty)(D)&&"trash"===D.status&&(0,n.createElement)(n.Fragment,null,(0,n.createElement)(b.Placeholder,{className:"kb-select-or-create-placeholder",label:(0,i.__)("Kadence Navigation","kadence-blocks"),icon:d.navigationBlockIcon},(0,i.__)("The selected navigation is in the trash.","kadence-blocks")),(0,n.createElement)(l.InspectorControls,null,(0,n.createElement)(T.KadencePanelBody,{panelName:"kb-advanced-form-selected-switch",title:(0,i.__)("Selected Navigation","kadence-blocks")},(0,n.createElement)(T.SelectPostFromPostType,{postType:"kadence_navigation",label:(0,i.__)("Selected Navigation","kadence-blocks"),hideLabelFromVision:!0,onChange:e=>{o({id:parseInt(e)})},value:k}),(0,n.createElement)(b.Button,{isLink:!0,onClick:()=>{o({id:0})},style:{marginBottom:"10px"}},(0,i.__)("Create a New Navigation","kadence-blocks"))))),(!k&&h||k>0&&!(0,p.isEmpty)(D)&&"trash"!==D.status)&&(0,n.createElement)(u.EntityProvider,{kind:"postType",type:"kadence_navigation",id:k},(0,n.createElement)(Mo,{...e,direct:!1,id:k}))))},save:()=>(0,n.createElement)(l.InnerBlocks.Content,null)})},2485:(e,t)=>{var o;!function(){"use strict";var n={}.hasOwnProperty;function a(){for(var e=[],t=0;t<arguments.length;t++){var o=arguments[t];if(o){var i=typeof o;if("string"===i||"number"===i)e.push(o);else if(Array.isArray(o)){if(o.length){var r=a.apply(null,o);r&&e.push(r)}}else if("object"===i)if(o.toString===Object.prototype.toString)for(var l in o)n.call(o,l)&&o[l]&&e.push(l);else e.push(o.toString())}}return e.join(" ")}e.exports?(a.default=a,e.exports=a):void 0===(o=function(){return a}.apply(t,[]))||(e.exports=o)}()}},o={};function n(e){var a=o[e];if(void 0!==a)return a.exports;var i=o[e]={exports:{}};return t[e](i,i.exports,n),i.exports}n.m=t,e=[],n.O=(t,o,a,i)=>{if(!o){var r=1/0;for(s=0;s<e.length;s++){o=e[s][0],a=e[s][1],i=e[s][2];for(var l=!0,d=0;d<o.length;d++)(!1&i||r>=i)&&Object.keys(n.O).every((e=>n.O[e](o[d])))?o.splice(d--,1):(l=!1,i<r&&(r=i));if(l){e.splice(s--,1);var c=a();void 0!==c&&(t=c)}}return t}i=i||0;for(var s=e.length;s>0&&e[s-1][2]>i;s--)e[s]=e[s-1];e[s]=[o,a,i]},n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={7040:0,2043:0};n.O.j=t=>0===e[t];var t=(t,o)=>{var a,i,r=o[0],l=o[1],d=o[2],c=0;if(r.some((t=>0!==e[t]))){for(a in l)n.o(l,a)&&(n.m[a]=l[a]);if(d)var s=d(n)}for(t&&t(o);c<r.length;c++)i=r[c],n.o(e,i)&&e[i]&&e[i][0](),e[i]=0;return n.O(s)},o=self.webpackChunkkadence=self.webpackChunkkadence||[];o.forEach(t.bind(null,0)),o.push=t.bind(null,o.push.bind(o))})();var a=n.O(void 0,[2043],(()=>n(2247)));a=n.O(a),(this.kadence=this.kadence||{})["blocks-navigation"]=a})();