/*! For license information please see 319.min.js.LICENSE.txt */
"use strict";(self.webpackChunk_envira_imagely_admin_app=self.webpackChunk_envira_imagely_admin_app||[]).push([[319],{5760:(e,t,r)=>{r.d(t,{A:()=>g});var l=r(6106),n=r(56),a=r(7723),i=r(1609),o=r.n(i),c=r(8376);const s=function(e){var t=e.activeTab,r=e.onTabChange,n=(0,c.B)(),a=function(e){return n.findIndex(function(t){return t.id===e})};return React.createElement("div",{className:"px-4 sm:px-6 lg:px-8"},React.createElement("div",{className:"flex flex-col sm:flex-row w-full h-auto sm:h-[70px] relative rounded-lg border border-gray-200 overflow-hidden"},n.map(function(e,i){var o,c=(o=e.id,t===o),s=function(e){var r=a(t);return a(e)<r}(e.id),g=i===n.length-1,m=String(i+1).padStart(2,"0");return React.createElement("div",{key:e.id,className:"relative flex-1",style:{zIndex:n.length-i}},React.createElement("button",{onClick:function(){return r(e.id)},className:"mobile-step-button relative w-full h-full flex items-center px-4 sm:px-6 lg:px-8 py-4 sm:py-5 transition-all duration-300 border-b sm:border-b-0 sm:border-r border-gray-100 last:border-b-0 sm:last:border-r-0 ".concat(c?"text-green-800 bg-green-100":s?"text-gray-700 hover:text-green-700 bg-gray-50":"text-gray-500 hover:text-gray-700 bg-white hover:bg-gray-50"),style:{clipPath:g?"polygon(0 0, 100% 0, 100% 100%, 0 100%, 12px 50%)":0===i?"polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%)":"polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%, 12px 50%)",marginLeft:0===i?"":"-".concat(11*i,"px"),width:g?"calc( 100% + ".concat(11*i*2,"px )"):""}},React.createElement("div",{className:"flex items-center space-x-2 sm:space-x-3 w-full"},React.createElement("div",{className:"w-6 h-6 sm:w-8 sm:h-8 rounded-full flex items-center justify-center text-xs sm:text-sm font-bold transition-all duration-300 flex-shrink-0 ".concat(c?"bg-white text-green-700 border border-green-700":"text-gray-400 border border-gray-200")},s&&!c?React.createElement(l.Nr,{className:"w-3 h-3 sm:w-4 sm:h-4"}):m),React.createElement("div",{className:"flex flex-col items-start min-w-0 flex-1"},React.createElement("div",{className:"text-xs sm:text-sm font-semibold truncate w-full text-left"},e.label),React.createElement("div",{className:"text-xs opacity-75 text-left"},e.description)))))})))},g=function(e){var t=e.children,r=e.currentTab,i=e.onTabChange,c=e.error,g=e.isLoading,m=void 0!==g&&g,u=e.containerClassName,d=e.contentClassName,h=e.hideHeader,f=void 0!==h&&h,p=e.headerComponent,y=function(){if(p){if("function"==typeof p&&0===p.length)return p();var e=p;return o().createElement(e,{activeTab:r,onTabChange:i})}return o().createElement(s,{activeTab:r,onTabChange:i})};return m?o().createElement("div",{className:(0,n.cn)("min-h-screen",u)},!f&&y(),o().createElement("div",{className:(0,n.cn)("mx-auto max-w-screen-2xl p-6",d)},o().createElement("div",{className:"flex items-center justify-center py-8"},o().createElement("div",{className:"text-gray-500"},(0,a.__)("Loading...","nggallery"))))):o().createElement("div",{className:(0,n.cn)("min-h-screen",u)},y(),o().createElement("div",{className:(0,n.cn)("mx-auto max-w-screen-2xl p-6",d)},c&&o().createElement("div",{className:"mb-6 bg-red-50 border border-red-200 rounded-md p-4"},o().createElement("div",{className:"flex"},o().createElement("div",{className:"flex-shrink-0"},o().createElement(l.IJ,{className:"h-5 w-5 text-red-400"})),o().createElement("div",{className:"ml-3"},o().createElement("h3",{className:"text-sm font-medium text-red-800"},(0,a.__)("Error","nggallery")),o().createElement("div",{className:"mt-2 text-sm text-red-700"},o().createElement("p",null,c))))),t))}},1966:(e,t,r)=>{r.d(t,{A:()=>i});var l=r(1609),n=r.n(l),a=r(56);const i=function(e){var t=e.title,r=e.children,l=e.className;return n().createElement("div",{className:(0,a.cn)("bg-white rounded-lg",l)},n().createElement("div",{className:"w-full py-3 px-4"},n().createElement("h3",{className:"text-base font-medium text-gray-900"},t)),n().createElement("div",{className:"px-4 pb-4"},n().createElement("div",{className:"pt-4"},r)))}},5316:(e,t,r)=>{r.d(t,{e:()=>h});var l=r(3453),n=r(1313),a=r(6434),i=r(56),o=r(2887),c=r(6427),s=r(7723),g=r(1609),m=r.n(g),u=r(5795),d=r.n(u),h=function(e){var t=e.color,r=e.onChange,u=e.label,h=void 0===u?(0,s.__)("Select Color","nggallery"):u,f=e.className,p=void 0===f?"":f,y=e.enableAlpha,b=void 0!==y&&y,w=e.copyFormat,v=void 0===w?"hex":w,x=(0,g.useState)(!1),_=(0,l.A)(x,2),E=_[0],C=_[1],N=(0,g.useRef)(null),k=(0,g.useRef)(null),P=(0,g.useState)(null),I=(0,l.A)(P,2),O=I[0],R=I[1],S=(0,a.K)(o.i,E),j=(0,g.useCallback)(function(){C(!1)},[]),A=(0,n.L)(j,E);return(0,g.useLayoutEffect)(function(){if(E&&N.current&&k.current){var e=N.current.getBoundingClientRect(),t=k.current.getBoundingClientRect(),r=(0,o.i)().getBoundingClientRect(),l=e.bottom-S.offsetY+8,n=e.left+e.width/2-t.width/2-S.offsetX;if(l+t.height>r.height-8){var a=e.top-S.offsetY-t.height-8;a>=8&&(l=a)}var i=r.width-8;n<8&&(n=8),n+t.width>i&&(n=i-t.width),n<0&&(n=8),R({top:l,left:n})}},[E,t,S]),(0,g.useEffect)(function(){var e=function(e){"Escape"===e.key&&E&&C(!1)};return E&&document.addEventListener("keydown",e),function(){document.removeEventListener("keydown",e)}},[E]),m().createElement("div",{className:(0,i.cn)("space-y-2",p)},m().createElement("div",{className:"flex items-center space-x-2"},m().createElement("button",{ref:N,type:"button",onClick:function(){return C(!E)},className:"inline-flex items-center px-3 py-2 border border-input-border shadow-sm text-sm leading-4 font-medium rounded-md text-gray-700 bg-white hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-green-500"},m().createElement("span",{className:"w-4 h-4 mr-2 rounded-sm border border-input-border",style:{backgroundColor:t}}),h),m().createElement("span",{className:"text-sm text-gray-500"},t)),E&&d().createPortal(m().createElement("div",{ref:function(e){A.current=e,k.current=e},style:{position:"absolute",top:O?"".concat(O.top,"px"):"-9999px",left:O?"".concat(O.left,"px"):"-9999px",opacity:O?1:0,zIndex:9999},className:"bg-white rounded-lg shadow-xl border border-input-border p-3"},m().createElement(c.ColorPicker,{color:t,onChange:r,enableAlpha:b,copyFormat:v}),m().createElement("div",{className:"mt-3 flex justify-end"},m().createElement("button",{type:"button",onClick:function(){r("")},className:"text-sm text-red-500 hover:text-red-700 cursor-pointer bg-transparent border-none"},(0,s.__)("Clear","nggallery")))),(0,o.i)()))}},1552:(e,t,r)=>{r.d(t,{A:()=>g});var l=r(3453),n=r(4467),a=r(7723),i=r(1609),o=r.n(i),c=r(7899);function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,l)}return r}const g=function(e){var t,r=e.prefix,i=e.value,g=e.name,m=void 0===g?"template":g,u=e.onChange,d=e.label,h=e.help,f=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(Object(r),!0).forEach(function(t){(0,n.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({},(null===(t=window.imagelyApp)||void 0===t||null===(t=t.legacyTemplates)||void 0===t?void 0:t[r])||{default:(0,a.__)("Default","nggallery")});return i&&!f[i]&&(f[i]=i),o().createElement(c.A,{id:"legacy-template-".concat(r),name:m,value:i||"default",onChange:u,label:null!=d?d:(0,a.__)("Legacy Template","nggallery"),help:null!=h?h:(0,a.__)('Use a legacy PHP template for custom rendering. Templates are loaded from your theme\'s "nggallery" folder.',"nggallery")},Object.entries(f).map(function(e){var t=(0,l.A)(e,2),r=t[0],n=t[1];return o().createElement("option",{key:r,value:r},n)}))}},2935:(e,t,r)=>{r.d(t,{A:()=>o});var l=r(3453),n=r(7723),a=r(1609),i=r.n(a);const o=function(e){var t=e.currentPage,r=e.totalPages,o=e.perPage,c=e.total,s=e.onPageChange,g=e.itemLabel,m=void 0===g?"Items":g,u=e.showItemCount,d=void 0===u||u,h=(0,a.useState)(""),f=(0,l.A)(h,2),p=f[0],y=f[1],b=(0,a.useState)(!1),w=(0,l.A)(b,2),v=w[0],x=w[1];(0,a.useEffect)(function(){y("")},[t]);var _=function(){var e=parseInt(p,10);e>=1&&e<=r&&(s(e),y(""),x(!1))},E=Array.from({length:r},function(e,t){return t+1}).filter(function(e){return 1===e||e===r||Math.abs(e-t)<=1});return i().createElement("div",{className:"flex justify-between items-center mt-4 px-2 gap-4 flex-wrap"},d&&c>0&&i().createElement("div",{className:"text-sm text-gray-600"},(t-1)*o+1,"-",Math.min(t*o,c)," of ",c," ",m),r>1&&i().createElement("div",{className:"flex gap-2 items-center flex-wrap"},i().createElement("button",{type:"button",className:"p-2 border border-gray-300 bg-white text-gray-700 hover:bg-gray-50 rounded-md disabled:opacity-50 disabled:cursor-not-allowed",onClick:function(){return s(t-1)},disabled:1===t,title:(0,n.__)("Previous page","nggallery")},i().createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"w-5 h-5"},i().createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 19.5L8.25 12l7.5-7.5"}))),E.map(function(e,r,l){return r>0&&e-l[r-1]>1?i().createElement(i().Fragment,{key:"ellipsis-".concat(e)},i().createElement("span",{className:"px-2 py-1 text-gray-500"},"..."),i().createElement("button",{type:"button",className:"min-w-[40px] px-3 py-2 border border-gray-300 bg-white rounded-md text-sm font-medium transition-colors ".concat(t===e?"bg-blue-50 text-blue-600 border-blue-300 cursor-default":"text-gray-700 hover:bg-gray-50 cursor-pointer"),onClick:function(){return t!==e&&s(e)}},e)):i().createElement("button",{type:"button",key:e,className:"min-w-[40px] px-3 py-2 border border-gray-300 bg-white rounded-md text-sm font-medium transition-colors ".concat(t===e?"bg-blue-50 text-blue-600 border-blue-300 cursor-default":"text-gray-700 hover:bg-gray-50 cursor-pointer"),onClick:function(){return t!==e&&s(e)}},e)}),i().createElement("button",{type:"button",className:"p-2 border border-gray-300 bg-white text-gray-700 hover:bg-gray-50 rounded-md disabled:opacity-50 disabled:cursor-not-allowed",onClick:function(){return s(t+1)},disabled:t===r,title:(0,n.__)("Next page","nggallery")},i().createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"w-5 h-5"},i().createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.25 4.5l7.5 7.5-7.5 7.5"}))),r>5&&i().createElement("div",{className:"flex items-center gap-2 ml-2 pl-2 border-l border-gray-300"},v?i().createElement("div",{className:"flex items-center gap-2"},i().createElement("input",{type:"number",min:"1",max:r,value:p,onChange:function(e){return y(e.target.value)},onKeyDown:function(e){"Enter"===e.key?_():"Escape"===e.key&&(y(""),x(!1))},placeholder:(0,n.__)("Page","nggallery"),className:"w-20 px-2 py-1 text-sm border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent",autoFocus:!0}),i().createElement("button",{type:"button",className:"px-3 py-1 text-sm bg-blue-600 text-white hover:bg-blue-700 rounded-md disabled:opacity-50 disabled:cursor-not-allowed",onClick:_,disabled:!p||parseInt(p,10)<1||parseInt(p,10)>r},(0,n.__)("Go","nggallery")),i().createElement("button",{type:"button",className:"px-2 py-1 text-sm text-gray-600 hover:text-gray-800",onClick:function(){y(""),x(!1)},title:(0,n.__)("Cancel","nggallery")},i().createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor",className:"w-4 h-4"},i().createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})))):i().createElement("button",{type:"button",className:"px-3 py-2 text-sm border border-gray-300 bg-white text-gray-700 hover:bg-gray-50 rounded-md whitespace-nowrap",onClick:function(){return x(!0)},title:(0,n.__)("Jump to a specific page","nggallery")},(0,n.__)("Go to page","nggallery")))))}},9380:(e,t,r)=>{r.d(t,{A:()=>s});var l=r(3453),n=r(3375),a=r(7723),i=r(1609),o=r.n(i),c=function(e){var t=e.page,r=e.isCurrent,a=e.onFire,c=(0,n.zM)({id:"page-drop-".concat(t),disabled:r,data:{page:t}}),s=c.isOver,g=c.setNodeRef,m=(0,i.useState)(!1),u=(0,l.A)(m,2),d=u[0],h=u[1];(0,i.useEffect)(function(){if(s&&!r){h(!0);var e=window.setTimeout(function(){h(!1),a(t)},1200);return function(){return window.clearTimeout(e)}}h(!1)},[s,r,t,a]);var f="bg-white border-gray-300 text-gray-700 hover:bg-gray-50";return r?f="bg-blue-50 border-blue-300 text-blue-600 cursor-default":d&&(f="page-chip-bounce bg-blue-50 border-blue-400 text-blue-700"),o().createElement("div",{ref:g,className:"".concat("min-w-[44px] h-11 px-3 border rounded-md text-base font-medium flex items-center justify-center select-none transition-colors"," ").concat(f),"aria-current":r?"page":void 0,"aria-disabled":r},t)};const s=function(e){var t=e.currentPage,r=e.totalPages,l=e.onPaginate,n=(0,i.useRef)(null);return(0,i.useEffect)(function(){var e=n.current;if(e){var r=e.children[t-1];if(r){var l=r.offsetLeft+r.offsetWidth/2;e.scrollLeft=Math.max(0,l-e.clientWidth/2)}}},[]),o().createElement("div",{className:"fixed left-1/2 -translate-x-1/2 bottom-8 z-50 max-w-[min(90vw,900px)] w-max bg-white/95 backdrop-blur-sm border border-gray-200 rounded-2xl shadow-2xl px-6 py-4",role:"region","aria-label":(0,a.__)("Page navigator","nggallery")},o().createElement("div",{className:"text-sm font-semibold text-gray-700 mb-3 text-center"},(0,a.__)("Hover a page to navigate","nggallery")),o().createElement("div",{ref:n,className:"flex gap-2 overflow-x-auto pb-1",style:{scrollbarWidth:"thin"}},Array.from({length:r},function(e,t){return t+1}).map(function(e){return o().createElement(c,{key:e,page:e,isCurrent:e===t,onFire:l})})),o().createElement("style",null,"\n\t\t\t\t.page-chip-bounce {\n\t\t\t\t\tanimation: page-chip-blink 0.4s ease-in-out infinite;\n\t\t\t\t\twill-change: opacity;\n\t\t\t\t}\n\t\t\t\t@keyframes page-chip-blink {\n\t\t\t\t\t0% { opacity: 1; }\n\t\t\t\t\t50% { opacity: 0.3; }\n\t\t\t\t\t100% { opacity: 1; }\n\t\t\t\t}\n\t\t\t"))}},30:(e,t,r)=>{r.d(t,{A:()=>y});var l=r(467),n=r(3453),a=r(1609),i=r.n(a),o=r(56);const c=function(e){var t=e.text,r=e.children,l=e.placement,n=void 0===l?"top":l,a={top:"bottom-full left-1/2 -translate-x-1/2 mb-2",right:"left-full top-1/2 -translate-y-1/2 ml-2",bottom:"top-full left-1/2 -translate-x-1/2 mt-2",left:"right-full top-1/2 -translate-y-1/2 mr-2"}[n],c={top:"top-full left-1/2 -translate-x-1/2 -mt-2",right:"left-0 top-1/2 -translate-y-1/2 -ml-2",bottom:"-top-2 left-1/2 -translate-x-1/2",left:"right-0 top-1/2 -translate-y-1/2 -mr-2"}[n],s={top:"border-8 border-transparent border-t-gray-900",right:"border-8 border-transparent border-r-gray-900",bottom:"border-8 border-transparent border-b-gray-900",left:"border-8 border-transparent border-l-gray-900"}[n];return i().createElement("div",{className:"relative inline-block group"},r,i().createElement("div",{className:(0,o.cn)("absolute invisible group-hover:visible opacity-0 group-hover:opacity-100 px-3 py-2 text-sm text-white bg-gray-900 rounded-lg shadow-lg w-max max-w-xs z-50 whitespace-nowrap",a)},t,i().createElement("div",{className:(0,o.cn)("absolute",c)},i().createElement("div",{className:s}))))},s=function(e){var t=e.url,r=e.mode,l=e.title,c=e.className,s=void 0===c?"":c,g=e.containerClassName,m=void 0===g?"":g,u=e.onLoad,d=e.loadingMessage,h=(0,a.useState)(!0),f=(0,n.A)(h,2),p=f[0],y=f[1],b=function(e){var t="desktop"===e?.5:.8;return{containerStyle:{transform:"scale(".concat(t,")"),transformOrigin:"top left",width:"".concat(100/t,"%"),height:"".concat(100/t,"%"),overflow:"hidden"},iframeStyle:{width:"100%",height:"100%"}}}(r),w=b.containerStyle,v=b.iframeStyle;return i().createElement("div",{className:(0,o.cn)("w-full h-full",m),style:w},p&&i().createElement("div",{className:"absolute inset-0 flex items-center justify-center bg-gray-50 bg-opacity-90 z-10"},i().createElement("div",{className:"text-center"},i().createElement("div",{className:"inline-block animate-spin rounded-full size-14 border-b-2 border-black mb-2"}),i().createElement("p",{className:"text-lg font-medium text-black"},null!=d?d:"Loading..."))),i().createElement("iframe",{src:t,className:(0,o.cn)("w-full h-full",s),title:l||"Scaled iframe content",style:v,onLoad:function(){y(!1),null==u||u()}}))};var g=r(6106),m=r(7723);function u(){var e,t,r="function"==typeof Symbol?Symbol:{},l=r.iterator||"@@iterator",n=r.toStringTag||"@@toStringTag";function a(r,l,n,a){var c=l&&l.prototype instanceof o?l:o,s=Object.create(c.prototype);return d(s,"_invoke",function(r,l,n){var a,o,c,s=0,g=n||[],m=!1,u={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t,r){return a=t,o=0,c=e,u.n=r,i}};function d(r,l){for(o=r,c=l,t=0;!m&&s&&!n&&t<g.length;t++){var n,a=g[t],d=u.p,h=a[2];r>3?(n=h===l)&&(c=a[(o=a[4])?5:(o=3,3)],a[4]=a[5]=e):a[0]<=d&&((n=r<2&&d<a[1])?(o=0,u.v=l,u.n=a[1]):d<h&&(n=r<3||a[0]>l||l>h)&&(a[4]=r,a[5]=l,u.n=h,o=0))}if(n||r>1)return i;throw m=!0,l}return function(n,g,h){if(s>1)throw TypeError("Generator is already running");for(m&&1===g&&d(g,h),o=g,c=h;(t=o<2?e:c)||!m;){a||(o?o<3?(o>1&&(u.n=-1),d(o,c)):u.n=c:u.v=c);try{if(s=2,a){if(o||(n="next"),t=a[n]){if(!(t=t.call(a,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,o<2&&(o=0)}else 1===o&&(t=a.return)&&t.call(a),o<2&&(c=TypeError("The iterator does not provide a '"+n+"' method"),o=1);a=e}else if((t=(m=u.n<0)?c:r.call(l,u))!==i)break}catch(t){a=e,o=1,c=t}finally{s=1}}return{value:t,done:m}}}(r,n,a),!0),s}var i={};function o(){}function c(){}function s(){}t=Object.getPrototypeOf;var g=[][l]?t(t([][l]())):(d(t={},l,function(){return this}),t),m=s.prototype=o.prototype=Object.create(g);function h(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,s):(e.__proto__=s,d(e,n,"GeneratorFunction")),e.prototype=Object.create(m),e}return c.prototype=s,d(m,"constructor",s),d(s,"constructor",c),c.displayName="GeneratorFunction",d(s,n,"GeneratorFunction"),d(m),d(m,n,"Generator"),d(m,l,function(){return this}),d(m,"toString",function(){return"[object Generator]"}),(u=function(){return{w:a,m:h}})()}function d(e,t,r,l){var n=Object.defineProperty;try{n({},"",{})}catch(e){n=0}d=function(e,t,r,l){function a(t,r){d(e,t,function(e){return this._invoke(t,r,e)})}t?n?n(e,t,{value:r,enumerable:!l,configurable:!l,writable:!l}):e[t]=r:(a("next",0),a("throw",1),a("return",2))},d(e,t,r,l)}const h=function(e){var t=e.hasErrors,r=e.onReFetch,n=e.isReFetching;if(!t)return null;var a=function(){var e=(0,l.A)(u().m(function e(){return u().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,r();case 1:return e.a(2)}},e)}));return function(){return e.apply(this,arguments)}}();return i().createElement("div",{className:"mb-4 p-3 rounded bg-amber-50 text-amber-800 text-sm border border-amber-200 flex items-center justify-between gap-4"},i().createElement("span",null,(0,m.__)("Some TikTok videos have invalid or missing play URLs.","nggallery")),i().createElement("button",{onClick:a,disabled:n,className:"flex items-center gap-1.5 shrink-0 px-2 py-1 rounded border border-green-600 bg-green-50 text-green-600 hover:bg-green-100 hover:border-green-700 disabled:opacity-50 disabled:cursor-not-allowed"},n?i().createElement("span",{className:"inline-block w-4 h-4 animate-spin rounded-full border-2 border-green-600 border-t-transparent"}):i().createElement(g.s3,{className:"w-4 h-4"}),i().createElement("span",null,(0,m.__)("Refetch","nggallery"))))};function f(){var e,t,r="function"==typeof Symbol?Symbol:{},l=r.iterator||"@@iterator",n=r.toStringTag||"@@toStringTag";function a(r,l,n,a){var c=l&&l.prototype instanceof o?l:o,s=Object.create(c.prototype);return p(s,"_invoke",function(r,l,n){var a,o,c,s=0,g=n||[],m=!1,u={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t,r){return a=t,o=0,c=e,u.n=r,i}};function d(r,l){for(o=r,c=l,t=0;!m&&s&&!n&&t<g.length;t++){var n,a=g[t],d=u.p,h=a[2];r>3?(n=h===l)&&(c=a[(o=a[4])?5:(o=3,3)],a[4]=a[5]=e):a[0]<=d&&((n=r<2&&d<a[1])?(o=0,u.v=l,u.n=a[1]):d<h&&(n=r<3||a[0]>l||l>h)&&(a[4]=r,a[5]=l,u.n=h,o=0))}if(n||r>1)return i;throw m=!0,l}return function(n,g,h){if(s>1)throw TypeError("Generator is already running");for(m&&1===g&&d(g,h),o=g,c=h;(t=o<2?e:c)||!m;){a||(o?o<3?(o>1&&(u.n=-1),d(o,c)):u.n=c:u.v=c);try{if(s=2,a){if(o||(n="next"),t=a[n]){if(!(t=t.call(a,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,o<2&&(o=0)}else 1===o&&(t=a.return)&&t.call(a),o<2&&(c=TypeError("The iterator does not provide a '"+n+"' method"),o=1);a=e}else if((t=(m=u.n<0)?c:r.call(l,u))!==i)break}catch(t){a=e,o=1,c=t}finally{s=1}}return{value:t,done:m}}}(r,n,a),!0),s}var i={};function o(){}function c(){}function s(){}t=Object.getPrototypeOf;var g=[][l]?t(t([][l]())):(p(t={},l,function(){return this}),t),m=s.prototype=o.prototype=Object.create(g);function u(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,s):(e.__proto__=s,p(e,n,"GeneratorFunction")),e.prototype=Object.create(m),e}return c.prototype=s,p(m,"constructor",s),p(s,"constructor",c),c.displayName="GeneratorFunction",p(s,n,"GeneratorFunction"),p(m),p(m,n,"Generator"),p(m,l,function(){return this}),p(m,"toString",function(){return"[object Generator]"}),(f=function(){return{w:a,m:u}})()}function p(e,t,r,l){var n=Object.defineProperty;try{n({},"",{})}catch(e){n=0}p=function(e,t,r,l){function a(t,r){p(e,t,function(e){return this._invoke(t,r,e)})}t?n?n(e,t,{value:r,enumerable:!l,configurable:!l,writable:!l}):e[t]=r:(a("next",0),a("throw",1),a("return",2))},p(e,t,r,l)}const y=function(e){var t=e.previewMode,r=e.onPreviewModeChange,o=e.url,u=e.title,d=e.height,p=e.showReFetchButton,y=void 0!==p&&p,b=e.onReFetchAndUpdateCache,w=e.isReFetching,v=void 0!==w&&w,x=e.onPreviewLoad,_=e.tiktokErrorNotice,E=e.customLoadingMessage,C=(0,a.useState)(0),N=(0,n.A)(C,2),k=N[0],P=N[1],I=(0,a.useRef)(""),O=(0,a.useMemo)(function(){return I.current!==o&&(I.current=o,P(function(e){return e+1})),"preview-".concat(k)},[o,k]),R=function(){var e=(0,l.A)(f().m(function e(){return f().w(function(e){for(;;)switch(e.p=e.n){case 0:if(!b){e.n=4;break}return e.p=1,e.n=2,b();case 2:P(function(e){return e+1}),e.n=4;break;case 3:e.p=3,e.v;case 4:return e.a(2)}},e,null,[[1,3]])}));return function(){return e.apply(this,arguments)}}();return i().createElement(i().Fragment,null,(null==_?void 0:_.hasErrors)&&b&&i().createElement(h,{hasErrors:_.hasErrors,onReFetch:R,isReFetching:v}),i().createElement("div",{className:"flex justify-between items-center mb-4"},i().createElement("h2",{className:"text-md font-medium"},u||(0,m.__)("Preview","nggallery")),i().createElement("div",{className:"flex items-center space-x-2"},i().createElement(c,{text:(0,m.__)("Desktop Preview","nggallery"),placement:"bottom"},i().createElement("button",{onClick:function(){return r("desktop")},className:"p-2 rounded ".concat("desktop"===t?"bg-gray-100":"hover:bg-gray-50")},i().createElement(g.eZ,{className:"w-5 h-5"}))),i().createElement(c,{text:(0,m.__)("Mobile Preview","nggallery"),placement:"bottom"},i().createElement("button",{onClick:function(){return r("mobile")},className:"p-2 rounded ".concat("mobile"===t?"bg-gray-100":"hover:bg-gray-50")},i().createElement(g.sq,{className:"w-5 h-5"}))),i().createElement(c,{text:(0,m.__)("Reload Preview","nggallery"),placement:"bottom"},i().createElement("button",{onClick:function(){P(function(e){return e+1})},className:"p-0 text-green-600 hover:text-green-700"},i().createElement(g.fN,{className:"w-4 h-4"}))),y&&b&&i().createElement(c,{text:(0,m.__)("Refetch and update cache","nggallery"),placement:"bottom"},i().createElement("button",{onClick:R,disabled:v,className:"p-0 text-green-600 hover:text-green-700 disabled:opacity-50 disabled:cursor-not-allowed"},v?i().createElement("span",{className:"inline-block w-4 h-4 animate-spin rounded-full border-2 border-green-600 border-t-transparent"}):i().createElement(g.s3,{className:"w-4 h-4"}))))),i().createElement("div",{className:"border rounded-lg overflow-hidden bg-gray-50 mx-auto transition-all duration-300 relative ".concat("mobile"===t?"max-w-sm":"w-full"),style:{height:"number"==typeof d?"".concat(d,"px"):d||"500px"}},i().createElement(s,{key:O,url:o,mode:t,title:u||(0,m.__)("Preview","nggallery"),onLoad:x,loadingMessage:E})))}},8376:(e,t,r)=>{r.d(t,{B:()=>o,a:()=>c});var l=r(6106),n=r(7723),a=r(1609),i=r.n(a),o=function(){return[{id:"images",label:(0,n.__)("Images","nggallery"),icon:i().createElement(l.xz,{className:"h-5 w-5"}),description:(0,n.__)("Add, Edit, Remove","nggallery")},{id:"customize",label:(0,n.__)("Customize","nggallery"),icon:i().createElement(l.SX,{className:"h-5 w-5"}),description:(0,n.__)("Layout & Settings","nggallery")},{id:"settings",label:(0,n.__)("Settings","nggallery"),icon:i().createElement(l.GR,{className:"h-5 w-5"}),description:(0,n.__)("Review & Configure","nggallery")}]},c=function(){return[{id:"photocrati-nextgen_basic_imagebrowser",name:(0,n.__)("ImageBrowser","nggallery"),icon:i().createElement("svg",{xmlns:"http://www.w3.org/2000/svg",className:"w-full h-full",viewBox:"0 0 120 98",fill:"currentColor"},i().createElement("rect",{x:"10",y:"12",width:"100",height:"52",fill:"currentColor"}),i().createElement("circle",{cx:"55",cy:"75",r:"3",fill:"currentColor"}),i().createElement("circle",{cx:"65",cy:"75",r:"3",fill:"currentColor"}),i().createElement("rect",{x:"40",y:"83",width:"40",height:"3",rx:"1.5",fill:"currentColor"})),isPro:!1},{id:"photocrati-nextgen_basic_tagcloud",name:(0,n.__)("TagCloud","nggallery"),icon:i().createElement("svg",{xmlns:"http://www.w3.org/2000/svg",className:"w-full h-full",viewBox:"0 0 120 98",fill:"currentColor"},i().createElement("rect",{x:"17",y:"16",width:"31",height:"6",rx:"2",fill:"currentColor"}),i().createElement("rect",{x:"85",y:"10",width:"15",height:"6",rx:"2",fill:"currentColor"}),i().createElement("rect",{x:"54",y:"25",width:"25",height:"6",rx:"2",fill:"currentColor"}),i().createElement("rect",{x:"87",y:"31",width:"25",height:"6",rx:"2",fill:"currentColor"}),i().createElement("rect",{x:"64",y:"53",width:"30",height:"6",rx:"2",fill:"currentColor"}),i().createElement("rect",{x:"8",y:"60",width:"18",height:"6",rx:"2",fill:"currentColor"}),i().createElement("rect",{x:"37",y:"69",width:"38",height:"6",rx:"2",fill:"currentColor"}),i().createElement("rect",{x:"91",y:"67",width:"18",height:"6",rx:"2",fill:"currentColor"}),i().createElement("rect",{x:"16",y:"82",width:"32",height:"6",rx:"2",fill:"currentColor"}),i().createElement("rect",{x:"14",y:"41",width:"53",height:"6",rx:"2",fill:"currentColor"})),isPro:!1},{id:"photocrati-nextgen_basic_thumbnails",name:(0,n.__)("Thumbnails","nggallery"),icon:i().createElement("svg",{xmlns:"http://www.w3.org/2000/svg",className:"w-full h-full",viewBox:"0 0 120 98"},i().createElement("rect",{x:"8",y:"12",width:"32",height:"22",fill:"currentColor"}),i().createElement("rect",{x:"44",y:"12",width:"32",height:"22",fill:"currentColor"}),i().createElement("rect",{x:"80",y:"12",width:"32",height:"22",fill:"currentColor"}),i().createElement("rect",{x:"8",y:"38",width:"32",height:"22",fill:"currentColor"}),i().createElement("rect",{x:"44",y:"38",width:"32",height:"22",fill:"currentColor"}),i().createElement("rect",{x:"80",y:"38",width:"32",height:"22",fill:"currentColor"}),i().createElement("rect",{x:"8",y:"64",width:"32",height:"22",fill:"currentColor"}),i().createElement("rect",{x:"44",y:"64",width:"32",height:"22",fill:"currentColor"}),i().createElement("rect",{x:"80",y:"64",width:"32",height:"22",fill:"currentColor"})),isPro:!1},{id:"photocrati-nextgen_basic_slideshow",name:(0,n.__)("Slideshow","nggallery"),icon:i().createElement("svg",{xmlns:"http://www.w3.org/2000/svg",className:"w-full h-full",viewBox:"0 0 120 98",fill:"currentColor"},i().createElement("rect",{x:"8",y:"18",width:"104",height:"62",fill:"currentColor"}),i().createElement("path",{d:"M55.0034 61V37L71.0034 48.3333L55.0034 61Z",fill:"white",fillOpacity:"0.5"})),isPro:!1},{id:"photocrati-nextgen_pro_film",name:(0,n.__)("Film","nggallery"),icon:i().createElement("svg",{xmlns:"http://www.w3.org/2000/svg",className:"w-full h-full",viewBox:"0 0 120 98",fill:"currentColor"},i().createElement("rect",{x:"8",y:"12",width:"32",height:"22",fill:"currentColor"}),i().createElement("rect",{x:"44",y:"12",width:"32",height:"22",fill:"currentColor"}),i().createElement("rect",{x:"80",y:"12",width:"32",height:"22",fill:"currentColor"}),i().createElement("rect",{x:"8",y:"38",width:"32",height:"22",fill:"currentColor"}),i().createElement("rect",{x:"44",y:"38",width:"32",height:"22",fill:"currentColor"}),i().createElement("rect",{x:"80",y:"38",width:"32",height:"22",fill:"currentColor"}),i().createElement("rect",{x:"8",y:"64",width:"32",height:"22",fill:"currentColor"}),i().createElement("rect",{x:"44",y:"64",width:"32",height:"22",fill:"currentColor"}),i().createElement("rect",{x:"80",y:"64",width:"32",height:"22",fill:"currentColor"}),i().createElement("rect",{x:"15",y:"14",width:"18",height:"18",fill:"white",fillOpacity:"0.5"}),i().createElement("rect",{x:"51",y:"40",width:"18",height:"18",fill:"white",fillOpacity:"0.5"}),i().createElement("rect",{x:"15",y:"66",width:"18",height:"18",fill:"white",fillOpacity:"0.5"}),i().createElement("rect",{x:"87",y:"66",width:"18",height:"18",fill:"white",fillOpacity:"0.5"}),i().createElement("rect",{x:"10",y:"42",width:"28",height:"14",fill:"white",fillOpacity:"0.5"}),i().createElement("rect",{x:"82",y:"42",width:"28",height:"14",fill:"white",fillOpacity:"0.5"}),i().createElement("rect",{x:"46",y:"68",width:"28",height:"14",fill:"white",fillOpacity:"0.5"}),i().createElement("rect",{x:"87",y:"14",width:"18",height:"18",fill:"white",fillOpacity:"0.5"}),i().createElement("rect",{x:"46",y:"16",width:"28",height:"14",fill:"white",fillOpacity:"0.5"})),isPro:!0},{id:"photocrati-nextgen_pro_mosaic",name:(0,n.__)("Mosaic","nggallery"),icon:i().createElement("svg",{xmlns:"http://www.w3.org/2000/svg",className:"w-full h-full",viewBox:"0 0 120 98",fill:"currentColor"},i().createElement("rect",{x:"8",y:"12",width:"64",height:"16",fill:"currentColor"}),i().createElement("rect",{x:"74",y:"12",width:"38",height:"16",fill:"currentColor"}),i().createElement("rect",{x:"8",y:"30",width:"36",height:"16",fill:"currentColor"}),i().createElement("rect",{x:"46",y:"30",width:"66",height:"16",fill:"currentColor"}),i().createElement("rect",{x:"8",y:"48",width:"50",height:"16",fill:"currentColor"}),i().createElement("rect",{x:"8",y:"66",width:"38",height:"20",fill:"currentColor"}),i().createElement("rect",{x:"48",y:"66",width:"18",height:"20",fill:"currentColor"}),i().createElement("rect",{x:"60",y:"48",width:"20",height:"16",fill:"currentColor"}),i().createElement("rect",{x:"82",y:"48",width:"30",height:"16",fill:"currentColor"}),i().createElement("rect",{x:"68",y:"66",width:"44",height:"20",fill:"currentColor"})),isPro:!0},{id:"photocrati-nextgen_pro_thumbnail_grid",name:(0,n.__)("Thumbnail Grid","nggallery"),icon:i().createElement("svg",{xmlns:"http://www.w3.org/2000/svg",className:"w-full h-full",viewBox:"0 0 120 98",fill:"currentColor"},i().createElement("rect",{x:"8",y:"12",width:"32",height:"22",fill:"currentColor"}),i().createElement("rect",{x:"44",y:"12",width:"32",height:"22",fill:"currentColor"}),i().createElement("rect",{x:"80",y:"12",width:"32",height:"22",fill:"currentColor"}),i().createElement("rect",{x:"8",y:"38",width:"32",height:"22",fill:"currentColor"}),i().createElement("rect",{x:"44",y:"38",width:"32",height:"22",fill:"currentColor"}),i().createElement("rect",{x:"80",y:"38",width:"32",height:"22",fill:"currentColor"}),i().createElement("rect",{x:"8",y:"64",width:"32",height:"22",fill:"currentColor"}),i().createElement("rect",{x:"44",y:"64",width:"32",height:"22",fill:"currentColor"}),i().createElement("rect",{x:"80",y:"64",width:"32",height:"22",fill:"currentColor"})),isPro:!0},{id:"photocrati-nextgen_pro_blog_gallery",name:(0,n.__)("Blog Style","nggallery"),icon:i().createElement("svg",{xmlns:"http://www.w3.org/2000/svg",className:"w-full h-full",viewBox:"0 0 120 98",fill:"currentColor"},i().createElement("rect",{x:"8",y:"12",width:"104",height:"52",fill:"currentColor"}),i().createElement("rect",{x:"8",y:"68",width:"104",height:"18",fill:"currentColor"})),isPro:!0},{id:"photocrati-nextgen_pro_imagebrowser",name:(0,n.__)("Pro ImageBrowser","nggallery"),icon:i().createElement("svg",{xmlns:"http://www.w3.org/2000/svg",className:"w-full h-full",viewBox:"0 0 120 98",fill:"currentColor"},i().createElement("rect",{x:"10",y:"12",width:"100",height:"52",fill:"currentColor"}),i().createElement("circle",{cx:"55",cy:"75",r:"3",fill:"currentColor"}),i().createElement("circle",{cx:"65",cy:"75",r:"3",fill:"currentColor"}),i().createElement("rect",{x:"40",y:"83",width:"40",height:"3",rx:"1.5",fill:"currentColor"})),isPro:!0},{id:"photocrati-nextgen_pro_sidescroll",name:(0,n.__)("Sidescroll","nggallery"),icon:i().createElement("svg",{xmlns:"http://www.w3.org/2000/svg",className:"w-full h-full",viewBox:"0 0 120 98",fill:"currentColor"},i().createElement("rect",{x:"8",y:"12",width:"104",height:"60",fill:"currentColor"}),i().createElement("rect",{x:"8",y:"78",width:"104",height:"8",fill:"currentColor"})),isPro:!0},{id:"photocrati-nextgen_pro_tile",name:(0,n.__)("Tile","nggallery"),icon:i().createElement("svg",{xmlns:"http://www.w3.org/2000/svg",className:"w-full h-full",viewBox:"0 0 120 98",fill:"currentColor"},i().createElement("rect",{x:"8",y:"10",width:"33",height:"13",fill:"currentColor"}),i().createElement("rect",{x:"44",y:"10",width:"30",height:"8",fill:"currentColor"}),i().createElement("rect",{x:"8",y:"27",width:"33",height:"13",fill:"currentColor"}),i().createElement("rect",{x:"8",y:"44",width:"33",height:"44",fill:"currentColor"}),i().createElement("rect",{x:"44",y:"22",width:"30",height:"26",fill:"currentColor"}),i().createElement("rect",{x:"77",y:"10",width:"35",height:"38",fill:"currentColor"}),i().createElement("rect",{x:"44",y:"72",width:"30",height:"16",fill:"currentColor"}),i().createElement("rect",{x:"77",y:"72",width:"35",height:"16",fill:"currentColor"}),i().createElement("rect",{x:"44",y:"52",width:"68",height:"16",fill:"currentColor"})),isPro:!0},{id:"photocrati-nextgen_pro_masonry",name:(0,n.__)("Masonry","nggallery"),icon:i().createElement("svg",{xmlns:"http://www.w3.org/2000/svg",className:"w-full h-full",viewBox:"0 0 120 98",fill:"currentColor"},i().createElement("rect",{x:"8",y:"12",width:"32",height:"31",fill:"currentColor"}),i().createElement("rect",{x:"44",y:"12",width:"32",height:"15",fill:"currentColor"}),i().createElement("rect",{x:"8",y:"47",width:"32",height:"24",fill:"currentColor"}),i().createElement("rect",{x:"80",y:"12",width:"32",height:"34",fill:"currentColor"}),i().createElement("rect",{x:"44",y:"52",width:"32",height:"26",fill:"currentColor"}),i().createElement("rect",{x:"44",y:"31",width:"32",height:"17",fill:"currentColor"}),i().createElement("rect",{x:"80",y:"72",width:"32",height:"14",fill:"currentColor"}),i().createElement("rect",{x:"80",y:"50",width:"32",height:"18",fill:"currentColor"})),isPro:!0},{id:"imagely-pro-search",name:(0,n.__)("Search","nggallery"),icon:i().createElement("svg",{xmlns:"http://www.w3.org/2000/svg",className:"w-full h-full",viewBox:"0 0 120 98",fill:"currentColor"},i().createElement("rect",{x:"16",y:"44",width:"60",height:"10",fill:"currentColor"}),i().createElement("rect",{x:"82",y:"44",width:"22",height:"10",fill:"currentColor"})),isPro:!0},{id:"photocrati-nextgen_pro_horizontal_filmstrip",name:(0,n.__)("Horizontal Filmstrip","nggallery"),icon:i().createElement("svg",{xmlns:"http://www.w3.org/2000/svg",className:"w-full h-full",viewBox:"0 0 120 98",fill:"currentColor"},i().createElement("rect",{x:"8",y:"12",width:"104",height:"60",fill:"currentColor"}),i().createElement("rect",{x:"8",y:"78",width:"104",height:"8",fill:"currentColor"})),isPro:!0},{id:"photocrati-nextgen_pro_slideshow",name:(0,n.__)("Pro Slideshow","nggallery"),icon:i().createElement("svg",{xmlns:"http://www.w3.org/2000/svg",className:"w-full h-full",viewBox:"0 0 120 98",fill:"currentColor"},i().createElement("rect",{x:"8",y:"18",width:"104",height:"62",fill:"currentColor"}),i().createElement("path",{d:"M55.0034 61V37L71.0034 48.3333L55.0034 61Z",fill:"white",fillOpacity:"0.5"})),isPro:!0}]}},1548:(e,t,r)=>{r.d(t,{Y:()=>d});var l=r(7899),n=r(5909),a=r(6415),i=r(7723),o=[{value:"bounce",label:(0,i.__)("Bounce","nggallery")},{value:"headShake",label:(0,i.__)("Headshake","nggallery")},{value:"jackInTheBox",label:(0,i.__)("Jack in the box","nggallery")},{value:"jello",label:(0,i.__)("Jello","nggallery")},{value:"rollIn",label:(0,i.__)("Roll in","nggallery")},{value:"rubberBand",label:(0,i.__)("Rubberband","nggallery")},{value:"shakeX",label:(0,i.__)("Shake X","nggallery")},{value:"shakeY",label:(0,i.__)("Shake Y","nggallery")},{value:"swing",label:(0,i.__)("Swing","nggallery")},{value:"tada",label:(0,i.__)("Tada","nggallery")},{value:"wobble",label:(0,i.__)("Wobble","nggallery")},{value:"heartBeat",label:(0,i.__)("Heartbeat","nggallery")},{value:"backInDown",label:(0,i.__)("Back in down","nggallery")},{value:"backInLeft",label:(0,i.__)("Back in left","nggallery")},{value:"backInRight",label:(0,i.__)("Back in right","nggallery")},{value:"backInUp",label:(0,i.__)("Back in up","nggallery")},{value:"bounceIn",label:(0,i.__)("Bounce in","nggallery")},{value:"bounceInDown",label:(0,i.__)("Bounce in down","nggallery")},{value:"bounceInLeft",label:(0,i.__)("Bounce in left","nggallery")},{value:"bounceInRight",label:(0,i.__)("Bounce in right","nggallery")},{value:"bounceInUp",label:(0,i.__)("Bounce in up","nggallery")},{value:"fadeIn",label:(0,i.__)("Fade in","nggallery")},{value:"fadeInDown",label:(0,i.__)("Fade in down","nggallery")},{value:"fadeInDownBig",label:(0,i.__)("Fade in down big","nggallery")},{value:"fadeInLeft",label:(0,i.__)("Fade in left","nggallery")},{value:"fadeInLeftBig",label:(0,i.__)("Fade in left big","nggallery")},{value:"fadeInRight",label:(0,i.__)("Fade in right","nggallery")},{value:"fadeInRightBig",label:(0,i.__)("Fade in right big","nggallery")},{value:"fadeInUp",label:(0,i.__)("Fade in up","nggallery")},{value:"fadeInUpBig",label:(0,i.__)("Fade in up big","nggallery")},{value:"fadeInTopLeft",label:(0,i.__)("Fade in top left","nggallery")},{value:"fadeInTopRight",label:(0,i.__)("Fade in top right","nggallery")},{value:"fadeInBottomLeft",label:(0,i.__)("Fade in bottom left","nggallery")},{value:"fadeInBottomRight",label:(0,i.__)("Fade in bottom right","nggallery")},{value:"flip",label:(0,i.__)("Flip","nggallery")},{value:"flipInX",label:(0,i.__)("Flip in X","nggallery")},{value:"flipInY",label:(0,i.__)("Flip in Y","nggallery")},{value:"lightSpeedInRight",label:(0,i.__)("Lightspeed in right","nggallery")},{value:"lightSpeedInLeft",label:(0,i.__)("Lightspeed in left","nggallery")},{value:"rotateIn",label:(0,i.__)("Rotate in","nggallery")},{value:"rotateInDownLeft",label:(0,i.__)("Rotate in down left","nggallery")},{value:"rotateInDownRight",label:(0,i.__)("Rotate in down right","nggallery")},{value:"rotateInUpLeft",label:(0,i.__)("Rotate in up left","nggallery")},{value:"rotateInUpRight",label:(0,i.__)("Rotate in up right","nggallery")},{value:"zoomIn",label:(0,i.__)("Zoom in","nggallery")},{value:"zoomInDown",label:(0,i.__)("Zoom in down","nggallery")},{value:"zoomInLeft",label:(0,i.__)("Zoom in left","nggallery")},{value:"zoomInRight",label:(0,i.__)("Zoom in right","nggallery")},{value:"zoomInUp",label:(0,i.__)("Zoom in up","nggallery")},{value:"slideInDown",label:(0,i.__)("Slide in down","nggallery")},{value:"slideInLeft",label:(0,i.__)("Slide in left","nggallery")},{value:"slideInRight",label:(0,i.__)("Slide in right","nggallery")},{value:"slideInUp",label:(0,i.__)("Slide in up","nggallery")}],c=r(9836),s=r(2549),g=r(7143),m=r(1609),u=r.n(m),d=function(e){var t,r,m=e.formState,d=e.handleInputChange,h=e.hidePagination,f=void 0!==h&&h,p=(0,g.useDispatch)(s.EF);return"pro"===s.WA||"plus"===s.WA?u().createElement(u().Fragment,null,u().createElement(a.A,{id:"animate_images_enable",name:"animate_images_enable",checked:m.animate_images_enable,onChange:d,label:(0,i.__)("Animate Images","nggallery")}),(0,c._w)(m.animate_images_enable)&&u().createElement("div",{className:"ml-6 space-y-4"},u().createElement(l.A,{id:"animate_images_style",name:"animate_images_style",value:null!==(t=m.animate_images_style)&&void 0!==t?t:"wobble",onChange:d,label:(0,i.__)("Animation Type","nggallery")},o.map(function(e){return u().createElement("option",{key:e.value,value:e.value},e.label)})),u().createElement(n.A,{type:"number",name:"animate_images_duration",value:m.animate_images_duration,onChange:d,label:(0,i.__)("Duration (ms)","nggallery")}),u().createElement(n.A,{type:"number",name:"animate_images_delay",value:m.animate_images_delay,onChange:d,label:(0,i.__)("Delay (ms)","nggallery")})),f?null:u().createElement(u().Fragment,null,u().createElement(a.A,{id:"animate_pagination_enable",name:"animate_pagination_enable",checked:m.animate_pagination_enable,onChange:d,label:(0,i.__)("Animate Pagination","nggallery")}),(0,c._w)(m.animate_pagination_enable)&&u().createElement("div",{className:"ml-6 space-y-4"},u().createElement(l.A,{id:"animate_pagination_style",name:"animate_pagination_style",value:null!==(r=m.animate_pagination_style)&&void 0!==r?r:"flipInX",onChange:d,label:(0,i.__)("Animation Type","nggallery")},o.map(function(e){return u().createElement("option",{key:e.value,value:e.value},e.label)})),u().createElement(n.A,{type:"number",name:"animate_pagination_duration",value:m.animate_pagination_duration,onChange:d,label:(0,i.__)("Duration (ms)","nggallery")}),u().createElement(n.A,{type:"number",name:"animate_pagination_delay",value:m.animate_pagination_delay,onChange:d,label:(0,i.__)("Delay (ms)","nggallery")})))):u().createElement("div",{className:"relative"},u().createElement("div",{className:"opacity-50 pointer-events-none"},u().createElement(a.A,{id:"animate_images_enable",name:"animate_images_enable",checked:!1,onChange:function(){},label:(0,i.__)("Animate Images","nggallery")})),u().createElement("div",{className:"absolute inset-0 cursor-pointer",onClick:function(){p.setActiveModal("upgrade",{feature:"animations features"})},title:(0,i.__)("Requires NextGEN Gallery Pro","nggallery")}))}},5258:(e,t,r)=>{r.d(t,{A:()=>c});var l=r(6106),n=r(380),a=r(7723),i=r(1609),o=r.n(i);const c=function(){var e=(0,n.c)();return o().createElement("div",{className:"flex items-center justify-center h-full p-8"},o().createElement("div",{className:"text-center max-w-md"},o().createElement("div",{className:"flex items-center justify-center w-10 h-10 mx-auto mb-4"},o().createElement(l.$O,{className:"w-12 h-12"})),o().createElement("h3",{className:"text-xl font-semibold text-gray-800 mb-4"},(0,a.__)("This layout is a Pro Feature","nggallery")),o().createElement("p",{className:"text-gray-600 text-center mb-0"},(0,a.__)("We're sorry, using this layout is not available on your plan.","nggallery")),o().createElement("p",{className:"text-gray-600 text-center mb-6"},(0,a.__)("Please upgrade to the Pro plan to unlock this and all our awesome features.","nggallery")),o().createElement("div",{className:"relative mb-8 flex justify-center items-center"},o().createElement(l.IP,{className:"absolute -left-0 -top-4 w-12 h-12 flex-shrink-0"}),o().createElement("a",{href:e,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center justify-center bg-green-500 text-white text-center text-lg py-3 px-6 rounded-lg font-medium hover:bg-green-600 transition-colors"},(0,a.__)("Upgrade to Pro","nggallery"),o().createElement(l.gX,{className:"w-4 h-4 ml-2 flex-shrink-0"}))),o().createElement("div",{className:"bg-[#F0FDE6] border border-green-100 px-6 py-4 rounded-lg"},o().createElement("div",{className:"flex items-center justify-center"},o().createElement(l.xe,{className:"w-8 h-8 mr-2 flex-shrink-0"}),o().createElement("p",{className:"text-gray-700 text-sm text-left"},(0,a.__)("Imagely lite users get","nggallery")," ",o().createElement("strong",{className:"text-green-600"},(0,a.__)("50% off","nggallery"))," ",(0,a.__)("the regular price, automatically applied at checkout!","nggallery"))))))}},9667:(e,t,r)=>{r.d(t,{b:()=>a});var l=r(3453),n=r(6087),a=function(e){var t=e.type,r=e.item,a=e.itemId,i=e.includeEcommerce,o=void 0!==i&&i,c=e.cacheKey;return(0,n.useMemo)(function(){var e,n,i,s;if(!r)return(null===(s=window.imagelyApp)||void 0===s?void 0:s.home_url)||window.location.origin;var g=new URLSearchParams;if(g.append("ngg-preview","1"),g.append("nonce_preview",(null===(e=window.imagelyApp)||void 0===e?void 0:e.nonce_preview)||""),r.display_type&&g.append("display_type",r.display_type),"gallery"===t?(r.gid&&g.append("gallery_ids",String(r.gid)),o&&("1"===r.is_ecommerce_enabled||1===r.is_ecommerce_enabled||!0===r.is_ecommerce_enabled)&&g.append("is_ecommerce_enabled","1")):"album"===t&&(g.append("src","albums"),a&&g.append("ids",String(a)),c&&g.append("_cache",c)),r.display_type&&null!==(n=r.display_type_settings)&&void 0!==n&&n[r.display_type]){var m=r.display_type_settings[r.display_type];Object.entries(m).forEach(function(e){var t=(0,l.A)(e,2),r=t[0],n=t[1];if(null!=n){var a="boolean"==typeof n?n?"1":"0":String(n);g.append(r,a)}})}var u=(null===(i=window.imagelyApp)||void 0===i?void 0:i.home_url)||window.location.origin;return"".concat(u,"?").concat(g.toString())},[t,null==r?void 0:r.display_type,null==r?void 0:r.display_type_settings,"gallery"===t?null==r?void 0:r.gid:a,o&&"gallery"===t?null==r?void 0:r.is_ecommerce_enabled:void 0,c])}}}]);