/*! For license information please see index.js.LICENSE.txt */
(()=>{var e={35:(e,t,a)=>{"use strict";var n=a(959),l={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},r={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},i={};function o(e){return n.isMemo(e)?s:i[e.$$typeof]||l}i[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},i[n.Memo]=s;var c=Object.defineProperty,u=Object.getOwnPropertyNames,m=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,g=Object.prototype;e.exports=function e(t,a,n){if("string"!=typeof a){if(g){var l=p(a);l&&l!==g&&e(t,l,n)}var s=u(a);m&&(s=s.concat(m(a)));for(var i=o(t),_=o(a),f=0;f<s.length;++f){var h=s[f];if(!(r[h]||n&&n[h]||_&&_[h]||i&&i[h])){var y=d(a,h);try{c(t,h,y)}catch(e){}}}}return t}},186:(e,t,a)=>{"use strict";var n=a(985);function l(){}function r(){}r.resetWarningCache=l,e.exports=function(){function e(e,t,a,l,r,s){if(s!==n){var i=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw i.name="Invariant Violation",i}}function t(){return e}e.isRequired=e;var a={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:r,resetWarningCache:l};return a.PropTypes=a,a}},736:(e,t,a)=>{e.exports=a(186)()},985:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},843:(e,t)=>{"use strict";var a="function"==typeof Symbol&&Symbol.for,n=a?Symbol.for("react.element"):60103,l=a?Symbol.for("react.portal"):60106,r=a?Symbol.for("react.fragment"):60107,s=a?Symbol.for("react.strict_mode"):60108,i=a?Symbol.for("react.profiler"):60114,o=a?Symbol.for("react.provider"):60109,c=a?Symbol.for("react.context"):60110,u=a?Symbol.for("react.async_mode"):60111,m=a?Symbol.for("react.concurrent_mode"):60111,d=a?Symbol.for("react.forward_ref"):60112,p=a?Symbol.for("react.suspense"):60113,g=a?Symbol.for("react.suspense_list"):60120,_=a?Symbol.for("react.memo"):60115,f=a?Symbol.for("react.lazy"):60116,h=a?Symbol.for("react.block"):60121,y=a?Symbol.for("react.fundamental"):60117,E=a?Symbol.for("react.responder"):60118,b=a?Symbol.for("react.scope"):60119;function v(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case u:case m:case r:case i:case s:case p:return e;default:switch(e=e&&e.$$typeof){case c:case d:case f:case _:case o:return e;default:return t}}case l:return t}}}function A(e){return v(e)===m}t.AsyncMode=u,t.ConcurrentMode=m,t.ContextConsumer=c,t.ContextProvider=o,t.Element=n,t.ForwardRef=d,t.Fragment=r,t.Lazy=f,t.Memo=_,t.Portal=l,t.Profiler=i,t.StrictMode=s,t.Suspense=p,t.isAsyncMode=function(e){return A(e)||v(e)===u},t.isConcurrentMode=A,t.isContextConsumer=function(e){return v(e)===c},t.isContextProvider=function(e){return v(e)===o},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return v(e)===d},t.isFragment=function(e){return v(e)===r},t.isLazy=function(e){return v(e)===f},t.isMemo=function(e){return v(e)===_},t.isPortal=function(e){return v(e)===l},t.isProfiler=function(e){return v(e)===i},t.isStrictMode=function(e){return v(e)===s},t.isSuspense=function(e){return v(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===m||e===i||e===s||e===p||e===g||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===_||e.$$typeof===o||e.$$typeof===c||e.$$typeof===d||e.$$typeof===y||e.$$typeof===E||e.$$typeof===b||e.$$typeof===h)},t.typeOf=v},959:(e,t,a)=>{"use strict";e.exports=a(843)},945:e=>{e.exports=function(e,t,a,n){var l=a?a.call(n,e,t):void 0;if(void 0!==l)return!!l;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var r=Object.keys(e),s=Object.keys(t);if(r.length!==s.length)return!1;for(var i=Object.prototype.hasOwnProperty.bind(t),o=0;o<r.length;o++){var c=r[o];if(!i(c))return!1;var u=e[c],m=t[c];if(!1===(l=a?a.call(n,u,m,c):void 0)||void 0===l&&u!==m)return!1}return!0}},916:(e,t,a)=>{"use strict";a.r(t),a.d(t,{ServerStyleSheet:()=>Be,StyleSheetConsumer:()=>se,StyleSheetContext:()=>re,StyleSheetManager:()=>de,ThemeConsumer:()=>Re,ThemeContext:()=>Fe,ThemeProvider:()=>Le,__PRIVATE__:()=>ze,createGlobalStyle:()=>qe,css:()=>Ae,default:()=>Ve,isStyledComponent:()=>A,keyframes:()=>Ue,useTheme:()=>We,version:()=>k,withTheme:()=>He});var n=a(959),l=a(609),r=a.n(l),s=a(945),i=a.n(s);const o=function(e){function t(e,n,o,c,d){for(var p,g,_,f,b,A=0,w=0,k=0,N=0,S=0,O=0,R=_=p=0,M=0,D=0,G=0,j=0,q=o.length,U=q-1,B="",H="",W="",z="";M<q;){if(g=o.charCodeAt(M),M===U&&0!==w+N+k+A&&(0!==w&&(g=47===w?10:47),N=k=A=0,q++,U++),0===w+N+k+A){if(M===U&&(0<D&&(B=B.replace(m,"")),0<B.trim().length)){switch(g){case 32:case 9:case 59:case 13:case 10:break;default:B+=o.charAt(M)}g=59}switch(g){case 123:for(p=(B=B.trim()).charCodeAt(0),_=1,j=++M;M<q;){switch(g=o.charCodeAt(M)){case 123:_++;break;case 125:_--;break;case 47:switch(g=o.charCodeAt(M+1)){case 42:case 47:e:{for(R=M+1;R<U;++R)switch(o.charCodeAt(R)){case 47:if(42===g&&42===o.charCodeAt(R-1)&&M+2!==R){M=R+1;break e}break;case 10:if(47===g){M=R+1;break e}}M=R}}break;case 91:g++;case 40:g++;case 34:case 39:for(;M++<U&&o.charCodeAt(M)!==g;);}if(0===_)break;M++}if(_=o.substring(j,M),0===p&&(p=(B=B.replace(u,"").trim()).charCodeAt(0)),64===p){switch(0<D&&(B=B.replace(m,"")),g=B.charCodeAt(1)){case 100:case 109:case 115:case 45:D=n;break;default:D=T}if(j=(_=t(n,D,_,g,d+1)).length,0<F&&(b=i(3,_,D=a(T,B,G),n,C,x,j,g,d,c),B=D.join(""),void 0!==b&&0===(j=(_=b.trim()).length)&&(g=0,_="")),0<j)switch(g){case 115:B=B.replace(v,s);case 100:case 109:case 45:_=B+"{"+_+"}";break;case 107:_=(B=B.replace(h,"$1 $2"))+"{"+_+"}",_=1===I||2===I&&r("@"+_,3)?"@-webkit-"+_+"@"+_:"@"+_;break;default:_=B+_,112===c&&(H+=_,_="")}else _=""}else _=t(n,a(n,B,G),_,c,d+1);W+=_,_=G=D=R=p=0,B="",g=o.charCodeAt(++M);break;case 125:case 59:if(1<(j=(B=(0<D?B.replace(m,""):B).trim()).length))switch(0===R&&(p=B.charCodeAt(0),45===p||96<p&&123>p)&&(j=(B=B.replace(" ",":")).length),0<F&&void 0!==(b=i(1,B,n,e,C,x,H.length,c,d,c))&&0===(j=(B=b.trim()).length)&&(B="\0\0"),p=B.charCodeAt(0),g=B.charCodeAt(1),p){case 0:break;case 64:if(105===g||99===g){z+=B+o.charAt(M);break}default:58!==B.charCodeAt(j-1)&&(H+=l(B,p,g,B.charCodeAt(2)))}G=D=R=p=0,B="",g=o.charCodeAt(++M)}}switch(g){case 13:case 10:47===w?w=0:0===1+p&&107!==c&&0<B.length&&(D=1,B+="\0"),0<F*L&&i(0,B,n,e,C,x,H.length,c,d,c),x=1,C++;break;case 59:case 125:if(0===w+N+k+A){x++;break}default:switch(x++,f=o.charAt(M),g){case 9:case 32:if(0===N+A+w)switch(S){case 44:case 58:case 9:case 32:f="";break;default:32!==g&&(f=" ")}break;case 0:f="\\0";break;case 12:f="\\f";break;case 11:f="\\v";break;case 38:0===N+w+A&&(D=G=1,f="\f"+f);break;case 108:if(0===N+w+A+P&&0<R)switch(M-R){case 2:112===S&&58===o.charCodeAt(M-3)&&(P=S);case 8:111===O&&(P=O)}break;case 58:0===N+w+A&&(R=M);break;case 44:0===w+k+N+A&&(D=1,f+="\r");break;case 34:case 39:0===w&&(N=N===g?0:0===N?g:N);break;case 91:0===N+w+k&&A++;break;case 93:0===N+w+k&&A--;break;case 41:0===N+w+A&&k--;break;case 40:0===N+w+A&&(0===p&&(2*S+3*O==533||(p=1)),k++);break;case 64:0===w+k+N+A+R+_&&(_=1);break;case 42:case 47:if(!(0<N+A+k))switch(w){case 0:switch(2*g+3*o.charCodeAt(M+1)){case 235:w=47;break;case 220:j=M,w=42}break;case 42:47===g&&42===S&&j+2!==M&&(33===o.charCodeAt(j+2)&&(H+=o.substring(j,M+1)),f="",w=0)}}0===w&&(B+=f)}O=S,S=g,M++}if(0<(j=H.length)){if(D=n,0<F&&void 0!==(b=i(2,H,D,e,C,x,j,c,d,c))&&0===(H=b).length)return z+H+W;if(H=D.join(",")+"{"+H+"}",0!=I*P){switch(2!==I||r(H,2)||(P=0),P){case 111:H=H.replace(E,":-moz-$1")+H;break;case 112:H=H.replace(y,"::-webkit-input-$1")+H.replace(y,"::-moz-$1")+H.replace(y,":-ms-input-$1")+H}P=0}}return z+H+W}function a(e,t,a){var l=t.trim().split(_);t=l;var r=l.length,s=e.length;switch(s){case 0:case 1:var i=0;for(e=0===s?"":e[0]+" ";i<r;++i)t[i]=n(e,t[i],a).trim();break;default:var o=i=0;for(t=[];i<r;++i)for(var c=0;c<s;++c)t[o++]=n(e[c]+" ",l[i],a).trim()}return t}function n(e,t,a){var n=t.charCodeAt(0);switch(33>n&&(n=(t=t.trim()).charCodeAt(0)),n){case 38:return t.replace(f,"$1"+e.trim());case 58:return e.trim()+t.replace(f,"$1"+e.trim());default:if(0<1*a&&0<t.indexOf("\f"))return t.replace(f,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function l(e,t,a,n){var s=e+";",i=2*t+3*a+4*n;if(944===i){e=s.indexOf(":",9)+1;var o=s.substring(e,s.length-1).trim();return o=s.substring(0,e).trim()+o+";",1===I||2===I&&r(o,1)?"-webkit-"+o+o:o}if(0===I||2===I&&!r(s,1))return s;switch(i){case 1015:return 97===s.charCodeAt(10)?"-webkit-"+s+s:s;case 951:return 116===s.charCodeAt(3)?"-webkit-"+s+s:s;case 963:return 110===s.charCodeAt(5)?"-webkit-"+s+s:s;case 1009:if(100!==s.charCodeAt(4))break;case 969:case 942:return"-webkit-"+s+s;case 978:return"-webkit-"+s+"-moz-"+s+s;case 1019:case 983:return"-webkit-"+s+"-moz-"+s+"-ms-"+s+s;case 883:if(45===s.charCodeAt(8))return"-webkit-"+s+s;if(0<s.indexOf("image-set(",11))return s.replace(S,"$1-webkit-$2")+s;break;case 932:if(45===s.charCodeAt(4))switch(s.charCodeAt(5)){case 103:return"-webkit-box-"+s.replace("-grow","")+"-webkit-"+s+"-ms-"+s.replace("grow","positive")+s;case 115:return"-webkit-"+s+"-ms-"+s.replace("shrink","negative")+s;case 98:return"-webkit-"+s+"-ms-"+s.replace("basis","preferred-size")+s}return"-webkit-"+s+"-ms-"+s+s;case 964:return"-webkit-"+s+"-ms-flex-"+s+s;case 1023:if(99!==s.charCodeAt(8))break;return"-webkit-box-pack"+(o=s.substring(s.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+s+"-ms-flex-pack"+o+s;case 1005:return p.test(s)?s.replace(d,":-webkit-")+s.replace(d,":-moz-")+s:s;case 1e3:switch(t=(o=s.substring(13).trim()).indexOf("-")+1,o.charCodeAt(0)+o.charCodeAt(t)){case 226:o=s.replace(b,"tb");break;case 232:o=s.replace(b,"tb-rl");break;case 220:o=s.replace(b,"lr");break;default:return s}return"-webkit-"+s+"-ms-"+o+s;case 1017:if(-1===s.indexOf("sticky",9))break;case 975:switch(t=(s=e).length-10,i=(o=(33===s.charCodeAt(t)?s.substring(0,t):s).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|o.charCodeAt(7))){case 203:if(111>o.charCodeAt(8))break;case 115:s=s.replace(o,"-webkit-"+o)+";"+s;break;case 207:case 102:s=s.replace(o,"-webkit-"+(102<i?"inline-":"")+"box")+";"+s.replace(o,"-webkit-"+o)+";"+s.replace(o,"-ms-"+o+"box")+";"+s}return s+";";case 938:if(45===s.charCodeAt(5))switch(s.charCodeAt(6)){case 105:return o=s.replace("-items",""),"-webkit-"+s+"-webkit-box-"+o+"-ms-flex-"+o+s;case 115:return"-webkit-"+s+"-ms-flex-item-"+s.replace(w,"")+s;default:return"-webkit-"+s+"-ms-flex-line-pack"+s.replace("align-content","").replace(w,"")+s}break;case 973:case 989:if(45!==s.charCodeAt(3)||122===s.charCodeAt(4))break;case 931:case 953:if(!0===N.test(e))return 115===(o=e.substring(e.indexOf(":")+1)).charCodeAt(0)?l(e.replace("stretch","fill-available"),t,a,n).replace(":fill-available",":stretch"):s.replace(o,"-webkit-"+o)+s.replace(o,"-moz-"+o.replace("fill-",""))+s;break;case 962:if(s="-webkit-"+s+(102===s.charCodeAt(5)?"-ms-"+s:"")+s,211===a+n&&105===s.charCodeAt(13)&&0<s.indexOf("transform",10))return s.substring(0,s.indexOf(";",27)+1).replace(g,"$1-webkit-$2")+s}return s}function r(e,t){var a=e.indexOf(1===t?":":"{"),n=e.substring(0,3!==t?a:10);return a=e.substring(a+1,e.length-1),R(2!==t?n:n.replace(k,"$1"),a,t)}function s(e,t){var a=l(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return a!==t+";"?a.replace(A," or ($1)").substring(4):"("+t+")"}function i(e,t,a,n,l,r,s,i,o,u){for(var m,d=0,p=t;d<F;++d)switch(m=O[d].call(c,e,p,a,n,l,r,s,i,o,u)){case void 0:case!1:case!0:case null:break;default:p=m}if(p!==t)return p}function o(e){return void 0!==(e=e.prefix)&&(R=null,e?"function"!=typeof e?I=1:(I=2,R=e):I=0),o}function c(e,a){var n=e;if(33>n.charCodeAt(0)&&(n=n.trim()),n=[n],0<F){var l=i(-1,a,n,n,C,x,0,0,0,0);void 0!==l&&"string"==typeof l&&(a=l)}var r=t(T,n,a,0,0);return 0<F&&void 0!==(l=i(-2,r,n,n,C,x,r.length,0,0,0))&&(r=l),P=0,x=C=1,r}var u=/^\0+/g,m=/[\0\r\f]/g,d=/: */g,p=/zoo|gra/,g=/([,: ])(transform)/g,_=/,\r+?/g,f=/([\t\r\n ])*\f?&/g,h=/@(k\w+)\s*(\S*)\s*/,y=/::(place)/g,E=/:(read-only)/g,b=/[svh]\w+-[tblr]{2}/,v=/\(\s*(.*)\s*\)/g,A=/([\s\S]*?);/g,w=/-self|flex-/g,k=/[^]*?(:[rp][el]a[\w-]+)[^]*/,N=/stretch|:\s*\w+\-(?:conte|avail)/,S=/([^-])(image-set\()/,x=1,C=1,P=0,I=1,T=[],O=[],F=0,R=null,L=0;return c.use=function e(t){switch(t){case void 0:case null:F=O.length=0;break;default:if("function"==typeof t)O[F++]=t;else if("object"==typeof t)for(var a=0,n=t.length;a<n;++a)e(t[a]);else L=0|!!t}return e},c.set=o,void 0!==e&&o(e),c},c={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function u(e){var t=Object.create(null);return function(a){return void 0===t[a]&&(t[a]=e(a)),t[a]}}var m=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,d=u((function(e){return m.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),p=a(35),g=a.n(p);function _(){return(_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e}).apply(this,arguments)}var f=function(e,t){for(var a=[e[0]],n=0,l=t.length;n<l;n+=1)a.push(t[n],e[n+1]);return a},h=function(e){return null!==e&&"object"==typeof e&&"[object Object]"===(e.toString?e.toString():Object.prototype.toString.call(e))&&!(0,n.typeOf)(e)},y=Object.freeze([]),E=Object.freeze({});function b(e){return"function"==typeof e}function v(e){return e.displayName||e.name||"Component"}function A(e){return e&&"string"==typeof e.styledComponentId}var w="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",k="5.3.11",N="undefined"!=typeof window&&"HTMLElement"in window,S=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&(void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY&&"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY)),x={};function C(e){for(var t=arguments.length,a=new Array(t>1?t-1:0),n=1;n<t;n++)a[n-1]=arguments[n];throw new Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(a.length>0?" Args: "+a.join(", "):""))}var P=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,a=0;a<e;a++)t+=this.groupSizes[a];return t},t.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var a=this.groupSizes,n=a.length,l=n;e>=l;)(l<<=1)<0&&C(16,""+e);this.groupSizes=new Uint32Array(l),this.groupSizes.set(a),this.length=l;for(var r=n;r<l;r++)this.groupSizes[r]=0}for(var s=this.indexOfGroup(e+1),i=0,o=t.length;i<o;i++)this.tag.insertRule(s,t[i])&&(this.groupSizes[e]++,s++)},t.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],a=this.indexOfGroup(e),n=a+t;this.groupSizes[e]=0;for(var l=a;l<n;l++)this.tag.deleteRule(a)}},t.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var a=this.groupSizes[e],n=this.indexOfGroup(e),l=n+a,r=n;r<l;r++)t+=this.tag.getRule(r)+"/*!sc*/\n";return t},e}(),I=new Map,T=new Map,O=1,F=function(e){if(I.has(e))return I.get(e);for(;T.has(O);)O++;var t=O++;return I.set(e,t),T.set(t,e),t},R=function(e){return T.get(e)},L=function(e,t){t>=O&&(O=t+1),I.set(e,t),T.set(t,e)},M="style["+w+'][data-styled-version="5.3.11"]',D=new RegExp("^"+w+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),G=function(e,t,a){for(var n,l=a.split(","),r=0,s=l.length;r<s;r++)(n=l[r])&&e.registerName(t,n)},j=function(e,t){for(var a=(t.textContent||"").split("/*!sc*/\n"),n=[],l=0,r=a.length;l<r;l++){var s=a[l].trim();if(s){var i=s.match(D);if(i){var o=0|parseInt(i[1],10),c=i[2];0!==o&&(L(c,o),G(e,c,i[3]),e.getTag().insertRules(o,n)),n.length=0}else n.push(s)}}},q=function(){return a.nc},U=function(e){var t=document.head,a=e||t,n=document.createElement("style"),l=function(e){for(var t=e.childNodes,a=t.length;a>=0;a--){var n=t[a];if(n&&1===n.nodeType&&n.hasAttribute(w))return n}}(a),r=void 0!==l?l.nextSibling:null;n.setAttribute(w,"active"),n.setAttribute("data-styled-version","5.3.11");var s=q();return s&&n.setAttribute("nonce",s),a.insertBefore(n,r),n},B=function(){function e(e){var t=this.element=U(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,a=0,n=t.length;a<n;a++){var l=t[a];if(l.ownerNode===e)return l}C(17)}(t),this.length=0}var t=e.prototype;return t.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},t.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},t.getRule=function(e){var t=this.sheet.cssRules[e];return void 0!==t&&"string"==typeof t.cssText?t.cssText:""},e}(),H=function(){function e(e){var t=this.element=U(e);this.nodes=t.childNodes,this.length=0}var t=e.prototype;return t.insertRule=function(e,t){if(e<=this.length&&e>=0){var a=document.createTextNode(t),n=this.nodes[e];return this.element.insertBefore(a,n||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),W=function(){function e(e){this.rules=[],this.length=0}var t=e.prototype;return t.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},t.deleteRule=function(e){this.rules.splice(e,1),this.length--},t.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),z=N,V={isServer:!N,useCSSOMInjection:!S},J=function(){function e(e,t,a){void 0===e&&(e=E),void 0===t&&(t={}),this.options=_({},V,{},e),this.gs=t,this.names=new Map(a),this.server=!!e.isServer,!this.server&&N&&z&&(z=!1,function(e){for(var t=document.querySelectorAll(M),a=0,n=t.length;a<n;a++){var l=t[a];l&&"active"!==l.getAttribute(w)&&(j(e,l),l.parentNode&&l.parentNode.removeChild(l))}}(this))}e.registerId=function(e){return F(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,a){return void 0===a&&(a=!0),new e(_({},this.options,{},t),this.gs,a&&this.names||void 0)},t.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.getTag=function(){return this.tag||(this.tag=(a=(t=this.options).isServer,n=t.useCSSOMInjection,l=t.target,e=a?new W(l):n?new B(l):new H(l),new P(e)));var e,t,a,n,l},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(F(e),this.names.has(e))this.names.get(e).add(t);else{var a=new Set;a.add(t),this.names.set(e,a)}},t.insertRules=function(e,t,a){this.registerName(e,t),this.getTag().insertRules(F(e),a)},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.clearRules=function(e){this.getTag().clearGroup(F(e)),this.clearNames(e)},t.clearTag=function(){this.tag=void 0},t.toString=function(){return function(e){for(var t=e.getTag(),a=t.length,n="",l=0;l<a;l++){var r=R(l);if(void 0!==r){var s=e.names.get(r),i=t.getGroup(l);if(s&&i&&s.size){var o=w+".g"+l+'[id="'+r+'"]',c="";void 0!==s&&s.forEach((function(e){e.length>0&&(c+=e+",")})),n+=""+i+o+'{content:"'+c+'"}/*!sc*/\n'}}}return n}(this)},e}(),Q=/(a)(d)/gi,Y=function(e){return String.fromCharCode(e+(e>25?39:97))};function Z(e){var t,a="";for(t=Math.abs(e);t>52;t=t/52|0)a=Y(t%52)+a;return(Y(t%52)+a).replace(Q,"$1-$2")}var $=function(e,t){for(var a=t.length;a;)e=33*e^t.charCodeAt(--a);return e},X=function(e){return $(5381,e)};function K(e){for(var t=0;t<e.length;t+=1){var a=e[t];if(b(a)&&!A(a))return!1}return!0}var ee=X("5.3.11"),te=function(){function e(e,t,a){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===a||a.isStatic)&&K(e),this.componentId=t,this.baseHash=$(ee,t),this.baseStyle=a,J.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,a){var n=this.componentId,l=[];if(this.baseStyle&&l.push(this.baseStyle.generateAndInjectStyles(e,t,a)),this.isStatic&&!a.hash)if(this.staticRulesId&&t.hasNameForId(n,this.staticRulesId))l.push(this.staticRulesId);else{var r=be(this.rules,e,t,a).join(""),s=Z($(this.baseHash,r)>>>0);if(!t.hasNameForId(n,s)){var i=a(r,"."+s,void 0,n);t.insertRules(n,s,i)}l.push(s),this.staticRulesId=s}else{for(var o=this.rules.length,c=$(this.baseHash,a.hash),u="",m=0;m<o;m++){var d=this.rules[m];if("string"==typeof d)u+=d;else if(d){var p=be(d,e,t,a),g=Array.isArray(p)?p.join(""):p;c=$(c,g+m),u+=g}}if(u){var _=Z(c>>>0);if(!t.hasNameForId(n,_)){var f=a(u,"."+_,void 0,n);t.insertRules(n,_,f)}l.push(_)}}return l.join(" ")},e}(),ae=/^\s*\/\/.*$/gm,ne=[":","[",".","#"];function le(e){var t,a,n,l,r=void 0===e?E:e,s=r.options,i=void 0===s?E:s,c=r.plugins,u=void 0===c?y:c,m=new o(i),d=[],p=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(a,n,l,r,s,i,o,c,u,m){switch(a){case 1:if(0===u&&64===n.charCodeAt(0))return e(n+";"),"";break;case 2:if(0===c)return n+"/*|*/";break;case 3:switch(c){case 102:case 112:return e(l[0]+n),"";default:return n+(0===m?"/*|*/":"")}case-2:n.split("/*|*/}").forEach(t)}}}((function(e){d.push(e)})),g=function(e,n,r){return 0===n&&-1!==ne.indexOf(r[a.length])||r.match(l)?e:"."+t};function _(e,r,s,i){void 0===i&&(i="&");var o=e.replace(ae,""),c=r&&s?s+" "+r+" { "+o+" }":o;return t=i,a=r,n=new RegExp("\\"+a+"\\b","g"),l=new RegExp("(\\"+a+"\\b){2,}"),m(s||!r?"":r,c)}return m.use([].concat(u,[function(e,t,l){2===e&&l.length&&l[0].lastIndexOf(a)>0&&(l[0]=l[0].replace(n,g))},p,function(e){if(-2===e){var t=d;return d=[],t}}])),_.hash=u.length?u.reduce((function(e,t){return t.name||C(15),$(e,t.name)}),5381).toString():"",_}var re=r().createContext(),se=re.Consumer,ie=r().createContext(),oe=(ie.Consumer,new J),ce=le();function ue(){return(0,l.useContext)(re)||oe}function me(){return(0,l.useContext)(ie)||ce}function de(e){var t=(0,l.useState)(e.stylisPlugins),a=t[0],n=t[1],s=ue(),o=(0,l.useMemo)((function(){var t=s;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target]),c=(0,l.useMemo)((function(){return le({options:{prefix:!e.disableVendorPrefixes},plugins:a})}),[e.disableVendorPrefixes,a]);return(0,l.useEffect)((function(){i()(a,e.stylisPlugins)||n(e.stylisPlugins)}),[e.stylisPlugins]),r().createElement(re.Provider,{value:o},r().createElement(ie.Provider,{value:c},e.children))}var pe=function(){function e(e,t){var a=this;this.inject=function(e,t){void 0===t&&(t=ce);var n=a.name+t.hash;e.hasNameForId(a.id,n)||e.insertRules(a.id,n,t(a.rules,n,"@keyframes"))},this.toString=function(){return C(12,String(a.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=ce),this.name+e.hash},e}(),ge=/([A-Z])/,_e=/([A-Z])/g,fe=/^ms-/,he=function(e){return"-"+e.toLowerCase()};function ye(e){return ge.test(e)?e.replace(_e,he).replace(fe,"-ms-"):e}var Ee=function(e){return null==e||!1===e||""===e};function be(e,t,a,n){if(Array.isArray(e)){for(var l,r=[],s=0,i=e.length;s<i;s+=1)""!==(l=be(e[s],t,a,n))&&(Array.isArray(l)?r.push.apply(r,l):r.push(l));return r}return Ee(e)?"":A(e)?"."+e.styledComponentId:b(e)?"function"!=typeof(o=e)||o.prototype&&o.prototype.isReactComponent||!t?e:be(e(t),t,a,n):e instanceof pe?a?(e.inject(a,n),e.getName(n)):e:h(e)?function e(t,a){var n,l,r=[];for(var s in t)t.hasOwnProperty(s)&&!Ee(t[s])&&(Array.isArray(t[s])&&t[s].isCss||b(t[s])?r.push(ye(s)+":",t[s],";"):h(t[s])?r.push.apply(r,e(t[s],s)):r.push(ye(s)+": "+(n=s,(null==(l=t[s])||"boolean"==typeof l||""===l?"":"number"!=typeof l||0===l||n in c||n.startsWith("--")?String(l).trim():l+"px")+";")));return a?[a+" {"].concat(r,["}"]):r}(e):e.toString();var o}var ve=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function Ae(e){for(var t=arguments.length,a=new Array(t>1?t-1:0),n=1;n<t;n++)a[n-1]=arguments[n];return b(e)||h(e)?ve(be(f(y,[e].concat(a)))):0===a.length&&1===e.length&&"string"==typeof e[0]?e:ve(be(f(e,a)))}new Set;var we=function(e,t,a){return void 0===a&&(a=E),e.theme!==a.theme&&e.theme||t||a.theme},ke=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Ne=/(^-|-$)/g;function Se(e){return e.replace(ke,"-").replace(Ne,"")}var xe=function(e){return Z(X(e)>>>0)};function Ce(e){return"string"==typeof e&&!0}var Pe=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},Ie=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function Te(e,t,a){var n=e[a];Pe(t)&&Pe(n)?Oe(n,t):e[a]=t}function Oe(e){for(var t=arguments.length,a=new Array(t>1?t-1:0),n=1;n<t;n++)a[n-1]=arguments[n];for(var l=0,r=a;l<r.length;l++){var s=r[l];if(Pe(s))for(var i in s)Ie(i)&&Te(e,s[i],i)}return e}var Fe=r().createContext(),Re=Fe.Consumer;function Le(e){var t=(0,l.useContext)(Fe),a=(0,l.useMemo)((function(){return function(e,t){return e?b(e)?e(t):Array.isArray(e)||"object"!=typeof e?C(8):t?_({},t,{},e):e:C(14)}(e.theme,t)}),[e.theme,t]);return e.children?r().createElement(Fe.Provider,{value:a},e.children):null}var Me={};function De(e,t,a){var n=A(e),s=!Ce(e),i=t.attrs,o=void 0===i?y:i,c=t.componentId,u=void 0===c?function(e,t){var a="string"!=typeof e?"sc":Se(e);Me[a]=(Me[a]||0)+1;var n=a+"-"+xe("5.3.11"+a+Me[a]);return t?t+"-"+n:n}(t.displayName,t.parentComponentId):c,m=t.displayName,p=void 0===m?function(e){return Ce(e)?"styled."+e:"Styled("+v(e)+")"}(e):m,f=t.displayName&&t.componentId?Se(t.displayName)+"-"+t.componentId:t.componentId||u,h=n&&e.attrs?Array.prototype.concat(e.attrs,o).filter(Boolean):o,w=t.shouldForwardProp;n&&e.shouldForwardProp&&(w=t.shouldForwardProp?function(a,n,l){return e.shouldForwardProp(a,n,l)&&t.shouldForwardProp(a,n,l)}:e.shouldForwardProp);var k,N=new te(a,f,n?e.componentStyle:void 0),S=N.isStatic&&0===o.length,x=function(e,t){return function(e,t,a,n){var r=e.attrs,s=e.componentStyle,i=e.defaultProps,o=e.foldedComponentIds,c=e.shouldForwardProp,u=e.styledComponentId,m=e.target,p=function(e,t,a){void 0===e&&(e=E);var n=_({},t,{theme:e}),l={};return a.forEach((function(e){var t,a,r,s=e;for(t in b(s)&&(s=s(n)),s)n[t]=l[t]="className"===t?(a=l[t],r=s[t],a&&r?a+" "+r:a||r):s[t]})),[n,l]}(we(t,(0,l.useContext)(Fe),i)||E,t,r),g=p[0],f=p[1],h=function(e,t,a){var n=ue(),l=me();return t?e.generateAndInjectStyles(E,n,l):e.generateAndInjectStyles(a,n,l)}(s,n,g),y=a,v=f.$as||t.$as||f.as||t.as||m,A=Ce(v),w=f!==t?_({},t,{},f):t,k={};for(var N in w)"$"!==N[0]&&"as"!==N&&("forwardedAs"===N?k.as=w[N]:(c?c(N,d,v):!A||d(N))&&(k[N]=w[N]));return t.style&&f.style!==t.style&&(k.style=_({},t.style,{},f.style)),k.className=Array.prototype.concat(o,u,h!==u?h:null,t.className,f.className).filter(Boolean).join(" "),k.ref=y,(0,l.createElement)(v,k)}(k,e,t,S)};return x.displayName=p,(k=r().forwardRef(x)).attrs=h,k.componentStyle=N,k.displayName=p,k.shouldForwardProp=w,k.foldedComponentIds=n?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):y,k.styledComponentId=f,k.target=n?e.target:e,k.withComponent=function(e){var n=t.componentId,l=function(e,t){if(null==e)return{};var a,n,l={},r=Object.keys(e);for(n=0;n<r.length;n++)a=r[n],t.indexOf(a)>=0||(l[a]=e[a]);return l}(t,["componentId"]),r=n&&n+"-"+(Ce(e)?e:Se(v(e)));return De(e,_({},l,{attrs:h,componentId:r}),a)},Object.defineProperty(k,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=n?Oe({},e.defaultProps,t):t}}),Object.defineProperty(k,"toString",{value:function(){return"."+k.styledComponentId}}),s&&g()(k,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),k}var Ge=function(e){return function e(t,a,l){if(void 0===l&&(l=E),!(0,n.isValidElementType)(a))return C(1,String(a));var r=function(){return t(a,l,Ae.apply(void 0,arguments))};return r.withConfig=function(n){return e(t,a,_({},l,{},n))},r.attrs=function(n){return e(t,a,_({},l,{attrs:Array.prototype.concat(l.attrs,n).filter(Boolean)}))},r}(De,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach((function(e){Ge[e]=Ge(e)}));var je=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=K(e),J.registerId(this.componentId+1)}var t=e.prototype;return t.createStyles=function(e,t,a,n){var l=n(be(this.rules,t,a,n).join(""),""),r=this.componentId+e;a.insertRules(r,r,l)},t.removeStyles=function(e,t){t.clearRules(this.componentId+e)},t.renderStyles=function(e,t,a,n){e>2&&J.registerId(this.componentId+e),this.removeStyles(e,a),this.createStyles(e,t,a,n)},e}();function qe(e){for(var t=arguments.length,a=new Array(t>1?t-1:0),n=1;n<t;n++)a[n-1]=arguments[n];var s=Ae.apply(void 0,[e].concat(a)),i="sc-global-"+xe(JSON.stringify(s)),o=new je(s,i);function c(e){var t=ue(),a=me(),n=(0,l.useContext)(Fe),r=(0,l.useRef)(t.allocateGSInstance(i)).current;return t.server&&u(r,e,t,n,a),(0,l.useLayoutEffect)((function(){if(!t.server)return u(r,e,t,n,a),function(){return o.removeStyles(r,t)}}),[r,e,t,n,a]),null}function u(e,t,a,n,l){if(o.isStatic)o.renderStyles(e,x,a,l);else{var r=_({},t,{theme:we(t,n,c.defaultProps)});o.renderStyles(e,r,a,l)}}return r().memo(c)}function Ue(e){for(var t=arguments.length,a=new Array(t>1?t-1:0),n=1;n<t;n++)a[n-1]=arguments[n];var l=Ae.apply(void 0,[e].concat(a)).join(""),r=xe(l);return new pe(r,l)}var Be=function(){function e(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString();if(!t)return"";var a=q();return"<style "+[a&&'nonce="'+a+'"',w+'="true"','data-styled-version="5.3.11"'].filter(Boolean).join(" ")+">"+t+"</style>"},this.getStyleTags=function(){return e.sealed?C(2):e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)return C(2);var a=((t={})[w]="",t["data-styled-version"]="5.3.11",t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),n=q();return n&&(a.nonce=n),[r().createElement("style",_({},a,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new J({isServer:!0}),this.sealed=!1}var t=e.prototype;return t.collectStyles=function(e){return this.sealed?C(2):r().createElement(de,{sheet:this.instance},e)},t.interleaveWithNodeStream=function(e){return C(3)},e}(),He=function(e){var t=r().forwardRef((function(t,a){var n=(0,l.useContext)(Fe),s=e.defaultProps,i=we(t,n,s);return r().createElement(e,_({},t,{theme:i,ref:a}))}));return g()(t,e),t.displayName="WithTheme("+v(e)+")",t},We=function(){return(0,l.useContext)(Fe)},ze={StyleSheet:J,masterSheet:oe};const Ve=Ge},852:function(e,t,a){"use strict";var n=this&&this.__awaiter||function(e,t,a,n){return new(a||(a=Promise))((function(l,r){function s(e){try{o(n.next(e))}catch(e){r(e)}}function i(e){try{o(n.throw(e))}catch(e){r(e)}}function o(e){var t;e.done?l(e.value):(t=e.value,t instanceof a?t:new a((function(e){e(t)}))).then(s,i)}o((n=n.apply(e,t||[])).next())}))},l=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=a(723),s=l(a(916)),i=l(a(609)),o=a(87),c=a(218),u=a(310),m=s.default.div`
width: calc( ( 100% / ${e=>e.columns} ) - 20px );
display: flex;
flex-direction: column;
justify-content: space-between;
@media ( min-width: 100rem ) {
img {
position: ${e=>3===e.columns?"initial":"absolute"} !important;
}
div.column-name {
margin: ${e=>3===e.columns?"0px":"148px"} !important;
}
}
@media ( max-width: 100rem ) {
width: calc( ( 100% / 2 ) - 20px );
}
@media ( max-width: 48.9375rem ) {
width: calc( ( 100% / 1 ) - 20px );
}
h3 {
margin: 0 12px 12px 0;
}
img {
width: 128px;
}
`;t.default=({author:e,author_profile:t,name:a=(0,r.__)("No name availabe","wp-plugin-suggestions"),slug:l="",placeholder:s=u.ImagePlaceholder,icons:d,homepage:p,short_description:g=(0,r.__)("No description availabe","wp-plugin-suggestions"),rating:_=0,num_ratings:f=0,active_installs:h=0,pluginStatus:y="install",installWordPressPlugin:E,activateSitePlugin:b,tested:v,last_updated:A,ShowName:w=!0,ShowLinks:k=!0,ShowDescription:N=!0,ShowCardFooter:S=!0,ShowRating:x=!0,ShowUpdated:C=!0,ShowDownloaded:P=!0,ShowCompatibility:I=!0,columns:T=3})=>{var O;const[F,R]=(0,o.useState)(y),[L,M]=(0,o.useState)(!1),{fullStars:D,halfStars:G,emptyStars:j}=(0,u.getStars)(_),q=e.replace(/<\/?a[^>]*>/g,"");return(0,o.useEffect)((()=>{R(y)}),[y]),i.default.createElement(m,{className:"plugin-card",columns:3},i.default.createElement("div",{className:"plugin-card-top"},i.default.createElement("div",{className:"name column-name"},i.default.createElement("img",{src:null!==(O=(null==d?void 0:d.default)||(null==d?void 0:d["1x"])||(null==d?void 0:d["2x"]))&&void 0!==O?O:s,className:"plugin-icon",alt:a}),w&&i.default.createElement("h3",null,a),N&&i.default.createElement("div",null,i.default.createElement("p",null,g),i.default.createElement("p",{className:"authors"},i.default.createElement("cite",null,(0,r.__)("By","wp-plugin-suggestions")," ",i.default.createElement("a",{target:"_blank",href:p||t,rel:"noreferrer"},q))))),k&&i.default.createElement("div",{className:"action-links"},i.default.createElement("ul",{className:"plugin-action-buttons"},i.default.createElement("li",null,L?i.default.createElement(c.Spinner,null):i.default.createElement("button",{disabled:"active"===F,className:"button button-primary",onClick:e=>{e.preventDefault(),n(void 0,void 0,void 0,(function*(){if("active"!==F){if(M(!0),"install"===F){const e=yield E(l);R(e.status)}else{const e=yield b(l);R(e.status)}M(!1)}}))},"aria-label":(0,r.sprintf)((0,r.__)("Install %s","wp-plugin-suggestions"),a)},u.LABELS[F])),i.default.createElement("li",null,i.default.createElement("a",{href:`https://wordpress.org/plugins/${l}`,"aria-label":(0,r.sprintf)((0,r.__)("More info %s","wp-plugin-suggestions"),a),target:"_blank",rel:"noreferrer"},(0,r.__)("More Details","wp-plugin-suggestions")))))),S&&i.default.createElement("div",{className:"plugin-card-bottom"},x&&i.default.createElement("div",{className:"vers column-rating"},i.default.createElement("div",{className:"star-rating"},i.default.createElement("span",{className:"screen-reader-text"},(0,r.sprintf)((0,r.__)("5.0 rating based on %s ratings","wp-plugin-suggestions"),f)),Array.from({length:D},((e,t)=>i.default.createElement("div",{key:`full_star_${t}`,className:"star star-full","aria-hidden":"true"}))),Array.from({length:G},((e,t)=>i.default.createElement("div",{key:`half_star_${t}`,className:"star star-half","aria-hidden":"true"}))),Array.from({length:j},((e,t)=>i.default.createElement("div",{key:`empty_star_${t}`,className:"star star-empty","aria-hidden":"true"})))),i.default.createElement("span",{className:"num-ratings","aria-hidden":"true"},"(",f,")")),C&&i.default.createElement("div",{className:"column-updated"},i.default.createElement("strong",null,(0,r.sprintf)((0,r.__)("Last Updated: %s","wp-plugin-suggestions"),(0,u.getLastUpdate)(A)))),P&&i.default.createElement("div",{className:"column-downloaded"},h.toLocaleString("ARG"),"+"," ",(0,r.__)("Active Installations","wp-plugin-suggestions")),I&&i.default.createElement("div",{className:"column-compatibility"},i.default.createElement("span",{className:"compatibility-compatible"},i.default.createElement("strong",null,(0,r.__)("Compatible","wp-plugin-suggestions")),(0,r.sprintf)((0,r.__)(" with the version %s","wp-plugin-suggestions"),v)))))}},90:function(e,t,a){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,a,n){void 0===n&&(n=a);var l=Object.getOwnPropertyDescriptor(t,a);l&&!("get"in l?!t.__esModule:l.writable||l.configurable)||(l={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,n,l)}:function(e,t,a,n){void 0===n&&(n=a),e[n]=t[a]}),l=this&&this.__exportStar||function(e,t){for(var a in e)"default"===a||Object.prototype.hasOwnProperty.call(t,a)||n(t,e,a)},r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=r(a(916)),i=r(a(609)),o=r(a(852)),c=a(218),u=a(384);a(69);const m=a(310);l(a(69),t);const d=s.default.div`
position: relative;
max-width: 1200px;
display: flex;
flex-wrap: wrap;
margin: 25px 40px 0px 20px;
`,p=s.default.div`
display: flex;
justify-content: center;
align-items: center;
font-size: 1.25em;
& svg {
width: 50px;
height: 50px;
}
h3 {
margin: 1em 0 !important;
}
`;t.default=e=>{const t=e.authorName||"",{wordpressPlugins:a,isResolvingWordPressPlugins:n,installWordPressPlugin:l}=(0,u.useWordPressPlugins)(t),{isResolvingSitePlugins:r,sitePlugins:s,activateSitePlugin:g}=(0,u.useSitePlugins)();return n||r?i.default.createElement(c.Spinner,null):0!==a.length?i.default.createElement(d,{className:"wrap"},a.map((t=>{var a;const n=(null===(a=s.find((e=>e.name===t.slug)))||void 0===a?void 0:a.status)||"install";return i.default.createElement(o.default,Object.assign({key:t.slug},t,e,{installWordPressPlugin:l,pluginStatus:n,activateSitePlugin:g}))}))):i.default.createElement("div",{style:{maxWidth:"1200px"}},i.default.createElement(p,null,m.WordpressIcon,i.default.createElement("h3",null,"Plugins not found")))}},218:function(e,t,a){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Spinner=void 0;const l=a(723),r=n(a(609));t.Spinner=()=>r.default.createElement("p",null,r.default.createElement("span",{style:{visibility:"visible"},className:"spinner"}),(0,l.__)("Loading…","wp-plugin-suggestions"))},310:function(e,t,a){"use strict";var n=this&&this.__awaiter||function(e,t,a,n){return new(a||(a=Promise))((function(l,r){function s(e){try{o(n.next(e))}catch(e){r(e)}}function i(e){try{o(n.throw(e))}catch(e){r(e)}}function o(e){var t;e.done?l(e.value):(t=e.value,t instanceof a?t:new a((function(e){e(t)}))).then(s,i)}o((n=n.apply(e,t||[])).next())}))},l=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getStars=t.WordpressIcon=t.ImagePlaceholder=t.getWordPressDirectoryURL=t.getLastUpdate=t.LABELS=t.apiFetch=void 0;const r=l(a(609)),s=a(723),i=l(a(455));t.apiFetch=function(e){return n(this,void 0,void 0,(function*(){return yield(0,i.default)(e).then((e=>{if(e.code)throw new Error(`${e.code}: ${(null==e?void 0:e.message)||"Unknown"}`);return e})).catch((e=>{throw new Error(JSON.stringify(e))}))}))},t.LABELS={install:(0,s.__)("Install","wp-plugin-suggestions"),inactive:(0,s.__)("Active","wp-plugin-suggestions"),active:(0,s.__)("Active","wp-plugin-suggestions")},t.getLastUpdate=function(e){const t=new Date(e.split(" ")[0]),a=(new Date).getTime()-t.getTime(),n=Math.floor(a/864e5),l=parseInt(n.toString());return 0===l?(0,s.__)("Today","wp-plugin-suggestions"):l>30?(0,s.sprintf)((0,s.__)("%s Months Ago","wp-plugin-suggestions"),parseInt(Math.floor(l/30).toString())):(0,s.sprintf)((0,s.__)("%s Days Ago","wp-plugin-suggestions"),l)},t.getWordPressDirectoryURL=e=>`https://wordpress.org/plugin/${e}`,t.ImagePlaceholder="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAYEBQUFBAYFBQUHBgYHCQ8KCQgICRMNDgsPFhMXFxYTFRUYGyMeGBohGhUVHikfISQlJygnGB0rLismLiMmJyb/2wBDAQYHBwkICRIKChImGRUZJiYmJiYmJiYmJiYmJiYmJiYmJiYmJiYmJiYmJiYmJiYmJiYmJiYmJiYmJiYmJiYmJib/wgARCAEAAQADAREAAhEBAxEB/8QAHAABAAIDAQEBAAAAAAAAAAAAAAEHAgYIBAMF/8QAGwEBAAIDAQEAAAAAAAAAAAAAAAIGAwUHBAH/2gAMAwEAAhADEAAAANR7xynH6AAAAAAAAAAAAAAGfxh9JRAAAAAAAAAAAAAAExlAlEAAAAAAAAAAAAAATGUCUQAAAAAAAAAAAAABMZQJRAAAAAAAAAAAAAAExlAlEAAAAAAAAAAAAAATGUCUQAAAAAAAAAAAAABMZQJRAAAAAA9HlzXHSLPHxTl5rHw9OEAAAAACYygSiAAAAAPT5M/SnK75vmj2o0Df6fm3qdF8/pwgAAAACYygSiAAAAB6vJ6OlOVXve9JtQBoG/0/N3U6L5vThAAAAAmMoEogAAAD0+T0dK8rve96PagADQd9qObOqUTz+nCAAAAJjKBKIAAAHq8no6U5Xe970e1AAAGg7/Uc2dTonn9OEAAACYygSiAAAPX48/SvK77vOk2gAAAGs+/wfj+7z/oYsox+/IkApm61ivbXoRMZQJRAAA9Xj9HS3Kr5vOl2gAAAGrbDwfPJHbdXsQABS92q9HdFp4ExlAlEAAeny5+l+UX3edLtAABTdzrX0j9uCnWTU9lr/llhuOo2YAAqS3V2gemUp9+ATGUCUQABdvPLfdlHtIAApq6Vqi+j0x8lclBtVgVzcbrptoAAKus+h566dScM2MATGUCUQABbdHs9/c8uIAAq+z6Dnnp1Kzi6N5derGru6AAFX2fQc89OpWGbGABMZQJRAAGeGfRXMLxZlZ3oAArC0aH6wnZVa3YAAq+0aDnrplJ+eeAAAmMoEogAAfTBl6K5fdrLre9AAAAAFXWnQc9dMpWGbGAABMZQJRAAAH0wZOieYXezK1vQAAABVlp0HPnTKThmgAAAJjKBKIAAAGeDJ0TzK72bWN6AAAKstOh586ZSMM0AAAAJjKBKIAAAAzw5OiOY3azqxvgABVdq0HPvS6VhmxgAAACYygSiAAAAB9MOTobmN2s+sb4AVXa6/wA+9KpeGbGAAAABMZQJRAAAAAGeHJ0NzK62hV9+KotteoDpFMwzYwAAAABMZQJRAAAAAAyxTs6o2Hz5cdb23QPvwAAAAACYygSiAAAAAAAAAAAAAAJjKBKIAAAAAAAAAAAAAAmMoEogAAAAAAAAAAAAACYygSiAAAAAAAAAAAAAAJjKBKIAAAAAAAAAAAAAAmMoEogAAAAAAAAAAAAACYyy+MPoAAAAAAAAAAAAAAZ/H//EAD0QAAIBAgMGBAQDBwEJAAAAAAECAwQFABFSBgcxM3GRIDBBURMiQNIQEhcUMlViksHRCCNCVnOBscLh4v/aAAgBAQABPwBmb8zfMeJxm+o98ZvqPfGb6j3xm+o98ZvqPfGb6j3xm+o98ZvqPfGb6j3xm+o98ZvqPfGb6j3xm+o98ZvqPfGb6j3xm+o98ZvqPfGb6j3xm+o98ZvqPfGb6j3xm+o98ZvqPfGb6j3xm+o98ZvqPfGb6j3xm+o98ZvqPfGb6j3wjN+YfMeIweY3U/XrzF6jB5jdT9evMXqMHmN1P168xeoweY3U/XrzF6jB5jdT9evMXqMHmN1P168xeoweY3U+dQUdVX1UdHRwvPUSsFjjTixxs7uVV4BLf7k6StxgpPvIP/bG0e5UJA0uz1xeWVeEFX9wxV0tRRVUlHVwtDURMVeNxkVPsR5y8xeoweY3U+bbaKquNbFQ0MLT1EzBY40GZJxu32EpNk6H482U91mUCabQNCfjvL2Dptq6M1dIEgu8K5RS+ko0Piuo6qhq5aOshaCoiYq8bjIqfNXmL1GDzG6nzLdQ1VxrYaGhheeomYLHGnEk43b7C0myVD8abKe6zLlNPoGlPDvL2CptqqQ1dIEgu8K5RS+kg0Piuo6mgrJaOshaCogYrJGwyII8xeYvUYPMbqfLttDVXKsioaGF6ipmb8scaDMk/wBh6k8AMbt9hKXZKh+PNlPdplAmm0DSnj3l7B021dIaqmygu8K5RS6xofFdR1NBWS0dZC0FRCxWSN+KkeWvMXqMHmN1PlWygq7nXRUNDTvPUzN+WONOJ/wPUngBjdxsJSbJUXxXynusygTT6BoTyd5WwdNtXSGrpQkF3hX/AGUusaHxX0VTb6uSjrYXgnhYq8bjIg+UvMXqMHmN1Pk2yhq7pXRUNBA9RUzN+VI0GZ/9AcSeAGN3Gw1HsjQ/FfKe6zKBNPpGlPYeVtbtKljhipqaA112rPlo6JD80je59lHqcW7YG3VKSV21aLeLxUt+eeYswRPZEAIyUY/TnYr+AQd3/wA4/TnYr+AQd3/zj9Odif8Ah6H+t/8AOP042I/gMP8AW/3Y/TjYj+Aw/wBb/dj9ONiP4DD/AFv92N58+yFJUtZtmbTAJEbKorFZmyOhMz3P4rzF6jB5jdT5FsoKu510NBQwtPUzMFjiTif7AepPADG7rYej2RofiPlPdJ1Hx59I0J7L5W2G08VhihpoIDXXat+Sjok/elb3Psoxshs1LbpZrxeZxW36t50/+7EvpFH7KPHvd3iGm+Ps7YZ8p/3KuqQ8v3jX+b38C8xeoweY3U+O30VTca2Gio4WnnmYJHGvEnG7jYej2SoPzvlPdJ1Hx5//AAT2Xx72d4/7EJrBYJs6n9yqq0PK90Q6sbpd44uKxWC/TZVwASmqnPP9kY6/w2z2qi2eiipKaE194rflo6JOLn3PsoxsZsxNbpZr3e5hW3+s503pCvpGnsB497e8MWlJbBZJs7i3PnU8gewOrwrzF6jB5jdT4/8AT1ZaVqauv7qGnEv7LH/IMgzd8x497O8f9i+Ps9YJsqr9yqq1PK90Q6vwBIxsdvVrxY2tdXRT3O9DKOiK8ZydfTGxeys1vmlv1+lFbtBWc2b0hXQnj3qbw4rBE9ns7q92dcnf0ph92HdpGZ5GLu5JZmJJYk5kknifCvMXqMHmN1Pj3B7SJRXGp2eqnCLWkSwf8wcV6kePenu7hv8AE93s6LHdkGbp6VI+7EsTxSPDKjRyxsVdHBBUg5EEHgcUsE9VUxU1PA008rBURASWJOQAAxuv2Bg2YphX16rNeJl+ZvSAaV/ufHvU3iJYYns9ndXuzjJ39KYfdiR3lkeSR2klkYs7uSSxJzJJPHxLzF6jB5jdT443aJ0kjcxyIQVZSQVIOYIIxur2/h2ipVtdzdYrvEvQVA1D+b3Hj3p7vIdoIHu9pRYrvGubJ6VI+7G6zYCLZulW53JFe8TJ1FOukf3Pj3p7xIrDE9ns7iS7OuTv6Uw+7EjvLI8sjtJJIxZ3ckliTmSSeJ8a8xeoweY3U+RTzS080c8ErQyxMGR0JBUg5ggjgcbrN4MO0kC2u5usN3iXoJxqA1e483epvEisMT2i0Or3Vxk8npTD7sSO8sjySO0ksjFndySWJOZJJ4+QvMXqMHmN1PkwTSwTRzwytFLGwZJEJBUg5ggjgcbrd4UO0cC2q6OsV3iXoKgD1H83uPL3q7xEsUT2ezyq91dcnk9KcfdiR3kd5JHaSSRiXdiSWJOZJJ4nyV5i9Rg8xup8qCWWnljmhleKWNgySISCpBzBBHA43Wbw4tooVtV1dYrvGvQVA9+vk71N4iWJHs1mlV7s/Mk9KYfdiR3kd5JHaSSRiXdiSWJOZJJ4nyl5i9Rg8xup8uCWWGVJoZWikjYMroSCpBzBBGN1m8OHaGBbTd3WK7xr8r+lSPu8e9XeKljR7PZ3D3Q8yX0px92HdpXeSRy7uSWZiSWJOZJJ4ny15i9Rg8xup8yGWSGVJYnaKSNgyOhIKkHMEEcDjdXvDiv8K2i7usV3jXJH9Kkfd4d6u8RLGklms8oa6MuUkvpTj7sO7Su8kjl3ckszEksScySTxPmLzF6jB5jdT5sUjxSJLE7RyowZHQkFSDmCCOBxur3iRX6FLReHWO7IMkf0qR93470d5EVnSWzWOUS3ThLMvCn/APrDu0jM8jF3ckszEksScySTxPmrzF6jB5jdT50bsjiRGKOpBVgciCOBBGNm98V9t1KILpSxXYJwlZykn/UgEHG1O9q/3iBqWgiW0QNxMLlpf6/PXmL1GDzG6n69eYvUYPMbqfr15i9Rg8xup+vXmL1GDzG6n69eYvUYPMbqfr15i9Rg8xup+vXmL1GGVvzN8p4nGT6T2xk+k9sZPpPbGT6T2xk+k9sZPpPbGT6T2xk+k9sZPpPbGT6T2xk+k9sZPpPbGT6T2xk+k9sZPpPbGT6T2xk+k9sZPpPbGT6T2xk+k9sZPpPbGT6T2xk+k9sZPpPbGT6T2xk+k9sZPpPbGT6T2xk+k9sZPpPbCK35h8p4jH//xAAxEQABAwIDBwIGAgMBAAAAAAABAAIDBREEMUESEyAhMFFhQKEGFSIyU8EQkXGx4dH/2gAIAQIBAT8AAFlZqs1WarNVmqzVZqs1WarNVmqzVZqs1WarNVmqzVZqs1WarNVmqzVZqs1WarNVmqzUQLIZev0Qy9fohl6/RDL1+iGXr9EMvX6IZdaaZkDDJIbNCxfxW4Othmcu5/8AAsH8Vna2cUzl3CilZKwSMNwetohl1Z52QMMkhsAqvWH1B9hyjGQ7+T/NHrD8A/YfzjOY7eQoZmTsEkZuD1dEMupPOyBhkkNgFV6u/HvsOTBkP2eGj1h+AfsP5xnMdvIUMzJ2CSM3B6miGXTnnZh2GSQ2AVXq78e+w5MGQ/Z46NWH4B+w/nGcx28hQzMnYJIzcHp6IZdKeePDRmSQ2AVXq8lQfYcmDIfs9Gj1h+BfsP5xnMdvIUMzJ2B8ZuD0tEMujPiI8NGZJDYBVarSVCSw5MGQ/Z6WAwJxRLnnZjb9zuylrMrDu8GdiMZDlf8AyfJXzyoflPsvnlQ/KfZfPKj+U+y+eVH8p/oL55Ufyn+gvnlR/Kf6CojMfKzf4p5sch+z/OiGXQnnjw0ZkkNgFVatJj5LDkwZD9npYDAHFEuJ2Y2/c7t/1Y/HNlAgw42Ym5Dv5PnjoNE3lsViBy0HfyeDRDLjmmZAwyPNgFVqtJUJLZMGQ/Z46FQ97bE4kctB38nwq7QtzfE4YfTqO3keP4p1OdiyXvOzG37nKoVATAYeAbMTch38njoNE35GJxA+jQd+HRDLj+KsU4Pbhhla586DjoNC3tsViR9Og7+T4/jNVH4dj3+9Y4Mizd4/wqhUGzNGHww2YW5Dv5PHRKK7FkTTcmD3TGNa3Zblw6IZcfxRgC+MYpg+3kf8cdFrRwjtzMbsPso3tkbtNNwVJKyJhe82AVarL8e7dx8ox78dEohxh3032D3UbGsbstFgOLRDLjcxrgQ4XCrdFOCfvYecZ9uOiVs4Q7mbnGfZVusnHP3MXKMe/HRKI7GETTfZ/tMY1jQ1osBx6IZdCSNsjSx4uCq1RTgjvYucZ9urRKI7FkTTD6P9/wDFGxrG7LRYDoaIZdF7GyNLHC4KrVEOCO+h5xn26dDoZxZ3+IH0du6YxrG7LRYDo6IZdJ7GyNLXC4KrVEODO+h5xn26NEohxZE84+jTymMaxuy0WA6WiGXTexsjS1wuCq1RDgzvoebD7cdDoZxZE84+jQd0xjWN2W5dPRDLqPjbI0tcLgqtUQ4M76Hmw+3DQ6IcWRPOPo0HdMY1jdluXU0Qy6r2B7S1wuCqzQ3YQmaEXZ/r+aJQjiSJ5xZmg7pjGtbsty6uiGXWc0ObsuWL+FsPMduFxZ4zCwHwzhcO7blO2fOX9dfRDL1+iGXr9EMvX6IZev0Qy9fohl6/RAiyu1XartV2q7Vdqu1XartV2q7Vdqu1XartV2q7Vdqu1XartV2q7Vdqu1XartV2q7VdqJFl/8QAMBEAAQMCAgkDBQADAQAAAAAAAQACEQMFBDASEyAhMTJAobFBUWEQFSJTwSNScdH/2gAIAQMBAT8AlSpUqVKlSpUqVKlSpUqVKlSpUqVKlSpUqVKlAo9eEevCPXhHrwj14R68I51Om+q/QYJJWHsPrWfv9gq9h3TRdv8AYp7DTJa8QRnBHNpU3VXBjBJKt9vZhGyd7jxP1uFuZimaTdzx3+CnsNMljxBGaEcylTdVeGMEkq329mEZJ3uPE/wbNwtzMUzSbueO/wAFVKb6byx4gjMCOXTpuqvDGCSVb7ezCNk73Hif4Nu4W9uLZpN3OHf4KqU30nljxBGWEcqlTdVcGMEkq329mEbJ3uPE5NwtzMWzSbucO/wVUpvpPLHiCMoI5NKm+q4MYJJVvt7MIyTzHicrFYsUAABLzwCZbWPGnifyceP/AIF9swf6x3X2zB/rHdfa8H/oO6+14P8AX5X2vB/r8r7Xg/1+VcXYVp1dBo3cT/B9QjkU6bqrwxgklW+3swjPdx4nKxeLFAAAS88AsJhDTJq1TLzxPt8Dbutz0ZoUTv8AU/wbAR26VN1V4YwSSrfb24Rkne48Tt3O6aE0aJ3+p9vgK13TWRRrHf6H3+mLxYw4AAlx4BYPBmnNWsZeeJ9vgbd0uep/xUT+XqfbZCO3YaAh9U8Zjbudz0Jo0Tv9T7fA+uEvD9Vq3jSf6fKweDNMmtWMvPb4G3crkKA1dLm8IkkydkI7dixQY40T68P+7dytorjW0ubyi0tMFNaXmBvJVttrcK3Tfvee23crkKA1dPm8JxJMnaCO20kGQrZchXbq6nMO+3crYK7dbT5vKtltGGbrH857bdyuQoDV0+bwiS4ydsI5DXFpkcVbLmMSNXU5vObcrkKA1VPn8JxJMnICOS1xaZHFWy5iuNXV5vOXc7kKA1dLm8IkuMnJCOU1xBkcVbLkK41VXm85NyuQoDVUubwiS4ycoI5bXFpkcVbLk2uNXU5vO3c7mKA1VLm8IkkycsI5gJBkcVbbkK41dTm87NzuYoDV0ubwiSTJzAjmtJaZCttyFcaqpzefrc7oKM0qXN7+yJJMnNCOcDCw97qsEVRpdisTea9XdT/Ed88I9eEevCPXhHrwj14R68KFChQoUKFChQoUKFChQoUKFChQoUKFChQoUKEAv//Z",t.WordpressIcon=r.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},r.default.createElement("path",{fill:"currentColor",d:"M12 2C6.49 2 2 6.49 2 12s4.49 10 10 10s10-4.49 10-10S17.51 2 12 2zM3.01 12c0-1.3.28-2.54.78-3.66l4.29 11.75c-3-1.46-5.07-4.53-5.07-8.09zM12 20.99c-.88 0-1.73-.13-2.54-.37l2.7-7.84l2.76 7.57c.02.04.04.09.06.12c-.93.34-1.93.52-2.98.52zm1.24-13.21c.54-.03 1.03-.09 1.03-.09c.48-.06.43-.77-.06-.74c0 0-1.46.11-2.4.11c-.88 0-2.37-.11-2.37-.11c-.48-.02-.54.72-.05.75c0 0 .46.06.94.09l1.4 3.84l-1.97 5.9l-3.27-9.75c.54-.02 1.03-.08 1.03-.08c.48-.06.43-.77-.06-.74c0 0-1.46.11-2.4.11c-.17 0-.37 0-.58-.01C6.1 4.62 8.86 3.01 12 3.01c2.34 0 4.47.89 6.07 2.36c-.04 0-.08-.01-.12-.01c-.88 0-1.51.77-1.51 1.6c0 .74.43 1.37.88 2.11c.34.6.74 1.37.74 2.48c0 .77-.3 1.66-.68 2.91l-.9 3l-3.24-9.68zm6.65-.09a8.988 8.988 0 0 1-3.37 12.08l2.75-7.94c.51-1.28.68-2.31.68-3.22c0-.33-.02-.64-.06-.92z"})),t.getStars=e=>{const t=Math.floor(e/20),a=e%20>=10?1:0;return{fullStars:t,halfStars:a,emptyStars:5-t-a}}},919:function(e,t,a){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.List=void 0;var l=a(90);Object.defineProperty(t,"List",{enumerable:!0,get:function(){return n(l).default}})},54:function(e,t,a){"use strict";var n=this&&this.__awaiter||function(e,t,a,n){return new(a||(a=Promise))((function(l,r){function s(e){try{o(n.next(e))}catch(e){r(e)}}function i(e){try{o(n.throw(e))}catch(e){r(e)}}function o(e){var t;e.done?l(e.value):(t=e.value,t instanceof a?t:new a((function(e){e(t)}))).then(s,i)}o((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.fetchWordPressPlugins=t.fetchSitePlugins=t.activateSitePlugin=t.installWordPressPlugin=t.setSitePlugins=t.setWordPressPlugins=void 0;const l=a(723),r=a(692),s=a(384);t.setWordPressPlugins=e=>({type:"SET_WORDPRESS_PLUGINS",payload:e}),t.setSitePlugins=e=>({type:"SET_SITE_PLUGINS",payload:e}),t.installWordPressPlugin=e=>({registry:t,dispatch:a,select:i})=>n(void 0,void 0,void 0,(function*(){const n=i.getSitePlugins(),o=yield(0,s.apiFetch)({method:"POST",path:"wp/v2/plugins",data:{slug:e,status:"inactive"}});if(!(null==o?void 0:o.author))return t.dispatch(r.store).createErrorNotice((0,l.sprintf)((0,l.__)("%s: %s"),"Something","wrong"),{type:"snackbar"}),{name:e,status:"install"};const c={name:o.plugin.split("/")[1],status:o.status,url:o._links.self[0].href};return n.push(c),a.setSitePlugins(n),c})),t.activateSitePlugin=e=>({registry:t,dispatch:a,select:l})=>n(void 0,void 0,void 0,(function*(){const t=l.getSitePlugins(),n=t.find((t=>t.name===e));if(!(null==n?void 0:n.url))return{name:e,status:"install"};const{url:r}=n,i=yield(0,s.apiFetch)({method:"PUT",url:r,data:{status:"active"}}),o={name:i.plugin.split("/")[1],status:i.status,url:i._links.self[0].href};return a.setSitePlugins(t.map((e=>e.name==o.name?o:e))),o})),t.fetchSitePlugins=()=>n(void 0,void 0,void 0,(function*(){return(yield(0,s.apiFetch)({method:"GET",path:"wp/v2/plugins"})).map((e=>({name:e.plugin.split("/")[0],status:e.status,url:e._links.self[0].href})))})),t.fetchWordPressPlugins=e=>n(void 0,void 0,void 0,(function*(){const t=`https://api.wordpress.org/plugins/info/1.2/?action=query_plugins&request[author]=${e}`,a=yield fetch(t);return yield a.json()}))},12:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.INITIAL_STATE=t.STORE_NAME=void 0,t.STORE_NAME="quadlayers/plugins",t.INITIAL_STATE={wordpressPlugins:[],sitePlugins:[]}},384:function(e,t,a){"use strict";var n=this&&this.__awaiter||function(e,t,a,n){return new(a||(a=Promise))((function(l,r){function s(e){try{o(n.next(e))}catch(e){r(e)}}function i(e){try{o(n.throw(e))}catch(e){r(e)}}function o(e){var t;e.done?l(e.value):(t=e.value,t instanceof a?t:new a((function(e){e(t)}))).then(s,i)}o((n=n.apply(e,t||[])).next())}))},l=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.useSitePlugins=t.useWordPressPlugins=t.apiFetch=void 0;const r=a(12),s=a(143),i=l(a(455));t.apiFetch=function(e){return n(this,void 0,void 0,(function*(){return yield(0,i.default)(e).then((e=>{if(e.code)throw new Error(`${e.code}: ${(null==e?void 0:e.message)||"Unknown"}`);return e})).catch((e=>{throw new Error(JSON.stringify(e))}))}))},t.useWordPressPlugins=function(e){const{installWordPressPlugin:t}=(0,s.useDispatch)(r.STORE_NAME),{wordpressPlugins:a,isResolvingWordPressPlugins:n,hasResolvedWordPressPlugins:l}=(0,s.useSelect)((t=>{const{isResolving:a,hasFinishedResolution:n,getWordPressPlugins:l}=t(r.STORE_NAME);return{wordpressPlugins:l(e),isResolvingWordPressPlugins:a("getWordPressPlugins"),hasResolvedWordPressPlugins:n("getWordPressPlugins",e)}}),[e]);return{wordpressPlugins:a,isResolvingWordPressPlugins:n,hasResolvedWordPressPlugins:l,hasWordPressPlugins:!(!l||!(null==a?void 0:a.length)),installWordPressPlugin:t}},t.useSitePlugins=function(){const{activateSitePlugin:e}=(0,s.useDispatch)(r.STORE_NAME),{sitePlugins:t,isResolvingSitePlugins:a,hasResolvedSitePlugins:n}=(0,s.useSelect)((e=>{const{isResolving:t,hasFinishedResolution:a,getSitePlugins:n}=e(r.STORE_NAME);return{isResolvingSitePlugins:t("getSitePlugins"),hasResolvedSitePlugins:a("getSitePlugins"),sitePlugins:n()}}),[]);return{sitePlugins:t,isResolvingSitePlugins:a,hasResolvedSitePlugins:n,hasSitePlugins:!(!n||!(null==t?void 0:t.length)),activateSitePlugin:e}}},69:function(e,t,a){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,a,n){void 0===n&&(n=a);var l=Object.getOwnPropertyDescriptor(t,a);l&&!("get"in l?!t.__esModule:l.writable||l.configurable)||(l={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,n,l)}:function(e,t,a,n){void 0===n&&(n=a),e[n]=t[a]}),l=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a in e)"default"!==a&&Object.prototype.hasOwnProperty.call(e,a)&&n(t,e,a);return l(t,e),t},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.storeConfig=void 0;const i=a(143),o=a(12),c=s(a(221)),u=r(a(54)),m=r(a(836)),d=r(a(814));t.storeConfig={reducer:c.default,actions:u,selectors:m,resolvers:d};const p=(0,i.createReduxStore)(o.STORE_NAME,t.storeConfig);(0,i.register)(p)},221:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sitePlugins=t.wordpressPlugins=void 0;const n=a(143),l=a(12);function r(e=l.INITIAL_STATE.wordpressPlugins,t){return"SET_WORDPRESS_PLUGINS"===t.type?t.payload:e}function s(e=l.INITIAL_STATE.sitePlugins,t){return"SET_SITE_PLUGINS"===t.type?t.payload:e}t.wordpressPlugins=r,t.sitePlugins=s,t.default=(0,n.combineReducers)({wordpressPlugins:r,sitePlugins:s})},814:function(e,t,a){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,a,n){void 0===n&&(n=a);var l=Object.getOwnPropertyDescriptor(t,a);l&&!("get"in l?!t.__esModule:l.writable||l.configurable)||(l={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,n,l)}:function(e,t,a,n){void 0===n&&(n=a),e[n]=t[a]}),l=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a in e)"default"!==a&&Object.prototype.hasOwnProperty.call(e,a)&&n(t,e,a);return l(t,e),t},s=this&&this.__awaiter||function(e,t,a,n){return new(a||(a=Promise))((function(l,r){function s(e){try{o(n.next(e))}catch(e){r(e)}}function i(e){try{o(n.throw(e))}catch(e){r(e)}}function o(e){var t;e.done?l(e.value):(t=e.value,t instanceof a?t:new a((function(e){e(t)}))).then(s,i)}o((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.getSitePlugins=t.getWordPressPlugins=void 0;const i=r(a(54));t.getWordPressPlugins=e=>s(void 0,void 0,void 0,(function*(){const t=yield i.fetchWordPressPlugins(e);return(null==t?void 0:t.plugins)?i.setWordPressPlugins(null==t?void 0:t.plugins):{type:"SET_WORDPRESS_PLUGINS",payload:[]}})),t.getSitePlugins=()=>s(void 0,void 0,void 0,(function*(){const e=yield i.fetchSitePlugins();return i.setSitePlugins(e)}))},836:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSitePlugins=t.getWordPressPlugins=void 0,t.getWordPressPlugins=e=>e.wordpressPlugins,t.getSitePlugins=(e,t)=>t?e.sitePlugins.find((({name:e})=>e===t)):e.sitePlugins},609:e=>{"use strict";e.exports=window.React},455:e=>{"use strict";e.exports=window.wp.apiFetch},143:e=>{"use strict";e.exports=window.wp.data},87:e=>{"use strict";e.exports=window.wp.element},723:e=>{"use strict";e.exports=window.wp.i18n},692:e=>{"use strict";e.exports=window.wp.notices},500:(e,t)=>{var a;!function(){"use strict";var n={}.hasOwnProperty;function l(){for(var e="",t=0;t<arguments.length;t++){var a=arguments[t];a&&(e=s(e,r(a)))}return e}function r(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return l.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var a in e)n.call(e,a)&&e[a]&&(t=s(t,a));return t}function s(e,t){return t?e?e+" "+t:e+t:e}e.exports?(l.default=l,e.exports=l):void 0===(a=function(){return l}.apply(t,[]))||(e.exports=a)}()}},t={};function a(n){var l=t[n];if(void 0!==l)return l.exports;var r=t[n]={exports:{}};return e[n].call(r.exports,r,r.exports,a),r.exports}a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.nc=void 0;var n={};(()=>{"use strict";a.r(n),a.d(n,{App:()=>ca,AppProvider:()=>sa,AppStructure:()=>oa,AppTabSwitcher:()=>ia,Header:()=>T,Nav:()=>R,QLIGG_BUSSINESS_LINK:()=>A,QLIGG_DEMO_URL:()=>f,QLIGG_DEVELOPER:()=>v,QLIGG_DOCUMENTATION_URL:()=>E,QLIGG_DOMAIN:()=>d,QLIGG_GROUP_URL:()=>b,QLIGG_MODELS_FEED:()=>k,QLIGG_MODELS_SETTING:()=>N,QLIGG_PERSONAL_LINK:()=>w,QLIGG_PLUGIN_DIR:()=>m,QLIGG_PLUGIN_FILE:()=>u,QLIGG_PLUGIN_NAME:()=>o,QLIGG_PLUGIN_VERSION:()=>c,QLIGG_PREFIX:()=>p,QLIGG_PREMIUM_SELL_URL:()=>h,QLIGG_REVIEW_URL:()=>_,QLIGG_SUPPORT_URL:()=>y,QLIGG_WORDPRESS_URL:()=>g,Spinner:()=>Q,Table:()=>Y,copyInClipboard:()=>x,deepMerge:()=>I,getPluginURL:()=>S,onDocumentLoaded:()=>P,useAppSlotContext:()=>G});var e=a(609),t=a(87);const l=window.wp.editor;var r=a(723);const s=window.wp.hooks,i=window.lodash,o=qligg_backend.QLIGG_PLUGIN_NAME,c=qligg_backend.QLIGG_PLUGIN_VERSION,u=qligg_backend.QLIGG_PLUGIN_FILE,m=qligg_backend.QLIGG_PLUGIN_DIR,d=qligg_backend.QLIGG_DOMAIN,p=qligg_backend.QLIGG_PREFIX,g=qligg_backend.QLIGG_WORDPRESS_URL,_=qligg_backend.QLIGG_REVIEW_URL,f=qligg_backend.QLIGG_DEMO_URL,h=qligg_backend.QLIGG_PREMIUM_SELL_URL,y=qligg_backend.QLIGG_SUPPORT_URL,E=qligg_backend.QLIGG_DOCUMENTATION_URL,b=qligg_backend.QLIGG_GROUP_URL,v=qligg_backend.QLIGG_DEVELOPER,A=qligg_backend.QLIGG_BUSSINESS_LINK,w=qligg_backend.QLIGG_PERSONAL_LINK,k=qligg_backend.QLIGG_MODELS_FEED,N=qligg_backend.QLIGG_MODELS_SETTING;function S(e){return qligg_backend.plugin_url+e}function x(e){return navigator.clipboard&&window.isSecureContext?navigator.clipboard.writeText(e).then((function(){return!0}),(function(){return C(e)})):C(e)}function C(e){const t=document.createElement("textarea");t.value=e,t.style.position="fixed",t.style.top="-9999px",t.style.left="-9999px",document.body.appendChild(t),t.focus(),t.select();try{return document.execCommand("copy")}catch(e){return console.error("Fallback: Oops, unable to copy",e),!1}finally{document.body.remove}}const P=e=>{/comp|inter|loaded/.test(document.readyState)?e():document.addEventListener("DOMContentLoaded",e,!1)};function I(e,t){const a={};return new Set([...Object.keys(e),...Object.keys(t)]).forEach((n=>{e.hasOwnProperty(n)&&t.hasOwnProperty(n)?(0,i.isObject)(e[n])&&!Array.isArray(e[n])?a[n]=I(e[n],t[n]):a[n]=t[n]:e.hasOwnProperty(n)?a[n]=e[n]:t.hasOwnProperty(n)&&(a[n]=t[n])})),a}const T=()=>(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"wrap about-wrap full-width-layout"},(0,e.createElement)("h1",null,o),(0,e.createElement)("p",{className:"about-text"},(0,r.sprintf)((0,r.__)("Thanks for using %s! We will do our best to offer you the best and improved communication experience with your users."),o)),(0,e.createElement)("p",{className:"about-text"},(0,e.createElement)("a",{href:h,target:"__blank"},(0,r.__)("Premium","insta-gallery")),"|",(0,e.createElement)("a",{href:f,target:"__blank"},(0,r.__)("Demo","insta-gallery")),"|",(0,e.createElement)("a",{href:E,target:"__blank"},(0,r.__)("Documentation","insta-gallery")),"|",(0,e.createElement)("a",{href:"https://quadlayers.com/documentation/instagram-feed-gallery/api/business/?utm_source=qligg_admin",target:"__blank"},(0,r.__)("Business","insta-gallery"))),(0,e.createElement)("a",{href:"https://quadlayers.com/?utm_source=qligg_admin",target:"_blank",rel:"noreferrer"},(0,e.createElement)("div",{style:{backgroundImage:`url(${S("/assets/backend/img/quadlayers.jpg")})`},className:"wp-badge quadlayers__logo"},"QuadLayers"))));var O=a(500),F=a.n(O);const R=function(){const{currentTab:a,setCurrentTab:n,tabs:l}=la();return(0,t.useEffect)((()=>{(e=>{const t=Array.from(document.querySelector("#toplevel_page_qligg_backend .wp-submenu").children),a=e[0].toUpperCase()+e.slice(1).toLowerCase();t.forEach((e=>{e.innerText.trim()===a?e.classList.add("current"):e.classList.remove("current")}))})(a)}),[a]),(0,e.createElement)("div",{className:"wrap about-wrap full-width-layout"},(0,e.createElement)("ul",{className:"nav-tab-wrapper"},l.map((({label:t,name:l},r)=>(0,e.createElement)("li",{key:r,className:"nav-tab-li",onClick:e=>{e.preventDefault(),e.stopPropagation(),n(l)}},(0,e.createElement)("a",{href:"#",className:F()("nav-tab",a===l&&"nav-tab-active"),onClick:e=>{e.preventDefault()}},t))))))},L=window.wp.components,M=window.wp.compose,D=(0,t.createContext)({Slot:{Header:({children:e})=>e||null,Footer:({children:e})=>e||null,Content:({children:e})=>e||null,Aside:({children:e})=>e||null,Navigation:({children:e})=>e||null},Fill:{Header:({children:e})=>e||null,Footer:({children:e})=>e||null,Content:({children:e})=>e||null,Aside:({children:e})=>e||null,Navigation:({children:e})=>e||null}}),G=()=>(0,t.useContext)(D),j=a=>{const n=(0,t.useRef)(),{children:l}=a,r=`insta-gallery.admin.Control.Slot.${(0,M.useInstanceId)(j)}`,s={},i={},{Fill:o,Slot:c}=(0,t.useCallback)((0,L.createSlotFill)(`${r}.header`),[r]),{Fill:u,Slot:m}=(0,t.useCallback)((0,L.createSlotFill)(`${r}.navigation`),[r]),{Fill:d,Slot:p}=(0,t.useCallback)((0,L.createSlotFill)(`${r}content`),[r]),{Fill:g,Slot:_}=(0,t.useCallback)((0,L.createSlotFill)(`${r}.aside`),[r]),{Fill:f,Slot:h}=(0,t.useCallback)((0,L.createSlotFill)(`${r}.footer`),[r]);return s.Header=c,i.Header=o,s.Navigation=m,i.Navigation=u,s.Content=p,i.Content=d,s.Aside=_,i.Aside=g,s.Footer=h,i.Footer=f,(0,e.createElement)(L.SlotFillProvider,null,(0,e.createElement)(D.Provider,{value:{Slot:s,Fill:i,containerRef:n}},l))},q=D.Consumer,U=({isSecondary:t,href:a,title:n,target:l="_self",tagName:r="a",className:s,children:i})=>{const o=r;return(0,e.createElement)(o,{className:F()("insta-gallery__button",t&&"insta-gallery__button--secondary",s),href:a,target:l,title:n},i)},B=()=>(0,e.createElement)("div",{className:"wrap about-wrap full-width-layout"},(0,e.createElement)("div",{className:"has-2-columns is-wider-left"},(0,e.createElement)("div",{className:"column"},(0,e.createElement)("div",{className:"welcome-header"},(0,e.createElement)("h1",null,o,(0,e.createElement)("span",{style:{fontSize:"24px",color:"#555"}},"v",c)),(0,e.createElement)("div",{className:"about-text"},(0,e.createElement)("p",null,sprintf((0,r.__)("Hi! We are Quadlayers, we are expanding our products portfolio, according to social trends! So… enjoy our first version of %s. We are developing new features","insta-gallery"),o)))),(0,e.createElement)("hr",null),(0,e.createElement)("div",{className:"feature-section"},(0,e.createElement)("h3",null,(0,r.__)("Premium","insta-gallery")),(0,e.createElement)("p",null,sprintf((0,r.__)("Thank you for choosing our %s plugin for WordPress! Here you can see our demo and test the features we offer in the premium version.","insta-gallery"),o)),(0,e.createElement)(U,{href:h,target:"_blank"},(0,r.__)("Purchase Now","insta-gallery"))),(0,e.createElement)("div",{className:"feature-section"},(0,e.createElement)("h3",null,(0,r.__)("Demo","insta-gallery")),(0,e.createElement)("p",null,sprintf((0,r.__)("Thank you for choosing our %s plugin for WordPress! Here you can see our demo and test the features we offer in the premium version.","insta-gallery"),o)),(0,e.createElement)(U,{isSecondary:!0,href:f,target:"_blank"},(0,r.__)("View demo","insta-gallery"))),(0,e.createElement)("div",{className:"feature-section"},(0,e.createElement)("h3",null,(0,r.__)("Support","insta-gallery")),(0,e.createElement)("p",null,sprintf((0,r.__)("If you have any doubt or you find any issue don't hesitate to contact us through our ticket system or join our community to meet other %s users.","insta-gallery"),o)),(0,e.createElement)(U,{isSecondary:!0,href:y,target:"_blank"},(0,r.__)("Submit ticket","insta-gallery"))),(0,e.createElement)("div",{className:"feature-section"},(0,e.createElement)("h3",null,(0,r.__)("Community","insta-gallery")),(0,e.createElement)("p",null,sprintf((0,r.__)("If you want to get in touch with other %s users or be aware of our promotional discounts join our community now.","insta-gallery"),o)),(0,e.createElement)(U,{isSecondary:!0,href:b,target:"_blank"},(0,r.__)("Join our community","insta-gallery")))),(0,e.createElement)("div",{className:"column"},(0,e.createElement)("img",{src:S("/assets/backend/img/mobile.png")})))),H=()=>{const{Fill:t}=G();return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(t.Header,null,(0,e.createElement)(T,null)),(0,e.createElement)(t.Navigation,null,(0,e.createElement)(R,null)),(0,e.createElement)(t.Content,null,(0,e.createElement)(B,null)))},W=window.qligg.store,z=({title:a,show:n,onClose:l,children:r,className:s,__experimentalHideHeader:i=!1})=>{const o=(0,t.useRef)();return(0,t.useEffect)((()=>{const e=e=>{n&&o?.current&&o.current===e.target&&l(e)};return o?.current?.addEventListener("click",e),()=>{o?.current?.removeEventListener("click",e)}}),[o,n]),n?(0,e.createElement)(L.Modal,{ref:o,title:a,onRequestClose:l,shouldCloseOnClickOutside:!1,className:F()("insta-gallery__modal media-modal wp-core-ui upload-php",s),__experimentalHideHeader:i},r):null};var V=a(143),J=a(692);function Q(){return(0,e.createElement)("p",null,(0,e.createElement)("span",{style:{visibility:"visible"},className:"spinner"}),(0,r.__)("Loading…","insta-gallery"))}function Y({children:t,style:a}){return(0,e.createElement)("table",{className:"form-table widefat striped insta-gallery__table",style:a},t)}const Z=window.wp.date,$=({index:t,account:a,deleteAccount:n,createSuccessNotice:l,createErrorNotice:s})=>{const i=t>0;return(0,e.createElement)("tr",{className:i&&"qligg-premium-field"},(0,e.createElement)("td",{width:"1%"},(0,e.createElement)("img",{className:"avatar",src:a?.avatar||"http://2.gravatar.com/avatar/b642b4217b34b1e8d3bd915fc65c4452?s=150&d=mm&r=g",alt:a?.username||(0,r.__)("Loading…","insta-gallery")})),(0,e.createElement)("td",null,a?.username?a?.username:(0,r.__)("Loading…","insta-gallery")),(0,e.createElement)("td",null,a.id),(0,e.createElement)("td",{style:{width:"300px"}},(0,e.createElement)("input",{type:"text",defaultValue:a.access_token,readOnly:!0}),(0,e.createElement)("button",{className:"button button-primary",onClick:async()=>{await x(a.access_token)?l((0,r.__)("Access token copied to clipboard.","insta-gallery"),{id:1,type:"snackbar"}):s((0,r.__)("Can't copy the access token.","insta-gallery"),{id:2,type:"snackbar"})}},(0,e.createElement)("i",{className:"dashicons dashicons-admin-page"}))),(0,e.createElement)("td",null,a.access_token_type),(0,e.createElement)("td",null,(0,Z.gmdateI18n)("d-m-Y - h:m",1e3*a.access_token_expiration_date)),(0,e.createElement)("td",null,(0,e.createElement)("button",{className:"button button-secondary",onClick:()=>{confirm((0,r.sprintf)((0,r.__)("You are about to delete the %s account.","insta-gallery"),a.username))&&n(a.id)}},(0,e.createElement)("i",{className:"dashicons dashicons-trash"}))))},X=t=>{const{href:a,target:n="_self",title:l,children:r,className:s,alert:i}=t;return(0,e.createElement)("a",{href:a,className:F()("insta-gallery__account-button",s),target:n,title:l,onClick:e=>!confirm(i)&&e.preventDefault()},r)},K=({setIsOpen:t,setIsOpenPreview:a,setCurrentAccountIndex:n})=>{const{createSuccessNotice:l,createErrorNotice:s}=(0,V.useDispatch)(J.store),{accounts:i,hasAccounts:o,hasResolvedAccounts:c,deleteAccount:u}=(0,W.useAccountsEntities)();return c?(0,e.createElement)("div",{className:"wrap about-wrap full-width-layout"},(0,e.createElement)("p",null,(0,e.createElement)(X,{href:w,className:o&&"qligg-premium-field",title:(0,r.__)("Add Personal Account","insta-gallery"),alert:(0,r.__)("Once you click the button you'll be prompted to log into your Instagram account and authorize the website to read your information. Once authorized you'll be returned back to this page with both your Access Token and User ID.","insta-gallery")},(0,r.__)("Add Personal Account","insta-gallery")),(0,e.createElement)(X,{href:A,className:o&&"qligg-premium-field",title:(0,r.__)("Add Business Account","insta-gallery"),alert:(0,r.__)("Once you click the button you'll be prompted to log into your Facebook account and authorize the website to read your information. Once authorized you'll be returned back to this page with both your Access Token and User ID.","insta-gallery")},(0,r.__)("Add Business Account","insta-gallery")),(0,e.createElement)("a",{className:F()("insta-gallery__account-link",o&&"qligg-premium-field"),href:"#",onClick:()=>t(!0)},(0,r.__)("Button not working?","insta-gallery")),(0,e.createElement)("span",{className:"qligg-premium-field"},(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,r.__)("Multiple user accounts and business accounts are premium features.","insta-gallery"))))),i&&(0,e.createElement)(Y,null,(0,e.createElement)("thead",null,(0,e.createElement)("tr",null,(0,e.createElement)("th",null,(0,r.__)("Image","insta-gallery")),(0,e.createElement)("th",null,(0,r.__)("Username","insta-gallery")),(0,e.createElement)("th",null,(0,r.__)("Account","insta-gallery")),(0,e.createElement)("th",null,(0,r.__)("Access Token","insta-gallery")),(0,e.createElement)("th",null,(0,r.__)("Type","insta-gallery")),(0,e.createElement)("th",null,(0,r.__)("Date","insta-gallery")),(0,e.createElement)("th",null,(0,r.__)("Action","insta-gallery")))),(0,e.createElement)("tbody",null,i.map(((t,r)=>(0,e.createElement)($,{key:t.id,index:r,account:t,deleteAccount:u,createSuccessNotice:l,createErrorNotice:s,setCurrentAccountIndex:n,setIsOpenPreview:a})))))):(0,e.createElement)(Q,null)},ee=({setIsOpen:a})=>{const{createAccount:n}=(0,W.useAccountsEntities)(),[l,s]=(0,t.useState)(!1),[i,o]=(0,t.useState)({id:"",access_token:""}),c=l||!i?.access_token||!i?.id;return(0,e.createElement)("form",{className:"media-modal-form",onSubmit:async e=>{e.preventDefault(),s(!0);const t=await n(i);s(!1),t&&a(!1)}},(0,e.createElement)("div",{className:"media-modal-content",role:"document"},(0,e.createElement)("div",{className:"edit-attachment-frame mode-select"},(0,e.createElement)("div",{className:"edit-media-header"},(0,e.createElement)("button",{type:"button",className:"media-modal-close",onClick:()=>a(!1)},(0,e.createElement)("span",{className:"media-modal-icon"},(0,e.createElement)("span",{className:"screen-reader-text"},(0,r.__)("Close dialog"))))),(0,e.createElement)("div",{className:"media-frame-title"},(0,e.createElement)("h1",null,(0,r.__)("Manually connect an account","insta-gallery"))),(0,e.createElement)("div",{className:"insta-gallery__modal__panel",style:{top:"50px",position:"absolute",width:"100%",borderTop:"1px solid #ddd"}},(0,e.createElement)("div",{className:"options_group"},(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,r.__)("Account ID:","insta-gallery")),(0,e.createElement)("input",{style:{minWidth:260},placeholder:(0,r.__)("Enter a account ID","insta-gallery"),required:!0,value:i.id,onChange:e=>o((t=>({...t,id:e.target.value.trim()})))}))),(0,e.createElement)("div",{className:"options_group"},(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,r.__)("Access Token:","insta-gallery")),(0,e.createElement)("input",{style:{minWidth:260},type:"text",placeholder:(0,r.__)("Enter access token","insta-gallery"),required:!0,value:i.access_token,onChange:e=>o((t=>({...t,access_token:e.target.value.trim()})))}))),(0,e.createElement)("div",{className:"options_group",style:{borderBottom:"none"}},(0,e.createElement)("p",{className:"form-field"},(0,t.createInterpolateElement)((0,r.__)("If you are experiencing issues linking your account, you can try doing it manually. If the problems persist, please review the <a>documentation</a> or contact us, and we will be happy to assist you.","insta-gallery"),{a:(0,e.createElement)("a",{href:E,target:"_blank",rel:"noopener noreferrer"})})))),(0,e.createElement)("div",{className:"media-frame-toolbar",style:{left:0}},(0,e.createElement)("div",{className:"media-toolbar"},(0,e.createElement)("div",{className:"media-toolbar-secondary"},(0,e.createElement)("div",{style:{float:"left",marginTop:19}},i?.access_token?(0,t.createInterpolateElement)((0,r.__)("Access token not working? Please check the <a>access token debugger</a>.","insta-gallery"),{a:(0,e.createElement)("a",{href:(0,r.sprintf)("https://developers.facebook.com/tools/debug/accesstoken/?access_token=%s",i.access_token),target:"_blank",rel:"noopener noreferrer"})}):(0,e.createElement)(e.Fragment,null,(0,t.createInterpolateElement)((0,r.__)("Please click here to get the <link1>personal</link1> or <link2>business</link2> access token.","insta-gallery"),{link1:(0,e.createElement)("a",{href:"https://socialfeed.quadlayers.com/",target:"_blank",rel:"noopener noreferrer"}),link2:(0,e.createElement)("a",{href:"https://socialfeed.quadlayers.com/facebook.php",target:"_blank",rel:"noopener noreferrer"})}))),(0,e.createElement)("span",{className:"settings-save-status media-button",style:{float:"left"}},l&&(0,e.createElement)("span",{style:{visibility:"visible"},className:"spinner"}))),(0,e.createElement)("div",{className:"media-toolbar-primary search-form"},(0,e.createElement)("button",{type:"submit",className:"media-modal-submit button button-primary media-button button-large",disabled:c},(0,r.__)("Save","insta-gallery"))))))))},te=(0,t.createContext)({}),ae=()=>(0,t.useContext)(te),ne=(e,t)=>{switch(t.type){case"SET_CURRENT_FEED_INDEX":case"SET_IS_OPEN":case"SET_IS_IMAGE_LOAD":case"SET_COUNTER":return{...e,...t.payload}}},le=a=>{const{children:n}=a,[l,r]=(0,t.useReducer)(ne,{currentFeedIndex:0,isOpen:!1,isImageLoad:!1,counter:0});return(0,e.createElement)(te.Provider,{value:{...l,setCurrentFeedIndex:e=>{l.currentFeedIndex!=e&&r({type:"SET_CURRENT_FEED_INDEX",payload:{currentFeedIndex:e}})},setIsOpen:e=>{l.isOpen!=e&&r({type:"SET_IS_OPEN",payload:{isOpen:e}})},setIsImageLoad:e=>{l.isImageLoad!=e&&r({type:"SET_IS_IMAGE_LOAD",payload:{isImageLoad:e}})},setCounter:e=>{l.counter!=e&&r({type:"SET_COUNTER",payload:{counter:e}})}}},n)};async function re({url:e,data:t,method:a}){if(!e)throw new Error(`Empty url: ${e}`);return await fetch(e,{body:JSON.stringify(t),method:a}).then((e=>e.json())).then((e=>{if(e.code)throw new Error(`${e.code}: ${e?.message||"Unknown"}`);return e})).catch((e=>{throw new Error(e)}))}function se(e,t){const a=[];for(const n in e)if(e.hasOwnProperty(n)){const l=t?t+"["+n+"]":n,r=e[n];a.push(null!==r&&"object"==typeof r?se(r,l):encodeURIComponent(l)+"="+encodeURIComponent(r))}return a.join("&")}te.Consumer;const ie=({href:t,className:a,children:n,onClick:l,disabled:r})=>(0,e.createElement)("a",{href:t,target:"blank",onClick:l,className:F()("instagram-gallery__button",a,r&&"instagram-gallery__button--disabled")},n);function oe(e,t){const{tag:a,source:n}=e,{username:l}=t;switch(n){case"username":return`https://www.instagram.com/${l}`;case"tag":return`https://www.instagram.com/explore/tags/${a}`;default:return"https://www.instagram.com"}}const ce=(ue=({userProfile:t,feedSettings:a,onClick:n,after:l})=>{const r=!!a?.button?.display,s=!!a?.button_load?.display;return(0,e.createElement)("div",{className:"instagram-gallery__actions"},r&&(0,e.createElement)(ie,{feedSettings:a,href:oe(a,t),target:"blank",className:"instagram-gallery__button--follow"},(0,e.createElement)("i",{className:"qligg-icon-instagram "}),a.button.text),s&&(0,e.createElement)(ie,{feedSettings:a,className:"instagram-gallery__button--load",disabled:""===l,onClick:n},a.button_load.text))},a=>{const{feedSettings:n}=a,l=!!n.button.display,r=!!n.button_load.display;return(0,e.createElement)(t.Fragment,null,(0,e.createElement)("style",null,l&&`\n #instagram-gallery-feed-${n.id} .instagram-gallery__actions .instagram-gallery__button--follow {\n color: ${n.button.text_color};\n }\n\n #instagram-gallery-feed-${n.id} .instagram-gallery__actions .instagram-gallery__button--follow {\n background-color: ${n.button.background};\n }\n\n #instagram-gallery-feed-${n.id} .instagram-gallery__actions .instagram-gallery__button--follow:hover {\n background-color: ${n.button.background_hover};\n }\n `,r&&`\n #instagram-gallery-feed-${n.id} .instagram-gallery__actions .instagram-gallery__button--load {\n color: ${n.button_load.text_color};\n }\n\n #instagram-gallery-feed-${n.id} .instagram-gallery__actions .instagram-gallery__button--load {\n background-color: ${n.button_load.background};\n }\n\n #instagram-gallery-feed-${n.id} .instagram-gallery__actions .instagram-gallery__button--load:hover {\n background-color: ${n.button_load.background_hover};\n }\n `),(0,e.createElement)(ue,{...a}))});var ue;const me=()=>{const t=window?.qligg_frontend?.settings?.spinner_image_url;return(0,e.createElement)("div",{className:"instagram-gallery__spinner",style:t?{backgroundImage:`url(${t})`}:{}})},de=({errorUserProfile:t,errorUserMediaList:a})=>(0,e.createElement)("div",{className:"instagram-gallery__alert"},(0,e.createElement)("ul",null,t&&(0,e.createElement)("li",null,(0,e.createElement)("b",null,t.error),(0,e.createElement)("p",null,t.message)),a&&(0,e.createElement)("li",null,(0,e.createElement)("b",null,a.error),(0,e.createElement)("p",null,a.message)))),pe=(0,t.memo)((({feedSettings:a,userProfile:n})=>{const l={...n,...function(e){const t={};for(const a in e)e.hasOwnProperty(a)&&""!==e[a]&&(t[a]=e[a]);return t}(a.profile)};return!!a?.profile?.display&&(0,e.createElement)("div",{className:"instagram-gallery__profile"},(0,e.createElement)("div",{className:"avatar"},(0,e.createElement)("img",{src:l.avatar||"http://2.gravatar.com/avatar/b642b4217b34b1e8d3bd915fc65c4452?s=150&d=mm&r=g",alt:l.nickname})),(0,e.createElement)("div",{className:"info"},(0,e.createElement)("div",null,(0,e.createElement)("span",{className:"user"},"@",l.username),l.nickname&&(0,e.createElement)(t.Fragment,null,(0,e.createElement)("span",{className:"separator"},"•"),(0,e.createElement)("span",{className:"user"},l.nickname)),(0,e.createElement)("span",{className:"separator"},"•"),(0,e.createElement)("a",{className:"follow",href:l.link,target:"_blank",rel:"noopener noreferrer"},l.link_text),!!l.website&&(0,e.createElement)(t.Fragment,null,(0,e.createElement)("span",{className:"separator"},"•"),(0,e.createElement)("a",{className:"follow",href:l.website,target:"_blank",rel:"noopener noreferrer"},l.website_text)),(0,e.createElement)("div",{className:"description"},l.biography))))}));var ge,_e,fe,he,ye,Ee,be,ve,Ae,we,ke={},Ne=[],Se=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,xe=Array.isArray;function Ce(e,t){for(var a in t)e[a]=t[a];return e}function Pe(e){var t=e.parentNode;t&&t.removeChild(e)}function Ie(e,t,a,n,l){var r={type:e,props:t,key:a,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==l?++fe:l,__i:-1,__u:0};return null==l&&null!=_e.vnode&&_e.vnode(r),r}function Te(e){return e.children}function Oe(e,t){this.props=e,this.context=t}function Fe(e,t){if(null==t)return e.__?Fe(e.__,e.__i+1):null;for(var a;t<e.__k.length;t++)if(null!=(a=e.__k[t])&&null!=a.__e)return a.__e;return"function"==typeof e.type?Fe(e):null}function Re(e){var t,a;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(a=e.__k[t])&&null!=a.__e){e.__e=e.__c.base=a.__e;break}return Re(e)}}function Le(e){(!e.__d&&(e.__d=!0)&&he.push(e)&&!Me.__r++||ye!==_e.debounceRendering)&&((ye=_e.debounceRendering)||Ee)(Me)}function Me(){var e,t,a,n,l,r,s,i;for(he.sort(be);e=he.shift();)e.__d&&(t=he.length,n=void 0,r=(l=(a=e).__v).__e,s=[],i=[],a.__P&&((n=Ce({},l)).__v=l.__v+1,_e.vnode&&_e.vnode(n),We(a.__P,n,l,a.__n,a.__P.namespaceURI,32&l.__u?[r]:null,s,null==r?Fe(l):r,!!(32&l.__u),i),n.__v=l.__v,n.__.__k[n.__i]=n,ze(s,n,i),n.__e!=r&&Re(n)),he.length>t&&he.sort(be));Me.__r=0}function De(e,t,a,n,l,r,s,i,o,c,u){var m,d,p,g,_,f=n&&n.__k||Ne,h=t.length;for(a.__d=o,Ge(a,t,f),o=a.__d,m=0;m<h;m++)null!=(p=a.__k[m])&&"boolean"!=typeof p&&"function"!=typeof p&&(d=-1===p.__i?ke:f[p.__i]||ke,p.__i=m,We(e,p,d,l,r,s,i,o,c,u),g=p.__e,p.ref&&d.ref!=p.ref&&(d.ref&&Je(d.ref,null,p),u.push(p.ref,p.__c||g,p)),null==_&&null!=g&&(_=g),65536&p.__u||d.__k===p.__k?o=je(p,o,e):"function"==typeof p.type&&void 0!==p.__d?o=p.__d:g&&(o=g.nextSibling),p.__d=void 0,p.__u&=-196609);a.__d=o,a.__e=_}function Ge(e,t,a){var n,l,r,s,i,o=t.length,c=a.length,u=c,m=0;for(e.__k=[],n=0;n<o;n++)s=n+m,null!=(l=e.__k[n]=null==(l=t[n])||"boolean"==typeof l||"function"==typeof l?null:"string"==typeof l||"number"==typeof l||"bigint"==typeof l||l.constructor==String?Ie(null,l,null,null,null):xe(l)?Ie(Te,{children:l},null,null,null):void 0===l.constructor&&l.__b>0?Ie(l.type,l.props,l.key,l.ref?l.ref:null,l.__v):l)?(l.__=e,l.__b=e.__b+1,i=qe(l,a,s,u),l.__i=i,r=null,-1!==i&&(u--,(r=a[i])&&(r.__u|=131072)),null==r||null===r.__v?(-1==i&&m--,"function"!=typeof l.type&&(l.__u|=65536)):i!==s&&(i==s-1?m--:i==s+1?m++:i>s?u>o-s?m+=i-s:m--:i<s&&(i==s-m?m-=i-s:m++),i!==n+m&&(l.__u|=65536))):(r=a[s])&&null==r.key&&r.__e&&!(131072&r.__u)&&(r.__e==e.__d&&(e.__d=Fe(r)),Qe(r,r,!1),a[s]=null,u--);if(u)for(n=0;n<c;n++)null!=(r=a[n])&&!(131072&r.__u)&&(r.__e==e.__d&&(e.__d=Fe(r)),Qe(r,r))}function je(e,t,a){var n,l;if("function"==typeof e.type){for(n=e.__k,l=0;n&&l<n.length;l++)n[l]&&(n[l].__=e,t=je(n[l],t,a));return t}e.__e!=t&&(t&&e.type&&!a.contains(t)&&(t=Fe(e)),a.insertBefore(e.__e,t||null),t=e.__e);do{t=t&&t.nextSibling}while(null!=t&&8===t.nodeType);return t}function qe(e,t,a,n){var l=e.key,r=e.type,s=a-1,i=a+1,o=t[a];if(null===o||o&&l==o.key&&r===o.type&&!(131072&o.__u))return a;if(n>(null==o||131072&o.__u?0:1))for(;s>=0||i<t.length;){if(s>=0){if((o=t[s])&&!(131072&o.__u)&&l==o.key&&r===o.type)return s;s--}if(i<t.length){if((o=t[i])&&!(131072&o.__u)&&l==o.key&&r===o.type)return i;i++}}return-1}function Ue(e,t,a){"-"===t[0]?e.setProperty(t,null==a?"":a):e[t]=null==a?"":"number"!=typeof a||Se.test(t)?a:a+"px"}function Be(e,t,a,n,l){var r;e:if("style"===t)if("string"==typeof a)e.style.cssText=a;else{if("string"==typeof n&&(e.style.cssText=n=""),n)for(t in n)a&&t in a||Ue(e.style,t,"");if(a)for(t in a)n&&a[t]===n[t]||Ue(e.style,t,a[t])}else if("o"===t[0]&&"n"===t[1])r=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase()in e||"onFocusOut"===t||"onFocusIn"===t?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+r]=a,a?n?a.u=n.u:(a.u=ve,e.addEventListener(t,r?we:Ae,r)):e.removeEventListener(t,r?we:Ae,r);else{if("http://www.w3.org/2000/svg"==l)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=t&&"height"!=t&&"href"!=t&&"list"!=t&&"form"!=t&&"tabIndex"!=t&&"download"!=t&&"rowSpan"!=t&&"colSpan"!=t&&"role"!=t&&"popover"!=t&&t in e)try{e[t]=null==a?"":a;break e}catch(e){}"function"==typeof a||(null==a||!1===a&&"-"!==t[4]?e.removeAttribute(t):e.setAttribute(t,"popover"==t&&1==a?"":a))}}function He(e){return function(t){if(this.l){var a=this.l[t.type+e];if(null==t.t)t.t=ve++;else if(t.t<a.u)return;return a(_e.event?_e.event(t):t)}}}function We(e,t,a,n,l,r,s,i,o,c){var u,m,d,p,g,_,f,h,y,E,b,v,A,w,k,N,S=t.type;if(void 0!==t.constructor)return null;128&a.__u&&(o=!!(32&a.__u),r=[i=t.__e=a.__e]),(u=_e.__b)&&u(t);e:if("function"==typeof S)try{if(h=t.props,y="prototype"in S&&S.prototype.render,E=(u=S.contextType)&&n[u.__c],b=u?E?E.props.value:u.__:n,a.__c?f=(m=t.__c=a.__c).__=m.__E:(y?t.__c=m=new S(h,b):(t.__c=m=new Oe(h,b),m.constructor=S,m.render=Ye),E&&E.sub(m),m.props=h,m.state||(m.state={}),m.context=b,m.__n=n,d=m.__d=!0,m.__h=[],m._sb=[]),y&&null==m.__s&&(m.__s=m.state),y&&null!=S.getDerivedStateFromProps&&(m.__s==m.state&&(m.__s=Ce({},m.__s)),Ce(m.__s,S.getDerivedStateFromProps(h,m.__s))),p=m.props,g=m.state,m.__v=t,d)y&&null==S.getDerivedStateFromProps&&null!=m.componentWillMount&&m.componentWillMount(),y&&null!=m.componentDidMount&&m.__h.push(m.componentDidMount);else{if(y&&null==S.getDerivedStateFromProps&&h!==p&&null!=m.componentWillReceiveProps&&m.componentWillReceiveProps(h,b),!m.__e&&(null!=m.shouldComponentUpdate&&!1===m.shouldComponentUpdate(h,m.__s,b)||t.__v===a.__v)){for(t.__v!==a.__v&&(m.props=h,m.state=m.__s,m.__d=!1),t.__e=a.__e,t.__k=a.__k,t.__k.forEach((function(e){e&&(e.__=t)})),v=0;v<m._sb.length;v++)m.__h.push(m._sb[v]);m._sb=[],m.__h.length&&s.push(m);break e}null!=m.componentWillUpdate&&m.componentWillUpdate(h,m.__s,b),y&&null!=m.componentDidUpdate&&m.__h.push((function(){m.componentDidUpdate(p,g,_)}))}if(m.context=b,m.props=h,m.__P=e,m.__e=!1,A=_e.__r,w=0,y){for(m.state=m.__s,m.__d=!1,A&&A(t),u=m.render(m.props,m.state,m.context),k=0;k<m._sb.length;k++)m.__h.push(m._sb[k]);m._sb=[]}else do{m.__d=!1,A&&A(t),u=m.render(m.props,m.state,m.context),m.state=m.__s}while(m.__d&&++w<25);m.state=m.__s,null!=m.getChildContext&&(n=Ce(Ce({},n),m.getChildContext())),y&&!d&&null!=m.getSnapshotBeforeUpdate&&(_=m.getSnapshotBeforeUpdate(p,g)),De(e,xe(N=null!=u&&u.type===Te&&null==u.key?u.props.children:u)?N:[N],t,a,n,l,r,s,i,o,c),m.base=t.__e,t.__u&=-161,m.__h.length&&s.push(m),f&&(m.__E=m.__=null)}catch(e){if(t.__v=null,o||null!=r){for(t.__u|=o?160:32;i&&8===i.nodeType&&i.nextSibling;)i=i.nextSibling;r[r.indexOf(i)]=null,t.__e=i}else t.__e=a.__e,t.__k=a.__k;_e.__e(e,t,a)}else null==r&&t.__v===a.__v?(t.__k=a.__k,t.__e=a.__e):t.__e=Ve(a.__e,t,a,n,l,r,s,o,c);(u=_e.diffed)&&u(t)}function ze(e,t,a){t.__d=void 0;for(var n=0;n<a.length;n++)Je(a[n],a[++n],a[++n]);_e.__c&&_e.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){_e.__e(e,t.__v)}}))}function Ve(e,t,a,n,l,r,s,i,o){var c,u,m,d,p,g,_,f=a.props,h=t.props,y=t.type;if("svg"===y?l="http://www.w3.org/2000/svg":"math"===y?l="http://www.w3.org/1998/Math/MathML":l||(l="http://www.w3.org/1999/xhtml"),null!=r)for(c=0;c<r.length;c++)if((p=r[c])&&"setAttribute"in p==!!y&&(y?p.localName===y:3===p.nodeType)){e=p,r[c]=null;break}if(null==e){if(null===y)return document.createTextNode(h);e=document.createElementNS(l,y,h.is&&h),r=null,i=!1}if(null===y)f===h||i&&e.data===h||(e.data=h);else{if(r=r&&ge.call(e.childNodes),f=a.props||ke,!i&&null!=r)for(f={},c=0;c<e.attributes.length;c++)f[(p=e.attributes[c]).name]=p.value;for(c in f)if(p=f[c],"children"==c);else if("dangerouslySetInnerHTML"==c)m=p;else if("key"!==c&&!(c in h)){if("value"==c&&"defaultValue"in h||"checked"==c&&"defaultChecked"in h)continue;Be(e,c,null,p,l)}for(c in h)p=h[c],"children"==c?d=p:"dangerouslySetInnerHTML"==c?u=p:"value"==c?g=p:"checked"==c?_=p:"key"===c||i&&"function"!=typeof p||f[c]===p||Be(e,c,p,f[c],l);if(u)i||m&&(u.__html===m.__html||u.__html===e.innerHTML)||(e.innerHTML=u.__html),t.__k=[];else if(m&&(e.innerHTML=""),De(e,xe(d)?d:[d],t,a,n,"foreignObject"===y?"http://www.w3.org/1999/xhtml":l,r,s,r?r[0]:a.__k&&Fe(a,0),i,o),null!=r)for(c=r.length;c--;)null!=r[c]&&Pe(r[c]);i||(c="value",void 0!==g&&(g!==e[c]||"progress"===y&&!g||"option"===y&&g!==f[c])&&Be(e,c,g,f[c],l),c="checked",void 0!==_&&_!==e[c]&&Be(e,c,_,f[c],l))}return e}function Je(e,t,a){try{if("function"==typeof e){var n="function"==typeof e.__u;n&&e.__u(),n&&null==t||(e.__u=e(t))}else e.current=t}catch(e){_e.__e(e,a)}}function Qe(e,t,a){var n,l;if(_e.unmount&&_e.unmount(e),(n=e.ref)&&(n.current&&n.current!==e.__e||Je(n,null,t)),null!=(n=e.__c)){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(e){_e.__e(e,t)}n.base=n.__P=null}if(n=e.__k)for(l=0;l<n.length;l++)n[l]&&Qe(n[l],t,a||"function"!=typeof e.type);a||null==e.__e||Pe(e.__e),e.__c=e.__=e.__e=e.__d=void 0}function Ye(e,t,a){return this.constructor(e,a)}ge=Ne.slice,_e={__e:function(e,t,a,n){for(var l,r,s;t=t.__;)if((l=t.__c)&&!l.__)try{if((r=l.constructor)&&null!=r.getDerivedStateFromError&&(l.setState(r.getDerivedStateFromError(e)),s=l.__d),null!=l.componentDidCatch&&(l.componentDidCatch(e,n||{}),s=l.__d),s)return l.__E=l}catch(t){e=t}throw e}},fe=0,Oe.prototype.setState=function(e,t){var a;a=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=Ce({},this.state),"function"==typeof e&&(e=e(Ce({},a),this.props)),e&&Ce(a,e),null!=e&&this.__v&&(t&&this._sb.push(t),Le(this))},Oe.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Le(this))},Oe.prototype.render=Te,he=[],Ee="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,be=function(e,t){return e.__v.__b-t.__v.__b},Me.__r=0,ve=0,Ae=He(!1),we=He(!0);const Ze=({feedSettings:a,feedItem:n})=>(0,e.createElement)(t.Fragment,null,(0,e.createElement)("div",{className:"instagram-gallery-item__media-mask"}),"BUSINESS"==n.user_type&&(0,e.createElement)("div",{className:"instagram-gallery-item__media-mask--content"},!!a.mask.likes_count&&(0,e.createElement)("span",{className:"instagram-gallery-item__likes_count--mask"},(0,e.createElement)("i",{className:"qligg-icon-heart instagram-gallery-item__icon-heart"}),n.likes_count||0),!!a.mask.comments_count&&(0,e.createElement)("span",{className:"instagram-gallery-item__comments_count--mask"},(0,e.createElement)("i",{className:"qligg-icon-comment instagram-gallery-item__icon-bubble_chat"}),n.comments_count||0))),$e=({feedItem:t,length:a,index:n,feedSettings:l})=>{const{setIsImageLoad:r}=ae(),s="CAROUSEL_ALBUM"===t.media_type&&"VIDEO"===t.media.type,i=null===t.media.url,o=()=>{r(n===a-1)};return(0,e.createElement)("div",{className:"instagram-gallery-item__media-wrap"},i?(0,e.createElement)("img",{alt:"instagram",className:F()("instagram-gallery-item__media"),src:l.copyright.placeholder?l.copyright.placeholder:t.media.thumbnail,onLoad:()=>o()}):"VIDEO"===t.media_type||s?(0,e.createElement)("video",{alt:"instagram",poster:t.media.thumbnail,className:"instagram-gallery-item__media",src:t.media.url,onLoadedData:()=>o()}):(0,e.createElement)("img",{alt:"instagram",className:"instagram-gallery-item__media",src:t.media.url,onLoad:()=>o()}),l.mask.display&&(0,e.createElement)(Ze,{feedItem:t,feedSettings:l}),"VIDEO"===t.media_type&&!i&&(0,e.createElement)("i",{className:"instagram-gallery-item__icon qligg-icon-video instagram-gallery-item__icon--views"}),"CAROUSEL_ALBUM"===t.media_type&&(0,e.createElement)("i",{className:"instagram-gallery-item__icon qligg-icon-gallery instagram-gallery-item__icon--views"}),(0,e.createElement)("a",{className:"instagram-gallery-item__icon qligg-icon-instagram instagram-gallery-item__icon--views_count",href:t.link,target:"_blank",rel:"noreferrer"}))},Xe=e=>{const t=e.highlight.tag?.split(" ");return t.map((e=>e.includes("#")?e:e.split(" ").map((e=>"#"+e)).join(" ")))},Ke=(e,t)=>{if(!e)return;const a=e.replace(/<[^>]+>/g,"");let n=a;return n=e.match("[-ヿ㐀-䶿一-鿿豈-ヲ-゚]")?a.split("",t).join(""):a.split(" ",t).join(" "),n.length<e.length?`${n}...`:n},et=(0,t.memo)((({feedSettings:t,feedItem:a})=>(0,e.createElement)("div",{className:"instagram-gallery-item__media-card"},(0,e.createElement)("div",{className:"instagram-gallery-item__info"},!!a.date&&(0,e.createElement)("span",{className:"instagram-gallery-item__date"},(0,e.createElement)("i",{className:"qligg-icon-date"}),a.date),"BUSINESS"==a.user_type&&(0,e.createElement)("div",{className:"instagram-gallery-item__icons"},!!t.card.likes_count&&(0,e.createElement)("span",{className:"instagram-gallery-item__likes_count"},(0,e.createElement)("i",{className:"qligg-icon-heart"}),a.likes_count||0),!!t.card.comments_count&&(0,e.createElement)("span",{className:"instagram-gallery-item__comments_count"},(0,e.createElement)("i",{className:"qligg-icon-comment"}),a.comments_count||0))),!!t.card.text_length&&!!a.media_description&&(0,e.createElement)("p",{className:"instagram-gallery-item__media_description"},Ke(a.media_description,t.card.text_length))))),tt=(a=>(n,l)=>{const{feedSettings:r}=n;return(0,e.createElement)(t.Fragment,null,(0,e.createElement)("style",null,r.card.text_align&&`\n\t\t\t\t\t\t#instagram-gallery-feed-${r.id} .instagram-gallery-item .instagram-gallery-item__media-card .instagram-gallery-item__media_description{\n\t\t\t\t\t\ttext-align: ${r.card.text_align};\n\t\t\t\t\t\t}\n\t\t\t\t\t`),(0,e.createElement)(a,{...n,forwardRef:l}))})((({index:t,length:a,feedSettings:n,feedItem:l,onClick:r})=>{const s=function(e,t,a){if(!["highlight","highlight-square"].includes(e.layout))return!1;if(!e?.highlight)return!1;for(const n in e.highlight){const l=e.highlight[n].split(",").map((e=>e.toString().trim()));switch(n){case"position":if(l.includes(a.toString()))return!0;break;case"id":if(l.includes(t.id))return!0;break;case"tag":const n=t.tags?.filter((t=>Xe(e).includes(t))).length;if(n)return!0}}return!1}(n,l,t),i=function(e){return["carousel","carousel-vertical"].includes(e.layout)}(n),o=!n?.modal?.display&&!!l?.share_url,c=o?"a":"div";return(0,e.createElement)(c,{href:o?l.share_url:void 0,target:o?"_blank":void 0,className:F()("instagram-gallery-item",i&&"swiper-slide",s&&"highlight",`instagram-gallery-item--cols-${n.columns}`),"data-elementor-open-lightbox":"no","data-feed-item-index":t,onClick:r},(0,e.createElement)("div",{className:"instagram-gallery-item__wrap"},(0,e.createElement)($e,{index:t,feedItem:l,length:a,feedSettings:n}),n.card.display&&(0,e.createElement)(et,{feedItem:l,feedSettings:n})))})),at="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMjRweCIgaGVpZ2h0PSIyNHB4IiBwcmVzZXJ2ZUFzcGVjdFJhdGlvPSJ4TWlkWU1pZCBtZWV0IiB2aWV3Qm94PSIwIDAgMjAgMjAiIHN0eWxlPSItbXMtdHJhbnNmb3JtOiByb3RhdGUoMzYwZGVnKTsgLXdlYmtpdC10cmFuc2Zvcm06IHJvdGF0ZSgzNjBkZWcpOyB0cmFuc2Zvcm06IHJvdGF0ZSgzNjBkZWcpOyI+PHBhdGggZmlsbD0iI2ZmZiIgZD0iTTE2IDE3SDJsMy41LTQuNWwyLjUgM2wzLTMuODFBMiAyIDAgMCAxIDEwIDEwVjZIMmEyIDIgMCAwIDAtMiAydjEwYTIgMiAwIDAgMCAyIDJoMTRhMiAyIDAgMCAwIDItMnYtNmgtNS43NXoiLz48cGF0aCBmaWxsPSIjZmZmIiBkPSJNMTkgNGgtLjVWMi41YTIuNSAyLjUgMCAwIDAtNSAwVjRIMTNhMSAxIDAgMCAwLTEgMXY0YTEgMSAwIDAgMCAxIDFoNmExIDEgMCAwIDAgMS0xVjVhMSAxIDAgMCAwLTEtMXptLTMgNGExIDEgMCAxIDEgMS0xYTEgMSAwIDAgMS0xIDF6bTEuNS00aC0zVjIuNzVDMTQuNSAyIDE0LjUgMSAxNiAxczEuNSAxIDEuNSAxLjc1eiIvPjwvc3ZnPgo=",nt=({currentFeedItem:a,feedSettings:n})=>{const l=(0,t.useRef)(null);return(0,e.createElement)("section",{className:"instagram-gallery-modal__media-container insta-gallery-slider-container"},(0,e.createElement)("div",{ref:l,className:"insta-gallery-slider"},a.children.map((t=>(0,e.createElement)("div",{className:"insta-gallery__media"},null===t.media.url?(0,e.createElement)("img",{className:F()("instagram-gallery-modal__media",!n.copyright.placeholder&&"instagram-gallery-modal__media--placeholder"),src:n.copyright.placeholder?n.copyright.placeholder:at}):"VIDEO"===t.media.type?(0,e.createElement)("video",{controls:!0,poster:t.media.thumbnail,className:"instagram-gallery-modal__media",src:t.media.url}):(0,e.createElement)("img",{className:"instagram-gallery-modal__media",src:t.media.url}))))),(0,e.createElement)("div",{className:"insta-gallery-slider__button-container"},(0,e.createElement)("span",{onClick:()=>{if(l.current.children.length>0){const e=l.current.children.length-1,t=l.current.children[e];l.current.insertBefore(t,l.current.firstChild),l.current.style.transition="none";const a=l.current.children[0].offsetWidth;l.current.style.transform=`translateX(-${a}px)`,setTimeout((()=>{l.current.style.transition="200ms ease-out all",l.current.style.transform="translateX(0)"}),30)}},className:"insta-gallery-slider__button insta-gallery-slider__button--left qligg-icon-prev"}),(0,e.createElement)("span",{onClick:()=>{if(l.current.children.length>0){const e=l.current.children[0];l.current.style.transition="300ms ease-out all";const t=l.current.children[0].offsetWidth;l.current.style.transform=`translateX(-${t}px)`;const a=()=>{l.current.style.transition="none",l.current.style.transform="translateX(0)",l.current.appendChild(e),l.current.removeEventListener("transitionend",a)};l.current.addEventListener("transitionend",a)}},className:"insta-gallery-slider__button insta-gallery-slider__button--right qligg-icon-next"})))},lt=(0,t.memo)((({currentFeedItem:t,feedSettings:a})=>{const n=null===t.media.url;if(null===t?.media.url&&"CAROUSEL_ALBUM"!==t?.media_type)return(0,e.createElement)("section",{className:"instagram-gallery-modal__media-container"},(0,e.createElement)("img",{className:"instagram-gallery-modal__media",src:a.copyright.placeholder?a.copyright.placeholder:t.media.thumbnail}),"VIDEO"===t.media_type&&n&&(0,e.createElement)("img",{alt:"thumbnail",src:at,className:"instagram-gallery-item__icon qligg-icon-video instagram-gallery-item__icon--views"}));switch(t.media_type){case"CAROUSEL_ALBUM":return(0,e.createElement)(nt,{feedSettings:a,currentFeedItem:t});case"VIDEO":return(0,e.createElement)("section",{className:"instagram-gallery-modal__media-container"},(0,e.createElement)("video",{poster:t.media.thumbnail,controls:!0,className:"instagram-gallery-modal__media",src:t.media.url}));default:return(0,e.createElement)("section",{className:"instagram-gallery-modal__media-container"},!!t.media.url&&(0,e.createElement)("img",{className:"instagram-gallery-modal__media",src:t.media.url}))}})),rt=(a=>(n,l)=>{const{feedSettings:r}=n;return(0,e.createElement)(t.Fragment,null,(0,e.createElement)("style",null,r.modal.text_align&&`\n\t\t\t\t\t\t#instagram-gallery-modal-${r.id} .instagram-gallery-modal .instagram-gallery-modal__body .instagram-gallery-modal__media-sidebar .instagram-gallery-modal__media_description {\n\t\t\t\t\t\ttext-align: ${r.modal.text_align};\n\t\t\t\t\t\tfont-size: ${r.modal.font_size}px;\n\t\t\t\t\t\t}\n\t\t\t\t\t`),(0,e.createElement)(a,{...n,forwardRef:l}))})((({currentFeedItem:t,userProfile:a,feedItemsNumber:n,feedSettings:l})=>{const{currentFeedIndex:r}=ae();return(0,e.createElement)("section",{className:"instagram-gallery-modal__media-sidebar"},l.modal.profile&&"tag"!==l.source&&(0,e.createElement)("div",{className:"instagram-gallery-modal__profile"},"BUSINESS"==t.user_type&&(0,e.createElement)("img",{alt:a.nickname,src:a.avatar}),(0,e.createElement)("div",null,(0,e.createElement)("span",null,a.nickname),(0,e.createElement)("a",{href:a.link,title:a.nickname,target:"_blank",rel:"noopener noreferrer"},`@${a.username}`))),(0,e.createElement)("div",{className:"instagram-gallery-modal__icons"},(0,e.createElement)("span",{className:"instagram-gallery-modal__counter"},`${r+1} / ${n}`),(0,e.createElement)("a",{className:"instagram-gallery-modal__link",href:t.share_url,target:"_blank",rel:"noopener noreferrer"},(0,e.createElement)("i",{className:"qligg-icon-instagram"})," Instagram")),l.modal.media_description&&(0,e.createElement)("p",{className:"instagram-gallery-modal__media_description",dangerouslySetInnerHTML:{__html:Ke(t.media_description,l.modal.text_length)}}),(l.modal.likes_count||l.modal.comments_count)&&"BUSINESS"==t.user_type&&(0,e.createElement)("div",{className:"instagram-gallery-modal__info"},l.modal.likes_count&&(0,e.createElement)("span",{className:"instagram-gallery-modal__likes_count"},(0,e.createElement)("i",{className:"qligg-icon-heart"}),t.likes_count||0),l.modal.comments_count&&(0,e.createElement)("span",{className:"instagram-gallery-modal__comments_count"},(0,e.createElement)("i",{className:"qligg-icon-comment"}),t.comments_count||0)))})),st=({isPrevious:t,classname:a,onClick:n})=>(0,e.createElement)("span",{className:F()("instagram-gallery-modal__button-arrow",a,t&&"qligg-icon-prev",!t&&"qligg-icon-next"),onClick:n}),it=({onClick:t})=>(0,e.createElement)("span",{className:"instagram-gallery-modal__button-close",onClick:t}),ot=({children:t,id:a})=>{const{isOpen:n,setIsOpen:l}=ae();return n?(0,e.createElement)("div",{className:"instagram-gallery-modal__overlay",id:a,onClick:()=>l(!1)},t):null},ct=({feedItems:a,feedSettings:n,userProfile:l})=>{const{currentFeedIndex:r,setCurrentFeedIndex:s}=ae(),{setIsOpen:i}=ae(),[o,c]=(0,t.useState)(a[r]),u=!!a[r-1],m=!!a[r+1];return(0,t.useEffect)((()=>{c(a[r])}),[r]),(0,e.createElement)(ot,{id:`instagram-gallery-modal-${n.id}`},(0,e.createElement)("div",{className:"instagram-gallery-modal",onClick:e=>e.stopPropagation()},(0,e.createElement)("div",{className:"instagram-gallery-modal__options"},(0,e.createElement)("div",{className:"instagram-gallery-modal__options--arrows"},(0,e.createElement)(st,{isPrevious:!0,onClick:e=>{e.stopPropagation(),s(u?r-1:a.length-1)}}),(0,e.createElement)(st,{next:!0,onClick:e=>{e.stopPropagation(),s(m?r+1:0)}})),(0,e.createElement)(it,{onClick:()=>i(!1)})),(0,e.createElement)("section",{className:F()("instagram-gallery-modal__body","right"!==n.modal.modal_align&&`instagram-gallery-modal__body--sidebar-${n.modal.modal_align}`)},(0,e.createElement)(lt,{feedSettings:n,currentFeedItem:o}),(0,e.createElement)(rt,{feedSettings:n,currentFeedItem:o,userProfile:l,feedItemsNumber:a.length}))))},ut=(0,t.forwardRef)((a=>(n,l)=>{const{feedSettings:r}=n,s=!!r.box.display,i="carousel"==r.layout,o="carousel"!==r.layout,c=!!r.card.display,u=!!r.mask.display,m=["masonry","highlight"].includes(r.layout);return(0,e.createElement)(t.Fragment,null,(0,e.createElement)("style",null,s&&`#instagram-gallery-feed-${r.id} {\n\t\t\t\t\t\t\t\tbackground-color: ${r.box.background}; \n\t\t\t\t\t\t\t\tcolor: ${r.box.text_color}; \n\t\t\t\t\t\t\t\tborder-radius: ${r.box.radius}px;\n\t\t\t\t\t\t\t\tpadding: ${r.box.padding}px;\n\t\t\t\t\t\t\t}`,i&&`#instagram-gallery-feed-${r.id} .swiper-container .swiper-button-prev,\n\t\t\t\t\t\t\t#instagram-gallery-feed-${r.id} .swiper-container .swiper-button-next {\n\t\t\t\t\t\t\t\tcolor: ${r.carousel.navarrows_color}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t#instagram-gallery-feed-${r.id} .swiper-container .swiper-pagination .swiper-pagination-bullet {\n\t\t\t\t\t\t\t\tbackground-color: ${r.carousel.pagination_color}\n\t\t\t\t\t\t\t}`,o&&`#instagram-gallery-feed-${r.id} .instagram-gallery-item {\n\t\t\t\t\t\t\t\tpadding: ${r.spacing}px;\n\t\t\t\t\t\t\t}`,c&&`#instagram-gallery-feed-${r.id} .instagram-gallery-item__wrap {\n\t\t\t\t\t\t\t\tbackground-color: ${r.card.background};\n\t\t\t\t\t\t\t\tcolor: ${r.card.text_color};\n\t\t\t\t\t\t\t\tfont-size: ${r.card.font_size}px;\n\t\t\t\t\t\t\t\tpadding: ${r.card.padding}px;\n\t\t\t\t\t\t\t\tborder-radius: ${r.card.radius}px;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t#instagram-gallery-feed-${r.id} .instagram-gallery-item__wrap:hover {\n\t\t\t\t\t\t\t\tbackground-color: ${r.card.background_hover};\n\t\t\t\t\t\t\t}`,c&&m&&`#instagram-gallery-feed-${r.id} .instagram-gallery-item__wrap {\n\t\t\t\t\t\t\t\twidth: initial !important;\n\t\t\t\t\t\t\t`,u&&`#instagram-gallery-feed-${r.id} .instagram-gallery-item__media-mask { \n \t\t\t\tbackground-color: ${r.mask.background} !important;\n \t\t\t\t}`),(0,e.createElement)(a,{...n,forwardRef:l}))})((a=>{const n=a.target.parentNode,{masonryRef:l,userMediaList:r,feedSettings:s,className:i,userProfile:o}=a,{currentFeedIndex:c,setCurrentFeedIndex:u}=ae(),{setIsOpen:m}=ae(),d=!!s?.modal?.display;return(0,e.createElement)(t.Fragment,null,(0,e.createElement)("div",{ref:l,className:F()("instagram-gallery-list",i),"data-feed_layout":s.layout},r.data.map(((t,a)=>{const n=r.data.length;return(0,e.createElement)(tt,{key:t.id,index:a,length:n,feedItem:t,feedSettings:s,onClick:()=>{d&&(u(a),m(!0))}})}))),d&&(0,t.createPortal)((0,e.createElement)(ct,{userProfile:o,feedSettings:s,currentFeedIndex:c,feedItems:r.data}),n))}))),mt=function(e,a){const n=(0,t.useRef)();return(0,t.useCallback)((t=>{t?n.current=e(t):n.current&&n.current()}),a)},dt=a=>{const{target:n,userMediaList:l}=a,[r,s]=(0,t.useState)(!0),{isImageLoad:i}=ae(),o=mt((e=>{const{ownerDocument:t}=e,{defaultView:a}=t;if(!a.Masonry&&!i)return;const l=new a.Masonry(e,{itemSelector:".instagram-gallery-item",isResizable:!0,isAnimated:!1,transitionDuration:0,percentPosition:!0,columnWidth:".instagram-gallery-item:last-child"});s(!1),n.classList.add("loaded");const r=new a.MutationObserver((()=>{l.layout()})),o=e.querySelector(".instagram-gallery-item__wrap");return o&&r.observe(o,{childList:!0,subtree:!0}),()=>{r.disconnect(),l.destroy()}}),[l,i]);return(0,e.createElement)(t.Fragment,null,r&&(0,e.createElement)(me,null),(0,e.createElement)(ut,{...a,masonryRef:o}))},pt=a=>{const{userMediaList:n,feedSettings:l}=a,{setCurrentFeedIndex:r}=ae(),{setIsOpen:s}=ae(),i=(0,t.useCallback)((e=>{if(e){const{defaultView:t}=document;if(!t.Swiper)return;new t.Swiper(e,{slideClass:"instagram-gallery-item",loop:!0,loopedSlidesLimit:!1,centeredSlides:l.carousel.centered_slides,allowTouchMove:!1,slidesPerView:l.carousel.slidespv,spaceBetween:l.spacing?Number(l.spacing):0,autoplay:l.carousel.autoplay&&{delay:l.carousel.autoplay_interval},pagination:{el:e.querySelector(".swiper-pagination"),dynamicBullets:!0,clickable:!0,type:"bullets"},navigation:{nextEl:e.querySelector(".swiper-button-next"),prevEl:e.querySelector(".swiper-button-prev")},breakpoints:{320:{slidesPerView:1,spaceBetween:1},480:{spaceBetween:l.spacing?Number(l.spacing):0,slidesPerView:Math.min(2,l.carousel.slidespv)},768:{spaceBetween:l.spacing?Number(l.spacing):0,slidesPerView:Math.min(3,l.carousel.slidespv)},1024:{spaceBetween:l.spacing?Number(l.spacing):0,slidesPerView:l.carousel.slidespv}}});const a=()=>{e.addEventListener("click",(e=>{(e.target.classList.contains(".swiper-slide-duplicate")||e.target.closest(".swiper-slide-duplicate"))&&(s(!0),r(Number(e.target.closest(".swiper-slide-duplicate").dataset.feedItemIndex)))}))};a()}}),[n,l]);return(0,e.createElement)("div",{ref:i,className:"swiper-container"},(0,e.createElement)(ut,{className:"swiper-wrapper instagram-gallery-square",...a}),l.carousel.pagination&&(0,e.createElement)("div",{className:"swiper-pagination"}),l.carousel.navarrows&&(0,e.createElement)(t.Fragment,null,(0,e.createElement)("div",{tabIndex:"1",className:"swiper-button-prev"}),(0,e.createElement)("div",{tabIndex:"1",className:"swiper-button-next"})))},gt=a=>{const n=(0,t.useRef)();return(0,e.createElement)(ut,{ref:n,className:"instagram-gallery-square",...a})},_t=a=>{const{feedSettings:n,target:l,userMediaList:r}=a,[s,i]=(0,t.useState)(!0),{isImageLoad:o}=ae(),c=mt((e=>{const{ownerDocument:t}=e,{defaultView:a}=t;if(!a.Masonry&&!o)return;const r=new a.Masonry(e,{itemSelector:".instagram-gallery-item",isResizable:!0,isAnimated:!1,transitionDuration:0,percentPosition:!0,columnWidth:(()=>{const t=e?.querySelector(".instagram-gallery-item:not(.highlight)").offsetWidth,a=e?.offsetWidth;return a/(t-n.spacing)})()});i(!1),l.classList.add("loaded");const s=new a.MutationObserver((()=>{r.layout()})),c=e.querySelector(".instagram-gallery-item__wrap");return c&&s.observe(c,{childList:!0,subtree:!0}),()=>{s.disconnect(),r.destroy()}}),[r,o]);return(0,e.createElement)(t.Fragment,null,s&&(0,e.createElement)(me,null),(0,e.createElement)(ut,{masonryRef:c,...a}))},ft=t=>{const{feedSettings:a}=t,{layout:n}=a;switch(n){case"masonry":return(0,e.createElement)(dt,{...t});case"carousel":return(0,e.createElement)(pt,{...t});case"highlight":return(0,e.createElement)(_t,{...t});default:return(0,e.createElement)(gt,{...t})}},ht=a=>{const{target:n,feedSettings:l}=a,{isLoading:r,userProfile:s,error:i}=(e=>{const{account_id:a}=e,[n,l]=(0,t.useState)(!0),[r,s]=(0,t.useState)(null),[i,o]=(0,t.useState)(null);return(0,t.useEffect)((()=>{(async()=>{l(!0);try{const t=await async function(e){const t=window?.qligg_frontend?.restRoutePaths.userprofile,a=se({account_id:e.account_id}).toString(),n=`${t}${t.includes("?")?"&":"?"}${a}`;return await re({url:n,method:"GET"})}(e);s(t),l(!1)}catch(e){l(!1),o(e)}})()}),[a]),{isLoading:n,userProfile:r,error:i}})(l),{isLoading:o,isLoadingMore:c,userMediaList:u,error:m,setAfter:d}=(e=>{const{source:a,limit:n,account_id:l,tag:r,order_by:s,copyright:i,reel:o}=e,{counter:c}=ae(),[u,m]=(0,t.useState)(!0),[d,p]=(0,t.useState)(!1),[g,_]=(0,t.useState)({paging:{next:null,prev:null},data:[]}),[f,h]=(0,t.useState)(""),[y,E]=(0,t.useState)(null),{setIsImageLoad:b}=ae();return(0,t.useEffect)((()=>{E(null),(async()=>{0===c?m(!0):p(!0),b(!1);try{const t=await async function(e,t="",a=0){const n=e?.account_id,l=e?.limit,r=e?.copyright?.hide,s=e?.reel?.hide,i=e?.order_by,o=e?.tag,c=e?.source,u=window?.qligg_frontend?.restRoutePaths?.[c];if(!u)throw new Error(`Unknown source: ${c}`);const m=se({account_id:n,limit:l,hide_items_with_copyright:r,hide_reels:s,after:t,pagination:a,order_by:i,tag:o}).toString(),d=`${u}${u.includes("?")?"&":"?"}${m}`;return await re({url:d,method:"GET"})}(e,f,c);_(0===c?{paging:t?.paging,data:t?.data}:{paging:t?.paging,data:[...g?.data,...t?.data]}),m(!1),p(!1)}catch(e){m(!1),p(!1),E(e)}})()}),[n,s,l,a,r,i?.hide,o?.hide,c]),{isLoading:u,isLoadingMore:d,userMediaList:g,error:y,setAfter:h}})(l),p=r||o,g=i||m,{counter:_,setCounter:f}=ae();return(0,t.useEffect)((()=>{p||["masonry","highlight"].includes(l.layout)||n.classList.add("loaded")}),[p]),p?(0,e.createElement)(me,null):g?(0,e.createElement)(de,{errorUserProfile:i,errorUserMediaList:m}):(0,e.createElement)(t.Fragment,null,!!l?.profile?.display&&(0,e.createElement)(pe,{feedSettings:l,userProfile:s}),(0,e.createElement)(ft,{target:n,feedSettings:l,userMediaList:u,userProfile:s}),c&&(0,e.createElement)(me,null),(0,e.createElement)(ce,{userProfile:s,feedSettings:l,onClick:e=>{e.preventDefault(),d(u.paging.next),f(_+1)},after:u?.paging?.next}))};function yt({feedSettings:a}){const n=(0,t.useRef)(null),[l,r]=(0,t.useState)(null);return(0,t.useEffect)((()=>{n?.current&&!l&&r(n.current)}),[n]),(0,e.createElement)("div",{className:"instagram-gallery-feed",ref:n,id:`instagram-gallery-feed-${a.id}`},!!l&&(0,e.createElement)(le,null,(0,e.createElement)(ht,{target:l,feedSettings:a})))}const Et=()=>{const{Fill:a}=G(),[n,l]=(0,t.useState)(!1),[r,s]=(0,t.useState)(!1),[i,o]=(0,t.useState)(0),{accounts:c}=(0,W.useAccountsEntities)(),u={account_id:c[i]?.id,box:{display:!1,padding:1,radius:0,background:"#fefefe",profile:!1},button:{display:!0,text:"View on Instagram",text_color:"#ffff",background:"",background_hover:""},button_load:{display:!1,text:"Load more...",text_color:"#ffff",background:"",background_hover:""},card:{display:!1,radius:1,font_size:12,background:"#ffffff",background_hover:"#ffffff"},carousel:{slidespv:5,autoplay:!1,autoplay_interval:3e3,navarrows:!0,navarrows_color:""},columns:3,copyright:{hide:!1,placeholder:""},highlight:{tag:"",id:"",position:"1,3,5"},id:0,layout:"gallery",lazy:!1,limit:12,mask:{display:!0,background:"#000000",likes_count:!0,comments_count:!0},modal:{display:!0,profile:!0,media_description:!0,likes_count:!0,comments_count:!0},order:1,order_by:"top_media",profile:{display:!0,auto:!1,username:"",nickname:"",website:"",link_text:"View on Instagram"},reel:{hide:!1},source:"username",spacing:10,tag:"wordpress"};return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(a.Header,null,(0,e.createElement)(T,null)),(0,e.createElement)(a.Navigation,null,(0,e.createElement)(R,null)),(0,e.createElement)(a.Content,null,(0,e.createElement)(K,{isOpen:n,setIsOpen:l,isOpenPreview:r,setIsOpenPreview:s,setCurrentAccountIndex:o}),(0,e.createElement)(z,{show:n,className:"insta-gallery__modal--account",onClose:()=>l(!1),__experimentalHideHeader:!0},(0,e.createElement)(ee,{isOpen:n,setIsOpen:l})),(0,e.createElement)(z,{show:r,onClose:()=>s(!1),__experimentalHideHeader:!0},(0,e.createElement)(yt,{feedSettings:u}))))},bt=[{label:(0,r.__)("General","insta-gallery"),name:"general"},{label:(0,r.__)("Profile","insta-gallery"),name:"profile"},{label:(0,r.__)("Carousel","insta-gallery"),name:"carousel"},{label:(0,r.__)("Box","insta-gallery"),name:"box"},{label:(0,r.__)("Image","insta-gallery"),name:"image"},{label:(0,r.__)("Card","insta-gallery"),name:"image-card"},{label:(0,r.__)("Modal","insta-gallery"),name:"image-modal"},{label:(0,r.__)("Button","insta-gallery"),name:"button"},{label:(0,r.__)("Button Load More","insta-gallery"),name:"button-load-more"}],vt={currentFeedIndex:null,currentTab:bt[0].name,prevPanel:null,currentFeedFormData:k},At=(0,t.createContext)({}),wt=()=>(0,t.useContext)(At),kt=(e,t)=>{switch(t.type){case"SET_CURRENT_TAB":case"SET_CURRENT_FEED":case"SET_CURRENT_FEED_FORM_DATA":return{...e,...t.payload}}return e},Nt=a=>{const{children:n}=a,[l,r]=(0,t.useReducer)(kt,vt),{feeds:s,createFeed:o,editFeed:c}=(0,W.useFeedsEntities)(),u=s[l.currentFeedIndex],m=(0,i.isEqual)(u,l.currentFeedFormData),d=["carousel"].includes(l.currentFeedFormData.layout)?l.currentTab:"carousel"===l.currentTab?"general":l.currentTab;return(0,e.createElement)(At.Provider,{value:{...l,currentTab:d,setCurrentTab:e=>{l.currentTab!=e&&r({type:"SET_CURRENT_TAB",payload:{currentTab:e}})},setCurrentFeedIndex:(e=null)=>{r({type:"SET_CURRENT_FEED",payload:{currentFeedIndex:e,currentFeedFormData:s?.[e]||vt.currentFeedFormData}})},setCurrentFeedFormData:e=>{const t=I(l.currentFeedFormData,e);r({type:"SET_CURRENT_FEED_FORM_DATA",payload:{currentFeedFormData:void 0===t?"":t}})},feeds:s,createFeed:o,editFeed:c,isCurrentFeedDataModified:m}},n)};function St({isOpen:a,setIsOpen:n,isLoading:l,setIsLoading:s}){const{isCurrentFeedDataModified:i,currentFeedFormData:o}=wt(),c=l||i||""==o.account_id;return(0,e.createElement)("div",{className:"media-frame-toolbar",style:{left:0}},(0,e.createElement)("div",{className:"media-toolbar"},(0,e.createElement)("div",{className:"media-toolbar-secondary"},!1===window?.QLIGG_IS_PREMIUM&&(0,e.createElement)("div",{style:{float:"left",marginTop:19}},(0,t.createInterpolateElement)((0,r.__)("Help us to boost this plugin and <a>enjoy Premium benefits!</a>","insta-gallery"),{a:(0,e.createElement)("a",{href:h,target:"_blank",rel:"noopener noreferrer"})})),(0,e.createElement)("span",{className:"settings-save-status media-button",style:{float:"left"}},l&&(0,e.createElement)("span",{style:{visibility:"visible"},className:"spinner"}))),(0,e.createElement)("div",{className:"media-toolbar-primary search-form"},(0,e.createElement)("button",{type:"submit",className:"media-modal-submit button button-primary media-button button-large ",disabled:c},(0,r.__)("Save","insta-gallery")),(0,e.createElement)("button",{type:"button",className:"media-modal-close button button-secondary media-button button-large",style:{height:"auto",float:"none",position:"inherit",padding:"inherit"},onClick:()=>n(!1)},(0,r.__)("Close","insta-gallery")))))}function xt({setIsOpen:t,isNewFeed:a,currentFeedId:n}){const{feeds:l,currentFeedIndex:s,setCurrentFeedIndex:i}=wt(),o=s-1,c=s+1;return(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"edit-media-header"},!a&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)("button",{type:"button",className:"left",disabled:!l[o],onClick:()=>{i(o)}},(0,e.createElement)("span",{className:"screen-reader-text"},(0,r.__)("Edit previous media item","insta-gallery"))),(0,e.createElement)("button",{type:"button",className:"right",disabled:!l[c],onClick:()=>{i(c)}},(0,e.createElement)("span",{className:"screen-reader-text"},(0,r.__)("Edit next media item","insta-gallery")))),(0,e.createElement)("button",{type:"button",className:"media-modal-close",onClick:()=>t(!1)},(0,e.createElement)("span",{className:"media-modal-icon"},(0,e.createElement)("span",{className:"screen-reader-text"},(0,r.__)("Close dialog","insta-gallery"))))),(0,e.createElement)("div",{className:"media-frame-title"},(0,e.createElement)("h1",null,(0,r.sprintf)((0,r.__)("Edit feed # %s","insta-gallery"),a?(0,r.__)("New","insta-gallery"):n))))}At.Consumer;const Ct=[{name:"gallery",title:"Gallery",premium:!1},{name:"carousel",title:"Carousel",premium:!1},{name:"masonry",title:"Masonry",premium:!0},{name:"highlight",title:"Highlight",premium:!0}];var Pt=a(736),It=a.n(Pt);class Tt extends t.Component{constructor(){super(...arguments),this.updateAttachmentInfo=this.updateAttachmentInfo.bind(this),this.params={height:250,width:250,flex_width:!0,flex_height:!0}}onChange(e){this.props.onChange({attachment_id:e.id,name:e.name,x:0,y:0,url:e.url,type:e.type})}initFrame(){document.querySelector(".media-modal-close"),this.frame=wp.media({button:{text:(0,r.__)("Select","insta-gallery"),close:!1},states:[new wp.media.controller.Library({title:(0,r.__)("Select logo","insta-gallery"),library:wp.media.query({type:this.props.allowedTypes||["image"]}),multiple:!1,date:!1,priority:20,suggestedWidth:(this.props.logo||{}).width,suggestedHeight:(this.props.logo||{}).height}),...(this.props.skipCrop,[])]}),this.frame.on("select",this.onSelect,this),this.frame.on("close",(()=>{this.props.onFrameClose&&this.props.onFrameClose()})),this.frame.on("cropped",this.onCropped,this),this.frame.on("skippedcrop",this.onSkippedCrop,this)}openFrame(){this.initFrame(),this.frame.setState("library").open(),this.props.onFrameOpen&&this.props.onFrameOpen()}onSelect(){const e=this.frame.state().get("selection").first().toJSON();(this.props.logo||{}).width===e.width&&(this.props.logo||{}).height===e.height&&!(this.props.logo||{}).flex_width&&!(this.props.logo||{}).flex_height||this.props.skipCrop,this.setImageFromAttachment(e),this.frame.close()}onCropped(e){this.setImageFromAttachment(e)}calculateImageSelectOptions(e,t){const a=t.get("control"),n=!!parseInt((a.props.logo||{}).flex_width,10),l=!!parseInt((a.props.logo||{}).flex_height,10),r=e.get("width"),s=e.get("height");let i=parseInt((a.props.logo||{}).width,10),o=parseInt((a.props.logo||{}).height,10);const c=i/o,u=i,m=o;let d,p,g;return t.set("canSkipCrop",!a.mustBeCropped(n,l,i,o,r,s)),r/s>c?(o=s,i=o*c):(i=r,o=i/c),d=(r-i)/2,p=(s-o)/2,g={handles:!0,keys:!0,instance:!0,persistent:!0,imageWidth:r,imageHeight:s,minWidth:u>i?i:u,minHeight:m>o?o:m,x1:d,y1:p,x2:i+d,y2:o+p},!1===l&&!1===n&&(g.aspectRatio=i+":"+o),!0===l&&(delete g.minHeight,g.maxWidth=r),!0===n&&(delete g.minWidth,g.maxHeight=s),g}mustBeCropped(e,t,a,n,l,r){return!(!0===e&&!0===t||!0===e&&n===r||!0===t&&a===l||a===l&&n===r||l<=a)}onSkippedCrop(){const e=this.frame.state().get("selection").first().toJSON();this.setImageFromAttachment(e)}setImageFromAttachment(e){this.onChange(e),this.updateAttachmentInfo()}updateAttachmentInfo(e=!1){const t=this.props.value?.attachment_id;t&&(this.detachListener(),wp.media.attachment(t).on("change",this.updateAttachmentInfo))}detachListener(){this.props.value?.attachment_id&&wp.media.attachment(this.props.value.attachment_id).off("change",this.updateAttachmentInfo)}componentDidMount(){this.updateAttachmentInfo()}componentWillUnmount(){this.detachListener()}render(){return(0,e.createElement)("div",{className:F()("insta-gallery-control-media-upload__attachment",this.props.value?.attachment_id&&this.props.value&&"is-active"),...this.props.attr||{}},(this.props.value?.attachment_id||this.props.value?.url)&&(0,e.createElement)("div",{className:"thumbnail thumbnail-image",onClick:()=>!this.props.allowPositionPicker&&this.openFrame()},!this.props.allowPositionPicker&&(0,e.createElement)("img",{className:"attachment-thumb",src:this.props.value?.url||"",draggable:"false",alt:""})),(0,e.createElement)("div",{className:"insta-gallery-control-media-upload__attachment__actions"},this.props.value?.attachment_id||this.props.value?.url?(0,e.createElement)(e.Fragment,null,(0,e.createElement)(L.Button,{disabled:!(Number(this.props.value?.attachment_id)>1)&&"function"!=typeof this.props.onRemove,onClick:()=>{"function"!=typeof this.props.onRemove?this.props.onChange():this.props.onRemove()}},(0,r.__)("Remove","insta-gallery")),(0,e.createElement)(L.Button,{isBordered:!0,onClick:()=>this.openFrame()},this.props.filledLabel||(0,r.__)("Change","insta-gallery"))):(0,e.createElement)(L.Button,{className:F()("insta-gallery-control-media-upload__attachment__upload","upload_image_button button"),onClick:()=>this.openFrame(),style:{display:"inline-block"}},this.props.emptyLabel||(0,r.__)("Select image","insta-gallery"))))}}Tt.renderingConfig={hasRevertButton:!1},Tt.propTypes={value:It().object,onChange:It().func};const Ot=Tt;function Ft(){const{currentFeedFormData:t,setCurrentFeedFormData:a}=wt(),{accounts:n}=(0,W.useAccountsEntities)();return(0,e.createElement)("div",{className:"insta-gallery__modal__panel"},(0,e.createElement)("div",{className:"options_group"},(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,r.__)("Account","insta-gallery")),(0,e.createElement)("select",{required:!0,value:t.account_id||"",onChange:e=>a({account_id:e.target.value})},(0,e.createElement)("option",{value:""},(0,r.__)("Please select an account","insta-gallery")),n.map(((t,a)=>{const n=!window?.qligg_pro_backend&&a>0;return(0,e.createElement)("option",{key:a,value:t.id,disabled:n},t.username)}))),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,r.__)("Please select an Instagram account","insta-gallery"))))),(0,e.createElement)("div",{className:"options_group"},!!t.account_id&&!n&&(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("span",{className:"notice error",style:{marginLeft:"0",marginRight:"0",paddingTop:" 10px",paddingBottom:" 10px",display:" flex",justifyContent:" left",alignItems:" center"}},(0,e.createElement)("strong",null,(0,r.__)("No Instagram account connected. Please connect your account ","insta-gallery"),(0,e.createElement)("a",{href:"https://www.instagram.com/oauth/authorize?app_id=504270170253170&redirect_uri=https://socialfeed.quadlayers.com/instagram.php&response_type=code&scope=user_profile,user_media&state=http://localhost/wowmall/wp-admin/admin.php"},(0,r.__)("here.","insta-gallery"))))),(0,e.createElement)("p",{className:"form-field form-field--source"},(0,e.createElement)("label",null,(0,r.__)("Source","insta-gallery")),(0,e.createElement)("span",null,(0,e.createElement)("input",{type:"radio",value:"username",checked:"username"===t.source,onChange:e=>a({source:e.target.value})}),(0,e.createElement)("label",null,(0,r.__)("Username","insta-gallery"))),(0,e.createElement)("span",null,(0,e.createElement)("input",{type:"radio",value:"tag",checked:"tag"===t.source,onChange:e=>{a({source:e.target.value})},disabled:"BUSINESS"!==n?.find((e=>e.id===t.account_id))?.access_token_type}),(0,e.createElement)("label",null,(0,r.__)("Hashtag","insta-gallery")))),"BUSINESS"!==n?.find((e=>e.id===t.account_id))?.access_token_type&&(0,e.createElement)("p",{className:"form-field",style:{marginTop:-30}},(0,e.createElement)("label",null),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,r.__)("Tag option is only available for bussiness accounts.","insta-gallery"))))),"tag"===t.source&&"BUSINESS"===n?.find((e=>e.id===t.account_id))?.access_token_type&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"options_group"},(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,r.__)("Tag","insta-gallery")),(0,e.createElement)("input",{type:"text",required:!0,placeholder:"beautiful",value:t.tag,onChange:e=>{a({tag:e.target.value})}}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,r.__)("Please enter Instagram tag","insta-gallery")))),(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,r.__)("Order by","insta-gallery")),(0,e.createElement)("select",{required:!0,value:t.order_by,onChange:e=>{a({order_by:e.target.value})}},(0,e.createElement)("option",{value:"recent_media"},(0,r.__)("Recent (Within 24 hours)","insta-gallery")),(0,e.createElement)("option",{value:"top_media"},(0,r.__)("Top (Most popular first)","insta-gallery"))),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,r.__)("Please enter Instagram tag order","insta-gallery")))),"recent_media"===t.order_by?(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("span",{className:"notice error",style:{marginleft:"0",marginright:"0",paddingtop:" 10px",paddingbottom:" 10px",display:" flex",justifycontent:" left",alignitems:" center"}},(0,e.createElement)("strong",null,(0,r.__)("Due to the restrictions of the new Instagram API the recent order will only return the most recent images from the past 24 hours.","insta-gallery")))):(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("span",{className:"notice error",style:{marginleft:"0",marginright:"0",paddingtop:" 10px",paddingbottom:" 10px",display:" flex",justifycontent:" left",alignitems:" center"}},(0,e.createElement)("strong",null,(0,r.__)("Due to the restrictions of the new Instagram ","insta-gallery"),(0,e.createElement)("a",{target:"_blank",href:"https://quadlayers.com/documentation/instagram-feed-gallery/api/business/?utm_source=qligg_admin",rel:"noreferrer"},(0,r.__)("API","insta-gallery")),(0,r.__)(" it is necessary to connect a business account ","insta-gallery"),(0,e.createElement)("a",{target:"_blank",href:"https://quadlayers.com/documentation/instagram-feed-gallery/api/business/?utm_source=qligg_admin",rel:"noreferrer"},(0,r.__)("here.","insta-gallery"))))))),(0,e.createElement)("div",{className:"options_group"},(0,e.createElement)("div",{className:"form-field"},(0,e.createElement)("ul",{className:"list-images"},Ct.map((({name:n,title:l,premium:s})=>(0,e.createElement)("li",{key:n,className:F()(t.layout===n&&"active",s&&"qligg-premium-field"),onClick:()=>a({layout:n})},(0,e.createElement)("span",{style:{display:"flex",flexDirection:"column",alignItems:"center"}},(0,e.createElement)("label",null,l),(0,e.createElement)("img",{src:S(`/assets/backend/img/${n}.png`)}),s&&(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,r.__)("(Premium)","insta-gallery")))))))))),"tag"!==t.source&&(0,e.createElement)("div",{className:"options_group"},(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,r.__)("Reels","insta-gallery")),(0,e.createElement)("input",{type:"checkbox",checked:!!t.reel.hide,onChange:e=>a({reel:{hide:!!e.target.checked}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,r.__)("Hide reels from feed","insta-gallery"))))),(0,e.createElement)("div",{className:"options_group"},(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,r.__)("Copyrighted","insta-gallery")),(0,e.createElement)("input",{type:"checkbox",checked:!!t.copyright.hide,onChange:e=>a({copyright:{hide:!!e.target.checked}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,r.__)("Hide the feeds that have copyright","insta-gallery")))),(0,e.createElement)("p",{className:"form-field notice error",style:{marginleft:"0",marginright:"0",paddingtop:" 10px",paddingbottom:" 10px",display:" flex",justifycontent:" left",alignitems:" center"}},(0,r.__)("Videos containing copyrighted material will not be played. Instead, they will be displayed as images.","insta-gallery"))),(0,e.createElement)("div",{className:"options_group"},(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,r.__)("Limit","insta-gallery")),(0,e.createElement)("input",{type:"number",min:"1",max:"50",required:!0,value:t.limit,onChange:e=>a({limit:e.target.value})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,r.__)("Number of images to display","insta-gallery")))),["gallery","masonry","highlight","highlight-square"].includes(t.layout)&&(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,r.__)("Columns","insta-gallery")),(0,e.createElement)("input",{type:"number",min:"1",max:"20",required:!0,value:t.columns,onChange:e=>a({columns:e.target.value})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,r.__)("Number of images in a row","insta-gallery"))))),["highlight","highlight-square"].includes(t.layout)&&(0,e.createElement)("div",{className:"options_group"},(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,r.__)("Highlight by tag","insta-gallery")),(0,e.createElement)("textarea",{placeholder:"tag1, tag2, tag3",value:t.highlight.tag,onChange:e=>a({highlight:{tag:e.target.value}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,r.__)("Highlight feeds items with this tags","insta-gallery"))),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,r.__)("(This is a premium feature)","insta-gallery")))),(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,r.__)("Highlight by id","insta-gallery")),(0,e.createElement)("textarea",{placeholder:"101010110101010",onChange:e=>a({highlight:{id:e.target.value}}),value:t.highlight.id}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,r.__)("Highlight feeds items with this ids","insta-gallery"))),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,r.__)("(This is a premium feature)","insta-gallery")))),(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,r.__)("Highlight by position","insta-gallery")),(0,e.createElement)("textarea",{placeholder:"1, 5, 7",onChange:e=>a({highlight:{position:e.target.value}}),value:t.highlight.position}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,r.__)("Highlight feeds items in this positions","insta-gallery"))),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,r.__)("(This is a premium feature)","insta-gallery"))))))}const Rt=window.wp.blockEditor;function Lt(t){const{label:a}=t;return(0,e.createElement)("div",{className:"ql-color-palette-picker",onClick:e=>{e.preventDefault()}},(0,e.createElement)(Rt.ColorPaletteControl,{...t,showTitle:!!a}))}function Mt(){const{currentFeedFormData:t,setCurrentFeedFormData:a}=wt();return(0,e.createElement)("div",{className:"insta-gallery__modal__panel"},(0,e.createElement)("div",{className:"options_group qligg-premium-field"},(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,r.__)("Display","insta-gallery")),(0,e.createElement)("input",{type:"checkbox",checked:!!t.box.display,onChange:e=>a({box:{display:!!e.target.checked}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,r.__)("Display the Instagram Feed inside a customizable box","insta-gallery"))),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,r.__)("(This is a premium feature)","insta-gallery"))))),(0,e.createElement)("div",{className:F()("options_group qligg-premium-field",!t.box.display&&"disabled-field")},(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,r.__)("Padding","insta-gallery")),(0,e.createElement)("input",{type:"number",min:"0",max:"300",required:!!t.box.display,value:t.box.padding,onChange:e=>a({box:{padding:e.target.value}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,r.__)("Add padding to the box","insta-gallery"))),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,r.__)("(This is a premium feature)","insta-gallery")))),(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,r.__)("Radius","insta-gallery")),(0,e.createElement)("input",{min:"0",max:"1000",type:"number",required:!!t.box.display,value:t.box.radius,onChange:e=>a({box:{radius:e.target.value}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,r.__)("Add radius to the box","insta-gallery"))),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,r.__)("(This is a premium feature)","insta-gallery")))),(0,e.createElement)("div",{className:"form-field"},(0,e.createElement)("label",null,(0,r.__)("Background","insta-gallery")),(0,e.createElement)(Lt,{value:t.box.background,color:t.box.background,onChange:e=>a({box:{background:e}}),disableCustomColors:!1,label:(0,r.__)("Change background color in box","insta-gallery")}),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,r.__)("(This is a premium feature)","insta-gallery")))),(0,e.createElement)("div",{className:"form-field"},(0,e.createElement)("label",null,(0,r.__)("Text color","insta-gallery")),(0,e.createElement)(Lt,{value:t.box.text_color,color:t.box.text_color,onChange:e=>a({box:{text_color:e}}),disableCustomColors:!1,label:(0,r.__)("Change text color in box","insta-gallery")}),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,r.__)("(This is a premium feature)","insta-gallery"))))))}function Dt(){const{currentFeedFormData:t,setCurrentFeedFormData:a}=wt();return(0,e.createElement)("div",{className:"insta-gallery__modal__panel qligg-premium-field"},(0,e.createElement)("div",{className:"options_group"},(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,r.__)("Slides per view","insta-gallery")),(0,e.createElement)("input",{type:"number",min:"1",max:"10",value:t.carousel.slidespv,onChange:e=>a({carousel:{slidespv:e.target.value}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,r.__)("Number of images per slide","insta-gallery")))),(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,r.__)("Centered Slides","insta-gallery")),(0,e.createElement)("input",{type:"checkbox",checked:t.carousel.centered_slides,onChange:e=>a({carousel:{centered_slides:!!e.target.checked}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,r.__)("Center slides in carousel. Useful for an odd number of slides per view.","insta-gallery"))))),(0,e.createElement)("div",{className:"options_group"},(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,r.__)("Autoplay","insta-gallery")),(0,e.createElement)("input",{type:"checkbox",checked:t.carousel.autoplay,onChange:e=>a({carousel:{autoplay:!!e.target.checked}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,r.__)("Autoplay carousel items","insta-gallery")))),(0,e.createElement)("p",{className:F()("form-field",!t.carousel.autoplay&&"disabled-field")},(0,e.createElement)("label",null,(0,r.__)("Autoplay Interval","insta-gallery")),(0,e.createElement)("input",{type:"number",min:"1000",max:"300000",step:"100",value:t.carousel.autoplay_interval,onChange:e=>a({carousel:{autoplay_interval:e.target.value}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,r.__)("Moves carousel after a certain amount of time ","insta-gallery"))))),(0,e.createElement)("div",{className:"options_group"},(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,r.__)("Navigation","insta-gallery")),(0,e.createElement)("input",{type:"checkbox",checked:t.carousel.navarrows,onChange:e=>a({carousel:{navarrows:!!e.target.checked}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,r.__)("Display navigation arrows","insta-gallery")))),(0,e.createElement)("div",{className:F()("form-field",!t.carousel.navarrows&&"disabled-field")},(0,e.createElement)("label",null,(0,r.__)("Navigation color","insta-gallery")),(0,e.createElement)(Lt,{value:t.carousel.navarrows_color,color:t.carousel.navarrows_color,onChange:e=>a({carousel:{navarrows_color:e}}),disableCustomColors:!1,enableAlpha:!0,label:(0,r.__)("Change navigation arrows color","insta-gallery")}))),(0,e.createElement)("div",{className:"options_group"},(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,r.__)("Pagination","insta-gallery")),(0,e.createElement)("input",{type:"checkbox",checked:t.carousel.pagination,onChange:e=>a({carousel:{pagination:!!e.target.checked}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,r.__)("Display pagination dots","insta-gallery")))),(0,e.createElement)("div",{className:F()("form-field",!t.carousel.pagination&&"disabled-field")},(0,e.createElement)("label",null,(0,r.__)("Pagination color","insta-gallery")),(0,e.createElement)(Lt,{value:t.carousel.pagination_color,color:t.carousel.pagination_color,onChange:e=>a({carousel:{pagination_color:e}}),disableCustomColors:!1,enableAlpha:!0,label:(0,r.__)("Change pagination dots color","insta-gallery")}))))}function Gt(){const{currentFeedFormData:t,setCurrentFeedFormData:a}=wt(),{accounts:n}=(0,W.useAccountsEntities)();return(0,e.createElement)("div",{className:"insta-gallery__modal__panel"},(0,e.createElement)("div",{className:"options_group"},(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,r.__)("Spacing","insta-gallery")),(0,e.createElement)("input",{type:"number",min:"0",max:"50",value:t.spacing,onChange:e=>a({spacing:e.target.value}),required:!0}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,r.__)("Add spacing between images","insta-gallery"))))),(0,e.createElement)("div",{className:"options_group"},(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,r.__)("Lazy load","insta-gallery")),(0,e.createElement)("input",{type:"checkbox",checked:!!t.lazy,onChange:e=>a({lazy:!!e.target.checked})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,r.__)("Defers image load","insta-gallery"))))),(0,e.createElement)("div",{className:"options_group"},(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,r.__)("Mask","insta-gallery")),(0,e.createElement)("input",{type:"checkbox",checked:!!t.mask.display,onChange:e=>a({mask:{display:!!e.target.checked}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,r.__)("Display mask on hover","insta-gallery")))),(0,e.createElement)("div",{className:F()("form-field",!t.mask.display&&"disabled-field")},(0,e.createElement)("label",null,(0,r.__)("Mask background","insta-gallery")),(0,e.createElement)(Lt,{value:t.mask.background,color:t.mask.background,onChange:e=>a({mask:{background:e}}),disableCustomColors:!1,enableAlpha:!0,label:(0,r.__)("Change background color in mask","insta-gallery")}))),"BUSINESS"!=n?.find((e=>e.id===t.account_id))?.access_token_type&&(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("span",{className:"notice error",style:{marginleft:"0",marginright:"0",paddingtop:" 10px",paddingbottom:" 10px",display:" flex",justifycontent:" left",alignitems:" center"}},(0,e.createElement)("small",null,(0,r.__)("Likes and comments options are only available for business account.","insta-gallery")))),(0,e.createElement)("div",{className:F()("options_group",!t.mask.display&&"disabled-field","BUSINESS"!=n?.find((e=>e.id===t.account_id))?.access_token_type&&"disabled-field")},(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,r.__)("Likes","insta-gallery")),(0,e.createElement)("input",{type:"checkbox",checked:!!t.mask.likes_count,onChange:e=>a({mask:{likes_count:!!e.target.checked}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,r.__)("Display likes count in mask","insta-gallery")))),(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,r.__)("Comments","insta-gallery")),(0,e.createElement)("input",{type:"checkbox",checked:t.mask.comments_count,onChange:e=>a({mask:{comments_count:!!e.target.checked}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,r.__)("Display comments count in mask","insta-gallery"))))))}function jt(){const{currentFeedFormData:t,setCurrentFeedFormData:a}=wt(),{accounts:n}=(0,W.useAccountsEntities)();return(0,e.createElement)("div",{className:"insta-gallery__modal__panel"},(0,e.createElement)("div",{className:"options_group qligg-premium-field"},(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,r.__)("Display","insta-gallery")),(0,e.createElement)("input",{type:"checkbox",checked:!!t.card.display,onChange:e=>a({card:{display:!!e.target.checked}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,r.__)("Display card in image","insta-gallery"))),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,r.__)("(This is a premium feature)","insta-gallery"))))),(0,e.createElement)("div",{className:F()("options_group qligg-premium-field",!t.card.display&&"disabled-field")},(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,r.__)("Radius","insta-gallery")),(0,e.createElement)("input",{type:"number",min:"0",max:"1000",required:!!t.card.display,value:t.card.radius,onChange:e=>a({card:{radius:e.target.value}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,r.__)("Add radius to the card","insta-gallery"))),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,r.__)("(This is a premium feature)","insta-gallery")))),(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,r.__)("Font size","insta-gallery")),(0,e.createElement)("input",{type:"number",min:"8",max:"36",required:!!t.card.display,value:t.card.font_size,onChange:e=>a({card:{font_size:e.target.value}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,r.__)("Change font size in cards","insta-gallery"))),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,r.__)("(This is a premium feature)","insta-gallery")))),(0,e.createElement)("div",{className:"form-field"},(0,e.createElement)("label",null,(0,r.__)("Background","insta-gallery")),(0,e.createElement)(Lt,{value:t.card.background,color:t.card.background,onChange:e=>a({card:{background:e}}),disableCustomColors:!1,enableAlpha:!0,label:(0,r.__)("Change background color in cards","insta-gallery")}),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,r.__)("(This is a premium feature)","insta-gallery")))),(0,e.createElement)("div",{className:"form-field"},(0,e.createElement)("label",null,(0,r.__)("Background hover","insta-gallery")),(0,e.createElement)(Lt,{value:t.card.background_hover,color:t.card.background_hover,onChange:e=>a({card:{background_hover:e}}),disableCustomColors:!1,enableAlpha:!0,label:(0,r.__)("Change background color hover in cards","insta-gallery")}),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,r.__)("(This is a premium feature)","insta-gallery")))),(0,e.createElement)("div",{className:"form-field"},(0,e.createElement)("label",null,(0,r.__)("Text color","insta-gallery")),(0,e.createElement)(Lt,{value:t.card.text_color,color:t.card.text_color,onChange:e=>a({card:{text_color:e}}),disableCustomColors:!1,enableAlpha:!0,label:(0,r.__)("Change text color","insta-gallery")}),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,r.__)("(This is a premium feature)","insta-gallery")))),(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,r.__)("Padding","insta-gallery")),(0,e.createElement)("input",{type:"number",min:"0",max:"20",value:t.card.padding,required:!!t.card.display,onChange:e=>a({card:{padding:e.target.value}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,r.__)("Add padding in cards","insta-gallery")))),"BUSINESS"!=n?.find((e=>e.id===t.account_id))?.access_token_type&&(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("span",{className:"notice error",style:{marginleft:"0",marginright:"0",paddingtop:" 10px",paddingbottom:" 10px",display:" flex",justifycontent:" left",alignitems:" center"}},(0,e.createElement)("small",null,(0,r.__)("Likes and comments options are only available for business account.","insta-gallery")))),(0,e.createElement)("div",{className:F()("BUSINESS"!=n?.find((e=>e.id===t.account_id))?.access_token_type&&"disabled-field")},(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,r.__)("Likes","insta-gallery")),(0,e.createElement)("input",{type:"checkbox",checked:!!t.card.likes_count,onChange:e=>a({card:{likes_count:!!e.target.checked}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,r.__)("Display likes count in cards","insta-gallery"))),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,r.__)("(This is a premium feature)","insta-gallery")))),(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,r.__)("Comments","insta-gallery")),(0,e.createElement)("input",{type:"checkbox",checked:!!t.card.comments_count,onChange:e=>a({card:{comments_count:!!e.target.checked}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,r.__)("Display comments count in cards","insta-gallery"))),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,r.__)("(This is a premium feature)","insta-gallery"))))),(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,r.__)("Length","insta-gallery")),(0,e.createElement)("input",{type:"number",min:"1",max:"100",value:t.card.text_length,required:!!t.card.display,onChange:e=>a({card:{text_length:e.target.value}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,r.__)("Limit the length of the description in the card","insta-gallery")))),(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,r.__)("Text align","insta-gallery")),(0,e.createElement)("select",{value:t.card.text_align||"",onChange:e=>a({card:{text_align:e.target.value}})},[{name:"left",label:(0,r.__)("Left","insta-gallery")},{name:"center",label:(0,r.__)("Center","insta-gallery")},{name:"right",label:(0,r.__)("Right","insta-gallery")}].map((({name:t,label:a})=>(0,e.createElement)("option",{key:t,value:t},a)))),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,r.__)("Align description in card","insta-gallery"))),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,r.__)("(This is a premium feature)","insta-gallery"))))))}function qt(){const{currentFeedFormData:t,setCurrentFeedFormData:a}=wt(),{accounts:n}=(0,W.useAccountsEntities)();return(0,e.createElement)("div",{className:"insta-gallery__modal__panel"},(0,e.createElement)("div",{className:"options_group"},(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,r.__)("Display","insta-gallery")),(0,e.createElement)("input",{type:"checkbox",checked:!!t.modal.display,onChange:e=>a({modal:{display:!!e.target.checked}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,r.__)("Display Modal by clicking on image","insta-gallery"))))),(0,e.createElement)("div",{className:F()("options_group",!t.modal.display&&"disabled-field")},(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,r.__)("Sidebar align","insta-gallery")),(0,e.createElement)("select",{value:t.modal.modal_align||"",onChange:e=>{a({modal:{modal_align:e.target.value}})}},[{value:"top",label:(0,r.__)("Top","insta-gallery")},{value:"right",label:(0,r.__)("Right","insta-gallery")},{value:"bottom",label:(0,r.__)("Bottom","insta-gallery")},{value:"left",label:(0,r.__)("Left","insta-gallery")}].map((({value:t,label:a})=>(0,e.createElement)("option",{key:t,value:t},a)))),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,r.__)("Align sidebar in modal","insta-gallery"))),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,r.__)("(This is a premium feature)","insta-gallery")))),(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,r.__)("Profile","insta-gallery")),(0,e.createElement)("input",{type:"checkbox",checked:!!t.modal.profile,onChange:e=>a({modal:{profile:!!e.target.checked}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,r.__)("Display user profile or tag info","insta-gallery"))),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,r.__)("(This is a premium feature)","insta-gallery")))),"BUSINESS"!=n?.find((e=>e.id===t.account_id))?.access_token_type&&(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("span",{className:"notice error",style:{marginleft:"0",marginright:"0",paddingtop:" 10px",paddingbottom:" 10px",display:" flex",justifycontent:" left",alignitems:" center"}},(0,e.createElement)("small",null,(0,r.__)("Likes and comments options are only available for business account.","insta-gallery")))),(0,e.createElement)("div",{className:F()(!t.modal.display&&"disabled-field","BUSINESS"!=n?.find((e=>e.id===t.account_id))?.access_token_type&&"disabled-field")},(0,e.createElement)("p",{className:"form-field qligg-premium-field"},(0,e.createElement)("label",null,(0,r.__)("Likes","insta-gallery")),(0,e.createElement)("input",{type:"checkbox",checked:!!t.modal.likes_count,onChange:e=>a({modal:{likes_count:!!e.target.checked}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,r.__)("Display likes count in sidebar","insta-gallery"))),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,r.__)("(This is a premium feature)","insta-gallery")))),(0,e.createElement)("p",{className:"form-field qligg-premium-field"},(0,e.createElement)("label",null,(0,r.__)("Comments","insta-gallery")),(0,e.createElement)("input",{type:"checkbox",checked:!!t.modal.comments_count,onChange:e=>a({modal:{comments_count:!!e.target.checked}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,r.__)("Display comments count in sidebar","insta-gallery"))),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,r.__)("(This is a premium feature)","insta-gallery"))))),(0,e.createElement)("p",{className:"form-field qligg-premium-field"},(0,e.createElement)("label",null,(0,r.__)("Description","insta-gallery")),(0,e.createElement)("input",{type:"checkbox",checked:!!t.modal.media_description,onChange:e=>a({modal:{media_description:!!e.target.checked}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,r.__)("Display description in the sidebar","insta-gallery"))),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,r.__)("(This is a premium feature)","insta-gallery")))),(0,e.createElement)("p",{className:"form-field qligg-premium-field"},(0,e.createElement)("label",null,(0,r.__)("Text align","insta-gallery")),(0,e.createElement)("select",{value:t.modal.text_align||"",onChange:e=>a({modal:{text_align:e.target.value}})},[{name:"left",label:(0,r.__)("Left","insta-gallery")},{name:"center",label:(0,r.__)("Center","insta-gallery")},{name:"right",label:(0,r.__)("Right","insta-gallery")}].map((({name:t,label:a})=>(0,e.createElement)("option",{key:t,value:t},a)))),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,r.__)("Align description in sidebar","insta-gallery"))),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,r.__)("(This is a premium feature)","insta-gallery")))),(0,e.createElement)("p",{className:"form-field qligg-premium-field"},(0,e.createElement)("label",null,(0,r.__)("Font size","insta-gallery")),(0,e.createElement)("input",{type:"number",min:"8",max:"36",value:t.modal.font_size,required:!!t.modal.display,onChange:e=>a({modal:{font_size:e.target.value}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,r.__)("Change font size in sidebar","insta-gallery"))),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,r.__)("(This is a premium feature)","insta-gallery"))))))}function Ut(){const{currentFeedFormData:t,setCurrentFeedFormData:a}=wt();return(0,e.createElement)("div",{className:"insta-gallery__modal__panel"},(0,e.createElement)("div",{className:"options_group"},(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,r.__)("Display","insta-gallery")),(0,e.createElement)("input",{type:"checkbox",checked:!!t.button.display,onChange:e=>a({button:{display:!!e.target.checked}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,r.__)("Display the button to open Instagram site link","insta-gallery"))))),(0,e.createElement)("div",{className:F()("options_group",!t.button.display&&"disabled-field")},(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,r.__)("Text","insta-gallery")),(0,e.createElement)("input",{type:"text",placeholder:"Instagram",value:t.button.text,onChange:e=>a({button:{text:e.target.value}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,r.__)("Change button text","insta-gallery")))),(0,e.createElement)("div",{className:"form-field"},(0,e.createElement)("label",null,(0,r.__)("Text color","insta-gallery")),(0,e.createElement)(Lt,{value:t.button.text_color,color:t.button.text_color,onChange:e=>a({button:{text_color:e}}),disableCustomColors:!1,enableAlpha:!0,label:(0,r.__)("Change Color text in button","insta-gallery")})),(0,e.createElement)("div",{className:"form-field"},(0,e.createElement)("label",null,(0,r.__)("Background","insta-gallery")),(0,e.createElement)(Lt,{value:t.button.background,color:t.button.background,onChange:e=>a({button:{background:e}}),disableCustomColors:!1,enableAlpha:!0,label:(0,r.__)("Change background color in button","insta-gallery")})),(0,e.createElement)("div",{className:"form-field"},(0,e.createElement)("label",null,(0,r.__)("Background hover","insta-gallery")),(0,e.createElement)(Lt,{value:t.button.background_hover,color:t.button.background_hover,onChange:e=>a({button:{background_hover:e}}),disableCustomColors:!1,enableAlpha:!0,label:(0,r.__)("Change background hover in button","insta-gallery")}))))}function Bt(){const{currentFeedFormData:t,setCurrentFeedFormData:a}=wt();return(0,e.createElement)("div",{className:"insta-gallery__modal__panel"},(0,e.createElement)("div",{className:"options_group qligg-premium-field"},(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,r.__)("Display","insta-gallery")),(0,e.createElement)("input",{type:"checkbox",checked:!!t.button_load.display,onChange:e=>a({button_load:{display:!!e.target.checked}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,r.__)("Display the button to load more videos","insta-gallery"))),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,r.__)("(This is a premium feature)","insta-gallery"))))),(0,e.createElement)("div",{className:F()('"options_group',!t.button_load.display&&"disabled-field")},(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,r.__)("Text","insta-gallery")),(0,e.createElement)("input",{type:"text",placeholder:"Instagram",value:t.button_load.text,onChange:e=>a({button_load:{text:e.target.value}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,r.__)("Change button text","insta-gallery")))),(0,e.createElement)("div",{className:"form-field"},(0,e.createElement)("label",null,(0,r.__)("Text color","insta-gallery")),(0,e.createElement)(Lt,{value:t.button_load.text_color,color:t.button_load.text_color,onChange:e=>a({button_load:{text_color:e}}),disableCustomColors:!1,enableAlpha:!0,label:(0,r.__)("Change Color text in button","insta-gallery")})),(0,e.createElement)("div",{className:"form-field"},(0,e.createElement)("label",null,(0,r.__)("Background","insta-gallery")),(0,e.createElement)(Lt,{value:t.button_load.background,color:t.button_load.background,onChange:e=>a({button_load:{background:e}}),disableCustomColors:!1,enableAlpha:!0,label:(0,r.__)("Change background color in button","insta-gallery")})),(0,e.createElement)("div",{className:"form-field"},(0,e.createElement)("label",null,(0,r.__)("Background hover","insta-gallery")),(0,e.createElement)(Lt,{value:t.button_load.background_hover,color:t.button_load.background_hover,onChange:e=>a({button_load:{background_hover:e}}),disableCustomColors:!1,enableAlpha:!0,label:(0,r.__)("Change background hover in button","insta-gallery")}))))}function Ht(){const{currentFeedFormData:t,setCurrentFeedFormData:a}=wt();return(0,e.createElement)("div",{className:"insta-gallery__modal__panel"},(0,e.createElement)("div",{className:"qligg-premium-field",style:{display:"flex"}},(0,e.createElement)("div",{className:"options_group",style:{width:"70%"}},(0,e.createElement)("div",{className:"options_group"},(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,r.__)("Display","insta-gallery")),(0,e.createElement)("input",{type:"checkbox",checked:!!t.profile.display,onChange:e=>a({profile:{display:!!e.target.checked}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,r.__)("Display user profile or tag info","insta-gallery"))),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,r.__)("(This is a premium feature)","insta-gallery"))))),(0,e.createElement)("div",{className:F()(!t.profile.display&&"disabled-field")},(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,r.__)("Full name","insta-gallery")),(0,e.createElement)("input",{type:"text",onChange:e=>{a({profile:{nickname:e.target.value}})},value:t.profile.nickname}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,r.__)("Feed profile full name","insta-gallery")))),(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,r.__)("Follow text","insta-gallery")),(0,e.createElement)("input",{type:"text",placeholder:"Instagram",value:t.profile.link_text,onChange:e=>a({profile:{link_text:e.target.value}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,r.__)("Follow text here","insta-gallery"))),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,r.__)("(This is a premium feature)","insta-gallery")))),(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,r.__)("Website","insta-gallery")),(0,e.createElement)("input",{type:"text",placeholder:"",value:t.profile.website,onChange:e=>a({profile:{website:e.target.value}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,r.__)("Website url here","insta-gallery"))),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,r.__)("(This is a premium feature)","insta-gallery")))),(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,r.__)("Website link text","insta-gallery")),(0,e.createElement)("input",{type:"text",placeholder:"Instagram",value:t.profile.website_text,onChange:e=>a({profile:{website_text:e.target.value}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,r.__)("Website link text here","insta-gallery"))),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,r.__)("(This is a premium feature)","insta-gallery")))),(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,r.__)("Biography","insta-gallery")),(0,e.createElement)("input",{type:"text",placeholder:(0,r.__)("Feed profile biography","insta-gallery"),onChange:e=>a({profile:{biography:e.target.value}}),value:t.profile.biography}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,r.__)("Profile description here","insta-gallery"))),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,r.__)("(This is a premium feature)","insta-gallery")))))),(0,e.createElement)("div",{className:F()("attachment-info options_group",!t.profile.display&&"disabled-field"),style:{width:"30%"}},(0,e.createElement)("div",{className:"options_group"},(0,e.createElement)("div",{className:"details"},(0,e.createElement)("div",{className:"filename"},(0,e.createElement)("strong",null,(0,r.__)("Feed","insta-gallery"),":"),t.account_id)),(0,e.createElement)("div",{className:"avatar-panel-info"},(0,e.createElement)("div",{className:"avatar-panel-info__settings"},(0,e.createElement)("img",{alt:"avatar",className:"avatar-panel-info__img",src:t.profile.avatar?t.profile.avatar:"http://2.gravatar.com/avatar/b642b4217b34b1e8d3bd915fc65c4452?s=150&d=mm&r=g",width:"150",height:"150"}),(0,e.createElement)("div",{className:"avatar-panel-info__buttons"},(0,e.createElement)(Ot,{onChange:e=>{a({profile:{avatar:e.url}})}}),(0,e.createElement)("button",{onClick:()=>a({profile:{avatar:""}}),className:"remove_image_button button",disabled:!t.profile.avatar},"×"))))))))}function Wt(){const{currentTab:t}=wt();switch(t){case"general":return(0,e.createElement)(Ft,null);case"profile":return(0,e.createElement)(Ht,null);case"box":return(0,e.createElement)(Mt,null);case"carousel":return(0,e.createElement)(Dt,null);case"image":return(0,e.createElement)(Gt,null);case"image-card":return(0,e.createElement)(jt,null);case"image-modal":return(0,e.createElement)(qt,null);case"button":return(0,e.createElement)(Ut,null);case"button-load-more":return(0,e.createElement)(Bt,null);default:return t}}function zt(){const{setCurrentTab:t,currentTab:a}=wt(),{currentFeedFormData:n}=wt(),l=bt.filter((({name:e})=>!("carousel"===e&&!["carousel"].includes(n.layout))));return(0,e.createElement)("ul",{className:"insta-gallery-modal__tabs"},l.map((({name:n,label:l})=>(0,e.createElement)("li",{key:n,className:F()("media-modal-tab",n==a&&"active")},(0,e.createElement)("a",{href:"#",onClick:e=>{e.preventDefault(),t(n)}},(0,e.createElement)("span",null,l))))).filter((e=>!!e)))}function Vt({isOpen:a,setIsOpen:n}){const{currentFeedIndex:l,currentFeedFormData:r,feeds:s,createFeed:i,editFeed:o}=wt(),[c,u]=(0,t.useState)(!1),m=s?.[l]?.id,d=void 0===m;return(0,e.createElement)("div",null,(0,e.createElement)("form",{className:"media-modal-form",onSubmit:async e=>{let t;e.preventDefault(),u(!0),t=d?await i(r):await o(r),u(!1),t&&n(!1)}},(0,e.createElement)("div",{className:"media-modal-content"},(0,e.createElement)("div",{className:"edit-attachment-frame mode-select"},(0,e.createElement)(xt,{isOpen:a,setIsOpen:n,isNewFeed:d,currentFeedId:m}),(0,e.createElement)("div",{className:"media-frame-content",style:{bottom:61}},(0,e.createElement)("div",{className:"attachment-details",style:{overflow:"hidden"}},(0,e.createElement)("div",{className:"attachment-media-view landscape"},(0,e.createElement)("div",{style:{height:"100%"}},(0,e.createElement)(zt,null),(0,e.createElement)("div",{style:{height:"100%",overflowX:"hidden"}},(0,e.createElement)(Wt,null)))))),(0,e.createElement)(St,{isOpen:a,setIsOpen:n,isLoading:c,setIsLoading:u})))))}function Jt({setIsOpen:a,setIsOpenPreview:n}){const[l,s]=(0,t.useState)({currentFeedId:null,isLoading:!1}),{createSuccessNotice:i,createErrorNotice:o}=(0,V.useDispatch)(J.store),{feeds:c,hasResolvedFeeds:u,deleteFeed:m}=(0,W.useFeedsEntities)(),{accounts:d,hasAccounts:p}=(0,W.useAccountsEntities)(),{setCurrentFeedIndex:g}=wt();return u?(0,e.createElement)("div",{className:"welcome-tab wrap about-wrap full-width-layout"},(0,e.createElement)("div",null,(0,e.createElement)("button",{disabled:!p,className:"button button-primary",onClick:()=>{g(),a(!0)}},(0,r.__)("+ Feed","insta-gallery")),!p&&(0,e.createElement)("p",null,(0,r.__)("Go to the Accounts tab and create your access token.","insta-gallery")),(0,e.createElement)(Y,null,(0,e.createElement)("thead",null,(0,e.createElement)("tr",null,(0,e.createElement)("th",null,(0,r.__)("Image","insta-gallery")),(0,e.createElement)("th",null,(0,r.__)("Account","insta-gallery")),(0,e.createElement)("th",null,(0,r.__)("Type","insta-gallery")),(0,e.createElement)("th",null,(0,r.__)("Source","insta-gallery")),(0,e.createElement)("th",null,(0,r.__)("Layout","insta-gallery")),(0,e.createElement)("th",null,(0,r.__)("Shortcode","insta-gallery")),(0,e.createElement)("th",null,(0,r.__)("Actions","insta-gallery")))),(0,e.createElement)("tbody",null,c?.map(((t,c)=>{const u=d.find((e=>e.id===t.account_id));return(0,e.createElement)("tr",{key:c},(0,e.createElement)("td",{width:"1%"},(0,e.createElement)("img",{className:"avatar",src:u?.avatar||"http://2.gravatar.com/avatar/b642b4217b34b1e8d3bd915fc65c4452?s=150&d=mm&r=g",alt:u?.username||""})),(0,e.createElement)("td",{width:"1%"},u?.username),(0,e.createElement)("td",{width:"1%"},u?.access_token_type),(0,e.createElement)("td",{width:"1%"},t.source),(0,e.createElement)("td",null,t.layout),(0,e.createElement)("td",null,(0,e.createElement)("input",{type:"text",value:`[insta-gallery id="${t.id}"]`,readOnly:!0}),(0,e.createElement)("button",{className:"button button-secondary",onClick:async()=>{await x(`[insta-gallery id="${t.id}"]`)?i((0,r.__)("Feed shortcode copied to clipboard.","insta-gallery"),{id:1,type:"snackbar"}):o((0,r.__)("Can't copy the access token.","insta-gallery"),{id:2,type:"snackbar"})}},(0,e.createElement)("i",{className:"dashicons dashicons-admin-page"}))),(0,e.createElement)("td",null,(0,e.createElement)("button",{className:"button button-primary",title:(0,r.__)("Edit feed","insta-gallery"),onClick:()=>{g(c),a(!0)}},(0,r.__)("Edit")),(0,e.createElement)("button",{className:"button button-secondary",title:(0,r.__)("Clear feed cache","insta-gallery"),onClick:async()=>{confirm((0,r.__)("You are about to reset the cache of this feed.","insta-gallery"))&&(s({isloading:!0,currentFeedId:t.id}),await(0,W.clearFeedCache)({method:"POST",data:{feedSettings:t}}),s({isLoading:!1}))}},(0,e.createElement)("i",{className:"dashicons dashicons dashicons-update"}),(0,r.__)("Cache","insta-gallery")),(0,e.createElement)("button",{className:"button button-secondary",title:(0,r.__)("Delete feed","insta-gallery"),onClick:async()=>{confirm((0,r.__)("You are about to delele this feed.","insta-gallery"))&&(s({isloading:!0,currentFeedId:t.id}),await m(t),s({isLoading:!1}))}},(0,e.createElement)("i",{className:"dashicons dashicons-trash"})),(0,e.createElement)("button",{className:"button button-secondary",title:(0,r.__)("Preview feed","insta-gallery"),onClick:()=>{g(c),n(!0)}},(0,e.createElement)("i",{className:"dashicons dashicons-format-gallery"})),l&&l.currentFeedId===t.id&&(0,e.createElement)("span",{style:{visibility:"visible",position:"absolute"},className:"spinner"})))})))))):(0,e.createElement)(Q,null)}function Qt(){const{currentFeedIndex:a,feeds:n}=wt(),l=n?.[a],r=(0,t.useRef)(null),[s,i]=(0,t.useState)(null);return(0,t.useEffect)((()=>{r?.current&&!s&&i(r.current)}),[r]),(0,e.createElement)("div",{className:"instagram-gallery-feed",ref:r,id:`instagram-gallery-feed-${l.id}`},!!s&&(0,e.createElement)(le,null,(0,e.createElement)(ht,{target:s,feedSettings:l})))}const Yt=()=>{const{Fill:a}=G(),[n,l]=(0,t.useState)(!1),[r,s]=(0,t.useState)(!1);return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(a.Header,null,(0,e.createElement)(T,null)),(0,e.createElement)(a.Navigation,null,(0,e.createElement)(R,null)),(0,e.createElement)(a.Content,null,(0,e.createElement)(Nt,null,(0,e.createElement)(Jt,{isOpen:n,setIsOpen:l,isOpenPreview:r,setIsOpenPreview:s}),(0,e.createElement)(z,{show:n,onClose:()=>l(!1),__experimentalHideHeader:!0},(0,e.createElement)(Vt,{isOpen:n,setIsOpen:l})),(0,e.createElement)(z,{show:r,onClose:()=>s(!1),__experimentalHideHeader:!0},(0,e.createElement)(Qt,null)))))},Zt=()=>{const{Fill:t}=G();return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(t.Header,null,(0,e.createElement)(T,null)),(0,e.createElement)(t.Navigation,null,(0,e.createElement)(R,null)),(0,e.createElement)(t.Content,null,(0,e.createElement)("div",{className:"wrap about-wrap full-width-layout"},(0,e.createElement)("div",{className:"has-2-columns is-wider-left"},(0,e.createElement)("div",{className:"column"},(0,e.createElement)("div",{className:"welcome-header"},(0,e.createElement)("h1",null,(0,r.__)("Premium","insta-gallery")),(0,e.createElement)("div",{className:"about-description"},(0,r.sprintf)((0,r.__)("Unlock the power of our premium %s plugin which allows you to choose between six beautiful layouts and tone of customizing options.","insta-gallery"),o)),(0,e.createElement)("br",null),(0,e.createElement)(U,{href:h,target:"_blank"},(0,r.__)("Purchase Now","insta-gallery")),(0,e.createElement)(U,{isSecondary:!0,href:f,target:"_blank"},(0,r.__)("View demo","insta-gallery"))),(0,e.createElement)("hr",null),(0,e.createElement)("div",{className:"feature-section"},(0,e.createElement)("h3",null,(0,r.__)("Multiple account","insta-gallery")),(0,e.createElement)("p",null,(0,r.__)("Include unlimited user accounts and create feeds galleries for different users with their own layout and settings.","insta-gallery"))),(0,e.createElement)("div",{className:"feature-section"},(0,e.createElement)("h3",null,(0,r.__)("Customize colors","insta-gallery")),(0,e.createElement)("p",null,(0,r.__)("Customize the colors of the Instagram Feed with a custom background, padding, and a rounded border. It also includes the user or tag profile info in the header of the box","insta-gallery"))),(0,e.createElement)("div",{className:"feature-section"},(0,e.createElement)("h3",null,(0,r.__)("Load more button","insta-gallery")),(0,e.createElement)("p",null,(0,r.__)("Allow your users to load more images in the gallery providing an improved user experience.","insta-gallery")))),(0,e.createElement)("div",{className:"column"},(0,e.createElement)("img",{src:S("/assets/backend/img/instagram-feed.png")}))),(0,e.createElement)("div",{className:"has-2-columns is-wider-left"},(0,e.createElement)("div",{className:"column"},(0,e.createElement)("img",{src:S("/assets/backend/img/instagram-feed-popup-macbook.png")})),(0,e.createElement)("div",{className:"column"},(0,e.createElement)("br",null),(0,e.createElement)("div",{className:"welcome-header"},(0,e.createElement)("h2",null,(0,r.__)("More content","insta-gallery")),(0,e.createElement)("div",{className:"about-description"},(0,r.__)("Include some extra content for the images and the Image modal.","insta-gallery"))),(0,e.createElement)("hr",null),(0,e.createElement)("div",{className:"feature-section"},(0,e.createElement)("p",null,(0,r.__)("Our premium version allows you to include a beautiful card around the video where you can display the number of comments, likes, and video descriptions.","insta-gallery"))))),(0,e.createElement)("div",{className:"has-2-columns is-wider-left"},(0,e.createElement)("div",{className:"column"},(0,e.createElement)("div",{className:"welcome-header"},(0,e.createElement)("h1",null,(0,r.__)("Layouts","insta-gallery")),(0,e.createElement)("div",{className:"about-description"},(0,r.__)("Unlock the power of the masonry and highlight layouts that allows you to display the Instagram Feeds in a grid that supports items of variable size.","insta-gallery"))),(0,e.createElement)("hr",null),(0,e.createElement)("div",{className:"feature-section"},(0,e.createElement)("h3",null,(0,r.__)("Masonry layout","insta-gallery")),(0,e.createElement)("p",null,(0,r.__)("The masonry layout is a grid that displays the images with a fixed with and variable height size","insta-gallery"))),(0,e.createElement)("div",{className:"feature-section"},(0,e.createElement)("h3",null,(0,r.__)("Highlight layout","insta-gallery")),(0,e.createElement)("p",null,(0,r.__)("The highlight layout is a masonry grid that allows you to stand out some images with two or three columns width size.","insta-gallery")))),(0,e.createElement)("div",{className:"column"},(0,e.createElement)("img",{src:S("/assets/backend/img/instagram-feed-load-more.png")}))))))},$t=()=>{const{settings:a,hasResolvedSettings:n,saveSettings:l}=(0,W.useSettingsEntities)(),[s,o]=(0,t.useState)(!1),[c,u]=(0,t.useState)(N),m=e=>{const t=I(c,e);u(t)};return(0,t.useEffect)((()=>{n&&u(a)}),[n,a]),n?(0,e.createElement)("div",{className:"wrap about-wrap full-width-layout"},(0,e.createElement)("form",{onSubmit:async e=>{e.preventDefault(),o(!0),await l(c),o(!1)}},(0,e.createElement)(Y,null,(0,e.createElement)("tbody",null,(0,e.createElement)("tr",null,(0,e.createElement)("td",{colSpan:"100%"},(0,e.createElement)("table",null,(0,e.createElement)("tbody",null,(0,e.createElement)("tr",null,(0,e.createElement)("th",null,(0,r.__)("Cache Expiration","insta-gallery")),(0,e.createElement)("td",null,(0,e.createElement)("input",{type:"number",min:"1",max:"168",onChange:e=>m({insta_reset:e.target.value}),value:0==c.insta_reset?"1":c.insta_reset}),(0,e.createElement)("span",{className:"description"},(0,r.__)("Reset your Instagram feeds cache every x hours.","insta-gallery")))),(0,e.createElement)("tr",null,(0,e.createElement)("th",null,(0,r.__)("Notification Email","insta-gallery")),(0,e.createElement)("td",null,(0,e.createElement)("input",{type:"email",onChange:e=>m({mail_to_alert:e.target.value}),value:c.mail_to_alert}),(0,e.createElement)("span",{className:"description"},(0,r.__)("Add email to notify about account expiration.","insta-gallery")))),(0,e.createElement)("tr",null,(0,e.createElement)("th",null,(0,r.__)("Replace Loader","insta-gallery")),(0,e.createElement)("td",null,(0,e.createElement)("input",{type:"hidden",name:"insta_spinner_image_id"}),(0,e.createElement)(Ot,{onChange:e=>{m({spinner_image_url:e.url})},onRemove:()=>{m({spinner_image_url:""})},value:{url:c.spinner_image_url}}),!c.spinner_image_url&&(0,e.createElement)("p",null,(0,e.createElement)("span",{className:"description"},(0,r.__)("Select an image from media library to replace the default loader icon.","insta-gallery"))))),(0,e.createElement)("tr",null,(0,e.createElement)("th",null,(0,r.__)("Remove data","insta-gallery")),(0,e.createElement)("td",null,(0,e.createElement)("input",{type:"checkbox",checked:!!c.insta_flush,onChange:e=>m({insta_flush:!!e.target.checked})}),(0,e.createElement)("span",{className:"description"},(0,r.__)("Check this box to remove all data related to this plugin on uninstall.","insta-gallery"))))))))),(0,e.createElement)("tfoot",null,(0,e.createElement)("tr",null,(0,e.createElement)("td",{colSpan:"2"},(0,e.createElement)("span",{className:"spinner"}),(0,e.createElement)("button",{disabled:(0,i.isEqual)(a,c),type:"submit",className:"button button-primary secondary"},(0,r.__)("Save","insta-gallery")),s&&(0,e.createElement)("span",{style:{visibility:"visible"},className:"spinner"})),(0,e.createElement)("td",{style:{textAlign:"right"},colSpan:"1"},(0,e.createElement)("a",{href:"https://quadlayers.com/documentation/instagram-feed-gallery/app-privacy/?utm_source=qligg_admin",target:"__blank"},(0,r.__)("Privacy Policy","insta-gallery")))))))):(0,e.createElement)(Q,null)},Xt=()=>{const{Fill:t}=G();return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(t.Header,null,(0,e.createElement)(T,null)),(0,e.createElement)(t.Navigation,null,(0,e.createElement)(R,null)),(0,e.createElement)(t.Content,null,(0,e.createElement)($t,null)))};var Kt=a(919);const ea=()=>{const{Fill:t}=G();return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(t.Header,null,(0,e.createElement)(T,null)),(0,e.createElement)(t.Navigation,null,(0,e.createElement)(R,null)),(0,e.createElement)(t.Content,null,(0,e.createElement)(Kt.List,{authorName:"quadlayers",columns:"3"})))},{tabParam:ta,setBrowserTabParam:aa}=(()=>{const e=document.location.href,t=new URLSearchParams(e),a=new URL(window.location);return{tabParam:t.get("tab"),setBrowserTabParam:e=>{a.searchParams.set("tab",e),window.history.pushState(null,"",a.toString())}}})(),na=(0,t.createContext)({}),la=()=>(0,t.useContext)(na),ra=(e,t)=>"SET_CURRENT_TAB"===t.type?{...e,...t.payload,prevTab:e.currentTab}:e,sa=({children:a})=>{const n=(0,s.applyFilters)("insta-gallery.app.tabs",[{label:(0,r.__)("Welcome","insta-gallery"),name:"welcome",content:H},{label:(0,r.__)("Accounts","insta-gallery"),name:"accounts",content:Et},{label:(0,r.__)("Feeds","insta-gallery"),name:"feeds",content:Yt},{label:(0,r.__)("Settings","insta-gallery"),name:"settings",href:"settings",content:Xt},{label:(0,r.__)("Premium","insta-gallery"),name:"premium",content:Zt},{label:(0,r.__)("Suggestions","insta-gallery"),name:"suggestions",content:ea}]),[l,i]=(0,t.useReducer)(ra,(({defaultTab:e})=>({currentTab:ta||e,currentTabSection:"",prevTab:null,prevSubTab:null,user:!1}))({defaultTab:n[0].name}));return(0,t.useEffect)((()=>{const e=Array.from(document.querySelectorAll("#toplevel_page_qligg > ul > li")),t=l.currentTab[0].toUpperCase()+l.currentTab.slice(1).toLowerCase();e.map((e=>e.innerText===t?e?.classList.add("current"):e?.classList.remove("current")))}),[l.currentTab]),(0,e.createElement)(na.Provider,{value:{...l,setCurrentTab:e=>{l.currentTab!=e&&(aa(e),i({type:"SET_CURRENT_TAB",payload:{currentTab:e}}))},tabs:n}},a)},ia=(na.Consumer,()=>{const{currentTab:t,tabs:a}=la(),n=a.find((({name:e})=>e==t));if(!n)return(0,e.createElement)(e.Fragment,null,t);const l=n.content;return(0,e.createElement)(l,null)}),oa=({children:t})=>(0,e.createElement)(j,null,(0,e.createElement)(q,null,(({Slot:a,containerRef:n})=>(0,e.createElement)("div",{ref:n},(0,e.createElement)("header",null,(0,e.createElement)(a.Header,null),!1),(0,e.createElement)("section",null,(0,e.createElement)("nav",null,(0,e.createElement)(a.Navigation,null)),(0,e.createElement)("section",null,(0,e.createElement)("section",null,(0,e.createElement)(a.Content,null)),(0,e.createElement)("aside",null,(0,e.createElement)(a.Aside,null))),(0,e.createElement)("footer",null,(0,e.createElement)(a.Footer,null))),t)))),ca=()=>(0,e.createElement)(e.Fragment,null,(0,e.createElement)(sa,null,(0,e.createElement)(oa,null,(0,e.createElement)(ia,null))),l.EditorSnackbars?(0,e.createElement)(l.EditorSnackbars,null):(0,e.createElement)(l.EditorNotices,null));P((()=>{const a=document.getElementById("wpbody-content");(0,t.render)((0,e.createElement)(ca,null),a)}))})(),(window.instagram=window.instagram||{}).backend=n})();