!function(){"use strict";var e,t={484:function(){var e=window.wp.element,t=window.React;let l={data:""},i=e=>"object"==typeof window?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||l,n=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,a=/\/\*[^]*?\*\/|  +/g,o=/\n+/g,c=(e,t)=>{let l="",i="",n="";for(let a in e){let o=e[a];"@"==a[0]?"i"==a[1]?l=a+" "+o+";":i+="f"==a[1]?c(o,a):a+"{"+c(o,"k"==a[1]?"":t)+"}":"object"==typeof o?i+=c(o,t?t.replace(/([^,])+/g,(e=>a.replace(/(^:.*)|([^,])+/g,(t=>/&/.test(t)?t.replace(/&/g,e):e?e+" "+t:t)))):a):null!=o&&(a=/^--/.test(a)?a:a.replace(/[A-Z]/g,"-$&").toLowerCase(),n+=c.p?c.p(a,o):a+":"+o+";")}return l+(t&&n?t+"{"+n+"}":n)+i},s={},r=e=>{if("object"==typeof e){let t="";for(let l in e)t+=l+r(e[l]);return t}return e},d=(e,t,l,i,d)=>{let u=r(e),m=s[u]||(s[u]=(e=>{let t=0,l=11;for(;t<e.length;)l=101*l+e.charCodeAt(t++)>>>0;return"go"+l})(u));if(!s[m]){let t=u!==e?e:(e=>{let t,l,i=[{}];for(;t=n.exec(e.replace(a,""));)t[4]?i.shift():t[3]?(l=t[3].replace(o," ").trim(),i.unshift(i[0][l]=i[0][l]||{})):i[0][t[1]]=t[2].replace(o," ").trim();return i[0]})(e);s[m]=c(d?{["@keyframes "+m]:t}:t,l?"":"."+m)}return((e,t,l)=>{-1==t.data.indexOf(e)&&(t.data=l?e+t.data:t.data+e)})(s[m],t,i),m},u=(e,t,l)=>e.reduce(((e,i,n)=>{let a=t[n];if(a&&a.call){let e=a(l),t=e&&e.props&&e.props.className||/^go/.test(e)&&e;a=t?"."+t:e&&"object"==typeof e?e.props?"":c(e,""):!1===e?"":e}return e+i+(null==a?"":a)}),"");function m(e){let t=this||{},l=e.call?e(t.p):e;return d(l.unshift?l.raw?u(l,[].slice.call(arguments,1),t.p):l.reduce(((e,l)=>Object.assign(e,l&&l.call?l(t.p):l)),{}):l,i(t.target),t.g,t.o,t.k)}m.bind({g:1});let y,p,w,v=m.bind({k:1});function h(e,t){let l=this||{};return function(){let i=arguments;function n(a,o){let c=Object.assign({},a),s=c.className||n.className;l.p=Object.assign({theme:p&&p()},c),l.o=/ *go\d+/.test(s),c.className=m.apply(l,i)+(s?" "+s:""),t&&(c.ref=o);let r=e;return e[0]&&(r=c.as||e,delete c.as),w&&r[0]&&w(c),y(r,c)}return t?t(n):n}}var g=(e,t)=>(e=>"function"==typeof e)(e)?e(t):e,f=(()=>{let e=0;return()=>(++e).toString()})(),b=(()=>{let e;return()=>{if(void 0===e&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),E=new Map,k=e=>{if(E.has(e))return;let t=setTimeout((()=>{E.delete(e),x({type:4,toastId:e})}),1e3);E.set(e,t)},_=(e,t)=>{switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,20)};case 1:return t.toast.id&&(e=>{let t=E.get(e);t&&clearTimeout(t)})(t.toast.id),{...e,toasts:e.toasts.map((e=>e.id===t.toast.id?{...e,...t.toast}:e))};case 2:let{toast:l}=t;return e.toasts.find((e=>e.id===l.id))?_(e,{type:1,toast:l}):_(e,{type:0,toast:l});case 3:let{toastId:i}=t;return i?k(i):e.toasts.forEach((e=>{k(e.id)})),{...e,toasts:e.toasts.map((e=>e.id===i||void 0===i?{...e,visible:!1}:e))};case 4:return void 0===t.toastId?{...e,toasts:[]}:{...e,toasts:e.toasts.filter((e=>e.id!==t.toastId))};case 5:return{...e,pausedAt:t.time};case 6:let n=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map((e=>({...e,pauseDuration:e.pauseDuration+n})))}}},S=[],C={toasts:[],pausedAt:void 0},x=e=>{C=_(C,e),S.forEach((e=>{e(C)}))},I={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},P=e=>(t,l)=>{let i=((e,t="blank",l)=>({createdAt:Date.now(),visible:!0,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...l,id:(null==l?void 0:l.id)||f()}))(t,e,l);return x({type:2,toast:i}),i.id},O=(e,t)=>P("blank")(e,t);O.error=P("error"),O.success=P("success"),O.loading=P("loading"),O.custom=P("custom"),O.dismiss=e=>{x({type:3,toastId:e})},O.remove=e=>x({type:4,toastId:e}),O.promise=(e,t,l)=>{let i=O.loading(t.loading,{...l,...null==l?void 0:l.loading});return e.then((e=>(O.success(g(t.success,e),{id:i,...l,...null==l?void 0:l.success}),e))).catch((e=>{O.error(g(t.error,e),{id:i,...l,...null==l?void 0:l.error})})),e};var T=(e,t)=>{x({type:1,toast:{id:e,height:t}})},A=()=>{x({type:5,time:Date.now()})},R=v`
from {
  transform: scale(0) rotate(45deg);
	opacity: 0;
}
to {
 transform: scale(1) rotate(45deg);
  opacity: 1;
}`,$=v`
from {
  transform: scale(0);
  opacity: 0;
}
to {
  transform: scale(1);
  opacity: 1;
}`,B=v`
from {
  transform: scale(0) rotate(90deg);
	opacity: 0;
}
to {
  transform: scale(1) rotate(90deg);
	opacity: 1;
}`,N=h("div")`
  width: 20px;
  opacity: 0;
  height: 20px;
  border-radius: 10px;
  background: ${e=>e.primary||"#ff4b4b"};
  position: relative;
  transform: rotate(45deg);

  animation: ${R} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
    forwards;
  animation-delay: 100ms;

  &:after,
  &:before {
    content: '';
    animation: ${$} 0.15s ease-out forwards;
    animation-delay: 150ms;
    position: absolute;
    border-radius: 3px;
    opacity: 0;
    background: ${e=>e.secondary||"#fff"};
    bottom: 9px;
    left: 4px;
    height: 2px;
    width: 12px;
  }

  &:before {
    animation: ${B} 0.15s ease-out forwards;
    animation-delay: 180ms;
    transform: rotate(90deg);
  }
`,H=v`
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
`,L=h("div")`
  width: 12px;
  height: 12px;
  box-sizing: border-box;
  border: 2px solid;
  border-radius: 100%;
  border-color: ${e=>e.secondary||"#e0e0e0"};
  border-right-color: ${e=>e.primary||"#616161"};
  animation: ${H} 1s linear infinite;
`,D=v`
from {
  transform: scale(0) rotate(45deg);
	opacity: 0;
}
to {
  transform: scale(1) rotate(45deg);
	opacity: 1;
}`,M=v`
0% {
	height: 0;
	width: 0;
	opacity: 0;
}
40% {
  height: 0;
	width: 6px;
	opacity: 1;
}
100% {
  opacity: 1;
  height: 10px;
}`,j=h("div")`
  width: 20px;
  opacity: 0;
  height: 20px;
  border-radius: 10px;
  background: ${e=>e.primary||"#61d345"};
  position: relative;
  transform: rotate(45deg);

  animation: ${D} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
    forwards;
  animation-delay: 100ms;
  &:after {
    content: '';
    box-sizing: border-box;
    animation: ${M} 0.2s ease-out forwards;
    opacity: 0;
    animation-delay: 200ms;
    position: absolute;
    border-right: 2px solid;
    border-bottom: 2px solid;
    border-color: ${e=>e.secondary||"#fff"};
    bottom: 6px;
    left: 6px;
    height: 10px;
    width: 6px;
  }
`,G=h("div")`
  position: absolute;
`,F=h("div")`
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 20px;
  min-height: 20px;
`,V=v`
from {
  transform: scale(0.6);
  opacity: 0.4;
}
to {
  transform: scale(1);
  opacity: 1;
}`,z=h("div")`
  position: relative;
  transform: scale(0.6);
  opacity: 0.4;
  min-width: 20px;
  animation: ${V} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)
    forwards;
`,W=({toast:e})=>{let{icon:l,type:i,iconTheme:n}=e;return void 0!==l?"string"==typeof l?t.createElement(z,null,l):l:"blank"===i?null:t.createElement(F,null,t.createElement(L,{...n}),"loading"!==i&&t.createElement(G,null,"error"===i?t.createElement(N,{...n}):t.createElement(j,{...n})))},q=e=>`\n0% {transform: translate3d(0,${-200*e}%,0) scale(.6); opacity:.5;}\n100% {transform: translate3d(0,0,0) scale(1); opacity:1;}\n`,Y=e=>`\n0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}\n100% {transform: translate3d(0,${-150*e}%,-1px) scale(.6); opacity:0;}\n`,X=h("div")`
  display: flex;
  align-items: center;
  background: #fff;
  color: #363636;
  line-height: 1.3;
  will-change: transform;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05);
  max-width: 350px;
  pointer-events: auto;
  padding: 8px 10px;
  border-radius: 8px;
`,Z=h("div")`
  display: flex;
  justify-content: center;
  margin: 4px 10px;
  color: inherit;
  flex: 1 1 auto;
  white-space: pre-line;
`,U=t.memo((({toast:e,position:l,style:i,children:n})=>{let a=e.height?((e,t)=>{let l=e.includes("top")?1:-1,[i,n]=b()?["0%{opacity:0;} 100%{opacity:1;}","0%{opacity:1;} 100%{opacity:0;}"]:[q(l),Y(l)];return{animation:t?`${v(i)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${v(n)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}})(e.position||l||"top-center",e.visible):{opacity:0},o=t.createElement(W,{toast:e}),c=t.createElement(Z,{...e.ariaProps},g(e.message,e));return t.createElement(X,{className:e.className,style:{...a,...i,...e.style}},"function"==typeof n?n({icon:o,message:c}):t.createElement(t.Fragment,null,o,c))}));!function(e,t,l,i){c.p=void 0,y=e,p=void 0,w=void 0}(t.createElement);var J=({id:e,className:l,style:i,onHeightUpdate:n,children:a})=>{let o=t.useCallback((t=>{if(t){let l=()=>{let l=t.getBoundingClientRect().height;n(e,l)};l(),new MutationObserver(l).observe(t,{subtree:!0,childList:!0,characterData:!0})}}),[e,n]);return t.createElement("div",{ref:o,className:l,style:i},a)},Q=m`
  z-index: 9999;
  > * {
    pointer-events: auto;
  }
`,K=({reverseOrder:e,position:l="top-center",toastOptions:i,gutter:n,children:a,containerStyle:o,containerClassName:c})=>{let{toasts:s,handlers:r}=(e=>{let{toasts:l,pausedAt:i}=((e={})=>{let[l,i]=(0,t.useState)(C);(0,t.useEffect)((()=>(S.push(i),()=>{let e=S.indexOf(i);e>-1&&S.splice(e,1)})),[l]);let n=l.toasts.map((t=>{var l,i;return{...e,...e[t.type],...t,duration:t.duration||(null==(l=e[t.type])?void 0:l.duration)||(null==e?void 0:e.duration)||I[t.type],style:{...e.style,...null==(i=e[t.type])?void 0:i.style,...t.style}}}));return{...l,toasts:n}})(e);(0,t.useEffect)((()=>{if(i)return;let e=Date.now(),t=l.map((t=>{if(t.duration===1/0)return;let l=(t.duration||0)+t.pauseDuration-(e-t.createdAt);if(!(l<0))return setTimeout((()=>O.dismiss(t.id)),l);t.visible&&O.dismiss(t.id)}));return()=>{t.forEach((e=>e&&clearTimeout(e)))}}),[l,i]);let n=(0,t.useCallback)((()=>{i&&x({type:6,time:Date.now()})}),[i]),a=(0,t.useCallback)(((e,t)=>{let{reverseOrder:i=!1,gutter:n=8,defaultPosition:a}=t||{},o=l.filter((t=>(t.position||a)===(e.position||a)&&t.height)),c=o.findIndex((t=>t.id===e.id)),s=o.filter(((e,t)=>t<c&&e.visible)).length;return o.filter((e=>e.visible)).slice(...i?[s+1]:[0,s]).reduce(((e,t)=>e+(t.height||0)+n),0)}),[l]);return{toasts:l,handlers:{updateHeight:T,startPause:A,endPause:n,calculateOffset:a}}})(i);return t.createElement("div",{style:{position:"fixed",zIndex:9999,top:16,left:16,right:16,bottom:16,pointerEvents:"none",...o},className:c,onMouseEnter:r.startPause,onMouseLeave:r.endPause},s.map((i=>{let o=i.position||l,c=((e,t)=>{let l=e.includes("top"),i=l?{top:0}:{bottom:0},n=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:b()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${t*(l?1:-1)}px)`,...i,...n}})(o,r.calculateOffset(i,{reverseOrder:e,gutter:n,defaultPosition:l}));return t.createElement(J,{id:i.id,key:i.id,onHeightUpdate:r.updateHeight,className:i.visible?Q:"",style:c},"custom"===i.type?g(i.message,i):a?a(i):t.createElement(U,{toast:i,position:o}))})))},ee=O,te=window.lodash,le=window.wp.components;const ie={gutenbergEditor:{designLibrary:!0,headerToolbar:!0,hidePostTitle:!0,cwiclyNavigator:!0,quickInserter:!0,globalStylesToggle:!0,hideListView:!0},globalBlockBehaviour:{globalStylesPanel:!0,globalClassesPanel:!0,collectionPanel:!0,conditions:!0,link:!0,interactions:!0,idClassManager:!0,designTab:!0,advancedTab:!0,tagControl:!0,hoverAnimation:!0,headingTag:!0,specificProperties:!0},blockToolbar:{controls:!0,dynamicValues:!0,richTextStyling:!0},miscellaneous:{selectPseudoClasses:!0,addPseudoClasses:!0}},ne=["cwicly/columns","cwicly/column","cwicly/section","cwicly/heading","cwicly/paragraph","cwicly/image","cwicly/button","cwicly/accordions","cwicly/accordion","cwicly/accordionheader","cwicly/accordioncontent","cwicly/tab","cwicly/tabcontent","cwicly/tabcontents","cwicly/tablist","cwicly/icon","cwicly/video","cwicly/list","cwicly/slider","cwicly/sliderchild","cwicly/gallery","cwicly/modal","cwicly/menu","cwicly/nav","cwicly/navdropdown","cwicly/navlink","cwicly/navmenu","cwicly/navitems","cwicly/div","cwicly/maps","cwicly/swatch","cwicly/input","cwicly/hook","cwicly/fragment","cwicly/filter","cwicly/rangeslider","cwicly/query","cwicly/query-template","cwicly/query-pagination","cwicly/query-pagination-numbers","cwicly/content","cwicly/repeater","cwicly/taxonomyterms","cwicly/code","cwicly/popover","cwicly/styler","cwicly/container"],{__:__}=wp.i18n,{BaseControl:ae,Button:oe,ExternalLink:ce,PanelBody:se,PanelRow:re,Placeholder:de,Spinner:ue,ToggleControl:me,FormFileUpload:ye,TextControl:pe,Modal:we,SelectControl:ve,Tooltip:he}=wp.components,ge={layout:{general:{display:{name:__("Display","cwicly"),default:!0},alignItems:{name:__("Align Items","cwicly"),default:!0},justifyContent:{name:__("Justify Content","cwicly"),default:!0},alignContent:{name:__("Align Content","cwicly"),default:!1},justifyItems:{name:__("Justify Items","cwicly"),default:!1},alignSelf:{name:__("Align Self","cwicly"),default:!1},justifySelf:{name:__("Justify Self","cwicly"),default:!1},gap:{name:__("Gap","cwicly"),default:!0},order:{name:__("Order","cwicly"),default:!0}},flex:{flexDirection:{name:__("Direction","cwicly"),default:!0},flexChildren:{name:__("Children","cwicly"),default:!0},flexGrow:{name:__("Grow","cwicly"),default:!1},flexShrink:{name:__("Shrink","cwicly"),default:!1},flexBasis:{name:__("Basis","cwicly"),default:!1}},grid:{gridBuilder:{name:__("Builder","cwicly"),default:!0},gridColumns:{name:__("Columns","cwicly"),default:!0},gridRows:{name:__("Rows","cwicly"),default:!0},gridAutoFlow:{name:__("Auto Flow","cwicly"),default:!1},gridAutoColumns:{name:__("Auto Columns","cwicly"),default:!1},gridAutoRows:{name:__("Auto Rows","cwicly"),default:!1},gridAreas:{name:__("Areas","cwicly"),default:!1},gridItems:{name:__("Items","cwicly"),default:!1}},gridChild:{gridChildViewer:{name:__("Grid Viewer","cwicly"),default:!0},gridChildArea:{name:__("Area","cwicly"),default:!0},columnStart:{name:__("Column Start","cwicly"),default:!0},columnEnd:{name:__("Column End","cwicly"),default:!0},rowStart:{name:__("Row Start","cwicly"),default:!0},rowEnd:{name:__("Row End","cwicly"),default:!0}}},spacing:{general:{marginPadding:{name:__("Margin & Padding","cwicly"),default:!0},scrollMargin:{name:__("Scroll Margin","cwicly"),default:!1}}},size:{general:{size:{name:__("Size","cwicly"),default:!0},height:{name:__("Height","cwicly"),default:!0},width:{name:__("Width","cwicly"),default:!0},minHeight:{name:__("Min Height","cwicly"),default:!0},maxHeight:{name:__("Max Height","cwicly"),default:!0},minWidth:{name:__("Min Width","cwicly"),default:!0},maxWidth:{name:__("Max Width","cwicly"),default:!0},aspectRatio:{name:__("Aspect Ratio","cwicly"),default:!0},objectFit:{name:__("Object Fit","cwicly"),default:!0},overflow:{name:__("Overflow","cwicly"),default:!0}}},position:{general:{position:{name:__("Position","cwicly"),default:!0},placement:{name:__("Placement","cwicly"),default:!0},zIndex:{name:__("Z-Index","cwicly"),default:!0},visibility:{name:__("Visibility","cwicly"),default:!0},columns:{name:__("Columns","cwicly"),default:!1},listStylePosition:{name:__("List Position","cwicly"),default:!1}}},typography:{general:{color:{name:__("Color","cwicly"),default:!0},linkColor:{name:__("Link Color","cwicly"),default:!0},preset:{name:__("Preset","cwicly"),default:!1},family:{name:__("Family","cwicly"),default:!0},size:{name:__("Size","cwicly"),default:!0},weight:{name:__("Weight","cwicly"),default:!0},spacing:{name:__("Spacing","cwicly"),default:!0},lineHeight:{name:__("Line Height","cwicly"),default:!0},textAlign:{name:__("Text Align","cwicly"),default:!0},fontStyle:{name:__("Font Style","cwicly"),default:!0},textDecoration:{name:__("Text Decoration","cwicly"),default:!0},textTransform:{name:__("Text Transform","cwicly"),default:!0},whiteSpace:{name:__("White Space","cwicly"),default:!0},wordBreak:{name:__("Word Break","cwicly"),default:!0},overflowWrap:{name:__("Overflow Wrap","cwicly"),default:!0},wordSpacing:{name:__("Word Spacing","cwicly"),default:!0},listStyle:{name:__("List Style","cwicly"),default:!1},axes:{name:__("Axes","cwicly"),default:!0}}},background:{general:{color:{name:__("Color","cwicly"),default:!0},overlay:{name:__("Overlay Color","cwicly"),default:!0},image:{name:__("Background Image","cwicly"),default:!0},position:{name:__("Position","cwicly"),default:!0},size:{name:__("Size","cwicly"),default:!0},repeat:{name:__("Repeat","cwicly"),default:!0},attachment:{name:__("Attachment","cwicly"),default:!0}},filters:{blendMode:{name:__("Blend Mode","cwicly"),default:!0},clip:{name:__("Clip","cwicly"),default:!0},clipPath:{name:__("Clip Path","cwicly"),default:!0},blur:{name:__("Blur","cwicly"),default:!0},brightness:{name:__("Brightness","cwicly"),default:!0},contrast:{name:__("Contrast","cwicly"),default:!0},grayscale:{name:__("Grayscale","cwicly"),default:!0},hueRotate:{name:__("Hue Rotate","cwicly"),default:!0},invert:{name:__("Invert","cwicly"),default:!0},saturate:{name:__("Saturate","cwicly"),default:!0},sepia:{name:__("Sepia","cwicly"),default:!0}}},border:{general:{radius:{name:__("Radius","cwicly"),default:!0},color:{name:__("Color","cwicly"),default:!0},style:{name:__("Style","cwicly"),default:!0},width:{name:__("Width","cwicly"),default:!0}},shadow:{outer:{name:__("Outer","cwicly"),default:!0},inner:{name:__("Inner","cwicly"),default:!0}},outline:{color:{name:__("Color","cwicly"),default:!0},style:{name:__("Style","cwicly"),default:!0},width:{name:__("Width","cwicly"),default:!0},offset:{name:__("Offset","cwicly"),default:!0}},tailwind:{shadowSize:{name:__("Shadow Size","cwicly"),default:!0},shadowColor:{name:__("Shadow Color","cwicly"),default:!0},ringWidth:{name:__("Ring Width","cwicly"),default:!0},ringColor:{name:__("Ring Color","cwicly"),default:!0},ringOffsetWidth:{name:__("Ring Offset Width","cwicly"),default:!0},ringOffsetColor:{name:__("Ring Offset Color","cwicly"),default:!0}}},effects:{general:{opacity:{name:__("Opacity","cwicly"),default:!0},blendMode:{name:__("Blend Mode","cwicly"),default:!0},cursor:{name:__("Cursor","cwicly"),default:!0},userSelect:{name:__("User Select","cwicly"),default:!0},events:{name:__("Events","cwicly"),default:!0},transitions:{name:__("Transitions","cwicly"),default:!0}},animations:{duration:{name:__("Duration","cwicly"),default:!0},delay:{name:__("Delay","cwicly"),default:!0},name:{name:__("Name","cwicly"),default:!0},iteration:{name:__("Iteration","cwicly"),default:!0},direction:{name:__("Direction","cwicly"),default:!0},fillMode:{name:__("Fill Mode","cwicly"),default:!0},timing:{name:__("Timing","cwicly"),default:!0}},effects:{blur:{name:__("Blur","cwicly"),default:!0},brightness:{name:__("Brightness","cwicly"),default:!0},contrast:{name:__("Contrast","cwicly"),default:!0},grayscale:{name:__("Grayscale","cwicly"),default:!0},hueRotate:{name:__("Hue Rotate","cwicly"),default:!0},invert:{name:__("Invert","cwicly"),default:!0},saturate:{name:__("Saturate","cwicly"),default:!0},sepia:{name:__("Sepia","cwicly"),default:!0}},dropShadow:{x:{name:__("X","cwicly"),default:!0},y:{name:__("Y","cwicly"),default:!0},blur:{name:__("Blur","cwicly"),default:!0},color:{name:__("Color","cwicly"),default:!0}},textShadow:{color:{name:__("Text Shadow Color","cwicly"),default:!0},horizontal:{name:__("Text Shadow Horizontal","cwicly"),default:!0},vertical:{name:__("Text Shadow Vertical","cwicly"),default:!0},blur:{name:__("Text Shadow Blur","cwicly"),default:!0}},tailwind:{transitionProperty:{name:__("Transition Property","cwicly"),default:!0},transitionDuration:{name:__("Transition Duration","cwicly"),default:!0},transitionDelay:{name:__("Transition Delay","cwicly"),default:!0},transitionTiming:{name:__("Transition Timing","cwicly"),default:!0},animation:{name:__("Animation","cwicly"),default:!0},dropShadow:{name:__("Drop Shadow","cwicly"),default:!0}}},transforms:{general:{origin:{name:__("Origin","cwicly"),default:!0},backface:{name:__("Backface","cwicly"),default:!0}},translate:{translateX:{name:__("Translate X","cwicly"),default:!0},translateY:{name:__("Translate Y","cwicly"),default:!0},translateZ:{name:__("Translate Z","cwicly"),default:!0}},skew:{skewX:{name:__("Skew X","cwicly"),default:!0},skewY:{name:__("Skew Y","cwicly"),default:!0}},rotate:{rotate:{name:__("Rotate","cwicly"),default:!0},rotateX:{name:__("Rotate X","cwicly"),default:!0},rotateY:{name:__("Rotate Y","cwicly"),default:!0},rotateZ:{name:__("Rotate Z","cwicly"),default:!0}},perspective:{perspectiveParent:{name:__("Parent","cwicly"),default:!0},perspectiveIndividual:{name:__("Individual","cwicly"),default:!0},preserve3D:{name:__("Preserve 3D","cwicly"),default:!0}},rotate3D:{rotate3DX:{name:__("Rotate 3D X","cwicly"),default:!0},rotate3DY:{name:__("Rotate 3D Y","cwicly"),default:!0},rotate3DZ:{name:__("Rotate 3D Z","cwicly"),default:!0}},scale:{scaleX:{name:__("Scale X","cwicly"),default:!0},scaleY:{name:__("Scale Y","cwicly"),default:!0},scaleZ:{name:__("Scale Z","cwicly"),default:!0}}}},fe={general:{name:__("General","cwicly")},flex:{name:__("Flex","cwicly")},grid:{name:__("Grid","cwicly")},gridChild:{name:__("Grid Child","cwicly")},tailwind:{name:__("Tailwind","cwicly")},outline:{name:__("Outline","cwicly")},shadow:{name:__("Shadow","cwicly")},animations:{name:__("Animations","cwicly")},effects:{name:__("Effects","cwicly")},filters:{name:__("Filters","cwicly")},dropShadow:{name:__("Drop Shadow","cwicly")},textShadow:{name:__("Text Shadow","cwicly")},transforms:{name:__("Transforms","cwicly")},translate:{name:__("Translate","cwicly")},skew:{name:__("Skew","cwicly")},rotate:{name:__("Rotate","cwicly")},perspective:{name:__("Perspective","cwicly")},rotate3D:{name:__("Rotate 3D","cwicly")},scale:{name:__("Scale","cwicly")},layout:{name:__("Layout","cwicly")},spacing:{name:__("Spacing","cwicly")},size:{name:__("Size","cwicly")},position:{name:__("Position","cwicly")},typography:{name:__("Typography","cwicly")},background:{name:__("Background","cwicly")},border:{name:__("Borders","cwicly")},effects:{name:__("Effects","cwicly")},transforms:{name:__("Transforms","cwicly")}},{useSelect:be}=wp.data,{render:Ee,Component:ke,Fragment:_e,useState:Se,useEffect:Ce,renderToString:xe,useMemo:Ie}=wp.element,{loadPromise:Pe,models:Oe}=wp.api;Ee((0,e.createElement)((function(){var t,l,i,n,a,o,c,s,r,d,u,m,y,p,w,v,h,g,f,b,E,k,_,S,C,x,I,P,O,T,A,R,$,B,N,H,L,D,M,j,G,F,V,z,W,q,Y,X,Z,U,J,Q,ae,ce,re,de,ue,ye,Ee,ke,xe,Pe,Oe,Te,Ae,Re,$e,Be,Ne,He,Le,De,Me,je,Ge,Fe;const[Ve,ze]=Se(),We=Ie((()=>{let e={};return Ve&&(e=JSON.parse(Ve)),e}),[Ve]),qe=Ie((()=>We?Object.keys(We).findIndex((e=>We[e].isMain)):0),[We]),Ye=Ie((()=>{const e=[{label:__("Select...","cwicly"),value:""}];return We?(Object.entries(We).forEach((t=>{let[l,i]=t,n=i.isMain?"main":"@max:";Object.keys(We).findIndex((e=>e===l))<qe&&(n="@min:"),e.push({label:`${i.name} - ${n}${i.isMain?"":` ${i.width}px`}`,value:l})})),e):e}),[We]);function Xe(t){let l;ft(!0),t.notify&&(l=ee.loading("Saving...")),wp.apiFetch({path:"/cwicly/v1/options",method:"POST",data:{option:t.option,value:t.value}}).then((e=>{t.doNotAffect||t.setOption(t.value),t.notify&&ee.success("Saved.",{id:l}),ft(!1)})).catch((i=>{t.notify&&ee.error((0,e.createElement)("div",null,"There was an error:"," ",(0,e.createElement)("strong",null,i.message?i.message:"Not Provided")),{id:l}),ft(!1)}))}Ce((()=>{const e=localStorage.getItem("cwicly-darkmode");"inherit"===e?(document.documentElement.classList.remove("light"),document.documentElement.classList.remove("dark")):"dark"===e?(document.documentElement.classList.remove("light"),document.documentElement.classList.add("dark")):"light"===e&&(document.documentElement.classList.add("light"),document.documentElement.classList.remove("dark")),wp.apiFetch({path:"/cwicly/v1/backend_info?userroles=true"}).then((e=>{Qe(e)})),wp.apiFetch({path:"/cwicly/v1/backend_info?users=true"}).then((e=>{et(e)})),wp.apiFetch({path:"/cwicly/v1/options?option=cwicly_role_editor",method:"GET"}).then((e=>lt(e.settings))),wp.apiFetch({path:"/cwicly/v1/options?option=cwicly_breakpoints_list",method:"GET"}).then((e=>ze(e.settings)))}),[]);const[Ze,Ue]=Se(!1),[Je,Qe]=Se({}),[Ke,et]=Se([]),[tt,lt]=Se({}),[it,nt]=wp.coreData.useEntityProp("root","site","cwicly_theme_license_key_status"),[at,ot]=wp.coreData.useEntityProp("root","site","cwicly_plugin_license_key"),[ct,st]=wp.coreData.useEntityProp("root","site","cwicly_theme_license_key"),[rt,dt]=wp.coreData.useEntityProp("root","site","cwicly_gmap"),[ut,mt]=wp.coreData.useEntityProp("root","site","cwicly_ssl_verify"),[yt,pt]=wp.coreData.useEntityProp("root","site","cwicly_close_importer"),[wt,vt]=Se();Ce((()=>{wp.apiFetch({path:"/cwicly/v1/options?option=cwicly_optimise",method:"GET"}).then((e=>{e.settings&&vt(e.settings)}))}),[]);const ht=be((e=>e("core").getPostTypes({per_page:-1})),[]),[gt,ft]=Se(!1);Ce((()=>{window.onbeforeunload=gt?function(){return"Currently Saving..."}:null}),[gt]);const[bt,Et]=Se("administrator"),[kt,_t]=Se(!1),[St,Ct]=Se("role");Ce((()=>{if(Ke){const e=[{label:__("Select...","cwicly"),value:""}];Ke&&Ke.map((t=>{e.push({label:t.user_login,value:`user_${t.id}`})})),It(e)}}),[Ke]);const[xt,It]=Se([]),[Pt,Ot]=Se(!0);return(0,e.createElement)(_e,null,(0,e.createElement)(K,{position:"bottom-center",containerStyle:{top:16,left:160,bottom:16,right:16}}),(0,e.createElement)("div",{className:"cc-header"},(0,e.createElement)("div",{className:"cc-container"},(0,e.createElement)("div",{className:"cc-logo"},(0,e.createElement)("img",{src:`${cwicly_info.plugin}assets/images/favicon.svg`}))),(0,e.createElement)("div",{class:"cc-menu-nav"},(0,e.createElement)("a",{className:"cc-nav",href:`${cwicly_info.admin}admin.php?page=cwicly`},__("Templates","cwicly")),cwicly_info.wordpress&&parseFloat(cwicly_info.wordpress)>=5.9?(0,e.createElement)("a",{className:"cc-nav",href:`${cwicly_info.admin}site-editor.php?postType=wp_template_part`},__("Parts","cwicly")):(0,e.createElement)("a",{className:"cc-nav",href:`${cwicly_info.admin}themes.php?page=gutenberg-edit-site&postType=wp_template_part`},__("Parts","cwicly")),(0,e.createElement)("a",{className:"cc-nav",href:`${cwicly_info.admin}admin.php?page=cwicly&maintab=globalparts`},__("Global Parts","cwicly")),(0,e.createElement)("a",{className:"cc-nav",href:`${cwicly_info.admin}admin.php?page=cwicly-settings`},__("Settings","cwicly")))),(0,e.createElement)("div",{className:"cc-main"},(0,e.createElement)("div",{className:"cc-panel-container",style:{width:"100%",background:"white",padding:"20px",border:"1px solid #e2e4e7",position:Pt?"sticky":"relative",top:Pt&&"32px",zIndex:Pt&&1e6}},(0,e.createElement)(he,{text:__("Keep on top","cwicly")},(0,e.createElement)("button",{onClick:()=>Ot(!Pt),style:{position:"absolute",top:"10px",right:"10px"}},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",style:{transitionDuration:"0.4s"},width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"1",stroke:Pt?"#ff8309":"#9e9e9e",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},(0,e.createElement)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,e.createElement)("path",{d:"M20 12l-2 .5a6 6 0 0 1 -6.5 -6.5l.5 -2l8 8"}),(0,e.createElement)("path",{d:"M20 12a8 8 0 1 1 -8 -8"})))),(0,e.createElement)(le.__experimentalRadioGroup,{label:"Type",onChange:e=>{Ct(e),Et("role"===e?"administrator":"user"===e?`user_${cwicly_info.current_user}`:"")},checked:St,style:{width:"100%",marginBottom:"16px",display:"flex",justifyContent:"center",gap:"10px",flexFlow:"wrap"}},(0,e.createElement)(le.__experimentalRadio,{isSmall:!0,value:"role"},__("Role","cwicly")),(0,e.createElement)(le.__experimentalRadio,{isSmall:!0,value:"user"},__("User","cwicly"))),"role"===St&&(0,e.createElement)(le.__experimentalRadioGroup,{label:"Roles",onChange:Et,checked:bt,style:{width:"100%",display:"flex",justifyContent:"center",gap:"10px",flexFlow:"wrap"}},Je&&Object.entries(Je).map(((t,l)=>(0,e.createElement)(le.__experimentalRadio,{value:t[0]},t[1].name)))),"user"===St&&(0,e.createElement)(_e,null,(0,e.createElement)("p",{style:{textAlign:"center",marginBottom:"8px"}},(0,e.createElement)("i",null,__("If set, user rules override role rules.","cwicly"))),(0,e.createElement)("div",{style:{margin:"auto",width:"50%",display:"flex",alignItems:"center",justifyContent:"center"}},(0,e.createElement)(ve,{value:bt||"",options:xt,onChange:Et,__nextHasNoMarginBottom:!0}),(0,e.createElement)(oe,{onClick:e=>{const t={...tt};delete t[bt],Xe({option:"cwicly_role_editor",value:t,setOption:lt,setIsAPISaving:ft,notify:!0})},style:{marginLeft:"8px",marginBottom:"8px"},isSecondary:!0,isSmall:!0},__("Reset User","cwicly"))))),(0,e.createElement)("div",{style:{display:"flex",justifyContent:"flex-end"}},(0,e.createElement)(oe,{isPrimary:!0,isSmall:!0,className:"m-r-8",onClick:()=>{const e={...tt};e[bt]&&Object.keys(e[bt]).length?e[bt]={}:e[bt]=ie,Xe({option:"cwicly_role_editor",value:e,setOption:lt,setIsAPISaving:ft,notify:!0})}},__("Toggle All","cwicly")),(0,e.createElement)(oe,{isSecondary:!0,isSmall:!0,className:"m-r-8",onClick:()=>{var e;e=JSON.stringify({role:bt,rules:tt[bt]}),navigator.clipboard?navigator.clipboard.writeText(e).then((function(){}),(function(e){console.error("Async: Could not copy text: ",e)})):function(e){var t=document.createElement("textarea");t.value=e,t.style.top="0",t.style.left="0",t.style.position="fixed",document.body.appendChild(t),t.focus(),t.select();try{document.execCommand("copy"),ee.success("Copied to clipboard.")}catch(e){console.error("Fallback: Oops, unable to copy",e)}document.body.removeChild(t)}(e)}},__("Copy","cwicly")),(0,e.createElement)(oe,{isSecondary:!0,isSmall:!0,onClick:()=>_t(!0)},__("Paste","cwicly"))),(0,e.createElement)(se,{title:__("Gutenberg Editor","cwicly"),initialOpen:!0},(0,e.createElement)("div",{className:"cc-panel-container"},(0,e.createElement)("div",{className:"cc_components_grid two"},(0,e.createElement)(me,{label:__("Cwicly Design Library","cwicly"),checked:null==tt||null===(t=tt[bt])||void 0===t||null===(l=t.gutenbergEditor)||void 0===l?void 0:l.designLibrary,onChange:e=>{const t={...tt};(0,te.set)(t,`${bt}.gutenbergEditor.designLibrary`,e),Xe({option:"cwicly_role_editor",value:t,setOption:lt,setIsAPISaving:ft,notify:!0})},disabled:gt,hideResponsive:!0,hideHover:!0,help:__("Contains more than 400 ready-to-use designs that you can insert into the Gutenberg editor with a simple click.","cwicly")}),(0,e.createElement)(me,{label:__("Cwicly Component Library","cwicly"),checked:null==tt||null===(i=tt[bt])||void 0===i||null===(n=i.gutenbergEditor)||void 0===n?void 0:n.componentLibrary,onChange:e=>{const t={...tt};(0,te.set)(t,`${bt}.gutenbergEditor.componentLibrary`,e),Xe({option:"cwicly_role_editor",value:t,setOption:lt,setIsAPISaving:ft,notify:!0})},disabled:gt,hideResponsive:!0,hideHover:!0,help:__("Search and manage all your saved Components from a single place.","cwicly")}),(0,e.createElement)(me,{label:__("Cwicly Header Toolbar","cwicly"),checked:null==tt||null===(a=tt[bt])||void 0===a||null===(o=a.gutenbergEditor)||void 0===o?void 0:o.headerToolbar,onChange:e=>{const t={...tt};(0,te.set)(t,`${bt}.gutenbergEditor.headerToolbar`,e),Xe({option:"cwicly_role_editor",value:t,setOption:lt,setIsAPISaving:ft,notify:!0})},disabled:gt,hideResponsive:!0,hideHover:!0,help:__("This includes responsive & pseudo class controls as well as the Post Title and scaling parameters.","cwicly")}),(0,e.createElement)(me,{label:__("Hide Post Title on responsive modes","cwicly"),checked:null==tt||null===(c=tt[bt])||void 0===c||null===(s=c.gutenbergEditor)||void 0===s?void 0:s.hidePostTitle,onChange:e=>{const t={...tt};(0,te.set)(t,`${bt}.gutenbergEditor.hidePostTitle`,e),Xe({option:"cwicly_role_editor",value:t,setOption:lt,setIsAPISaving:ft,notify:!0})},disabled:gt,hideResponsive:!0,hideHover:!0,help:__("When going into tablet and mobile previews, hide the post title.","cwicly")}),(0,e.createElement)(me,{label:__("Cwicly Navigator","cwicly"),checked:null==tt||null===(r=tt[bt])||void 0===r||null===(d=r.gutenbergEditor)||void 0===d?void 0:d.cwiclyNavigator,onChange:e=>{const t={...tt};(0,te.set)(t,`${bt}.gutenbergEditor.cwiclyNavigator`,e),Xe({option:"cwicly_role_editor",value:t,setOption:lt,setIsAPISaving:ft,notify:!0})},disabled:gt,hideResponsive:!0,hideHover:!0,help:__("Advanced block navigator designed to improve your workflow when using Cwicly.","cwicly")}),(0,e.createElement)(me,{label:__("Cwicly Quick Inserter","cwicly"),checked:null==tt||null===(u=tt[bt])||void 0===u||null===(m=u.gutenbergEditor)||void 0===m?void 0:m.quickInserter,onChange:e=>{const t={...tt};(0,te.set)(t,`${bt}.gutenbergEditor.quickInserter`,e),Xe({option:"cwicly_role_editor",value:t,setOption:lt,setIsAPISaving:ft,notify:!0})},disabled:gt,hideResponsive:!0,hideHover:!0,help:__("Resides on the left of the editor. Allows you to quickly insert your favourite blocks (editable).","cwicly")}),(0,e.createElement)(me,{label:__("Cwicly Global Styles Toggle","cwicly"),checked:null==tt||null===(y=tt[bt])||void 0===y||null===(p=y.gutenbergEditor)||void 0===p?void 0:p.globalStylesToggle,onChange:e=>{const t={...tt};(0,te.set)(t,`${bt}.gutenbergEditor.globalStylesToggle`,e),Xe({option:"cwicly_role_editor",value:t,setOption:lt,setIsAPISaving:ft,notify:!0})},disabled:gt,hideResponsive:!0,hideHover:!0,help:__("Show the Global Styles panel toggle in the header panel and settings menu.","cwicly")}),(0,e.createElement)(me,{label:__("Hide Gutenberg List View","cwicly"),checked:null==tt||null===(w=tt[bt])||void 0===w||null===(v=w.gutenbergEditor)||void 0===v?void 0:v.hideListView,onChange:e=>{const t={...tt};(0,te.set)(t,`${bt}.gutenbergEditor.hideListView`,e),Xe({option:"cwicly_role_editor",value:t,setOption:lt,setIsAPISaving:ft,notify:!0})},disabled:gt,hideResponsive:!0,hideHover:!0,help:__("The block navigator created by the Gutenberg team.","cwicly")}),(0,e.createElement)(me,{label:__("Hide Gutenberg Preview/Responsive","cwicly"),checked:null==tt||null===(h=tt[bt])||void 0===h||null===(g=h.gutenbergEditor)||void 0===g?void 0:g.hidePreviewResponsive,onChange:e=>{const t={...tt};(0,te.set)(t,`${bt}.gutenbergEditor.hidePreviewResponsive`,e),Xe({option:"cwicly_role_editor",value:t,setOption:lt,setIsAPISaving:ft,notify:!0})},disabled:gt,hideResponsive:!0,hideHover:!0,help:__("The preview/responsive toggle provided by the Gutenberg team.","cwicly")}),(0,e.createElement)(me,{label:__("Hide Width Presets","cwicly"),checked:null==tt||null===(f=tt[bt])||void 0===f||null===(b=f.gutenbergEditor)||void 0===b?void 0:b.hideWidthPresets,onChange:e=>{const t={...tt};(0,te.set)(t,`${bt}.gutenbergEditor.hideWidthPresets`,e),Xe({option:"cwicly_role_editor",value:t,setOption:lt,setIsAPISaving:ft,notify:!0})},disabled:gt,hideResponsive:!0,hideHover:!0,help:__("Width presets allow you to rapidly change the width of the canvas to match common device sizes.","cwicly")})))),(0,e.createElement)(se,{title:__("Global Block Behaviour","cwicly"),initialOpen:!0},(0,e.createElement)(se,{title:__("Cwicly Panels","cwicly"),initialOpen:!0},(0,e.createElement)("div",{className:"cc-panel-container"},(0,e.createElement)("div",{className:"cc_components_grid two"},(0,e.createElement)(me,{label:__("Global Styles","cwicly"),checked:null==tt||null===(E=tt[bt])||void 0===E||null===(k=E.globalBlockBehaviour)||void 0===k?void 0:k.globalStylesPanel,onChange:e=>{const t={...tt};(0,te.set)(t,`${bt}.globalBlockBehaviour.globalStylesPanel`,e),Xe({option:"cwicly_role_editor",value:t,setOption:lt,setIsAPISaving:ft,notify:!0})},disabled:gt,hideResponsive:!0,hideHover:!0,help:__("Access, manage and edit Cwicly Global Styles in a click.","cwicly")}),(0,e.createElement)(me,{label:__("Global Classes","cwicly"),checked:null==tt||null===(_=tt[bt])||void 0===_||null===(S=_.globalBlockBehaviour)||void 0===S?void 0:S.globalClassesPanel,onChange:e=>{const t={...tt};(0,te.set)(t,`${bt}.globalBlockBehaviour.globalClassesPanel`,e),Xe({option:"cwicly_role_editor",value:t,setOption:lt,setIsAPISaving:ft,notify:!0})},disabled:gt,hideResponsive:!0,hideHover:!0,help:__("Manage your Global Classes and Global Stylsheets from a single place.","cwicly")})))),(0,e.createElement)(se,{title:__("Conditions, Links & Interactions","cwicly"),initialOpen:!0},(0,e.createElement)("div",{className:"cc-panel-container"},(0,e.createElement)("div",{className:"cc_components_grid three"},(0,e.createElement)(me,{label:__("Show/Hide Conditions","cwicly"),checked:null==tt||null===(C=tt[bt])||void 0===C||null===(x=C.globalBlockBehaviour)||void 0===x?void 0:x.conditions,onChange:e=>{const t={...tt};(0,te.set)(t,`${bt}.globalBlockBehaviour.conditions`,e),Xe({option:"cwicly_role_editor",value:t,setOption:lt,setIsAPISaving:ft,notify:!0})},disabled:gt,hideResponsive:!0,hideHover:!0,help:__("Manager your block ID and Class here. You can also add additional classes and global classes.","cwicly")}),(0,e.createElement)(me,{label:__("Link","cwicly"),checked:null==tt||null===(I=tt[bt])||void 0===I||null===(P=I.globalBlockBehaviour)||void 0===P?void 0:P.link,onChange:e=>{const t={...tt};(0,te.set)(t,`${bt}.globalBlockBehaviour.link`,e),Xe({option:"cwicly_role_editor",value:t,setOption:lt,setIsAPISaving:ft,notify:!0})},disabled:gt,hideResponsive:!0,hideHover:!0,help:__("Manager your block ID and Class here. You can also add additional classes and global classes.","cwicly")}),(0,e.createElement)(me,{label:__("Interactions","cwicly"),checked:null==tt||null===(O=tt[bt])||void 0===O||null===(T=O.globalBlockBehaviour)||void 0===T?void 0:T.interactions,onChange:e=>{const t={...tt};(0,te.set)(t,`${bt}.globalBlockBehaviour.interactions`,e),Xe({option:"cwicly_role_editor",value:t,setOption:lt,setIsAPISaving:ft,notify:!0})},disabled:gt,hideResponsive:!0,hideHover:!0,help:__("Manager your block ID and Class here. You can also add additional classes, global classes and quick access Relative Styles.","cwicly")})))),(0,e.createElement)("div",{className:"cc-panel-container"},(0,e.createElement)("div",{className:"cc_components_grid two"},(0,e.createElement)(me,{label:__("Design Tab","cwicly"),checked:null==tt||null===(A=tt[bt])||void 0===A||null===(R=A.globalBlockBehaviour)||void 0===R?void 0:R.designTab,onChange:e=>{const t={...tt};(0,te.set)(t,`${bt}.globalBlockBehaviour.designTab`,e),Xe({option:"cwicly_role_editor",value:t,setOption:lt,setIsAPISaving:ft,notify:!0})},disabled:gt,hideResponsive:!0,hideHover:!0,help:__("Regroups all styling properties for a block.","cwicly")}),(0,e.createElement)(me,{label:__("Advanced Tab","cwicly"),checked:null==tt||null===($=tt[bt])||void 0===$||null===(B=$.globalBlockBehaviour)||void 0===B?void 0:B.advancedTab,onChange:e=>{const t={...tt};(0,te.set)(t,`${bt}.globalBlockBehaviour.advancedTab`,e),Xe({option:"cwicly_role_editor",value:t,setOption:lt,setIsAPISaving:ft,notify:!0})},disabled:gt,hideResponsive:!0,hideHover:!0,help:__("Regroups advanced properties like custom CSS, Tooltips and Scroll Animations.","cwicly")})),(0,e.createElement)("div",{className:"cc_components_grid two"},(0,e.createElement)(me,{label:__("Show ID & Class manager","cwicly"),checked:null==tt||null===(N=tt[bt])||void 0===N||null===(H=N.globalBlockBehaviour)||void 0===H?void 0:H.idClassManager,onChange:e=>{const t={...tt};(0,te.set)(t,`${bt}.globalBlockBehaviour.idClassManager`,e),Xe({option:"cwicly_role_editor",value:t,setOption:lt,setIsAPISaving:ft,notify:!0})},disabled:gt,hideResponsive:!0,hideHover:!0,help:__("Manage your block ID and Class here. You can also add additional classes, global classes and quick access Relative Styles.","cwicly")}),(0,e.createElement)(me,{label:__("Tag Control","cwicly"),checked:null==tt||null===(L=tt[bt])||void 0===L||null===(D=L.globalBlockBehaviour)||void 0===D?void 0:D.tagControl,onChange:e=>{const t={...tt};(0,te.set)(t,`${bt}.globalBlockBehaviour.tagControl`,e),Xe({option:"cwicly_role_editor",value:t,setOption:lt,setIsAPISaving:ft,notify:!0})},disabled:gt,hideResponsive:!0,hideHover:!0,help:__("Manage your block tag when available.","cwicly")}),(0,e.createElement)(me,{label:__("Hover Animation","cwicly"),checked:null==tt||null===(M=tt[bt])||void 0===M||null===(j=M.globalBlockBehaviour)||void 0===j?void 0:j.hoverAnimation,onChange:e=>{const t={...tt};(0,te.set)(t,`${bt}.globalBlockBehaviour.hoverAnimation`,e),Xe({option:"cwicly_role_editor",value:t,setOption:lt,setIsAPISaving:ft,notify:!0})},disabled:gt,hideResponsive:!0,hideHover:!0,help:__("Manage premade animations for blocks when available.","cwicly")})))),(0,e.createElement)(se,{title:__("Design Properties","cwicly"),initialOpen:!0},(0,e.createElement)("div",{className:"cc-panel-container"},(0,e.createElement)("div",{className:"cc_components_grid two"},(0,e.createElement)(me,{label:__("Hide All Controls","cwicly"),checked:"true"===(null==tt||null===(G=tt[bt])||void 0===G||null===(F=G.designPanelVisibility)||void 0===F?void 0:F.all),onChange:e=>{const t={...tt};(0,te.set)(t,`${bt}.designPanelVisibility.all`,!0===e?"true":"false"),Xe({option:"cwicly_role_editor",value:t,setOption:lt,setIsAPISaving:ft,notify:!0})},disabled:gt,hideResponsive:!0,hideHover:!0,help:__("Show or hide the property visibility control for every panel group.","cwicly")}))),Object.entries(ge).map(((t,l)=>{var i,n,a,o,c,s,r;let[d,u]=t;return(0,e.createElement)(se,{title:__(null==fe||null===(i=fe[d])||void 0===i?void 0:i.name,"cwicly"),initialOpen:!1},(0,e.createElement)("div",{className:"cc-panel-container"},(0,e.createElement)("div",{className:"cc_components_grid two"},(0,e.createElement)(me,{label:__("Visibility","cwicly"),checked:"true"===(null==tt||null===(n=tt[bt])||void 0===n||null===(a=n.designPanelVisibility)||void 0===a?void 0:a[d])||"false"!==(null==tt||null===(o=tt[bt])||void 0===o||null===(c=o.designPanelVisibility)||void 0===c?void 0:c[d]),onChange:e=>{const t={...tt};(0,te.set)(t,`${bt}.designPanelVisibility.${d}`,!0===e?"true":"false"),Xe({option:"cwicly_role_editor",value:t,setOption:lt,setIsAPISaving:ft,notify:!0})},disabled:gt,hideResponsive:!0,hideHover:!0,help:__("Show or hide all design properties for this panel group.","cwicly")}),(0,e.createElement)(me,{label:__("Hide Controls","cwicly"),checked:"true"===(null==tt||null===(s=tt[bt])||void 0===s||null===(r=s.designPanelControls)||void 0===r?void 0:r[d]),onChange:e=>{const t={...tt};(0,te.set)(t,`${bt}.designPanelControls.${d}`,!0===e?"true":"false"),Xe({option:"cwicly_role_editor",value:t,setOption:lt,setIsAPISaving:ft,notify:!0})},disabled:gt,hideResponsive:!0,hideHover:!0,help:__("Show or hide the property visibility control for this panel group.","cwicly")})),Object.entries(u).map(((t,l)=>{var i;let[n,a]=t;return(0,e.createElement)(_e,null,(0,e.createElement)("div",{style:{textTransform:"uppercase",fontSize:"12px",fontWeight:600,color:"#b1b1b1",marginBottom:"16px"}},__(null==fe||null===(i=fe[n])||void 0===i?void 0:i.name,"cwicly")),(0,e.createElement)("div",{className:"cc_components_grid three"},Object.entries(a).map(((t,l)=>{var i,a,o,c,s,r,u,m;let[y,p]=t;return(0,e.createElement)(me,{label:__(null==p?void 0:p.name,"cwicly"),checked:"true"===(null==tt||null===(i=tt[bt])||void 0===i||null===(a=i.designPanelProperties)||void 0===a||null===(o=a[d])||void 0===o||null===(c=o[n])||void 0===c?void 0:c[y])||"false"!==(null==tt||null===(s=tt[bt])||void 0===s||null===(r=s.designPanelProperties)||void 0===r||null===(u=r[d])||void 0===u||null===(m=u[n])||void 0===m?void 0:m[y])&&(null==p?void 0:p.default),onChange:e=>{const t={...tt};(0,te.set)(t,`${bt}.designPanelProperties.${d}.${n}.${y}`,!0===e?"true":"false"),Xe({option:"cwicly_role_editor",value:t,setOption:lt,setIsAPISaving:ft,notify:!0})},disabled:gt,hideResponsive:!0,hideHover:!0})}))))}))),(0,e.createElement)("div",{style:{display:"flex",justifyContent:"flex-end"}},(0,e.createElement)(oe,{isSecondary:!0,isSmall:!0,className:"m-r-8",onClick:()=>{const e={...tt};Object.keys(u).some((e=>Object.keys(u[e]).some((t=>{var l,i,n,a;return null==tt||null===(l=tt[bt])||void 0===l||null===(i=l.designPanelProperties)||void 0===i||null===(n=i[d])||void 0===n||null===(a=n[e])||void 0===a?void 0:a[t]}))))?Object.keys(u).some((t=>{Object.keys(u[t]).some((l=>{(0,te.set)(e,`${bt}.designPanelProperties.${d}.${t}.${l}`,!1)}))})):Object.keys(u).some((t=>{Object.keys(u[t]).some((l=>{(0,te.set)(e,`${bt}.designPanelProperties.${d}.${t}.${l}`,!0)}))})),Xe({option:"cwicly_role_editor",value:e,setOption:lt,setIsAPISaving:ft,notify:!0})}},__("Toggle All","cwicly"))))}))),(0,e.createElement)(se,{title:__("Block Toolbar","cwicly"),initialOpen:!0},(0,e.createElement)("div",{className:"cc-panel-container"},(0,e.createElement)("div",{className:"cc_components_grid three"},(0,e.createElement)(me,{label:__("Cwicly Controls","cwicly"),checked:null==tt||null===(V=tt[bt])||void 0===V||null===(z=V.blockToolbar)||void 0===z?void 0:z.controls,onChange:e=>{const t={...tt};(0,te.set)(t,`${bt}.blockToolbar.controls`,e),Xe({option:"cwicly_role_editor",value:t,setOption:lt,setIsAPISaving:ft,notify:!0})},disabled:gt,hideResponsive:!0,hideHover:!0,help:__("Regroups the toolbar inserter, copy/paste styles and remove icon.","cwicly")}),(0,e.createElement)(me,{label:__("Dynamic Values","cwicly"),checked:null==tt||null===(W=tt[bt])||void 0===W||null===(q=W.blockToolbar)||void 0===q?void 0:q.dynamicValues,onChange:e=>{const t={...tt};(0,te.set)(t,`${bt}.blockToolbar.dynamicValues`,e),Xe({option:"cwicly_role_editor",value:t,setOption:lt,setIsAPISaving:ft,notify:!0})},disabled:gt,hideResponsive:!0,hideHover:!0,help:__("Allows you to add dynamic values to your RichText block.","cwicly")}),(0,e.createElement)(me,{label:__("RichText Styling","cwicly"),checked:null==tt||null===(Y=tt[bt])||void 0===Y||null===(X=Y.blockToolbar)||void 0===X?void 0:X.richTextStyling,onChange:e=>{const t={...tt};(0,te.set)(t,`${bt}.blockToolbar.richTextStyling`,e),Xe({option:"cwicly_role_editor",value:t,setOption:lt,setIsAPISaving:ft,notify:!0})},disabled:gt,hideResponsive:!0,hideHover:!0,help:__("Allows you to transform your text and stylise it.","cwicly")})))),(0,e.createElement)(se,{title:__("Miscellaneous","cwicly"),initialOpen:!0},(0,e.createElement)("div",{className:"cc-panel-container"},(0,e.createElement)("div",{className:"cc_components_grid two"},(0,e.createElement)(me,{label:__("SVG Uploads","cwicly"),checked:null==tt||null===(Z=tt[bt])||void 0===Z||null===(U=Z.miscellaneous)||void 0===U?void 0:U.svgUploads,onChange:e=>{const t={...tt};(0,te.set)(t,`${bt}.miscellaneous.svgUploads`,e),Xe({option:"cwicly_role_editor",value:t,setOption:lt,setIsAPISaving:ft,notify:!0})},disabled:gt,hideResponsive:!0,hideHover:!0,help:__("Enable SVG uploads to the media library. Cwicly sanitises SVGs, make sure you trust the source of the SVG before uploading it.","cwicly")}),(0,e.createElement)(me,{label:__("Inline SVG","cwicly"),checked:null==tt||null===(J=tt[bt])||void 0===J||null===(Q=J.miscellaneous)||void 0===Q?void 0:Q.inlineSvg,onChange:e=>{const t={...tt};(0,te.set)(t,`${bt}.miscellaneous.inlineSvg`,e),Xe({option:"cwicly_role_editor",value:t,setOption:lt,setIsAPISaving:ft,notify:!0})},disabled:gt,hideResponsive:!0,hideHover:!0,help:__("Allows you to add inline SVGs. Cwicly sanitises SVGs, make sure you trust the source of the SVG before adding it to your content.","cwicly")}),(0,e.createElement)(me,{label:__("Import SVGs from HTML copy/paste","cwicly"),checked:null==tt||null===(ae=tt[bt])||void 0===ae||null===(ce=ae.miscellaneous)||void 0===ce?void 0:ce.htmlSvg,onChange:e=>{const t={...tt};(0,te.set)(t,`${bt}.miscellaneous.htmlSvg`,e),Xe({option:"cwicly_role_editor",value:t,setOption:lt,setIsAPISaving:ft,notify:!0})},disabled:gt,hideResponsive:!0,hideHover:!0,help:__("Allows you to import inline SVGs when you copy/paste an HTML snippet. Cwicly sanitises SVGs, make sure you trust the source of the SVG before adding it to your content.","cwicly")}),(0,e.createElement)(me,{label:__("Select Pseudo Classes/Elements","cwicly"),checked:null==tt||null===(re=tt[bt])||void 0===re||null===(de=re.miscellaneous)||void 0===de?void 0:de.selectPseudoClasses,onChange:e=>{const t={...tt};(0,te.set)(t,`${bt}.miscellaneous.selectPseudoClasses`,e),Xe({option:"cwicly_role_editor",value:t,setOption:lt,setIsAPISaving:ft,notify:!0})},disabled:gt,hideResponsive:!0,hideHover:!0,help:__("Allows you to change between pseudo classes/elements while visualising them and editing properties with that pseudo class.","cwicly")}),(0,e.createElement)(me,{label:__("Add Pseudo Classes/Elements","cwicly"),checked:null==tt||null===(ue=tt[bt])||void 0===ue||null===(ye=ue.miscellaneous)||void 0===ye?void 0:ye.addPseudoClasses,onChange:e=>{const t={...tt};(0,te.set)(t,`${bt}.miscellaneous.addPseudoClasses`,e),Xe({option:"cwicly_role_editor",value:t,setOption:lt,setIsAPISaving:ft,notify:!0})},disabled:gt||!(null!=tt&&null!==(Ee=tt[bt])&&void 0!==Ee&&null!==(ke=Ee.miscellaneous)&&void 0!==ke&&ke.selectPseudoClasses),hideResponsive:!0,hideHover:!0,help:__("Allows you to add new pseudo classes/elements to a block or a global style/class.","cwicly")}),(0,e.createElement)(me,{label:__("Hide Admin Bar Template Info","cwicly"),checked:null==tt||null===(xe=tt[bt])||void 0===xe||null===(Pe=xe.miscellaneous)||void 0===Pe?void 0:Pe.hideAdminBarTemplateInfo,onChange:e=>{const t={...tt};(0,te.set)(t,`${bt}.miscellaneous.hideAdminBarTemplateInfo`,e),Xe({option:"cwicly_role_editor",value:t,setOption:lt,setIsAPISaving:ft,notify:!0})},hideResponsive:!0,hideHover:!0,help:__("A quick and useful way to see information about templates that are being used on the current page.","cwicly")})))),(0,e.createElement)(se,{title:__("Components","cwicly"),initialOpen:!0},(0,e.createElement)("div",{className:"cc-panel-container"},(0,e.createElement)("div",{className:"cc_components_grid three"},(0,e.createElement)(me,{label:__("Modify Components","cwicly"),checked:null==tt||null===(Oe=tt[bt])||void 0===Oe||null===(Te=Oe.components)||void 0===Te?void 0:Te.modify,onChange:e=>{const t={...tt};(0,te.set)(t,`${bt}.components.modify`,e),Xe({option:"cwicly_role_editor",value:t,setOption:lt,setIsAPISaving:ft,notify:!0})},disabled:gt,hideResponsive:!0,hideHover:!0,help:__("Allows you to modify the component source from a component instance.","cwicly")})))),(0,e.createElement)(se,{title:__("Tailwind","cwicly"),initialOpen:!0},(0,e.createElement)("div",{className:"cc-panel-container"},(0,e.createElement)("div",{className:"cc_components_grid three"},(0,e.createElement)(me,{label:__("Configs","cwicly"),checked:null==tt||null===(Ae=tt[bt])||void 0===Ae||null===(Re=Ae.tailwind)||void 0===Re?void 0:Re.configs,onChange:e=>{const t={...tt};(0,te.set)(t,`${bt}.tailwind.configs`,e),Xe({option:"cwicly_role_editor",value:t,setOption:lt,setIsAPISaving:ft,notify:!0})},disabled:gt,hideResponsive:!0,hideHover:!0,help:__("Allows you to activate, add or modify Tailwind configs.","cwicly")}),(0,e.createElement)(me,{label:__("Shells","cwicly"),checked:null==tt||null===($e=tt[bt])||void 0===$e||null===(Be=$e.tailwind)||void 0===Be?void 0:Be.shells,onChange:e=>{const t={...tt};(0,te.set)(t,`${bt}.tailwind.shells`,e),Xe({option:"cwicly_role_editor",value:t,setOption:lt,setIsAPISaving:ft,notify:!0})},disabled:gt,hideResponsive:!0,hideHover:!0,help:__("Allows you to add, create or modify Tailwind shells.","cwicly")}),(0,e.createElement)(me,{label:__("Convert to Shell","cwicly"),checked:null==tt||null===(Ne=tt[bt])||void 0===Ne||null===(He=Ne.tailwind)||void 0===He?void 0:He.convertShell,onChange:e=>{const t={...tt};(0,te.set)(t,`${bt}.tailwind.convertShell`,e),Xe({option:"cwicly_role_editor",value:t,setOption:lt,setIsAPISaving:ft,notify:!0})},disabled:gt,hideResponsive:!0,hideHover:!0,help:__("Allows you convert Tailwind classes to shells.","cwicly")})))),(0,e.createElement)(se,{title:__("Code Block","cwicly"),initialOpen:!0},(0,e.createElement)("div",{className:"cc-panel-container"},(0,e.createElement)("div",{className:"cc_components_grid three"},(0,e.createElement)(me,{label:__("PHP","cwicly"),checked:null==tt||null===(Le=tt[bt])||void 0===Le||null===(De=Le.codeBlock)||void 0===De?void 0:De.php,onChange:e=>{const t={...tt};(0,te.set)(t,`${bt}.codeBlock.php`,e),Xe({option:"cwicly_role_editor",value:t,setOption:lt,setIsAPISaving:ft,notify:!0})},disabled:gt,hideResponsive:!0,hideHover:!0,help:__("Allows you to change between pseudo classes/elements while visualising them and editing properties with that pseudo class.","cwicly")}),(0,e.createElement)(me,{label:__("CSS","cwicly"),checked:null==tt||null===(Me=tt[bt])||void 0===Me||null===(je=Me.codeBlock)||void 0===je?void 0:je.css,onChange:e=>{const t={...tt};(0,te.set)(t,`${bt}.codeBlock.css`,e),Xe({option:"cwicly_role_editor",value:t,setOption:lt,setIsAPISaving:ft,notify:!0})},hideResponsive:!0,hideHover:!0,help:__("Allows you to add new pseudo classes/elements to a block or a global style/class.","cwicly")}),(0,e.createElement)(me,{label:__("JS","cwicly"),checked:null==tt||null===(Ge=tt[bt])||void 0===Ge||null===(Fe=Ge.codeBlock)||void 0===Fe?void 0:Fe.js,onChange:e=>{const t={...tt};(0,te.set)(t,`${bt}.codeBlock.js`,e),Xe({option:"cwicly_role_editor",value:t,setOption:lt,setIsAPISaving:ft,notify:!0})},hideResponsive:!0,hideHover:!0,help:__("Allows you to add new pseudo classes/elements to a block or a global style/class.","cwicly")})))),(0,e.createElement)(se,{title:__("Blocks","cwicly"),initialOpen:!0},(0,e.createElement)("div",{className:"cc-panel-container"},(0,e.createElement)("div",{className:"cc_components_grid two"},[{name:"cwicly/columns",title:"Columns"},{name:"cwicly/column",title:"Column"},{name:"cwicly/section",title:"Section"},{name:"cwicly/heading",title:"Heading"},{name:"cwicly/paragraph",title:"Paragraph"},{name:"cwicly/image",title:"Image"},{name:"cwicly/button",title:"Button"},{name:"cwicly/accordions",title:"Accordions"},{name:"cwicly/accordion",title:"Accordion"},{name:"cwicly/accordionheader",title:"Accordion Header"},{name:"cwicly/accordioncontent",title:"Accordion Content"},{name:"cwicly/tab",title:"Tab"},{name:"cwicly/tabcontent",title:"Tab Content"},{name:"cwicly/tabcontents",title:"Tab Contents"},{name:"cwicly/tablist",title:"Tab List"},{name:"cwicly/icon",title:"Icon"},{name:"cwicly/video",title:"Video"},{name:"cwicly/list",title:"List"},{name:"cwicly/slider",title:"Slider"},{name:"cwicly/sliderchild",title:"Slide"},{name:"cwicly/gallery",title:"Gallery"},{name:"cwicly/modal",title:"Modal"},{name:"cwicly/menu",title:"Menu"},{name:"cwicly/nav",title:"Nav"},{name:"cwicly/navdropdown",title:"Nav Dropdown"},{name:"cwicly/navlink",title:"Nav Link"},{name:"cwicly/navmenu",title:"Nav Menu"},{name:"cwicly/navitems",title:"Nav Items"},{name:"cwicly/div",title:"Div"},{name:"cwicly/maps",title:"Maps"},{name:"cwicly/swatch",title:"Swatch"},{name:"cwicly/input",title:"Input"},{name:"cwicly/hook",title:"Hook"},{name:"cwicly/fragment",title:"Fragment"},{name:"cwicly/filter",title:"Filter"},{name:"cwicly/rangeslider",title:"Range Slider"},{name:"cwicly/query",title:"Query"},{name:"cwicly/query-template",title:"Query Template"},{name:"cwicly/query-pagination",title:"Query Pagination"},{name:"cwicly/query-pagination-numbers",title:"Query Pagination Numbers"},{name:"cwicly/content",title:"Post Content"},{name:"cwicly/repeater",title:"Repeater"},{name:"cwicly/taxonomyterms",title:"Taxonomy Terms"},{name:"cwicly/code",title:"Code"},{name:"cwicly/popover",title:"Popover"},{name:"cwicly/styler",title:"Styler"},{name:"cwicly/container",title:"Container"}].map((t=>{var l,i;return(0,e.createElement)(me,{label:t.title,checked:!(null!=tt&&null!==(l=tt[bt])&&void 0!==l&&null!==(i=l.blocks)&&void 0!==i&&i.hideList.includes(t.name)),onChange:()=>{var e,l;const i={...tt};var n,a;null!=tt&&null!==(e=tt[bt])&&void 0!==e&&null!==(l=e.blocks)&&void 0!==l&&l.hideList?null!=tt&&null!==(n=tt[bt])&&void 0!==n&&null!==(a=n.blocks)&&void 0!==a&&a.hideList.includes(t.name)?i[bt].blocks.hideList.splice(i[bt].blocks.hideList.indexOf(t.name),1):i[bt].blocks.hideList.push(t.name):(0,te.set)(i,`${bt}.blocks.hideList`,[t.name]),Xe({option:"cwicly_role_editor",value:i,setOption:lt,setIsAPISaving:ft,notify:!0})},hideResponsive:!0,hideHover:!0})}))),(0,e.createElement)("div",{style:{display:"flex",justifyContent:"flex-end"}},(0,e.createElement)(oe,{isSecondary:!0,isSmall:!0,className:"m-r-8",onClick:()=>{var e,t,l,i;const n={...tt};null!=tt&&null!==(e=tt[bt])&&void 0!==e&&null!==(t=e.blocks)&&void 0!==t&&t.hideList&&null!=tt&&null!==(l=tt[bt])&&void 0!==l&&null!==(i=l.blocks)&&void 0!==i&&i.hideList.length?(0,te.set)(n,`${bt}.blocks.hideList`,[]):(0,te.set)(n,`${bt}.blocks.hideList`,ne),Xe({option:"cwicly_role_editor",value:n,setOption:lt,setIsAPISaving:ft,notify:!0})}},__("Toggle All","cwicly"))))),(0,e.createElement)(se,{title:__("Post Types","cwicly"),initialOpen:!0},(0,e.createElement)("div",{className:"cc-panel-container"},(0,e.createElement)("p",{style:{marginBottom:"16px",fontStyle:"italic"}},__("Enable Cwicly features & blocks for the selected post types. This setting trumps other Role Editor settings on the selected post type.","cwicly")),(0,e.createElement)("div",{className:"cc_components_grid two"},ht&&ht.map((t=>{var l,i,n,a;if(null!=t&&null!==(l=t.supports)&&void 0!==l&&l.editor&&"wp_template"!=t.slug&&"wp_template_part"!=t.slug&&"wp_navigation"!=t.slug&&"nav_menu_item"!=t.slug&&"cc_block"!=t.slug)return(0,e.createElement)(me,{label:t.name,checked:!(null!=tt&&null!==(i=tt[bt])&&void 0!==i&&null!==(n=i.postTypes)&&void 0!==n&&null!==(a=n.hideList)&&void 0!==a&&a.includes(t.slug)),onChange:()=>{var e,l;const i={...tt};var n,a;null!=tt&&null!==(e=tt[bt])&&void 0!==e&&null!==(l=e.postTypes)&&void 0!==l&&l.hideList?null!=tt&&null!==(n=tt[bt])&&void 0!==n&&null!==(a=n.postTypes)&&void 0!==a&&a.hideList.includes(t.slug)?i[bt].postTypes.hideList.splice(i[bt].postTypes.hideList.indexOf(t.slug),1):i[bt].postTypes.hideList.push(t.slug):(0,te.set)(i,`${bt}.postTypes.hideList`,[t.slug]),Xe({option:"cwicly_role_editor",value:i,setOption:lt,setIsAPISaving:ft,notify:!0})},hideResponsive:!0,hideHover:!0})}))))),(0,e.createElement)(se,{title:__("Force iFrame","cwicly"),initialOpen:!0},(0,e.createElement)("div",{className:"cc-panel-container"},(0,e.createElement)("p",{style:{marginBottom:"16px",fontStyle:"italic"}},__("Gutenberg does not trigger iFrame mode when certain conditions are not met. For a more fluid design experience, force iFrame mode for the selected post types.","cwicly")),(0,e.createElement)("div",{className:"cc_components_grid two"},ht&&ht.map((t=>{var l,i,n,a;if(null!=t&&null!==(l=t.supports)&&void 0!==l&&l.editor&&"wp_template"!=t.slug&&"wp_template_part"!=t.slug&&"wp_navigation"!=t.slug&&"nav_menu_item"!=t.slug&&"cc_block"!=t.slug)return(0,e.createElement)(me,{label:t.name,checked:null==tt||null===(i=tt[bt])||void 0===i||null===(n=i.postTypes)||void 0===n||null===(a=n.forceIframeList)||void 0===a?void 0:a.includes(t.slug),onChange:()=>{var e,l;const i={...tt};var n,a;null!=tt&&null!==(e=tt[bt])&&void 0!==e&&null!==(l=e.postTypes)&&void 0!==l&&l.forceIframeList?null!=tt&&null!==(n=tt[bt])&&void 0!==n&&null!==(a=n.postTypes)&&void 0!==a&&a.forceIframeList.includes(t.slug)?i[bt].postTypes.forceIframeList.splice(i[bt].postTypes.forceIframeList.indexOf(t.slug),1):i[bt].postTypes.forceIframeList.push(t.slug):(0,te.set)(i,`${bt}.postTypes.forceIframeList`,[t.slug]),Xe({option:"cwicly_role_editor",value:i,setOption:lt,setIsAPISaving:ft,notify:!0})},hideResponsive:!0,hideHover:!0})}))))),(0,e.createElement)(se,{title:__("Client Canvas View","cwicly"),initialOpen:!0},(0,e.createElement)("div",{className:"cc-panel-container"},(0,e.createElement)("p",{style:{marginBottom:"16px",fontStyle:"italic"}},__("The base breakpoint will be used as the default view inside the editor.","cwicly")),(0,e.createElement)("div",{className:"cc_components_grid two"},ht&&ht.map((t=>{var l,i,n;if(null!=t&&null!==(l=t.supports)&&void 0!==l&&l.editor&&"wp_template"!=t.slug&&"wp_template_part"!=t.slug&&"wp_navigation"!=t.slug&&"nav_menu_item"!=t.slug&&"cc_block"!=t.slug)return(0,e.createElement)(ve,{label:t.name,value:null==tt||null===(i=tt[bt])||void 0===i||null===(n=i.clientViews)||void 0===n?void 0:n[t.slug],options:Ye,onChange:e=>{const l={...tt};(0,te.set)(l,`${bt}.clientViews.${t.slug}`,e),Xe({option:"cwicly_role_editor",value:l,setOption:lt,setIsAPISaving:ft,notify:!0})}})}))))),(0,e.createElement)(se,null,(0,e.createElement)("div",{className:"cc-panel-container"},(0,e.createElement)("div",{className:"codeinwp-info"},(0,e.createElement)("h2",null,__("Need help? Have a question?","cwicly")),(0,e.createElement)("p",null,__("Don't hesitate to check out our documentation. Need to contact us? We would love to help you out.","cwicly")),(0,e.createElement)("div",{className:"codeinwp-info-button-group"},(0,e.createElement)(oe,{isSecondary:!0,isLarge:!0,target:"_blank",href:"mailto:support@cwicly.com"},__("Ask a question","cwicly")),(0,e.createElement)(oe,{isSecondary:!0,isLarge:!0,target:"_blank",href:"https://docs.cwicly.com/?utm_source=cwicly_settings",style:{marginLeft:"8px"}},__("Documentation","cwicly"))))))),kt&&(0,e.createElement)(we,{title:"This is my modal",onRequestClose:()=>_t(!1)},(0,e.createElement)(pe,{label:"Paste your rules here",value:"",onChange:e=>{const t=JSON.parse(e)?JSON.parse(e):"";let l;t.role&&t.rules&&bt&&(l={...tt},l[bt]=t.rules),l&&Xe({option:"cwicly_role_editor",value:l,setOption:lt,setIsAPISaving:ft,notify:!0}),_t(!1)}})))}),null),document.getElementById("cc-settings-page"))}},l={};function i(e){var n=l[e];if(void 0!==n)return n.exports;var a=l[e]={exports:{}};return t[e](a,a.exports,i),a.exports}i.m=t,e=[],i.O=function(t,l,n,a){if(!l){var o=1/0;for(d=0;d<e.length;d++){l=e[d][0],n=e[d][1],a=e[d][2];for(var c=!0,s=0;s<l.length;s++)(!1&a||o>=a)&&Object.keys(i.O).every((function(e){return i.O[e](l[s])}))?l.splice(s--,1):(c=!1,a<o&&(o=a));if(c){e.splice(d--,1);var r=n();void 0!==r&&(t=r)}}return t}a=a||0;for(var d=e.length;d>0&&e[d-1][2]>a;d--)e[d]=e[d-1];e[d]=[l,n,a]},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){var e={826:0,431:0};i.O.j=function(t){return 0===e[t]};var t=function(t,l){var n,a,o=l[0],c=l[1],s=l[2],r=0;if(o.some((function(t){return 0!==e[t]}))){for(n in c)i.o(c,n)&&(i.m[n]=c[n]);if(s)var d=s(i)}for(t&&t(l);r<o.length;r++)a=o[r],i.o(e,a)&&e[a]&&e[a][0](),e[a]=0;return i.O(d)},l=self.webpackChunkrole_editor=self.webpackChunkrole_editor||[];l.forEach(t.bind(null,0)),l.push=t.bind(null,l.push.bind(l))}();var n=i.O(void 0,[431],(function(){return i(484)}));n=i.O(n)}();