Plugin Directory

Changeset 3416701


Ignore:
Timestamp:
12/10/2025 07:10:45 PM (6 weeks ago)
Author:
quadlayers
Message:

Update to version 4.6.4 from GitHub

Location:
wp-tiktok-feed
Files:
24 edited
1 copied

Legend:

Unmodified
Added
Removed
  • wp-tiktok-feed/tags/4.6.4/build/backend/js/index.asset.php

    r3392172 r3416701  
    1 <?php return array('dependencies' => array('lodash', 'qlttf-store', 'react', 'wp-api-fetch', 'wp-block-editor', 'wp-components', 'wp-compose', 'wp-data', 'wp-date', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-notices'), 'version' => 'a85c8f4a30fc9bda019f');
     1<?php return array('dependencies' => array('lodash', 'qlttf-store', 'react', 'wp-api-fetch', 'wp-block-editor', 'wp-components', 'wp-compose', 'wp-data', 'wp-date', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-notices'), 'version' => '2384dbb6239743866ba6');
  • wp-tiktok-feed/tags/4.6.4/build/backend/js/index.js

    r3392172 r3416701  
    4444        margin: 1em 0 !important;
    4545    }
    46 `;t.default=e=>{const t=e.authorName||"",{wordpressPlugins:a,isResolvingWordPressPlugins:n,installWordPressPlugin:r}=(0,u.useWordPressPlugins)(t),{isResolvingSitePlugins:l,sitePlugins:i,activateSitePlugin:f}=(0,u.useSitePlugins)();return n||l?o.default.createElement(c.Spinner,null):0!==a.length?o.default.createElement(m,{className:"wrap"},a.map(t=>{var a;const n=(null===(a=i.find(e=>e.name===t.slug))||void 0===a?void 0:a.status)||"install";return o.default.createElement(s.default,Object.assign({key:t.slug},t,e,{installWordPressPlugin:r,pluginStatus:n,activateSitePlugin:f}))})):o.default.createElement("div",{style:{maxWidth:"1200px"}},o.default.createElement(p,null,d.WordpressIcon,o.default.createElement("h3",null,"Plugins not found")))}},692:e=>{"use strict";e.exports=window.wp.notices},723:e=>{"use strict";e.exports=window.wp.i18n},736:(e,t,a)=>{e.exports=a(186)()},843:(e,t)=>{"use strict";var a="function"==typeof Symbol&&Symbol.for,n=a?Symbol.for("react.element"):60103,r=a?Symbol.for("react.portal"):60106,l=a?Symbol.for("react.fragment"):60107,i=a?Symbol.for("react.strict_mode"):60108,o=a?Symbol.for("react.profiler"):60114,s=a?Symbol.for("react.provider"):60109,c=a?Symbol.for("react.context"):60110,u=a?Symbol.for("react.async_mode"):60111,d=a?Symbol.for("react.concurrent_mode"):60111,m=a?Symbol.for("react.forward_ref"):60112,p=a?Symbol.for("react.suspense"):60113,f=a?Symbol.for("react.suspense_list"):60120,h=a?Symbol.for("react.memo"):60115,g=a?Symbol.for("react.lazy"):60116,k=a?Symbol.for("react.block"):60121,_=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 d:case l:case o:case i:case p:return e;default:switch(e=e&&e.$$typeof){case c:case m:case g:case h:case s:return e;default:return t}}case r:return t}}}function y(e){return v(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=s,t.Element=n,t.ForwardRef=m,t.Fragment=l,t.Lazy=g,t.Memo=h,t.Portal=r,t.Profiler=o,t.StrictMode=i,t.Suspense=p,t.isAsyncMode=function(e){return y(e)||v(e)===u},t.isConcurrentMode=y,t.isContextConsumer=function(e){return v(e)===c},t.isContextProvider=function(e){return v(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return v(e)===m},t.isFragment=function(e){return v(e)===l},t.isLazy=function(e){return v(e)===g},t.isMemo=function(e){return v(e)===h},t.isPortal=function(e){return v(e)===r},t.isProfiler=function(e){return v(e)===o},t.isStrictMode=function(e){return v(e)===i},t.isSuspense=function(e){return v(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===l||e===d||e===o||e===i||e===p||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===h||e.$$typeof===s||e.$$typeof===c||e.$$typeof===m||e.$$typeof===_||e.$$typeof===E||e.$$typeof===b||e.$$typeof===k)},t.typeOf=v},859:(e,t,a)=>{"use strict";a.r(t),a.d(t,{ServerStyleSheet:()=>Ue,StyleSheetConsumer:()=>ie,StyleSheetContext:()=>le,StyleSheetManager:()=>me,ThemeConsumer:()=>Re,ThemeContext:()=>Ie,ThemeProvider:()=>De,__PRIVATE__:()=>Ve,createGlobalStyle:()=>Be,css:()=>ye,default:()=>Je,isStyledComponent:()=>y,keyframes:()=>Ge,useTheme:()=>ze,version:()=>A,withTheme:()=>He});var n=a(959),r=a(609),l=a.n(r),i=a(945),o=a.n(i);const s=function(e){function t(e,n,s,c,m){for(var p,f,h,g,b,y=0,w=0,A=0,N=0,S=0,O=0,R=h=p=0,M=0,j=0,q=0,L=0,B=s.length,G=B-1,U="",H="",z="",V="";M<B;){if(f=s.charCodeAt(M),M===G&&0!==w+N+A+y&&(0!==w&&(f=47===w?10:47),N=A=y=0,B++,G++),0===w+N+A+y){if(M===G&&(0<j&&(U=U.replace(d,"")),0<U.trim().length)){switch(f){case 32:case 9:case 59:case 13:case 10:break;default:U+=s.charAt(M)}f=59}switch(f){case 123:for(p=(U=U.trim()).charCodeAt(0),h=1,L=++M;M<B;){switch(f=s.charCodeAt(M)){case 123:h++;break;case 125:h--;break;case 47:switch(f=s.charCodeAt(M+1)){case 42:case 47:e:{for(R=M+1;R<G;++R)switch(s.charCodeAt(R)){case 47:if(42===f&&42===s.charCodeAt(R-1)&&M+2!==R){M=R+1;break e}break;case 10:if(47===f){M=R+1;break e}}M=R}}break;case 91:f++;case 40:f++;case 34:case 39:for(;M++<G&&s.charCodeAt(M)!==f;);}if(0===h)break;M++}if(h=s.substring(L,M),0===p&&(p=(U=U.replace(u,"").trim()).charCodeAt(0)),64===p){switch(0<j&&(U=U.replace(d,"")),f=U.charCodeAt(1)){case 100:case 109:case 115:case 45:j=n;break;default:j=F}if(L=(h=t(n,j,h,f,m+1)).length,0<I&&(b=o(3,h,j=a(F,U,q),n,C,x,L,f,m,c),U=j.join(""),void 0!==b&&0===(L=(h=b.trim()).length)&&(f=0,h="")),0<L)switch(f){case 115:U=U.replace(v,i);case 100:case 109:case 45:h=U+"{"+h+"}";break;case 107:h=(U=U.replace(k,"$1 $2"))+"{"+h+"}",h=1===T||2===T&&l("@"+h,3)?"@-webkit-"+h+"@"+h:"@"+h;break;default:h=U+h,112===c&&(H+=h,h="")}else h=""}else h=t(n,a(n,U,q),h,c,m+1);z+=h,h=q=j=R=p=0,U="",f=s.charCodeAt(++M);break;case 125:case 59:if(1<(L=(U=(0<j?U.replace(d,""):U).trim()).length))switch(0===R&&(p=U.charCodeAt(0),45===p||96<p&&123>p)&&(L=(U=U.replace(" ",":")).length),0<I&&void 0!==(b=o(1,U,n,e,C,x,H.length,c,m,c))&&0===(L=(U=b.trim()).length)&&(U="\0\0"),p=U.charCodeAt(0),f=U.charCodeAt(1),p){case 0:break;case 64:if(105===f||99===f){V+=U+s.charAt(M);break}default:58!==U.charCodeAt(L-1)&&(H+=r(U,p,f,U.charCodeAt(2)))}q=j=R=p=0,U="",f=s.charCodeAt(++M)}}switch(f){case 13:case 10:47===w?w=0:0===1+p&&107!==c&&0<U.length&&(j=1,U+="\0"),0<I*D&&o(0,U,n,e,C,x,H.length,c,m,c),x=1,C++;break;case 59:case 125:if(0===w+N+A+y){x++;break}default:switch(x++,g=s.charAt(M),f){case 9:case 32:if(0===N+y+w)switch(S){case 44:case 58:case 9:case 32:g="";break;default:32!==f&&(g=" ")}break;case 0:g="\\0";break;case 12:g="\\f";break;case 11:g="\\v";break;case 38:0===N+w+y&&(j=q=1,g="\f"+g);break;case 108:if(0===N+w+y+P&&0<R)switch(M-R){case 2:112===S&&58===s.charCodeAt(M-3)&&(P=S);case 8:111===O&&(P=O)}break;case 58:0===N+w+y&&(R=M);break;case 44:0===w+A+N+y&&(j=1,g+="\r");break;case 34:case 39:0===w&&(N=N===f?0:0===N?f:N);break;case 91:0===N+w+A&&y++;break;case 93:0===N+w+A&&y--;break;case 41:0===N+w+y&&A--;break;case 40:0===N+w+y&&(0===p&&(2*S+3*O==533||(p=1)),A++);break;case 64:0===w+A+N+y+R+h&&(h=1);break;case 42:case 47:if(!(0<N+y+A))switch(w){case 0:switch(2*f+3*s.charCodeAt(M+1)){case 235:w=47;break;case 220:L=M,w=42}break;case 42:47===f&&42===S&&L+2!==M&&(33===s.charCodeAt(L+2)&&(H+=s.substring(L,M+1)),g="",w=0)}}0===w&&(U+=g)}O=S,S=f,M++}if(0<(L=H.length)){if(j=n,0<I&&void 0!==(b=o(2,H,j,e,C,x,L,c,m,c))&&0===(H=b).length)return V+H+z;if(H=j.join(",")+"{"+H+"}",0!==T*P){switch(2!==T||l(H,2)||(P=0),P){case 111:H=H.replace(E,":-moz-$1")+H;break;case 112:H=H.replace(_,"::-webkit-input-$1")+H.replace(_,"::-moz-$1")+H.replace(_,":-ms-input-$1")+H}P=0}}return V+H+z}function a(e,t,a){var r=t.trim().split(h);t=r;var l=r.length,i=e.length;switch(i){case 0:case 1:var o=0;for(e=0===i?"":e[0]+" ";o<l;++o)t[o]=n(e,t[o],a).trim();break;default:var s=o=0;for(t=[];o<l;++o)for(var c=0;c<i;++c)t[s++]=n(e[c]+" ",r[o],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(g,"$1"+e.trim());case 58:return e.trim()+t.replace(g,"$1"+e.trim());default:if(0<1*a&&0<t.indexOf("\f"))return t.replace(g,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function r(e,t,a,n){var i=e+";",o=2*t+3*a+4*n;if(944===o){e=i.indexOf(":",9)+1;var s=i.substring(e,i.length-1).trim();return s=i.substring(0,e).trim()+s+";",1===T||2===T&&l(s,1)?"-webkit-"+s+s:s}if(0===T||2===T&&!l(i,1))return i;switch(o){case 1015:return 97===i.charCodeAt(10)?"-webkit-"+i+i:i;case 951:return 116===i.charCodeAt(3)?"-webkit-"+i+i:i;case 963:return 110===i.charCodeAt(5)?"-webkit-"+i+i:i;case 1009:if(100!==i.charCodeAt(4))break;case 969:case 942:return"-webkit-"+i+i;case 978:return"-webkit-"+i+"-moz-"+i+i;case 1019:case 983:return"-webkit-"+i+"-moz-"+i+"-ms-"+i+i;case 883:if(45===i.charCodeAt(8))return"-webkit-"+i+i;if(0<i.indexOf("image-set(",11))return i.replace(S,"$1-webkit-$2")+i;break;case 932:if(45===i.charCodeAt(4))switch(i.charCodeAt(5)){case 103:return"-webkit-box-"+i.replace("-grow","")+"-webkit-"+i+"-ms-"+i.replace("grow","positive")+i;case 115:return"-webkit-"+i+"-ms-"+i.replace("shrink","negative")+i;case 98:return"-webkit-"+i+"-ms-"+i.replace("basis","preferred-size")+i}return"-webkit-"+i+"-ms-"+i+i;case 964:return"-webkit-"+i+"-ms-flex-"+i+i;case 1023:if(99!==i.charCodeAt(8))break;return"-webkit-box-pack"+(s=i.substring(i.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+i+"-ms-flex-pack"+s+i;case 1005:return p.test(i)?i.replace(m,":-webkit-")+i.replace(m,":-moz-")+i:i;case 1e3:switch(t=(s=i.substring(13).trim()).indexOf("-")+1,s.charCodeAt(0)+s.charCodeAt(t)){case 226:s=i.replace(b,"tb");break;case 232:s=i.replace(b,"tb-rl");break;case 220:s=i.replace(b,"lr");break;default:return i}return"-webkit-"+i+"-ms-"+s+i;case 1017:if(-1===i.indexOf("sticky",9))break;case 975:switch(t=(i=e).length-10,o=(s=(33===i.charCodeAt(t)?i.substring(0,t):i).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|s.charCodeAt(7))){case 203:if(111>s.charCodeAt(8))break;case 115:i=i.replace(s,"-webkit-"+s)+";"+i;break;case 207:case 102:i=i.replace(s,"-webkit-"+(102<o?"inline-":"")+"box")+";"+i.replace(s,"-webkit-"+s)+";"+i.replace(s,"-ms-"+s+"box")+";"+i}return i+";";case 938:if(45===i.charCodeAt(5))switch(i.charCodeAt(6)){case 105:return s=i.replace("-items",""),"-webkit-"+i+"-webkit-box-"+s+"-ms-flex-"+s+i;case 115:return"-webkit-"+i+"-ms-flex-item-"+i.replace(w,"")+i;default:return"-webkit-"+i+"-ms-flex-line-pack"+i.replace("align-content","").replace(w,"")+i}break;case 973:case 989:if(45!==i.charCodeAt(3)||122===i.charCodeAt(4))break;case 931:case 953:if(!0===N.test(e))return 115===(s=e.substring(e.indexOf(":")+1)).charCodeAt(0)?r(e.replace("stretch","fill-available"),t,a,n).replace(":fill-available",":stretch"):i.replace(s,"-webkit-"+s)+i.replace(s,"-moz-"+s.replace("fill-",""))+i;break;case 962:if(i="-webkit-"+i+(102===i.charCodeAt(5)?"-ms-"+i:"")+i,211===a+n&&105===i.charCodeAt(13)&&0<i.indexOf("transform",10))return i.substring(0,i.indexOf(";",27)+1).replace(f,"$1-webkit-$2")+i}return i}function l(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(A,"$1"),a,t)}function i(e,t){var a=r(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return a!==t+";"?a.replace(y," or ($1)").substring(4):"("+t+")"}function o(e,t,a,n,r,l,i,o,s,u){for(var d,m=0,p=t;m<I;++m)switch(d=O[m].call(c,e,p,a,n,r,l,i,o,s,u)){case void 0:case!1:case!0:case null:break;default:p=d}if(p!==t)return p}function s(e){return void 0!==(e=e.prefix)&&(R=null,e?"function"!=typeof e?T=1:(T=2,R=e):T=0),s}function c(e,a){var n=e;if(33>n.charCodeAt(0)&&(n=n.trim()),n=[n],0<I){var r=o(-1,a,n,n,C,x,0,0,0,0);void 0!==r&&"string"==typeof r&&(a=r)}var l=t(F,n,a,0,0);return 0<I&&void 0!==(r=o(-2,l,n,n,C,x,l.length,0,0,0))&&(l=r),P=0,x=C=1,l}var u=/^\0+/g,d=/[\0\r\f]/g,m=/: */g,p=/zoo|gra/,f=/([,: ])(transform)/g,h=/,\r+?/g,g=/([\t\r\n ])*\f?&/g,k=/@(k\w+)\s*(\S*)\s*/,_=/::(place)/g,E=/:(read-only)/g,b=/[svh]\w+-[tblr]{2}/,v=/\(\s*(.*)\s*\)/g,y=/([\s\S]*?);/g,w=/-self|flex-/g,A=/[^]*?(:[rp][el]a[\w-]+)[^]*/,N=/stretch|:\s*\w+\-(?:conte|avail)/,S=/([^-])(image-set\()/,x=1,C=1,P=0,T=1,F=[],O=[],I=0,R=null,D=0;return c.use=function e(t){switch(t){case void 0:case null:I=O.length=0;break;default:if("function"==typeof t)O[I++]=t;else if("object"==typeof t)for(var a=0,n=t.length;a<n;++a)e(t[a]);else D=0|!!t}return e},c.set=s,void 0!==e&&s(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 d=/^((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|fetchpriority|fetchPriority|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|popover|popoverTarget|popoverTargetAction|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)-.*))$/,m=u(function(e){return d.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}),p=a(35),f=a.n(p);function h(){return(h=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 g=function(e,t){for(var a=[e[0]],n=0,r=t.length;n<r;n+=1)a.push(t[n],e[n+1]);return a},k=function(e){return null!==e&&"object"==typeof e&&"[object Object]"===(e.toString?e.toString():Object.prototype.toString.call(e))&&!(0,n.typeOf)(e)},_=Object.freeze([]),E=Object.freeze({});function b(e){return"function"==typeof e}function v(e){return e.displayName||e.name||"Component"}function y(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",A="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,r=n;e>=r;)(r<<=1)<0&&C(16,""+e);this.groupSizes=new Uint32Array(r),this.groupSizes.set(a),this.length=r;for(var l=n;l<r;l++)this.groupSizes[l]=0}for(var i=this.indexOfGroup(e+1),o=0,s=t.length;o<s;o++)this.tag.insertRule(i,t[o])&&(this.groupSizes[e]++,i++)},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 r=a;r<n;r++)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),r=n+a,l=n;l<r;l++)t+=this.tag.getRule(l)+"/*!sc*/\n";return t},e}(),T=new Map,F=new Map,O=1,I=function(e){if(T.has(e))return T.get(e);for(;F.has(O);)O++;var t=O++;return T.set(e,t),F.set(t,e),t},R=function(e){return F.get(e)},D=function(e,t){t>=O&&(O=t+1),T.set(e,t),F.set(t,e)},M="style["+w+'][data-styled-version="5.3.11"]',j=new RegExp("^"+w+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),q=function(e,t,a){for(var n,r=a.split(","),l=0,i=r.length;l<i;l++)(n=r[l])&&e.registerName(t,n)},L=function(e,t){for(var a=(t.textContent||"").split("/*!sc*/\n"),n=[],r=0,l=a.length;r<l;r++){var i=a[r].trim();if(i){var o=i.match(j);if(o){var s=0|parseInt(o[1],10),c=o[2];0!==s&&(D(c,s),q(e,c,o[3]),e.getTag().insertRules(s,n)),n.length=0}else n.push(i)}}},B=function(){return a.nc},G=function(e){var t=document.head,a=e||t,n=document.createElement("style"),r=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),l=void 0!==r?r.nextSibling:null;n.setAttribute(w,"active"),n.setAttribute("data-styled-version","5.3.11");var i=B();return i&&n.setAttribute("nonce",i),a.insertBefore(n,l),n},U=function(){function e(e){var t=this.element=G(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 r=t[a];if(r.ownerNode===e)return r}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=G(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}(),z=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}(),V=N,J={isServer:!N,useCSSOMInjection:!S},W=function(){function e(e,t,a){void 0===e&&(e=E),void 0===t&&(t={}),this.options=h({},J,{},e),this.gs=t,this.names=new Map(a),this.server=!!e.isServer,!this.server&&N&&V&&(V=!1,function(e){for(var t=document.querySelectorAll(M),a=0,n=t.length;a<n;a++){var r=t[a];r&&"active"!==r.getAttribute(w)&&(L(e,r),r.parentNode&&r.parentNode.removeChild(r))}}(this))}e.registerId=function(e){return I(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,a){return void 0===a&&(a=!0),new e(h({},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,r=t.target,e=a?new z(r):n?new U(r):new H(r),new P(e)));var e,t,a,n,r},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(I(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(I(e),a)},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.clearRules=function(e){this.getTag().clearGroup(I(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="",r=0;r<a;r++){var l=R(r);if(void 0!==l){var i=e.names.get(l),o=t.getGroup(r);if(i&&o&&i.size){var s=w+".g"+r+'[id="'+l+'"]',c="";void 0!==i&&i.forEach(function(e){e.length>0&&(c+=e+",")}),n+=""+o+s+'{content:"'+c+'"}/*!sc*/\n'}}}return n}(this)},e}(),Y=/(a)(d)/gi,Q=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=Q(t%52)+a;return(Q(t%52)+a).replace(Y,"$1-$2")}var K=function(e,t){for(var a=t.length;a;)e=33*e^t.charCodeAt(--a);return e},X=function(e){return K(5381,e)};function $(e){for(var t=0;t<e.length;t+=1){var a=e[t];if(b(a)&&!y(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)&&$(e),this.componentId=t,this.baseHash=K(ee,t),this.baseStyle=a,W.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,a){var n=this.componentId,r=[];if(this.baseStyle&&r.push(this.baseStyle.generateAndInjectStyles(e,t,a)),this.isStatic&&!a.hash)if(this.staticRulesId&&t.hasNameForId(n,this.staticRulesId))r.push(this.staticRulesId);else{var l=be(this.rules,e,t,a).join(""),i=Z(K(this.baseHash,l)>>>0);if(!t.hasNameForId(n,i)){var o=a(l,"."+i,void 0,n);t.insertRules(n,i,o)}r.push(i),this.staticRulesId=i}else{for(var s=this.rules.length,c=K(this.baseHash,a.hash),u="",d=0;d<s;d++){var m=this.rules[d];if("string"==typeof m)u+=m;else if(m){var p=be(m,e,t,a),f=Array.isArray(p)?p.join(""):p;c=K(c,f+d),u+=f}}if(u){var h=Z(c>>>0);if(!t.hasNameForId(n,h)){var g=a(u,"."+h,void 0,n);t.insertRules(n,h,g)}r.push(h)}}return r.join(" ")},e}(),ae=/^\s*\/\/.*$/gm,ne=[":","[",".","#"];function re(e){var t,a,n,r,l=void 0===e?E:e,i=l.options,o=void 0===i?E:i,c=l.plugins,u=void 0===c?_:c,d=new s(o),m=[],p=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(a,n,r,l,i,o,s,c,u,d){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(r[0]+n),"";default:return n+(0===d?"/*|*/":"")}case-2:n.split("/*|*/}").forEach(t)}}}(function(e){m.push(e)}),f=function(e,n,l){return 0===n&&-1!==ne.indexOf(l[a.length])||l.match(r)?e:"."+t};function h(e,l,i,o){void 0===o&&(o="&");var s=e.replace(ae,""),c=l&&i?i+" "+l+" { "+s+" }":s;return t=o,a=l,n=new RegExp("\\"+a+"\\b","g"),r=new RegExp("(\\"+a+"\\b){2,}"),d(i||!l?"":l,c)}return d.use([].concat(u,[function(e,t,r){2===e&&r.length&&r[0].lastIndexOf(a)>0&&(r[0]=r[0].replace(n,f))},p,function(e){if(-2===e){var t=m;return m=[],t}}])),h.hash=u.length?u.reduce(function(e,t){return t.name||C(15),K(e,t.name)},5381).toString():"",h}var le=l().createContext(),ie=le.Consumer,oe=l().createContext(),se=(oe.Consumer,new W),ce=re();function ue(){return(0,r.useContext)(le)||se}function de(){return(0,r.useContext)(oe)||ce}function me(e){var t=(0,r.useState)(e.stylisPlugins),a=t[0],n=t[1],i=ue(),s=(0,r.useMemo)(function(){var t=i;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,r.useMemo)(function(){return re({options:{prefix:!e.disableVendorPrefixes},plugins:a})},[e.disableVendorPrefixes,a]);return(0,r.useEffect)(function(){o()(a,e.stylisPlugins)||n(e.stylisPlugins)},[e.stylisPlugins]),l().createElement(le.Provider,{value:s},l().createElement(oe.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}(),fe=/([A-Z])/,he=/([A-Z])/g,ge=/^ms-/,ke=function(e){return"-"+e.toLowerCase()};function _e(e){return fe.test(e)?e.replace(he,ke).replace(ge,"-ms-"):e}var Ee=function(e){return null==e||!1===e||""===e};function be(e,t,a,n){if(Array.isArray(e)){for(var r,l=[],i=0,o=e.length;i<o;i+=1)""!==(r=be(e[i],t,a,n))&&(Array.isArray(r)?l.push.apply(l,r):l.push(r));return l}return Ee(e)?"":y(e)?"."+e.styledComponentId:b(e)?"function"!=typeof(s=e)||s.prototype&&s.prototype.isReactComponent||!t?e:be(e(t),t,a,n):e instanceof pe?a?(e.inject(a,n),e.getName(n)):e:k(e)?function e(t,a){var n,r,l=[];for(var i in t)t.hasOwnProperty(i)&&!Ee(t[i])&&(Array.isArray(t[i])&&t[i].isCss||b(t[i])?l.push(_e(i)+":",t[i],";"):k(t[i])?l.push.apply(l,e(t[i],i)):l.push(_e(i)+": "+(n=i,(null==(r=t[i])||"boolean"==typeof r||""===r?"":"number"!=typeof r||0===r||n in c||n.startsWith("--")?String(r).trim():r+"px")+";")));return a?[a+" {"].concat(l,["}"]):l}(e):e.toString();var s}var ve=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function ye(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)||k(e)?ve(be(g(_,[e].concat(a)))):0===a.length&&1===e.length&&"string"==typeof e[0]?e:ve(be(g(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},Ae=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Ne=/(^-|-$)/g;function Se(e){return e.replace(Ae,"-").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)},Te=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function Fe(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 r=0,l=a;r<l.length;r++){var i=l[r];if(Pe(i))for(var o in i)Te(o)&&Fe(e,i[o],o)}return e}var Ie=l().createContext(),Re=Ie.Consumer;function De(e){var t=(0,r.useContext)(Ie),a=(0,r.useMemo)(function(){return function(e,t){return e?b(e)?e(t):Array.isArray(e)||"object"!=typeof e?C(8):t?h({},t,{},e):e:C(14)}(e.theme,t)},[e.theme,t]);return e.children?l().createElement(Ie.Provider,{value:a},e.children):null}var Me={};function je(e,t,a){var n=y(e),i=!Ce(e),o=t.attrs,s=void 0===o?_:o,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,d=t.displayName,p=void 0===d?function(e){return Ce(e)?"styled."+e:"Styled("+v(e)+")"}(e):d,g=t.displayName&&t.componentId?Se(t.displayName)+"-"+t.componentId:t.componentId||u,k=n&&e.attrs?Array.prototype.concat(e.attrs,s).filter(Boolean):s,w=t.shouldForwardProp;n&&e.shouldForwardProp&&(w=t.shouldForwardProp?function(a,n,r){return e.shouldForwardProp(a,n,r)&&t.shouldForwardProp(a,n,r)}:e.shouldForwardProp);var A,N=new te(a,g,n?e.componentStyle:void 0),S=N.isStatic&&0===s.length,x=function(e,t){return function(e,t,a,n){var l=e.attrs,i=e.componentStyle,o=e.defaultProps,s=e.foldedComponentIds,c=e.shouldForwardProp,u=e.styledComponentId,d=e.target,p=function(e,t,a){void 0===e&&(e=E);var n=h({},t,{theme:e}),r={};return a.forEach(function(e){var t,a,l,i=e;for(t in b(i)&&(i=i(n)),i)n[t]=r[t]="className"===t?(a=r[t],l=i[t],a&&l?a+" "+l:a||l):i[t]}),[n,r]}(we(t,(0,r.useContext)(Ie),o)||E,t,l),f=p[0],g=p[1],k=function(e,t,a){var n=ue(),r=de();return t?e.generateAndInjectStyles(E,n,r):e.generateAndInjectStyles(a,n,r)}(i,n,f),_=a,v=g.$as||t.$as||g.as||t.as||d,y=Ce(v),w=g!==t?h({},t,{},g):t,A={};for(var N in w)"$"!==N[0]&&"as"!==N&&("forwardedAs"===N?A.as=w[N]:(c?c(N,m,v):!y||m(N))&&(A[N]=w[N]));return t.style&&g.style!==t.style&&(A.style=h({},t.style,{},g.style)),A.className=Array.prototype.concat(s,u,k!==u?k:null,t.className,g.className).filter(Boolean).join(" "),A.ref=_,(0,r.createElement)(v,A)}(A,e,t,S)};return x.displayName=p,(A=l().forwardRef(x)).attrs=k,A.componentStyle=N,A.displayName=p,A.shouldForwardProp=w,A.foldedComponentIds=n?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):_,A.styledComponentId=g,A.target=n?e.target:e,A.withComponent=function(e){var n=t.componentId,r=function(e,t){if(null==e)return{};var a,n,r={},l=Object.keys(e);for(n=0;n<l.length;n++)a=l[n],t.indexOf(a)>=0||(r[a]=e[a]);return r}(t,["componentId"]),l=n&&n+"-"+(Ce(e)?e:Se(v(e)));return je(e,h({},r,{attrs:k,componentId:l}),a)},Object.defineProperty(A,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=n?Oe({},e.defaultProps,t):t}}),Object.defineProperty(A,"toString",{value:function(){return"."+A.styledComponentId}}),i&&f()(A,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),A}var qe=function(e){return function e(t,a,r){if(void 0===r&&(r=E),!(0,n.isValidElementType)(a))return C(1,String(a));var l=function(){return t(a,r,ye.apply(void 0,arguments))};return l.withConfig=function(n){return e(t,a,h({},r,{},n))},l.attrs=function(n){return e(t,a,h({},r,{attrs:Array.prototype.concat(r.attrs,n).filter(Boolean)}))},l}(je,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){qe[e]=qe(e)});var Le=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=$(e),W.registerId(this.componentId+1)}var t=e.prototype;return t.createStyles=function(e,t,a,n){var r=n(be(this.rules,t,a,n).join(""),""),l=this.componentId+e;a.insertRules(l,l,r)},t.removeStyles=function(e,t){t.clearRules(this.componentId+e)},t.renderStyles=function(e,t,a,n){e>2&&W.registerId(this.componentId+e),this.removeStyles(e,a),this.createStyles(e,t,a,n)},e}();function Be(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 i=ye.apply(void 0,[e].concat(a)),o="sc-global-"+xe(JSON.stringify(i)),s=new Le(i,o);function c(e){var t=ue(),a=de(),n=(0,r.useContext)(Ie),l=(0,r.useRef)(t.allocateGSInstance(o)).current;return t.server&&u(l,e,t,n,a),(0,r.useLayoutEffect)(function(){if(!t.server)return u(l,e,t,n,a),function(){return s.removeStyles(l,t)}},[l,e,t,n,a]),null}function u(e,t,a,n,r){if(s.isStatic)s.renderStyles(e,x,a,r);else{var l=h({},t,{theme:we(t,n,c.defaultProps)});s.renderStyles(e,l,a,r)}}return l().memo(c)}function Ge(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 r=ye.apply(void 0,[e].concat(a)).join(""),l=xe(r);return new pe(l,r)}var Ue=function(){function e(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString();if(!t)return"";var a=B();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=B();return n&&(a.nonce=n),[l().createElement("style",h({},a,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new W({isServer:!0}),this.sealed=!1}var t=e.prototype;return t.collectStyles=function(e){return this.sealed?C(2):l().createElement(me,{sheet:this.instance},e)},t.interleaveWithNodeStream=function(e){return C(3)},e}(),He=function(e){var t=l().forwardRef(function(t,a){var n=(0,r.useContext)(Ie),i=e.defaultProps,o=we(t,n,i);return l().createElement(e,h({},t,{theme:o,ref:a}))});return f()(t,e),t.displayName="WithTheme("+v(e)+")",t},ze=function(){return(0,r.useContext)(Ie)},Ve={StyleSheet:W,masterSheet:se};const Je=qe},875:function(e,t,a){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,a,n){void 0===n&&(n=a);var r=Object.getOwnPropertyDescriptor(t,a);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,n,r)}:function(e,t,a,n){void 0===n&&(n=a),e[n]=t[a]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),l=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 r(t,e),t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.storeConfig=void 0;const o=a(143),s=a(86),c=i(a(195)),u=l(a(24)),d=l(a(973)),m=l(a(355));t.storeConfig={reducer:c.default,actions:u,selectors:d,resolvers:m};const p=(0,o.createReduxStore)(s.STORE_NAME,t.storeConfig);(0,o.register)(p)},945:e=>{e.exports=function(e,t,a,n){var r=a?a.call(n,e,t):void 0;if(void 0!==r)return!!r;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var l=Object.keys(e),i=Object.keys(t);if(l.length!==i.length)return!1;for(var o=Object.prototype.hasOwnProperty.bind(t),s=0;s<l.length;s++){var c=l[s];if(!o(c))return!1;var u=e[c],d=t[c];if(!1===(r=a?a.call(n,u,d,c):void 0)||void 0===r&&u!==d)return!1}return!0}},959:(e,t,a)=>{"use strict";e.exports=a(843)},973:(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},985:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}},t={};function a(n){var r=t[n];if(void 0!==r)return r.exports;var l=t[n]={exports:{}};return e[n].call(l.exports,l,l.exports,a),l.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:()=>Me,AppProvider:()=>Ie,AppStructure:()=>De,AppTabSwitcher:()=>Re,Header:()=>E,Nav:()=>y,Spinner:()=>M,Table:()=>j,apiFetch:()=>f,copyInClipboard:()=>k,deepMerge:()=>h,getPluginURL:()=>g,onDocumentLoaded:()=>_,useAppSlotContext:()=>S});var e=a(87),t=a(723);const r=window.wp.editor,l=window.wp.hooks,i=qlttf_backend.QLTTF_PLUGIN_NAME,o=qlttf_backend.QLTTF_PLUGIN_VERSION,s=(qlttf_backend.QLTTF_PLUGIN_FILE,qlttf_backend.QLTTF_PLUGIN_DIR,qlttf_backend.QLTTF_DOMAIN,qlttf_backend.QLTTF_PREFIX,qlttf_backend.QLTTF_WORDPRESS_URL,qlttf_backend.QLTTF_REVIEW_URL,qlttf_backend.QLTTF_GROUP_URL),c=(qlttf_backend.QLTTF_DEVELOPER,qlttf_backend.QLTTF_TIKTOK_URL,qlttf_backend.QLTTF_ACCESS_TOKEN_LINK),u=qlttf_backend.QLTTF_FEED_MODEL,d=(qlttf_backend.QLTTF_REST_ROUTES,window.lodash);var m=a(455),p=a.n(m);async function f(e){return await p()(e).then(e=>{if(e.code)throw new Error(`${e.code}: ${e?.message||"Unknown"}`);return e}).catch(e=>{throw new Error(JSON.stringify(e))})}function h(e,t){const a={};return new Set([...Object.keys(e),...Object.keys(t)]).forEach(n=>{e.hasOwnProperty(n)&&t.hasOwnProperty(n)?(0,d.isObject)(e[n])&&!Array.isArray(e[n])?a[n]=h(e[n],t[n]):a[n]=t[n]:e.hasOwnProperty(n)?a[n]=e[n]:t.hasOwnProperty(n)&&(a[n]=t[n])}),a}function g(e){return qlttf_backend.plugin_url+e}function k(e){return navigator.clipboard&&navigator.clipboard.writeText?navigator.clipboard.writeText(e).then(function(){return!0},function(){return!1}):new Promise(t=>{try{const a=document.createElement("textarea");a.value=e,a.style.position="fixed",a.style.left="-999999px",a.style.top="-999999px",document.body.appendChild(a),a.focus(),a.select();const n=document.execCommand("copy");document.body.removeChild(a),t(n)}catch(e){console.error("Failed to copy text: ",e),t(!1)}})}const _=e=>{/comp|inter|loaded/.test(document.readyState)?e():document.addEventListener("DOMContentLoaded",e,!1)},E=()=>(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"wrap about-wrap full-width-layout"},(0,e.createElement)("h1",null,i),(0,e.createElement)("p",{className:"about-text"},(0,t.sprintf)((0,t.__)("Thanks for using %s! We are doing our best to offer you the best alternatives to display TikTok videos on your site, helping you to improve communication experience with your users.","wp-tiktok-feed"),i)),(0,e.createElement)("p",{className:"about-text"},(0,e.createElement)("a",{href:"https://quadlayers.com/products/tiktok-feed/?utm_source=qlttf_plugin&utm_medium=admin_header&utm_campaign=premium_upgrade&utm_content=premium_link",target:"__blank"},(0,t.__)("Premium","wp-tiktok-feed"))," ","|",(0,e.createElement)("a",{href:"https://quadlayers.com/demo/tiktok-feed/?utm_source=qlttf_plugin&utm_medium=admin_header&utm_campaign=demo&utm_content=demo_link",target:"__blank"},(0,t.__)("Demo","wp-tiktok-feed"))," ","|",(0,e.createElement)("a",{href:"https://quadlayers.com/documentation/tiktok-feed/?utm_source=qlttf_plugin&utm_medium=admin_header&utm_campaign=documentation&utm_content=documentation_link",target:"__blank"},(0,t.__)("Documentation","wp-tiktok-feed"))),(0,e.createElement)("a",{href:"https://quadlayers.com/?utm_source=qlttf_plugin&utm_medium=admin_header&utm_campaign=branding&utm_content=header_logo",target:"_blank",rel:"noreferrer"},(0,e.createElement)("div",{style:{backgroundImage:`url(${g("/assets/backend/img/quadlayers.jpg")})`},className:"wp-badge quadlayers__logo"},"QuadLayers"))));var b=a(500),v=a.n(b);const y=function(){const{currentTab:t,setCurrentTab:a,tabs:n}=Fe();return(0,e.useEffect)(()=>{(e=>{const t=Array.from(document.querySelector("#toplevel_page_qlttf_backend .wp-submenu").children),a=e[0].toUpperCase()+e.slice(1).toLowerCase();t.map(e=>{e.innerText.trim()==a?e.classList.add("current"):e.classList.remove("current")})})(t)},[t]),(0,e.createElement)("div",{className:"wrap about-wrap full-width-layout"},(0,e.createElement)("ul",{className:"nav-tab-wrapper"},n.map(({label:n,name:r},l)=>(0,e.createElement)("li",{key:l,className:"nav-tab-li",onClick:e=>{e.preventDefault(),e.stopPropagation(),a(r)}},(0,e.createElement)("a",{href:"#",className:v()("nav-tab",t===r&&"nav-tab-active"),onClick:e=>{e.preventDefault()}},n)))))},w=window.wp.components,A=window.wp.compose,N=(0,e.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}}),S=()=>(0,e.useContext)(N),x=t=>{const a=(0,e.useRef)(),{children:n}=t,r=`tiktok.admin.Control.Slot.${(0,A.useInstanceId)(x)}`,l={},i={},{Fill:o,Slot:s}=(0,e.useCallback)((0,w.createSlotFill)(`${r}.header`),[r]),{Fill:c,Slot:u}=(0,e.useCallback)((0,w.createSlotFill)(`${r}.navigation`),[r]),{Fill:d,Slot:m}=(0,e.useCallback)((0,w.createSlotFill)(`${r}content`),[r]),{Fill:p,Slot:f}=(0,e.useCallback)((0,w.createSlotFill)(`${r}.aside`),[r]),{Fill:h,Slot:g}=(0,e.useCallback)((0,w.createSlotFill)(`${r}.footer`),[r]);return l.Header=s,i.Header=o,l.Navigation=u,i.Navigation=c,l.Content=m,i.Content=d,l.Aside=f,i.Aside=p,l.Footer=g,i.Footer=h,(0,e.createElement)(w.SlotFillProvider,null,(0,e.createElement)(N.Provider,{value:{Slot:l,Fill:i,containerRef:a}},n))},C=N.Consumer,P=({isSecondary:t,href:a,title:n,target:r="_self",tagName:l="a",className:i,children:o})=>{const s=l;return(0,e.createElement)(s,{className:v()("tiktok__button",t&&"tiktok__button--secondary",i),href:a,target:r,title:n},o)},T=()=>(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,i,(0,e.createElement)("span",{style:{fontSize:"24px",color:"#555"}}," ","v",o," ")),(0,e.createElement)("div",{className:"about-text"},(0,e.createElement)("p",null,sprintf((0,t.__)("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","wp-tiktok-feed"),i)))),(0,e.createElement)("hr",null),(0,e.createElement)("div",{className:"feature-section"},(0,e.createElement)("h3",null,(0,t.__)("Premium","wp-tiktok-feed")),(0,e.createElement)("p",null,sprintf((0,t.__)("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.","wp-tiktok-feed"),i)),(0,e.createElement)(P,{href:"https://quadlayers.com/products/tiktok-feed/?utm_source=qlttf_plugin&utm_medium=admin_tab&utm_campaign=premium_upgrade&utm_content=purchase_button",target:"_blank"},(0,t.__)("Purchase Now","wp-tiktok-feed"))),(0,e.createElement)("div",{className:"feature-section"},(0,e.createElement)("h3",null,(0,t.__)("Demo","wp-tiktok-feed")),(0,e.createElement)("p",null,sprintf((0,t.__)("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.","wp-tiktok-feed"),i)),(0,e.createElement)(P,{isSecondary:!0,href:"https://quadlayers.com/demo/tiktok-feed/?utm_source=qlttf_plugin&utm_medium=admin_tab&utm_campaign=demo&utm_content=demo_button",target:"_blank"},(0,t.__)("View demo","wp-tiktok-feed"))),(0,e.createElement)("div",{className:"feature-section"},(0,e.createElement)("h3",null,(0,t.__)("Support","wp-tiktok-feed")),(0,e.createElement)("p",null,sprintf((0,t.__)("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.","wp-tiktok-feed"),i)),(0,e.createElement)(P,{isSecondary:!0,href:"https://quadlayers.com/account/support/?utm_source=qlttf_plugin&utm_medium=admin_tab&utm_campaign=support&utm_content=support_button",target:"_blank"},(0,t.__)("Submit ticket","wp-tiktok-feed"))),(0,e.createElement)("div",{className:"feature-section"},(0,e.createElement)("h3",null,(0,t.__)("Comunnity","wp-tiktok-feed")),(0,e.createElement)("p",null,sprintf((0,t.__)("If you want to get in touch with other %s users or be aware of our promotional discounts join our community now.","wp-tiktok-feed"),i)),(0,e.createElement)(P,{isSecondary:!0,href:s,target:"_blank"},(0,t.__)("Join our community","wp-tiktok-feed")))),(0,e.createElement)("div",{className:"column"},(0,e.createElement)("img",{src:g("/assets/backend/img/mobile.png")})))),F=()=>{const{Fill:t}=S();return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(t.Header,null,(0,e.createElement)(E,null)),(0,e.createElement)(t.Navigation,null,(0,e.createElement)(y,null)),(0,e.createElement)(t.Content,null,(0,e.createElement)(T,null)))},O=({title:t,show:a,onClose:n,children:r,className:l,__experimentalHideHeader:i=!1})=>{const o=(0,e.useRef)();return(0,e.useEffect)(()=>{const e=e=>{a&&o?.current&&o.current===e.target&&n(e)};return o?.current?.addEventListener("click",e),()=>{o?.current?.removeEventListener("click",e)}},[o,a]),a?(0,e.createElement)(w.Modal,{ref:o,title:t,onRequestClose:n,shouldCloseOnClickOutside:!1,className:v()("tiktok__modal media-modal wp-core-ui upload-php",l),__experimentalHideHeader:i},r):null};var I=a(143),R=a(692);const D=window.qlttf.store;function M(){return(0,e.createElement)("p",null,(0,e.createElement)("span",{style:{visibility:"visible"},className:"spinner"}),(0,t.__)("Loading…","wp-tiktok-feed"))}function j({children:t,style:a}){return(0,e.createElement)("table",{className:"form-table widefat striped tiktok__table",style:a},t)}const q=window.wp.date,L=({account:a,deleteAccount:n,createSuccessNotice:r,createErrorNotice:l})=>(0,e.createElement)("tr",null,(0,e.createElement)("td",{width:"1%"},(0,e.createElement)("img",{className:"avatar",src:a.avatar?a.avatar:"http://2.gravatar.com/avatar/b642b4217b34b1e8d3bd915fc65c4452?s=150&d=mm&r=g"})),(0,e.createElement)("td",null,a.username||(0,t.__)("Loading…","wp-tiktok-feed")),(0,e.createElement)("td",null,a.open_id),(0,e.createElement)("td",{style:{width:"300px"}},(0,e.createElement)("input",{type:"text",defaultValue:a.refresh_token,readOnly:!0}),(0,e.createElement)("button",{className:"button button-primary",onClick:async()=>{await k(a.refresh_token)?r((0,t.__)("Refresh token copied to clipboard.","wp-tiktok-feed"),{id:1,type:"snackbar"}):l((0,t.__)("Can't copy the refresh token.","wp-tiktok-feed"),{id:2,type:"snackbar"})}},(0,e.createElement)("i",{className:"dashicons dashicons-admin-page"}))),(0,e.createElement)("td",null,(0,q.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,t.sprintf)((0,t.__)("You are about to delete the %s account.","wp-tiktok-feed"),a.username))&&n(a.open_id,a.username)}},(0,e.createElement)("i",{className:"dashicons dashicons-trash"})))),B=t=>{const{href:a,target:n="_self",title:r,children:l,className:i}=t;return(0,e.createElement)("a",{href:a,className:v()("tiktok__account-button",i),target:n,title:r},l)},G=({isOpen:a,setIsOpen:n})=>{const{createSuccessNotice:r,createErrorNotice:l,createWarningNotice:i}=(0,I.useDispatch)(R.store),{accounts:o,hasAccounts:s,hasResolvedAccounts:u,deleteAccount:d}=(0,D.useAccountsEntities)();return u?(0,e.createElement)("div",{className:"wrap about-wrap full-width-layout"},(0,e.createElement)("p",null,(0,e.createElement)(B,{href:c,className:v()("tiktok__account-button",s&&"qlttf-premium-field"),target:"_self",title:(0,t.__)("Add TikTok Account","wp-tiktok-feed")},(0,t.__)("Add TikTok Account","wp-tiktok-feed")),(0,e.createElement)("a",{className:v()("tiktok__account-link",s&&"qlttf-premium-field"),href:"#",onClick:()=>n(!0)},(0,t.__)("Button not working?","wp-tiktok-feed")),(0,e.createElement)("span",{className:"qlttf-premium-field"},(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,t.__)("Multiple user accounts are only allowed in the premium version.","wp-tiktok-feed"))))),o&&(0,e.createElement)(j,null,(0,e.createElement)("thead",null,(0,e.createElement)("tr",null,(0,e.createElement)("th",null,(0,t.__)("Image","wp-tiktok-feed")),(0,e.createElement)("th",null,(0,t.__)("Username","wp-tiktok-feed")),(0,e.createElement)("th",null,(0,t.__)("Open Id","wp-tiktok-feed")),(0,e.createElement)("th",null,(0,t.__)("Refresh Token","wp-tiktok-feed")),(0,e.createElement)("th",null,(0,t.__)("Expires","wp-tiktok-feed")),(0,e.createElement)("th",null,(0,t.__)("Action","wp-tiktok-feed")))),(0,e.createElement)("tbody",null,o.map((t,a)=>(0,e.createElement)(L,{key:a,account:t,deleteAccount:d,createSuccessNotice:r,createErrorNotice:l}))))):(0,e.createElement)(M,null)},U=({isOpen:a,setIsOpen:n})=>{const{createAccount:r}=(0,D.useAccountsEntities)(),[l,i]=(0,e.useState)(!1),[o,s]=(0,e.useState)({refresh_token:""}),c=l||!o?.refresh_token;return(0,e.createElement)("div",null,(0,e.createElement)("form",{onSubmit:async e=>{e.preventDefault(),i(!0);const t=await r(o);i(!1),t&&n(!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:()=>n(!1)},(0,e.createElement)("span",{className:"media-modal-icon"},(0,e.createElement)("span",{className:"screen-reader-text"},(0,t.__)("Close dialog","wp-tiktok-feed"))))),(0,e.createElement)("div",{className:"media-frame-title"},(0,e.createElement)("h1",null,(0,t.__)("Manually connect an account","wp-tiktok-feed"))),(0,e.createElement)("div",{className:"media-frame-content"},(0,e.createElement)("div",{style:{height:"100%",overflowX:"hidden"}},(0,e.createElement)("div",{className:"tiktok__modal__panel"},(0,e.createElement)("div",{className:"options_group"},(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Refresh Token:","wp-tiktok-feed")),(0,e.createElement)("input",{style:{minWidth:260},type:"text",placeholder:(0,t.__)("Enter a valid refresh token","wp-tiktok-feed"),required:!0,value:o.refresh_token,onChange:e=>s({refresh_token:e.target.value})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("a",{style:{margin:"0 15px"},target:"_blank",href:"https://tiktokfeedv2.quadlayers.com/auth/",rel:"noreferrer"},(0,t.__)("Get access token","wp-tiktok-feed"))))),(0,e.createElement)("div",{className:"options_group",style:{borderBottom:"none"}},(0,e.createElement)("p",{className:"form-field"},(0,t.__)("Please copy and paste your refresh access token here.","wp-tiktok-feed")))))),(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)("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,t.__)("Save","wp-tiktok-feed")))))))))},H=()=>{const{Fill:t}=S(),[a,n]=(0,e.useState)(!1);return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(t.Header,null,(0,e.createElement)(E,null)),(0,e.createElement)(t.Navigation,null,(0,e.createElement)(y,null)),(0,e.createElement)(t.Content,null,(0,e.createElement)(G,{isOpen:a,setIsOpen:n}),(0,e.createElement)(O,{show:a,className:"tiktok__modal--account",onClose:()=>n(!1),__experimentalHideHeader:!0},(0,e.createElement)(U,{isOpen:a,setIsOpen:n}))))},z=[{label:(0,t.__)("General","wp-tiktok-feed"),name:"general"},{label:(0,t.__)("Profile","wp-tiktok-feed"),name:"profile"},{label:(0,t.__)("Carousel","wp-tiktok-feed"),name:"carousel"},{label:(0,t.__)("Box","wp-tiktok-feed"),name:"box"},{label:(0,t.__)("Video","wp-tiktok-feed"),name:"video"},{label:(0,t.__)("Card","wp-tiktok-feed"),name:"video-card"},{label:(0,t.__)("Modal","wp-tiktok-feed"),name:"video-modal"},{label:(0,t.__)("Button","wp-tiktok-feed"),name:"button"},{label:(0,t.__)("Button Load More","wp-tiktok-feed"),name:"button-load-more"}],V={currentFeedIndex:null,currentTab:z[0].name,prevPanel:null,currentFeedFormData:u},J=(0,e.createContext)({}),W=()=>(0,e.useContext)(J),Y=(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},Q=t=>{const{children:a}=t,[n,r]=(0,e.useReducer)(Y,V),{feeds:l,createFeed:i,editFeed:o}=(0,D.useFeedsEntities)(),s=l[n.currentFeedIndex],c=(0,d.isEqual)(s,n.currentFeedFormData);return(0,e.createElement)(J.Provider,{value:{...n,setCurrentTab:e=>{n.currentTab!=e&&r({type:"SET_CURRENT_TAB",payload:{currentTab:e}})},setCurrentFeedIndex:(e=null)=>{r({type:"SET_CURRENT_FEED",payload:{currentFeedIndex:e,currentFeedFormData:l?.[e]||V.currentFeedFormData}})},setCurrentFeedFormData:e=>{const t=h(n.currentFeedFormData,e);r({type:"SET_CURRENT_FEED_FORM_DATA",payload:{currentFeedFormData:void 0===t?"":t}})},feeds:l,createFeed:i,editFeed:o,isCurrentFeedDataModified:c}},a)};function Z({setIsOpen:a,isLoading:n}){const{isCurrentFeedDataModified:r,currentFeedFormData:l}=W(),i=n||r||(()=>{switch(l.source){case"account":if(""==l.open_id)return!0;break;case"username":if(""==l.username)return!0;break;case"hashtag":if(""==l.hashtag)return!0;break;default:return!1}})();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"},(0,e.createElement)("span",{className:"settings-save-status media-button",style:{float:"left"}},n&&(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:i},(0,t.__)("Save","wp-tiktok-feed")),(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:()=>a(!1)},(0,t.__)("Close","wp-tiktok-feed")))))}function K({setIsOpen:a,isNewFeed:n,currentFeedId:r}){const{feeds:l,currentFeedIndex:i,setCurrentFeedIndex:o}=W(),s=i-1,c=i+1;return(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"edit-media-header"},!n&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)("button",{type:"button",className:"left",disabled:!l[s],onClick:()=>{o(s)}},(0,e.createElement)("span",{className:"screen-reader-text"},(0,t.__)("Edit previous media item","wp-tiktok-feed"))),(0,e.createElement)("button",{type:"button",className:"right",disabled:!l[c],onClick:()=>{o(c)}},(0,e.createElement)("span",{className:"screen-reader-text"},(0,t.__)("Edit next media item","wp-tiktok-feed")))),(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,t.__)("Close dialog","wp-tiktok-feed"))))),(0,e.createElement)("div",{className:"media-frame-title"},(0,e.createElement)("h1",null,(0,t.sprintf)((0,t.__)("Edit feed # %s","wp-tiktok-feed"),n?(0,t.__)("New","wp-tiktok-feed"):r))))}J.Consumer;const X=[{name:"gallery",title:"Gallery",premium:!1},{name:"masonry",title:"Masonry",premium:!1},{name:"carousel",title:"Carousel",premium:!0},{name:"carousel-vertical",title:"C. Vertical",premium:!0},{name:"highlight",title:"Highlight",premium:!0},{name:"highlight-square",title:"H. Square",premium:!0}];function $(){const{currentFeedFormData:a,setCurrentFeedFormData:n}=W(),{accounts:r}=(0,D.useAccountsEntities)();return(0,e.createElement)("div",{className:"tiktok__modal__panel"},(0,e.createElement)("div",{className:"options_group"},(0,e.createElement)("p",{className:"form-field form-field--source"},(0,e.createElement)("label",null,(0,t.__)("Source","wp-tiktok-feed")),(0,e.createElement)("span",null,(0,e.createElement)("input",{type:"radio",onChange:()=>n({source:"account"}),checked:"account"==a.source}),(0,e.createElement)("label",null,(0,t.__)("Account","wp-tiktok-feed")," ",(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,t.__)("(This is a premium feature)","wp-tiktok-feed"))))),(0,e.createElement)("span",{className:"qlttf-premium-field"},(0,e.createElement)("input",{type:"radio",onChange:()=>n({source:"username"}),checked:"username"==a.source}),(0,e.createElement)("label",null,(0,t.__)("Username","wp-tiktok-feed"))),(0,e.createElement)("span",{className:"qlttf-premium-field"},(0,e.createElement)("input",{type:"radio",onChange:()=>n({source:"hashtag"}),checked:"hashtag"==a.source}),(0,e.createElement)("label",null,(0,t.__)("Hashtag","wp-tiktok-feed"))),(0,e.createElement)("span",{className:"qlttf-premium-field"},(0,e.createElement)("input",{type:"radio",onChange:()=>n({source:"trending"}),checked:"trending"==a.source}),(0,e.createElement)("label",null,(0,t.__)("Trending","wp-tiktok-feed")))),(0,e.createElement)("p",{className:"form-field qlttf-premium-field",style:{marginTop:-30}},(0,e.createElement)("label",null),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,t.__)("Username, Hashtag & Trending feeds are available in the premium version.","wp-tiktok-feed"))))),"hashtag"==a.source&&(0,e.createElement)("div",{className:"options_group"},(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Hashtag","wp-tiktok-feed")),(0,e.createElement)("input",{type:"text",required:"required",placeholder:"wordpress",value:a.hashtag,onChange:e=>n({hashtag:e.target.value})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Please enter a hashtag","wp-tiktok-feed"))))),"username"==a.source&&(0,e.createElement)("div",{className:"options_group"},(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Username","wp-tiktok-feed")),(0,e.createElement)("input",{type:"text",required:"required",value:a.username,onChange:e=>n({username:e.target.value})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Please enter a username","wp-tiktok-feed"))))),"trending"==a.source&&(0,e.createElement)("div",{className:"options_group"},(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Region","wp-tiktok-feed")),(0,e.createElement)("input",{type:"text",required:"required",value:a.region,onChange:e=>n({region:e.target.value})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,e.createElement)("a",{target:"_blank",rel:"noreferrer noopener",href:"https://www.iso.org/obp/ui/#search"},(0,t.__)("Please enter a region country in Alpha-2 standard. You can find more information about it here.","wp-tiktok-feed")))))),"account"==a.source&&(0,e.createElement)("div",{className:"options_group"},(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Account","wp-tiktok-feed")),(0,e.createElement)("select",{required:!0,value:a.open_id||"",onChange:e=>n({open_id:e.target.value})},(0,e.createElement)("option",{value:""},(0,t.__)("Select an account","wp-tiktok-feed")),r.map((t,a)=>(0,e.createElement)("option",{key:a,value:t.open_id},t.username))),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Please select a TikTok account","wp-tiktok-feed"))))),(0,e.createElement)("div",{className:"options_group"},(0,e.createElement)("div",{className:"form-field"},(0,e.createElement)("ul",{className:"list-images"},X.map(({name:r,title:l,premium:i})=>(0,e.createElement)("li",{key:r,className:v()(a.layout==r&&"active",i&&"qlttf-premium-field"),onClick:e=>n({layout:r})},(0,e.createElement)("span",null,(0,e.createElement)("label",null,l),(0,e.createElement)("img",{alt:l,src:g(`/assets/backend/img/${r}.png`)}),i&&(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,t.__)("(Premium)","wp-tiktok-feed"))))))))),(0,e.createElement)("div",{className:"options_group"},(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Carousel items","wp-tiktok-feed")),(0,e.createElement)("input",{type:"checkbox",checked:!!a.hide_carousel_feed,onChange:e=>n({hide_carousel_feed:!!e.target.checked}),readOnly:!0}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Hide carousel feed items. This option is must be checked until TikTok API can support carousel feed items.","wp-tiktok-feed"))))),(0,e.createElement)("div",{className:"options_group"},(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Limit","wp-tiktok-feed")),(0,e.createElement)("input",{type:"number",min:"1",max:"33",value:a.limit,onChange:e=>n({limit:e.target.value})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Number of videos to display","wp-tiktok-feed")))),(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Columns","wp-tiktok-feed")),(0,e.createElement)("input",{type:"number",min:"1",max:"20",value:a.columns,onChange:e=>n({columns:e.target.value})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Number of videos in a row","wp-tiktok-feed"))))),["highlight","highlight-square"].includes(a.layout)&&(0,e.createElement)("div",{className:"options_group"},(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Highlight by tag","wp-tiktok-feed")),(0,e.createElement)("textarea",{placeholder:"tag1, tag2, tag3",value:a.highlight.tag,onChange:e=>n({highlight:{tag:e.target.value}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Highlight feed items with these tags","wp-tiktok-feed"))),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,t.__)("(This is a premium feature)","wp-tiktok-feed")))),(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Highlight by id","wp-tiktok-feed")),(0,e.createElement)("textarea",{placeholder:"101010110101010",onChange:e=>n({highlight:{id:e.target.value}}),value:a.highlight.id}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Highlight feed items with these ids","wp-tiktok-feed"))),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,t.__)("(This is a premium feature)","wp-tiktok-feed")))),(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Highlight by position","wp-tiktok-feed")),(0,e.createElement)("textarea",{placeholder:"1, 5, 7",onChange:e=>n({highlight:{position:e.target.value}}),value:a.highlight.position}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Highlight feed items with these positions","wp-tiktok-feed"))),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,t.__)("(This is a premium feature)","wp-tiktok-feed"))))),(0,e.createElement)("div",{className:"options_group"},(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Spacing","wp-tiktok-feed")),(0,e.createElement)("input",{type:"number",min:"0",max:"50",value:a.video.spacing,onChange:e=>n({video:{spacing:e.target.value}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Add spacing between videos","wp-tiktok-feed"))))))}function ee(){return ee=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)({}).hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},ee.apply(null,arguments)}const te=window.wp.blockEditor;function ae(t){const{label:a}=t;return(0,e.createElement)("div",{className:"ql-color-palette-picker",onClick:e=>{e.preventDefault()}},(0,e.createElement)(te.ColorPaletteControl,ee({},t,{showTitle:!!a})))}function ne(){const{currentFeedFormData:a,setCurrentFeedFormData:n}=W();return(0,e.createElement)("div",{className:"tiktok__modal__panel"},(0,e.createElement)("div",{className:"options_group qlttf-premium-field"},(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Box","wp-tiktok-feed")),(0,e.createElement)("input",{type:"checkbox",checked:!!a.box.display,onChange:e=>n({box:{display:!!e.target.checked}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Display the TikTok Feed inside a customizable box","wp-tiktok-feed"))),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,t.__)("(This is a premium feature)","wp-tiktok-feed"))))),(0,e.createElement)("div",{className:v()("options_group qlttf-premium-field",!a.box.display&&"disabled-field")},(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Padding","wp-tiktok-feed")),(0,e.createElement)("input",{type:"number",min:"0",max:"300",value:a.box.padding,onChange:e=>n({box:{padding:e.target.value}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Add padding to the box","wp-tiktok-feed"))),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,t.__)("(This is a premium feature)","wp-tiktok-feed")))),(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Radius","wp-tiktok-feed")),(0,e.createElement)("input",{min:"0",max:"1000",type:"number",value:a.box.radius,onChange:e=>n({box:{radius:e.target.value}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Add radius to the box","wp-tiktok-feed"))),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,t.__)("(This is a premium feature)","wp-tiktok-feed")))),(0,e.createElement)("div",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Background","wp-tiktok-feed")),(0,e.createElement)(ae,{value:a.box.background,color:a.box.background,onChange:e=>n({box:{background:e}}),disableCustomColors:!1,label:(0,t.__)("Change background color in box","wp-tiktok-feed")}),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,t.__)("(This is a premium feature)","wp-tiktok-feed")))),(0,e.createElement)("div",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Text color","wp-tiktok-feed")),(0,e.createElement)(ae,{value:a.box.text_color,color:a.box.text_color,onChange:e=>n({box:{text_color:e}}),disableCustomColors:!1,label:(0,t.__)("Change text color in box","wp-tiktok-feed")}),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,t.__)("(This is a premium feature)","wp-tiktok-feed"))))))}function re(){const{currentFeedFormData:a,setCurrentFeedFormData:n}=W();return(0,e.createElement)("div",{className:"tiktok__modal__panel qlttf-premium-field"},(0,e.createElement)("div",{className:"options_group"},(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Autoplay","wp-tiktok-feed")),(0,e.createElement)("input",{type:"checkbox",checked:!!a.carousel.autoplay,onChange:e=>n({carousel:{autoplay:!!e.target.checked}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Autoplay carousel items","wp-tiktok-feed")))),(0,e.createElement)("p",{className:v()("form-field",!a.carousel.autoplay&&"disabled-field")},(0,e.createElement)("label",null,(0,t.__)("Autoplay Interval","wp-tiktok-feed")),(0,e.createElement)("input",{type:"number",min:"1000",max:"300000",step:"100",value:a.carousel.autoplay_interval,onChange:e=>n({carousel:{autoplay_interval:e.target.value}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Moves carousel after a certain amount of time","wp-tiktok-feed"))))),(0,e.createElement)("div",{className:"options_group"},(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Navigation","wp-tiktok-feed")),(0,e.createElement)("input",{type:"checkbox",checked:!!a.carousel.navarrows,onChange:e=>n({carousel:{navarrows:!!e.target.checked}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Display navigation arrows","wp-tiktok-feed")))),(0,e.createElement)("div",{className:v()("form-field",!a.carousel.navarrows&&"disabled-field")},(0,e.createElement)("label",null,(0,t.__)("Navigation color","wp-tiktok-feed")),(0,e.createElement)(ae,{value:a.carousel.navarrows_color,color:a.carousel.navarrows_color,onChange:e=>n({carousel:{navarrows_color:e}}),disableCustomColors:!1,enableAlpha:!0,label:(0,t.__)("Change navigation arrows color","wp-tiktok-feed")}))),(0,e.createElement)("div",{className:"options_group"},(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Pagination","wp-tiktok-feed")),(0,e.createElement)("input",{type:"checkbox",checked:a.carousel.pagination,onChange:e=>n({carousel:{pagination:!!e.target.checked}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Display pagination dots","wp-tiktok-feed")))),(0,e.createElement)("div",{className:v()("form-field",!a.carousel.pagination&&"disabled-field")},(0,e.createElement)("label",null,(0,t.__)("Pagination color","wp-tiktok-feed")),(0,e.createElement)(ae,{value:a.carousel.pagination_color,color:a.carousel.pagination_color,onChange:e=>n({carousel:{pagination_color:e}}),disableCustomColors:!1,enableAlpha:!0,label:(0,t.__)("Change pagination dots color","wp-tiktok-feed")}))))}function le(){const{currentFeedFormData:a,setCurrentFeedFormData:n}=W();return(0,e.createElement)("div",{className:"tiktok__modal__panel"},(0,e.createElement)("div",{className:"options_group"},(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Lazy load","wp-tiktok-feed")),(0,e.createElement)("input",{type:"checkbox",checked:!!a.lazy,onChange:e=>n({lazy:!!e.target.checked})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Defers video lazy","wp-tiktok-feed"))))),(0,e.createElement)("div",{className:"options_group"},(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Mask","wp-tiktok-feed")),(0,e.createElement)("input",{type:"checkbox",checked:!!a.mask.display,onChange:e=>n({mask:{display:!!e.target.checked}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Display mask on hover","wp-tiktok-feed")))),(0,e.createElement)("div",{className:v()("form-field",!a.mask.display&&"disabled-field")},(0,e.createElement)("label",null,(0,t.__)("Mask background","wp-tiktok-feed")),(0,e.createElement)(ae,{value:a.mask.background,color:a.mask.background,onChange:e=>n({mask:{background:e}}),disableCustomColors:!1,enableAlpha:!0,label:(0,t.__)("Change background color in mask","wp-tiktok-feed")}))),(0,e.createElement)("div",{className:v()("options_group",!a.mask.display&&"disabled-field")},(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Likes","wp-tiktok-feed")),(0,e.createElement)("input",{type:"checkbox",checked:a.mask.likes_count,onChange:e=>n({mask:{likes_count:!!e.target.checked}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Display likes count in mask","wp-tiktok-feed")))),(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Comments","wp-tiktok-feed")),(0,e.createElement)("input",{type:"checkbox",checked:a.mask.comments_count,onChange:e=>n({mask:{comments_count:!!e.target.checked}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Display comments count in mask","wp-tiktok-feed"))))))}function ie(){const{currentFeedFormData:a,setCurrentFeedFormData:n}=W();return(0,e.createElement)("div",{className:"tiktok__modal__panel"},(0,e.createElement)("div",{className:"options_group qlttf-premium-field"},(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Display","wp-tiktok-feed")),(0,e.createElement)("input",{type:"checkbox",checked:!!a.card.display,onChange:e=>n({card:{display:!!e.target.checked}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Display card in video","wp-tiktok-feed"))),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,t.__)("(This is a premium feature)","wp-tiktok-feed"))))),(0,e.createElement)("div",{className:v()("options_group qlttf-premium-field",!a.card.display&&"disabled-field")},(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Radius","wp-tiktok-feed")),(0,e.createElement)("input",{type:"number",min:"0",max:"1000",value:a.card.radius,onChange:e=>n({card:{radius:e.target.value}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Add radius to the card","wp-tiktok-feed"))),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,t.__)("(This is a premium feature)","wp-tiktok-feed")))),(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Font size","wp-tiktok-feed")),(0,e.createElement)("input",{type:"number",min:"8",max:"36",value:a.card.font_size,onChange:e=>n({card:{font_size:e.target.value}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Change font size in cards","wp-tiktok-feed"))),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,t.__)("(This is a premium feature)","wp-tiktok-feed")))),(0,e.createElement)("div",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Background","wp-tiktok-feed")),(0,e.createElement)(ae,{value:a.card.background,color:a.card.background,onChange:e=>n({card:{background:e}}),disableCustomColors:!1,enableAlpha:!0,label:(0,t.__)("Change background color in cards","wp-tiktok-feed")}),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,t.__)("(This is a premium feature)","wp-tiktok-feed")))),(0,e.createElement)("div",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Background hover","wp-tiktok-feed")),(0,e.createElement)(ae,{value:a.card.background,color:a.card.background,onChange:e=>n({card:{background:e}}),disableCustomColors:!1,enableAlpha:!0,label:(0,t.__)("Change background color hover in cards","wp-tiktok-feed")}),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,t.__)("(This is a premium feature)","wp-tiktok-feed")))),(0,e.createElement)("div",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Text color","wp-tiktok-feed")),(0,e.createElement)(ae,{value:a.card.text_color,color:a.card.text_color,onChange:e=>n({card:{text_color:e}}),disableCustomColors:!1,enableAlpha:!0,label:(0,t.__)("Change text color","wp-tiktok-feed")}),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,t.__)("(This is a premium feature)","wp-tiktok-feed")))),(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Padding","wp-tiktok-feed")),(0,e.createElement)("input",{type:"number",min:"0",max:"20",value:a.card.padding,onChange:e=>n({card:{padding:e.target.value}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Add padding in cards","wp-tiktok-feed")))),(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Likes","wp-tiktok-feed")),(0,e.createElement)("input",{type:"checkbox",checked:!!a.card.likes_count,onChange:e=>n({card:{likes_count:!!e.target.checked}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Display likes count in cards","wp-tiktok-feed"))),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,t.__)("(This is a premium feature)","wp-tiktok-feed")))),(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Comments","wp-tiktok-feed")),(0,e.createElement)("input",{type:"checkbox",checked:!!a.card.comments_count,onChange:e=>n({card:{comments_count:!!e.target.checked}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Display comments count in cards","wp-tiktok-feed"))),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,t.__)("(This is a premium feature)","wp-tiktok-feed")))),(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Description","wp-tiktok-feed")),(0,e.createElement)("input",{type:"checkbox",checked:!!a.card.video_description,onChange:e=>n({card:{video_description:!!e.target.checked}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Display description in cards","wp-tiktok-feed"))),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,t.__)("(This is a premium feature)","wp-tiktok-feed")))),(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Length","wp-tiktok-feed")),(0,e.createElement)("input",{type:"number",min:"1",max:"100",value:a.card.max_word_count,onChange:e=>n({card:{max_word_count:e.target.value}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Limit the length of the description in the card","wp-tiktok-feed"))),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,t.__)("(This is a premium feature)","wp-tiktok-feed"))))))}function oe(){const{currentFeedFormData:a,setCurrentFeedFormData:n}=W();return(0,e.createElement)("div",{className:"tiktok__modal__panel"},(0,e.createElement)("div",{className:"options_group"},(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Display","wp-tiktok-feed")),(0,e.createElement)("input",{type:"checkbox",checked:!!a.modal.display,onChange:e=>n({modal:{display:!!e.target.checked}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Display Modal by clicking on video","wp-tiktok-feed"))))),(0,e.createElement)("div",{className:v()("options_group",!a.modal.display&&"disabled-field")},(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Profile","wp-tiktok-feed")),(0,e.createElement)("input",{type:"checkbox",checked:!!a.modal.profile,onChange:e=>n({modal:{profile:!!e.target.checked}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Display user profile or tag info","wp-tiktok-feed"))),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,t.__)("(This is a premium feature)","wp-tiktok-feed")))),(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Description","wp-tiktok-feed")),(0,e.createElement)("input",{type:"checkbox",checked:!!a.modal.video_description,onChange:e=>n({modal:{video_description:!!e.target.checked}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Display description in the sidebar","wp-tiktok-feed"))),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,t.__)("(This is a premium feature)","wp-tiktok-feed")))),(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Likes","wp-tiktok-feed")),(0,e.createElement)("input",{type:"checkbox",checked:!!a.modal.likes_count,onChange:e=>n({modal:{likes_count:!!e.target.checked}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Display likes count in sidebar","wp-tiktok-feed"))),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,t.__)("(This is a premium feature)","wp-tiktok-feed")))),(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Comments","wp-tiktok-feed")),(0,e.createElement)("input",{type:"checkbox",checked:!!a.modal.comments_count,onChange:e=>n({modal:{comments_count:!!e.target.checked}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Display comments count in sidebar","wp-tiktok-feed"))),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,t.__)("(This is a premium feature)","wp-tiktok-feed")))),(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Date","wp-tiktok-feed")),(0,e.createElement)("input",{type:"checkbox",checked:!!a.modal.date,onChange:e=>n({modal:{date:!!e.target.checked}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Display video date","wp-tiktok-feed"))),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,t.__)("(This is a premium feature)","wp-tiktok-feed")))),"account"===a.source&&(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,t.__)("Due to Tiktok limitations, controls and autoplay options are not available in account source.","wp-tiktok-feed")))),(0,e.createElement)("div",{className:v()((!a.modal.display||"account"===a.source)&&"disabled-field")},(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Controls","wp-tiktok-feed")),(0,e.createElement)("input",{type:"checkbox",checked:a.modal.controls,onChange:e=>n({modal:{controls:!!e.target.checked}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Display video controls","wp-tiktok-feed")))),(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Autoplay","wp-tiktok-feed")),(0,e.createElement)("input",{type:"checkbox",checked:a.modal.autoplay,onChange:e=>n({modal:{autoplay:!!e.target.checked}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Video autoplay when modal is open.","wp-tiktok-feed"))))),(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Text align","wp-tiktok-feed")),(0,e.createElement)("select",{value:a.modal.align||"",onChange:e=>n({modal:{align:e.target.value}})},[{name:"left",label:(0,t.__)("Left","wp-tiktok-feed")},{name:"center",label:(0,t.__)("Center","wp-tiktok-feed")},{name:"right",label:(0,t.__)("Right","wp-tiktok-feed")}].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,t.__)("Align description in sidebar","wp-tiktok-feed"))),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,t.__)("(This is a premium feature)","wp-tiktok-feed"))))))}function se(){const{currentFeedFormData:a,setCurrentFeedFormData:n}=W();return(0,e.createElement)("div",{className:"tiktok__modal__panel"},(0,e.createElement)("div",{className:"options_group"},(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Display","wp-tiktok-feed")),(0,e.createElement)("input",{type:"checkbox",checked:!!a.button.display,onChange:e=>n({button:{display:!!e.target.checked}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Display the button to open tikTok site link","wp-tiktok-feed")))),(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Text","wp-tiktok-feed")),(0,e.createElement)("input",{type:"text",placeholder:"TikTok",value:a.button.text,onChange:e=>n({button:{text:e.target.value}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Change button text","wp-tiktok-feed"))))),(0,e.createElement)("div",{className:v()("options_group",!a.button.display&&"disabled-field")},(0,e.createElement)("div",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Text color","wp-tiktok-feed")),(0,e.createElement)(ae,{value:a.button.text_color,color:a.button.text_color,onChange:e=>n({button:{text_color:e}}),disableCustomColors:!1,enableAlpha:!0,label:(0,t.__)("Change color text in button","wp-tiktok-feed")})),(0,e.createElement)("div",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Background","wp-tiktok-feed")),(0,e.createElement)(ae,{value:a.button.background,color:a.button.background,onChange:e=>n({button:{background:e}}),disableCustomColors:!1,enableAlpha:!0,label:(0,t.__)("Change background color in button","wp-tiktok-feed")})),(0,e.createElement)("div",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Background hover","wp-tiktok-feed")),(0,e.createElement)(ae,{value:a.button.background_hover,color:a.button.background_hover,onChange:e=>n({button:{background_hover:e}}),disableCustomColors:!1,enableAlpha:!0,label:(0,t.__)("Change background hover in button","wp-tiktok-feed")}))))}function ce(){const{currentFeedFormData:a,setCurrentFeedFormData:n}=W();return(0,e.createElement)("div",{className:"tiktok__modal__panel"},(0,e.createElement)("div",{className:"options_group qlttf-premium-field"},(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Display","wp-tiktok-feed")),(0,e.createElement)("input",{type:"checkbox",checked:!!a.button_load.display,onChange:e=>n({button_load:{display:!!e.target.checked}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Display the button to load more feeds","wp-tiktok-feed")))),(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Text","wp-tiktok-feed")),(0,e.createElement)("input",{type:"text",placeholder:"TikTok",value:a.button_load.text,onChange:e=>n({button_load:{text:e.target.value}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Change button text","wp-tiktok-feed"))))),(0,e.createElement)("div",{className:v()("options_group",!a.button_load.display&&"disabled-field")},(0,e.createElement)("div",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Text color","wp-tiktok-feed")),(0,e.createElement)(ae,{value:a.button_load.text_color,color:a.button_load.text_color,onChange:e=>n({button_load:{text_color:e}}),disableCustomColors:!1,enableAlpha:!0,label:(0,t.__)("Change color text in button","wp-tiktok-feed")})),(0,e.createElement)("div",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Background","wp-tiktok-feed")),(0,e.createElement)(ae,{value:a.button_load.background,color:a.button_load.background,onChange:e=>n({button_load:{background:e}}),disableCustomColors:!1,enableAlpha:!0,label:(0,t.__)("Change background color in button","wp-tiktok-feed")})),(0,e.createElement)("div",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Background hover","wp-tiktok-feed")),(0,e.createElement)(ae,{value:a.button_load.background_hover,color:a.button_load.background_hover,onChange:e=>n({button_load:{background_hover:e}}),disableCustomColors:!1,enableAlpha:!0,label:(0,t.__)("Change background hover in button","wp-tiktok-feed")}))))}var ue=a(736),de=a.n(ue);class me extends e.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(){this.frame=wp.media({button:{text:(0,t.__)("Select","wp-tiktok-feed"),close:!1},states:[new wp.media.controller.Library({title:(0,t.__)("Select logo","wp-tiktok-feed"),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),r=!!parseInt((a.props.logo||{}).flex_height,10),l=e.get("width"),i=e.get("height");let o=parseInt((a.props.logo||{}).width,10),s=parseInt((a.props.logo||{}).height,10);const c=o/s,u=o,d=s;let m,p,f;return t.set("canSkipCrop",!a.mustBeCropped(n,r,o,s,l,i)),l/i>c?(s=i,o=s*c):(o=l,s=o/c),m=(l-o)/2,p=(i-s)/2,f={handles:!0,keys:!0,instance:!0,persistent:!0,imageWidth:l,imageHeight:i,minWidth:u>o?o:u,minHeight:d>s?s:d,x1:m,y1:p,x2:o+m,y2:s+p},!1===r&&!1===n&&(f.aspectRatio=o+":"+s),!0===r&&(delete f.minHeight,f.maxWidth=l),!0===n&&(delete f.minWidth,f.maxHeight=i),f}mustBeCropped(e,t,a,n,r,l){return!(!0===e&&!0===t||!0===e&&n===l||!0===t&&a===r||a===r&&n===l||r<=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",ee({className:v()("wp-tiktok-feed-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:"wp-tiktok-feed-control-media-upload__attachment__actions"},this.props.value?.attachment_id||this.props.value?.url?(0,e.createElement)(e.Fragment,null,(0,e.createElement)(w.Button,{disabled:!(Number(this.props.value?.attachment_id)>1),onClick:()=>this.props.onChange()},(0,t.__)("Remove","wp-tiktok-feed")),(0,e.createElement)(w.Button,{isBordered:!0,onClick:()=>this.openFrame()},this.props.filledLabel||(0,t.__)("Change","wp-tiktok-feed"))):(0,e.createElement)(w.Button,{className:v()("wp-tiktok-feed-control-media-upload__attachment__upload","upload_image_button button"),onClick:()=>this.openFrame(),style:{display:"inline-block"}},this.props.emptyLabel||(0,t.__)("Select image","wp-tiktok-feed"))))}}me.renderingConfig={hasRevertButton:!1},me.propTypes={value:de().object,onChange:de().func};const pe=me;function fe(){const{currentFeedFormData:a,setCurrentFeedFormData:n}=W();return(0,e.createElement)("div",{className:"tiktok__modal__panel"},(0,e.createElement)("div",{className:"qlttf-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,t.__)("Display","wp-tiktok-feed")),(0,e.createElement)("input",{type:"checkbox",checked:!!a.profile.display,onChange:e=>n({profile:{display:!!e.target.checked}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Display user profile or tag info","wp-tiktok-feed")," ")),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,t.__)("(This is a premium feature)","wp-tiktok-feed"))))),(0,e.createElement)("div",{className:v()("options_group",!a.profile.display&&"disabled-field")},(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Nickname","wp-tiktok-feed")),(0,e.createElement)("input",{type:"text",placeholder:"Nickname",value:a.profile.nickname,onChange:e=>n({profile:{nickname:e.target.value}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Profile nickname","wp-tiktok-feed"))),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,t.__)("(This is a premium feature)","wp-tiktok-feed")))),(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Username","wp-tiktok-feed")),(0,e.createElement)("input",{type:"text",value:a.profile.username,onChange:e=>n({profile:{username:e.target.value}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Profile username","wp-tiktok-feed"))),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,t.__)("(This is a premium feature)","wp-tiktok-feed")))),(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Link Text","wp-tiktok-feed")),(0,e.createElement)("input",{type:"text",placeholder:"TikTok",value:a.profile.link_text,onChange:e=>n({profile:{link_text:e.target.value}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Link text here","wp-tiktok-feed"))),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,t.__)("(This is a premium feature)","wp-tiktok-feed")))),(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Biography","wp-tiktok-feed")),(0,e.createElement)("input",{type:"text",value:a.profile.biography,onChange:e=>n({profile:{biography:e.target.value}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Profile description here","wp-tiktok-feed"))),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,t.__)("(This is a premium feature)","wp-tiktok-feed")))))),(0,e.createElement)("div",{className:v()("attachment-info options_group",!a.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,t.__)("Feed","wp-tiktok-feed"),":"),a.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:a.profile.avatar?a.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)(pe,{onChange:e=>{n({profile:{avatar:e.url}})}}),(0,e.createElement)("button",{onClick:()=>n({profile:{avatar:""}}),className:"remove_image_button button",disabled:!a.profile.avatar},"×"))))))))}function he(t){const{currentTab:a}=W();switch(a){case"general":return(0,e.createElement)($,null);case"profile":return(0,e.createElement)(fe,null);case"box":return(0,e.createElement)(ne,null);case"carousel":return(0,e.createElement)(re,null);case"video":return(0,e.createElement)(le,null);case"video-card":return(0,e.createElement)(ie,null);case"video-modal":return(0,e.createElement)(oe,null);case"button":return(0,e.createElement)(se,null);case"button-load-more":return(0,e.createElement)(ce,null);default:return a}}function ge(){const{setCurrentTab:t,currentTab:a,currentFeedFormData:n}=W();return(0,e.useEffect)(()=>{"carousel"!==a||["carousel","carousel-vertical"].includes(n.layout)||t("general"),"button-load-more"===a&&"trending"===n.source&&t("general")},[a,n.layout]),(0,e.createElement)("ul",{className:"tiktok-modal__tabs"},z.map(({name:r,label:l})=>"carousel"!==r||["carousel","carousel-vertical"].includes(n.layout)?"button-load-more"===r&&"trending"===n.source?null:(0,e.createElement)("li",{key:r,className:v()("media-modal-tab",r==a&&"active")},(0,e.createElement)("a",{href:"#",onClick:e=>{e.preventDefault(),t(r)}},(0,e.createElement)("span",null,l))):null).filter(e=>!!e))}function ke({isOpen:t,setIsOpen:a}){const{currentFeedIndex:n,currentFeedFormData:r,feeds:l,createFeed:i,editFeed:o}=W(),[s,c]=(0,e.useState)(!1),u=l?.[n]?.id,d=void 0===u;return(0,e.createElement)("div",null,(0,e.createElement)("form",{onSubmit:async e=>{let t;e.preventDefault(),c(!0),t=d?await i(r):await o(r),c(!1),t&&a(!1)}},(0,e.createElement)("div",{className:"media-modal-content"},(0,e.createElement)("div",{className:"edit-attachment-frame mode-select"},(0,e.createElement)(K,{isOpen:t,setIsOpen:a,isNewFeed:d,currentFeedId:u}),(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)(ge,null),(0,e.createElement)("div",{style:{height:"100%",overflowX:"hidden"}},(0,e.createElement)(he,null)))))),(0,e.createElement)(Z,{isOpen:t,setIsOpen:a,isLoading:s,setIsLoading:c})))))}const _e=(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"50px",height:"50px",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24"},(0,e.createElement)("path",{fill:"currentColor",d:"M24.01 6.797a1.341 1.341 0 0 0-1.034-.487h-.035h.002h-3.441l.954-4.643A1.4 1.4 0 0 0 20.188.48l.002.003a1.345 1.345 0 0 0-1.036-.486h-.033h.002c-.9.029-1.643.665-1.835 1.51l-.003.013l-.259 1.262c-.008.032-.022.062-.029.094l-.708 3.435h-5.793l.954-4.643a1.4 1.4 0 0 0-.268-1.187l.002.003a1.345 1.345 0 0 0-1.036-.486h-.033h.002c-.9.029-1.643.665-1.835 1.51l-.003.013l-.27 1.313c0 .015-.01.028-.013.042l-.702 3.435H3.547c-.9.029-1.643.664-1.836 1.509l-.003.013a1.4 1.4 0 0 0 .267 1.188l-.002-.003c.248.298.619.487 1.035.487h.034h-.002h3.597l-1.022 4.97H1.864c-.9.029-1.643.665-1.836 1.51l-.003.013a1.404 1.404 0 0 0 .267 1.185L.29 17.18c.249.298.62.487 1.036.487h.034h-.002h3.597l-.96 4.668a1.4 1.4 0 0 0 .268 1.187l-.002-.003c.249.298.62.487 1.036.487h.033h-.002a1.947 1.947 0 0 0 1.836-1.51l.003-.013l.99-4.814h5.796l-.96 4.668a1.4 1.4 0 0 0 .268 1.187l-.002-.003c.249.298.62.486 1.036.486h.033h-.002a1.945 1.945 0 0 0 1.835-1.51l.003-.013l.99-4.814h3.6a1.947 1.947 0 0 0 1.836-1.509l.003-.013a1.388 1.388 0 0 0-.263-1.188l.002.003a1.348 1.348 0 0 0-1.037-.487h-.036h.002h-3.447l1.022-4.97h3.6a1.947 1.947 0 0 0 1.836-1.51l.003-.013a1.401 1.401 0 0 0-.268-1.188l.002.003zM8.819 14.472l1.022-4.97h5.796l-1.022 4.97z"})),Ee=(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"50px",height:"50px",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24"},(0,e.createElement)("path",{fill:"currentColor",d:"M19.321 5.562a5.124 5.124 0 0 1-.443-.258a6.228 6.228 0 0 1-1.137-.966c-.849-.971-1.166-1.956-1.282-2.645h.004c-.097-.573-.057-.943-.05-.943h-3.865v14.943c0 .2 0 .399-.008.595c0 .024-.003.046-.004.073c0 .01 0 .022-.003.033v.009a3.28 3.28 0 0 1-1.65 2.604a3.226 3.226 0 0 1-1.6.422c-1.8 0-3.26-1.468-3.26-3.281c0-1.814 1.46-3.282 3.26-3.282c.341 0 .68.054 1.004.16l.005-3.936a7.178 7.178 0 0 0-5.532 1.62a7.583 7.583 0 0 0-1.655 2.04c-.163.281-.779 1.412-.853 3.246c-.047 1.04.266 2.12.415 2.565v.01c.093.262.457 1.158 1.049 1.913a7.856 7.856 0 0 0 1.674 1.58v-.01l.009.01c1.87 1.27 3.945 1.187 3.945 1.187c.359-.015 1.562 0 2.928-.647c1.515-.718 2.377-1.787 2.377-1.787a7.43 7.43 0 0 0 1.296-2.153c.35-.92.466-2.022.466-2.462V8.273c.047.028.672.441.672.441s.9.577 2.303.952c1.006.267 2.363.324 2.363.324V6.153c-.475.052-1.44-.098-2.429-.59Z"})),be=(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"50px",height:"50px",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24"},(0,e.createElement)("path",{fill:"currentColor",d:"M20 22H4v-2a5 5 0 0 1 5-5h6a5 5 0 0 1 5 5v2zm-8-9a6 6 0 1 1 0-12a6 6 0 0 1 0 12z"}));function ve({setIsOpen:a}){const[n,r]=(0,e.useState)({currentFeedId:null,isLoading:!1}),{createSuccessNotice:l,createErrorNotice:i,createWarningNotice:o}=(0,I.useDispatch)(R.store),{feeds:s,hasResolvedFeeds:c,deleteFeed:u}=(0,D.useFeedsEntities)(),{accounts:d,hasAccounts:m}=(0,D.useAccountsEntities)(),{setCurrentFeedIndex:p}=W();return c?(0,e.createElement)("div",{className:"welcome-tab wrap about-wrap full-width-layout"},(0,e.createElement)("div",null,(0,e.createElement)("button",{disabled:!m&&!window?.qlttf_pro_backend,className:"button button-primary",onClick:()=>{p(),a(!0)}},(0,t.__)("+ Feed","wp-tiktok-feed")),!m&&(0,e.createElement)("p",null,(0,t.__)("Go to the Accounts tab and create your access token.","wp-tiktok-feed")),(0,e.createElement)(j,null,(0,e.createElement)("thead",null,(0,e.createElement)("tr",null,(0,e.createElement)("th",null,(0,t.__)("Image","wp-tiktok-feed")),(0,e.createElement)("th",null,(0,t.__)("Source","wp-tiktok-feed")),(0,e.createElement)("th",null,(0,t.__)("Name","wp-tiktok-feed")),(0,e.createElement)("th",null,(0,t.__)("Layout","wp-tiktok-feed")),(0,e.createElement)("th",null,(0,t.__)("Shortcode","wp-tiktok-feed")),(0,e.createElement)("th",null,(0,t.__)("Actions","wp-tiktok-feed")))),(0,e.createElement)("tbody",null,s?.map((o,s)=>{let c="",m="";switch(o.source){case"username":c=be,m=o.username;break;case"hashtag":c=_e,m=o.hashtag;break;case"trending":c=Ee;break;default:c=d.find(e=>e.open_id===o.open_id)?.avatar,m=d.find(e=>e.open_id===o.open_id)?.username}return(0,e.createElement)("tr",{key:s},(0,e.createElement)("td",{width:"1%"},"account"===o.source?(0,e.createElement)("img",{className:"avatar",src:c||"http://2.gravatar.com/avatar/b642b4217b34b1e8d3bd915fc65c4452?s=150&d=mm&r=g"}):c),(0,e.createElement)("td",{width:"1%"},o.source),(0,e.createElement)("td",{width:"1%"},m),(0,e.createElement)("td",null,o.layout),(0,e.createElement)("td",null,(0,e.createElement)("input",{type:"text",value:`[tiktok-feed id="${o.id}"]`,readOnly:!0}),(0,e.createElement)("button",{className:"button button-secondary",onClick:async()=>{await k(`[tiktok-feed id="${o.id}"]`)?l((0,t.__)("Feed shortcode copied to clipboard.","wp-tiktok-feed"),{id:1,type:"snackbar"}):i((0,t.__)("Can't copy the refresh token.","wp-tiktok-feed"),{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,t.__)("Edit feed","wp-tiktok-feed"),onClick:()=>{p(s),a(!0)}},(0,t.__)("Edit","wp-tiktok-feed")),(0,e.createElement)("button",{className:"button button-secondary",title:(0,t.__)("Clear feed cache","wp-tiktok-feed"),onClick:async()=>{confirm((0,t.__)("You are about to reset the cache of this feed.","wp-tiktok-feed"))&&(r({isloading:!0,currentFeedId:o.id}),await(0,D.clearFeedCache)({method:"POST",data:{feedSettings:o}}),r({isLoading:!1}))}},(0,e.createElement)("i",{className:"dashicons dashicons dashicons-update"}),(0,t.__)("Cache","wp-tiktok-feed")),(0,e.createElement)("button",{className:"button button-secondary",title:(0,t.__)("Delete feed","wp-tiktok-feed"),onClick:async()=>{confirm((0,t.__)("You are about to delele this feed.","wp-tiktok-feed"))&&(r({isloading:!0,currentFeedId:o.id}),await u(o),r({isLoading:!1}))}},(0,e.createElement)("i",{className:"dashicons dashicons-trash"})),n&&n.currentFeedId===o.id&&(0,e.createElement)("span",{style:{visibility:"visible",position:"absolute"},className:"spinner"})))}))))):(0,e.createElement)(M,null)}const ye=()=>{const{Fill:t}=S(),[a,n]=(0,e.useState)(!1);return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(t.Header,null,(0,e.createElement)(E,null)),(0,e.createElement)(t.Navigation,null,(0,e.createElement)(y,null)),(0,e.createElement)(t.Content,null,(0,e.createElement)(Q,null,(0,e.createElement)(ve,{isOpen:a,setIsOpen:n}),(0,e.createElement)(O,{show:a,onClose:()=>n(!1),__experimentalHideHeader:!0},(0,e.createElement)(ke,{isOpen:a,setIsOpen:n})))))},we=()=>{const{Fill:a}=S();return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(a.Header,null,(0,e.createElement)(E,null)),(0,e.createElement)(a.Navigation,null,(0,e.createElement)(y,null)),(0,e.createElement)(a.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,t.__)("Premium","wp-tiktok-feed")),(0,e.createElement)("div",{className:"about-description"},(0,t.__)("Unlock the power of our premium TikTok Feed plugin which allows you to choose between six beautiful layouts and tone of customizing options.","wp-tiktok-feed")),(0,e.createElement)("br",null),(0,e.createElement)(P,{href:"https://quadlayers.com/products/tiktok-feed/?utm_source=qlttf_plugin&utm_medium=admin_tab&utm_campaign=premium_upgrade&utm_content=purchase_button",target:"_blank"},(0,t.__)("Purchase Now","wp-tiktok-feed")),(0,e.createElement)(P,{isSecondary:!0,href:"https://quadlayers.com/demo/tiktok-feed/?utm_source=qlttf_plugin&utm_medium=admin_tab&utm_campaign=demo&utm_content=demo_button",target:"_blank"},(0,t.__)("View demo","wp-tiktok-feed"))),(0,e.createElement)("hr",null),(0,e.createElement)("div",{className:"feature-section"},(0,e.createElement)("h3",null,(0,t.__)("Download videos","wp-tiktok-feed")),(0,e.createElement)("p",null,(0,t.__)("Include a download button inside the video pop up that allows your users to download TikTok feed videos directly from your site.","wp-tiktok-feed"))),(0,e.createElement)("div",{className:"feature-section"},(0,e.createElement)("h3",null,(0,t.__)("Customize Videos display","wp-tiktok-feed")),(0,e.createElement)("p",null,(0,t.__)("Customize the colors of the TikTok Feed including custom background, text, buttons background and mouseover effects, Videos padding, and a rounded border. It also includes the user or tag profile info in the header of the box.","wp-tiktok-feed"))),(0,e.createElement)("div",{className:"feature-section"},(0,e.createElement)("h3",null,(0,t.__)("Card and box Videos display","wp-tiktok-feed")),(0,e.createElement)("p",null,(0,t.__)("TikTok Feed allows to display videos on a customized box. Or display videos into cards with video data in it.ed including custom background, text, buttons background and mouseover effects, Videos padding, and a rounded border.","wp-tiktok-feed"))),(0,e.createElement)("div",{className:"feature-section"},(0,e.createElement)("h3",null,(0,t.__)("Load more button","wp-tiktok-feed")),(0,e.createElement)("p",null,(0,t.__)("Allow your users to load more videos in the gallery providing an improved user experience.","wp-tiktok-feed")))),(0,e.createElement)("div",{className:"column"},(0,e.createElement)("img",{src:g("/assets/backend/img/tiktok-feed.png")}))),(0,e.createElement)("div",{className:"has-2-columns is-wider-left"},(0,e.createElement)("div",{className:"column"},(0,e.createElement)("img",{src:g("/assets/backend/img/tiktok-feed-highlight.png")})),(0,e.createElement)("div",{className:"column"},(0,e.createElement)("br",null),(0,e.createElement)("div",{className:"welcome-header"},(0,e.createElement)("h1",null,(0,t.__)("Video cards","wp-tiktok-feed")),(0,e.createElement)("div",{className:"about-description"},(0,t.__)("Wrap TikTok feed videos inside a box and display descriptions.","wp-tiktok-feed"))),(0,e.createElement)("hr",null),(0,e.createElement)("div",{className:"feature-section"},(0,e.createElement)("p",null,(0,t.__)("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.","wp-tiktok-feed"))))),(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,t.__)("Layouts","wp-tiktok-feed")),(0,e.createElement)("div",{className:"about-description"},(0,t.__)("Unlock the power of the carousel and highlight layouts that allows you to display the TikTok Feeds in a grid that supports items of variable size.","wp-tiktok-feed"))),(0,e.createElement)("hr",null),(0,e.createElement)("div",{className:"feature-section"},(0,e.createElement)("h3",null,(0,t.__)("Boxed layout","wp-tiktok-feed")),(0,e.createElement)("p",null,(0,t.__)("This option wraps the feed gallery inside a box where you can include the profile user info, tag info or displayed trend data.","wp-tiktok-feed"))),(0,e.createElement)("div",{className:"feature-section"},(0,e.createElement)("h3",null,(0,t.__)("Carousel layout","wp-tiktok-feed")),(0,e.createElement)("p",null,(0,t.__)("The carousel layout displays multiple videos inside an animated carousel with pagination and navigation controls. Including two alternative size for corousel: square and vertical options.","wp-tiktok-feed"))),(0,e.createElement)("div",{className:"feature-section"},(0,e.createElement)("h3",null,(0,t.__)("Highlight layout","wp-tiktok-feed")),(0,e.createElement)("p",null,(0,t.__)("The highlight layout is a grid that allows you to stand out some videos with two or three columns width size. Allowing highlight by tag, position or video id.","wp-tiktok-feed")))),(0,e.createElement)("div",{className:"column"},(0,e.createElement)("img",{src:g("/assets/backend/img/tiktok-feed-carousel-layout.png")}))))))},Ae=()=>{const{settings:a,hasResolvedSettings:n,saveSettings:r}=(0,D.useSettingsEntities)(),[l,i]=(0,e.useState)(!1),[o,s]=(0,e.useState)({}),c=e=>{const t=h(o,e);s(t)};return(0,e.useEffect)(()=>{n&&s(a)},[n,a]),n?(0,e.createElement)("div",{className:"wrap about-wrap full-width-layout"},(0,e.createElement)("form",{id:"qlttf-save-settings",onSubmit:async e=>{e.preventDefault(),i(!0),await r(o),i(!1)}},(0,e.createElement)(j,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,t.__)("Remove data","wp-tiktok-feed")),(0,e.createElement)("td",null,(0,e.createElement)("input",{type:"checkbox",checked:!!o.flush,onChange:e=>c({flush:!!e.target.checked})}),(0,e.createElement)("span",{className:"description"},(0,t.__)("Check this box to remove all data related to this plugin on uninstall.","wp-tiktok-feed")))),(0,e.createElement)("tr",null,(0,e.createElement)("th",null,(0,t.__)("Replace loader","wp-tiktok-feed")),(0,e.createElement)("td",null,(0,e.createElement)("div",{style:{display:"flex"}},(0,e.createElement)(pe,{onChange:e=>{c({spinner_image_url:e.url})}}),(0,e.createElement)("button",{className:"button button-secondary",onClick:()=>{c({spinner_image_url:""})},disabled:!o.spinner_image_url},(0,t.__)("Reset Spinner","wp-tiktok-feed"))),!o.spinner_image_url&&(0,e.createElement)("p",null,(0,e.createElement)("span",{className:"description"},(0,t.__)("Select an image from media library to replace the default loader icon.","wp-tiktok-feed")))),!!o.spinner_image_url&&(0,e.createElement)("td",{rowSpan:"2"},(0,e.createElement)("div",{className:"tiktok-feed-spinner"},(0,e.createElement)("img",{src:o.spinner_image_url}))))))))),(0,e.createElement)("tfoot",null,(0,e.createElement)("tr",null,(0,e.createElement)("td",{colSpan:"3"},(0,e.createElement)("span",{className:"spinner"}),(0,e.createElement)("button",{disabled:(0,d.isEqual)(a,o),type:"submit",className:"button button-primary secondary"},(0,t.__)("Save","wp-tiktok-feed")),l&&(0,e.createElement)("span",{style:{visibility:"visible"},className:"spinner"}))))))):(0,e.createElement)(M,null)},Ne=()=>{const{Fill:t}=S();return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(t.Header,null,(0,e.createElement)(E,null)),(0,e.createElement)(t.Navigation,null,(0,e.createElement)(y,null)),(0,e.createElement)(t.Content,null,(0,e.createElement)(Ae,null)))};var Se=a(405);const xe=()=>{const{Fill:t}=S();return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(t.Header,null,(0,e.createElement)(E,null)),(0,e.createElement)(t.Navigation,null,(0,e.createElement)(y,null)),(0,e.createElement)(t.Content,null,(0,e.createElement)(Se.List,{authorName:"quadlayers",columns:"2"})))},{tabParam:Ce,setBrowserTabParam:Pe}=(()=>{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())}}})(),Te=(0,e.createContext)({}),Fe=()=>(0,e.useContext)(Te),Oe=(e,t)=>"SET_CURRENT_TAB"===t.type?{...e,...t.payload,prevTab:e.currentTab}:e,Ie=({children:a})=>{const n=(0,l.applyFilters)("tiktok.app.tabs",[{label:(0,t.__)("Welcome","wp-tiktok-feed"),name:"welcome",content:F},{label:(0,t.__)("Accounts","wp-tiktok-feed"),name:"accounts",content:H},{label:(0,t.__)("Feeds","wp-tiktok-feed"),name:"feeds",content:ye},{label:(0,t.__)("Settings","wp-tiktok-feed"),name:"settings",href:"settings",content:Ne},{label:(0,t.__)("Premium","wp-tiktok-feed"),name:"premium",content:we},{label:(0,t.__)("Suggestions","wp-tiktok-feed"),name:"suggestions",content:xe}]),[r,i]=(0,e.useReducer)(Oe,(({defaultTab:e})=>({currentTab:Ce||e,currentTabSection:"",prevTab:null,prevSubTab:null,user:!1}))({defaultTab:n[0].name}));return(0,e.useEffect)(()=>{const e=Array.from(document.querySelectorAll("#toplevel_page_qlttf > ul > li")),t=r.currentTab[0].toUpperCase()+r.currentTab.slice(1).toLowerCase();e.map(e=>e.innerText===t?e?.classList.add("current"):e?.classList.remove("current"))},[r.currentTab]),(0,e.createElement)(Te.Provider,{value:{...r,setCurrentTab:e=>{r.currentTab!=e&&(Pe(e),i({type:"SET_CURRENT_TAB",payload:{currentTab:e}}))},tabs:n}},a)},Re=(Te.Consumer,()=>{const{currentTab:t,tabs:a}=Fe(),n=a.find(({name:e})=>e==t);if(!n)return(0,e.createElement)(e.Fragment,null,t);const r=n.content;return(0,e.createElement)(r,null)}),De=({children:t})=>(0,e.createElement)(x,null,(0,e.createElement)(C,null,({Slot:a,containerRef:n})=>(0,e.createElement)("div",{ref:n},(0,e.createElement)("header",null,(0,e.createElement)(a.Header,null)),(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))),Me=()=>(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Ie,null,(0,e.createElement)(De,null,(0,e.createElement)(Re,null))),(0,e.createElement)(r.EditorSnackbars,null));_(()=>{const t=document.getElementById("wpbody-content");(0,e.render)((0,e.createElement)(Me,null),t)})})(),(window.tiktok=window.tiktok||{}).backend=n})();
     46`;t.default=e=>{const t=e.authorName||"",{wordpressPlugins:a,isResolvingWordPressPlugins:n,installWordPressPlugin:r}=(0,u.useWordPressPlugins)(t),{isResolvingSitePlugins:l,sitePlugins:i,activateSitePlugin:f}=(0,u.useSitePlugins)();return n||l?o.default.createElement(c.Spinner,null):0!==a.length?o.default.createElement(m,{className:"wrap"},a.map(t=>{var a;const n=(null===(a=i.find(e=>e.name===t.slug))||void 0===a?void 0:a.status)||"install";return o.default.createElement(s.default,Object.assign({key:t.slug},t,e,{installWordPressPlugin:r,pluginStatus:n,activateSitePlugin:f}))})):o.default.createElement("div",{style:{maxWidth:"1200px"}},o.default.createElement(p,null,d.WordpressIcon,o.default.createElement("h3",null,"Plugins not found")))}},692:e=>{"use strict";e.exports=window.wp.notices},723:e=>{"use strict";e.exports=window.wp.i18n},736:(e,t,a)=>{e.exports=a(186)()},843:(e,t)=>{"use strict";var a="function"==typeof Symbol&&Symbol.for,n=a?Symbol.for("react.element"):60103,r=a?Symbol.for("react.portal"):60106,l=a?Symbol.for("react.fragment"):60107,i=a?Symbol.for("react.strict_mode"):60108,o=a?Symbol.for("react.profiler"):60114,s=a?Symbol.for("react.provider"):60109,c=a?Symbol.for("react.context"):60110,u=a?Symbol.for("react.async_mode"):60111,d=a?Symbol.for("react.concurrent_mode"):60111,m=a?Symbol.for("react.forward_ref"):60112,p=a?Symbol.for("react.suspense"):60113,f=a?Symbol.for("react.suspense_list"):60120,h=a?Symbol.for("react.memo"):60115,g=a?Symbol.for("react.lazy"):60116,k=a?Symbol.for("react.block"):60121,_=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 d:case l:case o:case i:case p:return e;default:switch(e=e&&e.$$typeof){case c:case m:case g:case h:case s:return e;default:return t}}case r:return t}}}function y(e){return v(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=s,t.Element=n,t.ForwardRef=m,t.Fragment=l,t.Lazy=g,t.Memo=h,t.Portal=r,t.Profiler=o,t.StrictMode=i,t.Suspense=p,t.isAsyncMode=function(e){return y(e)||v(e)===u},t.isConcurrentMode=y,t.isContextConsumer=function(e){return v(e)===c},t.isContextProvider=function(e){return v(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return v(e)===m},t.isFragment=function(e){return v(e)===l},t.isLazy=function(e){return v(e)===g},t.isMemo=function(e){return v(e)===h},t.isPortal=function(e){return v(e)===r},t.isProfiler=function(e){return v(e)===o},t.isStrictMode=function(e){return v(e)===i},t.isSuspense=function(e){return v(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===l||e===d||e===o||e===i||e===p||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===h||e.$$typeof===s||e.$$typeof===c||e.$$typeof===m||e.$$typeof===_||e.$$typeof===E||e.$$typeof===b||e.$$typeof===k)},t.typeOf=v},859:(e,t,a)=>{"use strict";a.r(t),a.d(t,{ServerStyleSheet:()=>Ue,StyleSheetConsumer:()=>ie,StyleSheetContext:()=>le,StyleSheetManager:()=>me,ThemeConsumer:()=>Re,ThemeContext:()=>Ie,ThemeProvider:()=>De,__PRIVATE__:()=>Ve,createGlobalStyle:()=>Be,css:()=>ye,default:()=>Je,isStyledComponent:()=>y,keyframes:()=>Ge,useTheme:()=>ze,version:()=>A,withTheme:()=>He});var n=a(959),r=a(609),l=a.n(r),i=a(945),o=a.n(i);const s=function(e){function t(e,n,s,c,m){for(var p,f,h,g,b,y=0,w=0,A=0,N=0,S=0,O=0,R=h=p=0,M=0,j=0,q=0,L=0,B=s.length,G=B-1,U="",H="",z="",V="";M<B;){if(f=s.charCodeAt(M),M===G&&0!==w+N+A+y&&(0!==w&&(f=47===w?10:47),N=A=y=0,B++,G++),0===w+N+A+y){if(M===G&&(0<j&&(U=U.replace(d,"")),0<U.trim().length)){switch(f){case 32:case 9:case 59:case 13:case 10:break;default:U+=s.charAt(M)}f=59}switch(f){case 123:for(p=(U=U.trim()).charCodeAt(0),h=1,L=++M;M<B;){switch(f=s.charCodeAt(M)){case 123:h++;break;case 125:h--;break;case 47:switch(f=s.charCodeAt(M+1)){case 42:case 47:e:{for(R=M+1;R<G;++R)switch(s.charCodeAt(R)){case 47:if(42===f&&42===s.charCodeAt(R-1)&&M+2!==R){M=R+1;break e}break;case 10:if(47===f){M=R+1;break e}}M=R}}break;case 91:f++;case 40:f++;case 34:case 39:for(;M++<G&&s.charCodeAt(M)!==f;);}if(0===h)break;M++}if(h=s.substring(L,M),0===p&&(p=(U=U.replace(u,"").trim()).charCodeAt(0)),64===p){switch(0<j&&(U=U.replace(d,"")),f=U.charCodeAt(1)){case 100:case 109:case 115:case 45:j=n;break;default:j=F}if(L=(h=t(n,j,h,f,m+1)).length,0<I&&(b=o(3,h,j=a(F,U,q),n,C,x,L,f,m,c),U=j.join(""),void 0!==b&&0===(L=(h=b.trim()).length)&&(f=0,h="")),0<L)switch(f){case 115:U=U.replace(v,i);case 100:case 109:case 45:h=U+"{"+h+"}";break;case 107:h=(U=U.replace(k,"$1 $2"))+"{"+h+"}",h=1===T||2===T&&l("@"+h,3)?"@-webkit-"+h+"@"+h:"@"+h;break;default:h=U+h,112===c&&(H+=h,h="")}else h=""}else h=t(n,a(n,U,q),h,c,m+1);z+=h,h=q=j=R=p=0,U="",f=s.charCodeAt(++M);break;case 125:case 59:if(1<(L=(U=(0<j?U.replace(d,""):U).trim()).length))switch(0===R&&(p=U.charCodeAt(0),45===p||96<p&&123>p)&&(L=(U=U.replace(" ",":")).length),0<I&&void 0!==(b=o(1,U,n,e,C,x,H.length,c,m,c))&&0===(L=(U=b.trim()).length)&&(U="\0\0"),p=U.charCodeAt(0),f=U.charCodeAt(1),p){case 0:break;case 64:if(105===f||99===f){V+=U+s.charAt(M);break}default:58!==U.charCodeAt(L-1)&&(H+=r(U,p,f,U.charCodeAt(2)))}q=j=R=p=0,U="",f=s.charCodeAt(++M)}}switch(f){case 13:case 10:47===w?w=0:0===1+p&&107!==c&&0<U.length&&(j=1,U+="\0"),0<I*D&&o(0,U,n,e,C,x,H.length,c,m,c),x=1,C++;break;case 59:case 125:if(0===w+N+A+y){x++;break}default:switch(x++,g=s.charAt(M),f){case 9:case 32:if(0===N+y+w)switch(S){case 44:case 58:case 9:case 32:g="";break;default:32!==f&&(g=" ")}break;case 0:g="\\0";break;case 12:g="\\f";break;case 11:g="\\v";break;case 38:0===N+w+y&&(j=q=1,g="\f"+g);break;case 108:if(0===N+w+y+P&&0<R)switch(M-R){case 2:112===S&&58===s.charCodeAt(M-3)&&(P=S);case 8:111===O&&(P=O)}break;case 58:0===N+w+y&&(R=M);break;case 44:0===w+A+N+y&&(j=1,g+="\r");break;case 34:case 39:0===w&&(N=N===f?0:0===N?f:N);break;case 91:0===N+w+A&&y++;break;case 93:0===N+w+A&&y--;break;case 41:0===N+w+y&&A--;break;case 40:0===N+w+y&&(0===p&&(2*S+3*O==533||(p=1)),A++);break;case 64:0===w+A+N+y+R+h&&(h=1);break;case 42:case 47:if(!(0<N+y+A))switch(w){case 0:switch(2*f+3*s.charCodeAt(M+1)){case 235:w=47;break;case 220:L=M,w=42}break;case 42:47===f&&42===S&&L+2!==M&&(33===s.charCodeAt(L+2)&&(H+=s.substring(L,M+1)),g="",w=0)}}0===w&&(U+=g)}O=S,S=f,M++}if(0<(L=H.length)){if(j=n,0<I&&void 0!==(b=o(2,H,j,e,C,x,L,c,m,c))&&0===(H=b).length)return V+H+z;if(H=j.join(",")+"{"+H+"}",0!==T*P){switch(2!==T||l(H,2)||(P=0),P){case 111:H=H.replace(E,":-moz-$1")+H;break;case 112:H=H.replace(_,"::-webkit-input-$1")+H.replace(_,"::-moz-$1")+H.replace(_,":-ms-input-$1")+H}P=0}}return V+H+z}function a(e,t,a){var r=t.trim().split(h);t=r;var l=r.length,i=e.length;switch(i){case 0:case 1:var o=0;for(e=0===i?"":e[0]+" ";o<l;++o)t[o]=n(e,t[o],a).trim();break;default:var s=o=0;for(t=[];o<l;++o)for(var c=0;c<i;++c)t[s++]=n(e[c]+" ",r[o],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(g,"$1"+e.trim());case 58:return e.trim()+t.replace(g,"$1"+e.trim());default:if(0<1*a&&0<t.indexOf("\f"))return t.replace(g,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function r(e,t,a,n){var i=e+";",o=2*t+3*a+4*n;if(944===o){e=i.indexOf(":",9)+1;var s=i.substring(e,i.length-1).trim();return s=i.substring(0,e).trim()+s+";",1===T||2===T&&l(s,1)?"-webkit-"+s+s:s}if(0===T||2===T&&!l(i,1))return i;switch(o){case 1015:return 97===i.charCodeAt(10)?"-webkit-"+i+i:i;case 951:return 116===i.charCodeAt(3)?"-webkit-"+i+i:i;case 963:return 110===i.charCodeAt(5)?"-webkit-"+i+i:i;case 1009:if(100!==i.charCodeAt(4))break;case 969:case 942:return"-webkit-"+i+i;case 978:return"-webkit-"+i+"-moz-"+i+i;case 1019:case 983:return"-webkit-"+i+"-moz-"+i+"-ms-"+i+i;case 883:if(45===i.charCodeAt(8))return"-webkit-"+i+i;if(0<i.indexOf("image-set(",11))return i.replace(S,"$1-webkit-$2")+i;break;case 932:if(45===i.charCodeAt(4))switch(i.charCodeAt(5)){case 103:return"-webkit-box-"+i.replace("-grow","")+"-webkit-"+i+"-ms-"+i.replace("grow","positive")+i;case 115:return"-webkit-"+i+"-ms-"+i.replace("shrink","negative")+i;case 98:return"-webkit-"+i+"-ms-"+i.replace("basis","preferred-size")+i}return"-webkit-"+i+"-ms-"+i+i;case 964:return"-webkit-"+i+"-ms-flex-"+i+i;case 1023:if(99!==i.charCodeAt(8))break;return"-webkit-box-pack"+(s=i.substring(i.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+i+"-ms-flex-pack"+s+i;case 1005:return p.test(i)?i.replace(m,":-webkit-")+i.replace(m,":-moz-")+i:i;case 1e3:switch(t=(s=i.substring(13).trim()).indexOf("-")+1,s.charCodeAt(0)+s.charCodeAt(t)){case 226:s=i.replace(b,"tb");break;case 232:s=i.replace(b,"tb-rl");break;case 220:s=i.replace(b,"lr");break;default:return i}return"-webkit-"+i+"-ms-"+s+i;case 1017:if(-1===i.indexOf("sticky",9))break;case 975:switch(t=(i=e).length-10,o=(s=(33===i.charCodeAt(t)?i.substring(0,t):i).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|s.charCodeAt(7))){case 203:if(111>s.charCodeAt(8))break;case 115:i=i.replace(s,"-webkit-"+s)+";"+i;break;case 207:case 102:i=i.replace(s,"-webkit-"+(102<o?"inline-":"")+"box")+";"+i.replace(s,"-webkit-"+s)+";"+i.replace(s,"-ms-"+s+"box")+";"+i}return i+";";case 938:if(45===i.charCodeAt(5))switch(i.charCodeAt(6)){case 105:return s=i.replace("-items",""),"-webkit-"+i+"-webkit-box-"+s+"-ms-flex-"+s+i;case 115:return"-webkit-"+i+"-ms-flex-item-"+i.replace(w,"")+i;default:return"-webkit-"+i+"-ms-flex-line-pack"+i.replace("align-content","").replace(w,"")+i}break;case 973:case 989:if(45!==i.charCodeAt(3)||122===i.charCodeAt(4))break;case 931:case 953:if(!0===N.test(e))return 115===(s=e.substring(e.indexOf(":")+1)).charCodeAt(0)?r(e.replace("stretch","fill-available"),t,a,n).replace(":fill-available",":stretch"):i.replace(s,"-webkit-"+s)+i.replace(s,"-moz-"+s.replace("fill-",""))+i;break;case 962:if(i="-webkit-"+i+(102===i.charCodeAt(5)?"-ms-"+i:"")+i,211===a+n&&105===i.charCodeAt(13)&&0<i.indexOf("transform",10))return i.substring(0,i.indexOf(";",27)+1).replace(f,"$1-webkit-$2")+i}return i}function l(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(A,"$1"),a,t)}function i(e,t){var a=r(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return a!==t+";"?a.replace(y," or ($1)").substring(4):"("+t+")"}function o(e,t,a,n,r,l,i,o,s,u){for(var d,m=0,p=t;m<I;++m)switch(d=O[m].call(c,e,p,a,n,r,l,i,o,s,u)){case void 0:case!1:case!0:case null:break;default:p=d}if(p!==t)return p}function s(e){return void 0!==(e=e.prefix)&&(R=null,e?"function"!=typeof e?T=1:(T=2,R=e):T=0),s}function c(e,a){var n=e;if(33>n.charCodeAt(0)&&(n=n.trim()),n=[n],0<I){var r=o(-1,a,n,n,C,x,0,0,0,0);void 0!==r&&"string"==typeof r&&(a=r)}var l=t(F,n,a,0,0);return 0<I&&void 0!==(r=o(-2,l,n,n,C,x,l.length,0,0,0))&&(l=r),P=0,x=C=1,l}var u=/^\0+/g,d=/[\0\r\f]/g,m=/: */g,p=/zoo|gra/,f=/([,: ])(transform)/g,h=/,\r+?/g,g=/([\t\r\n ])*\f?&/g,k=/@(k\w+)\s*(\S*)\s*/,_=/::(place)/g,E=/:(read-only)/g,b=/[svh]\w+-[tblr]{2}/,v=/\(\s*(.*)\s*\)/g,y=/([\s\S]*?);/g,w=/-self|flex-/g,A=/[^]*?(:[rp][el]a[\w-]+)[^]*/,N=/stretch|:\s*\w+\-(?:conte|avail)/,S=/([^-])(image-set\()/,x=1,C=1,P=0,T=1,F=[],O=[],I=0,R=null,D=0;return c.use=function e(t){switch(t){case void 0:case null:I=O.length=0;break;default:if("function"==typeof t)O[I++]=t;else if("object"==typeof t)for(var a=0,n=t.length;a<n;++a)e(t[a]);else D=0|!!t}return e},c.set=s,void 0!==e&&s(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 d=/^((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|fetchpriority|fetchPriority|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|popover|popoverTarget|popoverTargetAction|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)-.*))$/,m=u(function(e){return d.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}),p=a(35),f=a.n(p);function h(){return(h=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 g=function(e,t){for(var a=[e[0]],n=0,r=t.length;n<r;n+=1)a.push(t[n],e[n+1]);return a},k=function(e){return null!==e&&"object"==typeof e&&"[object Object]"===(e.toString?e.toString():Object.prototype.toString.call(e))&&!(0,n.typeOf)(e)},_=Object.freeze([]),E=Object.freeze({});function b(e){return"function"==typeof e}function v(e){return e.displayName||e.name||"Component"}function y(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",A="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,r=n;e>=r;)(r<<=1)<0&&C(16,""+e);this.groupSizes=new Uint32Array(r),this.groupSizes.set(a),this.length=r;for(var l=n;l<r;l++)this.groupSizes[l]=0}for(var i=this.indexOfGroup(e+1),o=0,s=t.length;o<s;o++)this.tag.insertRule(i,t[o])&&(this.groupSizes[e]++,i++)},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 r=a;r<n;r++)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),r=n+a,l=n;l<r;l++)t+=this.tag.getRule(l)+"/*!sc*/\n";return t},e}(),T=new Map,F=new Map,O=1,I=function(e){if(T.has(e))return T.get(e);for(;F.has(O);)O++;var t=O++;return T.set(e,t),F.set(t,e),t},R=function(e){return F.get(e)},D=function(e,t){t>=O&&(O=t+1),T.set(e,t),F.set(t,e)},M="style["+w+'][data-styled-version="5.3.11"]',j=new RegExp("^"+w+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),q=function(e,t,a){for(var n,r=a.split(","),l=0,i=r.length;l<i;l++)(n=r[l])&&e.registerName(t,n)},L=function(e,t){for(var a=(t.textContent||"").split("/*!sc*/\n"),n=[],r=0,l=a.length;r<l;r++){var i=a[r].trim();if(i){var o=i.match(j);if(o){var s=0|parseInt(o[1],10),c=o[2];0!==s&&(D(c,s),q(e,c,o[3]),e.getTag().insertRules(s,n)),n.length=0}else n.push(i)}}},B=function(){return a.nc},G=function(e){var t=document.head,a=e||t,n=document.createElement("style"),r=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),l=void 0!==r?r.nextSibling:null;n.setAttribute(w,"active"),n.setAttribute("data-styled-version","5.3.11");var i=B();return i&&n.setAttribute("nonce",i),a.insertBefore(n,l),n},U=function(){function e(e){var t=this.element=G(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 r=t[a];if(r.ownerNode===e)return r}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=G(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}(),z=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}(),V=N,J={isServer:!N,useCSSOMInjection:!S},W=function(){function e(e,t,a){void 0===e&&(e=E),void 0===t&&(t={}),this.options=h({},J,{},e),this.gs=t,this.names=new Map(a),this.server=!!e.isServer,!this.server&&N&&V&&(V=!1,function(e){for(var t=document.querySelectorAll(M),a=0,n=t.length;a<n;a++){var r=t[a];r&&"active"!==r.getAttribute(w)&&(L(e,r),r.parentNode&&r.parentNode.removeChild(r))}}(this))}e.registerId=function(e){return I(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,a){return void 0===a&&(a=!0),new e(h({},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,r=t.target,e=a?new z(r):n?new U(r):new H(r),new P(e)));var e,t,a,n,r},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(I(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(I(e),a)},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.clearRules=function(e){this.getTag().clearGroup(I(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="",r=0;r<a;r++){var l=R(r);if(void 0!==l){var i=e.names.get(l),o=t.getGroup(r);if(i&&o&&i.size){var s=w+".g"+r+'[id="'+l+'"]',c="";void 0!==i&&i.forEach(function(e){e.length>0&&(c+=e+",")}),n+=""+o+s+'{content:"'+c+'"}/*!sc*/\n'}}}return n}(this)},e}(),Y=/(a)(d)/gi,Q=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=Q(t%52)+a;return(Q(t%52)+a).replace(Y,"$1-$2")}var K=function(e,t){for(var a=t.length;a;)e=33*e^t.charCodeAt(--a);return e},X=function(e){return K(5381,e)};function $(e){for(var t=0;t<e.length;t+=1){var a=e[t];if(b(a)&&!y(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)&&$(e),this.componentId=t,this.baseHash=K(ee,t),this.baseStyle=a,W.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,a){var n=this.componentId,r=[];if(this.baseStyle&&r.push(this.baseStyle.generateAndInjectStyles(e,t,a)),this.isStatic&&!a.hash)if(this.staticRulesId&&t.hasNameForId(n,this.staticRulesId))r.push(this.staticRulesId);else{var l=be(this.rules,e,t,a).join(""),i=Z(K(this.baseHash,l)>>>0);if(!t.hasNameForId(n,i)){var o=a(l,"."+i,void 0,n);t.insertRules(n,i,o)}r.push(i),this.staticRulesId=i}else{for(var s=this.rules.length,c=K(this.baseHash,a.hash),u="",d=0;d<s;d++){var m=this.rules[d];if("string"==typeof m)u+=m;else if(m){var p=be(m,e,t,a),f=Array.isArray(p)?p.join(""):p;c=K(c,f+d),u+=f}}if(u){var h=Z(c>>>0);if(!t.hasNameForId(n,h)){var g=a(u,"."+h,void 0,n);t.insertRules(n,h,g)}r.push(h)}}return r.join(" ")},e}(),ae=/^\s*\/\/.*$/gm,ne=[":","[",".","#"];function re(e){var t,a,n,r,l=void 0===e?E:e,i=l.options,o=void 0===i?E:i,c=l.plugins,u=void 0===c?_:c,d=new s(o),m=[],p=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(a,n,r,l,i,o,s,c,u,d){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(r[0]+n),"";default:return n+(0===d?"/*|*/":"")}case-2:n.split("/*|*/}").forEach(t)}}}(function(e){m.push(e)}),f=function(e,n,l){return 0===n&&-1!==ne.indexOf(l[a.length])||l.match(r)?e:"."+t};function h(e,l,i,o){void 0===o&&(o="&");var s=e.replace(ae,""),c=l&&i?i+" "+l+" { "+s+" }":s;return t=o,a=l,n=new RegExp("\\"+a+"\\b","g"),r=new RegExp("(\\"+a+"\\b){2,}"),d(i||!l?"":l,c)}return d.use([].concat(u,[function(e,t,r){2===e&&r.length&&r[0].lastIndexOf(a)>0&&(r[0]=r[0].replace(n,f))},p,function(e){if(-2===e){var t=m;return m=[],t}}])),h.hash=u.length?u.reduce(function(e,t){return t.name||C(15),K(e,t.name)},5381).toString():"",h}var le=l().createContext(),ie=le.Consumer,oe=l().createContext(),se=(oe.Consumer,new W),ce=re();function ue(){return(0,r.useContext)(le)||se}function de(){return(0,r.useContext)(oe)||ce}function me(e){var t=(0,r.useState)(e.stylisPlugins),a=t[0],n=t[1],i=ue(),s=(0,r.useMemo)(function(){var t=i;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,r.useMemo)(function(){return re({options:{prefix:!e.disableVendorPrefixes},plugins:a})},[e.disableVendorPrefixes,a]);return(0,r.useEffect)(function(){o()(a,e.stylisPlugins)||n(e.stylisPlugins)},[e.stylisPlugins]),l().createElement(le.Provider,{value:s},l().createElement(oe.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}(),fe=/([A-Z])/,he=/([A-Z])/g,ge=/^ms-/,ke=function(e){return"-"+e.toLowerCase()};function _e(e){return fe.test(e)?e.replace(he,ke).replace(ge,"-ms-"):e}var Ee=function(e){return null==e||!1===e||""===e};function be(e,t,a,n){if(Array.isArray(e)){for(var r,l=[],i=0,o=e.length;i<o;i+=1)""!==(r=be(e[i],t,a,n))&&(Array.isArray(r)?l.push.apply(l,r):l.push(r));return l}return Ee(e)?"":y(e)?"."+e.styledComponentId:b(e)?"function"!=typeof(s=e)||s.prototype&&s.prototype.isReactComponent||!t?e:be(e(t),t,a,n):e instanceof pe?a?(e.inject(a,n),e.getName(n)):e:k(e)?function e(t,a){var n,r,l=[];for(var i in t)t.hasOwnProperty(i)&&!Ee(t[i])&&(Array.isArray(t[i])&&t[i].isCss||b(t[i])?l.push(_e(i)+":",t[i],";"):k(t[i])?l.push.apply(l,e(t[i],i)):l.push(_e(i)+": "+(n=i,(null==(r=t[i])||"boolean"==typeof r||""===r?"":"number"!=typeof r||0===r||n in c||n.startsWith("--")?String(r).trim():r+"px")+";")));return a?[a+" {"].concat(l,["}"]):l}(e):e.toString();var s}var ve=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function ye(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)||k(e)?ve(be(g(_,[e].concat(a)))):0===a.length&&1===e.length&&"string"==typeof e[0]?e:ve(be(g(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},Ae=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Ne=/(^-|-$)/g;function Se(e){return e.replace(Ae,"-").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)},Te=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function Fe(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 r=0,l=a;r<l.length;r++){var i=l[r];if(Pe(i))for(var o in i)Te(o)&&Fe(e,i[o],o)}return e}var Ie=l().createContext(),Re=Ie.Consumer;function De(e){var t=(0,r.useContext)(Ie),a=(0,r.useMemo)(function(){return function(e,t){return e?b(e)?e(t):Array.isArray(e)||"object"!=typeof e?C(8):t?h({},t,{},e):e:C(14)}(e.theme,t)},[e.theme,t]);return e.children?l().createElement(Ie.Provider,{value:a},e.children):null}var Me={};function je(e,t,a){var n=y(e),i=!Ce(e),o=t.attrs,s=void 0===o?_:o,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,d=t.displayName,p=void 0===d?function(e){return Ce(e)?"styled."+e:"Styled("+v(e)+")"}(e):d,g=t.displayName&&t.componentId?Se(t.displayName)+"-"+t.componentId:t.componentId||u,k=n&&e.attrs?Array.prototype.concat(e.attrs,s).filter(Boolean):s,w=t.shouldForwardProp;n&&e.shouldForwardProp&&(w=t.shouldForwardProp?function(a,n,r){return e.shouldForwardProp(a,n,r)&&t.shouldForwardProp(a,n,r)}:e.shouldForwardProp);var A,N=new te(a,g,n?e.componentStyle:void 0),S=N.isStatic&&0===s.length,x=function(e,t){return function(e,t,a,n){var l=e.attrs,i=e.componentStyle,o=e.defaultProps,s=e.foldedComponentIds,c=e.shouldForwardProp,u=e.styledComponentId,d=e.target,p=function(e,t,a){void 0===e&&(e=E);var n=h({},t,{theme:e}),r={};return a.forEach(function(e){var t,a,l,i=e;for(t in b(i)&&(i=i(n)),i)n[t]=r[t]="className"===t?(a=r[t],l=i[t],a&&l?a+" "+l:a||l):i[t]}),[n,r]}(we(t,(0,r.useContext)(Ie),o)||E,t,l),f=p[0],g=p[1],k=function(e,t,a){var n=ue(),r=de();return t?e.generateAndInjectStyles(E,n,r):e.generateAndInjectStyles(a,n,r)}(i,n,f),_=a,v=g.$as||t.$as||g.as||t.as||d,y=Ce(v),w=g!==t?h({},t,{},g):t,A={};for(var N in w)"$"!==N[0]&&"as"!==N&&("forwardedAs"===N?A.as=w[N]:(c?c(N,m,v):!y||m(N))&&(A[N]=w[N]));return t.style&&g.style!==t.style&&(A.style=h({},t.style,{},g.style)),A.className=Array.prototype.concat(s,u,k!==u?k:null,t.className,g.className).filter(Boolean).join(" "),A.ref=_,(0,r.createElement)(v,A)}(A,e,t,S)};return x.displayName=p,(A=l().forwardRef(x)).attrs=k,A.componentStyle=N,A.displayName=p,A.shouldForwardProp=w,A.foldedComponentIds=n?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):_,A.styledComponentId=g,A.target=n?e.target:e,A.withComponent=function(e){var n=t.componentId,r=function(e,t){if(null==e)return{};var a,n,r={},l=Object.keys(e);for(n=0;n<l.length;n++)a=l[n],t.indexOf(a)>=0||(r[a]=e[a]);return r}(t,["componentId"]),l=n&&n+"-"+(Ce(e)?e:Se(v(e)));return je(e,h({},r,{attrs:k,componentId:l}),a)},Object.defineProperty(A,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=n?Oe({},e.defaultProps,t):t}}),Object.defineProperty(A,"toString",{value:function(){return"."+A.styledComponentId}}),i&&f()(A,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),A}var qe=function(e){return function e(t,a,r){if(void 0===r&&(r=E),!(0,n.isValidElementType)(a))return C(1,String(a));var l=function(){return t(a,r,ye.apply(void 0,arguments))};return l.withConfig=function(n){return e(t,a,h({},r,{},n))},l.attrs=function(n){return e(t,a,h({},r,{attrs:Array.prototype.concat(r.attrs,n).filter(Boolean)}))},l}(je,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){qe[e]=qe(e)});var Le=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=$(e),W.registerId(this.componentId+1)}var t=e.prototype;return t.createStyles=function(e,t,a,n){var r=n(be(this.rules,t,a,n).join(""),""),l=this.componentId+e;a.insertRules(l,l,r)},t.removeStyles=function(e,t){t.clearRules(this.componentId+e)},t.renderStyles=function(e,t,a,n){e>2&&W.registerId(this.componentId+e),this.removeStyles(e,a),this.createStyles(e,t,a,n)},e}();function Be(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 i=ye.apply(void 0,[e].concat(a)),o="sc-global-"+xe(JSON.stringify(i)),s=new Le(i,o);function c(e){var t=ue(),a=de(),n=(0,r.useContext)(Ie),l=(0,r.useRef)(t.allocateGSInstance(o)).current;return t.server&&u(l,e,t,n,a),(0,r.useLayoutEffect)(function(){if(!t.server)return u(l,e,t,n,a),function(){return s.removeStyles(l,t)}},[l,e,t,n,a]),null}function u(e,t,a,n,r){if(s.isStatic)s.renderStyles(e,x,a,r);else{var l=h({},t,{theme:we(t,n,c.defaultProps)});s.renderStyles(e,l,a,r)}}return l().memo(c)}function Ge(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 r=ye.apply(void 0,[e].concat(a)).join(""),l=xe(r);return new pe(l,r)}var Ue=function(){function e(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString();if(!t)return"";var a=B();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=B();return n&&(a.nonce=n),[l().createElement("style",h({},a,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new W({isServer:!0}),this.sealed=!1}var t=e.prototype;return t.collectStyles=function(e){return this.sealed?C(2):l().createElement(me,{sheet:this.instance},e)},t.interleaveWithNodeStream=function(e){return C(3)},e}(),He=function(e){var t=l().forwardRef(function(t,a){var n=(0,r.useContext)(Ie),i=e.defaultProps,o=we(t,n,i);return l().createElement(e,h({},t,{theme:o,ref:a}))});return f()(t,e),t.displayName="WithTheme("+v(e)+")",t},ze=function(){return(0,r.useContext)(Ie)},Ve={StyleSheet:W,masterSheet:se};const Je=qe},875:function(e,t,a){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,a,n){void 0===n&&(n=a);var r=Object.getOwnPropertyDescriptor(t,a);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,n,r)}:function(e,t,a,n){void 0===n&&(n=a),e[n]=t[a]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),l=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 r(t,e),t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.storeConfig=void 0;const o=a(143),s=a(86),c=i(a(195)),u=l(a(24)),d=l(a(973)),m=l(a(355));t.storeConfig={reducer:c.default,actions:u,selectors:d,resolvers:m};const p=(0,o.createReduxStore)(s.STORE_NAME,t.storeConfig);(0,o.register)(p)},945:e=>{e.exports=function(e,t,a,n){var r=a?a.call(n,e,t):void 0;if(void 0!==r)return!!r;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var l=Object.keys(e),i=Object.keys(t);if(l.length!==i.length)return!1;for(var o=Object.prototype.hasOwnProperty.bind(t),s=0;s<l.length;s++){var c=l[s];if(!o(c))return!1;var u=e[c],d=t[c];if(!1===(r=a?a.call(n,u,d,c):void 0)||void 0===r&&u!==d)return!1}return!0}},959:(e,t,a)=>{"use strict";e.exports=a(843)},973:(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},985:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}},t={};function a(n){var r=t[n];if(void 0!==r)return r.exports;var l=t[n]={exports:{}};return e[n].call(l.exports,l,l.exports,a),l.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:()=>Me,AppProvider:()=>Ie,AppStructure:()=>De,AppTabSwitcher:()=>Re,Header:()=>E,Nav:()=>y,Spinner:()=>M,Table:()=>j,apiFetch:()=>f,copyInClipboard:()=>k,deepMerge:()=>h,getPluginURL:()=>g,onDocumentLoaded:()=>_,useAppSlotContext:()=>S});var e=a(87),t=a(723);const r=window.wp.editor,l=window.wp.hooks,i=qlttf_backend.QLTTF_PLUGIN_NAME,o=qlttf_backend.QLTTF_PLUGIN_VERSION,s=(qlttf_backend.QLTTF_PLUGIN_FILE,qlttf_backend.QLTTF_PLUGIN_DIR,qlttf_backend.QLTTF_DOMAIN,qlttf_backend.QLTTF_PREFIX,qlttf_backend.QLTTF_WORDPRESS_URL,qlttf_backend.QLTTF_REVIEW_URL,qlttf_backend.QLTTF_GROUP_URL),c=(qlttf_backend.QLTTF_DEVELOPER,qlttf_backend.QLTTF_TIKTOK_URL,qlttf_backend.QLTTF_ACCESS_TOKEN_LINK),u=qlttf_backend.QLTTF_FEED_MODEL,d=(qlttf_backend.QLTTF_REST_ROUTES,window.lodash);var m=a(455),p=a.n(m);async function f(e){return await p()(e).then(e=>{if(e.code)throw new Error(`${e.code}: ${e?.message||"Unknown"}`);return e}).catch(e=>{throw new Error(JSON.stringify(e))})}function h(e,t){const a={};return new Set([...Object.keys(e),...Object.keys(t)]).forEach(n=>{e.hasOwnProperty(n)&&t.hasOwnProperty(n)?(0,d.isObject)(e[n])&&!Array.isArray(e[n])?a[n]=h(e[n],t[n]):a[n]=t[n]:e.hasOwnProperty(n)?a[n]=e[n]:t.hasOwnProperty(n)&&(a[n]=t[n])}),a}function g(e){return qlttf_backend.plugin_url+e}function k(e){return navigator.clipboard&&navigator.clipboard.writeText?navigator.clipboard.writeText(e).then(function(){return!0},function(){return!1}):new Promise(t=>{try{const a=document.createElement("textarea");a.value=e,a.style.position="fixed",a.style.left="-999999px",a.style.top="-999999px",document.body.appendChild(a),a.focus(),a.select();const n=document.execCommand("copy");document.body.removeChild(a),t(n)}catch(e){console.error("Failed to copy text: ",e),t(!1)}})}const _=e=>{/comp|inter|loaded/.test(document.readyState)?e():document.addEventListener("DOMContentLoaded",e,!1)},E=()=>(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"wrap about-wrap full-width-layout"},(0,e.createElement)("h1",null,i),(0,e.createElement)("p",{className:"about-text"},(0,t.sprintf)((0,t.__)("Thanks for using %s! We are doing our best to offer you the best alternatives to display TikTok videos on your site, helping you to improve communication experience with your users.","wp-tiktok-feed"),i)),(0,e.createElement)("p",{className:"about-text"},(0,e.createElement)("a",{href:"https://quadlayers.com/products/tiktok-feed/?utm_source=qlttf_plugin&utm_medium=admin_header&utm_campaign=premium_upgrade&utm_content=premium_link",target:"__blank"},(0,t.__)("Premium","wp-tiktok-feed"))," ","|",(0,e.createElement)("a",{href:"https://quadlayers.com/demo/tiktok-feed/?utm_source=qlttf_plugin&utm_medium=admin_header&utm_campaign=demo&utm_content=demo_link",target:"__blank"},(0,t.__)("Demo","wp-tiktok-feed"))," ","|",(0,e.createElement)("a",{href:"https://quadlayers.com/documentation/tiktok-feed/?utm_source=qlttf_plugin&utm_medium=admin_header&utm_campaign=documentation&utm_content=documentation_link",target:"__blank"},(0,t.__)("Documentation","wp-tiktok-feed"))),(0,e.createElement)("a",{href:"https://quadlayers.com/?utm_source=qlttf_plugin&utm_medium=admin_header&utm_campaign=branding&utm_content=header_logo",target:"_blank",rel:"noreferrer"},(0,e.createElement)("div",{style:{backgroundImage:`url(${g("/assets/backend/img/quadlayers.jpg")})`},className:"wp-badge quadlayers__logo"},"QuadLayers"))));var b=a(500),v=a.n(b);const y=function(){const{currentTab:t,setCurrentTab:a,tabs:n}=Fe();return(0,e.useEffect)(()=>{(e=>{const t=Array.from(document.querySelector("#toplevel_page_qlttf_backend .wp-submenu").children),a=e[0].toUpperCase()+e.slice(1).toLowerCase();t.map(e=>{e.innerText.trim()==a?e.classList.add("current"):e.classList.remove("current")})})(t)},[t]),(0,e.createElement)("div",{className:"wrap about-wrap full-width-layout"},(0,e.createElement)("ul",{className:"nav-tab-wrapper"},n.map(({label:n,name:r},l)=>(0,e.createElement)("li",{key:l,className:"nav-tab-li",onClick:e=>{e.preventDefault(),e.stopPropagation(),a(r)}},(0,e.createElement)("a",{href:"#",className:v()("nav-tab",t===r&&"nav-tab-active"),onClick:e=>{e.preventDefault()}},n)))))},w=window.wp.components,A=window.wp.compose,N=(0,e.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}}),S=()=>(0,e.useContext)(N),x=t=>{const a=(0,e.useRef)(),{children:n}=t,r=`tiktok.admin.Control.Slot.${(0,A.useInstanceId)(x)}`,l={},i={},{Fill:o,Slot:s}=(0,e.useCallback)((0,w.createSlotFill)(`${r}.header`),[r]),{Fill:c,Slot:u}=(0,e.useCallback)((0,w.createSlotFill)(`${r}.navigation`),[r]),{Fill:d,Slot:m}=(0,e.useCallback)((0,w.createSlotFill)(`${r}content`),[r]),{Fill:p,Slot:f}=(0,e.useCallback)((0,w.createSlotFill)(`${r}.aside`),[r]),{Fill:h,Slot:g}=(0,e.useCallback)((0,w.createSlotFill)(`${r}.footer`),[r]);return l.Header=s,i.Header=o,l.Navigation=u,i.Navigation=c,l.Content=m,i.Content=d,l.Aside=f,i.Aside=p,l.Footer=g,i.Footer=h,(0,e.createElement)(w.SlotFillProvider,null,(0,e.createElement)(N.Provider,{value:{Slot:l,Fill:i,containerRef:a}},n))},C=N.Consumer,P=({isSecondary:t,href:a,title:n,target:r="_self",tagName:l="a",className:i,children:o})=>{const s=l;return(0,e.createElement)(s,{className:v()("tiktok__button",t&&"tiktok__button--secondary",i),href:a,target:r,title:n},o)},T=()=>(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,i,(0,e.createElement)("span",{style:{fontSize:"24px",color:"#555"}}," ","v",o," ")),(0,e.createElement)("div",{className:"about-text"},(0,e.createElement)("p",null,(0,t.sprintf)((0,t.__)("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","wp-tiktok-feed"),i)))),(0,e.createElement)("hr",null),(0,e.createElement)("div",{className:"feature-section"},(0,e.createElement)("h3",null,(0,t.__)("Premium","wp-tiktok-feed")),(0,e.createElement)("p",null,(0,t.sprintf)((0,t.__)("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.","wp-tiktok-feed"),i)),(0,e.createElement)(P,{href:"https://quadlayers.com/products/tiktok-feed/?utm_source=qlttf_plugin&utm_medium=admin_tab&utm_campaign=premium_upgrade&utm_content=purchase_button",target:"_blank"},(0,t.__)("Purchase Now","wp-tiktok-feed"))),(0,e.createElement)("div",{className:"feature-section"},(0,e.createElement)("h3",null,(0,t.__)("Demo","wp-tiktok-feed")),(0,e.createElement)("p",null,(0,t.sprintf)((0,t.__)("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.","wp-tiktok-feed"),i)),(0,e.createElement)(P,{isSecondary:!0,href:"https://quadlayers.com/demo/tiktok-feed/?utm_source=qlttf_plugin&utm_medium=admin_tab&utm_campaign=demo&utm_content=demo_button",target:"_blank"},(0,t.__)("View demo","wp-tiktok-feed"))),(0,e.createElement)("div",{className:"feature-section"},(0,e.createElement)("h3",null,(0,t.__)("Support","wp-tiktok-feed")),(0,e.createElement)("p",null,(0,t.sprintf)((0,t.__)("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.","wp-tiktok-feed"),i)),(0,e.createElement)(P,{isSecondary:!0,href:"https://quadlayers.com/account/support/?utm_source=qlttf_plugin&utm_medium=admin_tab&utm_campaign=support&utm_content=support_button",target:"_blank"},(0,t.__)("Submit ticket","wp-tiktok-feed"))),(0,e.createElement)("div",{className:"feature-section"},(0,e.createElement)("h3",null,(0,t.__)("Comunnity","wp-tiktok-feed")),(0,e.createElement)("p",null,(0,t.sprintf)((0,t.__)("If you want to get in touch with other %s users or be aware of our promotional discounts join our community now.","wp-tiktok-feed"),i)),(0,e.createElement)(P,{isSecondary:!0,href:s,target:"_blank"},(0,t.__)("Join our community","wp-tiktok-feed")))),(0,e.createElement)("div",{className:"column"},(0,e.createElement)("img",{src:g("/assets/backend/img/mobile.png")})))),F=()=>{const{Fill:t}=S();return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(t.Header,null,(0,e.createElement)(E,null)),(0,e.createElement)(t.Navigation,null,(0,e.createElement)(y,null)),(0,e.createElement)(t.Content,null,(0,e.createElement)(T,null)))},O=({title:t,show:a,onClose:n,children:r,className:l,__experimentalHideHeader:i=!1})=>{const o=(0,e.useRef)();return(0,e.useEffect)(()=>{const e=e=>{a&&o?.current&&o.current===e.target&&n(e)};return o?.current?.addEventListener("click",e),()=>{o?.current?.removeEventListener("click",e)}},[o,a]),a?(0,e.createElement)(w.Modal,{ref:o,title:t,onRequestClose:n,shouldCloseOnClickOutside:!1,className:v()("tiktok__modal media-modal wp-core-ui upload-php",l),__experimentalHideHeader:i},r):null};var I=a(143),R=a(692);const D=window.qlttf.store;function M(){return(0,e.createElement)("p",null,(0,e.createElement)("span",{style:{visibility:"visible"},className:"spinner"}),(0,t.__)("Loading…","wp-tiktok-feed"))}function j({children:t,style:a}){return(0,e.createElement)("table",{className:"form-table widefat striped tiktok__table",style:a},t)}const q=window.wp.date,L=({account:a,deleteAccount:n,createSuccessNotice:r,createErrorNotice:l})=>(0,e.createElement)("tr",null,(0,e.createElement)("td",{width:"1%"},(0,e.createElement)("img",{className:"avatar",src:a.avatar?a.avatar:"http://2.gravatar.com/avatar/b642b4217b34b1e8d3bd915fc65c4452?s=150&d=mm&r=g"})),(0,e.createElement)("td",null,a.username||(0,t.__)("Loading…","wp-tiktok-feed")),(0,e.createElement)("td",null,a.open_id),(0,e.createElement)("td",{style:{width:"300px"}},(0,e.createElement)("input",{type:"text",defaultValue:a.refresh_token,readOnly:!0}),(0,e.createElement)("button",{className:"button button-primary",onClick:async()=>{await k(a.refresh_token)?r((0,t.__)("Refresh token copied to clipboard.","wp-tiktok-feed"),{id:1,type:"snackbar"}):l((0,t.__)("Can't copy the refresh token.","wp-tiktok-feed"),{id:2,type:"snackbar"})}},(0,e.createElement)("i",{className:"dashicons dashicons-admin-page"}))),(0,e.createElement)("td",null,(0,q.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,t.sprintf)((0,t.__)("You are about to delete the %s account.","wp-tiktok-feed"),a.username))&&n(a.open_id,a.username)}},(0,e.createElement)("i",{className:"dashicons dashicons-trash"})))),B=t=>{const{href:a,target:n="_self",title:r,children:l,className:i}=t;return(0,e.createElement)("a",{href:a,className:v()("tiktok__account-button",i),target:n,title:r},l)},G=({isOpen:a,setIsOpen:n})=>{const{createSuccessNotice:r,createErrorNotice:l,createWarningNotice:i}=(0,I.useDispatch)(R.store),{accounts:o,hasAccounts:s,hasResolvedAccounts:u,deleteAccount:d}=(0,D.useAccountsEntities)();return u?(0,e.createElement)("div",{className:"wrap about-wrap full-width-layout"},(0,e.createElement)("p",null,(0,e.createElement)(B,{href:c,className:v()("tiktok__account-button",s&&"qlttf-premium-field"),target:"_self",title:(0,t.__)("Add TikTok Account","wp-tiktok-feed")},(0,t.__)("Add TikTok Account","wp-tiktok-feed")),(0,e.createElement)("a",{className:v()("tiktok__account-link",s&&"qlttf-premium-field"),href:"#",onClick:()=>n(!0)},(0,t.__)("Button not working?","wp-tiktok-feed")),(0,e.createElement)("span",{className:"qlttf-premium-field"},(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,t.__)("Multiple user accounts are only allowed in the premium version.","wp-tiktok-feed"))))),o&&(0,e.createElement)(j,null,(0,e.createElement)("thead",null,(0,e.createElement)("tr",null,(0,e.createElement)("th",null,(0,t.__)("Image","wp-tiktok-feed")),(0,e.createElement)("th",null,(0,t.__)("Username","wp-tiktok-feed")),(0,e.createElement)("th",null,(0,t.__)("Open Id","wp-tiktok-feed")),(0,e.createElement)("th",null,(0,t.__)("Refresh Token","wp-tiktok-feed")),(0,e.createElement)("th",null,(0,t.__)("Expires","wp-tiktok-feed")),(0,e.createElement)("th",null,(0,t.__)("Action","wp-tiktok-feed")))),(0,e.createElement)("tbody",null,o.map((t,a)=>(0,e.createElement)(L,{key:a,account:t,deleteAccount:d,createSuccessNotice:r,createErrorNotice:l}))))):(0,e.createElement)(M,null)},U=({isOpen:a,setIsOpen:n})=>{const{createAccount:r}=(0,D.useAccountsEntities)(),[l,i]=(0,e.useState)(!1),[o,s]=(0,e.useState)({refresh_token:""}),c=l||!o?.refresh_token;return(0,e.createElement)("div",null,(0,e.createElement)("form",{onSubmit:async e=>{e.preventDefault(),i(!0);const t=await r(o);i(!1),t&&n(!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:()=>n(!1)},(0,e.createElement)("span",{className:"media-modal-icon"},(0,e.createElement)("span",{className:"screen-reader-text"},(0,t.__)("Close dialog","wp-tiktok-feed"))))),(0,e.createElement)("div",{className:"media-frame-title"},(0,e.createElement)("h1",null,(0,t.__)("Manually connect an account","wp-tiktok-feed"))),(0,e.createElement)("div",{className:"media-frame-content"},(0,e.createElement)("div",{style:{height:"100%",overflowX:"hidden"}},(0,e.createElement)("div",{className:"tiktok__modal__panel"},(0,e.createElement)("div",{className:"options_group"},(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Refresh Token:","wp-tiktok-feed")),(0,e.createElement)("input",{style:{minWidth:260},type:"text",placeholder:(0,t.__)("Enter a valid refresh token","wp-tiktok-feed"),required:!0,value:o.refresh_token,onChange:e=>s({refresh_token:e.target.value})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("a",{style:{margin:"0 15px"},target:"_blank",href:"https://tiktokfeedv2.quadlayers.com/auth/",rel:"noreferrer"},(0,t.__)("Get access token","wp-tiktok-feed"))))),(0,e.createElement)("div",{className:"options_group",style:{borderBottom:"none"}},(0,e.createElement)("p",{className:"form-field"},(0,t.__)("Please copy and paste your refresh access token here.","wp-tiktok-feed")))))),(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)("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,t.__)("Save","wp-tiktok-feed")))))))))},H=()=>{const{Fill:t}=S(),[a,n]=(0,e.useState)(!1);return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(t.Header,null,(0,e.createElement)(E,null)),(0,e.createElement)(t.Navigation,null,(0,e.createElement)(y,null)),(0,e.createElement)(t.Content,null,(0,e.createElement)(G,{isOpen:a,setIsOpen:n}),(0,e.createElement)(O,{show:a,className:"tiktok__modal--account",onClose:()=>n(!1),__experimentalHideHeader:!0},(0,e.createElement)(U,{isOpen:a,setIsOpen:n}))))},z=[{label:(0,t.__)("General","wp-tiktok-feed"),name:"general"},{label:(0,t.__)("Profile","wp-tiktok-feed"),name:"profile"},{label:(0,t.__)("Carousel","wp-tiktok-feed"),name:"carousel"},{label:(0,t.__)("Box","wp-tiktok-feed"),name:"box"},{label:(0,t.__)("Video","wp-tiktok-feed"),name:"video"},{label:(0,t.__)("Card","wp-tiktok-feed"),name:"video-card"},{label:(0,t.__)("Modal","wp-tiktok-feed"),name:"video-modal"},{label:(0,t.__)("Button","wp-tiktok-feed"),name:"button"},{label:(0,t.__)("Button Load More","wp-tiktok-feed"),name:"button-load-more"}],V={currentFeedIndex:null,currentTab:z[0].name,prevPanel:null,currentFeedFormData:u},J=(0,e.createContext)({}),W=()=>(0,e.useContext)(J),Y=(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},Q=t=>{const{children:a}=t,[n,r]=(0,e.useReducer)(Y,V),{feeds:l,createFeed:i,editFeed:o}=(0,D.useFeedsEntities)(),s=l[n.currentFeedIndex],c=(0,d.isEqual)(s,n.currentFeedFormData);return(0,e.createElement)(J.Provider,{value:{...n,setCurrentTab:e=>{n.currentTab!=e&&r({type:"SET_CURRENT_TAB",payload:{currentTab:e}})},setCurrentFeedIndex:(e=null)=>{r({type:"SET_CURRENT_FEED",payload:{currentFeedIndex:e,currentFeedFormData:l?.[e]||V.currentFeedFormData}})},setCurrentFeedFormData:e=>{const t=h(n.currentFeedFormData,e);r({type:"SET_CURRENT_FEED_FORM_DATA",payload:{currentFeedFormData:void 0===t?"":t}})},feeds:l,createFeed:i,editFeed:o,isCurrentFeedDataModified:c}},a)};function Z({setIsOpen:a,isLoading:n}){const{isCurrentFeedDataModified:r,currentFeedFormData:l}=W(),i=n||r||(()=>{switch(l.source){case"account":if(""==l.open_id)return!0;break;case"username":if(""==l.username)return!0;break;case"hashtag":if(""==l.hashtag)return!0;break;default:return!1}})();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"},(0,e.createElement)("span",{className:"settings-save-status media-button",style:{float:"left"}},n&&(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:i},(0,t.__)("Save","wp-tiktok-feed")),(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:()=>a(!1)},(0,t.__)("Close","wp-tiktok-feed")))))}function K({setIsOpen:a,isNewFeed:n,currentFeedId:r}){const{feeds:l,currentFeedIndex:i,setCurrentFeedIndex:o}=W(),s=i-1,c=i+1;return(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"edit-media-header"},!n&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)("button",{type:"button",className:"left",disabled:!l[s],onClick:()=>{o(s)}},(0,e.createElement)("span",{className:"screen-reader-text"},(0,t.__)("Edit previous media item","wp-tiktok-feed"))),(0,e.createElement)("button",{type:"button",className:"right",disabled:!l[c],onClick:()=>{o(c)}},(0,e.createElement)("span",{className:"screen-reader-text"},(0,t.__)("Edit next media item","wp-tiktok-feed")))),(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,t.__)("Close dialog","wp-tiktok-feed"))))),(0,e.createElement)("div",{className:"media-frame-title"},(0,e.createElement)("h1",null,(0,t.sprintf)((0,t.__)("Edit feed # %s","wp-tiktok-feed"),n?(0,t.__)("New","wp-tiktok-feed"):r))))}J.Consumer;const X=[{name:"gallery",title:"Gallery",premium:!1},{name:"masonry",title:"Masonry",premium:!1},{name:"carousel",title:"Carousel",premium:!0},{name:"carousel-vertical",title:"C. Vertical",premium:!0},{name:"highlight",title:"Highlight",premium:!0},{name:"highlight-square",title:"H. Square",premium:!0}];function $(){const{currentFeedFormData:a,setCurrentFeedFormData:n}=W(),{accounts:r}=(0,D.useAccountsEntities)();return(0,e.createElement)("div",{className:"tiktok__modal__panel"},(0,e.createElement)("div",{className:"options_group"},(0,e.createElement)("p",{className:"form-field form-field--source"},(0,e.createElement)("label",null,(0,t.__)("Source","wp-tiktok-feed")),(0,e.createElement)("span",null,(0,e.createElement)("input",{type:"radio",onChange:()=>n({source:"account"}),checked:"account"==a.source}),(0,e.createElement)("label",null,(0,t.__)("Account","wp-tiktok-feed")," ",(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,t.__)("(This is a premium feature)","wp-tiktok-feed"))))),(0,e.createElement)("span",{className:"qlttf-premium-field"},(0,e.createElement)("input",{type:"radio",onChange:()=>n({source:"username"}),checked:"username"==a.source}),(0,e.createElement)("label",null,(0,t.__)("Username","wp-tiktok-feed"))),(0,e.createElement)("span",{className:"qlttf-premium-field"},(0,e.createElement)("input",{type:"radio",onChange:()=>n({source:"hashtag"}),checked:"hashtag"==a.source}),(0,e.createElement)("label",null,(0,t.__)("Hashtag","wp-tiktok-feed"))),(0,e.createElement)("span",{className:"qlttf-premium-field"},(0,e.createElement)("input",{type:"radio",onChange:()=>n({source:"trending"}),checked:"trending"==a.source}),(0,e.createElement)("label",null,(0,t.__)("Trending","wp-tiktok-feed")))),(0,e.createElement)("p",{className:"form-field qlttf-premium-field",style:{marginTop:-30}},(0,e.createElement)("label",null),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,t.__)("Username, Hashtag & Trending feeds are available in the premium version.","wp-tiktok-feed"))))),"hashtag"==a.source&&(0,e.createElement)("div",{className:"options_group"},(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Hashtag","wp-tiktok-feed")),(0,e.createElement)("input",{type:"text",required:"required",placeholder:"wordpress",value:a.hashtag,onChange:e=>n({hashtag:e.target.value})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Please enter a hashtag","wp-tiktok-feed"))))),"username"==a.source&&(0,e.createElement)("div",{className:"options_group"},(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Username","wp-tiktok-feed")),(0,e.createElement)("input",{type:"text",required:"required",value:a.username,onChange:e=>n({username:e.target.value})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Please enter a username","wp-tiktok-feed"))))),"trending"==a.source&&(0,e.createElement)("div",{className:"options_group"},(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Region","wp-tiktok-feed")),(0,e.createElement)("input",{type:"text",required:"required",value:a.region,onChange:e=>n({region:e.target.value})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,e.createElement)("a",{target:"_blank",rel:"noreferrer noopener",href:"https://www.iso.org/obp/ui/#search"},(0,t.__)("Please enter a region country in Alpha-2 standard. You can find more information about it here.","wp-tiktok-feed")))))),"account"==a.source&&(0,e.createElement)("div",{className:"options_group"},(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Account","wp-tiktok-feed")),(0,e.createElement)("select",{required:!0,value:a.open_id||"",onChange:e=>n({open_id:e.target.value})},(0,e.createElement)("option",{value:""},(0,t.__)("Select an account","wp-tiktok-feed")),r.map((t,a)=>(0,e.createElement)("option",{key:a,value:t.open_id},t.username))),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Please select a TikTok account","wp-tiktok-feed"))))),(0,e.createElement)("div",{className:"options_group"},(0,e.createElement)("div",{className:"form-field"},(0,e.createElement)("ul",{className:"list-images"},X.map(({name:r,title:l,premium:i})=>(0,e.createElement)("li",{key:r,className:v()(a.layout==r&&"active",i&&"qlttf-premium-field"),onClick:e=>n({layout:r})},(0,e.createElement)("span",null,(0,e.createElement)("label",null,l),(0,e.createElement)("img",{alt:l,src:g(`/assets/backend/img/${r}.png`)}),i&&(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,t.__)("(Premium)","wp-tiktok-feed"))))))))),(0,e.createElement)("div",{className:"options_group"},(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Carousel items","wp-tiktok-feed")),(0,e.createElement)("input",{type:"checkbox",checked:!!a.hide_carousel_feed,onChange:e=>n({hide_carousel_feed:!!e.target.checked}),readOnly:!0}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Hide carousel feed items. This option is must be checked until TikTok API can support carousel feed items.","wp-tiktok-feed"))))),(0,e.createElement)("div",{className:"options_group"},(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Limit","wp-tiktok-feed")),(0,e.createElement)("input",{type:"number",min:"1",max:"33",value:a.limit,onChange:e=>n({limit:e.target.value})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Number of videos to display","wp-tiktok-feed")))),(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Columns","wp-tiktok-feed")),(0,e.createElement)("input",{type:"number",min:"1",max:"20",value:a.columns,onChange:e=>n({columns:e.target.value})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Number of videos in a row","wp-tiktok-feed"))))),["highlight","highlight-square"].includes(a.layout)&&(0,e.createElement)("div",{className:"options_group"},(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Highlight by tag","wp-tiktok-feed")),(0,e.createElement)("textarea",{placeholder:"tag1, tag2, tag3",value:a.highlight.tag,onChange:e=>n({highlight:{tag:e.target.value}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Highlight feed items with these tags","wp-tiktok-feed"))),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,t.__)("(This is a premium feature)","wp-tiktok-feed")))),(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Highlight by id","wp-tiktok-feed")),(0,e.createElement)("textarea",{placeholder:"101010110101010",onChange:e=>n({highlight:{id:e.target.value}}),value:a.highlight.id}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Highlight feed items with these ids","wp-tiktok-feed"))),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,t.__)("(This is a premium feature)","wp-tiktok-feed")))),(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Highlight by position","wp-tiktok-feed")),(0,e.createElement)("textarea",{placeholder:"1, 5, 7",onChange:e=>n({highlight:{position:e.target.value}}),value:a.highlight.position}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Highlight feed items with these positions","wp-tiktok-feed"))),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,t.__)("(This is a premium feature)","wp-tiktok-feed"))))),(0,e.createElement)("div",{className:"options_group"},(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Spacing","wp-tiktok-feed")),(0,e.createElement)("input",{type:"number",min:"0",max:"50",value:a.video.spacing,onChange:e=>n({video:{spacing:e.target.value}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Add spacing between videos","wp-tiktok-feed"))))))}function ee(){return ee=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)({}).hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},ee.apply(null,arguments)}const te=window.wp.blockEditor;function ae(t){const{label:a}=t;return(0,e.createElement)("div",{className:"ql-color-palette-picker",onClick:e=>{e.preventDefault()}},(0,e.createElement)(te.ColorPaletteControl,ee({},t,{showTitle:!!a})))}function ne(){const{currentFeedFormData:a,setCurrentFeedFormData:n}=W();return(0,e.createElement)("div",{className:"tiktok__modal__panel"},(0,e.createElement)("div",{className:"options_group qlttf-premium-field"},(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Box","wp-tiktok-feed")),(0,e.createElement)("input",{type:"checkbox",checked:!!a.box.display,onChange:e=>n({box:{display:!!e.target.checked}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Display the TikTok Feed inside a customizable box","wp-tiktok-feed"))),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,t.__)("(This is a premium feature)","wp-tiktok-feed"))))),(0,e.createElement)("div",{className:v()("options_group qlttf-premium-field",!a.box.display&&"disabled-field")},(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Padding","wp-tiktok-feed")),(0,e.createElement)("input",{type:"number",min:"0",max:"300",value:a.box.padding,onChange:e=>n({box:{padding:e.target.value}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Add padding to the box","wp-tiktok-feed"))),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,t.__)("(This is a premium feature)","wp-tiktok-feed")))),(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Radius","wp-tiktok-feed")),(0,e.createElement)("input",{min:"0",max:"1000",type:"number",value:a.box.radius,onChange:e=>n({box:{radius:e.target.value}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Add radius to the box","wp-tiktok-feed"))),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,t.__)("(This is a premium feature)","wp-tiktok-feed")))),(0,e.createElement)("div",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Background","wp-tiktok-feed")),(0,e.createElement)(ae,{value:a.box.background,color:a.box.background,onChange:e=>n({box:{background:e}}),disableCustomColors:!1,label:(0,t.__)("Change background color in box","wp-tiktok-feed")}),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,t.__)("(This is a premium feature)","wp-tiktok-feed")))),(0,e.createElement)("div",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Text color","wp-tiktok-feed")),(0,e.createElement)(ae,{value:a.box.text_color,color:a.box.text_color,onChange:e=>n({box:{text_color:e}}),disableCustomColors:!1,label:(0,t.__)("Change text color in box","wp-tiktok-feed")}),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,t.__)("(This is a premium feature)","wp-tiktok-feed"))))))}function re(){const{currentFeedFormData:a,setCurrentFeedFormData:n}=W();return(0,e.createElement)("div",{className:"tiktok__modal__panel qlttf-premium-field"},(0,e.createElement)("div",{className:"options_group"},(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Autoplay","wp-tiktok-feed")),(0,e.createElement)("input",{type:"checkbox",checked:!!a.carousel.autoplay,onChange:e=>n({carousel:{autoplay:!!e.target.checked}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Autoplay carousel items","wp-tiktok-feed")))),(0,e.createElement)("p",{className:v()("form-field",!a.carousel.autoplay&&"disabled-field")},(0,e.createElement)("label",null,(0,t.__)("Autoplay Interval","wp-tiktok-feed")),(0,e.createElement)("input",{type:"number",min:"1000",max:"300000",step:"100",value:a.carousel.autoplay_interval,onChange:e=>n({carousel:{autoplay_interval:e.target.value}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Moves carousel after a certain amount of time","wp-tiktok-feed"))))),(0,e.createElement)("div",{className:"options_group"},(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Navigation","wp-tiktok-feed")),(0,e.createElement)("input",{type:"checkbox",checked:!!a.carousel.navarrows,onChange:e=>n({carousel:{navarrows:!!e.target.checked}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Display navigation arrows","wp-tiktok-feed")))),(0,e.createElement)("div",{className:v()("form-field",!a.carousel.navarrows&&"disabled-field")},(0,e.createElement)("label",null,(0,t.__)("Navigation color","wp-tiktok-feed")),(0,e.createElement)(ae,{value:a.carousel.navarrows_color,color:a.carousel.navarrows_color,onChange:e=>n({carousel:{navarrows_color:e}}),disableCustomColors:!1,enableAlpha:!0,label:(0,t.__)("Change navigation arrows color","wp-tiktok-feed")}))),(0,e.createElement)("div",{className:"options_group"},(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Pagination","wp-tiktok-feed")),(0,e.createElement)("input",{type:"checkbox",checked:a.carousel.pagination,onChange:e=>n({carousel:{pagination:!!e.target.checked}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Display pagination dots","wp-tiktok-feed")))),(0,e.createElement)("div",{className:v()("form-field",!a.carousel.pagination&&"disabled-field")},(0,e.createElement)("label",null,(0,t.__)("Pagination color","wp-tiktok-feed")),(0,e.createElement)(ae,{value:a.carousel.pagination_color,color:a.carousel.pagination_color,onChange:e=>n({carousel:{pagination_color:e}}),disableCustomColors:!1,enableAlpha:!0,label:(0,t.__)("Change pagination dots color","wp-tiktok-feed")}))))}function le(){const{currentFeedFormData:a,setCurrentFeedFormData:n}=W();return(0,e.createElement)("div",{className:"tiktok__modal__panel"},(0,e.createElement)("div",{className:"options_group"},(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Lazy load","wp-tiktok-feed")),(0,e.createElement)("input",{type:"checkbox",checked:!!a.lazy,onChange:e=>n({lazy:!!e.target.checked})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Defers video lazy","wp-tiktok-feed"))))),(0,e.createElement)("div",{className:"options_group"},(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Mask","wp-tiktok-feed")),(0,e.createElement)("input",{type:"checkbox",checked:!!a.mask.display,onChange:e=>n({mask:{display:!!e.target.checked}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Display mask on hover","wp-tiktok-feed")))),(0,e.createElement)("div",{className:v()("form-field",!a.mask.display&&"disabled-field")},(0,e.createElement)("label",null,(0,t.__)("Mask background","wp-tiktok-feed")),(0,e.createElement)(ae,{value:a.mask.background,color:a.mask.background,onChange:e=>n({mask:{background:e}}),disableCustomColors:!1,enableAlpha:!0,label:(0,t.__)("Change background color in mask","wp-tiktok-feed")}))),(0,e.createElement)("div",{className:v()("options_group",!a.mask.display&&"disabled-field")},(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Likes","wp-tiktok-feed")),(0,e.createElement)("input",{type:"checkbox",checked:a.mask.likes_count,onChange:e=>n({mask:{likes_count:!!e.target.checked}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Display likes count in mask","wp-tiktok-feed")))),(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Comments","wp-tiktok-feed")),(0,e.createElement)("input",{type:"checkbox",checked:a.mask.comments_count,onChange:e=>n({mask:{comments_count:!!e.target.checked}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Display comments count in mask","wp-tiktok-feed"))))))}function ie(){const{currentFeedFormData:a,setCurrentFeedFormData:n}=W();return(0,e.createElement)("div",{className:"tiktok__modal__panel"},(0,e.createElement)("div",{className:"options_group qlttf-premium-field"},(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Display","wp-tiktok-feed")),(0,e.createElement)("input",{type:"checkbox",checked:!!a.card.display,onChange:e=>n({card:{display:!!e.target.checked}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Display card in video","wp-tiktok-feed"))),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,t.__)("(This is a premium feature)","wp-tiktok-feed"))))),(0,e.createElement)("div",{className:v()("options_group qlttf-premium-field",!a.card.display&&"disabled-field")},(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Radius","wp-tiktok-feed")),(0,e.createElement)("input",{type:"number",min:"0",max:"1000",value:a.card.radius,onChange:e=>n({card:{radius:e.target.value}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Add radius to the card","wp-tiktok-feed"))),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,t.__)("(This is a premium feature)","wp-tiktok-feed")))),(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Font size","wp-tiktok-feed")),(0,e.createElement)("input",{type:"number",min:"8",max:"36",value:a.card.font_size,onChange:e=>n({card:{font_size:e.target.value}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Change font size in cards","wp-tiktok-feed"))),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,t.__)("(This is a premium feature)","wp-tiktok-feed")))),(0,e.createElement)("div",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Background","wp-tiktok-feed")),(0,e.createElement)(ae,{value:a.card.background,color:a.card.background,onChange:e=>n({card:{background:e}}),disableCustomColors:!1,enableAlpha:!0,label:(0,t.__)("Change background color in cards","wp-tiktok-feed")}),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,t.__)("(This is a premium feature)","wp-tiktok-feed")))),(0,e.createElement)("div",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Background hover","wp-tiktok-feed")),(0,e.createElement)(ae,{value:a.card.background,color:a.card.background,onChange:e=>n({card:{background:e}}),disableCustomColors:!1,enableAlpha:!0,label:(0,t.__)("Change background color hover in cards","wp-tiktok-feed")}),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,t.__)("(This is a premium feature)","wp-tiktok-feed")))),(0,e.createElement)("div",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Text color","wp-tiktok-feed")),(0,e.createElement)(ae,{value:a.card.text_color,color:a.card.text_color,onChange:e=>n({card:{text_color:e}}),disableCustomColors:!1,enableAlpha:!0,label:(0,t.__)("Change text color","wp-tiktok-feed")}),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,t.__)("(This is a premium feature)","wp-tiktok-feed")))),(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Padding","wp-tiktok-feed")),(0,e.createElement)("input",{type:"number",min:"0",max:"20",value:a.card.padding,onChange:e=>n({card:{padding:e.target.value}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Add padding in cards","wp-tiktok-feed")))),(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Likes","wp-tiktok-feed")),(0,e.createElement)("input",{type:"checkbox",checked:!!a.card.likes_count,onChange:e=>n({card:{likes_count:!!e.target.checked}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Display likes count in cards","wp-tiktok-feed"))),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,t.__)("(This is a premium feature)","wp-tiktok-feed")))),(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Comments","wp-tiktok-feed")),(0,e.createElement)("input",{type:"checkbox",checked:!!a.card.comments_count,onChange:e=>n({card:{comments_count:!!e.target.checked}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Display comments count in cards","wp-tiktok-feed"))),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,t.__)("(This is a premium feature)","wp-tiktok-feed")))),(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Description","wp-tiktok-feed")),(0,e.createElement)("input",{type:"checkbox",checked:!!a.card.video_description,onChange:e=>n({card:{video_description:!!e.target.checked}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Display description in cards","wp-tiktok-feed"))),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,t.__)("(This is a premium feature)","wp-tiktok-feed")))),(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Length","wp-tiktok-feed")),(0,e.createElement)("input",{type:"number",min:"1",max:"100",value:a.card.max_word_count,onChange:e=>n({card:{max_word_count:e.target.value}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Limit the length of the description in the card","wp-tiktok-feed"))),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,t.__)("(This is a premium feature)","wp-tiktok-feed"))))))}function oe(){const{currentFeedFormData:a,setCurrentFeedFormData:n}=W();return(0,e.createElement)("div",{className:"tiktok__modal__panel"},(0,e.createElement)("div",{className:"options_group"},(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Display","wp-tiktok-feed")),(0,e.createElement)("input",{type:"checkbox",checked:!!a.modal.display,onChange:e=>n({modal:{display:!!e.target.checked}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Display Modal by clicking on video","wp-tiktok-feed"))))),(0,e.createElement)("div",{className:v()("options_group",!a.modal.display&&"disabled-field")},(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Profile","wp-tiktok-feed")),(0,e.createElement)("input",{type:"checkbox",checked:!!a.modal.profile,onChange:e=>n({modal:{profile:!!e.target.checked}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Display user profile or tag info","wp-tiktok-feed"))),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,t.__)("(This is a premium feature)","wp-tiktok-feed")))),(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Description","wp-tiktok-feed")),(0,e.createElement)("input",{type:"checkbox",checked:!!a.modal.video_description,onChange:e=>n({modal:{video_description:!!e.target.checked}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Display description in the sidebar","wp-tiktok-feed"))),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,t.__)("(This is a premium feature)","wp-tiktok-feed")))),(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Likes","wp-tiktok-feed")),(0,e.createElement)("input",{type:"checkbox",checked:!!a.modal.likes_count,onChange:e=>n({modal:{likes_count:!!e.target.checked}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Display likes count in sidebar","wp-tiktok-feed"))),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,t.__)("(This is a premium feature)","wp-tiktok-feed")))),(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Comments","wp-tiktok-feed")),(0,e.createElement)("input",{type:"checkbox",checked:!!a.modal.comments_count,onChange:e=>n({modal:{comments_count:!!e.target.checked}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Display comments count in sidebar","wp-tiktok-feed"))),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,t.__)("(This is a premium feature)","wp-tiktok-feed")))),(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Date","wp-tiktok-feed")),(0,e.createElement)("input",{type:"checkbox",checked:!!a.modal.date,onChange:e=>n({modal:{date:!!e.target.checked}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Display video date","wp-tiktok-feed"))),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,t.__)("(This is a premium feature)","wp-tiktok-feed")))),"account"===a.source&&(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,t.__)("Due to Tiktok limitations, controls and autoplay options are not available in account source.","wp-tiktok-feed")))),(0,e.createElement)("div",{className:v()((!a.modal.display||"account"===a.source)&&"disabled-field")},(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Controls","wp-tiktok-feed")),(0,e.createElement)("input",{type:"checkbox",checked:a.modal.controls,onChange:e=>n({modal:{controls:!!e.target.checked}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Display video controls","wp-tiktok-feed")))),(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Autoplay","wp-tiktok-feed")),(0,e.createElement)("input",{type:"checkbox",checked:a.modal.autoplay,onChange:e=>n({modal:{autoplay:!!e.target.checked}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Video autoplay when modal is open.","wp-tiktok-feed"))))),(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Text align","wp-tiktok-feed")),(0,e.createElement)("select",{value:a.modal.align||"",onChange:e=>n({modal:{align:e.target.value}})},[{name:"left",label:(0,t.__)("Left","wp-tiktok-feed")},{name:"center",label:(0,t.__)("Center","wp-tiktok-feed")},{name:"right",label:(0,t.__)("Right","wp-tiktok-feed")}].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,t.__)("Align description in sidebar","wp-tiktok-feed"))),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,t.__)("(This is a premium feature)","wp-tiktok-feed"))))))}function se(){const{currentFeedFormData:a,setCurrentFeedFormData:n}=W();return(0,e.createElement)("div",{className:"tiktok__modal__panel"},(0,e.createElement)("div",{className:"options_group"},(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Display","wp-tiktok-feed")),(0,e.createElement)("input",{type:"checkbox",checked:!!a.button.display,onChange:e=>n({button:{display:!!e.target.checked}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Display the button to open tikTok site link","wp-tiktok-feed")))),(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Text","wp-tiktok-feed")),(0,e.createElement)("input",{type:"text",placeholder:"TikTok",value:a.button.text,onChange:e=>n({button:{text:e.target.value}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Change button text","wp-tiktok-feed"))))),(0,e.createElement)("div",{className:v()("options_group",!a.button.display&&"disabled-field")},(0,e.createElement)("div",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Text color","wp-tiktok-feed")),(0,e.createElement)(ae,{value:a.button.text_color,color:a.button.text_color,onChange:e=>n({button:{text_color:e}}),disableCustomColors:!1,enableAlpha:!0,label:(0,t.__)("Change color text in button","wp-tiktok-feed")})),(0,e.createElement)("div",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Background","wp-tiktok-feed")),(0,e.createElement)(ae,{value:a.button.background,color:a.button.background,onChange:e=>n({button:{background:e}}),disableCustomColors:!1,enableAlpha:!0,label:(0,t.__)("Change background color in button","wp-tiktok-feed")})),(0,e.createElement)("div",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Background hover","wp-tiktok-feed")),(0,e.createElement)(ae,{value:a.button.background_hover,color:a.button.background_hover,onChange:e=>n({button:{background_hover:e}}),disableCustomColors:!1,enableAlpha:!0,label:(0,t.__)("Change background hover in button","wp-tiktok-feed")}))))}function ce(){const{currentFeedFormData:a,setCurrentFeedFormData:n}=W();return(0,e.createElement)("div",{className:"tiktok__modal__panel"},(0,e.createElement)("div",{className:"options_group qlttf-premium-field"},(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Display","wp-tiktok-feed")),(0,e.createElement)("input",{type:"checkbox",checked:!!a.button_load.display,onChange:e=>n({button_load:{display:!!e.target.checked}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Display the button to load more feeds","wp-tiktok-feed")))),(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Text","wp-tiktok-feed")),(0,e.createElement)("input",{type:"text",placeholder:"TikTok",value:a.button_load.text,onChange:e=>n({button_load:{text:e.target.value}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Change button text","wp-tiktok-feed"))))),(0,e.createElement)("div",{className:v()("options_group",!a.button_load.display&&"disabled-field")},(0,e.createElement)("div",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Text color","wp-tiktok-feed")),(0,e.createElement)(ae,{value:a.button_load.text_color,color:a.button_load.text_color,onChange:e=>n({button_load:{text_color:e}}),disableCustomColors:!1,enableAlpha:!0,label:(0,t.__)("Change color text in button","wp-tiktok-feed")})),(0,e.createElement)("div",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Background","wp-tiktok-feed")),(0,e.createElement)(ae,{value:a.button_load.background,color:a.button_load.background,onChange:e=>n({button_load:{background:e}}),disableCustomColors:!1,enableAlpha:!0,label:(0,t.__)("Change background color in button","wp-tiktok-feed")})),(0,e.createElement)("div",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Background hover","wp-tiktok-feed")),(0,e.createElement)(ae,{value:a.button_load.background_hover,color:a.button_load.background_hover,onChange:e=>n({button_load:{background_hover:e}}),disableCustomColors:!1,enableAlpha:!0,label:(0,t.__)("Change background hover in button","wp-tiktok-feed")}))))}var ue=a(736),de=a.n(ue);class me extends e.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(){this.frame=wp.media({button:{text:(0,t.__)("Select","wp-tiktok-feed"),close:!1},states:[new wp.media.controller.Library({title:(0,t.__)("Select logo","wp-tiktok-feed"),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),r=!!parseInt((a.props.logo||{}).flex_height,10),l=e.get("width"),i=e.get("height");let o=parseInt((a.props.logo||{}).width,10),s=parseInt((a.props.logo||{}).height,10);const c=o/s,u=o,d=s;let m,p,f;return t.set("canSkipCrop",!a.mustBeCropped(n,r,o,s,l,i)),l/i>c?(s=i,o=s*c):(o=l,s=o/c),m=(l-o)/2,p=(i-s)/2,f={handles:!0,keys:!0,instance:!0,persistent:!0,imageWidth:l,imageHeight:i,minWidth:u>o?o:u,minHeight:d>s?s:d,x1:m,y1:p,x2:o+m,y2:s+p},!1===r&&!1===n&&(f.aspectRatio=o+":"+s),!0===r&&(delete f.minHeight,f.maxWidth=l),!0===n&&(delete f.minWidth,f.maxHeight=i),f}mustBeCropped(e,t,a,n,r,l){return!(!0===e&&!0===t||!0===e&&n===l||!0===t&&a===r||a===r&&n===l||r<=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",ee({className:v()("wp-tiktok-feed-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:"wp-tiktok-feed-control-media-upload__attachment__actions"},this.props.value?.attachment_id||this.props.value?.url?(0,e.createElement)(e.Fragment,null,(0,e.createElement)(w.Button,{disabled:!(Number(this.props.value?.attachment_id)>1),onClick:()=>this.props.onChange()},(0,t.__)("Remove","wp-tiktok-feed")),(0,e.createElement)(w.Button,{isBordered:!0,onClick:()=>this.openFrame()},this.props.filledLabel||(0,t.__)("Change","wp-tiktok-feed"))):(0,e.createElement)(w.Button,{className:v()("wp-tiktok-feed-control-media-upload__attachment__upload","upload_image_button button"),onClick:()=>this.openFrame(),style:{display:"inline-block"}},this.props.emptyLabel||(0,t.__)("Select image","wp-tiktok-feed"))))}}me.renderingConfig={hasRevertButton:!1},me.propTypes={value:de().object,onChange:de().func};const pe=me;function fe(){const{currentFeedFormData:a,setCurrentFeedFormData:n}=W();return(0,e.createElement)("div",{className:"tiktok__modal__panel"},(0,e.createElement)("div",{className:"qlttf-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,t.__)("Display","wp-tiktok-feed")),(0,e.createElement)("input",{type:"checkbox",checked:!!a.profile.display,onChange:e=>n({profile:{display:!!e.target.checked}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Display user profile or tag info","wp-tiktok-feed")," ")),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,t.__)("(This is a premium feature)","wp-tiktok-feed"))))),(0,e.createElement)("div",{className:v()("options_group",!a.profile.display&&"disabled-field")},(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Nickname","wp-tiktok-feed")),(0,e.createElement)("input",{type:"text",placeholder:"Nickname",value:a.profile.nickname,onChange:e=>n({profile:{nickname:e.target.value}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Profile nickname","wp-tiktok-feed"))),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,t.__)("(This is a premium feature)","wp-tiktok-feed")))),(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Username","wp-tiktok-feed")),(0,e.createElement)("input",{type:"text",value:a.profile.username,onChange:e=>n({profile:{username:e.target.value}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Profile username","wp-tiktok-feed"))),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,t.__)("(This is a premium feature)","wp-tiktok-feed")))),(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Link Text","wp-tiktok-feed")),(0,e.createElement)("input",{type:"text",placeholder:"TikTok",value:a.profile.link_text,onChange:e=>n({profile:{link_text:e.target.value}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Link text here","wp-tiktok-feed"))),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,t.__)("(This is a premium feature)","wp-tiktok-feed")))),(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Biography","wp-tiktok-feed")),(0,e.createElement)("input",{type:"text",value:a.profile.biography,onChange:e=>n({profile:{biography:e.target.value}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Profile description here","wp-tiktok-feed"))),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,t.__)("(This is a premium feature)","wp-tiktok-feed")))))),(0,e.createElement)("div",{className:v()("attachment-info options_group",!a.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,t.__)("Feed","wp-tiktok-feed"),":"),a.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:a.profile.avatar?a.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)(pe,{onChange:e=>{n({profile:{avatar:e.url}})}}),(0,e.createElement)("button",{onClick:()=>n({profile:{avatar:""}}),className:"remove_image_button button",disabled:!a.profile.avatar},"×"))))))))}function he(t){const{currentTab:a}=W();switch(a){case"general":return(0,e.createElement)($,null);case"profile":return(0,e.createElement)(fe,null);case"box":return(0,e.createElement)(ne,null);case"carousel":return(0,e.createElement)(re,null);case"video":return(0,e.createElement)(le,null);case"video-card":return(0,e.createElement)(ie,null);case"video-modal":return(0,e.createElement)(oe,null);case"button":return(0,e.createElement)(se,null);case"button-load-more":return(0,e.createElement)(ce,null);default:return a}}function ge(){const{setCurrentTab:t,currentTab:a,currentFeedFormData:n}=W();return(0,e.useEffect)(()=>{"carousel"!==a||["carousel","carousel-vertical"].includes(n.layout)||t("general"),"button-load-more"===a&&"trending"===n.source&&t("general")},[a,n.layout]),(0,e.createElement)("ul",{className:"tiktok-modal__tabs"},z.map(({name:r,label:l})=>"carousel"!==r||["carousel","carousel-vertical"].includes(n.layout)?"button-load-more"===r&&"trending"===n.source?null:(0,e.createElement)("li",{key:r,className:v()("media-modal-tab",r==a&&"active")},(0,e.createElement)("a",{href:"#",onClick:e=>{e.preventDefault(),t(r)}},(0,e.createElement)("span",null,l))):null).filter(e=>!!e))}function ke({isOpen:t,setIsOpen:a}){const{currentFeedIndex:n,currentFeedFormData:r,feeds:l,createFeed:i,editFeed:o}=W(),[s,c]=(0,e.useState)(!1),u=l?.[n]?.id,d=void 0===u;return(0,e.createElement)("div",null,(0,e.createElement)("form",{onSubmit:async e=>{let t;e.preventDefault(),c(!0),t=d?await i(r):await o(r),c(!1),t&&a(!1)}},(0,e.createElement)("div",{className:"media-modal-content"},(0,e.createElement)("div",{className:"edit-attachment-frame mode-select"},(0,e.createElement)(K,{isOpen:t,setIsOpen:a,isNewFeed:d,currentFeedId:u}),(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)(ge,null),(0,e.createElement)("div",{style:{height:"100%",overflowX:"hidden"}},(0,e.createElement)(he,null)))))),(0,e.createElement)(Z,{isOpen:t,setIsOpen:a,isLoading:s,setIsLoading:c})))))}const _e=(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"50px",height:"50px",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24"},(0,e.createElement)("path",{fill:"currentColor",d:"M24.01 6.797a1.341 1.341 0 0 0-1.034-.487h-.035h.002h-3.441l.954-4.643A1.4 1.4 0 0 0 20.188.48l.002.003a1.345 1.345 0 0 0-1.036-.486h-.033h.002c-.9.029-1.643.665-1.835 1.51l-.003.013l-.259 1.262c-.008.032-.022.062-.029.094l-.708 3.435h-5.793l.954-4.643a1.4 1.4 0 0 0-.268-1.187l.002.003a1.345 1.345 0 0 0-1.036-.486h-.033h.002c-.9.029-1.643.665-1.835 1.51l-.003.013l-.27 1.313c0 .015-.01.028-.013.042l-.702 3.435H3.547c-.9.029-1.643.664-1.836 1.509l-.003.013a1.4 1.4 0 0 0 .267 1.188l-.002-.003c.248.298.619.487 1.035.487h.034h-.002h3.597l-1.022 4.97H1.864c-.9.029-1.643.665-1.836 1.51l-.003.013a1.404 1.404 0 0 0 .267 1.185L.29 17.18c.249.298.62.487 1.036.487h.034h-.002h3.597l-.96 4.668a1.4 1.4 0 0 0 .268 1.187l-.002-.003c.249.298.62.487 1.036.487h.033h-.002a1.947 1.947 0 0 0 1.836-1.51l.003-.013l.99-4.814h5.796l-.96 4.668a1.4 1.4 0 0 0 .268 1.187l-.002-.003c.249.298.62.486 1.036.486h.033h-.002a1.945 1.945 0 0 0 1.835-1.51l.003-.013l.99-4.814h3.6a1.947 1.947 0 0 0 1.836-1.509l.003-.013a1.388 1.388 0 0 0-.263-1.188l.002.003a1.348 1.348 0 0 0-1.037-.487h-.036h.002h-3.447l1.022-4.97h3.6a1.947 1.947 0 0 0 1.836-1.51l.003-.013a1.401 1.401 0 0 0-.268-1.188l.002.003zM8.819 14.472l1.022-4.97h5.796l-1.022 4.97z"})),Ee=(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"50px",height:"50px",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24"},(0,e.createElement)("path",{fill:"currentColor",d:"M19.321 5.562a5.124 5.124 0 0 1-.443-.258a6.228 6.228 0 0 1-1.137-.966c-.849-.971-1.166-1.956-1.282-2.645h.004c-.097-.573-.057-.943-.05-.943h-3.865v14.943c0 .2 0 .399-.008.595c0 .024-.003.046-.004.073c0 .01 0 .022-.003.033v.009a3.28 3.28 0 0 1-1.65 2.604a3.226 3.226 0 0 1-1.6.422c-1.8 0-3.26-1.468-3.26-3.281c0-1.814 1.46-3.282 3.26-3.282c.341 0 .68.054 1.004.16l.005-3.936a7.178 7.178 0 0 0-5.532 1.62a7.583 7.583 0 0 0-1.655 2.04c-.163.281-.779 1.412-.853 3.246c-.047 1.04.266 2.12.415 2.565v.01c.093.262.457 1.158 1.049 1.913a7.856 7.856 0 0 0 1.674 1.58v-.01l.009.01c1.87 1.27 3.945 1.187 3.945 1.187c.359-.015 1.562 0 2.928-.647c1.515-.718 2.377-1.787 2.377-1.787a7.43 7.43 0 0 0 1.296-2.153c.35-.92.466-2.022.466-2.462V8.273c.047.028.672.441.672.441s.9.577 2.303.952c1.006.267 2.363.324 2.363.324V6.153c-.475.052-1.44-.098-2.429-.59Z"})),be=(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"50px",height:"50px",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24"},(0,e.createElement)("path",{fill:"currentColor",d:"M20 22H4v-2a5 5 0 0 1 5-5h6a5 5 0 0 1 5 5v2zm-8-9a6 6 0 1 1 0-12a6 6 0 0 1 0 12z"}));function ve({setIsOpen:a}){const[n,r]=(0,e.useState)({currentFeedId:null,isLoading:!1}),{createSuccessNotice:l,createErrorNotice:i,createWarningNotice:o}=(0,I.useDispatch)(R.store),{feeds:s,hasResolvedFeeds:c,deleteFeed:u}=(0,D.useFeedsEntities)(),{accounts:d,hasAccounts:m}=(0,D.useAccountsEntities)(),{setCurrentFeedIndex:p}=W();return c?(0,e.createElement)("div",{className:"welcome-tab wrap about-wrap full-width-layout"},(0,e.createElement)("div",null,(0,e.createElement)("button",{disabled:!m&&!window?.qlttf_pro_backend,className:"button button-primary",onClick:()=>{p(),a(!0)}},(0,t.__)("+ Feed","wp-tiktok-feed")),!m&&(0,e.createElement)("p",null,(0,t.__)("Go to the Accounts tab and create your access token.","wp-tiktok-feed")),(0,e.createElement)(j,null,(0,e.createElement)("thead",null,(0,e.createElement)("tr",null,(0,e.createElement)("th",null,(0,t.__)("Image","wp-tiktok-feed")),(0,e.createElement)("th",null,(0,t.__)("Source","wp-tiktok-feed")),(0,e.createElement)("th",null,(0,t.__)("Name","wp-tiktok-feed")),(0,e.createElement)("th",null,(0,t.__)("Layout","wp-tiktok-feed")),(0,e.createElement)("th",null,(0,t.__)("Shortcode","wp-tiktok-feed")),(0,e.createElement)("th",null,(0,t.__)("Actions","wp-tiktok-feed")))),(0,e.createElement)("tbody",null,s?.map((o,s)=>{let c="",m="";switch(o.source){case"username":c=be,m=o.username;break;case"hashtag":c=_e,m=o.hashtag;break;case"trending":c=Ee;break;default:c=d.find(e=>e.open_id===o.open_id)?.avatar,m=d.find(e=>e.open_id===o.open_id)?.username}return(0,e.createElement)("tr",{key:s},(0,e.createElement)("td",{width:"1%"},"account"===o.source?(0,e.createElement)("img",{className:"avatar",src:c||"http://2.gravatar.com/avatar/b642b4217b34b1e8d3bd915fc65c4452?s=150&d=mm&r=g"}):c),(0,e.createElement)("td",{width:"1%"},o.source),(0,e.createElement)("td",{width:"1%"},m),(0,e.createElement)("td",null,o.layout),(0,e.createElement)("td",null,(0,e.createElement)("input",{type:"text",value:`[tiktok-feed id="${o.id}"]`,readOnly:!0}),(0,e.createElement)("button",{className:"button button-secondary",onClick:async()=>{await k(`[tiktok-feed id="${o.id}"]`)?l((0,t.__)("Feed shortcode copied to clipboard.","wp-tiktok-feed"),{id:1,type:"snackbar"}):i((0,t.__)("Can't copy the refresh token.","wp-tiktok-feed"),{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,t.__)("Edit feed","wp-tiktok-feed"),onClick:()=>{p(s),a(!0)}},(0,t.__)("Edit","wp-tiktok-feed")),(0,e.createElement)("button",{className:"button button-secondary",title:(0,t.__)("Clear feed cache","wp-tiktok-feed"),onClick:async()=>{confirm((0,t.__)("You are about to reset the cache of this feed.","wp-tiktok-feed"))&&(r({isloading:!0,currentFeedId:o.id}),await(0,D.clearFeedCache)({method:"POST",data:{feedSettings:o}}),r({isLoading:!1}))}},(0,e.createElement)("i",{className:"dashicons dashicons dashicons-update"}),(0,t.__)("Cache","wp-tiktok-feed")),(0,e.createElement)("button",{className:"button button-secondary",title:(0,t.__)("Delete feed","wp-tiktok-feed"),onClick:async()=>{confirm((0,t.__)("You are about to delele this feed.","wp-tiktok-feed"))&&(r({isloading:!0,currentFeedId:o.id}),await u(o),r({isLoading:!1}))}},(0,e.createElement)("i",{className:"dashicons dashicons-trash"})),n&&n.currentFeedId===o.id&&(0,e.createElement)("span",{style:{visibility:"visible",position:"absolute"},className:"spinner"})))}))))):(0,e.createElement)(M,null)}const ye=()=>{const{Fill:t}=S(),[a,n]=(0,e.useState)(!1);return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(t.Header,null,(0,e.createElement)(E,null)),(0,e.createElement)(t.Navigation,null,(0,e.createElement)(y,null)),(0,e.createElement)(t.Content,null,(0,e.createElement)(Q,null,(0,e.createElement)(ve,{isOpen:a,setIsOpen:n}),(0,e.createElement)(O,{show:a,onClose:()=>n(!1),__experimentalHideHeader:!0},(0,e.createElement)(ke,{isOpen:a,setIsOpen:n})))))},we=()=>{const{Fill:a}=S();return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(a.Header,null,(0,e.createElement)(E,null)),(0,e.createElement)(a.Navigation,null,(0,e.createElement)(y,null)),(0,e.createElement)(a.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,t.__)("Premium","wp-tiktok-feed")),(0,e.createElement)("div",{className:"about-description"},(0,t.__)("Unlock the power of our premium TikTok Feed plugin which allows you to choose between six beautiful layouts and tone of customizing options.","wp-tiktok-feed")),(0,e.createElement)("br",null),(0,e.createElement)(P,{href:"https://quadlayers.com/products/tiktok-feed/?utm_source=qlttf_plugin&utm_medium=admin_tab&utm_campaign=premium_upgrade&utm_content=purchase_button",target:"_blank"},(0,t.__)("Purchase Now","wp-tiktok-feed")),(0,e.createElement)(P,{isSecondary:!0,href:"https://quadlayers.com/demo/tiktok-feed/?utm_source=qlttf_plugin&utm_medium=admin_tab&utm_campaign=demo&utm_content=demo_button",target:"_blank"},(0,t.__)("View demo","wp-tiktok-feed"))),(0,e.createElement)("hr",null),(0,e.createElement)("div",{className:"feature-section"},(0,e.createElement)("h3",null,(0,t.__)("Download videos","wp-tiktok-feed")),(0,e.createElement)("p",null,(0,t.__)("Include a download button inside the video pop up that allows your users to download TikTok feed videos directly from your site.","wp-tiktok-feed"))),(0,e.createElement)("div",{className:"feature-section"},(0,e.createElement)("h3",null,(0,t.__)("Customize Videos display","wp-tiktok-feed")),(0,e.createElement)("p",null,(0,t.__)("Customize the colors of the TikTok Feed including custom background, text, buttons background and mouseover effects, Videos padding, and a rounded border. It also includes the user or tag profile info in the header of the box.","wp-tiktok-feed"))),(0,e.createElement)("div",{className:"feature-section"},(0,e.createElement)("h3",null,(0,t.__)("Card and box Videos display","wp-tiktok-feed")),(0,e.createElement)("p",null,(0,t.__)("TikTok Feed allows to display videos on a customized box. Or display videos into cards with video data in it.ed including custom background, text, buttons background and mouseover effects, Videos padding, and a rounded border.","wp-tiktok-feed"))),(0,e.createElement)("div",{className:"feature-section"},(0,e.createElement)("h3",null,(0,t.__)("Load more button","wp-tiktok-feed")),(0,e.createElement)("p",null,(0,t.__)("Allow your users to load more videos in the gallery providing an improved user experience.","wp-tiktok-feed")))),(0,e.createElement)("div",{className:"column"},(0,e.createElement)("img",{src:g("/assets/backend/img/tiktok-feed.png")}))),(0,e.createElement)("div",{className:"has-2-columns is-wider-left"},(0,e.createElement)("div",{className:"column"},(0,e.createElement)("img",{src:g("/assets/backend/img/tiktok-feed-highlight.png")})),(0,e.createElement)("div",{className:"column"},(0,e.createElement)("br",null),(0,e.createElement)("div",{className:"welcome-header"},(0,e.createElement)("h1",null,(0,t.__)("Video cards","wp-tiktok-feed")),(0,e.createElement)("div",{className:"about-description"},(0,t.__)("Wrap TikTok feed videos inside a box and display descriptions.","wp-tiktok-feed"))),(0,e.createElement)("hr",null),(0,e.createElement)("div",{className:"feature-section"},(0,e.createElement)("p",null,(0,t.__)("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.","wp-tiktok-feed"))))),(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,t.__)("Layouts","wp-tiktok-feed")),(0,e.createElement)("div",{className:"about-description"},(0,t.__)("Unlock the power of the carousel and highlight layouts that allows you to display the TikTok Feeds in a grid that supports items of variable size.","wp-tiktok-feed"))),(0,e.createElement)("hr",null),(0,e.createElement)("div",{className:"feature-section"},(0,e.createElement)("h3",null,(0,t.__)("Boxed layout","wp-tiktok-feed")),(0,e.createElement)("p",null,(0,t.__)("This option wraps the feed gallery inside a box where you can include the profile user info, tag info or displayed trend data.","wp-tiktok-feed"))),(0,e.createElement)("div",{className:"feature-section"},(0,e.createElement)("h3",null,(0,t.__)("Carousel layout","wp-tiktok-feed")),(0,e.createElement)("p",null,(0,t.__)("The carousel layout displays multiple videos inside an animated carousel with pagination and navigation controls. Including two alternative size for corousel: square and vertical options.","wp-tiktok-feed"))),(0,e.createElement)("div",{className:"feature-section"},(0,e.createElement)("h3",null,(0,t.__)("Highlight layout","wp-tiktok-feed")),(0,e.createElement)("p",null,(0,t.__)("The highlight layout is a grid that allows you to stand out some videos with two or three columns width size. Allowing highlight by tag, position or video id.","wp-tiktok-feed")))),(0,e.createElement)("div",{className:"column"},(0,e.createElement)("img",{src:g("/assets/backend/img/tiktok-feed-carousel-layout.png")}))))))},Ae=()=>{const{settings:a,hasResolvedSettings:n,saveSettings:r}=(0,D.useSettingsEntities)(),[l,i]=(0,e.useState)(!1),[o,s]=(0,e.useState)({}),c=e=>{const t=h(o,e);s(t)};return(0,e.useEffect)(()=>{n&&s(a)},[n,a]),n?(0,e.createElement)("div",{className:"wrap about-wrap full-width-layout"},(0,e.createElement)("form",{id:"qlttf-save-settings",onSubmit:async e=>{e.preventDefault(),i(!0),await r(o),i(!1)}},(0,e.createElement)(j,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,t.__)("Remove data","wp-tiktok-feed")),(0,e.createElement)("td",null,(0,e.createElement)("input",{type:"checkbox",checked:!!o.flush,onChange:e=>c({flush:!!e.target.checked})}),(0,e.createElement)("span",{className:"description"},(0,t.__)("Check this box to remove all data related to this plugin on uninstall.","wp-tiktok-feed")))),(0,e.createElement)("tr",null,(0,e.createElement)("th",null,(0,t.__)("Replace loader","wp-tiktok-feed")),(0,e.createElement)("td",null,(0,e.createElement)("div",{style:{display:"flex"}},(0,e.createElement)(pe,{onChange:e=>{c({spinner_image_url:e.url})}}),(0,e.createElement)("button",{className:"button button-secondary",onClick:()=>{c({spinner_image_url:""})},disabled:!o.spinner_image_url},(0,t.__)("Reset Spinner","wp-tiktok-feed"))),!o.spinner_image_url&&(0,e.createElement)("p",null,(0,e.createElement)("span",{className:"description"},(0,t.__)("Select an image from media library to replace the default loader icon.","wp-tiktok-feed")))),!!o.spinner_image_url&&(0,e.createElement)("td",{rowSpan:"2"},(0,e.createElement)("div",{className:"tiktok-feed-spinner"},(0,e.createElement)("img",{src:o.spinner_image_url}))))))))),(0,e.createElement)("tfoot",null,(0,e.createElement)("tr",null,(0,e.createElement)("td",{colSpan:"3"},(0,e.createElement)("span",{className:"spinner"}),(0,e.createElement)("button",{disabled:(0,d.isEqual)(a,o),type:"submit",className:"button button-primary secondary"},(0,t.__)("Save","wp-tiktok-feed")),l&&(0,e.createElement)("span",{style:{visibility:"visible"},className:"spinner"}))))))):(0,e.createElement)(M,null)},Ne=()=>{const{Fill:t}=S();return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(t.Header,null,(0,e.createElement)(E,null)),(0,e.createElement)(t.Navigation,null,(0,e.createElement)(y,null)),(0,e.createElement)(t.Content,null,(0,e.createElement)(Ae,null)))};var Se=a(405);const xe=()=>{const{Fill:t}=S();return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(t.Header,null,(0,e.createElement)(E,null)),(0,e.createElement)(t.Navigation,null,(0,e.createElement)(y,null)),(0,e.createElement)(t.Content,null,(0,e.createElement)(Se.List,{authorName:"quadlayers",columns:"2"})))},{tabParam:Ce,setBrowserTabParam:Pe}=(()=>{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())}}})(),Te=(0,e.createContext)({}),Fe=()=>(0,e.useContext)(Te),Oe=(e,t)=>"SET_CURRENT_TAB"===t.type?{...e,...t.payload,prevTab:e.currentTab}:e,Ie=({children:a})=>{const n=(0,l.applyFilters)("tiktok.app.tabs",[{label:(0,t.__)("Welcome","wp-tiktok-feed"),name:"welcome",content:F},{label:(0,t.__)("Accounts","wp-tiktok-feed"),name:"accounts",content:H},{label:(0,t.__)("Feeds","wp-tiktok-feed"),name:"feeds",content:ye},{label:(0,t.__)("Settings","wp-tiktok-feed"),name:"settings",href:"settings",content:Ne},{label:(0,t.__)("Premium","wp-tiktok-feed"),name:"premium",content:we},{label:(0,t.__)("Suggestions","wp-tiktok-feed"),name:"suggestions",content:xe}]),[r,i]=(0,e.useReducer)(Oe,(({defaultTab:e})=>({currentTab:Ce||e,currentTabSection:"",prevTab:null,prevSubTab:null,user:!1}))({defaultTab:n[0].name}));return(0,e.useEffect)(()=>{const e=Array.from(document.querySelectorAll("#toplevel_page_qlttf > ul > li")),t=r.currentTab[0].toUpperCase()+r.currentTab.slice(1).toLowerCase();e.map(e=>e.innerText===t?e?.classList.add("current"):e?.classList.remove("current"))},[r.currentTab]),(0,e.createElement)(Te.Provider,{value:{...r,setCurrentTab:e=>{r.currentTab!=e&&(Pe(e),i({type:"SET_CURRENT_TAB",payload:{currentTab:e}}))},tabs:n}},a)},Re=(Te.Consumer,()=>{const{currentTab:t,tabs:a}=Fe(),n=a.find(({name:e})=>e==t);if(!n)return(0,e.createElement)(e.Fragment,null,t);const r=n.content;return(0,e.createElement)(r,null)}),De=({children:t})=>(0,e.createElement)(x,null,(0,e.createElement)(C,null,({Slot:a,containerRef:n})=>(0,e.createElement)("div",{ref:n},(0,e.createElement)("header",null,(0,e.createElement)(a.Header,null)),(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))),Me=()=>(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Ie,null,(0,e.createElement)(De,null,(0,e.createElement)(Re,null))),(0,e.createElement)(r.EditorSnackbars,null));_(()=>{const t=document.getElementById("wpbody-content");(0,e.render)((0,e.createElement)(Me,null),t)})})(),(window.tiktok=window.tiktok||{}).backend=n})();
  • wp-tiktok-feed/tags/4.6.4/build/store/js/index.asset.php

    r3314371 r3416701  
    1 <?php return array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-data', 'wp-i18n', 'wp-notices'), 'version' => 'b703b47f1f51930d10d6');
     1<?php return array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-data', 'wp-i18n', 'wp-notices'), 'version' => '10dd3c1dcc0da389a49b');
  • wp-tiktok-feed/tags/4.6.4/build/store/js/index.js

    r3314371 r3416701  
    1 (()=>{"use strict";var e={n:t=>{var s=t&&t.__esModule?()=>t.default:()=>t;return e.d(s,{a:s}),s},d:(t,s)=>{for(var c in s)e.o(s,c)&&!e.o(t,c)&&Object.defineProperty(t,c,{enumerable:!0,get:s[c]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{FIRST_WP_VERSION_WITH_THUNK_SUPPORT:()=>w,INITIAL_STATE:()=>d,STORE_NAME:()=>i,WP_VERSION:()=>v,actions:()=>c,applyThunkMiddleware:()=>O,clearFeedCache:()=>T,fetchRestApiAccounts:()=>m,fetchRestApiFeeds:()=>F,fetchRestApiSettings:()=>k,fetchRestApiUserProfile:()=>A,isVersionLessThan:()=>N,reducer:()=>s,resolvers:()=>o,selectors:()=>n,storeConfig:()=>J,useAccountsEntities:()=>b,useFeedsEntities:()=>R,useSettingsEntities:()=>E});var s={};e.r(s),e.d(s,{accounts:()=>u,default:()=>p,feeds:()=>l,settings:()=>h});var c={};e.r(c),e.d(c,{createAccount:()=>C,createFeed:()=>U,deleteAccount:()=>D,deleteFeed:()=>q,editFeed:()=>M,saveSettings:()=>L,setAccounts:()=>P,setFeeds:()=>I,setSettings:()=>j});var n={};e.r(n),e.d(n,{getAccounts:()=>V,getFeeds:()=>W,getSettings:()=>G});var o={};e.r(o),e.d(o,{getAccounts:()=>H,getFeeds:()=>$,getSettings:()=>x});const a=window.wp.i18n,r=window.wp.data,i="quadlayers/tiktok",d={accounts:[],feeds:[],settings:{flush:!1,spinner_id:0}};function u(e=d.accounts,t){return"SET_ACCOUNTS"===t.type?t.payload:e}function l(e=d.feeds,t){return"SET_FEEDS"===t.type?t.payload:e}function h(e=d.settings,t){return"SET_SETTINGS"===t.type?t.payload:e}const p=(0,r.combineReducers)({accounts:u,feeds:l,settings:h}),g=(window.lodash,window.wp.notices),S=window.wp.apiFetch;var f=e.n(S);async function y(e){return await f()(e).then(e=>{if(e.code)throw new Error(`${e.code}: ${e?.message||"Unknown"}`);return e}).catch(e=>{throw new Error(JSON.stringify(e))})}const _=qlttf_store_routes,{WP_VERSION:v}=qlttf_store,w="6.0",F=({method:e,data:t}={})=>y({path:_.feeds,method:e,data:t});function R(){const{createFeed:e,editFeed:t,deleteFeed:s}=(0,r.useDispatch)(i),{feeds:c,isResolvingFeeds:n,hasResolvedFeeds:o}=(0,r.useSelect)(e=>{const{isResolving:t,hasFinishedResolution:s,getFeeds:c}=e(i);return{feeds:c(),isResolvingFeeds:t("getFeeds"),hasResolvedFeeds:s("getFeeds")}},[]);return{feeds:c,isResolvingFeeds:n,hasResolvedFeeds:o,hasFeeds:!(!o||!Object.keys(c)?.length),createFeed:e,editFeed:t,deleteFeed:s}}function T({method:e,data:t}){return y({path:_.cache,method:e,data:t})}const m=({method:e,data:t}={})=>y({path:_.accounts,method:e,data:t}),A=({method:e,data:t})=>y({path:`${_.profile.account}`,method:e,data:t});function b(){const{createAccount:e,deleteAccount:t}=(0,r.useDispatch)(i),{accounts:s,isResolvingAccounts:c,hasResolvedAccounts:n}=(0,r.useSelect)(e=>{const{isResolving:t,hasFinishedResolution:s,getAccounts:c}=e(i);return{accounts:c(),isResolvingAccounts:t("getAccounts"),hasResolvedAccounts:s("getAccounts")}},[]);return{accounts:s,isResolvingAccounts:c,hasResolvedAccounts:n,hasAccounts:!(!n||!Object.keys(s)?.length),createAccount:e,deleteAccount:t}}const k=({method:e,data:t}={})=>y({path:_.settings,method:e,data:t});function E(){const{saveSettings:e}=(0,r.useDispatch)(i),{settings:t,isResolvingSettings:s,hasResolvedSettings:c}=(0,r.useSelect)(e=>{const{isResolving:t,hasFinishedResolution:s,getSettings:c}=e(i);return{settings:c(),isResolvingSettings:t("getSettings"),hasResolvedSettings:s("getSettings")}},[]);return{settings:t,isResolvingSettings:s,hasResolvedSettings:c,hasSettings:!(!c||!Object.keys(t)?.length),saveSettings:e}}const N=(e,t)=>{const s=e.split(".").map(Number),c=t.split(".").map(Number);for(let e=0;e<c.length;e++){if(s[e]<c[e])return!0;if(s[e]>c[e])return!1}return!1},O=e=>{const t=e.instantiate;return e.instantiate=e=>{const s=t(e);if(!s.store||!s.store.dispatch)throw new Error(__("The created instance does not contain a valid store.","wp-tiktok-feed"));const c=s.store.dispatch,n=((e,t)=>({registry:t,get dispatch(){return Object.assign(t=>e.store.dispatch(t),e.getActions())},get select(){return Object.assign(t=>t(e.store.__unstableOriginalGetState()),e.getSelectors())},get resolveSelect(){return e.getResolveSelectors()}}))(s,e);return s.store.dispatch=((e,t)=>s=>"function"==typeof s?s(e):t(s))(n,c),s},e},P=async e=>({type:"SET_ACCOUNTS",payload:await Promise.all(e?.map(async e=>{try{const t=await A({method:"POST",data:{feedSettings:{open_id:e.open_id}}});return{...e,...t}}catch(t){return console.error(t),e}}))}),I=e=>({type:"SET_FEEDS",payload:e}),j=e=>({type:"SET_SETTINGS",payload:e}),C=e=>async({registry:t,dispatch:s,select:c,resolveSelect:n})=>{const o=c.getAccounts(),r=await m({method:"POST",data:e});return r?.code?(t.dispatch(g.store).createSuccessNotice(sprintf((0,a.__)("%s: %s"),r.code,r.message),{type:"snackbar"}),!1):(o.push(r),s.setAccounts([...o]),t.dispatch(g.store).createSuccessNotice((0,a.__)("The account has been created successfully.","wp-tiktok-feed"),{type:"snackbar"}),!0)},D=(e,t)=>async({registry:s,dispatch:c,select:n,resolveSelect:o})=>{const r=n.getAccounts(),i=await m({method:"DELETE",data:{open_id:e}});if(i?.code)return s.dispatch(g.store).createSuccessNotice(sprintf((0,a.__)("%s: %s"),i.code,i.message),{type:"snackbar"}),!1;const d=r.filter(t=>t.open_id!==e);return c.setAccounts([...d]),s.dispatch(g.store).createSuccessNotice(sprintf((0,a.__)("The account %s has been deleted.","wp-tiktok-feed"),t),{type:"snackbar"}),!0},U=e=>async({registry:t,dispatch:s,select:c,resolveSelect:n})=>{const o=c.getFeeds(),r=await F({method:"POST",data:{feed:e}});return r?.code?(t.dispatch(g.store).createSuccessNotice(sprintf((0,a.__)("%s: %s"),r.code,r.message),{type:"snackbar"}),!1):(o.push(r),s.setFeeds([...o]),t.dispatch(g.store).createSuccessNotice((0,a.__)("The feed has been created successfully.","wp-tiktok-feed"),{type:"snackbar"}),!0)},q=e=>async({registry:t,dispatch:s,select:c,resolveSelect:n})=>{const o=c.getFeeds(),r=await F({method:"DELETE",data:{feed_settings:e}});if(r?.code)return t.dispatch(g.store).createSuccessNotice(sprintf((0,a.__)("%s: %s"),r.code,r.message),{type:"snackbar"}),!1;const i=o.filter(t=>t.id!==e.id);return s.setFeeds([...i]),t.dispatch(g.store).createSuccessNotice(sprintf((0,a.__)("The feed %s has been deleted.","wp-tiktok-feed"),e.id),{type:"snackbar"}),!0},M=e=>async({registry:t,dispatch:s,select:c,resolveSelect:n})=>{const o=c.getFeeds(),r=await F({method:"PATCH",data:{feed:e}});return r?.code?(t.dispatch(g.store).createSuccessNotice(sprintf((0,a.__)("%s: %s"),r.code,r.message),{type:"snackbar"}),!1):(s.setFeeds([...o.map(t=>t.id==e.id?e:t)]),t.dispatch(g.store).createSuccessNotice((0,a.__)("The feed has been updated successfully.","wp-tiktok-feed"),{type:"snackbar"}),!0)},L=e=>async({registry:t,dispatch:s,select:c,resolveSelect:n})=>{const o=await k({method:"POST",data:e});return o?.code?(t.dispatch(g.store).createSuccessNotice(sprintf((0,a.__)("%s: %s"),o.code,o.message),{type:"snackbar"}),!1):(s.setSettings({...e}),t.dispatch(g.store).createSuccessNotice((0,a.__)("Settings saved.","wp-tiktok-feed"),{type:"snackbar"}),!0)},V=e=>e.accounts,W=e=>e.feeds,G=e=>e.settings,H=async()=>{try{const e=await m();return P(e)}catch(e){console.error(e)}},$=async()=>{try{const e=await F();return I(e)}catch(e){console.error(e)}},x=async()=>{try{const e=await k();return j(e)}catch(e){console.error(e)}},J={reducer:p,actions:c,selectors:n,resolvers:o},K=(0,r.createReduxStore)(i,J);(0,r.register)(N(v,w)?O(K):K),(window.qlttf=window.qlttf||{}).store=t})();
     1(()=>{"use strict";var e={n:t=>{var s=t&&t.__esModule?()=>t.default:()=>t;return e.d(s,{a:s}),s},d:(t,s)=>{for(var c in s)e.o(s,c)&&!e.o(t,c)&&Object.defineProperty(t,c,{enumerable:!0,get:s[c]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{FIRST_WP_VERSION_WITH_THUNK_SUPPORT:()=>w,INITIAL_STATE:()=>d,STORE_NAME:()=>i,WP_VERSION:()=>v,actions:()=>c,applyThunkMiddleware:()=>O,clearFeedCache:()=>T,fetchRestApiAccounts:()=>m,fetchRestApiFeeds:()=>F,fetchRestApiSettings:()=>k,fetchRestApiUserProfile:()=>A,isVersionLessThan:()=>N,reducer:()=>s,resolvers:()=>o,selectors:()=>n,storeConfig:()=>J,useAccountsEntities:()=>b,useFeedsEntities:()=>R,useSettingsEntities:()=>E});var s={};e.r(s),e.d(s,{accounts:()=>u,default:()=>p,feeds:()=>l,settings:()=>h});var c={};e.r(c),e.d(c,{createAccount:()=>C,createFeed:()=>U,deleteAccount:()=>D,deleteFeed:()=>q,editFeed:()=>M,saveSettings:()=>L,setAccounts:()=>P,setFeeds:()=>I,setSettings:()=>j});var n={};e.r(n),e.d(n,{getAccounts:()=>V,getFeeds:()=>W,getSettings:()=>G});var o={};e.r(o),e.d(o,{getAccounts:()=>H,getFeeds:()=>$,getSettings:()=>x});const a=window.wp.i18n,r=window.wp.data,i="quadlayers/tiktok",d={accounts:[],feeds:[],settings:{flush:!1,spinner_id:0}};function u(e=d.accounts,t){return"SET_ACCOUNTS"===t.type?t.payload:e}function l(e=d.feeds,t){return"SET_FEEDS"===t.type?t.payload:e}function h(e=d.settings,t){return"SET_SETTINGS"===t.type?t.payload:e}const p=(0,r.combineReducers)({accounts:u,feeds:l,settings:h}),g=(window.lodash,window.wp.notices),S=window.wp.apiFetch;var f=e.n(S);async function y(e){return await f()(e).then(e=>{if(e.code)throw new Error(`${e.code}: ${e?.message||"Unknown"}`);return e}).catch(e=>{throw new Error(JSON.stringify(e))})}const _=qlttf_store_routes,{WP_VERSION:v}=qlttf_store,w="6.0",F=({method:e,data:t}={})=>y({path:_.feeds,method:e,data:t});function R(){const{createFeed:e,editFeed:t,deleteFeed:s}=(0,r.useDispatch)(i),{feeds:c,isResolvingFeeds:n,hasResolvedFeeds:o}=(0,r.useSelect)(e=>{const{isResolving:t,hasFinishedResolution:s,getFeeds:c}=e(i);return{feeds:c(),isResolvingFeeds:t("getFeeds"),hasResolvedFeeds:s("getFeeds")}},[]);return{feeds:c,isResolvingFeeds:n,hasResolvedFeeds:o,hasFeeds:!(!o||!Object.keys(c)?.length),createFeed:e,editFeed:t,deleteFeed:s}}function T({method:e,data:t}){return y({path:_.cache,method:e,data:t})}const m=({method:e,data:t}={})=>y({path:_.accounts,method:e,data:t}),A=({method:e,data:t})=>y({path:`${_.profile.account}`,method:e,data:t});function b(){const{createAccount:e,deleteAccount:t}=(0,r.useDispatch)(i),{accounts:s,isResolvingAccounts:c,hasResolvedAccounts:n}=(0,r.useSelect)(e=>{const{isResolving:t,hasFinishedResolution:s,getAccounts:c}=e(i);return{accounts:c(),isResolvingAccounts:t("getAccounts"),hasResolvedAccounts:s("getAccounts")}},[]);return{accounts:s,isResolvingAccounts:c,hasResolvedAccounts:n,hasAccounts:!(!n||!Object.keys(s)?.length),createAccount:e,deleteAccount:t}}const k=({method:e,data:t}={})=>y({path:_.settings,method:e,data:t});function E(){const{saveSettings:e}=(0,r.useDispatch)(i),{settings:t,isResolvingSettings:s,hasResolvedSettings:c}=(0,r.useSelect)(e=>{const{isResolving:t,hasFinishedResolution:s,getSettings:c}=e(i);return{settings:c(),isResolvingSettings:t("getSettings"),hasResolvedSettings:s("getSettings")}},[]);return{settings:t,isResolvingSettings:s,hasResolvedSettings:c,hasSettings:!(!c||!Object.keys(t)?.length),saveSettings:e}}const N=(e,t)=>{const s=e.split(".").map(Number),c=t.split(".").map(Number);for(let e=0;e<c.length;e++){if(s[e]<c[e])return!0;if(s[e]>c[e])return!1}return!1},O=e=>{const t=e.instantiate;return e.instantiate=e=>{const s=t(e);if(!s.store||!s.store.dispatch)throw new Error(__("The created instance does not contain a valid store.","wp-tiktok-feed"));const c=s.store.dispatch,n=((e,t)=>({registry:t,get dispatch(){return Object.assign(t=>e.store.dispatch(t),e.getActions())},get select(){return Object.assign(t=>t(e.store.__unstableOriginalGetState()),e.getSelectors())},get resolveSelect(){return e.getResolveSelectors()}}))(s,e);return s.store.dispatch=((e,t)=>s=>"function"==typeof s?s(e):t(s))(n,c),s},e},P=async e=>({type:"SET_ACCOUNTS",payload:await Promise.all(e?.map(async e=>{try{const t=await A({method:"POST",data:{feedSettings:{open_id:e.open_id}}});return{...e,...t}}catch(t){return console.error(t),e}}))}),I=e=>({type:"SET_FEEDS",payload:e}),j=e=>({type:"SET_SETTINGS",payload:e}),C=e=>async({registry:t,dispatch:s,select:c,resolveSelect:n})=>{const o=c.getAccounts(),r=await m({method:"POST",data:e});return r?.code?(t.dispatch(g.store).createSuccessNotice((0,a.sprintf)((0,a.__)("%s: %s"),r.code,r.message),{type:"snackbar"}),!1):(o.push(r),s.setAccounts([...o]),t.dispatch(g.store).createSuccessNotice((0,a.__)("The account has been created successfully.","wp-tiktok-feed"),{type:"snackbar"}),!0)},D=(e,t)=>async({registry:s,dispatch:c,select:n,resolveSelect:o})=>{const r=n.getAccounts(),i=await m({method:"DELETE",data:{open_id:e}});if(i?.code)return s.dispatch(g.store).createSuccessNotice((0,a.sprintf)((0,a.__)("%s: %s"),i.code,i.message),{type:"snackbar"}),!1;const d=r.filter(t=>t.open_id!==e);return c.setAccounts([...d]),s.dispatch(g.store).createSuccessNotice((0,a.sprintf)((0,a.__)("The account %s has been deleted.","wp-tiktok-feed"),t),{type:"snackbar"}),!0},U=e=>async({registry:t,dispatch:s,select:c,resolveSelect:n})=>{const o=c.getFeeds(),r=await F({method:"POST",data:{feed:e}});return r?.code?(t.dispatch(g.store).createSuccessNotice((0,a.sprintf)((0,a.__)("%s: %s"),r.code,r.message),{type:"snackbar"}),!1):(o.push(r),s.setFeeds([...o]),t.dispatch(g.store).createSuccessNotice((0,a.__)("The feed has been created successfully.","wp-tiktok-feed"),{type:"snackbar"}),!0)},q=e=>async({registry:t,dispatch:s,select:c,resolveSelect:n})=>{const o=c.getFeeds(),r=await F({method:"DELETE",data:{feed_settings:e}});if(r?.code)return t.dispatch(g.store).createSuccessNotice((0,a.sprintf)((0,a.__)("%s: %s"),r.code,r.message),{type:"snackbar"}),!1;const i=o.filter(t=>t.id!==e.id);return s.setFeeds([...i]),t.dispatch(g.store).createSuccessNotice((0,a.sprintf)((0,a.__)("The feed %s has been deleted.","wp-tiktok-feed"),e.id),{type:"snackbar"}),!0},M=e=>async({registry:t,dispatch:s,select:c,resolveSelect:n})=>{const o=c.getFeeds(),r=await F({method:"PATCH",data:{feed:e}});return r?.code?(t.dispatch(g.store).createSuccessNotice((0,a.sprintf)((0,a.__)("%s: %s"),r.code,r.message),{type:"snackbar"}),!1):(s.setFeeds([...o.map(t=>t.id==e.id?e:t)]),t.dispatch(g.store).createSuccessNotice((0,a.__)("The feed has been updated successfully.","wp-tiktok-feed"),{type:"snackbar"}),!0)},L=e=>async({registry:t,dispatch:s,select:c,resolveSelect:n})=>{const o=await k({method:"POST",data:e});return o?.code?(t.dispatch(g.store).createSuccessNotice((0,a.sprintf)((0,a.__)("%s: %s"),o.code,o.message),{type:"snackbar"}),!1):(s.setSettings({...e}),t.dispatch(g.store).createSuccessNotice((0,a.__)("Settings saved.","wp-tiktok-feed"),{type:"snackbar"}),!0)},V=e=>e.accounts,W=e=>e.feeds,G=e=>e.settings,H=async()=>{try{const e=await m();return P(e)}catch(e){console.error(e)}},$=async()=>{try{const e=await F();return I(e)}catch(e){console.error(e)}},x=async()=>{try{const e=await k();return j(e)}catch(e){console.error(e)}},J={reducer:p,actions:c,selectors:n,resolvers:o},K=(0,r.createReduxStore)(i,J);(0,r.register)(N(v,w)?O(K):K),(window.qlttf=window.qlttf||{}).store=t})();
  • wp-tiktok-feed/tags/4.6.4/jetpack_vendor/automattic/jetpack-assets/CHANGELOG.md

    r3409498 r3416701  
    55The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
    66and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
     7
     8## [4.3.15] - 2025-12-08
     9### Fixed
     10- Ensure proper flags are used with `json_encode()`. [#46092]
    711
    812## [4.3.14] - 2025-12-01
     
    745749- Statically access asset tools
    746750
     751[4.3.15]: https://github.com/Automattic/jetpack-assets/compare/v4.3.14...v4.3.15
    747752[4.3.14]: https://github.com/Automattic/jetpack-assets/compare/v4.3.13...v4.3.14
    748753[4.3.13]: https://github.com/Automattic/jetpack-assets/compare/v4.3.12...v4.3.13
  • wp-tiktok-feed/tags/4.6.4/jetpack_vendor/automattic/jetpack-assets/src/class-assets.php

    r3198832 r3416701  
    531531            $data['domainMap']   = (object) $data['domainMap']; // Ensure it becomes a json object.
    532532            $data['domainPaths'] = (object) $data['domainPaths']; // Ensure it becomes a json object.
    533             $wp_scripts->add_inline_script( $handle, 'wp.jpI18nLoader.state = ' . wp_json_encode( $data, JSON_UNESCAPED_SLASHES ) . ';' );
     533            $wp_scripts->add_inline_script( $handle, 'wp.jpI18nLoader.state = ' . wp_json_encode( $data, JSON_UNESCAPED_SLASHES | JSON_HEX_TAG | JSON_HEX_AMP ) . ';' );
    534534        }
    535535
  • wp-tiktok-feed/tags/4.6.4/jetpack_vendor/i18n-map.php

    r3409498 r3416701  
    77    'jetpack-assets' => array(
    88      'path' => 'jetpack_vendor/automattic/jetpack-assets',
    9       'ver' => '4.3.14',
     9      'ver' => '4.3.15',
    1010    ),
    1111    'wp-dashboard-widget-news' => array(
  • wp-tiktok-feed/tags/4.6.4/readme.txt

    r3409498 r3416701  
    66Requires PHP: 5.6
    77Tested up to: 6.9
    8 Stable tag: 4.6.3
     8Stable tag: 4.6.4
    99License: GPLv3
    1010License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    104104== Changelog ==
    105105
     106= 4.6.4 =
     107* Fix: Undefined sprintf
     108
    106109= 4.6.3 =
    107110* WordPress compatibility
  • wp-tiktok-feed/tags/4.6.4/vendor/composer/autoload_static.php

    r3403592 r3416701  
    1414
    1515    public static $prefixLengthsPsr4 = array (
    16         'Q' => 
     16        'Q' =>
    1717        array (
    1818            'QuadLayers\\WP_Plugin_Table_Links\\' => 33,
     
    2828
    2929    public static $prefixDirsPsr4 = array (
    30         'QuadLayers\\WP_Plugin_Table_Links\\' => 
     30        'QuadLayers\\WP_Plugin_Table_Links\\' =>
    3131        array (
    3232            0 => __DIR__ . '/../..' . '/jetpack_vendor/quadlayers/wp-plugin-table-links/src',
    3333        ),
    34         'QuadLayers\\WP_Plugin_Suggestions\\' => 
     34        'QuadLayers\\WP_Plugin_Suggestions\\' =>
    3535        array (
    3636            0 => __DIR__ . '/../..' . '/jetpack_vendor/quadlayers/wp-plugin-suggestions/src',
    3737        ),
    38         'QuadLayers\\WP_Plugin_Install_Tab\\' => 
     38        'QuadLayers\\WP_Plugin_Install_Tab\\' =>
    3939        array (
    4040            0 => __DIR__ . '/../..' . '/jetpack_vendor/quadlayers/wp-plugin-install-tab/src',
    4141        ),
    42         'QuadLayers\\WP_Orm\\' => 
     42        'QuadLayers\\WP_Orm\\' =>
    4343        array (
    4444            0 => __DIR__ . '/..' . '/franmastromarino/wp-orm/src',
    4545        ),
    46         'QuadLayers\\WP_Notice_Plugin_Required\\' => 
     46        'QuadLayers\\WP_Notice_Plugin_Required\\' =>
    4747        array (
    4848            0 => __DIR__ . '/../..' . '/jetpack_vendor/quadlayers/wp-notice-plugin-required/src',
    4949        ),
    50         'QuadLayers\\WP_Notice_Plugin_Promote\\' => 
     50        'QuadLayers\\WP_Notice_Plugin_Promote\\' =>
    5151        array (
    5252            0 => __DIR__ . '/../..' . '/jetpack_vendor/quadlayers/wp-notice-plugin-promote/src',
    5353        ),
    54         'QuadLayers\\WP_Dashboard_Widget_News\\' => 
     54        'QuadLayers\\WP_Dashboard_Widget_News\\' =>
    5555        array (
    5656            0 => __DIR__ . '/../..' . '/jetpack_vendor/quadlayers/wp-dashboard-widget-news/src',
    5757        ),
    58         'QuadLayers\\PluginFeedback\\' => 
     58        'QuadLayers\\PluginFeedback\\' =>
    5959        array (
    6060            0 => __DIR__ . '/..' . '/franmastromarino/wp-plugin-feedback/src',
  • wp-tiktok-feed/tags/4.6.4/vendor/composer/installed.json

    r3409498 r3416701  
    33        {
    44            "name": "automattic/jetpack-assets",
    5             "version": "v4.3.14",
    6             "version_normalized": "4.3.14.0",
     5            "version": "v4.3.15",
     6            "version_normalized": "4.3.15.0",
    77            "source": {
    88                "type": "git",
    99                "url": "https://github.com/Automattic/jetpack-assets.git",
    10                 "reference": "9402905e3dc72216309df8c08c67bb855f50058d"
    11             },
    12             "dist": {
    13                 "type": "zip",
    14                 "url": "https://api.github.com/repos/Automattic/jetpack-assets/zipball/9402905e3dc72216309df8c08c67bb855f50058d",
    15                 "reference": "9402905e3dc72216309df8c08c67bb855f50058d",
     10                "reference": "0df8b3b3103819543681d24f1f622912d3bae8cd"
     11            },
     12            "dist": {
     13                "type": "zip",
     14                "url": "https://api.github.com/repos/Automattic/jetpack-assets/zipball/0df8b3b3103819543681d24f1f622912d3bae8cd",
     15                "reference": "0df8b3b3103819543681d24f1f622912d3bae8cd",
    1616                "shasum": ""
    1717            },
     
    2222            },
    2323            "require-dev": {
    24                 "automattic/jetpack-changelogger": "^6.0.10",
     24                "automattic/jetpack-changelogger": "^6.0.11",
    2525                "automattic/phpunit-select-config": "^1.0.3",
    2626                "brain/monkey": "^2.6.2",
     
    3131                "automattic/jetpack-autoloader": "Allow for better interoperability with other plugins that use this package."
    3232            },
    33             "time": "2025-12-01T22:34:35+00:00",
     33            "time": "2025-12-08T13:55:22+00:00",
    3434            "type": "jetpack-library",
    3535            "extra": {
     
    5959            "description": "Asset management utilities for Jetpack ecosystem packages",
    6060            "support": {
    61                 "source": "https://github.com/Automattic/jetpack-assets/tree/v4.3.14"
     61                "source": "https://github.com/Automattic/jetpack-assets/tree/v4.3.15"
    6262            },
    6363            "install-path": "../../jetpack_vendor/automattic/jetpack-assets"
  • wp-tiktok-feed/tags/4.6.4/vendor/composer/installed.php

    r3409498 r3416701  
    22    'root' => array(
    33        'name' => 'quadlayers/wp-tiktok-feed',
    4         'pretty_version' => 'v4.6.3',
    5         'version' => '4.6.3.0',
    6         'reference' => 'f461ee1f8378ca5eaaea40bd0b714895ad3a3af4',
     4        'pretty_version' => 'v4.6.4',
     5        'version' => '4.6.4.0',
     6        'reference' => 'c2e20a03865f78eadabf156ce255100ac9efb15a',
    77        'type' => 'project',
    88        'install_path' => __DIR__ . '/../../',
     
    1212    'versions' => array(
    1313        'automattic/jetpack-assets' => array(
    14             'pretty_version' => 'v4.3.14',
    15             'version' => '4.3.14.0',
    16             'reference' => '9402905e3dc72216309df8c08c67bb855f50058d',
     14            'pretty_version' => 'v4.3.15',
     15            'version' => '4.3.15.0',
     16            'reference' => '0df8b3b3103819543681d24f1f622912d3bae8cd',
    1717            'type' => 'jetpack-library',
    1818            'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-assets',
     
    122122        ),
    123123        'quadlayers/wp-tiktok-feed' => array(
    124             'pretty_version' => 'v4.6.3',
    125             'version' => '4.6.3.0',
    126             'reference' => 'f461ee1f8378ca5eaaea40bd0b714895ad3a3af4',
     124            'pretty_version' => 'v4.6.4',
     125            'version' => '4.6.4.0',
     126            'reference' => 'c2e20a03865f78eadabf156ce255100ac9efb15a',
    127127            'type' => 'project',
    128128            'install_path' => __DIR__ . '/../../',
  • wp-tiktok-feed/tags/4.6.4/wp-tiktok-feed.php

    r3409498 r3416701  
    55 * Plugin URI:              https://quadlayers.com/products/tiktok-feed/
    66 * Description:             Display beautiful and responsive galleries on your website from your TikTok feed account.
    7  * Version:                 4.6.3
     7 * Version:                 4.6.4
    88 * Text Domain:             wp-tiktok-feed
    99 * Author:                  QuadLayers
     
    2121
    2222define( 'QLTTF_PLUGIN_NAME', 'TikTok Feed' );
    23 define( 'QLTTF_PLUGIN_VERSION', '4.6.3' );
     23define( 'QLTTF_PLUGIN_VERSION', '4.6.4' );
    2424define( 'QLTTF_PLUGIN_FILE', __FILE__ );
    2525define( 'QLTTF_PLUGIN_DIR', __DIR__ . DIRECTORY_SEPARATOR );
  • wp-tiktok-feed/trunk/build/backend/js/index.asset.php

    r3392172 r3416701  
    1 <?php return array('dependencies' => array('lodash', 'qlttf-store', 'react', 'wp-api-fetch', 'wp-block-editor', 'wp-components', 'wp-compose', 'wp-data', 'wp-date', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-notices'), 'version' => 'a85c8f4a30fc9bda019f');
     1<?php return array('dependencies' => array('lodash', 'qlttf-store', 'react', 'wp-api-fetch', 'wp-block-editor', 'wp-components', 'wp-compose', 'wp-data', 'wp-date', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-notices'), 'version' => '2384dbb6239743866ba6');
  • wp-tiktok-feed/trunk/build/backend/js/index.js

    r3392172 r3416701  
    4444        margin: 1em 0 !important;
    4545    }
    46 `;t.default=e=>{const t=e.authorName||"",{wordpressPlugins:a,isResolvingWordPressPlugins:n,installWordPressPlugin:r}=(0,u.useWordPressPlugins)(t),{isResolvingSitePlugins:l,sitePlugins:i,activateSitePlugin:f}=(0,u.useSitePlugins)();return n||l?o.default.createElement(c.Spinner,null):0!==a.length?o.default.createElement(m,{className:"wrap"},a.map(t=>{var a;const n=(null===(a=i.find(e=>e.name===t.slug))||void 0===a?void 0:a.status)||"install";return o.default.createElement(s.default,Object.assign({key:t.slug},t,e,{installWordPressPlugin:r,pluginStatus:n,activateSitePlugin:f}))})):o.default.createElement("div",{style:{maxWidth:"1200px"}},o.default.createElement(p,null,d.WordpressIcon,o.default.createElement("h3",null,"Plugins not found")))}},692:e=>{"use strict";e.exports=window.wp.notices},723:e=>{"use strict";e.exports=window.wp.i18n},736:(e,t,a)=>{e.exports=a(186)()},843:(e,t)=>{"use strict";var a="function"==typeof Symbol&&Symbol.for,n=a?Symbol.for("react.element"):60103,r=a?Symbol.for("react.portal"):60106,l=a?Symbol.for("react.fragment"):60107,i=a?Symbol.for("react.strict_mode"):60108,o=a?Symbol.for("react.profiler"):60114,s=a?Symbol.for("react.provider"):60109,c=a?Symbol.for("react.context"):60110,u=a?Symbol.for("react.async_mode"):60111,d=a?Symbol.for("react.concurrent_mode"):60111,m=a?Symbol.for("react.forward_ref"):60112,p=a?Symbol.for("react.suspense"):60113,f=a?Symbol.for("react.suspense_list"):60120,h=a?Symbol.for("react.memo"):60115,g=a?Symbol.for("react.lazy"):60116,k=a?Symbol.for("react.block"):60121,_=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 d:case l:case o:case i:case p:return e;default:switch(e=e&&e.$$typeof){case c:case m:case g:case h:case s:return e;default:return t}}case r:return t}}}function y(e){return v(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=s,t.Element=n,t.ForwardRef=m,t.Fragment=l,t.Lazy=g,t.Memo=h,t.Portal=r,t.Profiler=o,t.StrictMode=i,t.Suspense=p,t.isAsyncMode=function(e){return y(e)||v(e)===u},t.isConcurrentMode=y,t.isContextConsumer=function(e){return v(e)===c},t.isContextProvider=function(e){return v(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return v(e)===m},t.isFragment=function(e){return v(e)===l},t.isLazy=function(e){return v(e)===g},t.isMemo=function(e){return v(e)===h},t.isPortal=function(e){return v(e)===r},t.isProfiler=function(e){return v(e)===o},t.isStrictMode=function(e){return v(e)===i},t.isSuspense=function(e){return v(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===l||e===d||e===o||e===i||e===p||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===h||e.$$typeof===s||e.$$typeof===c||e.$$typeof===m||e.$$typeof===_||e.$$typeof===E||e.$$typeof===b||e.$$typeof===k)},t.typeOf=v},859:(e,t,a)=>{"use strict";a.r(t),a.d(t,{ServerStyleSheet:()=>Ue,StyleSheetConsumer:()=>ie,StyleSheetContext:()=>le,StyleSheetManager:()=>me,ThemeConsumer:()=>Re,ThemeContext:()=>Ie,ThemeProvider:()=>De,__PRIVATE__:()=>Ve,createGlobalStyle:()=>Be,css:()=>ye,default:()=>Je,isStyledComponent:()=>y,keyframes:()=>Ge,useTheme:()=>ze,version:()=>A,withTheme:()=>He});var n=a(959),r=a(609),l=a.n(r),i=a(945),o=a.n(i);const s=function(e){function t(e,n,s,c,m){for(var p,f,h,g,b,y=0,w=0,A=0,N=0,S=0,O=0,R=h=p=0,M=0,j=0,q=0,L=0,B=s.length,G=B-1,U="",H="",z="",V="";M<B;){if(f=s.charCodeAt(M),M===G&&0!==w+N+A+y&&(0!==w&&(f=47===w?10:47),N=A=y=0,B++,G++),0===w+N+A+y){if(M===G&&(0<j&&(U=U.replace(d,"")),0<U.trim().length)){switch(f){case 32:case 9:case 59:case 13:case 10:break;default:U+=s.charAt(M)}f=59}switch(f){case 123:for(p=(U=U.trim()).charCodeAt(0),h=1,L=++M;M<B;){switch(f=s.charCodeAt(M)){case 123:h++;break;case 125:h--;break;case 47:switch(f=s.charCodeAt(M+1)){case 42:case 47:e:{for(R=M+1;R<G;++R)switch(s.charCodeAt(R)){case 47:if(42===f&&42===s.charCodeAt(R-1)&&M+2!==R){M=R+1;break e}break;case 10:if(47===f){M=R+1;break e}}M=R}}break;case 91:f++;case 40:f++;case 34:case 39:for(;M++<G&&s.charCodeAt(M)!==f;);}if(0===h)break;M++}if(h=s.substring(L,M),0===p&&(p=(U=U.replace(u,"").trim()).charCodeAt(0)),64===p){switch(0<j&&(U=U.replace(d,"")),f=U.charCodeAt(1)){case 100:case 109:case 115:case 45:j=n;break;default:j=F}if(L=(h=t(n,j,h,f,m+1)).length,0<I&&(b=o(3,h,j=a(F,U,q),n,C,x,L,f,m,c),U=j.join(""),void 0!==b&&0===(L=(h=b.trim()).length)&&(f=0,h="")),0<L)switch(f){case 115:U=U.replace(v,i);case 100:case 109:case 45:h=U+"{"+h+"}";break;case 107:h=(U=U.replace(k,"$1 $2"))+"{"+h+"}",h=1===T||2===T&&l("@"+h,3)?"@-webkit-"+h+"@"+h:"@"+h;break;default:h=U+h,112===c&&(H+=h,h="")}else h=""}else h=t(n,a(n,U,q),h,c,m+1);z+=h,h=q=j=R=p=0,U="",f=s.charCodeAt(++M);break;case 125:case 59:if(1<(L=(U=(0<j?U.replace(d,""):U).trim()).length))switch(0===R&&(p=U.charCodeAt(0),45===p||96<p&&123>p)&&(L=(U=U.replace(" ",":")).length),0<I&&void 0!==(b=o(1,U,n,e,C,x,H.length,c,m,c))&&0===(L=(U=b.trim()).length)&&(U="\0\0"),p=U.charCodeAt(0),f=U.charCodeAt(1),p){case 0:break;case 64:if(105===f||99===f){V+=U+s.charAt(M);break}default:58!==U.charCodeAt(L-1)&&(H+=r(U,p,f,U.charCodeAt(2)))}q=j=R=p=0,U="",f=s.charCodeAt(++M)}}switch(f){case 13:case 10:47===w?w=0:0===1+p&&107!==c&&0<U.length&&(j=1,U+="\0"),0<I*D&&o(0,U,n,e,C,x,H.length,c,m,c),x=1,C++;break;case 59:case 125:if(0===w+N+A+y){x++;break}default:switch(x++,g=s.charAt(M),f){case 9:case 32:if(0===N+y+w)switch(S){case 44:case 58:case 9:case 32:g="";break;default:32!==f&&(g=" ")}break;case 0:g="\\0";break;case 12:g="\\f";break;case 11:g="\\v";break;case 38:0===N+w+y&&(j=q=1,g="\f"+g);break;case 108:if(0===N+w+y+P&&0<R)switch(M-R){case 2:112===S&&58===s.charCodeAt(M-3)&&(P=S);case 8:111===O&&(P=O)}break;case 58:0===N+w+y&&(R=M);break;case 44:0===w+A+N+y&&(j=1,g+="\r");break;case 34:case 39:0===w&&(N=N===f?0:0===N?f:N);break;case 91:0===N+w+A&&y++;break;case 93:0===N+w+A&&y--;break;case 41:0===N+w+y&&A--;break;case 40:0===N+w+y&&(0===p&&(2*S+3*O==533||(p=1)),A++);break;case 64:0===w+A+N+y+R+h&&(h=1);break;case 42:case 47:if(!(0<N+y+A))switch(w){case 0:switch(2*f+3*s.charCodeAt(M+1)){case 235:w=47;break;case 220:L=M,w=42}break;case 42:47===f&&42===S&&L+2!==M&&(33===s.charCodeAt(L+2)&&(H+=s.substring(L,M+1)),g="",w=0)}}0===w&&(U+=g)}O=S,S=f,M++}if(0<(L=H.length)){if(j=n,0<I&&void 0!==(b=o(2,H,j,e,C,x,L,c,m,c))&&0===(H=b).length)return V+H+z;if(H=j.join(",")+"{"+H+"}",0!==T*P){switch(2!==T||l(H,2)||(P=0),P){case 111:H=H.replace(E,":-moz-$1")+H;break;case 112:H=H.replace(_,"::-webkit-input-$1")+H.replace(_,"::-moz-$1")+H.replace(_,":-ms-input-$1")+H}P=0}}return V+H+z}function a(e,t,a){var r=t.trim().split(h);t=r;var l=r.length,i=e.length;switch(i){case 0:case 1:var o=0;for(e=0===i?"":e[0]+" ";o<l;++o)t[o]=n(e,t[o],a).trim();break;default:var s=o=0;for(t=[];o<l;++o)for(var c=0;c<i;++c)t[s++]=n(e[c]+" ",r[o],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(g,"$1"+e.trim());case 58:return e.trim()+t.replace(g,"$1"+e.trim());default:if(0<1*a&&0<t.indexOf("\f"))return t.replace(g,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function r(e,t,a,n){var i=e+";",o=2*t+3*a+4*n;if(944===o){e=i.indexOf(":",9)+1;var s=i.substring(e,i.length-1).trim();return s=i.substring(0,e).trim()+s+";",1===T||2===T&&l(s,1)?"-webkit-"+s+s:s}if(0===T||2===T&&!l(i,1))return i;switch(o){case 1015:return 97===i.charCodeAt(10)?"-webkit-"+i+i:i;case 951:return 116===i.charCodeAt(3)?"-webkit-"+i+i:i;case 963:return 110===i.charCodeAt(5)?"-webkit-"+i+i:i;case 1009:if(100!==i.charCodeAt(4))break;case 969:case 942:return"-webkit-"+i+i;case 978:return"-webkit-"+i+"-moz-"+i+i;case 1019:case 983:return"-webkit-"+i+"-moz-"+i+"-ms-"+i+i;case 883:if(45===i.charCodeAt(8))return"-webkit-"+i+i;if(0<i.indexOf("image-set(",11))return i.replace(S,"$1-webkit-$2")+i;break;case 932:if(45===i.charCodeAt(4))switch(i.charCodeAt(5)){case 103:return"-webkit-box-"+i.replace("-grow","")+"-webkit-"+i+"-ms-"+i.replace("grow","positive")+i;case 115:return"-webkit-"+i+"-ms-"+i.replace("shrink","negative")+i;case 98:return"-webkit-"+i+"-ms-"+i.replace("basis","preferred-size")+i}return"-webkit-"+i+"-ms-"+i+i;case 964:return"-webkit-"+i+"-ms-flex-"+i+i;case 1023:if(99!==i.charCodeAt(8))break;return"-webkit-box-pack"+(s=i.substring(i.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+i+"-ms-flex-pack"+s+i;case 1005:return p.test(i)?i.replace(m,":-webkit-")+i.replace(m,":-moz-")+i:i;case 1e3:switch(t=(s=i.substring(13).trim()).indexOf("-")+1,s.charCodeAt(0)+s.charCodeAt(t)){case 226:s=i.replace(b,"tb");break;case 232:s=i.replace(b,"tb-rl");break;case 220:s=i.replace(b,"lr");break;default:return i}return"-webkit-"+i+"-ms-"+s+i;case 1017:if(-1===i.indexOf("sticky",9))break;case 975:switch(t=(i=e).length-10,o=(s=(33===i.charCodeAt(t)?i.substring(0,t):i).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|s.charCodeAt(7))){case 203:if(111>s.charCodeAt(8))break;case 115:i=i.replace(s,"-webkit-"+s)+";"+i;break;case 207:case 102:i=i.replace(s,"-webkit-"+(102<o?"inline-":"")+"box")+";"+i.replace(s,"-webkit-"+s)+";"+i.replace(s,"-ms-"+s+"box")+";"+i}return i+";";case 938:if(45===i.charCodeAt(5))switch(i.charCodeAt(6)){case 105:return s=i.replace("-items",""),"-webkit-"+i+"-webkit-box-"+s+"-ms-flex-"+s+i;case 115:return"-webkit-"+i+"-ms-flex-item-"+i.replace(w,"")+i;default:return"-webkit-"+i+"-ms-flex-line-pack"+i.replace("align-content","").replace(w,"")+i}break;case 973:case 989:if(45!==i.charCodeAt(3)||122===i.charCodeAt(4))break;case 931:case 953:if(!0===N.test(e))return 115===(s=e.substring(e.indexOf(":")+1)).charCodeAt(0)?r(e.replace("stretch","fill-available"),t,a,n).replace(":fill-available",":stretch"):i.replace(s,"-webkit-"+s)+i.replace(s,"-moz-"+s.replace("fill-",""))+i;break;case 962:if(i="-webkit-"+i+(102===i.charCodeAt(5)?"-ms-"+i:"")+i,211===a+n&&105===i.charCodeAt(13)&&0<i.indexOf("transform",10))return i.substring(0,i.indexOf(";",27)+1).replace(f,"$1-webkit-$2")+i}return i}function l(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(A,"$1"),a,t)}function i(e,t){var a=r(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return a!==t+";"?a.replace(y," or ($1)").substring(4):"("+t+")"}function o(e,t,a,n,r,l,i,o,s,u){for(var d,m=0,p=t;m<I;++m)switch(d=O[m].call(c,e,p,a,n,r,l,i,o,s,u)){case void 0:case!1:case!0:case null:break;default:p=d}if(p!==t)return p}function s(e){return void 0!==(e=e.prefix)&&(R=null,e?"function"!=typeof e?T=1:(T=2,R=e):T=0),s}function c(e,a){var n=e;if(33>n.charCodeAt(0)&&(n=n.trim()),n=[n],0<I){var r=o(-1,a,n,n,C,x,0,0,0,0);void 0!==r&&"string"==typeof r&&(a=r)}var l=t(F,n,a,0,0);return 0<I&&void 0!==(r=o(-2,l,n,n,C,x,l.length,0,0,0))&&(l=r),P=0,x=C=1,l}var u=/^\0+/g,d=/[\0\r\f]/g,m=/: */g,p=/zoo|gra/,f=/([,: ])(transform)/g,h=/,\r+?/g,g=/([\t\r\n ])*\f?&/g,k=/@(k\w+)\s*(\S*)\s*/,_=/::(place)/g,E=/:(read-only)/g,b=/[svh]\w+-[tblr]{2}/,v=/\(\s*(.*)\s*\)/g,y=/([\s\S]*?);/g,w=/-self|flex-/g,A=/[^]*?(:[rp][el]a[\w-]+)[^]*/,N=/stretch|:\s*\w+\-(?:conte|avail)/,S=/([^-])(image-set\()/,x=1,C=1,P=0,T=1,F=[],O=[],I=0,R=null,D=0;return c.use=function e(t){switch(t){case void 0:case null:I=O.length=0;break;default:if("function"==typeof t)O[I++]=t;else if("object"==typeof t)for(var a=0,n=t.length;a<n;++a)e(t[a]);else D=0|!!t}return e},c.set=s,void 0!==e&&s(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 d=/^((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|fetchpriority|fetchPriority|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|popover|popoverTarget|popoverTargetAction|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)-.*))$/,m=u(function(e){return d.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}),p=a(35),f=a.n(p);function h(){return(h=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 g=function(e,t){for(var a=[e[0]],n=0,r=t.length;n<r;n+=1)a.push(t[n],e[n+1]);return a},k=function(e){return null!==e&&"object"==typeof e&&"[object Object]"===(e.toString?e.toString():Object.prototype.toString.call(e))&&!(0,n.typeOf)(e)},_=Object.freeze([]),E=Object.freeze({});function b(e){return"function"==typeof e}function v(e){return e.displayName||e.name||"Component"}function y(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",A="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,r=n;e>=r;)(r<<=1)<0&&C(16,""+e);this.groupSizes=new Uint32Array(r),this.groupSizes.set(a),this.length=r;for(var l=n;l<r;l++)this.groupSizes[l]=0}for(var i=this.indexOfGroup(e+1),o=0,s=t.length;o<s;o++)this.tag.insertRule(i,t[o])&&(this.groupSizes[e]++,i++)},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 r=a;r<n;r++)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),r=n+a,l=n;l<r;l++)t+=this.tag.getRule(l)+"/*!sc*/\n";return t},e}(),T=new Map,F=new Map,O=1,I=function(e){if(T.has(e))return T.get(e);for(;F.has(O);)O++;var t=O++;return T.set(e,t),F.set(t,e),t},R=function(e){return F.get(e)},D=function(e,t){t>=O&&(O=t+1),T.set(e,t),F.set(t,e)},M="style["+w+'][data-styled-version="5.3.11"]',j=new RegExp("^"+w+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),q=function(e,t,a){for(var n,r=a.split(","),l=0,i=r.length;l<i;l++)(n=r[l])&&e.registerName(t,n)},L=function(e,t){for(var a=(t.textContent||"").split("/*!sc*/\n"),n=[],r=0,l=a.length;r<l;r++){var i=a[r].trim();if(i){var o=i.match(j);if(o){var s=0|parseInt(o[1],10),c=o[2];0!==s&&(D(c,s),q(e,c,o[3]),e.getTag().insertRules(s,n)),n.length=0}else n.push(i)}}},B=function(){return a.nc},G=function(e){var t=document.head,a=e||t,n=document.createElement("style"),r=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),l=void 0!==r?r.nextSibling:null;n.setAttribute(w,"active"),n.setAttribute("data-styled-version","5.3.11");var i=B();return i&&n.setAttribute("nonce",i),a.insertBefore(n,l),n},U=function(){function e(e){var t=this.element=G(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 r=t[a];if(r.ownerNode===e)return r}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=G(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}(),z=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}(),V=N,J={isServer:!N,useCSSOMInjection:!S},W=function(){function e(e,t,a){void 0===e&&(e=E),void 0===t&&(t={}),this.options=h({},J,{},e),this.gs=t,this.names=new Map(a),this.server=!!e.isServer,!this.server&&N&&V&&(V=!1,function(e){for(var t=document.querySelectorAll(M),a=0,n=t.length;a<n;a++){var r=t[a];r&&"active"!==r.getAttribute(w)&&(L(e,r),r.parentNode&&r.parentNode.removeChild(r))}}(this))}e.registerId=function(e){return I(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,a){return void 0===a&&(a=!0),new e(h({},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,r=t.target,e=a?new z(r):n?new U(r):new H(r),new P(e)));var e,t,a,n,r},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(I(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(I(e),a)},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.clearRules=function(e){this.getTag().clearGroup(I(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="",r=0;r<a;r++){var l=R(r);if(void 0!==l){var i=e.names.get(l),o=t.getGroup(r);if(i&&o&&i.size){var s=w+".g"+r+'[id="'+l+'"]',c="";void 0!==i&&i.forEach(function(e){e.length>0&&(c+=e+",")}),n+=""+o+s+'{content:"'+c+'"}/*!sc*/\n'}}}return n}(this)},e}(),Y=/(a)(d)/gi,Q=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=Q(t%52)+a;return(Q(t%52)+a).replace(Y,"$1-$2")}var K=function(e,t){for(var a=t.length;a;)e=33*e^t.charCodeAt(--a);return e},X=function(e){return K(5381,e)};function $(e){for(var t=0;t<e.length;t+=1){var a=e[t];if(b(a)&&!y(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)&&$(e),this.componentId=t,this.baseHash=K(ee,t),this.baseStyle=a,W.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,a){var n=this.componentId,r=[];if(this.baseStyle&&r.push(this.baseStyle.generateAndInjectStyles(e,t,a)),this.isStatic&&!a.hash)if(this.staticRulesId&&t.hasNameForId(n,this.staticRulesId))r.push(this.staticRulesId);else{var l=be(this.rules,e,t,a).join(""),i=Z(K(this.baseHash,l)>>>0);if(!t.hasNameForId(n,i)){var o=a(l,"."+i,void 0,n);t.insertRules(n,i,o)}r.push(i),this.staticRulesId=i}else{for(var s=this.rules.length,c=K(this.baseHash,a.hash),u="",d=0;d<s;d++){var m=this.rules[d];if("string"==typeof m)u+=m;else if(m){var p=be(m,e,t,a),f=Array.isArray(p)?p.join(""):p;c=K(c,f+d),u+=f}}if(u){var h=Z(c>>>0);if(!t.hasNameForId(n,h)){var g=a(u,"."+h,void 0,n);t.insertRules(n,h,g)}r.push(h)}}return r.join(" ")},e}(),ae=/^\s*\/\/.*$/gm,ne=[":","[",".","#"];function re(e){var t,a,n,r,l=void 0===e?E:e,i=l.options,o=void 0===i?E:i,c=l.plugins,u=void 0===c?_:c,d=new s(o),m=[],p=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(a,n,r,l,i,o,s,c,u,d){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(r[0]+n),"";default:return n+(0===d?"/*|*/":"")}case-2:n.split("/*|*/}").forEach(t)}}}(function(e){m.push(e)}),f=function(e,n,l){return 0===n&&-1!==ne.indexOf(l[a.length])||l.match(r)?e:"."+t};function h(e,l,i,o){void 0===o&&(o="&");var s=e.replace(ae,""),c=l&&i?i+" "+l+" { "+s+" }":s;return t=o,a=l,n=new RegExp("\\"+a+"\\b","g"),r=new RegExp("(\\"+a+"\\b){2,}"),d(i||!l?"":l,c)}return d.use([].concat(u,[function(e,t,r){2===e&&r.length&&r[0].lastIndexOf(a)>0&&(r[0]=r[0].replace(n,f))},p,function(e){if(-2===e){var t=m;return m=[],t}}])),h.hash=u.length?u.reduce(function(e,t){return t.name||C(15),K(e,t.name)},5381).toString():"",h}var le=l().createContext(),ie=le.Consumer,oe=l().createContext(),se=(oe.Consumer,new W),ce=re();function ue(){return(0,r.useContext)(le)||se}function de(){return(0,r.useContext)(oe)||ce}function me(e){var t=(0,r.useState)(e.stylisPlugins),a=t[0],n=t[1],i=ue(),s=(0,r.useMemo)(function(){var t=i;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,r.useMemo)(function(){return re({options:{prefix:!e.disableVendorPrefixes},plugins:a})},[e.disableVendorPrefixes,a]);return(0,r.useEffect)(function(){o()(a,e.stylisPlugins)||n(e.stylisPlugins)},[e.stylisPlugins]),l().createElement(le.Provider,{value:s},l().createElement(oe.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}(),fe=/([A-Z])/,he=/([A-Z])/g,ge=/^ms-/,ke=function(e){return"-"+e.toLowerCase()};function _e(e){return fe.test(e)?e.replace(he,ke).replace(ge,"-ms-"):e}var Ee=function(e){return null==e||!1===e||""===e};function be(e,t,a,n){if(Array.isArray(e)){for(var r,l=[],i=0,o=e.length;i<o;i+=1)""!==(r=be(e[i],t,a,n))&&(Array.isArray(r)?l.push.apply(l,r):l.push(r));return l}return Ee(e)?"":y(e)?"."+e.styledComponentId:b(e)?"function"!=typeof(s=e)||s.prototype&&s.prototype.isReactComponent||!t?e:be(e(t),t,a,n):e instanceof pe?a?(e.inject(a,n),e.getName(n)):e:k(e)?function e(t,a){var n,r,l=[];for(var i in t)t.hasOwnProperty(i)&&!Ee(t[i])&&(Array.isArray(t[i])&&t[i].isCss||b(t[i])?l.push(_e(i)+":",t[i],";"):k(t[i])?l.push.apply(l,e(t[i],i)):l.push(_e(i)+": "+(n=i,(null==(r=t[i])||"boolean"==typeof r||""===r?"":"number"!=typeof r||0===r||n in c||n.startsWith("--")?String(r).trim():r+"px")+";")));return a?[a+" {"].concat(l,["}"]):l}(e):e.toString();var s}var ve=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function ye(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)||k(e)?ve(be(g(_,[e].concat(a)))):0===a.length&&1===e.length&&"string"==typeof e[0]?e:ve(be(g(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},Ae=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Ne=/(^-|-$)/g;function Se(e){return e.replace(Ae,"-").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)},Te=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function Fe(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 r=0,l=a;r<l.length;r++){var i=l[r];if(Pe(i))for(var o in i)Te(o)&&Fe(e,i[o],o)}return e}var Ie=l().createContext(),Re=Ie.Consumer;function De(e){var t=(0,r.useContext)(Ie),a=(0,r.useMemo)(function(){return function(e,t){return e?b(e)?e(t):Array.isArray(e)||"object"!=typeof e?C(8):t?h({},t,{},e):e:C(14)}(e.theme,t)},[e.theme,t]);return e.children?l().createElement(Ie.Provider,{value:a},e.children):null}var Me={};function je(e,t,a){var n=y(e),i=!Ce(e),o=t.attrs,s=void 0===o?_:o,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,d=t.displayName,p=void 0===d?function(e){return Ce(e)?"styled."+e:"Styled("+v(e)+")"}(e):d,g=t.displayName&&t.componentId?Se(t.displayName)+"-"+t.componentId:t.componentId||u,k=n&&e.attrs?Array.prototype.concat(e.attrs,s).filter(Boolean):s,w=t.shouldForwardProp;n&&e.shouldForwardProp&&(w=t.shouldForwardProp?function(a,n,r){return e.shouldForwardProp(a,n,r)&&t.shouldForwardProp(a,n,r)}:e.shouldForwardProp);var A,N=new te(a,g,n?e.componentStyle:void 0),S=N.isStatic&&0===s.length,x=function(e,t){return function(e,t,a,n){var l=e.attrs,i=e.componentStyle,o=e.defaultProps,s=e.foldedComponentIds,c=e.shouldForwardProp,u=e.styledComponentId,d=e.target,p=function(e,t,a){void 0===e&&(e=E);var n=h({},t,{theme:e}),r={};return a.forEach(function(e){var t,a,l,i=e;for(t in b(i)&&(i=i(n)),i)n[t]=r[t]="className"===t?(a=r[t],l=i[t],a&&l?a+" "+l:a||l):i[t]}),[n,r]}(we(t,(0,r.useContext)(Ie),o)||E,t,l),f=p[0],g=p[1],k=function(e,t,a){var n=ue(),r=de();return t?e.generateAndInjectStyles(E,n,r):e.generateAndInjectStyles(a,n,r)}(i,n,f),_=a,v=g.$as||t.$as||g.as||t.as||d,y=Ce(v),w=g!==t?h({},t,{},g):t,A={};for(var N in w)"$"!==N[0]&&"as"!==N&&("forwardedAs"===N?A.as=w[N]:(c?c(N,m,v):!y||m(N))&&(A[N]=w[N]));return t.style&&g.style!==t.style&&(A.style=h({},t.style,{},g.style)),A.className=Array.prototype.concat(s,u,k!==u?k:null,t.className,g.className).filter(Boolean).join(" "),A.ref=_,(0,r.createElement)(v,A)}(A,e,t,S)};return x.displayName=p,(A=l().forwardRef(x)).attrs=k,A.componentStyle=N,A.displayName=p,A.shouldForwardProp=w,A.foldedComponentIds=n?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):_,A.styledComponentId=g,A.target=n?e.target:e,A.withComponent=function(e){var n=t.componentId,r=function(e,t){if(null==e)return{};var a,n,r={},l=Object.keys(e);for(n=0;n<l.length;n++)a=l[n],t.indexOf(a)>=0||(r[a]=e[a]);return r}(t,["componentId"]),l=n&&n+"-"+(Ce(e)?e:Se(v(e)));return je(e,h({},r,{attrs:k,componentId:l}),a)},Object.defineProperty(A,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=n?Oe({},e.defaultProps,t):t}}),Object.defineProperty(A,"toString",{value:function(){return"."+A.styledComponentId}}),i&&f()(A,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),A}var qe=function(e){return function e(t,a,r){if(void 0===r&&(r=E),!(0,n.isValidElementType)(a))return C(1,String(a));var l=function(){return t(a,r,ye.apply(void 0,arguments))};return l.withConfig=function(n){return e(t,a,h({},r,{},n))},l.attrs=function(n){return e(t,a,h({},r,{attrs:Array.prototype.concat(r.attrs,n).filter(Boolean)}))},l}(je,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){qe[e]=qe(e)});var Le=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=$(e),W.registerId(this.componentId+1)}var t=e.prototype;return t.createStyles=function(e,t,a,n){var r=n(be(this.rules,t,a,n).join(""),""),l=this.componentId+e;a.insertRules(l,l,r)},t.removeStyles=function(e,t){t.clearRules(this.componentId+e)},t.renderStyles=function(e,t,a,n){e>2&&W.registerId(this.componentId+e),this.removeStyles(e,a),this.createStyles(e,t,a,n)},e}();function Be(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 i=ye.apply(void 0,[e].concat(a)),o="sc-global-"+xe(JSON.stringify(i)),s=new Le(i,o);function c(e){var t=ue(),a=de(),n=(0,r.useContext)(Ie),l=(0,r.useRef)(t.allocateGSInstance(o)).current;return t.server&&u(l,e,t,n,a),(0,r.useLayoutEffect)(function(){if(!t.server)return u(l,e,t,n,a),function(){return s.removeStyles(l,t)}},[l,e,t,n,a]),null}function u(e,t,a,n,r){if(s.isStatic)s.renderStyles(e,x,a,r);else{var l=h({},t,{theme:we(t,n,c.defaultProps)});s.renderStyles(e,l,a,r)}}return l().memo(c)}function Ge(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 r=ye.apply(void 0,[e].concat(a)).join(""),l=xe(r);return new pe(l,r)}var Ue=function(){function e(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString();if(!t)return"";var a=B();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=B();return n&&(a.nonce=n),[l().createElement("style",h({},a,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new W({isServer:!0}),this.sealed=!1}var t=e.prototype;return t.collectStyles=function(e){return this.sealed?C(2):l().createElement(me,{sheet:this.instance},e)},t.interleaveWithNodeStream=function(e){return C(3)},e}(),He=function(e){var t=l().forwardRef(function(t,a){var n=(0,r.useContext)(Ie),i=e.defaultProps,o=we(t,n,i);return l().createElement(e,h({},t,{theme:o,ref:a}))});return f()(t,e),t.displayName="WithTheme("+v(e)+")",t},ze=function(){return(0,r.useContext)(Ie)},Ve={StyleSheet:W,masterSheet:se};const Je=qe},875:function(e,t,a){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,a,n){void 0===n&&(n=a);var r=Object.getOwnPropertyDescriptor(t,a);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,n,r)}:function(e,t,a,n){void 0===n&&(n=a),e[n]=t[a]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),l=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 r(t,e),t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.storeConfig=void 0;const o=a(143),s=a(86),c=i(a(195)),u=l(a(24)),d=l(a(973)),m=l(a(355));t.storeConfig={reducer:c.default,actions:u,selectors:d,resolvers:m};const p=(0,o.createReduxStore)(s.STORE_NAME,t.storeConfig);(0,o.register)(p)},945:e=>{e.exports=function(e,t,a,n){var r=a?a.call(n,e,t):void 0;if(void 0!==r)return!!r;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var l=Object.keys(e),i=Object.keys(t);if(l.length!==i.length)return!1;for(var o=Object.prototype.hasOwnProperty.bind(t),s=0;s<l.length;s++){var c=l[s];if(!o(c))return!1;var u=e[c],d=t[c];if(!1===(r=a?a.call(n,u,d,c):void 0)||void 0===r&&u!==d)return!1}return!0}},959:(e,t,a)=>{"use strict";e.exports=a(843)},973:(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},985:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}},t={};function a(n){var r=t[n];if(void 0!==r)return r.exports;var l=t[n]={exports:{}};return e[n].call(l.exports,l,l.exports,a),l.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:()=>Me,AppProvider:()=>Ie,AppStructure:()=>De,AppTabSwitcher:()=>Re,Header:()=>E,Nav:()=>y,Spinner:()=>M,Table:()=>j,apiFetch:()=>f,copyInClipboard:()=>k,deepMerge:()=>h,getPluginURL:()=>g,onDocumentLoaded:()=>_,useAppSlotContext:()=>S});var e=a(87),t=a(723);const r=window.wp.editor,l=window.wp.hooks,i=qlttf_backend.QLTTF_PLUGIN_NAME,o=qlttf_backend.QLTTF_PLUGIN_VERSION,s=(qlttf_backend.QLTTF_PLUGIN_FILE,qlttf_backend.QLTTF_PLUGIN_DIR,qlttf_backend.QLTTF_DOMAIN,qlttf_backend.QLTTF_PREFIX,qlttf_backend.QLTTF_WORDPRESS_URL,qlttf_backend.QLTTF_REVIEW_URL,qlttf_backend.QLTTF_GROUP_URL),c=(qlttf_backend.QLTTF_DEVELOPER,qlttf_backend.QLTTF_TIKTOK_URL,qlttf_backend.QLTTF_ACCESS_TOKEN_LINK),u=qlttf_backend.QLTTF_FEED_MODEL,d=(qlttf_backend.QLTTF_REST_ROUTES,window.lodash);var m=a(455),p=a.n(m);async function f(e){return await p()(e).then(e=>{if(e.code)throw new Error(`${e.code}: ${e?.message||"Unknown"}`);return e}).catch(e=>{throw new Error(JSON.stringify(e))})}function h(e,t){const a={};return new Set([...Object.keys(e),...Object.keys(t)]).forEach(n=>{e.hasOwnProperty(n)&&t.hasOwnProperty(n)?(0,d.isObject)(e[n])&&!Array.isArray(e[n])?a[n]=h(e[n],t[n]):a[n]=t[n]:e.hasOwnProperty(n)?a[n]=e[n]:t.hasOwnProperty(n)&&(a[n]=t[n])}),a}function g(e){return qlttf_backend.plugin_url+e}function k(e){return navigator.clipboard&&navigator.clipboard.writeText?navigator.clipboard.writeText(e).then(function(){return!0},function(){return!1}):new Promise(t=>{try{const a=document.createElement("textarea");a.value=e,a.style.position="fixed",a.style.left="-999999px",a.style.top="-999999px",document.body.appendChild(a),a.focus(),a.select();const n=document.execCommand("copy");document.body.removeChild(a),t(n)}catch(e){console.error("Failed to copy text: ",e),t(!1)}})}const _=e=>{/comp|inter|loaded/.test(document.readyState)?e():document.addEventListener("DOMContentLoaded",e,!1)},E=()=>(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"wrap about-wrap full-width-layout"},(0,e.createElement)("h1",null,i),(0,e.createElement)("p",{className:"about-text"},(0,t.sprintf)((0,t.__)("Thanks for using %s! We are doing our best to offer you the best alternatives to display TikTok videos on your site, helping you to improve communication experience with your users.","wp-tiktok-feed"),i)),(0,e.createElement)("p",{className:"about-text"},(0,e.createElement)("a",{href:"https://quadlayers.com/products/tiktok-feed/?utm_source=qlttf_plugin&utm_medium=admin_header&utm_campaign=premium_upgrade&utm_content=premium_link",target:"__blank"},(0,t.__)("Premium","wp-tiktok-feed"))," ","|",(0,e.createElement)("a",{href:"https://quadlayers.com/demo/tiktok-feed/?utm_source=qlttf_plugin&utm_medium=admin_header&utm_campaign=demo&utm_content=demo_link",target:"__blank"},(0,t.__)("Demo","wp-tiktok-feed"))," ","|",(0,e.createElement)("a",{href:"https://quadlayers.com/documentation/tiktok-feed/?utm_source=qlttf_plugin&utm_medium=admin_header&utm_campaign=documentation&utm_content=documentation_link",target:"__blank"},(0,t.__)("Documentation","wp-tiktok-feed"))),(0,e.createElement)("a",{href:"https://quadlayers.com/?utm_source=qlttf_plugin&utm_medium=admin_header&utm_campaign=branding&utm_content=header_logo",target:"_blank",rel:"noreferrer"},(0,e.createElement)("div",{style:{backgroundImage:`url(${g("/assets/backend/img/quadlayers.jpg")})`},className:"wp-badge quadlayers__logo"},"QuadLayers"))));var b=a(500),v=a.n(b);const y=function(){const{currentTab:t,setCurrentTab:a,tabs:n}=Fe();return(0,e.useEffect)(()=>{(e=>{const t=Array.from(document.querySelector("#toplevel_page_qlttf_backend .wp-submenu").children),a=e[0].toUpperCase()+e.slice(1).toLowerCase();t.map(e=>{e.innerText.trim()==a?e.classList.add("current"):e.classList.remove("current")})})(t)},[t]),(0,e.createElement)("div",{className:"wrap about-wrap full-width-layout"},(0,e.createElement)("ul",{className:"nav-tab-wrapper"},n.map(({label:n,name:r},l)=>(0,e.createElement)("li",{key:l,className:"nav-tab-li",onClick:e=>{e.preventDefault(),e.stopPropagation(),a(r)}},(0,e.createElement)("a",{href:"#",className:v()("nav-tab",t===r&&"nav-tab-active"),onClick:e=>{e.preventDefault()}},n)))))},w=window.wp.components,A=window.wp.compose,N=(0,e.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}}),S=()=>(0,e.useContext)(N),x=t=>{const a=(0,e.useRef)(),{children:n}=t,r=`tiktok.admin.Control.Slot.${(0,A.useInstanceId)(x)}`,l={},i={},{Fill:o,Slot:s}=(0,e.useCallback)((0,w.createSlotFill)(`${r}.header`),[r]),{Fill:c,Slot:u}=(0,e.useCallback)((0,w.createSlotFill)(`${r}.navigation`),[r]),{Fill:d,Slot:m}=(0,e.useCallback)((0,w.createSlotFill)(`${r}content`),[r]),{Fill:p,Slot:f}=(0,e.useCallback)((0,w.createSlotFill)(`${r}.aside`),[r]),{Fill:h,Slot:g}=(0,e.useCallback)((0,w.createSlotFill)(`${r}.footer`),[r]);return l.Header=s,i.Header=o,l.Navigation=u,i.Navigation=c,l.Content=m,i.Content=d,l.Aside=f,i.Aside=p,l.Footer=g,i.Footer=h,(0,e.createElement)(w.SlotFillProvider,null,(0,e.createElement)(N.Provider,{value:{Slot:l,Fill:i,containerRef:a}},n))},C=N.Consumer,P=({isSecondary:t,href:a,title:n,target:r="_self",tagName:l="a",className:i,children:o})=>{const s=l;return(0,e.createElement)(s,{className:v()("tiktok__button",t&&"tiktok__button--secondary",i),href:a,target:r,title:n},o)},T=()=>(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,i,(0,e.createElement)("span",{style:{fontSize:"24px",color:"#555"}}," ","v",o," ")),(0,e.createElement)("div",{className:"about-text"},(0,e.createElement)("p",null,sprintf((0,t.__)("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","wp-tiktok-feed"),i)))),(0,e.createElement)("hr",null),(0,e.createElement)("div",{className:"feature-section"},(0,e.createElement)("h3",null,(0,t.__)("Premium","wp-tiktok-feed")),(0,e.createElement)("p",null,sprintf((0,t.__)("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.","wp-tiktok-feed"),i)),(0,e.createElement)(P,{href:"https://quadlayers.com/products/tiktok-feed/?utm_source=qlttf_plugin&utm_medium=admin_tab&utm_campaign=premium_upgrade&utm_content=purchase_button",target:"_blank"},(0,t.__)("Purchase Now","wp-tiktok-feed"))),(0,e.createElement)("div",{className:"feature-section"},(0,e.createElement)("h3",null,(0,t.__)("Demo","wp-tiktok-feed")),(0,e.createElement)("p",null,sprintf((0,t.__)("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.","wp-tiktok-feed"),i)),(0,e.createElement)(P,{isSecondary:!0,href:"https://quadlayers.com/demo/tiktok-feed/?utm_source=qlttf_plugin&utm_medium=admin_tab&utm_campaign=demo&utm_content=demo_button",target:"_blank"},(0,t.__)("View demo","wp-tiktok-feed"))),(0,e.createElement)("div",{className:"feature-section"},(0,e.createElement)("h3",null,(0,t.__)("Support","wp-tiktok-feed")),(0,e.createElement)("p",null,sprintf((0,t.__)("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.","wp-tiktok-feed"),i)),(0,e.createElement)(P,{isSecondary:!0,href:"https://quadlayers.com/account/support/?utm_source=qlttf_plugin&utm_medium=admin_tab&utm_campaign=support&utm_content=support_button",target:"_blank"},(0,t.__)("Submit ticket","wp-tiktok-feed"))),(0,e.createElement)("div",{className:"feature-section"},(0,e.createElement)("h3",null,(0,t.__)("Comunnity","wp-tiktok-feed")),(0,e.createElement)("p",null,sprintf((0,t.__)("If you want to get in touch with other %s users or be aware of our promotional discounts join our community now.","wp-tiktok-feed"),i)),(0,e.createElement)(P,{isSecondary:!0,href:s,target:"_blank"},(0,t.__)("Join our community","wp-tiktok-feed")))),(0,e.createElement)("div",{className:"column"},(0,e.createElement)("img",{src:g("/assets/backend/img/mobile.png")})))),F=()=>{const{Fill:t}=S();return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(t.Header,null,(0,e.createElement)(E,null)),(0,e.createElement)(t.Navigation,null,(0,e.createElement)(y,null)),(0,e.createElement)(t.Content,null,(0,e.createElement)(T,null)))},O=({title:t,show:a,onClose:n,children:r,className:l,__experimentalHideHeader:i=!1})=>{const o=(0,e.useRef)();return(0,e.useEffect)(()=>{const e=e=>{a&&o?.current&&o.current===e.target&&n(e)};return o?.current?.addEventListener("click",e),()=>{o?.current?.removeEventListener("click",e)}},[o,a]),a?(0,e.createElement)(w.Modal,{ref:o,title:t,onRequestClose:n,shouldCloseOnClickOutside:!1,className:v()("tiktok__modal media-modal wp-core-ui upload-php",l),__experimentalHideHeader:i},r):null};var I=a(143),R=a(692);const D=window.qlttf.store;function M(){return(0,e.createElement)("p",null,(0,e.createElement)("span",{style:{visibility:"visible"},className:"spinner"}),(0,t.__)("Loading…","wp-tiktok-feed"))}function j({children:t,style:a}){return(0,e.createElement)("table",{className:"form-table widefat striped tiktok__table",style:a},t)}const q=window.wp.date,L=({account:a,deleteAccount:n,createSuccessNotice:r,createErrorNotice:l})=>(0,e.createElement)("tr",null,(0,e.createElement)("td",{width:"1%"},(0,e.createElement)("img",{className:"avatar",src:a.avatar?a.avatar:"http://2.gravatar.com/avatar/b642b4217b34b1e8d3bd915fc65c4452?s=150&d=mm&r=g"})),(0,e.createElement)("td",null,a.username||(0,t.__)("Loading…","wp-tiktok-feed")),(0,e.createElement)("td",null,a.open_id),(0,e.createElement)("td",{style:{width:"300px"}},(0,e.createElement)("input",{type:"text",defaultValue:a.refresh_token,readOnly:!0}),(0,e.createElement)("button",{className:"button button-primary",onClick:async()=>{await k(a.refresh_token)?r((0,t.__)("Refresh token copied to clipboard.","wp-tiktok-feed"),{id:1,type:"snackbar"}):l((0,t.__)("Can't copy the refresh token.","wp-tiktok-feed"),{id:2,type:"snackbar"})}},(0,e.createElement)("i",{className:"dashicons dashicons-admin-page"}))),(0,e.createElement)("td",null,(0,q.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,t.sprintf)((0,t.__)("You are about to delete the %s account.","wp-tiktok-feed"),a.username))&&n(a.open_id,a.username)}},(0,e.createElement)("i",{className:"dashicons dashicons-trash"})))),B=t=>{const{href:a,target:n="_self",title:r,children:l,className:i}=t;return(0,e.createElement)("a",{href:a,className:v()("tiktok__account-button",i),target:n,title:r},l)},G=({isOpen:a,setIsOpen:n})=>{const{createSuccessNotice:r,createErrorNotice:l,createWarningNotice:i}=(0,I.useDispatch)(R.store),{accounts:o,hasAccounts:s,hasResolvedAccounts:u,deleteAccount:d}=(0,D.useAccountsEntities)();return u?(0,e.createElement)("div",{className:"wrap about-wrap full-width-layout"},(0,e.createElement)("p",null,(0,e.createElement)(B,{href:c,className:v()("tiktok__account-button",s&&"qlttf-premium-field"),target:"_self",title:(0,t.__)("Add TikTok Account","wp-tiktok-feed")},(0,t.__)("Add TikTok Account","wp-tiktok-feed")),(0,e.createElement)("a",{className:v()("tiktok__account-link",s&&"qlttf-premium-field"),href:"#",onClick:()=>n(!0)},(0,t.__)("Button not working?","wp-tiktok-feed")),(0,e.createElement)("span",{className:"qlttf-premium-field"},(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,t.__)("Multiple user accounts are only allowed in the premium version.","wp-tiktok-feed"))))),o&&(0,e.createElement)(j,null,(0,e.createElement)("thead",null,(0,e.createElement)("tr",null,(0,e.createElement)("th",null,(0,t.__)("Image","wp-tiktok-feed")),(0,e.createElement)("th",null,(0,t.__)("Username","wp-tiktok-feed")),(0,e.createElement)("th",null,(0,t.__)("Open Id","wp-tiktok-feed")),(0,e.createElement)("th",null,(0,t.__)("Refresh Token","wp-tiktok-feed")),(0,e.createElement)("th",null,(0,t.__)("Expires","wp-tiktok-feed")),(0,e.createElement)("th",null,(0,t.__)("Action","wp-tiktok-feed")))),(0,e.createElement)("tbody",null,o.map((t,a)=>(0,e.createElement)(L,{key:a,account:t,deleteAccount:d,createSuccessNotice:r,createErrorNotice:l}))))):(0,e.createElement)(M,null)},U=({isOpen:a,setIsOpen:n})=>{const{createAccount:r}=(0,D.useAccountsEntities)(),[l,i]=(0,e.useState)(!1),[o,s]=(0,e.useState)({refresh_token:""}),c=l||!o?.refresh_token;return(0,e.createElement)("div",null,(0,e.createElement)("form",{onSubmit:async e=>{e.preventDefault(),i(!0);const t=await r(o);i(!1),t&&n(!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:()=>n(!1)},(0,e.createElement)("span",{className:"media-modal-icon"},(0,e.createElement)("span",{className:"screen-reader-text"},(0,t.__)("Close dialog","wp-tiktok-feed"))))),(0,e.createElement)("div",{className:"media-frame-title"},(0,e.createElement)("h1",null,(0,t.__)("Manually connect an account","wp-tiktok-feed"))),(0,e.createElement)("div",{className:"media-frame-content"},(0,e.createElement)("div",{style:{height:"100%",overflowX:"hidden"}},(0,e.createElement)("div",{className:"tiktok__modal__panel"},(0,e.createElement)("div",{className:"options_group"},(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Refresh Token:","wp-tiktok-feed")),(0,e.createElement)("input",{style:{minWidth:260},type:"text",placeholder:(0,t.__)("Enter a valid refresh token","wp-tiktok-feed"),required:!0,value:o.refresh_token,onChange:e=>s({refresh_token:e.target.value})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("a",{style:{margin:"0 15px"},target:"_blank",href:"https://tiktokfeedv2.quadlayers.com/auth/",rel:"noreferrer"},(0,t.__)("Get access token","wp-tiktok-feed"))))),(0,e.createElement)("div",{className:"options_group",style:{borderBottom:"none"}},(0,e.createElement)("p",{className:"form-field"},(0,t.__)("Please copy and paste your refresh access token here.","wp-tiktok-feed")))))),(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)("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,t.__)("Save","wp-tiktok-feed")))))))))},H=()=>{const{Fill:t}=S(),[a,n]=(0,e.useState)(!1);return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(t.Header,null,(0,e.createElement)(E,null)),(0,e.createElement)(t.Navigation,null,(0,e.createElement)(y,null)),(0,e.createElement)(t.Content,null,(0,e.createElement)(G,{isOpen:a,setIsOpen:n}),(0,e.createElement)(O,{show:a,className:"tiktok__modal--account",onClose:()=>n(!1),__experimentalHideHeader:!0},(0,e.createElement)(U,{isOpen:a,setIsOpen:n}))))},z=[{label:(0,t.__)("General","wp-tiktok-feed"),name:"general"},{label:(0,t.__)("Profile","wp-tiktok-feed"),name:"profile"},{label:(0,t.__)("Carousel","wp-tiktok-feed"),name:"carousel"},{label:(0,t.__)("Box","wp-tiktok-feed"),name:"box"},{label:(0,t.__)("Video","wp-tiktok-feed"),name:"video"},{label:(0,t.__)("Card","wp-tiktok-feed"),name:"video-card"},{label:(0,t.__)("Modal","wp-tiktok-feed"),name:"video-modal"},{label:(0,t.__)("Button","wp-tiktok-feed"),name:"button"},{label:(0,t.__)("Button Load More","wp-tiktok-feed"),name:"button-load-more"}],V={currentFeedIndex:null,currentTab:z[0].name,prevPanel:null,currentFeedFormData:u},J=(0,e.createContext)({}),W=()=>(0,e.useContext)(J),Y=(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},Q=t=>{const{children:a}=t,[n,r]=(0,e.useReducer)(Y,V),{feeds:l,createFeed:i,editFeed:o}=(0,D.useFeedsEntities)(),s=l[n.currentFeedIndex],c=(0,d.isEqual)(s,n.currentFeedFormData);return(0,e.createElement)(J.Provider,{value:{...n,setCurrentTab:e=>{n.currentTab!=e&&r({type:"SET_CURRENT_TAB",payload:{currentTab:e}})},setCurrentFeedIndex:(e=null)=>{r({type:"SET_CURRENT_FEED",payload:{currentFeedIndex:e,currentFeedFormData:l?.[e]||V.currentFeedFormData}})},setCurrentFeedFormData:e=>{const t=h(n.currentFeedFormData,e);r({type:"SET_CURRENT_FEED_FORM_DATA",payload:{currentFeedFormData:void 0===t?"":t}})},feeds:l,createFeed:i,editFeed:o,isCurrentFeedDataModified:c}},a)};function Z({setIsOpen:a,isLoading:n}){const{isCurrentFeedDataModified:r,currentFeedFormData:l}=W(),i=n||r||(()=>{switch(l.source){case"account":if(""==l.open_id)return!0;break;case"username":if(""==l.username)return!0;break;case"hashtag":if(""==l.hashtag)return!0;break;default:return!1}})();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"},(0,e.createElement)("span",{className:"settings-save-status media-button",style:{float:"left"}},n&&(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:i},(0,t.__)("Save","wp-tiktok-feed")),(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:()=>a(!1)},(0,t.__)("Close","wp-tiktok-feed")))))}function K({setIsOpen:a,isNewFeed:n,currentFeedId:r}){const{feeds:l,currentFeedIndex:i,setCurrentFeedIndex:o}=W(),s=i-1,c=i+1;return(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"edit-media-header"},!n&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)("button",{type:"button",className:"left",disabled:!l[s],onClick:()=>{o(s)}},(0,e.createElement)("span",{className:"screen-reader-text"},(0,t.__)("Edit previous media item","wp-tiktok-feed"))),(0,e.createElement)("button",{type:"button",className:"right",disabled:!l[c],onClick:()=>{o(c)}},(0,e.createElement)("span",{className:"screen-reader-text"},(0,t.__)("Edit next media item","wp-tiktok-feed")))),(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,t.__)("Close dialog","wp-tiktok-feed"))))),(0,e.createElement)("div",{className:"media-frame-title"},(0,e.createElement)("h1",null,(0,t.sprintf)((0,t.__)("Edit feed # %s","wp-tiktok-feed"),n?(0,t.__)("New","wp-tiktok-feed"):r))))}J.Consumer;const X=[{name:"gallery",title:"Gallery",premium:!1},{name:"masonry",title:"Masonry",premium:!1},{name:"carousel",title:"Carousel",premium:!0},{name:"carousel-vertical",title:"C. Vertical",premium:!0},{name:"highlight",title:"Highlight",premium:!0},{name:"highlight-square",title:"H. Square",premium:!0}];function $(){const{currentFeedFormData:a,setCurrentFeedFormData:n}=W(),{accounts:r}=(0,D.useAccountsEntities)();return(0,e.createElement)("div",{className:"tiktok__modal__panel"},(0,e.createElement)("div",{className:"options_group"},(0,e.createElement)("p",{className:"form-field form-field--source"},(0,e.createElement)("label",null,(0,t.__)("Source","wp-tiktok-feed")),(0,e.createElement)("span",null,(0,e.createElement)("input",{type:"radio",onChange:()=>n({source:"account"}),checked:"account"==a.source}),(0,e.createElement)("label",null,(0,t.__)("Account","wp-tiktok-feed")," ",(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,t.__)("(This is a premium feature)","wp-tiktok-feed"))))),(0,e.createElement)("span",{className:"qlttf-premium-field"},(0,e.createElement)("input",{type:"radio",onChange:()=>n({source:"username"}),checked:"username"==a.source}),(0,e.createElement)("label",null,(0,t.__)("Username","wp-tiktok-feed"))),(0,e.createElement)("span",{className:"qlttf-premium-field"},(0,e.createElement)("input",{type:"radio",onChange:()=>n({source:"hashtag"}),checked:"hashtag"==a.source}),(0,e.createElement)("label",null,(0,t.__)("Hashtag","wp-tiktok-feed"))),(0,e.createElement)("span",{className:"qlttf-premium-field"},(0,e.createElement)("input",{type:"radio",onChange:()=>n({source:"trending"}),checked:"trending"==a.source}),(0,e.createElement)("label",null,(0,t.__)("Trending","wp-tiktok-feed")))),(0,e.createElement)("p",{className:"form-field qlttf-premium-field",style:{marginTop:-30}},(0,e.createElement)("label",null),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,t.__)("Username, Hashtag & Trending feeds are available in the premium version.","wp-tiktok-feed"))))),"hashtag"==a.source&&(0,e.createElement)("div",{className:"options_group"},(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Hashtag","wp-tiktok-feed")),(0,e.createElement)("input",{type:"text",required:"required",placeholder:"wordpress",value:a.hashtag,onChange:e=>n({hashtag:e.target.value})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Please enter a hashtag","wp-tiktok-feed"))))),"username"==a.source&&(0,e.createElement)("div",{className:"options_group"},(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Username","wp-tiktok-feed")),(0,e.createElement)("input",{type:"text",required:"required",value:a.username,onChange:e=>n({username:e.target.value})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Please enter a username","wp-tiktok-feed"))))),"trending"==a.source&&(0,e.createElement)("div",{className:"options_group"},(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Region","wp-tiktok-feed")),(0,e.createElement)("input",{type:"text",required:"required",value:a.region,onChange:e=>n({region:e.target.value})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,e.createElement)("a",{target:"_blank",rel:"noreferrer noopener",href:"https://www.iso.org/obp/ui/#search"},(0,t.__)("Please enter a region country in Alpha-2 standard. You can find more information about it here.","wp-tiktok-feed")))))),"account"==a.source&&(0,e.createElement)("div",{className:"options_group"},(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Account","wp-tiktok-feed")),(0,e.createElement)("select",{required:!0,value:a.open_id||"",onChange:e=>n({open_id:e.target.value})},(0,e.createElement)("option",{value:""},(0,t.__)("Select an account","wp-tiktok-feed")),r.map((t,a)=>(0,e.createElement)("option",{key:a,value:t.open_id},t.username))),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Please select a TikTok account","wp-tiktok-feed"))))),(0,e.createElement)("div",{className:"options_group"},(0,e.createElement)("div",{className:"form-field"},(0,e.createElement)("ul",{className:"list-images"},X.map(({name:r,title:l,premium:i})=>(0,e.createElement)("li",{key:r,className:v()(a.layout==r&&"active",i&&"qlttf-premium-field"),onClick:e=>n({layout:r})},(0,e.createElement)("span",null,(0,e.createElement)("label",null,l),(0,e.createElement)("img",{alt:l,src:g(`/assets/backend/img/${r}.png`)}),i&&(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,t.__)("(Premium)","wp-tiktok-feed"))))))))),(0,e.createElement)("div",{className:"options_group"},(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Carousel items","wp-tiktok-feed")),(0,e.createElement)("input",{type:"checkbox",checked:!!a.hide_carousel_feed,onChange:e=>n({hide_carousel_feed:!!e.target.checked}),readOnly:!0}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Hide carousel feed items. This option is must be checked until TikTok API can support carousel feed items.","wp-tiktok-feed"))))),(0,e.createElement)("div",{className:"options_group"},(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Limit","wp-tiktok-feed")),(0,e.createElement)("input",{type:"number",min:"1",max:"33",value:a.limit,onChange:e=>n({limit:e.target.value})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Number of videos to display","wp-tiktok-feed")))),(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Columns","wp-tiktok-feed")),(0,e.createElement)("input",{type:"number",min:"1",max:"20",value:a.columns,onChange:e=>n({columns:e.target.value})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Number of videos in a row","wp-tiktok-feed"))))),["highlight","highlight-square"].includes(a.layout)&&(0,e.createElement)("div",{className:"options_group"},(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Highlight by tag","wp-tiktok-feed")),(0,e.createElement)("textarea",{placeholder:"tag1, tag2, tag3",value:a.highlight.tag,onChange:e=>n({highlight:{tag:e.target.value}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Highlight feed items with these tags","wp-tiktok-feed"))),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,t.__)("(This is a premium feature)","wp-tiktok-feed")))),(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Highlight by id","wp-tiktok-feed")),(0,e.createElement)("textarea",{placeholder:"101010110101010",onChange:e=>n({highlight:{id:e.target.value}}),value:a.highlight.id}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Highlight feed items with these ids","wp-tiktok-feed"))),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,t.__)("(This is a premium feature)","wp-tiktok-feed")))),(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Highlight by position","wp-tiktok-feed")),(0,e.createElement)("textarea",{placeholder:"1, 5, 7",onChange:e=>n({highlight:{position:e.target.value}}),value:a.highlight.position}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Highlight feed items with these positions","wp-tiktok-feed"))),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,t.__)("(This is a premium feature)","wp-tiktok-feed"))))),(0,e.createElement)("div",{className:"options_group"},(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Spacing","wp-tiktok-feed")),(0,e.createElement)("input",{type:"number",min:"0",max:"50",value:a.video.spacing,onChange:e=>n({video:{spacing:e.target.value}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Add spacing between videos","wp-tiktok-feed"))))))}function ee(){return ee=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)({}).hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},ee.apply(null,arguments)}const te=window.wp.blockEditor;function ae(t){const{label:a}=t;return(0,e.createElement)("div",{className:"ql-color-palette-picker",onClick:e=>{e.preventDefault()}},(0,e.createElement)(te.ColorPaletteControl,ee({},t,{showTitle:!!a})))}function ne(){const{currentFeedFormData:a,setCurrentFeedFormData:n}=W();return(0,e.createElement)("div",{className:"tiktok__modal__panel"},(0,e.createElement)("div",{className:"options_group qlttf-premium-field"},(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Box","wp-tiktok-feed")),(0,e.createElement)("input",{type:"checkbox",checked:!!a.box.display,onChange:e=>n({box:{display:!!e.target.checked}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Display the TikTok Feed inside a customizable box","wp-tiktok-feed"))),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,t.__)("(This is a premium feature)","wp-tiktok-feed"))))),(0,e.createElement)("div",{className:v()("options_group qlttf-premium-field",!a.box.display&&"disabled-field")},(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Padding","wp-tiktok-feed")),(0,e.createElement)("input",{type:"number",min:"0",max:"300",value:a.box.padding,onChange:e=>n({box:{padding:e.target.value}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Add padding to the box","wp-tiktok-feed"))),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,t.__)("(This is a premium feature)","wp-tiktok-feed")))),(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Radius","wp-tiktok-feed")),(0,e.createElement)("input",{min:"0",max:"1000",type:"number",value:a.box.radius,onChange:e=>n({box:{radius:e.target.value}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Add radius to the box","wp-tiktok-feed"))),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,t.__)("(This is a premium feature)","wp-tiktok-feed")))),(0,e.createElement)("div",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Background","wp-tiktok-feed")),(0,e.createElement)(ae,{value:a.box.background,color:a.box.background,onChange:e=>n({box:{background:e}}),disableCustomColors:!1,label:(0,t.__)("Change background color in box","wp-tiktok-feed")}),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,t.__)("(This is a premium feature)","wp-tiktok-feed")))),(0,e.createElement)("div",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Text color","wp-tiktok-feed")),(0,e.createElement)(ae,{value:a.box.text_color,color:a.box.text_color,onChange:e=>n({box:{text_color:e}}),disableCustomColors:!1,label:(0,t.__)("Change text color in box","wp-tiktok-feed")}),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,t.__)("(This is a premium feature)","wp-tiktok-feed"))))))}function re(){const{currentFeedFormData:a,setCurrentFeedFormData:n}=W();return(0,e.createElement)("div",{className:"tiktok__modal__panel qlttf-premium-field"},(0,e.createElement)("div",{className:"options_group"},(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Autoplay","wp-tiktok-feed")),(0,e.createElement)("input",{type:"checkbox",checked:!!a.carousel.autoplay,onChange:e=>n({carousel:{autoplay:!!e.target.checked}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Autoplay carousel items","wp-tiktok-feed")))),(0,e.createElement)("p",{className:v()("form-field",!a.carousel.autoplay&&"disabled-field")},(0,e.createElement)("label",null,(0,t.__)("Autoplay Interval","wp-tiktok-feed")),(0,e.createElement)("input",{type:"number",min:"1000",max:"300000",step:"100",value:a.carousel.autoplay_interval,onChange:e=>n({carousel:{autoplay_interval:e.target.value}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Moves carousel after a certain amount of time","wp-tiktok-feed"))))),(0,e.createElement)("div",{className:"options_group"},(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Navigation","wp-tiktok-feed")),(0,e.createElement)("input",{type:"checkbox",checked:!!a.carousel.navarrows,onChange:e=>n({carousel:{navarrows:!!e.target.checked}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Display navigation arrows","wp-tiktok-feed")))),(0,e.createElement)("div",{className:v()("form-field",!a.carousel.navarrows&&"disabled-field")},(0,e.createElement)("label",null,(0,t.__)("Navigation color","wp-tiktok-feed")),(0,e.createElement)(ae,{value:a.carousel.navarrows_color,color:a.carousel.navarrows_color,onChange:e=>n({carousel:{navarrows_color:e}}),disableCustomColors:!1,enableAlpha:!0,label:(0,t.__)("Change navigation arrows color","wp-tiktok-feed")}))),(0,e.createElement)("div",{className:"options_group"},(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Pagination","wp-tiktok-feed")),(0,e.createElement)("input",{type:"checkbox",checked:a.carousel.pagination,onChange:e=>n({carousel:{pagination:!!e.target.checked}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Display pagination dots","wp-tiktok-feed")))),(0,e.createElement)("div",{className:v()("form-field",!a.carousel.pagination&&"disabled-field")},(0,e.createElement)("label",null,(0,t.__)("Pagination color","wp-tiktok-feed")),(0,e.createElement)(ae,{value:a.carousel.pagination_color,color:a.carousel.pagination_color,onChange:e=>n({carousel:{pagination_color:e}}),disableCustomColors:!1,enableAlpha:!0,label:(0,t.__)("Change pagination dots color","wp-tiktok-feed")}))))}function le(){const{currentFeedFormData:a,setCurrentFeedFormData:n}=W();return(0,e.createElement)("div",{className:"tiktok__modal__panel"},(0,e.createElement)("div",{className:"options_group"},(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Lazy load","wp-tiktok-feed")),(0,e.createElement)("input",{type:"checkbox",checked:!!a.lazy,onChange:e=>n({lazy:!!e.target.checked})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Defers video lazy","wp-tiktok-feed"))))),(0,e.createElement)("div",{className:"options_group"},(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Mask","wp-tiktok-feed")),(0,e.createElement)("input",{type:"checkbox",checked:!!a.mask.display,onChange:e=>n({mask:{display:!!e.target.checked}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Display mask on hover","wp-tiktok-feed")))),(0,e.createElement)("div",{className:v()("form-field",!a.mask.display&&"disabled-field")},(0,e.createElement)("label",null,(0,t.__)("Mask background","wp-tiktok-feed")),(0,e.createElement)(ae,{value:a.mask.background,color:a.mask.background,onChange:e=>n({mask:{background:e}}),disableCustomColors:!1,enableAlpha:!0,label:(0,t.__)("Change background color in mask","wp-tiktok-feed")}))),(0,e.createElement)("div",{className:v()("options_group",!a.mask.display&&"disabled-field")},(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Likes","wp-tiktok-feed")),(0,e.createElement)("input",{type:"checkbox",checked:a.mask.likes_count,onChange:e=>n({mask:{likes_count:!!e.target.checked}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Display likes count in mask","wp-tiktok-feed")))),(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Comments","wp-tiktok-feed")),(0,e.createElement)("input",{type:"checkbox",checked:a.mask.comments_count,onChange:e=>n({mask:{comments_count:!!e.target.checked}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Display comments count in mask","wp-tiktok-feed"))))))}function ie(){const{currentFeedFormData:a,setCurrentFeedFormData:n}=W();return(0,e.createElement)("div",{className:"tiktok__modal__panel"},(0,e.createElement)("div",{className:"options_group qlttf-premium-field"},(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Display","wp-tiktok-feed")),(0,e.createElement)("input",{type:"checkbox",checked:!!a.card.display,onChange:e=>n({card:{display:!!e.target.checked}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Display card in video","wp-tiktok-feed"))),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,t.__)("(This is a premium feature)","wp-tiktok-feed"))))),(0,e.createElement)("div",{className:v()("options_group qlttf-premium-field",!a.card.display&&"disabled-field")},(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Radius","wp-tiktok-feed")),(0,e.createElement)("input",{type:"number",min:"0",max:"1000",value:a.card.radius,onChange:e=>n({card:{radius:e.target.value}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Add radius to the card","wp-tiktok-feed"))),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,t.__)("(This is a premium feature)","wp-tiktok-feed")))),(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Font size","wp-tiktok-feed")),(0,e.createElement)("input",{type:"number",min:"8",max:"36",value:a.card.font_size,onChange:e=>n({card:{font_size:e.target.value}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Change font size in cards","wp-tiktok-feed"))),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,t.__)("(This is a premium feature)","wp-tiktok-feed")))),(0,e.createElement)("div",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Background","wp-tiktok-feed")),(0,e.createElement)(ae,{value:a.card.background,color:a.card.background,onChange:e=>n({card:{background:e}}),disableCustomColors:!1,enableAlpha:!0,label:(0,t.__)("Change background color in cards","wp-tiktok-feed")}),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,t.__)("(This is a premium feature)","wp-tiktok-feed")))),(0,e.createElement)("div",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Background hover","wp-tiktok-feed")),(0,e.createElement)(ae,{value:a.card.background,color:a.card.background,onChange:e=>n({card:{background:e}}),disableCustomColors:!1,enableAlpha:!0,label:(0,t.__)("Change background color hover in cards","wp-tiktok-feed")}),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,t.__)("(This is a premium feature)","wp-tiktok-feed")))),(0,e.createElement)("div",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Text color","wp-tiktok-feed")),(0,e.createElement)(ae,{value:a.card.text_color,color:a.card.text_color,onChange:e=>n({card:{text_color:e}}),disableCustomColors:!1,enableAlpha:!0,label:(0,t.__)("Change text color","wp-tiktok-feed")}),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,t.__)("(This is a premium feature)","wp-tiktok-feed")))),(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Padding","wp-tiktok-feed")),(0,e.createElement)("input",{type:"number",min:"0",max:"20",value:a.card.padding,onChange:e=>n({card:{padding:e.target.value}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Add padding in cards","wp-tiktok-feed")))),(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Likes","wp-tiktok-feed")),(0,e.createElement)("input",{type:"checkbox",checked:!!a.card.likes_count,onChange:e=>n({card:{likes_count:!!e.target.checked}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Display likes count in cards","wp-tiktok-feed"))),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,t.__)("(This is a premium feature)","wp-tiktok-feed")))),(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Comments","wp-tiktok-feed")),(0,e.createElement)("input",{type:"checkbox",checked:!!a.card.comments_count,onChange:e=>n({card:{comments_count:!!e.target.checked}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Display comments count in cards","wp-tiktok-feed"))),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,t.__)("(This is a premium feature)","wp-tiktok-feed")))),(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Description","wp-tiktok-feed")),(0,e.createElement)("input",{type:"checkbox",checked:!!a.card.video_description,onChange:e=>n({card:{video_description:!!e.target.checked}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Display description in cards","wp-tiktok-feed"))),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,t.__)("(This is a premium feature)","wp-tiktok-feed")))),(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Length","wp-tiktok-feed")),(0,e.createElement)("input",{type:"number",min:"1",max:"100",value:a.card.max_word_count,onChange:e=>n({card:{max_word_count:e.target.value}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Limit the length of the description in the card","wp-tiktok-feed"))),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,t.__)("(This is a premium feature)","wp-tiktok-feed"))))))}function oe(){const{currentFeedFormData:a,setCurrentFeedFormData:n}=W();return(0,e.createElement)("div",{className:"tiktok__modal__panel"},(0,e.createElement)("div",{className:"options_group"},(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Display","wp-tiktok-feed")),(0,e.createElement)("input",{type:"checkbox",checked:!!a.modal.display,onChange:e=>n({modal:{display:!!e.target.checked}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Display Modal by clicking on video","wp-tiktok-feed"))))),(0,e.createElement)("div",{className:v()("options_group",!a.modal.display&&"disabled-field")},(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Profile","wp-tiktok-feed")),(0,e.createElement)("input",{type:"checkbox",checked:!!a.modal.profile,onChange:e=>n({modal:{profile:!!e.target.checked}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Display user profile or tag info","wp-tiktok-feed"))),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,t.__)("(This is a premium feature)","wp-tiktok-feed")))),(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Description","wp-tiktok-feed")),(0,e.createElement)("input",{type:"checkbox",checked:!!a.modal.video_description,onChange:e=>n({modal:{video_description:!!e.target.checked}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Display description in the sidebar","wp-tiktok-feed"))),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,t.__)("(This is a premium feature)","wp-tiktok-feed")))),(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Likes","wp-tiktok-feed")),(0,e.createElement)("input",{type:"checkbox",checked:!!a.modal.likes_count,onChange:e=>n({modal:{likes_count:!!e.target.checked}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Display likes count in sidebar","wp-tiktok-feed"))),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,t.__)("(This is a premium feature)","wp-tiktok-feed")))),(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Comments","wp-tiktok-feed")),(0,e.createElement)("input",{type:"checkbox",checked:!!a.modal.comments_count,onChange:e=>n({modal:{comments_count:!!e.target.checked}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Display comments count in sidebar","wp-tiktok-feed"))),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,t.__)("(This is a premium feature)","wp-tiktok-feed")))),(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Date","wp-tiktok-feed")),(0,e.createElement)("input",{type:"checkbox",checked:!!a.modal.date,onChange:e=>n({modal:{date:!!e.target.checked}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Display video date","wp-tiktok-feed"))),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,t.__)("(This is a premium feature)","wp-tiktok-feed")))),"account"===a.source&&(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,t.__)("Due to Tiktok limitations, controls and autoplay options are not available in account source.","wp-tiktok-feed")))),(0,e.createElement)("div",{className:v()((!a.modal.display||"account"===a.source)&&"disabled-field")},(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Controls","wp-tiktok-feed")),(0,e.createElement)("input",{type:"checkbox",checked:a.modal.controls,onChange:e=>n({modal:{controls:!!e.target.checked}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Display video controls","wp-tiktok-feed")))),(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Autoplay","wp-tiktok-feed")),(0,e.createElement)("input",{type:"checkbox",checked:a.modal.autoplay,onChange:e=>n({modal:{autoplay:!!e.target.checked}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Video autoplay when modal is open.","wp-tiktok-feed"))))),(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Text align","wp-tiktok-feed")),(0,e.createElement)("select",{value:a.modal.align||"",onChange:e=>n({modal:{align:e.target.value}})},[{name:"left",label:(0,t.__)("Left","wp-tiktok-feed")},{name:"center",label:(0,t.__)("Center","wp-tiktok-feed")},{name:"right",label:(0,t.__)("Right","wp-tiktok-feed")}].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,t.__)("Align description in sidebar","wp-tiktok-feed"))),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,t.__)("(This is a premium feature)","wp-tiktok-feed"))))))}function se(){const{currentFeedFormData:a,setCurrentFeedFormData:n}=W();return(0,e.createElement)("div",{className:"tiktok__modal__panel"},(0,e.createElement)("div",{className:"options_group"},(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Display","wp-tiktok-feed")),(0,e.createElement)("input",{type:"checkbox",checked:!!a.button.display,onChange:e=>n({button:{display:!!e.target.checked}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Display the button to open tikTok site link","wp-tiktok-feed")))),(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Text","wp-tiktok-feed")),(0,e.createElement)("input",{type:"text",placeholder:"TikTok",value:a.button.text,onChange:e=>n({button:{text:e.target.value}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Change button text","wp-tiktok-feed"))))),(0,e.createElement)("div",{className:v()("options_group",!a.button.display&&"disabled-field")},(0,e.createElement)("div",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Text color","wp-tiktok-feed")),(0,e.createElement)(ae,{value:a.button.text_color,color:a.button.text_color,onChange:e=>n({button:{text_color:e}}),disableCustomColors:!1,enableAlpha:!0,label:(0,t.__)("Change color text in button","wp-tiktok-feed")})),(0,e.createElement)("div",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Background","wp-tiktok-feed")),(0,e.createElement)(ae,{value:a.button.background,color:a.button.background,onChange:e=>n({button:{background:e}}),disableCustomColors:!1,enableAlpha:!0,label:(0,t.__)("Change background color in button","wp-tiktok-feed")})),(0,e.createElement)("div",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Background hover","wp-tiktok-feed")),(0,e.createElement)(ae,{value:a.button.background_hover,color:a.button.background_hover,onChange:e=>n({button:{background_hover:e}}),disableCustomColors:!1,enableAlpha:!0,label:(0,t.__)("Change background hover in button","wp-tiktok-feed")}))))}function ce(){const{currentFeedFormData:a,setCurrentFeedFormData:n}=W();return(0,e.createElement)("div",{className:"tiktok__modal__panel"},(0,e.createElement)("div",{className:"options_group qlttf-premium-field"},(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Display","wp-tiktok-feed")),(0,e.createElement)("input",{type:"checkbox",checked:!!a.button_load.display,onChange:e=>n({button_load:{display:!!e.target.checked}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Display the button to load more feeds","wp-tiktok-feed")))),(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Text","wp-tiktok-feed")),(0,e.createElement)("input",{type:"text",placeholder:"TikTok",value:a.button_load.text,onChange:e=>n({button_load:{text:e.target.value}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Change button text","wp-tiktok-feed"))))),(0,e.createElement)("div",{className:v()("options_group",!a.button_load.display&&"disabled-field")},(0,e.createElement)("div",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Text color","wp-tiktok-feed")),(0,e.createElement)(ae,{value:a.button_load.text_color,color:a.button_load.text_color,onChange:e=>n({button_load:{text_color:e}}),disableCustomColors:!1,enableAlpha:!0,label:(0,t.__)("Change color text in button","wp-tiktok-feed")})),(0,e.createElement)("div",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Background","wp-tiktok-feed")),(0,e.createElement)(ae,{value:a.button_load.background,color:a.button_load.background,onChange:e=>n({button_load:{background:e}}),disableCustomColors:!1,enableAlpha:!0,label:(0,t.__)("Change background color in button","wp-tiktok-feed")})),(0,e.createElement)("div",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Background hover","wp-tiktok-feed")),(0,e.createElement)(ae,{value:a.button_load.background_hover,color:a.button_load.background_hover,onChange:e=>n({button_load:{background_hover:e}}),disableCustomColors:!1,enableAlpha:!0,label:(0,t.__)("Change background hover in button","wp-tiktok-feed")}))))}var ue=a(736),de=a.n(ue);class me extends e.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(){this.frame=wp.media({button:{text:(0,t.__)("Select","wp-tiktok-feed"),close:!1},states:[new wp.media.controller.Library({title:(0,t.__)("Select logo","wp-tiktok-feed"),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),r=!!parseInt((a.props.logo||{}).flex_height,10),l=e.get("width"),i=e.get("height");let o=parseInt((a.props.logo||{}).width,10),s=parseInt((a.props.logo||{}).height,10);const c=o/s,u=o,d=s;let m,p,f;return t.set("canSkipCrop",!a.mustBeCropped(n,r,o,s,l,i)),l/i>c?(s=i,o=s*c):(o=l,s=o/c),m=(l-o)/2,p=(i-s)/2,f={handles:!0,keys:!0,instance:!0,persistent:!0,imageWidth:l,imageHeight:i,minWidth:u>o?o:u,minHeight:d>s?s:d,x1:m,y1:p,x2:o+m,y2:s+p},!1===r&&!1===n&&(f.aspectRatio=o+":"+s),!0===r&&(delete f.minHeight,f.maxWidth=l),!0===n&&(delete f.minWidth,f.maxHeight=i),f}mustBeCropped(e,t,a,n,r,l){return!(!0===e&&!0===t||!0===e&&n===l||!0===t&&a===r||a===r&&n===l||r<=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",ee({className:v()("wp-tiktok-feed-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:"wp-tiktok-feed-control-media-upload__attachment__actions"},this.props.value?.attachment_id||this.props.value?.url?(0,e.createElement)(e.Fragment,null,(0,e.createElement)(w.Button,{disabled:!(Number(this.props.value?.attachment_id)>1),onClick:()=>this.props.onChange()},(0,t.__)("Remove","wp-tiktok-feed")),(0,e.createElement)(w.Button,{isBordered:!0,onClick:()=>this.openFrame()},this.props.filledLabel||(0,t.__)("Change","wp-tiktok-feed"))):(0,e.createElement)(w.Button,{className:v()("wp-tiktok-feed-control-media-upload__attachment__upload","upload_image_button button"),onClick:()=>this.openFrame(),style:{display:"inline-block"}},this.props.emptyLabel||(0,t.__)("Select image","wp-tiktok-feed"))))}}me.renderingConfig={hasRevertButton:!1},me.propTypes={value:de().object,onChange:de().func};const pe=me;function fe(){const{currentFeedFormData:a,setCurrentFeedFormData:n}=W();return(0,e.createElement)("div",{className:"tiktok__modal__panel"},(0,e.createElement)("div",{className:"qlttf-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,t.__)("Display","wp-tiktok-feed")),(0,e.createElement)("input",{type:"checkbox",checked:!!a.profile.display,onChange:e=>n({profile:{display:!!e.target.checked}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Display user profile or tag info","wp-tiktok-feed")," ")),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,t.__)("(This is a premium feature)","wp-tiktok-feed"))))),(0,e.createElement)("div",{className:v()("options_group",!a.profile.display&&"disabled-field")},(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Nickname","wp-tiktok-feed")),(0,e.createElement)("input",{type:"text",placeholder:"Nickname",value:a.profile.nickname,onChange:e=>n({profile:{nickname:e.target.value}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Profile nickname","wp-tiktok-feed"))),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,t.__)("(This is a premium feature)","wp-tiktok-feed")))),(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Username","wp-tiktok-feed")),(0,e.createElement)("input",{type:"text",value:a.profile.username,onChange:e=>n({profile:{username:e.target.value}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Profile username","wp-tiktok-feed"))),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,t.__)("(This is a premium feature)","wp-tiktok-feed")))),(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Link Text","wp-tiktok-feed")),(0,e.createElement)("input",{type:"text",placeholder:"TikTok",value:a.profile.link_text,onChange:e=>n({profile:{link_text:e.target.value}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Link text here","wp-tiktok-feed"))),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,t.__)("(This is a premium feature)","wp-tiktok-feed")))),(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Biography","wp-tiktok-feed")),(0,e.createElement)("input",{type:"text",value:a.profile.biography,onChange:e=>n({profile:{biography:e.target.value}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Profile description here","wp-tiktok-feed"))),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,t.__)("(This is a premium feature)","wp-tiktok-feed")))))),(0,e.createElement)("div",{className:v()("attachment-info options_group",!a.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,t.__)("Feed","wp-tiktok-feed"),":"),a.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:a.profile.avatar?a.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)(pe,{onChange:e=>{n({profile:{avatar:e.url}})}}),(0,e.createElement)("button",{onClick:()=>n({profile:{avatar:""}}),className:"remove_image_button button",disabled:!a.profile.avatar},"×"))))))))}function he(t){const{currentTab:a}=W();switch(a){case"general":return(0,e.createElement)($,null);case"profile":return(0,e.createElement)(fe,null);case"box":return(0,e.createElement)(ne,null);case"carousel":return(0,e.createElement)(re,null);case"video":return(0,e.createElement)(le,null);case"video-card":return(0,e.createElement)(ie,null);case"video-modal":return(0,e.createElement)(oe,null);case"button":return(0,e.createElement)(se,null);case"button-load-more":return(0,e.createElement)(ce,null);default:return a}}function ge(){const{setCurrentTab:t,currentTab:a,currentFeedFormData:n}=W();return(0,e.useEffect)(()=>{"carousel"!==a||["carousel","carousel-vertical"].includes(n.layout)||t("general"),"button-load-more"===a&&"trending"===n.source&&t("general")},[a,n.layout]),(0,e.createElement)("ul",{className:"tiktok-modal__tabs"},z.map(({name:r,label:l})=>"carousel"!==r||["carousel","carousel-vertical"].includes(n.layout)?"button-load-more"===r&&"trending"===n.source?null:(0,e.createElement)("li",{key:r,className:v()("media-modal-tab",r==a&&"active")},(0,e.createElement)("a",{href:"#",onClick:e=>{e.preventDefault(),t(r)}},(0,e.createElement)("span",null,l))):null).filter(e=>!!e))}function ke({isOpen:t,setIsOpen:a}){const{currentFeedIndex:n,currentFeedFormData:r,feeds:l,createFeed:i,editFeed:o}=W(),[s,c]=(0,e.useState)(!1),u=l?.[n]?.id,d=void 0===u;return(0,e.createElement)("div",null,(0,e.createElement)("form",{onSubmit:async e=>{let t;e.preventDefault(),c(!0),t=d?await i(r):await o(r),c(!1),t&&a(!1)}},(0,e.createElement)("div",{className:"media-modal-content"},(0,e.createElement)("div",{className:"edit-attachment-frame mode-select"},(0,e.createElement)(K,{isOpen:t,setIsOpen:a,isNewFeed:d,currentFeedId:u}),(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)(ge,null),(0,e.createElement)("div",{style:{height:"100%",overflowX:"hidden"}},(0,e.createElement)(he,null)))))),(0,e.createElement)(Z,{isOpen:t,setIsOpen:a,isLoading:s,setIsLoading:c})))))}const _e=(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"50px",height:"50px",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24"},(0,e.createElement)("path",{fill:"currentColor",d:"M24.01 6.797a1.341 1.341 0 0 0-1.034-.487h-.035h.002h-3.441l.954-4.643A1.4 1.4 0 0 0 20.188.48l.002.003a1.345 1.345 0 0 0-1.036-.486h-.033h.002c-.9.029-1.643.665-1.835 1.51l-.003.013l-.259 1.262c-.008.032-.022.062-.029.094l-.708 3.435h-5.793l.954-4.643a1.4 1.4 0 0 0-.268-1.187l.002.003a1.345 1.345 0 0 0-1.036-.486h-.033h.002c-.9.029-1.643.665-1.835 1.51l-.003.013l-.27 1.313c0 .015-.01.028-.013.042l-.702 3.435H3.547c-.9.029-1.643.664-1.836 1.509l-.003.013a1.4 1.4 0 0 0 .267 1.188l-.002-.003c.248.298.619.487 1.035.487h.034h-.002h3.597l-1.022 4.97H1.864c-.9.029-1.643.665-1.836 1.51l-.003.013a1.404 1.404 0 0 0 .267 1.185L.29 17.18c.249.298.62.487 1.036.487h.034h-.002h3.597l-.96 4.668a1.4 1.4 0 0 0 .268 1.187l-.002-.003c.249.298.62.487 1.036.487h.033h-.002a1.947 1.947 0 0 0 1.836-1.51l.003-.013l.99-4.814h5.796l-.96 4.668a1.4 1.4 0 0 0 .268 1.187l-.002-.003c.249.298.62.486 1.036.486h.033h-.002a1.945 1.945 0 0 0 1.835-1.51l.003-.013l.99-4.814h3.6a1.947 1.947 0 0 0 1.836-1.509l.003-.013a1.388 1.388 0 0 0-.263-1.188l.002.003a1.348 1.348 0 0 0-1.037-.487h-.036h.002h-3.447l1.022-4.97h3.6a1.947 1.947 0 0 0 1.836-1.51l.003-.013a1.401 1.401 0 0 0-.268-1.188l.002.003zM8.819 14.472l1.022-4.97h5.796l-1.022 4.97z"})),Ee=(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"50px",height:"50px",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24"},(0,e.createElement)("path",{fill:"currentColor",d:"M19.321 5.562a5.124 5.124 0 0 1-.443-.258a6.228 6.228 0 0 1-1.137-.966c-.849-.971-1.166-1.956-1.282-2.645h.004c-.097-.573-.057-.943-.05-.943h-3.865v14.943c0 .2 0 .399-.008.595c0 .024-.003.046-.004.073c0 .01 0 .022-.003.033v.009a3.28 3.28 0 0 1-1.65 2.604a3.226 3.226 0 0 1-1.6.422c-1.8 0-3.26-1.468-3.26-3.281c0-1.814 1.46-3.282 3.26-3.282c.341 0 .68.054 1.004.16l.005-3.936a7.178 7.178 0 0 0-5.532 1.62a7.583 7.583 0 0 0-1.655 2.04c-.163.281-.779 1.412-.853 3.246c-.047 1.04.266 2.12.415 2.565v.01c.093.262.457 1.158 1.049 1.913a7.856 7.856 0 0 0 1.674 1.58v-.01l.009.01c1.87 1.27 3.945 1.187 3.945 1.187c.359-.015 1.562 0 2.928-.647c1.515-.718 2.377-1.787 2.377-1.787a7.43 7.43 0 0 0 1.296-2.153c.35-.92.466-2.022.466-2.462V8.273c.047.028.672.441.672.441s.9.577 2.303.952c1.006.267 2.363.324 2.363.324V6.153c-.475.052-1.44-.098-2.429-.59Z"})),be=(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"50px",height:"50px",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24"},(0,e.createElement)("path",{fill:"currentColor",d:"M20 22H4v-2a5 5 0 0 1 5-5h6a5 5 0 0 1 5 5v2zm-8-9a6 6 0 1 1 0-12a6 6 0 0 1 0 12z"}));function ve({setIsOpen:a}){const[n,r]=(0,e.useState)({currentFeedId:null,isLoading:!1}),{createSuccessNotice:l,createErrorNotice:i,createWarningNotice:o}=(0,I.useDispatch)(R.store),{feeds:s,hasResolvedFeeds:c,deleteFeed:u}=(0,D.useFeedsEntities)(),{accounts:d,hasAccounts:m}=(0,D.useAccountsEntities)(),{setCurrentFeedIndex:p}=W();return c?(0,e.createElement)("div",{className:"welcome-tab wrap about-wrap full-width-layout"},(0,e.createElement)("div",null,(0,e.createElement)("button",{disabled:!m&&!window?.qlttf_pro_backend,className:"button button-primary",onClick:()=>{p(),a(!0)}},(0,t.__)("+ Feed","wp-tiktok-feed")),!m&&(0,e.createElement)("p",null,(0,t.__)("Go to the Accounts tab and create your access token.","wp-tiktok-feed")),(0,e.createElement)(j,null,(0,e.createElement)("thead",null,(0,e.createElement)("tr",null,(0,e.createElement)("th",null,(0,t.__)("Image","wp-tiktok-feed")),(0,e.createElement)("th",null,(0,t.__)("Source","wp-tiktok-feed")),(0,e.createElement)("th",null,(0,t.__)("Name","wp-tiktok-feed")),(0,e.createElement)("th",null,(0,t.__)("Layout","wp-tiktok-feed")),(0,e.createElement)("th",null,(0,t.__)("Shortcode","wp-tiktok-feed")),(0,e.createElement)("th",null,(0,t.__)("Actions","wp-tiktok-feed")))),(0,e.createElement)("tbody",null,s?.map((o,s)=>{let c="",m="";switch(o.source){case"username":c=be,m=o.username;break;case"hashtag":c=_e,m=o.hashtag;break;case"trending":c=Ee;break;default:c=d.find(e=>e.open_id===o.open_id)?.avatar,m=d.find(e=>e.open_id===o.open_id)?.username}return(0,e.createElement)("tr",{key:s},(0,e.createElement)("td",{width:"1%"},"account"===o.source?(0,e.createElement)("img",{className:"avatar",src:c||"http://2.gravatar.com/avatar/b642b4217b34b1e8d3bd915fc65c4452?s=150&d=mm&r=g"}):c),(0,e.createElement)("td",{width:"1%"},o.source),(0,e.createElement)("td",{width:"1%"},m),(0,e.createElement)("td",null,o.layout),(0,e.createElement)("td",null,(0,e.createElement)("input",{type:"text",value:`[tiktok-feed id="${o.id}"]`,readOnly:!0}),(0,e.createElement)("button",{className:"button button-secondary",onClick:async()=>{await k(`[tiktok-feed id="${o.id}"]`)?l((0,t.__)("Feed shortcode copied to clipboard.","wp-tiktok-feed"),{id:1,type:"snackbar"}):i((0,t.__)("Can't copy the refresh token.","wp-tiktok-feed"),{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,t.__)("Edit feed","wp-tiktok-feed"),onClick:()=>{p(s),a(!0)}},(0,t.__)("Edit","wp-tiktok-feed")),(0,e.createElement)("button",{className:"button button-secondary",title:(0,t.__)("Clear feed cache","wp-tiktok-feed"),onClick:async()=>{confirm((0,t.__)("You are about to reset the cache of this feed.","wp-tiktok-feed"))&&(r({isloading:!0,currentFeedId:o.id}),await(0,D.clearFeedCache)({method:"POST",data:{feedSettings:o}}),r({isLoading:!1}))}},(0,e.createElement)("i",{className:"dashicons dashicons dashicons-update"}),(0,t.__)("Cache","wp-tiktok-feed")),(0,e.createElement)("button",{className:"button button-secondary",title:(0,t.__)("Delete feed","wp-tiktok-feed"),onClick:async()=>{confirm((0,t.__)("You are about to delele this feed.","wp-tiktok-feed"))&&(r({isloading:!0,currentFeedId:o.id}),await u(o),r({isLoading:!1}))}},(0,e.createElement)("i",{className:"dashicons dashicons-trash"})),n&&n.currentFeedId===o.id&&(0,e.createElement)("span",{style:{visibility:"visible",position:"absolute"},className:"spinner"})))}))))):(0,e.createElement)(M,null)}const ye=()=>{const{Fill:t}=S(),[a,n]=(0,e.useState)(!1);return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(t.Header,null,(0,e.createElement)(E,null)),(0,e.createElement)(t.Navigation,null,(0,e.createElement)(y,null)),(0,e.createElement)(t.Content,null,(0,e.createElement)(Q,null,(0,e.createElement)(ve,{isOpen:a,setIsOpen:n}),(0,e.createElement)(O,{show:a,onClose:()=>n(!1),__experimentalHideHeader:!0},(0,e.createElement)(ke,{isOpen:a,setIsOpen:n})))))},we=()=>{const{Fill:a}=S();return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(a.Header,null,(0,e.createElement)(E,null)),(0,e.createElement)(a.Navigation,null,(0,e.createElement)(y,null)),(0,e.createElement)(a.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,t.__)("Premium","wp-tiktok-feed")),(0,e.createElement)("div",{className:"about-description"},(0,t.__)("Unlock the power of our premium TikTok Feed plugin which allows you to choose between six beautiful layouts and tone of customizing options.","wp-tiktok-feed")),(0,e.createElement)("br",null),(0,e.createElement)(P,{href:"https://quadlayers.com/products/tiktok-feed/?utm_source=qlttf_plugin&utm_medium=admin_tab&utm_campaign=premium_upgrade&utm_content=purchase_button",target:"_blank"},(0,t.__)("Purchase Now","wp-tiktok-feed")),(0,e.createElement)(P,{isSecondary:!0,href:"https://quadlayers.com/demo/tiktok-feed/?utm_source=qlttf_plugin&utm_medium=admin_tab&utm_campaign=demo&utm_content=demo_button",target:"_blank"},(0,t.__)("View demo","wp-tiktok-feed"))),(0,e.createElement)("hr",null),(0,e.createElement)("div",{className:"feature-section"},(0,e.createElement)("h3",null,(0,t.__)("Download videos","wp-tiktok-feed")),(0,e.createElement)("p",null,(0,t.__)("Include a download button inside the video pop up that allows your users to download TikTok feed videos directly from your site.","wp-tiktok-feed"))),(0,e.createElement)("div",{className:"feature-section"},(0,e.createElement)("h3",null,(0,t.__)("Customize Videos display","wp-tiktok-feed")),(0,e.createElement)("p",null,(0,t.__)("Customize the colors of the TikTok Feed including custom background, text, buttons background and mouseover effects, Videos padding, and a rounded border. It also includes the user or tag profile info in the header of the box.","wp-tiktok-feed"))),(0,e.createElement)("div",{className:"feature-section"},(0,e.createElement)("h3",null,(0,t.__)("Card and box Videos display","wp-tiktok-feed")),(0,e.createElement)("p",null,(0,t.__)("TikTok Feed allows to display videos on a customized box. Or display videos into cards with video data in it.ed including custom background, text, buttons background and mouseover effects, Videos padding, and a rounded border.","wp-tiktok-feed"))),(0,e.createElement)("div",{className:"feature-section"},(0,e.createElement)("h3",null,(0,t.__)("Load more button","wp-tiktok-feed")),(0,e.createElement)("p",null,(0,t.__)("Allow your users to load more videos in the gallery providing an improved user experience.","wp-tiktok-feed")))),(0,e.createElement)("div",{className:"column"},(0,e.createElement)("img",{src:g("/assets/backend/img/tiktok-feed.png")}))),(0,e.createElement)("div",{className:"has-2-columns is-wider-left"},(0,e.createElement)("div",{className:"column"},(0,e.createElement)("img",{src:g("/assets/backend/img/tiktok-feed-highlight.png")})),(0,e.createElement)("div",{className:"column"},(0,e.createElement)("br",null),(0,e.createElement)("div",{className:"welcome-header"},(0,e.createElement)("h1",null,(0,t.__)("Video cards","wp-tiktok-feed")),(0,e.createElement)("div",{className:"about-description"},(0,t.__)("Wrap TikTok feed videos inside a box and display descriptions.","wp-tiktok-feed"))),(0,e.createElement)("hr",null),(0,e.createElement)("div",{className:"feature-section"},(0,e.createElement)("p",null,(0,t.__)("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.","wp-tiktok-feed"))))),(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,t.__)("Layouts","wp-tiktok-feed")),(0,e.createElement)("div",{className:"about-description"},(0,t.__)("Unlock the power of the carousel and highlight layouts that allows you to display the TikTok Feeds in a grid that supports items of variable size.","wp-tiktok-feed"))),(0,e.createElement)("hr",null),(0,e.createElement)("div",{className:"feature-section"},(0,e.createElement)("h3",null,(0,t.__)("Boxed layout","wp-tiktok-feed")),(0,e.createElement)("p",null,(0,t.__)("This option wraps the feed gallery inside a box where you can include the profile user info, tag info or displayed trend data.","wp-tiktok-feed"))),(0,e.createElement)("div",{className:"feature-section"},(0,e.createElement)("h3",null,(0,t.__)("Carousel layout","wp-tiktok-feed")),(0,e.createElement)("p",null,(0,t.__)("The carousel layout displays multiple videos inside an animated carousel with pagination and navigation controls. Including two alternative size for corousel: square and vertical options.","wp-tiktok-feed"))),(0,e.createElement)("div",{className:"feature-section"},(0,e.createElement)("h3",null,(0,t.__)("Highlight layout","wp-tiktok-feed")),(0,e.createElement)("p",null,(0,t.__)("The highlight layout is a grid that allows you to stand out some videos with two or three columns width size. Allowing highlight by tag, position or video id.","wp-tiktok-feed")))),(0,e.createElement)("div",{className:"column"},(0,e.createElement)("img",{src:g("/assets/backend/img/tiktok-feed-carousel-layout.png")}))))))},Ae=()=>{const{settings:a,hasResolvedSettings:n,saveSettings:r}=(0,D.useSettingsEntities)(),[l,i]=(0,e.useState)(!1),[o,s]=(0,e.useState)({}),c=e=>{const t=h(o,e);s(t)};return(0,e.useEffect)(()=>{n&&s(a)},[n,a]),n?(0,e.createElement)("div",{className:"wrap about-wrap full-width-layout"},(0,e.createElement)("form",{id:"qlttf-save-settings",onSubmit:async e=>{e.preventDefault(),i(!0),await r(o),i(!1)}},(0,e.createElement)(j,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,t.__)("Remove data","wp-tiktok-feed")),(0,e.createElement)("td",null,(0,e.createElement)("input",{type:"checkbox",checked:!!o.flush,onChange:e=>c({flush:!!e.target.checked})}),(0,e.createElement)("span",{className:"description"},(0,t.__)("Check this box to remove all data related to this plugin on uninstall.","wp-tiktok-feed")))),(0,e.createElement)("tr",null,(0,e.createElement)("th",null,(0,t.__)("Replace loader","wp-tiktok-feed")),(0,e.createElement)("td",null,(0,e.createElement)("div",{style:{display:"flex"}},(0,e.createElement)(pe,{onChange:e=>{c({spinner_image_url:e.url})}}),(0,e.createElement)("button",{className:"button button-secondary",onClick:()=>{c({spinner_image_url:""})},disabled:!o.spinner_image_url},(0,t.__)("Reset Spinner","wp-tiktok-feed"))),!o.spinner_image_url&&(0,e.createElement)("p",null,(0,e.createElement)("span",{className:"description"},(0,t.__)("Select an image from media library to replace the default loader icon.","wp-tiktok-feed")))),!!o.spinner_image_url&&(0,e.createElement)("td",{rowSpan:"2"},(0,e.createElement)("div",{className:"tiktok-feed-spinner"},(0,e.createElement)("img",{src:o.spinner_image_url}))))))))),(0,e.createElement)("tfoot",null,(0,e.createElement)("tr",null,(0,e.createElement)("td",{colSpan:"3"},(0,e.createElement)("span",{className:"spinner"}),(0,e.createElement)("button",{disabled:(0,d.isEqual)(a,o),type:"submit",className:"button button-primary secondary"},(0,t.__)("Save","wp-tiktok-feed")),l&&(0,e.createElement)("span",{style:{visibility:"visible"},className:"spinner"}))))))):(0,e.createElement)(M,null)},Ne=()=>{const{Fill:t}=S();return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(t.Header,null,(0,e.createElement)(E,null)),(0,e.createElement)(t.Navigation,null,(0,e.createElement)(y,null)),(0,e.createElement)(t.Content,null,(0,e.createElement)(Ae,null)))};var Se=a(405);const xe=()=>{const{Fill:t}=S();return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(t.Header,null,(0,e.createElement)(E,null)),(0,e.createElement)(t.Navigation,null,(0,e.createElement)(y,null)),(0,e.createElement)(t.Content,null,(0,e.createElement)(Se.List,{authorName:"quadlayers",columns:"2"})))},{tabParam:Ce,setBrowserTabParam:Pe}=(()=>{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())}}})(),Te=(0,e.createContext)({}),Fe=()=>(0,e.useContext)(Te),Oe=(e,t)=>"SET_CURRENT_TAB"===t.type?{...e,...t.payload,prevTab:e.currentTab}:e,Ie=({children:a})=>{const n=(0,l.applyFilters)("tiktok.app.tabs",[{label:(0,t.__)("Welcome","wp-tiktok-feed"),name:"welcome",content:F},{label:(0,t.__)("Accounts","wp-tiktok-feed"),name:"accounts",content:H},{label:(0,t.__)("Feeds","wp-tiktok-feed"),name:"feeds",content:ye},{label:(0,t.__)("Settings","wp-tiktok-feed"),name:"settings",href:"settings",content:Ne},{label:(0,t.__)("Premium","wp-tiktok-feed"),name:"premium",content:we},{label:(0,t.__)("Suggestions","wp-tiktok-feed"),name:"suggestions",content:xe}]),[r,i]=(0,e.useReducer)(Oe,(({defaultTab:e})=>({currentTab:Ce||e,currentTabSection:"",prevTab:null,prevSubTab:null,user:!1}))({defaultTab:n[0].name}));return(0,e.useEffect)(()=>{const e=Array.from(document.querySelectorAll("#toplevel_page_qlttf > ul > li")),t=r.currentTab[0].toUpperCase()+r.currentTab.slice(1).toLowerCase();e.map(e=>e.innerText===t?e?.classList.add("current"):e?.classList.remove("current"))},[r.currentTab]),(0,e.createElement)(Te.Provider,{value:{...r,setCurrentTab:e=>{r.currentTab!=e&&(Pe(e),i({type:"SET_CURRENT_TAB",payload:{currentTab:e}}))},tabs:n}},a)},Re=(Te.Consumer,()=>{const{currentTab:t,tabs:a}=Fe(),n=a.find(({name:e})=>e==t);if(!n)return(0,e.createElement)(e.Fragment,null,t);const r=n.content;return(0,e.createElement)(r,null)}),De=({children:t})=>(0,e.createElement)(x,null,(0,e.createElement)(C,null,({Slot:a,containerRef:n})=>(0,e.createElement)("div",{ref:n},(0,e.createElement)("header",null,(0,e.createElement)(a.Header,null)),(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))),Me=()=>(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Ie,null,(0,e.createElement)(De,null,(0,e.createElement)(Re,null))),(0,e.createElement)(r.EditorSnackbars,null));_(()=>{const t=document.getElementById("wpbody-content");(0,e.render)((0,e.createElement)(Me,null),t)})})(),(window.tiktok=window.tiktok||{}).backend=n})();
     46`;t.default=e=>{const t=e.authorName||"",{wordpressPlugins:a,isResolvingWordPressPlugins:n,installWordPressPlugin:r}=(0,u.useWordPressPlugins)(t),{isResolvingSitePlugins:l,sitePlugins:i,activateSitePlugin:f}=(0,u.useSitePlugins)();return n||l?o.default.createElement(c.Spinner,null):0!==a.length?o.default.createElement(m,{className:"wrap"},a.map(t=>{var a;const n=(null===(a=i.find(e=>e.name===t.slug))||void 0===a?void 0:a.status)||"install";return o.default.createElement(s.default,Object.assign({key:t.slug},t,e,{installWordPressPlugin:r,pluginStatus:n,activateSitePlugin:f}))})):o.default.createElement("div",{style:{maxWidth:"1200px"}},o.default.createElement(p,null,d.WordpressIcon,o.default.createElement("h3",null,"Plugins not found")))}},692:e=>{"use strict";e.exports=window.wp.notices},723:e=>{"use strict";e.exports=window.wp.i18n},736:(e,t,a)=>{e.exports=a(186)()},843:(e,t)=>{"use strict";var a="function"==typeof Symbol&&Symbol.for,n=a?Symbol.for("react.element"):60103,r=a?Symbol.for("react.portal"):60106,l=a?Symbol.for("react.fragment"):60107,i=a?Symbol.for("react.strict_mode"):60108,o=a?Symbol.for("react.profiler"):60114,s=a?Symbol.for("react.provider"):60109,c=a?Symbol.for("react.context"):60110,u=a?Symbol.for("react.async_mode"):60111,d=a?Symbol.for("react.concurrent_mode"):60111,m=a?Symbol.for("react.forward_ref"):60112,p=a?Symbol.for("react.suspense"):60113,f=a?Symbol.for("react.suspense_list"):60120,h=a?Symbol.for("react.memo"):60115,g=a?Symbol.for("react.lazy"):60116,k=a?Symbol.for("react.block"):60121,_=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 d:case l:case o:case i:case p:return e;default:switch(e=e&&e.$$typeof){case c:case m:case g:case h:case s:return e;default:return t}}case r:return t}}}function y(e){return v(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=s,t.Element=n,t.ForwardRef=m,t.Fragment=l,t.Lazy=g,t.Memo=h,t.Portal=r,t.Profiler=o,t.StrictMode=i,t.Suspense=p,t.isAsyncMode=function(e){return y(e)||v(e)===u},t.isConcurrentMode=y,t.isContextConsumer=function(e){return v(e)===c},t.isContextProvider=function(e){return v(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return v(e)===m},t.isFragment=function(e){return v(e)===l},t.isLazy=function(e){return v(e)===g},t.isMemo=function(e){return v(e)===h},t.isPortal=function(e){return v(e)===r},t.isProfiler=function(e){return v(e)===o},t.isStrictMode=function(e){return v(e)===i},t.isSuspense=function(e){return v(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===l||e===d||e===o||e===i||e===p||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===h||e.$$typeof===s||e.$$typeof===c||e.$$typeof===m||e.$$typeof===_||e.$$typeof===E||e.$$typeof===b||e.$$typeof===k)},t.typeOf=v},859:(e,t,a)=>{"use strict";a.r(t),a.d(t,{ServerStyleSheet:()=>Ue,StyleSheetConsumer:()=>ie,StyleSheetContext:()=>le,StyleSheetManager:()=>me,ThemeConsumer:()=>Re,ThemeContext:()=>Ie,ThemeProvider:()=>De,__PRIVATE__:()=>Ve,createGlobalStyle:()=>Be,css:()=>ye,default:()=>Je,isStyledComponent:()=>y,keyframes:()=>Ge,useTheme:()=>ze,version:()=>A,withTheme:()=>He});var n=a(959),r=a(609),l=a.n(r),i=a(945),o=a.n(i);const s=function(e){function t(e,n,s,c,m){for(var p,f,h,g,b,y=0,w=0,A=0,N=0,S=0,O=0,R=h=p=0,M=0,j=0,q=0,L=0,B=s.length,G=B-1,U="",H="",z="",V="";M<B;){if(f=s.charCodeAt(M),M===G&&0!==w+N+A+y&&(0!==w&&(f=47===w?10:47),N=A=y=0,B++,G++),0===w+N+A+y){if(M===G&&(0<j&&(U=U.replace(d,"")),0<U.trim().length)){switch(f){case 32:case 9:case 59:case 13:case 10:break;default:U+=s.charAt(M)}f=59}switch(f){case 123:for(p=(U=U.trim()).charCodeAt(0),h=1,L=++M;M<B;){switch(f=s.charCodeAt(M)){case 123:h++;break;case 125:h--;break;case 47:switch(f=s.charCodeAt(M+1)){case 42:case 47:e:{for(R=M+1;R<G;++R)switch(s.charCodeAt(R)){case 47:if(42===f&&42===s.charCodeAt(R-1)&&M+2!==R){M=R+1;break e}break;case 10:if(47===f){M=R+1;break e}}M=R}}break;case 91:f++;case 40:f++;case 34:case 39:for(;M++<G&&s.charCodeAt(M)!==f;);}if(0===h)break;M++}if(h=s.substring(L,M),0===p&&(p=(U=U.replace(u,"").trim()).charCodeAt(0)),64===p){switch(0<j&&(U=U.replace(d,"")),f=U.charCodeAt(1)){case 100:case 109:case 115:case 45:j=n;break;default:j=F}if(L=(h=t(n,j,h,f,m+1)).length,0<I&&(b=o(3,h,j=a(F,U,q),n,C,x,L,f,m,c),U=j.join(""),void 0!==b&&0===(L=(h=b.trim()).length)&&(f=0,h="")),0<L)switch(f){case 115:U=U.replace(v,i);case 100:case 109:case 45:h=U+"{"+h+"}";break;case 107:h=(U=U.replace(k,"$1 $2"))+"{"+h+"}",h=1===T||2===T&&l("@"+h,3)?"@-webkit-"+h+"@"+h:"@"+h;break;default:h=U+h,112===c&&(H+=h,h="")}else h=""}else h=t(n,a(n,U,q),h,c,m+1);z+=h,h=q=j=R=p=0,U="",f=s.charCodeAt(++M);break;case 125:case 59:if(1<(L=(U=(0<j?U.replace(d,""):U).trim()).length))switch(0===R&&(p=U.charCodeAt(0),45===p||96<p&&123>p)&&(L=(U=U.replace(" ",":")).length),0<I&&void 0!==(b=o(1,U,n,e,C,x,H.length,c,m,c))&&0===(L=(U=b.trim()).length)&&(U="\0\0"),p=U.charCodeAt(0),f=U.charCodeAt(1),p){case 0:break;case 64:if(105===f||99===f){V+=U+s.charAt(M);break}default:58!==U.charCodeAt(L-1)&&(H+=r(U,p,f,U.charCodeAt(2)))}q=j=R=p=0,U="",f=s.charCodeAt(++M)}}switch(f){case 13:case 10:47===w?w=0:0===1+p&&107!==c&&0<U.length&&(j=1,U+="\0"),0<I*D&&o(0,U,n,e,C,x,H.length,c,m,c),x=1,C++;break;case 59:case 125:if(0===w+N+A+y){x++;break}default:switch(x++,g=s.charAt(M),f){case 9:case 32:if(0===N+y+w)switch(S){case 44:case 58:case 9:case 32:g="";break;default:32!==f&&(g=" ")}break;case 0:g="\\0";break;case 12:g="\\f";break;case 11:g="\\v";break;case 38:0===N+w+y&&(j=q=1,g="\f"+g);break;case 108:if(0===N+w+y+P&&0<R)switch(M-R){case 2:112===S&&58===s.charCodeAt(M-3)&&(P=S);case 8:111===O&&(P=O)}break;case 58:0===N+w+y&&(R=M);break;case 44:0===w+A+N+y&&(j=1,g+="\r");break;case 34:case 39:0===w&&(N=N===f?0:0===N?f:N);break;case 91:0===N+w+A&&y++;break;case 93:0===N+w+A&&y--;break;case 41:0===N+w+y&&A--;break;case 40:0===N+w+y&&(0===p&&(2*S+3*O==533||(p=1)),A++);break;case 64:0===w+A+N+y+R+h&&(h=1);break;case 42:case 47:if(!(0<N+y+A))switch(w){case 0:switch(2*f+3*s.charCodeAt(M+1)){case 235:w=47;break;case 220:L=M,w=42}break;case 42:47===f&&42===S&&L+2!==M&&(33===s.charCodeAt(L+2)&&(H+=s.substring(L,M+1)),g="",w=0)}}0===w&&(U+=g)}O=S,S=f,M++}if(0<(L=H.length)){if(j=n,0<I&&void 0!==(b=o(2,H,j,e,C,x,L,c,m,c))&&0===(H=b).length)return V+H+z;if(H=j.join(",")+"{"+H+"}",0!==T*P){switch(2!==T||l(H,2)||(P=0),P){case 111:H=H.replace(E,":-moz-$1")+H;break;case 112:H=H.replace(_,"::-webkit-input-$1")+H.replace(_,"::-moz-$1")+H.replace(_,":-ms-input-$1")+H}P=0}}return V+H+z}function a(e,t,a){var r=t.trim().split(h);t=r;var l=r.length,i=e.length;switch(i){case 0:case 1:var o=0;for(e=0===i?"":e[0]+" ";o<l;++o)t[o]=n(e,t[o],a).trim();break;default:var s=o=0;for(t=[];o<l;++o)for(var c=0;c<i;++c)t[s++]=n(e[c]+" ",r[o],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(g,"$1"+e.trim());case 58:return e.trim()+t.replace(g,"$1"+e.trim());default:if(0<1*a&&0<t.indexOf("\f"))return t.replace(g,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function r(e,t,a,n){var i=e+";",o=2*t+3*a+4*n;if(944===o){e=i.indexOf(":",9)+1;var s=i.substring(e,i.length-1).trim();return s=i.substring(0,e).trim()+s+";",1===T||2===T&&l(s,1)?"-webkit-"+s+s:s}if(0===T||2===T&&!l(i,1))return i;switch(o){case 1015:return 97===i.charCodeAt(10)?"-webkit-"+i+i:i;case 951:return 116===i.charCodeAt(3)?"-webkit-"+i+i:i;case 963:return 110===i.charCodeAt(5)?"-webkit-"+i+i:i;case 1009:if(100!==i.charCodeAt(4))break;case 969:case 942:return"-webkit-"+i+i;case 978:return"-webkit-"+i+"-moz-"+i+i;case 1019:case 983:return"-webkit-"+i+"-moz-"+i+"-ms-"+i+i;case 883:if(45===i.charCodeAt(8))return"-webkit-"+i+i;if(0<i.indexOf("image-set(",11))return i.replace(S,"$1-webkit-$2")+i;break;case 932:if(45===i.charCodeAt(4))switch(i.charCodeAt(5)){case 103:return"-webkit-box-"+i.replace("-grow","")+"-webkit-"+i+"-ms-"+i.replace("grow","positive")+i;case 115:return"-webkit-"+i+"-ms-"+i.replace("shrink","negative")+i;case 98:return"-webkit-"+i+"-ms-"+i.replace("basis","preferred-size")+i}return"-webkit-"+i+"-ms-"+i+i;case 964:return"-webkit-"+i+"-ms-flex-"+i+i;case 1023:if(99!==i.charCodeAt(8))break;return"-webkit-box-pack"+(s=i.substring(i.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+i+"-ms-flex-pack"+s+i;case 1005:return p.test(i)?i.replace(m,":-webkit-")+i.replace(m,":-moz-")+i:i;case 1e3:switch(t=(s=i.substring(13).trim()).indexOf("-")+1,s.charCodeAt(0)+s.charCodeAt(t)){case 226:s=i.replace(b,"tb");break;case 232:s=i.replace(b,"tb-rl");break;case 220:s=i.replace(b,"lr");break;default:return i}return"-webkit-"+i+"-ms-"+s+i;case 1017:if(-1===i.indexOf("sticky",9))break;case 975:switch(t=(i=e).length-10,o=(s=(33===i.charCodeAt(t)?i.substring(0,t):i).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|s.charCodeAt(7))){case 203:if(111>s.charCodeAt(8))break;case 115:i=i.replace(s,"-webkit-"+s)+";"+i;break;case 207:case 102:i=i.replace(s,"-webkit-"+(102<o?"inline-":"")+"box")+";"+i.replace(s,"-webkit-"+s)+";"+i.replace(s,"-ms-"+s+"box")+";"+i}return i+";";case 938:if(45===i.charCodeAt(5))switch(i.charCodeAt(6)){case 105:return s=i.replace("-items",""),"-webkit-"+i+"-webkit-box-"+s+"-ms-flex-"+s+i;case 115:return"-webkit-"+i+"-ms-flex-item-"+i.replace(w,"")+i;default:return"-webkit-"+i+"-ms-flex-line-pack"+i.replace("align-content","").replace(w,"")+i}break;case 973:case 989:if(45!==i.charCodeAt(3)||122===i.charCodeAt(4))break;case 931:case 953:if(!0===N.test(e))return 115===(s=e.substring(e.indexOf(":")+1)).charCodeAt(0)?r(e.replace("stretch","fill-available"),t,a,n).replace(":fill-available",":stretch"):i.replace(s,"-webkit-"+s)+i.replace(s,"-moz-"+s.replace("fill-",""))+i;break;case 962:if(i="-webkit-"+i+(102===i.charCodeAt(5)?"-ms-"+i:"")+i,211===a+n&&105===i.charCodeAt(13)&&0<i.indexOf("transform",10))return i.substring(0,i.indexOf(";",27)+1).replace(f,"$1-webkit-$2")+i}return i}function l(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(A,"$1"),a,t)}function i(e,t){var a=r(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return a!==t+";"?a.replace(y," or ($1)").substring(4):"("+t+")"}function o(e,t,a,n,r,l,i,o,s,u){for(var d,m=0,p=t;m<I;++m)switch(d=O[m].call(c,e,p,a,n,r,l,i,o,s,u)){case void 0:case!1:case!0:case null:break;default:p=d}if(p!==t)return p}function s(e){return void 0!==(e=e.prefix)&&(R=null,e?"function"!=typeof e?T=1:(T=2,R=e):T=0),s}function c(e,a){var n=e;if(33>n.charCodeAt(0)&&(n=n.trim()),n=[n],0<I){var r=o(-1,a,n,n,C,x,0,0,0,0);void 0!==r&&"string"==typeof r&&(a=r)}var l=t(F,n,a,0,0);return 0<I&&void 0!==(r=o(-2,l,n,n,C,x,l.length,0,0,0))&&(l=r),P=0,x=C=1,l}var u=/^\0+/g,d=/[\0\r\f]/g,m=/: */g,p=/zoo|gra/,f=/([,: ])(transform)/g,h=/,\r+?/g,g=/([\t\r\n ])*\f?&/g,k=/@(k\w+)\s*(\S*)\s*/,_=/::(place)/g,E=/:(read-only)/g,b=/[svh]\w+-[tblr]{2}/,v=/\(\s*(.*)\s*\)/g,y=/([\s\S]*?);/g,w=/-self|flex-/g,A=/[^]*?(:[rp][el]a[\w-]+)[^]*/,N=/stretch|:\s*\w+\-(?:conte|avail)/,S=/([^-])(image-set\()/,x=1,C=1,P=0,T=1,F=[],O=[],I=0,R=null,D=0;return c.use=function e(t){switch(t){case void 0:case null:I=O.length=0;break;default:if("function"==typeof t)O[I++]=t;else if("object"==typeof t)for(var a=0,n=t.length;a<n;++a)e(t[a]);else D=0|!!t}return e},c.set=s,void 0!==e&&s(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 d=/^((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|fetchpriority|fetchPriority|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|popover|popoverTarget|popoverTargetAction|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)-.*))$/,m=u(function(e){return d.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}),p=a(35),f=a.n(p);function h(){return(h=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 g=function(e,t){for(var a=[e[0]],n=0,r=t.length;n<r;n+=1)a.push(t[n],e[n+1]);return a},k=function(e){return null!==e&&"object"==typeof e&&"[object Object]"===(e.toString?e.toString():Object.prototype.toString.call(e))&&!(0,n.typeOf)(e)},_=Object.freeze([]),E=Object.freeze({});function b(e){return"function"==typeof e}function v(e){return e.displayName||e.name||"Component"}function y(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",A="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,r=n;e>=r;)(r<<=1)<0&&C(16,""+e);this.groupSizes=new Uint32Array(r),this.groupSizes.set(a),this.length=r;for(var l=n;l<r;l++)this.groupSizes[l]=0}for(var i=this.indexOfGroup(e+1),o=0,s=t.length;o<s;o++)this.tag.insertRule(i,t[o])&&(this.groupSizes[e]++,i++)},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 r=a;r<n;r++)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),r=n+a,l=n;l<r;l++)t+=this.tag.getRule(l)+"/*!sc*/\n";return t},e}(),T=new Map,F=new Map,O=1,I=function(e){if(T.has(e))return T.get(e);for(;F.has(O);)O++;var t=O++;return T.set(e,t),F.set(t,e),t},R=function(e){return F.get(e)},D=function(e,t){t>=O&&(O=t+1),T.set(e,t),F.set(t,e)},M="style["+w+'][data-styled-version="5.3.11"]',j=new RegExp("^"+w+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),q=function(e,t,a){for(var n,r=a.split(","),l=0,i=r.length;l<i;l++)(n=r[l])&&e.registerName(t,n)},L=function(e,t){for(var a=(t.textContent||"").split("/*!sc*/\n"),n=[],r=0,l=a.length;r<l;r++){var i=a[r].trim();if(i){var o=i.match(j);if(o){var s=0|parseInt(o[1],10),c=o[2];0!==s&&(D(c,s),q(e,c,o[3]),e.getTag().insertRules(s,n)),n.length=0}else n.push(i)}}},B=function(){return a.nc},G=function(e){var t=document.head,a=e||t,n=document.createElement("style"),r=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),l=void 0!==r?r.nextSibling:null;n.setAttribute(w,"active"),n.setAttribute("data-styled-version","5.3.11");var i=B();return i&&n.setAttribute("nonce",i),a.insertBefore(n,l),n},U=function(){function e(e){var t=this.element=G(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 r=t[a];if(r.ownerNode===e)return r}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=G(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}(),z=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}(),V=N,J={isServer:!N,useCSSOMInjection:!S},W=function(){function e(e,t,a){void 0===e&&(e=E),void 0===t&&(t={}),this.options=h({},J,{},e),this.gs=t,this.names=new Map(a),this.server=!!e.isServer,!this.server&&N&&V&&(V=!1,function(e){for(var t=document.querySelectorAll(M),a=0,n=t.length;a<n;a++){var r=t[a];r&&"active"!==r.getAttribute(w)&&(L(e,r),r.parentNode&&r.parentNode.removeChild(r))}}(this))}e.registerId=function(e){return I(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,a){return void 0===a&&(a=!0),new e(h({},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,r=t.target,e=a?new z(r):n?new U(r):new H(r),new P(e)));var e,t,a,n,r},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(I(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(I(e),a)},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.clearRules=function(e){this.getTag().clearGroup(I(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="",r=0;r<a;r++){var l=R(r);if(void 0!==l){var i=e.names.get(l),o=t.getGroup(r);if(i&&o&&i.size){var s=w+".g"+r+'[id="'+l+'"]',c="";void 0!==i&&i.forEach(function(e){e.length>0&&(c+=e+",")}),n+=""+o+s+'{content:"'+c+'"}/*!sc*/\n'}}}return n}(this)},e}(),Y=/(a)(d)/gi,Q=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=Q(t%52)+a;return(Q(t%52)+a).replace(Y,"$1-$2")}var K=function(e,t){for(var a=t.length;a;)e=33*e^t.charCodeAt(--a);return e},X=function(e){return K(5381,e)};function $(e){for(var t=0;t<e.length;t+=1){var a=e[t];if(b(a)&&!y(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)&&$(e),this.componentId=t,this.baseHash=K(ee,t),this.baseStyle=a,W.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,a){var n=this.componentId,r=[];if(this.baseStyle&&r.push(this.baseStyle.generateAndInjectStyles(e,t,a)),this.isStatic&&!a.hash)if(this.staticRulesId&&t.hasNameForId(n,this.staticRulesId))r.push(this.staticRulesId);else{var l=be(this.rules,e,t,a).join(""),i=Z(K(this.baseHash,l)>>>0);if(!t.hasNameForId(n,i)){var o=a(l,"."+i,void 0,n);t.insertRules(n,i,o)}r.push(i),this.staticRulesId=i}else{for(var s=this.rules.length,c=K(this.baseHash,a.hash),u="",d=0;d<s;d++){var m=this.rules[d];if("string"==typeof m)u+=m;else if(m){var p=be(m,e,t,a),f=Array.isArray(p)?p.join(""):p;c=K(c,f+d),u+=f}}if(u){var h=Z(c>>>0);if(!t.hasNameForId(n,h)){var g=a(u,"."+h,void 0,n);t.insertRules(n,h,g)}r.push(h)}}return r.join(" ")},e}(),ae=/^\s*\/\/.*$/gm,ne=[":","[",".","#"];function re(e){var t,a,n,r,l=void 0===e?E:e,i=l.options,o=void 0===i?E:i,c=l.plugins,u=void 0===c?_:c,d=new s(o),m=[],p=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(a,n,r,l,i,o,s,c,u,d){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(r[0]+n),"";default:return n+(0===d?"/*|*/":"")}case-2:n.split("/*|*/}").forEach(t)}}}(function(e){m.push(e)}),f=function(e,n,l){return 0===n&&-1!==ne.indexOf(l[a.length])||l.match(r)?e:"."+t};function h(e,l,i,o){void 0===o&&(o="&");var s=e.replace(ae,""),c=l&&i?i+" "+l+" { "+s+" }":s;return t=o,a=l,n=new RegExp("\\"+a+"\\b","g"),r=new RegExp("(\\"+a+"\\b){2,}"),d(i||!l?"":l,c)}return d.use([].concat(u,[function(e,t,r){2===e&&r.length&&r[0].lastIndexOf(a)>0&&(r[0]=r[0].replace(n,f))},p,function(e){if(-2===e){var t=m;return m=[],t}}])),h.hash=u.length?u.reduce(function(e,t){return t.name||C(15),K(e,t.name)},5381).toString():"",h}var le=l().createContext(),ie=le.Consumer,oe=l().createContext(),se=(oe.Consumer,new W),ce=re();function ue(){return(0,r.useContext)(le)||se}function de(){return(0,r.useContext)(oe)||ce}function me(e){var t=(0,r.useState)(e.stylisPlugins),a=t[0],n=t[1],i=ue(),s=(0,r.useMemo)(function(){var t=i;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,r.useMemo)(function(){return re({options:{prefix:!e.disableVendorPrefixes},plugins:a})},[e.disableVendorPrefixes,a]);return(0,r.useEffect)(function(){o()(a,e.stylisPlugins)||n(e.stylisPlugins)},[e.stylisPlugins]),l().createElement(le.Provider,{value:s},l().createElement(oe.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}(),fe=/([A-Z])/,he=/([A-Z])/g,ge=/^ms-/,ke=function(e){return"-"+e.toLowerCase()};function _e(e){return fe.test(e)?e.replace(he,ke).replace(ge,"-ms-"):e}var Ee=function(e){return null==e||!1===e||""===e};function be(e,t,a,n){if(Array.isArray(e)){for(var r,l=[],i=0,o=e.length;i<o;i+=1)""!==(r=be(e[i],t,a,n))&&(Array.isArray(r)?l.push.apply(l,r):l.push(r));return l}return Ee(e)?"":y(e)?"."+e.styledComponentId:b(e)?"function"!=typeof(s=e)||s.prototype&&s.prototype.isReactComponent||!t?e:be(e(t),t,a,n):e instanceof pe?a?(e.inject(a,n),e.getName(n)):e:k(e)?function e(t,a){var n,r,l=[];for(var i in t)t.hasOwnProperty(i)&&!Ee(t[i])&&(Array.isArray(t[i])&&t[i].isCss||b(t[i])?l.push(_e(i)+":",t[i],";"):k(t[i])?l.push.apply(l,e(t[i],i)):l.push(_e(i)+": "+(n=i,(null==(r=t[i])||"boolean"==typeof r||""===r?"":"number"!=typeof r||0===r||n in c||n.startsWith("--")?String(r).trim():r+"px")+";")));return a?[a+" {"].concat(l,["}"]):l}(e):e.toString();var s}var ve=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function ye(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)||k(e)?ve(be(g(_,[e].concat(a)))):0===a.length&&1===e.length&&"string"==typeof e[0]?e:ve(be(g(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},Ae=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Ne=/(^-|-$)/g;function Se(e){return e.replace(Ae,"-").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)},Te=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function Fe(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 r=0,l=a;r<l.length;r++){var i=l[r];if(Pe(i))for(var o in i)Te(o)&&Fe(e,i[o],o)}return e}var Ie=l().createContext(),Re=Ie.Consumer;function De(e){var t=(0,r.useContext)(Ie),a=(0,r.useMemo)(function(){return function(e,t){return e?b(e)?e(t):Array.isArray(e)||"object"!=typeof e?C(8):t?h({},t,{},e):e:C(14)}(e.theme,t)},[e.theme,t]);return e.children?l().createElement(Ie.Provider,{value:a},e.children):null}var Me={};function je(e,t,a){var n=y(e),i=!Ce(e),o=t.attrs,s=void 0===o?_:o,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,d=t.displayName,p=void 0===d?function(e){return Ce(e)?"styled."+e:"Styled("+v(e)+")"}(e):d,g=t.displayName&&t.componentId?Se(t.displayName)+"-"+t.componentId:t.componentId||u,k=n&&e.attrs?Array.prototype.concat(e.attrs,s).filter(Boolean):s,w=t.shouldForwardProp;n&&e.shouldForwardProp&&(w=t.shouldForwardProp?function(a,n,r){return e.shouldForwardProp(a,n,r)&&t.shouldForwardProp(a,n,r)}:e.shouldForwardProp);var A,N=new te(a,g,n?e.componentStyle:void 0),S=N.isStatic&&0===s.length,x=function(e,t){return function(e,t,a,n){var l=e.attrs,i=e.componentStyle,o=e.defaultProps,s=e.foldedComponentIds,c=e.shouldForwardProp,u=e.styledComponentId,d=e.target,p=function(e,t,a){void 0===e&&(e=E);var n=h({},t,{theme:e}),r={};return a.forEach(function(e){var t,a,l,i=e;for(t in b(i)&&(i=i(n)),i)n[t]=r[t]="className"===t?(a=r[t],l=i[t],a&&l?a+" "+l:a||l):i[t]}),[n,r]}(we(t,(0,r.useContext)(Ie),o)||E,t,l),f=p[0],g=p[1],k=function(e,t,a){var n=ue(),r=de();return t?e.generateAndInjectStyles(E,n,r):e.generateAndInjectStyles(a,n,r)}(i,n,f),_=a,v=g.$as||t.$as||g.as||t.as||d,y=Ce(v),w=g!==t?h({},t,{},g):t,A={};for(var N in w)"$"!==N[0]&&"as"!==N&&("forwardedAs"===N?A.as=w[N]:(c?c(N,m,v):!y||m(N))&&(A[N]=w[N]));return t.style&&g.style!==t.style&&(A.style=h({},t.style,{},g.style)),A.className=Array.prototype.concat(s,u,k!==u?k:null,t.className,g.className).filter(Boolean).join(" "),A.ref=_,(0,r.createElement)(v,A)}(A,e,t,S)};return x.displayName=p,(A=l().forwardRef(x)).attrs=k,A.componentStyle=N,A.displayName=p,A.shouldForwardProp=w,A.foldedComponentIds=n?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):_,A.styledComponentId=g,A.target=n?e.target:e,A.withComponent=function(e){var n=t.componentId,r=function(e,t){if(null==e)return{};var a,n,r={},l=Object.keys(e);for(n=0;n<l.length;n++)a=l[n],t.indexOf(a)>=0||(r[a]=e[a]);return r}(t,["componentId"]),l=n&&n+"-"+(Ce(e)?e:Se(v(e)));return je(e,h({},r,{attrs:k,componentId:l}),a)},Object.defineProperty(A,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=n?Oe({},e.defaultProps,t):t}}),Object.defineProperty(A,"toString",{value:function(){return"."+A.styledComponentId}}),i&&f()(A,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),A}var qe=function(e){return function e(t,a,r){if(void 0===r&&(r=E),!(0,n.isValidElementType)(a))return C(1,String(a));var l=function(){return t(a,r,ye.apply(void 0,arguments))};return l.withConfig=function(n){return e(t,a,h({},r,{},n))},l.attrs=function(n){return e(t,a,h({},r,{attrs:Array.prototype.concat(r.attrs,n).filter(Boolean)}))},l}(je,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){qe[e]=qe(e)});var Le=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=$(e),W.registerId(this.componentId+1)}var t=e.prototype;return t.createStyles=function(e,t,a,n){var r=n(be(this.rules,t,a,n).join(""),""),l=this.componentId+e;a.insertRules(l,l,r)},t.removeStyles=function(e,t){t.clearRules(this.componentId+e)},t.renderStyles=function(e,t,a,n){e>2&&W.registerId(this.componentId+e),this.removeStyles(e,a),this.createStyles(e,t,a,n)},e}();function Be(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 i=ye.apply(void 0,[e].concat(a)),o="sc-global-"+xe(JSON.stringify(i)),s=new Le(i,o);function c(e){var t=ue(),a=de(),n=(0,r.useContext)(Ie),l=(0,r.useRef)(t.allocateGSInstance(o)).current;return t.server&&u(l,e,t,n,a),(0,r.useLayoutEffect)(function(){if(!t.server)return u(l,e,t,n,a),function(){return s.removeStyles(l,t)}},[l,e,t,n,a]),null}function u(e,t,a,n,r){if(s.isStatic)s.renderStyles(e,x,a,r);else{var l=h({},t,{theme:we(t,n,c.defaultProps)});s.renderStyles(e,l,a,r)}}return l().memo(c)}function Ge(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 r=ye.apply(void 0,[e].concat(a)).join(""),l=xe(r);return new pe(l,r)}var Ue=function(){function e(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString();if(!t)return"";var a=B();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=B();return n&&(a.nonce=n),[l().createElement("style",h({},a,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new W({isServer:!0}),this.sealed=!1}var t=e.prototype;return t.collectStyles=function(e){return this.sealed?C(2):l().createElement(me,{sheet:this.instance},e)},t.interleaveWithNodeStream=function(e){return C(3)},e}(),He=function(e){var t=l().forwardRef(function(t,a){var n=(0,r.useContext)(Ie),i=e.defaultProps,o=we(t,n,i);return l().createElement(e,h({},t,{theme:o,ref:a}))});return f()(t,e),t.displayName="WithTheme("+v(e)+")",t},ze=function(){return(0,r.useContext)(Ie)},Ve={StyleSheet:W,masterSheet:se};const Je=qe},875:function(e,t,a){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,a,n){void 0===n&&(n=a);var r=Object.getOwnPropertyDescriptor(t,a);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,n,r)}:function(e,t,a,n){void 0===n&&(n=a),e[n]=t[a]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),l=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 r(t,e),t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.storeConfig=void 0;const o=a(143),s=a(86),c=i(a(195)),u=l(a(24)),d=l(a(973)),m=l(a(355));t.storeConfig={reducer:c.default,actions:u,selectors:d,resolvers:m};const p=(0,o.createReduxStore)(s.STORE_NAME,t.storeConfig);(0,o.register)(p)},945:e=>{e.exports=function(e,t,a,n){var r=a?a.call(n,e,t):void 0;if(void 0!==r)return!!r;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var l=Object.keys(e),i=Object.keys(t);if(l.length!==i.length)return!1;for(var o=Object.prototype.hasOwnProperty.bind(t),s=0;s<l.length;s++){var c=l[s];if(!o(c))return!1;var u=e[c],d=t[c];if(!1===(r=a?a.call(n,u,d,c):void 0)||void 0===r&&u!==d)return!1}return!0}},959:(e,t,a)=>{"use strict";e.exports=a(843)},973:(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},985:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}},t={};function a(n){var r=t[n];if(void 0!==r)return r.exports;var l=t[n]={exports:{}};return e[n].call(l.exports,l,l.exports,a),l.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:()=>Me,AppProvider:()=>Ie,AppStructure:()=>De,AppTabSwitcher:()=>Re,Header:()=>E,Nav:()=>y,Spinner:()=>M,Table:()=>j,apiFetch:()=>f,copyInClipboard:()=>k,deepMerge:()=>h,getPluginURL:()=>g,onDocumentLoaded:()=>_,useAppSlotContext:()=>S});var e=a(87),t=a(723);const r=window.wp.editor,l=window.wp.hooks,i=qlttf_backend.QLTTF_PLUGIN_NAME,o=qlttf_backend.QLTTF_PLUGIN_VERSION,s=(qlttf_backend.QLTTF_PLUGIN_FILE,qlttf_backend.QLTTF_PLUGIN_DIR,qlttf_backend.QLTTF_DOMAIN,qlttf_backend.QLTTF_PREFIX,qlttf_backend.QLTTF_WORDPRESS_URL,qlttf_backend.QLTTF_REVIEW_URL,qlttf_backend.QLTTF_GROUP_URL),c=(qlttf_backend.QLTTF_DEVELOPER,qlttf_backend.QLTTF_TIKTOK_URL,qlttf_backend.QLTTF_ACCESS_TOKEN_LINK),u=qlttf_backend.QLTTF_FEED_MODEL,d=(qlttf_backend.QLTTF_REST_ROUTES,window.lodash);var m=a(455),p=a.n(m);async function f(e){return await p()(e).then(e=>{if(e.code)throw new Error(`${e.code}: ${e?.message||"Unknown"}`);return e}).catch(e=>{throw new Error(JSON.stringify(e))})}function h(e,t){const a={};return new Set([...Object.keys(e),...Object.keys(t)]).forEach(n=>{e.hasOwnProperty(n)&&t.hasOwnProperty(n)?(0,d.isObject)(e[n])&&!Array.isArray(e[n])?a[n]=h(e[n],t[n]):a[n]=t[n]:e.hasOwnProperty(n)?a[n]=e[n]:t.hasOwnProperty(n)&&(a[n]=t[n])}),a}function g(e){return qlttf_backend.plugin_url+e}function k(e){return navigator.clipboard&&navigator.clipboard.writeText?navigator.clipboard.writeText(e).then(function(){return!0},function(){return!1}):new Promise(t=>{try{const a=document.createElement("textarea");a.value=e,a.style.position="fixed",a.style.left="-999999px",a.style.top="-999999px",document.body.appendChild(a),a.focus(),a.select();const n=document.execCommand("copy");document.body.removeChild(a),t(n)}catch(e){console.error("Failed to copy text: ",e),t(!1)}})}const _=e=>{/comp|inter|loaded/.test(document.readyState)?e():document.addEventListener("DOMContentLoaded",e,!1)},E=()=>(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"wrap about-wrap full-width-layout"},(0,e.createElement)("h1",null,i),(0,e.createElement)("p",{className:"about-text"},(0,t.sprintf)((0,t.__)("Thanks for using %s! We are doing our best to offer you the best alternatives to display TikTok videos on your site, helping you to improve communication experience with your users.","wp-tiktok-feed"),i)),(0,e.createElement)("p",{className:"about-text"},(0,e.createElement)("a",{href:"https://quadlayers.com/products/tiktok-feed/?utm_source=qlttf_plugin&utm_medium=admin_header&utm_campaign=premium_upgrade&utm_content=premium_link",target:"__blank"},(0,t.__)("Premium","wp-tiktok-feed"))," ","|",(0,e.createElement)("a",{href:"https://quadlayers.com/demo/tiktok-feed/?utm_source=qlttf_plugin&utm_medium=admin_header&utm_campaign=demo&utm_content=demo_link",target:"__blank"},(0,t.__)("Demo","wp-tiktok-feed"))," ","|",(0,e.createElement)("a",{href:"https://quadlayers.com/documentation/tiktok-feed/?utm_source=qlttf_plugin&utm_medium=admin_header&utm_campaign=documentation&utm_content=documentation_link",target:"__blank"},(0,t.__)("Documentation","wp-tiktok-feed"))),(0,e.createElement)("a",{href:"https://quadlayers.com/?utm_source=qlttf_plugin&utm_medium=admin_header&utm_campaign=branding&utm_content=header_logo",target:"_blank",rel:"noreferrer"},(0,e.createElement)("div",{style:{backgroundImage:`url(${g("/assets/backend/img/quadlayers.jpg")})`},className:"wp-badge quadlayers__logo"},"QuadLayers"))));var b=a(500),v=a.n(b);const y=function(){const{currentTab:t,setCurrentTab:a,tabs:n}=Fe();return(0,e.useEffect)(()=>{(e=>{const t=Array.from(document.querySelector("#toplevel_page_qlttf_backend .wp-submenu").children),a=e[0].toUpperCase()+e.slice(1).toLowerCase();t.map(e=>{e.innerText.trim()==a?e.classList.add("current"):e.classList.remove("current")})})(t)},[t]),(0,e.createElement)("div",{className:"wrap about-wrap full-width-layout"},(0,e.createElement)("ul",{className:"nav-tab-wrapper"},n.map(({label:n,name:r},l)=>(0,e.createElement)("li",{key:l,className:"nav-tab-li",onClick:e=>{e.preventDefault(),e.stopPropagation(),a(r)}},(0,e.createElement)("a",{href:"#",className:v()("nav-tab",t===r&&"nav-tab-active"),onClick:e=>{e.preventDefault()}},n)))))},w=window.wp.components,A=window.wp.compose,N=(0,e.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}}),S=()=>(0,e.useContext)(N),x=t=>{const a=(0,e.useRef)(),{children:n}=t,r=`tiktok.admin.Control.Slot.${(0,A.useInstanceId)(x)}`,l={},i={},{Fill:o,Slot:s}=(0,e.useCallback)((0,w.createSlotFill)(`${r}.header`),[r]),{Fill:c,Slot:u}=(0,e.useCallback)((0,w.createSlotFill)(`${r}.navigation`),[r]),{Fill:d,Slot:m}=(0,e.useCallback)((0,w.createSlotFill)(`${r}content`),[r]),{Fill:p,Slot:f}=(0,e.useCallback)((0,w.createSlotFill)(`${r}.aside`),[r]),{Fill:h,Slot:g}=(0,e.useCallback)((0,w.createSlotFill)(`${r}.footer`),[r]);return l.Header=s,i.Header=o,l.Navigation=u,i.Navigation=c,l.Content=m,i.Content=d,l.Aside=f,i.Aside=p,l.Footer=g,i.Footer=h,(0,e.createElement)(w.SlotFillProvider,null,(0,e.createElement)(N.Provider,{value:{Slot:l,Fill:i,containerRef:a}},n))},C=N.Consumer,P=({isSecondary:t,href:a,title:n,target:r="_self",tagName:l="a",className:i,children:o})=>{const s=l;return(0,e.createElement)(s,{className:v()("tiktok__button",t&&"tiktok__button--secondary",i),href:a,target:r,title:n},o)},T=()=>(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,i,(0,e.createElement)("span",{style:{fontSize:"24px",color:"#555"}}," ","v",o," ")),(0,e.createElement)("div",{className:"about-text"},(0,e.createElement)("p",null,(0,t.sprintf)((0,t.__)("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","wp-tiktok-feed"),i)))),(0,e.createElement)("hr",null),(0,e.createElement)("div",{className:"feature-section"},(0,e.createElement)("h3",null,(0,t.__)("Premium","wp-tiktok-feed")),(0,e.createElement)("p",null,(0,t.sprintf)((0,t.__)("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.","wp-tiktok-feed"),i)),(0,e.createElement)(P,{href:"https://quadlayers.com/products/tiktok-feed/?utm_source=qlttf_plugin&utm_medium=admin_tab&utm_campaign=premium_upgrade&utm_content=purchase_button",target:"_blank"},(0,t.__)("Purchase Now","wp-tiktok-feed"))),(0,e.createElement)("div",{className:"feature-section"},(0,e.createElement)("h3",null,(0,t.__)("Demo","wp-tiktok-feed")),(0,e.createElement)("p",null,(0,t.sprintf)((0,t.__)("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.","wp-tiktok-feed"),i)),(0,e.createElement)(P,{isSecondary:!0,href:"https://quadlayers.com/demo/tiktok-feed/?utm_source=qlttf_plugin&utm_medium=admin_tab&utm_campaign=demo&utm_content=demo_button",target:"_blank"},(0,t.__)("View demo","wp-tiktok-feed"))),(0,e.createElement)("div",{className:"feature-section"},(0,e.createElement)("h3",null,(0,t.__)("Support","wp-tiktok-feed")),(0,e.createElement)("p",null,(0,t.sprintf)((0,t.__)("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.","wp-tiktok-feed"),i)),(0,e.createElement)(P,{isSecondary:!0,href:"https://quadlayers.com/account/support/?utm_source=qlttf_plugin&utm_medium=admin_tab&utm_campaign=support&utm_content=support_button",target:"_blank"},(0,t.__)("Submit ticket","wp-tiktok-feed"))),(0,e.createElement)("div",{className:"feature-section"},(0,e.createElement)("h3",null,(0,t.__)("Comunnity","wp-tiktok-feed")),(0,e.createElement)("p",null,(0,t.sprintf)((0,t.__)("If you want to get in touch with other %s users or be aware of our promotional discounts join our community now.","wp-tiktok-feed"),i)),(0,e.createElement)(P,{isSecondary:!0,href:s,target:"_blank"},(0,t.__)("Join our community","wp-tiktok-feed")))),(0,e.createElement)("div",{className:"column"},(0,e.createElement)("img",{src:g("/assets/backend/img/mobile.png")})))),F=()=>{const{Fill:t}=S();return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(t.Header,null,(0,e.createElement)(E,null)),(0,e.createElement)(t.Navigation,null,(0,e.createElement)(y,null)),(0,e.createElement)(t.Content,null,(0,e.createElement)(T,null)))},O=({title:t,show:a,onClose:n,children:r,className:l,__experimentalHideHeader:i=!1})=>{const o=(0,e.useRef)();return(0,e.useEffect)(()=>{const e=e=>{a&&o?.current&&o.current===e.target&&n(e)};return o?.current?.addEventListener("click",e),()=>{o?.current?.removeEventListener("click",e)}},[o,a]),a?(0,e.createElement)(w.Modal,{ref:o,title:t,onRequestClose:n,shouldCloseOnClickOutside:!1,className:v()("tiktok__modal media-modal wp-core-ui upload-php",l),__experimentalHideHeader:i},r):null};var I=a(143),R=a(692);const D=window.qlttf.store;function M(){return(0,e.createElement)("p",null,(0,e.createElement)("span",{style:{visibility:"visible"},className:"spinner"}),(0,t.__)("Loading…","wp-tiktok-feed"))}function j({children:t,style:a}){return(0,e.createElement)("table",{className:"form-table widefat striped tiktok__table",style:a},t)}const q=window.wp.date,L=({account:a,deleteAccount:n,createSuccessNotice:r,createErrorNotice:l})=>(0,e.createElement)("tr",null,(0,e.createElement)("td",{width:"1%"},(0,e.createElement)("img",{className:"avatar",src:a.avatar?a.avatar:"http://2.gravatar.com/avatar/b642b4217b34b1e8d3bd915fc65c4452?s=150&d=mm&r=g"})),(0,e.createElement)("td",null,a.username||(0,t.__)("Loading…","wp-tiktok-feed")),(0,e.createElement)("td",null,a.open_id),(0,e.createElement)("td",{style:{width:"300px"}},(0,e.createElement)("input",{type:"text",defaultValue:a.refresh_token,readOnly:!0}),(0,e.createElement)("button",{className:"button button-primary",onClick:async()=>{await k(a.refresh_token)?r((0,t.__)("Refresh token copied to clipboard.","wp-tiktok-feed"),{id:1,type:"snackbar"}):l((0,t.__)("Can't copy the refresh token.","wp-tiktok-feed"),{id:2,type:"snackbar"})}},(0,e.createElement)("i",{className:"dashicons dashicons-admin-page"}))),(0,e.createElement)("td",null,(0,q.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,t.sprintf)((0,t.__)("You are about to delete the %s account.","wp-tiktok-feed"),a.username))&&n(a.open_id,a.username)}},(0,e.createElement)("i",{className:"dashicons dashicons-trash"})))),B=t=>{const{href:a,target:n="_self",title:r,children:l,className:i}=t;return(0,e.createElement)("a",{href:a,className:v()("tiktok__account-button",i),target:n,title:r},l)},G=({isOpen:a,setIsOpen:n})=>{const{createSuccessNotice:r,createErrorNotice:l,createWarningNotice:i}=(0,I.useDispatch)(R.store),{accounts:o,hasAccounts:s,hasResolvedAccounts:u,deleteAccount:d}=(0,D.useAccountsEntities)();return u?(0,e.createElement)("div",{className:"wrap about-wrap full-width-layout"},(0,e.createElement)("p",null,(0,e.createElement)(B,{href:c,className:v()("tiktok__account-button",s&&"qlttf-premium-field"),target:"_self",title:(0,t.__)("Add TikTok Account","wp-tiktok-feed")},(0,t.__)("Add TikTok Account","wp-tiktok-feed")),(0,e.createElement)("a",{className:v()("tiktok__account-link",s&&"qlttf-premium-field"),href:"#",onClick:()=>n(!0)},(0,t.__)("Button not working?","wp-tiktok-feed")),(0,e.createElement)("span",{className:"qlttf-premium-field"},(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,t.__)("Multiple user accounts are only allowed in the premium version.","wp-tiktok-feed"))))),o&&(0,e.createElement)(j,null,(0,e.createElement)("thead",null,(0,e.createElement)("tr",null,(0,e.createElement)("th",null,(0,t.__)("Image","wp-tiktok-feed")),(0,e.createElement)("th",null,(0,t.__)("Username","wp-tiktok-feed")),(0,e.createElement)("th",null,(0,t.__)("Open Id","wp-tiktok-feed")),(0,e.createElement)("th",null,(0,t.__)("Refresh Token","wp-tiktok-feed")),(0,e.createElement)("th",null,(0,t.__)("Expires","wp-tiktok-feed")),(0,e.createElement)("th",null,(0,t.__)("Action","wp-tiktok-feed")))),(0,e.createElement)("tbody",null,o.map((t,a)=>(0,e.createElement)(L,{key:a,account:t,deleteAccount:d,createSuccessNotice:r,createErrorNotice:l}))))):(0,e.createElement)(M,null)},U=({isOpen:a,setIsOpen:n})=>{const{createAccount:r}=(0,D.useAccountsEntities)(),[l,i]=(0,e.useState)(!1),[o,s]=(0,e.useState)({refresh_token:""}),c=l||!o?.refresh_token;return(0,e.createElement)("div",null,(0,e.createElement)("form",{onSubmit:async e=>{e.preventDefault(),i(!0);const t=await r(o);i(!1),t&&n(!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:()=>n(!1)},(0,e.createElement)("span",{className:"media-modal-icon"},(0,e.createElement)("span",{className:"screen-reader-text"},(0,t.__)("Close dialog","wp-tiktok-feed"))))),(0,e.createElement)("div",{className:"media-frame-title"},(0,e.createElement)("h1",null,(0,t.__)("Manually connect an account","wp-tiktok-feed"))),(0,e.createElement)("div",{className:"media-frame-content"},(0,e.createElement)("div",{style:{height:"100%",overflowX:"hidden"}},(0,e.createElement)("div",{className:"tiktok__modal__panel"},(0,e.createElement)("div",{className:"options_group"},(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Refresh Token:","wp-tiktok-feed")),(0,e.createElement)("input",{style:{minWidth:260},type:"text",placeholder:(0,t.__)("Enter a valid refresh token","wp-tiktok-feed"),required:!0,value:o.refresh_token,onChange:e=>s({refresh_token:e.target.value})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("a",{style:{margin:"0 15px"},target:"_blank",href:"https://tiktokfeedv2.quadlayers.com/auth/",rel:"noreferrer"},(0,t.__)("Get access token","wp-tiktok-feed"))))),(0,e.createElement)("div",{className:"options_group",style:{borderBottom:"none"}},(0,e.createElement)("p",{className:"form-field"},(0,t.__)("Please copy and paste your refresh access token here.","wp-tiktok-feed")))))),(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)("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,t.__)("Save","wp-tiktok-feed")))))))))},H=()=>{const{Fill:t}=S(),[a,n]=(0,e.useState)(!1);return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(t.Header,null,(0,e.createElement)(E,null)),(0,e.createElement)(t.Navigation,null,(0,e.createElement)(y,null)),(0,e.createElement)(t.Content,null,(0,e.createElement)(G,{isOpen:a,setIsOpen:n}),(0,e.createElement)(O,{show:a,className:"tiktok__modal--account",onClose:()=>n(!1),__experimentalHideHeader:!0},(0,e.createElement)(U,{isOpen:a,setIsOpen:n}))))},z=[{label:(0,t.__)("General","wp-tiktok-feed"),name:"general"},{label:(0,t.__)("Profile","wp-tiktok-feed"),name:"profile"},{label:(0,t.__)("Carousel","wp-tiktok-feed"),name:"carousel"},{label:(0,t.__)("Box","wp-tiktok-feed"),name:"box"},{label:(0,t.__)("Video","wp-tiktok-feed"),name:"video"},{label:(0,t.__)("Card","wp-tiktok-feed"),name:"video-card"},{label:(0,t.__)("Modal","wp-tiktok-feed"),name:"video-modal"},{label:(0,t.__)("Button","wp-tiktok-feed"),name:"button"},{label:(0,t.__)("Button Load More","wp-tiktok-feed"),name:"button-load-more"}],V={currentFeedIndex:null,currentTab:z[0].name,prevPanel:null,currentFeedFormData:u},J=(0,e.createContext)({}),W=()=>(0,e.useContext)(J),Y=(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},Q=t=>{const{children:a}=t,[n,r]=(0,e.useReducer)(Y,V),{feeds:l,createFeed:i,editFeed:o}=(0,D.useFeedsEntities)(),s=l[n.currentFeedIndex],c=(0,d.isEqual)(s,n.currentFeedFormData);return(0,e.createElement)(J.Provider,{value:{...n,setCurrentTab:e=>{n.currentTab!=e&&r({type:"SET_CURRENT_TAB",payload:{currentTab:e}})},setCurrentFeedIndex:(e=null)=>{r({type:"SET_CURRENT_FEED",payload:{currentFeedIndex:e,currentFeedFormData:l?.[e]||V.currentFeedFormData}})},setCurrentFeedFormData:e=>{const t=h(n.currentFeedFormData,e);r({type:"SET_CURRENT_FEED_FORM_DATA",payload:{currentFeedFormData:void 0===t?"":t}})},feeds:l,createFeed:i,editFeed:o,isCurrentFeedDataModified:c}},a)};function Z({setIsOpen:a,isLoading:n}){const{isCurrentFeedDataModified:r,currentFeedFormData:l}=W(),i=n||r||(()=>{switch(l.source){case"account":if(""==l.open_id)return!0;break;case"username":if(""==l.username)return!0;break;case"hashtag":if(""==l.hashtag)return!0;break;default:return!1}})();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"},(0,e.createElement)("span",{className:"settings-save-status media-button",style:{float:"left"}},n&&(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:i},(0,t.__)("Save","wp-tiktok-feed")),(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:()=>a(!1)},(0,t.__)("Close","wp-tiktok-feed")))))}function K({setIsOpen:a,isNewFeed:n,currentFeedId:r}){const{feeds:l,currentFeedIndex:i,setCurrentFeedIndex:o}=W(),s=i-1,c=i+1;return(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"edit-media-header"},!n&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)("button",{type:"button",className:"left",disabled:!l[s],onClick:()=>{o(s)}},(0,e.createElement)("span",{className:"screen-reader-text"},(0,t.__)("Edit previous media item","wp-tiktok-feed"))),(0,e.createElement)("button",{type:"button",className:"right",disabled:!l[c],onClick:()=>{o(c)}},(0,e.createElement)("span",{className:"screen-reader-text"},(0,t.__)("Edit next media item","wp-tiktok-feed")))),(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,t.__)("Close dialog","wp-tiktok-feed"))))),(0,e.createElement)("div",{className:"media-frame-title"},(0,e.createElement)("h1",null,(0,t.sprintf)((0,t.__)("Edit feed # %s","wp-tiktok-feed"),n?(0,t.__)("New","wp-tiktok-feed"):r))))}J.Consumer;const X=[{name:"gallery",title:"Gallery",premium:!1},{name:"masonry",title:"Masonry",premium:!1},{name:"carousel",title:"Carousel",premium:!0},{name:"carousel-vertical",title:"C. Vertical",premium:!0},{name:"highlight",title:"Highlight",premium:!0},{name:"highlight-square",title:"H. Square",premium:!0}];function $(){const{currentFeedFormData:a,setCurrentFeedFormData:n}=W(),{accounts:r}=(0,D.useAccountsEntities)();return(0,e.createElement)("div",{className:"tiktok__modal__panel"},(0,e.createElement)("div",{className:"options_group"},(0,e.createElement)("p",{className:"form-field form-field--source"},(0,e.createElement)("label",null,(0,t.__)("Source","wp-tiktok-feed")),(0,e.createElement)("span",null,(0,e.createElement)("input",{type:"radio",onChange:()=>n({source:"account"}),checked:"account"==a.source}),(0,e.createElement)("label",null,(0,t.__)("Account","wp-tiktok-feed")," ",(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,t.__)("(This is a premium feature)","wp-tiktok-feed"))))),(0,e.createElement)("span",{className:"qlttf-premium-field"},(0,e.createElement)("input",{type:"radio",onChange:()=>n({source:"username"}),checked:"username"==a.source}),(0,e.createElement)("label",null,(0,t.__)("Username","wp-tiktok-feed"))),(0,e.createElement)("span",{className:"qlttf-premium-field"},(0,e.createElement)("input",{type:"radio",onChange:()=>n({source:"hashtag"}),checked:"hashtag"==a.source}),(0,e.createElement)("label",null,(0,t.__)("Hashtag","wp-tiktok-feed"))),(0,e.createElement)("span",{className:"qlttf-premium-field"},(0,e.createElement)("input",{type:"radio",onChange:()=>n({source:"trending"}),checked:"trending"==a.source}),(0,e.createElement)("label",null,(0,t.__)("Trending","wp-tiktok-feed")))),(0,e.createElement)("p",{className:"form-field qlttf-premium-field",style:{marginTop:-30}},(0,e.createElement)("label",null),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,t.__)("Username, Hashtag & Trending feeds are available in the premium version.","wp-tiktok-feed"))))),"hashtag"==a.source&&(0,e.createElement)("div",{className:"options_group"},(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Hashtag","wp-tiktok-feed")),(0,e.createElement)("input",{type:"text",required:"required",placeholder:"wordpress",value:a.hashtag,onChange:e=>n({hashtag:e.target.value})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Please enter a hashtag","wp-tiktok-feed"))))),"username"==a.source&&(0,e.createElement)("div",{className:"options_group"},(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Username","wp-tiktok-feed")),(0,e.createElement)("input",{type:"text",required:"required",value:a.username,onChange:e=>n({username:e.target.value})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Please enter a username","wp-tiktok-feed"))))),"trending"==a.source&&(0,e.createElement)("div",{className:"options_group"},(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Region","wp-tiktok-feed")),(0,e.createElement)("input",{type:"text",required:"required",value:a.region,onChange:e=>n({region:e.target.value})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,e.createElement)("a",{target:"_blank",rel:"noreferrer noopener",href:"https://www.iso.org/obp/ui/#search"},(0,t.__)("Please enter a region country in Alpha-2 standard. You can find more information about it here.","wp-tiktok-feed")))))),"account"==a.source&&(0,e.createElement)("div",{className:"options_group"},(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Account","wp-tiktok-feed")),(0,e.createElement)("select",{required:!0,value:a.open_id||"",onChange:e=>n({open_id:e.target.value})},(0,e.createElement)("option",{value:""},(0,t.__)("Select an account","wp-tiktok-feed")),r.map((t,a)=>(0,e.createElement)("option",{key:a,value:t.open_id},t.username))),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Please select a TikTok account","wp-tiktok-feed"))))),(0,e.createElement)("div",{className:"options_group"},(0,e.createElement)("div",{className:"form-field"},(0,e.createElement)("ul",{className:"list-images"},X.map(({name:r,title:l,premium:i})=>(0,e.createElement)("li",{key:r,className:v()(a.layout==r&&"active",i&&"qlttf-premium-field"),onClick:e=>n({layout:r})},(0,e.createElement)("span",null,(0,e.createElement)("label",null,l),(0,e.createElement)("img",{alt:l,src:g(`/assets/backend/img/${r}.png`)}),i&&(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,t.__)("(Premium)","wp-tiktok-feed"))))))))),(0,e.createElement)("div",{className:"options_group"},(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Carousel items","wp-tiktok-feed")),(0,e.createElement)("input",{type:"checkbox",checked:!!a.hide_carousel_feed,onChange:e=>n({hide_carousel_feed:!!e.target.checked}),readOnly:!0}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Hide carousel feed items. This option is must be checked until TikTok API can support carousel feed items.","wp-tiktok-feed"))))),(0,e.createElement)("div",{className:"options_group"},(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Limit","wp-tiktok-feed")),(0,e.createElement)("input",{type:"number",min:"1",max:"33",value:a.limit,onChange:e=>n({limit:e.target.value})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Number of videos to display","wp-tiktok-feed")))),(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Columns","wp-tiktok-feed")),(0,e.createElement)("input",{type:"number",min:"1",max:"20",value:a.columns,onChange:e=>n({columns:e.target.value})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Number of videos in a row","wp-tiktok-feed"))))),["highlight","highlight-square"].includes(a.layout)&&(0,e.createElement)("div",{className:"options_group"},(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Highlight by tag","wp-tiktok-feed")),(0,e.createElement)("textarea",{placeholder:"tag1, tag2, tag3",value:a.highlight.tag,onChange:e=>n({highlight:{tag:e.target.value}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Highlight feed items with these tags","wp-tiktok-feed"))),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,t.__)("(This is a premium feature)","wp-tiktok-feed")))),(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Highlight by id","wp-tiktok-feed")),(0,e.createElement)("textarea",{placeholder:"101010110101010",onChange:e=>n({highlight:{id:e.target.value}}),value:a.highlight.id}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Highlight feed items with these ids","wp-tiktok-feed"))),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,t.__)("(This is a premium feature)","wp-tiktok-feed")))),(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Highlight by position","wp-tiktok-feed")),(0,e.createElement)("textarea",{placeholder:"1, 5, 7",onChange:e=>n({highlight:{position:e.target.value}}),value:a.highlight.position}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Highlight feed items with these positions","wp-tiktok-feed"))),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,t.__)("(This is a premium feature)","wp-tiktok-feed"))))),(0,e.createElement)("div",{className:"options_group"},(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Spacing","wp-tiktok-feed")),(0,e.createElement)("input",{type:"number",min:"0",max:"50",value:a.video.spacing,onChange:e=>n({video:{spacing:e.target.value}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Add spacing between videos","wp-tiktok-feed"))))))}function ee(){return ee=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)({}).hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},ee.apply(null,arguments)}const te=window.wp.blockEditor;function ae(t){const{label:a}=t;return(0,e.createElement)("div",{className:"ql-color-palette-picker",onClick:e=>{e.preventDefault()}},(0,e.createElement)(te.ColorPaletteControl,ee({},t,{showTitle:!!a})))}function ne(){const{currentFeedFormData:a,setCurrentFeedFormData:n}=W();return(0,e.createElement)("div",{className:"tiktok__modal__panel"},(0,e.createElement)("div",{className:"options_group qlttf-premium-field"},(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Box","wp-tiktok-feed")),(0,e.createElement)("input",{type:"checkbox",checked:!!a.box.display,onChange:e=>n({box:{display:!!e.target.checked}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Display the TikTok Feed inside a customizable box","wp-tiktok-feed"))),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,t.__)("(This is a premium feature)","wp-tiktok-feed"))))),(0,e.createElement)("div",{className:v()("options_group qlttf-premium-field",!a.box.display&&"disabled-field")},(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Padding","wp-tiktok-feed")),(0,e.createElement)("input",{type:"number",min:"0",max:"300",value:a.box.padding,onChange:e=>n({box:{padding:e.target.value}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Add padding to the box","wp-tiktok-feed"))),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,t.__)("(This is a premium feature)","wp-tiktok-feed")))),(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Radius","wp-tiktok-feed")),(0,e.createElement)("input",{min:"0",max:"1000",type:"number",value:a.box.radius,onChange:e=>n({box:{radius:e.target.value}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Add radius to the box","wp-tiktok-feed"))),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,t.__)("(This is a premium feature)","wp-tiktok-feed")))),(0,e.createElement)("div",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Background","wp-tiktok-feed")),(0,e.createElement)(ae,{value:a.box.background,color:a.box.background,onChange:e=>n({box:{background:e}}),disableCustomColors:!1,label:(0,t.__)("Change background color in box","wp-tiktok-feed")}),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,t.__)("(This is a premium feature)","wp-tiktok-feed")))),(0,e.createElement)("div",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Text color","wp-tiktok-feed")),(0,e.createElement)(ae,{value:a.box.text_color,color:a.box.text_color,onChange:e=>n({box:{text_color:e}}),disableCustomColors:!1,label:(0,t.__)("Change text color in box","wp-tiktok-feed")}),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,t.__)("(This is a premium feature)","wp-tiktok-feed"))))))}function re(){const{currentFeedFormData:a,setCurrentFeedFormData:n}=W();return(0,e.createElement)("div",{className:"tiktok__modal__panel qlttf-premium-field"},(0,e.createElement)("div",{className:"options_group"},(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Autoplay","wp-tiktok-feed")),(0,e.createElement)("input",{type:"checkbox",checked:!!a.carousel.autoplay,onChange:e=>n({carousel:{autoplay:!!e.target.checked}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Autoplay carousel items","wp-tiktok-feed")))),(0,e.createElement)("p",{className:v()("form-field",!a.carousel.autoplay&&"disabled-field")},(0,e.createElement)("label",null,(0,t.__)("Autoplay Interval","wp-tiktok-feed")),(0,e.createElement)("input",{type:"number",min:"1000",max:"300000",step:"100",value:a.carousel.autoplay_interval,onChange:e=>n({carousel:{autoplay_interval:e.target.value}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Moves carousel after a certain amount of time","wp-tiktok-feed"))))),(0,e.createElement)("div",{className:"options_group"},(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Navigation","wp-tiktok-feed")),(0,e.createElement)("input",{type:"checkbox",checked:!!a.carousel.navarrows,onChange:e=>n({carousel:{navarrows:!!e.target.checked}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Display navigation arrows","wp-tiktok-feed")))),(0,e.createElement)("div",{className:v()("form-field",!a.carousel.navarrows&&"disabled-field")},(0,e.createElement)("label",null,(0,t.__)("Navigation color","wp-tiktok-feed")),(0,e.createElement)(ae,{value:a.carousel.navarrows_color,color:a.carousel.navarrows_color,onChange:e=>n({carousel:{navarrows_color:e}}),disableCustomColors:!1,enableAlpha:!0,label:(0,t.__)("Change navigation arrows color","wp-tiktok-feed")}))),(0,e.createElement)("div",{className:"options_group"},(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Pagination","wp-tiktok-feed")),(0,e.createElement)("input",{type:"checkbox",checked:a.carousel.pagination,onChange:e=>n({carousel:{pagination:!!e.target.checked}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Display pagination dots","wp-tiktok-feed")))),(0,e.createElement)("div",{className:v()("form-field",!a.carousel.pagination&&"disabled-field")},(0,e.createElement)("label",null,(0,t.__)("Pagination color","wp-tiktok-feed")),(0,e.createElement)(ae,{value:a.carousel.pagination_color,color:a.carousel.pagination_color,onChange:e=>n({carousel:{pagination_color:e}}),disableCustomColors:!1,enableAlpha:!0,label:(0,t.__)("Change pagination dots color","wp-tiktok-feed")}))))}function le(){const{currentFeedFormData:a,setCurrentFeedFormData:n}=W();return(0,e.createElement)("div",{className:"tiktok__modal__panel"},(0,e.createElement)("div",{className:"options_group"},(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Lazy load","wp-tiktok-feed")),(0,e.createElement)("input",{type:"checkbox",checked:!!a.lazy,onChange:e=>n({lazy:!!e.target.checked})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Defers video lazy","wp-tiktok-feed"))))),(0,e.createElement)("div",{className:"options_group"},(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Mask","wp-tiktok-feed")),(0,e.createElement)("input",{type:"checkbox",checked:!!a.mask.display,onChange:e=>n({mask:{display:!!e.target.checked}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Display mask on hover","wp-tiktok-feed")))),(0,e.createElement)("div",{className:v()("form-field",!a.mask.display&&"disabled-field")},(0,e.createElement)("label",null,(0,t.__)("Mask background","wp-tiktok-feed")),(0,e.createElement)(ae,{value:a.mask.background,color:a.mask.background,onChange:e=>n({mask:{background:e}}),disableCustomColors:!1,enableAlpha:!0,label:(0,t.__)("Change background color in mask","wp-tiktok-feed")}))),(0,e.createElement)("div",{className:v()("options_group",!a.mask.display&&"disabled-field")},(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Likes","wp-tiktok-feed")),(0,e.createElement)("input",{type:"checkbox",checked:a.mask.likes_count,onChange:e=>n({mask:{likes_count:!!e.target.checked}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Display likes count in mask","wp-tiktok-feed")))),(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Comments","wp-tiktok-feed")),(0,e.createElement)("input",{type:"checkbox",checked:a.mask.comments_count,onChange:e=>n({mask:{comments_count:!!e.target.checked}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Display comments count in mask","wp-tiktok-feed"))))))}function ie(){const{currentFeedFormData:a,setCurrentFeedFormData:n}=W();return(0,e.createElement)("div",{className:"tiktok__modal__panel"},(0,e.createElement)("div",{className:"options_group qlttf-premium-field"},(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Display","wp-tiktok-feed")),(0,e.createElement)("input",{type:"checkbox",checked:!!a.card.display,onChange:e=>n({card:{display:!!e.target.checked}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Display card in video","wp-tiktok-feed"))),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,t.__)("(This is a premium feature)","wp-tiktok-feed"))))),(0,e.createElement)("div",{className:v()("options_group qlttf-premium-field",!a.card.display&&"disabled-field")},(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Radius","wp-tiktok-feed")),(0,e.createElement)("input",{type:"number",min:"0",max:"1000",value:a.card.radius,onChange:e=>n({card:{radius:e.target.value}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Add radius to the card","wp-tiktok-feed"))),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,t.__)("(This is a premium feature)","wp-tiktok-feed")))),(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Font size","wp-tiktok-feed")),(0,e.createElement)("input",{type:"number",min:"8",max:"36",value:a.card.font_size,onChange:e=>n({card:{font_size:e.target.value}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Change font size in cards","wp-tiktok-feed"))),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,t.__)("(This is a premium feature)","wp-tiktok-feed")))),(0,e.createElement)("div",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Background","wp-tiktok-feed")),(0,e.createElement)(ae,{value:a.card.background,color:a.card.background,onChange:e=>n({card:{background:e}}),disableCustomColors:!1,enableAlpha:!0,label:(0,t.__)("Change background color in cards","wp-tiktok-feed")}),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,t.__)("(This is a premium feature)","wp-tiktok-feed")))),(0,e.createElement)("div",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Background hover","wp-tiktok-feed")),(0,e.createElement)(ae,{value:a.card.background,color:a.card.background,onChange:e=>n({card:{background:e}}),disableCustomColors:!1,enableAlpha:!0,label:(0,t.__)("Change background color hover in cards","wp-tiktok-feed")}),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,t.__)("(This is a premium feature)","wp-tiktok-feed")))),(0,e.createElement)("div",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Text color","wp-tiktok-feed")),(0,e.createElement)(ae,{value:a.card.text_color,color:a.card.text_color,onChange:e=>n({card:{text_color:e}}),disableCustomColors:!1,enableAlpha:!0,label:(0,t.__)("Change text color","wp-tiktok-feed")}),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,t.__)("(This is a premium feature)","wp-tiktok-feed")))),(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Padding","wp-tiktok-feed")),(0,e.createElement)("input",{type:"number",min:"0",max:"20",value:a.card.padding,onChange:e=>n({card:{padding:e.target.value}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Add padding in cards","wp-tiktok-feed")))),(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Likes","wp-tiktok-feed")),(0,e.createElement)("input",{type:"checkbox",checked:!!a.card.likes_count,onChange:e=>n({card:{likes_count:!!e.target.checked}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Display likes count in cards","wp-tiktok-feed"))),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,t.__)("(This is a premium feature)","wp-tiktok-feed")))),(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Comments","wp-tiktok-feed")),(0,e.createElement)("input",{type:"checkbox",checked:!!a.card.comments_count,onChange:e=>n({card:{comments_count:!!e.target.checked}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Display comments count in cards","wp-tiktok-feed"))),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,t.__)("(This is a premium feature)","wp-tiktok-feed")))),(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Description","wp-tiktok-feed")),(0,e.createElement)("input",{type:"checkbox",checked:!!a.card.video_description,onChange:e=>n({card:{video_description:!!e.target.checked}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Display description in cards","wp-tiktok-feed"))),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,t.__)("(This is a premium feature)","wp-tiktok-feed")))),(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Length","wp-tiktok-feed")),(0,e.createElement)("input",{type:"number",min:"1",max:"100",value:a.card.max_word_count,onChange:e=>n({card:{max_word_count:e.target.value}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Limit the length of the description in the card","wp-tiktok-feed"))),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,t.__)("(This is a premium feature)","wp-tiktok-feed"))))))}function oe(){const{currentFeedFormData:a,setCurrentFeedFormData:n}=W();return(0,e.createElement)("div",{className:"tiktok__modal__panel"},(0,e.createElement)("div",{className:"options_group"},(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Display","wp-tiktok-feed")),(0,e.createElement)("input",{type:"checkbox",checked:!!a.modal.display,onChange:e=>n({modal:{display:!!e.target.checked}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Display Modal by clicking on video","wp-tiktok-feed"))))),(0,e.createElement)("div",{className:v()("options_group",!a.modal.display&&"disabled-field")},(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Profile","wp-tiktok-feed")),(0,e.createElement)("input",{type:"checkbox",checked:!!a.modal.profile,onChange:e=>n({modal:{profile:!!e.target.checked}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Display user profile or tag info","wp-tiktok-feed"))),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,t.__)("(This is a premium feature)","wp-tiktok-feed")))),(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Description","wp-tiktok-feed")),(0,e.createElement)("input",{type:"checkbox",checked:!!a.modal.video_description,onChange:e=>n({modal:{video_description:!!e.target.checked}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Display description in the sidebar","wp-tiktok-feed"))),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,t.__)("(This is a premium feature)","wp-tiktok-feed")))),(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Likes","wp-tiktok-feed")),(0,e.createElement)("input",{type:"checkbox",checked:!!a.modal.likes_count,onChange:e=>n({modal:{likes_count:!!e.target.checked}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Display likes count in sidebar","wp-tiktok-feed"))),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,t.__)("(This is a premium feature)","wp-tiktok-feed")))),(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Comments","wp-tiktok-feed")),(0,e.createElement)("input",{type:"checkbox",checked:!!a.modal.comments_count,onChange:e=>n({modal:{comments_count:!!e.target.checked}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Display comments count in sidebar","wp-tiktok-feed"))),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,t.__)("(This is a premium feature)","wp-tiktok-feed")))),(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Date","wp-tiktok-feed")),(0,e.createElement)("input",{type:"checkbox",checked:!!a.modal.date,onChange:e=>n({modal:{date:!!e.target.checked}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Display video date","wp-tiktok-feed"))),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,t.__)("(This is a premium feature)","wp-tiktok-feed")))),"account"===a.source&&(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,t.__)("Due to Tiktok limitations, controls and autoplay options are not available in account source.","wp-tiktok-feed")))),(0,e.createElement)("div",{className:v()((!a.modal.display||"account"===a.source)&&"disabled-field")},(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Controls","wp-tiktok-feed")),(0,e.createElement)("input",{type:"checkbox",checked:a.modal.controls,onChange:e=>n({modal:{controls:!!e.target.checked}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Display video controls","wp-tiktok-feed")))),(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Autoplay","wp-tiktok-feed")),(0,e.createElement)("input",{type:"checkbox",checked:a.modal.autoplay,onChange:e=>n({modal:{autoplay:!!e.target.checked}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Video autoplay when modal is open.","wp-tiktok-feed"))))),(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Text align","wp-tiktok-feed")),(0,e.createElement)("select",{value:a.modal.align||"",onChange:e=>n({modal:{align:e.target.value}})},[{name:"left",label:(0,t.__)("Left","wp-tiktok-feed")},{name:"center",label:(0,t.__)("Center","wp-tiktok-feed")},{name:"right",label:(0,t.__)("Right","wp-tiktok-feed")}].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,t.__)("Align description in sidebar","wp-tiktok-feed"))),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,t.__)("(This is a premium feature)","wp-tiktok-feed"))))))}function se(){const{currentFeedFormData:a,setCurrentFeedFormData:n}=W();return(0,e.createElement)("div",{className:"tiktok__modal__panel"},(0,e.createElement)("div",{className:"options_group"},(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Display","wp-tiktok-feed")),(0,e.createElement)("input",{type:"checkbox",checked:!!a.button.display,onChange:e=>n({button:{display:!!e.target.checked}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Display the button to open tikTok site link","wp-tiktok-feed")))),(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Text","wp-tiktok-feed")),(0,e.createElement)("input",{type:"text",placeholder:"TikTok",value:a.button.text,onChange:e=>n({button:{text:e.target.value}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Change button text","wp-tiktok-feed"))))),(0,e.createElement)("div",{className:v()("options_group",!a.button.display&&"disabled-field")},(0,e.createElement)("div",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Text color","wp-tiktok-feed")),(0,e.createElement)(ae,{value:a.button.text_color,color:a.button.text_color,onChange:e=>n({button:{text_color:e}}),disableCustomColors:!1,enableAlpha:!0,label:(0,t.__)("Change color text in button","wp-tiktok-feed")})),(0,e.createElement)("div",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Background","wp-tiktok-feed")),(0,e.createElement)(ae,{value:a.button.background,color:a.button.background,onChange:e=>n({button:{background:e}}),disableCustomColors:!1,enableAlpha:!0,label:(0,t.__)("Change background color in button","wp-tiktok-feed")})),(0,e.createElement)("div",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Background hover","wp-tiktok-feed")),(0,e.createElement)(ae,{value:a.button.background_hover,color:a.button.background_hover,onChange:e=>n({button:{background_hover:e}}),disableCustomColors:!1,enableAlpha:!0,label:(0,t.__)("Change background hover in button","wp-tiktok-feed")}))))}function ce(){const{currentFeedFormData:a,setCurrentFeedFormData:n}=W();return(0,e.createElement)("div",{className:"tiktok__modal__panel"},(0,e.createElement)("div",{className:"options_group qlttf-premium-field"},(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Display","wp-tiktok-feed")),(0,e.createElement)("input",{type:"checkbox",checked:!!a.button_load.display,onChange:e=>n({button_load:{display:!!e.target.checked}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Display the button to load more feeds","wp-tiktok-feed")))),(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Text","wp-tiktok-feed")),(0,e.createElement)("input",{type:"text",placeholder:"TikTok",value:a.button_load.text,onChange:e=>n({button_load:{text:e.target.value}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Change button text","wp-tiktok-feed"))))),(0,e.createElement)("div",{className:v()("options_group",!a.button_load.display&&"disabled-field")},(0,e.createElement)("div",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Text color","wp-tiktok-feed")),(0,e.createElement)(ae,{value:a.button_load.text_color,color:a.button_load.text_color,onChange:e=>n({button_load:{text_color:e}}),disableCustomColors:!1,enableAlpha:!0,label:(0,t.__)("Change color text in button","wp-tiktok-feed")})),(0,e.createElement)("div",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Background","wp-tiktok-feed")),(0,e.createElement)(ae,{value:a.button_load.background,color:a.button_load.background,onChange:e=>n({button_load:{background:e}}),disableCustomColors:!1,enableAlpha:!0,label:(0,t.__)("Change background color in button","wp-tiktok-feed")})),(0,e.createElement)("div",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Background hover","wp-tiktok-feed")),(0,e.createElement)(ae,{value:a.button_load.background_hover,color:a.button_load.background_hover,onChange:e=>n({button_load:{background_hover:e}}),disableCustomColors:!1,enableAlpha:!0,label:(0,t.__)("Change background hover in button","wp-tiktok-feed")}))))}var ue=a(736),de=a.n(ue);class me extends e.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(){this.frame=wp.media({button:{text:(0,t.__)("Select","wp-tiktok-feed"),close:!1},states:[new wp.media.controller.Library({title:(0,t.__)("Select logo","wp-tiktok-feed"),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),r=!!parseInt((a.props.logo||{}).flex_height,10),l=e.get("width"),i=e.get("height");let o=parseInt((a.props.logo||{}).width,10),s=parseInt((a.props.logo||{}).height,10);const c=o/s,u=o,d=s;let m,p,f;return t.set("canSkipCrop",!a.mustBeCropped(n,r,o,s,l,i)),l/i>c?(s=i,o=s*c):(o=l,s=o/c),m=(l-o)/2,p=(i-s)/2,f={handles:!0,keys:!0,instance:!0,persistent:!0,imageWidth:l,imageHeight:i,minWidth:u>o?o:u,minHeight:d>s?s:d,x1:m,y1:p,x2:o+m,y2:s+p},!1===r&&!1===n&&(f.aspectRatio=o+":"+s),!0===r&&(delete f.minHeight,f.maxWidth=l),!0===n&&(delete f.minWidth,f.maxHeight=i),f}mustBeCropped(e,t,a,n,r,l){return!(!0===e&&!0===t||!0===e&&n===l||!0===t&&a===r||a===r&&n===l||r<=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",ee({className:v()("wp-tiktok-feed-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:"wp-tiktok-feed-control-media-upload__attachment__actions"},this.props.value?.attachment_id||this.props.value?.url?(0,e.createElement)(e.Fragment,null,(0,e.createElement)(w.Button,{disabled:!(Number(this.props.value?.attachment_id)>1),onClick:()=>this.props.onChange()},(0,t.__)("Remove","wp-tiktok-feed")),(0,e.createElement)(w.Button,{isBordered:!0,onClick:()=>this.openFrame()},this.props.filledLabel||(0,t.__)("Change","wp-tiktok-feed"))):(0,e.createElement)(w.Button,{className:v()("wp-tiktok-feed-control-media-upload__attachment__upload","upload_image_button button"),onClick:()=>this.openFrame(),style:{display:"inline-block"}},this.props.emptyLabel||(0,t.__)("Select image","wp-tiktok-feed"))))}}me.renderingConfig={hasRevertButton:!1},me.propTypes={value:de().object,onChange:de().func};const pe=me;function fe(){const{currentFeedFormData:a,setCurrentFeedFormData:n}=W();return(0,e.createElement)("div",{className:"tiktok__modal__panel"},(0,e.createElement)("div",{className:"qlttf-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,t.__)("Display","wp-tiktok-feed")),(0,e.createElement)("input",{type:"checkbox",checked:!!a.profile.display,onChange:e=>n({profile:{display:!!e.target.checked}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Display user profile or tag info","wp-tiktok-feed")," ")),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,t.__)("(This is a premium feature)","wp-tiktok-feed"))))),(0,e.createElement)("div",{className:v()("options_group",!a.profile.display&&"disabled-field")},(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Nickname","wp-tiktok-feed")),(0,e.createElement)("input",{type:"text",placeholder:"Nickname",value:a.profile.nickname,onChange:e=>n({profile:{nickname:e.target.value}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Profile nickname","wp-tiktok-feed"))),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,t.__)("(This is a premium feature)","wp-tiktok-feed")))),(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Username","wp-tiktok-feed")),(0,e.createElement)("input",{type:"text",value:a.profile.username,onChange:e=>n({profile:{username:e.target.value}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Profile username","wp-tiktok-feed"))),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,t.__)("(This is a premium feature)","wp-tiktok-feed")))),(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Link Text","wp-tiktok-feed")),(0,e.createElement)("input",{type:"text",placeholder:"TikTok",value:a.profile.link_text,onChange:e=>n({profile:{link_text:e.target.value}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Link text here","wp-tiktok-feed"))),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,t.__)("(This is a premium feature)","wp-tiktok-feed")))),(0,e.createElement)("p",{className:"form-field"},(0,e.createElement)("label",null,(0,t.__)("Biography","wp-tiktok-feed")),(0,e.createElement)("input",{type:"text",value:a.profile.biography,onChange:e=>n({profile:{biography:e.target.value}})}),(0,e.createElement)("span",{className:"description"},(0,e.createElement)("small",null,(0,t.__)("Profile description here","wp-tiktok-feed"))),(0,e.createElement)("span",{className:"description hidden"},(0,e.createElement)("small",null,(0,t.__)("(This is a premium feature)","wp-tiktok-feed")))))),(0,e.createElement)("div",{className:v()("attachment-info options_group",!a.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,t.__)("Feed","wp-tiktok-feed"),":"),a.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:a.profile.avatar?a.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)(pe,{onChange:e=>{n({profile:{avatar:e.url}})}}),(0,e.createElement)("button",{onClick:()=>n({profile:{avatar:""}}),className:"remove_image_button button",disabled:!a.profile.avatar},"×"))))))))}function he(t){const{currentTab:a}=W();switch(a){case"general":return(0,e.createElement)($,null);case"profile":return(0,e.createElement)(fe,null);case"box":return(0,e.createElement)(ne,null);case"carousel":return(0,e.createElement)(re,null);case"video":return(0,e.createElement)(le,null);case"video-card":return(0,e.createElement)(ie,null);case"video-modal":return(0,e.createElement)(oe,null);case"button":return(0,e.createElement)(se,null);case"button-load-more":return(0,e.createElement)(ce,null);default:return a}}function ge(){const{setCurrentTab:t,currentTab:a,currentFeedFormData:n}=W();return(0,e.useEffect)(()=>{"carousel"!==a||["carousel","carousel-vertical"].includes(n.layout)||t("general"),"button-load-more"===a&&"trending"===n.source&&t("general")},[a,n.layout]),(0,e.createElement)("ul",{className:"tiktok-modal__tabs"},z.map(({name:r,label:l})=>"carousel"!==r||["carousel","carousel-vertical"].includes(n.layout)?"button-load-more"===r&&"trending"===n.source?null:(0,e.createElement)("li",{key:r,className:v()("media-modal-tab",r==a&&"active")},(0,e.createElement)("a",{href:"#",onClick:e=>{e.preventDefault(),t(r)}},(0,e.createElement)("span",null,l))):null).filter(e=>!!e))}function ke({isOpen:t,setIsOpen:a}){const{currentFeedIndex:n,currentFeedFormData:r,feeds:l,createFeed:i,editFeed:o}=W(),[s,c]=(0,e.useState)(!1),u=l?.[n]?.id,d=void 0===u;return(0,e.createElement)("div",null,(0,e.createElement)("form",{onSubmit:async e=>{let t;e.preventDefault(),c(!0),t=d?await i(r):await o(r),c(!1),t&&a(!1)}},(0,e.createElement)("div",{className:"media-modal-content"},(0,e.createElement)("div",{className:"edit-attachment-frame mode-select"},(0,e.createElement)(K,{isOpen:t,setIsOpen:a,isNewFeed:d,currentFeedId:u}),(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)(ge,null),(0,e.createElement)("div",{style:{height:"100%",overflowX:"hidden"}},(0,e.createElement)(he,null)))))),(0,e.createElement)(Z,{isOpen:t,setIsOpen:a,isLoading:s,setIsLoading:c})))))}const _e=(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"50px",height:"50px",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24"},(0,e.createElement)("path",{fill:"currentColor",d:"M24.01 6.797a1.341 1.341 0 0 0-1.034-.487h-.035h.002h-3.441l.954-4.643A1.4 1.4 0 0 0 20.188.48l.002.003a1.345 1.345 0 0 0-1.036-.486h-.033h.002c-.9.029-1.643.665-1.835 1.51l-.003.013l-.259 1.262c-.008.032-.022.062-.029.094l-.708 3.435h-5.793l.954-4.643a1.4 1.4 0 0 0-.268-1.187l.002.003a1.345 1.345 0 0 0-1.036-.486h-.033h.002c-.9.029-1.643.665-1.835 1.51l-.003.013l-.27 1.313c0 .015-.01.028-.013.042l-.702 3.435H3.547c-.9.029-1.643.664-1.836 1.509l-.003.013a1.4 1.4 0 0 0 .267 1.188l-.002-.003c.248.298.619.487 1.035.487h.034h-.002h3.597l-1.022 4.97H1.864c-.9.029-1.643.665-1.836 1.51l-.003.013a1.404 1.404 0 0 0 .267 1.185L.29 17.18c.249.298.62.487 1.036.487h.034h-.002h3.597l-.96 4.668a1.4 1.4 0 0 0 .268 1.187l-.002-.003c.249.298.62.487 1.036.487h.033h-.002a1.947 1.947 0 0 0 1.836-1.51l.003-.013l.99-4.814h5.796l-.96 4.668a1.4 1.4 0 0 0 .268 1.187l-.002-.003c.249.298.62.486 1.036.486h.033h-.002a1.945 1.945 0 0 0 1.835-1.51l.003-.013l.99-4.814h3.6a1.947 1.947 0 0 0 1.836-1.509l.003-.013a1.388 1.388 0 0 0-.263-1.188l.002.003a1.348 1.348 0 0 0-1.037-.487h-.036h.002h-3.447l1.022-4.97h3.6a1.947 1.947 0 0 0 1.836-1.51l.003-.013a1.401 1.401 0 0 0-.268-1.188l.002.003zM8.819 14.472l1.022-4.97h5.796l-1.022 4.97z"})),Ee=(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"50px",height:"50px",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24"},(0,e.createElement)("path",{fill:"currentColor",d:"M19.321 5.562a5.124 5.124 0 0 1-.443-.258a6.228 6.228 0 0 1-1.137-.966c-.849-.971-1.166-1.956-1.282-2.645h.004c-.097-.573-.057-.943-.05-.943h-3.865v14.943c0 .2 0 .399-.008.595c0 .024-.003.046-.004.073c0 .01 0 .022-.003.033v.009a3.28 3.28 0 0 1-1.65 2.604a3.226 3.226 0 0 1-1.6.422c-1.8 0-3.26-1.468-3.26-3.281c0-1.814 1.46-3.282 3.26-3.282c.341 0 .68.054 1.004.16l.005-3.936a7.178 7.178 0 0 0-5.532 1.62a7.583 7.583 0 0 0-1.655 2.04c-.163.281-.779 1.412-.853 3.246c-.047 1.04.266 2.12.415 2.565v.01c.093.262.457 1.158 1.049 1.913a7.856 7.856 0 0 0 1.674 1.58v-.01l.009.01c1.87 1.27 3.945 1.187 3.945 1.187c.359-.015 1.562 0 2.928-.647c1.515-.718 2.377-1.787 2.377-1.787a7.43 7.43 0 0 0 1.296-2.153c.35-.92.466-2.022.466-2.462V8.273c.047.028.672.441.672.441s.9.577 2.303.952c1.006.267 2.363.324 2.363.324V6.153c-.475.052-1.44-.098-2.429-.59Z"})),be=(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"50px",height:"50px",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24"},(0,e.createElement)("path",{fill:"currentColor",d:"M20 22H4v-2a5 5 0 0 1 5-5h6a5 5 0 0 1 5 5v2zm-8-9a6 6 0 1 1 0-12a6 6 0 0 1 0 12z"}));function ve({setIsOpen:a}){const[n,r]=(0,e.useState)({currentFeedId:null,isLoading:!1}),{createSuccessNotice:l,createErrorNotice:i,createWarningNotice:o}=(0,I.useDispatch)(R.store),{feeds:s,hasResolvedFeeds:c,deleteFeed:u}=(0,D.useFeedsEntities)(),{accounts:d,hasAccounts:m}=(0,D.useAccountsEntities)(),{setCurrentFeedIndex:p}=W();return c?(0,e.createElement)("div",{className:"welcome-tab wrap about-wrap full-width-layout"},(0,e.createElement)("div",null,(0,e.createElement)("button",{disabled:!m&&!window?.qlttf_pro_backend,className:"button button-primary",onClick:()=>{p(),a(!0)}},(0,t.__)("+ Feed","wp-tiktok-feed")),!m&&(0,e.createElement)("p",null,(0,t.__)("Go to the Accounts tab and create your access token.","wp-tiktok-feed")),(0,e.createElement)(j,null,(0,e.createElement)("thead",null,(0,e.createElement)("tr",null,(0,e.createElement)("th",null,(0,t.__)("Image","wp-tiktok-feed")),(0,e.createElement)("th",null,(0,t.__)("Source","wp-tiktok-feed")),(0,e.createElement)("th",null,(0,t.__)("Name","wp-tiktok-feed")),(0,e.createElement)("th",null,(0,t.__)("Layout","wp-tiktok-feed")),(0,e.createElement)("th",null,(0,t.__)("Shortcode","wp-tiktok-feed")),(0,e.createElement)("th",null,(0,t.__)("Actions","wp-tiktok-feed")))),(0,e.createElement)("tbody",null,s?.map((o,s)=>{let c="",m="";switch(o.source){case"username":c=be,m=o.username;break;case"hashtag":c=_e,m=o.hashtag;break;case"trending":c=Ee;break;default:c=d.find(e=>e.open_id===o.open_id)?.avatar,m=d.find(e=>e.open_id===o.open_id)?.username}return(0,e.createElement)("tr",{key:s},(0,e.createElement)("td",{width:"1%"},"account"===o.source?(0,e.createElement)("img",{className:"avatar",src:c||"http://2.gravatar.com/avatar/b642b4217b34b1e8d3bd915fc65c4452?s=150&d=mm&r=g"}):c),(0,e.createElement)("td",{width:"1%"},o.source),(0,e.createElement)("td",{width:"1%"},m),(0,e.createElement)("td",null,o.layout),(0,e.createElement)("td",null,(0,e.createElement)("input",{type:"text",value:`[tiktok-feed id="${o.id}"]`,readOnly:!0}),(0,e.createElement)("button",{className:"button button-secondary",onClick:async()=>{await k(`[tiktok-feed id="${o.id}"]`)?l((0,t.__)("Feed shortcode copied to clipboard.","wp-tiktok-feed"),{id:1,type:"snackbar"}):i((0,t.__)("Can't copy the refresh token.","wp-tiktok-feed"),{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,t.__)("Edit feed","wp-tiktok-feed"),onClick:()=>{p(s),a(!0)}},(0,t.__)("Edit","wp-tiktok-feed")),(0,e.createElement)("button",{className:"button button-secondary",title:(0,t.__)("Clear feed cache","wp-tiktok-feed"),onClick:async()=>{confirm((0,t.__)("You are about to reset the cache of this feed.","wp-tiktok-feed"))&&(r({isloading:!0,currentFeedId:o.id}),await(0,D.clearFeedCache)({method:"POST",data:{feedSettings:o}}),r({isLoading:!1}))}},(0,e.createElement)("i",{className:"dashicons dashicons dashicons-update"}),(0,t.__)("Cache","wp-tiktok-feed")),(0,e.createElement)("button",{className:"button button-secondary",title:(0,t.__)("Delete feed","wp-tiktok-feed"),onClick:async()=>{confirm((0,t.__)("You are about to delele this feed.","wp-tiktok-feed"))&&(r({isloading:!0,currentFeedId:o.id}),await u(o),r({isLoading:!1}))}},(0,e.createElement)("i",{className:"dashicons dashicons-trash"})),n&&n.currentFeedId===o.id&&(0,e.createElement)("span",{style:{visibility:"visible",position:"absolute"},className:"spinner"})))}))))):(0,e.createElement)(M,null)}const ye=()=>{const{Fill:t}=S(),[a,n]=(0,e.useState)(!1);return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(t.Header,null,(0,e.createElement)(E,null)),(0,e.createElement)(t.Navigation,null,(0,e.createElement)(y,null)),(0,e.createElement)(t.Content,null,(0,e.createElement)(Q,null,(0,e.createElement)(ve,{isOpen:a,setIsOpen:n}),(0,e.createElement)(O,{show:a,onClose:()=>n(!1),__experimentalHideHeader:!0},(0,e.createElement)(ke,{isOpen:a,setIsOpen:n})))))},we=()=>{const{Fill:a}=S();return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(a.Header,null,(0,e.createElement)(E,null)),(0,e.createElement)(a.Navigation,null,(0,e.createElement)(y,null)),(0,e.createElement)(a.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,t.__)("Premium","wp-tiktok-feed")),(0,e.createElement)("div",{className:"about-description"},(0,t.__)("Unlock the power of our premium TikTok Feed plugin which allows you to choose between six beautiful layouts and tone of customizing options.","wp-tiktok-feed")),(0,e.createElement)("br",null),(0,e.createElement)(P,{href:"https://quadlayers.com/products/tiktok-feed/?utm_source=qlttf_plugin&utm_medium=admin_tab&utm_campaign=premium_upgrade&utm_content=purchase_button",target:"_blank"},(0,t.__)("Purchase Now","wp-tiktok-feed")),(0,e.createElement)(P,{isSecondary:!0,href:"https://quadlayers.com/demo/tiktok-feed/?utm_source=qlttf_plugin&utm_medium=admin_tab&utm_campaign=demo&utm_content=demo_button",target:"_blank"},(0,t.__)("View demo","wp-tiktok-feed"))),(0,e.createElement)("hr",null),(0,e.createElement)("div",{className:"feature-section"},(0,e.createElement)("h3",null,(0,t.__)("Download videos","wp-tiktok-feed")),(0,e.createElement)("p",null,(0,t.__)("Include a download button inside the video pop up that allows your users to download TikTok feed videos directly from your site.","wp-tiktok-feed"))),(0,e.createElement)("div",{className:"feature-section"},(0,e.createElement)("h3",null,(0,t.__)("Customize Videos display","wp-tiktok-feed")),(0,e.createElement)("p",null,(0,t.__)("Customize the colors of the TikTok Feed including custom background, text, buttons background and mouseover effects, Videos padding, and a rounded border. It also includes the user or tag profile info in the header of the box.","wp-tiktok-feed"))),(0,e.createElement)("div",{className:"feature-section"},(0,e.createElement)("h3",null,(0,t.__)("Card and box Videos display","wp-tiktok-feed")),(0,e.createElement)("p",null,(0,t.__)("TikTok Feed allows to display videos on a customized box. Or display videos into cards with video data in it.ed including custom background, text, buttons background and mouseover effects, Videos padding, and a rounded border.","wp-tiktok-feed"))),(0,e.createElement)("div",{className:"feature-section"},(0,e.createElement)("h3",null,(0,t.__)("Load more button","wp-tiktok-feed")),(0,e.createElement)("p",null,(0,t.__)("Allow your users to load more videos in the gallery providing an improved user experience.","wp-tiktok-feed")))),(0,e.createElement)("div",{className:"column"},(0,e.createElement)("img",{src:g("/assets/backend/img/tiktok-feed.png")}))),(0,e.createElement)("div",{className:"has-2-columns is-wider-left"},(0,e.createElement)("div",{className:"column"},(0,e.createElement)("img",{src:g("/assets/backend/img/tiktok-feed-highlight.png")})),(0,e.createElement)("div",{className:"column"},(0,e.createElement)("br",null),(0,e.createElement)("div",{className:"welcome-header"},(0,e.createElement)("h1",null,(0,t.__)("Video cards","wp-tiktok-feed")),(0,e.createElement)("div",{className:"about-description"},(0,t.__)("Wrap TikTok feed videos inside a box and display descriptions.","wp-tiktok-feed"))),(0,e.createElement)("hr",null),(0,e.createElement)("div",{className:"feature-section"},(0,e.createElement)("p",null,(0,t.__)("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.","wp-tiktok-feed"))))),(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,t.__)("Layouts","wp-tiktok-feed")),(0,e.createElement)("div",{className:"about-description"},(0,t.__)("Unlock the power of the carousel and highlight layouts that allows you to display the TikTok Feeds in a grid that supports items of variable size.","wp-tiktok-feed"))),(0,e.createElement)("hr",null),(0,e.createElement)("div",{className:"feature-section"},(0,e.createElement)("h3",null,(0,t.__)("Boxed layout","wp-tiktok-feed")),(0,e.createElement)("p",null,(0,t.__)("This option wraps the feed gallery inside a box where you can include the profile user info, tag info or displayed trend data.","wp-tiktok-feed"))),(0,e.createElement)("div",{className:"feature-section"},(0,e.createElement)("h3",null,(0,t.__)("Carousel layout","wp-tiktok-feed")),(0,e.createElement)("p",null,(0,t.__)("The carousel layout displays multiple videos inside an animated carousel with pagination and navigation controls. Including two alternative size for corousel: square and vertical options.","wp-tiktok-feed"))),(0,e.createElement)("div",{className:"feature-section"},(0,e.createElement)("h3",null,(0,t.__)("Highlight layout","wp-tiktok-feed")),(0,e.createElement)("p",null,(0,t.__)("The highlight layout is a grid that allows you to stand out some videos with two or three columns width size. Allowing highlight by tag, position or video id.","wp-tiktok-feed")))),(0,e.createElement)("div",{className:"column"},(0,e.createElement)("img",{src:g("/assets/backend/img/tiktok-feed-carousel-layout.png")}))))))},Ae=()=>{const{settings:a,hasResolvedSettings:n,saveSettings:r}=(0,D.useSettingsEntities)(),[l,i]=(0,e.useState)(!1),[o,s]=(0,e.useState)({}),c=e=>{const t=h(o,e);s(t)};return(0,e.useEffect)(()=>{n&&s(a)},[n,a]),n?(0,e.createElement)("div",{className:"wrap about-wrap full-width-layout"},(0,e.createElement)("form",{id:"qlttf-save-settings",onSubmit:async e=>{e.preventDefault(),i(!0),await r(o),i(!1)}},(0,e.createElement)(j,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,t.__)("Remove data","wp-tiktok-feed")),(0,e.createElement)("td",null,(0,e.createElement)("input",{type:"checkbox",checked:!!o.flush,onChange:e=>c({flush:!!e.target.checked})}),(0,e.createElement)("span",{className:"description"},(0,t.__)("Check this box to remove all data related to this plugin on uninstall.","wp-tiktok-feed")))),(0,e.createElement)("tr",null,(0,e.createElement)("th",null,(0,t.__)("Replace loader","wp-tiktok-feed")),(0,e.createElement)("td",null,(0,e.createElement)("div",{style:{display:"flex"}},(0,e.createElement)(pe,{onChange:e=>{c({spinner_image_url:e.url})}}),(0,e.createElement)("button",{className:"button button-secondary",onClick:()=>{c({spinner_image_url:""})},disabled:!o.spinner_image_url},(0,t.__)("Reset Spinner","wp-tiktok-feed"))),!o.spinner_image_url&&(0,e.createElement)("p",null,(0,e.createElement)("span",{className:"description"},(0,t.__)("Select an image from media library to replace the default loader icon.","wp-tiktok-feed")))),!!o.spinner_image_url&&(0,e.createElement)("td",{rowSpan:"2"},(0,e.createElement)("div",{className:"tiktok-feed-spinner"},(0,e.createElement)("img",{src:o.spinner_image_url}))))))))),(0,e.createElement)("tfoot",null,(0,e.createElement)("tr",null,(0,e.createElement)("td",{colSpan:"3"},(0,e.createElement)("span",{className:"spinner"}),(0,e.createElement)("button",{disabled:(0,d.isEqual)(a,o),type:"submit",className:"button button-primary secondary"},(0,t.__)("Save","wp-tiktok-feed")),l&&(0,e.createElement)("span",{style:{visibility:"visible"},className:"spinner"}))))))):(0,e.createElement)(M,null)},Ne=()=>{const{Fill:t}=S();return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(t.Header,null,(0,e.createElement)(E,null)),(0,e.createElement)(t.Navigation,null,(0,e.createElement)(y,null)),(0,e.createElement)(t.Content,null,(0,e.createElement)(Ae,null)))};var Se=a(405);const xe=()=>{const{Fill:t}=S();return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(t.Header,null,(0,e.createElement)(E,null)),(0,e.createElement)(t.Navigation,null,(0,e.createElement)(y,null)),(0,e.createElement)(t.Content,null,(0,e.createElement)(Se.List,{authorName:"quadlayers",columns:"2"})))},{tabParam:Ce,setBrowserTabParam:Pe}=(()=>{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())}}})(),Te=(0,e.createContext)({}),Fe=()=>(0,e.useContext)(Te),Oe=(e,t)=>"SET_CURRENT_TAB"===t.type?{...e,...t.payload,prevTab:e.currentTab}:e,Ie=({children:a})=>{const n=(0,l.applyFilters)("tiktok.app.tabs",[{label:(0,t.__)("Welcome","wp-tiktok-feed"),name:"welcome",content:F},{label:(0,t.__)("Accounts","wp-tiktok-feed"),name:"accounts",content:H},{label:(0,t.__)("Feeds","wp-tiktok-feed"),name:"feeds",content:ye},{label:(0,t.__)("Settings","wp-tiktok-feed"),name:"settings",href:"settings",content:Ne},{label:(0,t.__)("Premium","wp-tiktok-feed"),name:"premium",content:we},{label:(0,t.__)("Suggestions","wp-tiktok-feed"),name:"suggestions",content:xe}]),[r,i]=(0,e.useReducer)(Oe,(({defaultTab:e})=>({currentTab:Ce||e,currentTabSection:"",prevTab:null,prevSubTab:null,user:!1}))({defaultTab:n[0].name}));return(0,e.useEffect)(()=>{const e=Array.from(document.querySelectorAll("#toplevel_page_qlttf > ul > li")),t=r.currentTab[0].toUpperCase()+r.currentTab.slice(1).toLowerCase();e.map(e=>e.innerText===t?e?.classList.add("current"):e?.classList.remove("current"))},[r.currentTab]),(0,e.createElement)(Te.Provider,{value:{...r,setCurrentTab:e=>{r.currentTab!=e&&(Pe(e),i({type:"SET_CURRENT_TAB",payload:{currentTab:e}}))},tabs:n}},a)},Re=(Te.Consumer,()=>{const{currentTab:t,tabs:a}=Fe(),n=a.find(({name:e})=>e==t);if(!n)return(0,e.createElement)(e.Fragment,null,t);const r=n.content;return(0,e.createElement)(r,null)}),De=({children:t})=>(0,e.createElement)(x,null,(0,e.createElement)(C,null,({Slot:a,containerRef:n})=>(0,e.createElement)("div",{ref:n},(0,e.createElement)("header",null,(0,e.createElement)(a.Header,null)),(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))),Me=()=>(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Ie,null,(0,e.createElement)(De,null,(0,e.createElement)(Re,null))),(0,e.createElement)(r.EditorSnackbars,null));_(()=>{const t=document.getElementById("wpbody-content");(0,e.render)((0,e.createElement)(Me,null),t)})})(),(window.tiktok=window.tiktok||{}).backend=n})();
  • wp-tiktok-feed/trunk/build/store/js/index.asset.php

    r3314371 r3416701  
    1 <?php return array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-data', 'wp-i18n', 'wp-notices'), 'version' => 'b703b47f1f51930d10d6');
     1<?php return array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-data', 'wp-i18n', 'wp-notices'), 'version' => '10dd3c1dcc0da389a49b');
  • wp-tiktok-feed/trunk/build/store/js/index.js

    r3314371 r3416701  
    1 (()=>{"use strict";var e={n:t=>{var s=t&&t.__esModule?()=>t.default:()=>t;return e.d(s,{a:s}),s},d:(t,s)=>{for(var c in s)e.o(s,c)&&!e.o(t,c)&&Object.defineProperty(t,c,{enumerable:!0,get:s[c]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{FIRST_WP_VERSION_WITH_THUNK_SUPPORT:()=>w,INITIAL_STATE:()=>d,STORE_NAME:()=>i,WP_VERSION:()=>v,actions:()=>c,applyThunkMiddleware:()=>O,clearFeedCache:()=>T,fetchRestApiAccounts:()=>m,fetchRestApiFeeds:()=>F,fetchRestApiSettings:()=>k,fetchRestApiUserProfile:()=>A,isVersionLessThan:()=>N,reducer:()=>s,resolvers:()=>o,selectors:()=>n,storeConfig:()=>J,useAccountsEntities:()=>b,useFeedsEntities:()=>R,useSettingsEntities:()=>E});var s={};e.r(s),e.d(s,{accounts:()=>u,default:()=>p,feeds:()=>l,settings:()=>h});var c={};e.r(c),e.d(c,{createAccount:()=>C,createFeed:()=>U,deleteAccount:()=>D,deleteFeed:()=>q,editFeed:()=>M,saveSettings:()=>L,setAccounts:()=>P,setFeeds:()=>I,setSettings:()=>j});var n={};e.r(n),e.d(n,{getAccounts:()=>V,getFeeds:()=>W,getSettings:()=>G});var o={};e.r(o),e.d(o,{getAccounts:()=>H,getFeeds:()=>$,getSettings:()=>x});const a=window.wp.i18n,r=window.wp.data,i="quadlayers/tiktok",d={accounts:[],feeds:[],settings:{flush:!1,spinner_id:0}};function u(e=d.accounts,t){return"SET_ACCOUNTS"===t.type?t.payload:e}function l(e=d.feeds,t){return"SET_FEEDS"===t.type?t.payload:e}function h(e=d.settings,t){return"SET_SETTINGS"===t.type?t.payload:e}const p=(0,r.combineReducers)({accounts:u,feeds:l,settings:h}),g=(window.lodash,window.wp.notices),S=window.wp.apiFetch;var f=e.n(S);async function y(e){return await f()(e).then(e=>{if(e.code)throw new Error(`${e.code}: ${e?.message||"Unknown"}`);return e}).catch(e=>{throw new Error(JSON.stringify(e))})}const _=qlttf_store_routes,{WP_VERSION:v}=qlttf_store,w="6.0",F=({method:e,data:t}={})=>y({path:_.feeds,method:e,data:t});function R(){const{createFeed:e,editFeed:t,deleteFeed:s}=(0,r.useDispatch)(i),{feeds:c,isResolvingFeeds:n,hasResolvedFeeds:o}=(0,r.useSelect)(e=>{const{isResolving:t,hasFinishedResolution:s,getFeeds:c}=e(i);return{feeds:c(),isResolvingFeeds:t("getFeeds"),hasResolvedFeeds:s("getFeeds")}},[]);return{feeds:c,isResolvingFeeds:n,hasResolvedFeeds:o,hasFeeds:!(!o||!Object.keys(c)?.length),createFeed:e,editFeed:t,deleteFeed:s}}function T({method:e,data:t}){return y({path:_.cache,method:e,data:t})}const m=({method:e,data:t}={})=>y({path:_.accounts,method:e,data:t}),A=({method:e,data:t})=>y({path:`${_.profile.account}`,method:e,data:t});function b(){const{createAccount:e,deleteAccount:t}=(0,r.useDispatch)(i),{accounts:s,isResolvingAccounts:c,hasResolvedAccounts:n}=(0,r.useSelect)(e=>{const{isResolving:t,hasFinishedResolution:s,getAccounts:c}=e(i);return{accounts:c(),isResolvingAccounts:t("getAccounts"),hasResolvedAccounts:s("getAccounts")}},[]);return{accounts:s,isResolvingAccounts:c,hasResolvedAccounts:n,hasAccounts:!(!n||!Object.keys(s)?.length),createAccount:e,deleteAccount:t}}const k=({method:e,data:t}={})=>y({path:_.settings,method:e,data:t});function E(){const{saveSettings:e}=(0,r.useDispatch)(i),{settings:t,isResolvingSettings:s,hasResolvedSettings:c}=(0,r.useSelect)(e=>{const{isResolving:t,hasFinishedResolution:s,getSettings:c}=e(i);return{settings:c(),isResolvingSettings:t("getSettings"),hasResolvedSettings:s("getSettings")}},[]);return{settings:t,isResolvingSettings:s,hasResolvedSettings:c,hasSettings:!(!c||!Object.keys(t)?.length),saveSettings:e}}const N=(e,t)=>{const s=e.split(".").map(Number),c=t.split(".").map(Number);for(let e=0;e<c.length;e++){if(s[e]<c[e])return!0;if(s[e]>c[e])return!1}return!1},O=e=>{const t=e.instantiate;return e.instantiate=e=>{const s=t(e);if(!s.store||!s.store.dispatch)throw new Error(__("The created instance does not contain a valid store.","wp-tiktok-feed"));const c=s.store.dispatch,n=((e,t)=>({registry:t,get dispatch(){return Object.assign(t=>e.store.dispatch(t),e.getActions())},get select(){return Object.assign(t=>t(e.store.__unstableOriginalGetState()),e.getSelectors())},get resolveSelect(){return e.getResolveSelectors()}}))(s,e);return s.store.dispatch=((e,t)=>s=>"function"==typeof s?s(e):t(s))(n,c),s},e},P=async e=>({type:"SET_ACCOUNTS",payload:await Promise.all(e?.map(async e=>{try{const t=await A({method:"POST",data:{feedSettings:{open_id:e.open_id}}});return{...e,...t}}catch(t){return console.error(t),e}}))}),I=e=>({type:"SET_FEEDS",payload:e}),j=e=>({type:"SET_SETTINGS",payload:e}),C=e=>async({registry:t,dispatch:s,select:c,resolveSelect:n})=>{const o=c.getAccounts(),r=await m({method:"POST",data:e});return r?.code?(t.dispatch(g.store).createSuccessNotice(sprintf((0,a.__)("%s: %s"),r.code,r.message),{type:"snackbar"}),!1):(o.push(r),s.setAccounts([...o]),t.dispatch(g.store).createSuccessNotice((0,a.__)("The account has been created successfully.","wp-tiktok-feed"),{type:"snackbar"}),!0)},D=(e,t)=>async({registry:s,dispatch:c,select:n,resolveSelect:o})=>{const r=n.getAccounts(),i=await m({method:"DELETE",data:{open_id:e}});if(i?.code)return s.dispatch(g.store).createSuccessNotice(sprintf((0,a.__)("%s: %s"),i.code,i.message),{type:"snackbar"}),!1;const d=r.filter(t=>t.open_id!==e);return c.setAccounts([...d]),s.dispatch(g.store).createSuccessNotice(sprintf((0,a.__)("The account %s has been deleted.","wp-tiktok-feed"),t),{type:"snackbar"}),!0},U=e=>async({registry:t,dispatch:s,select:c,resolveSelect:n})=>{const o=c.getFeeds(),r=await F({method:"POST",data:{feed:e}});return r?.code?(t.dispatch(g.store).createSuccessNotice(sprintf((0,a.__)("%s: %s"),r.code,r.message),{type:"snackbar"}),!1):(o.push(r),s.setFeeds([...o]),t.dispatch(g.store).createSuccessNotice((0,a.__)("The feed has been created successfully.","wp-tiktok-feed"),{type:"snackbar"}),!0)},q=e=>async({registry:t,dispatch:s,select:c,resolveSelect:n})=>{const o=c.getFeeds(),r=await F({method:"DELETE",data:{feed_settings:e}});if(r?.code)return t.dispatch(g.store).createSuccessNotice(sprintf((0,a.__)("%s: %s"),r.code,r.message),{type:"snackbar"}),!1;const i=o.filter(t=>t.id!==e.id);return s.setFeeds([...i]),t.dispatch(g.store).createSuccessNotice(sprintf((0,a.__)("The feed %s has been deleted.","wp-tiktok-feed"),e.id),{type:"snackbar"}),!0},M=e=>async({registry:t,dispatch:s,select:c,resolveSelect:n})=>{const o=c.getFeeds(),r=await F({method:"PATCH",data:{feed:e}});return r?.code?(t.dispatch(g.store).createSuccessNotice(sprintf((0,a.__)("%s: %s"),r.code,r.message),{type:"snackbar"}),!1):(s.setFeeds([...o.map(t=>t.id==e.id?e:t)]),t.dispatch(g.store).createSuccessNotice((0,a.__)("The feed has been updated successfully.","wp-tiktok-feed"),{type:"snackbar"}),!0)},L=e=>async({registry:t,dispatch:s,select:c,resolveSelect:n})=>{const o=await k({method:"POST",data:e});return o?.code?(t.dispatch(g.store).createSuccessNotice(sprintf((0,a.__)("%s: %s"),o.code,o.message),{type:"snackbar"}),!1):(s.setSettings({...e}),t.dispatch(g.store).createSuccessNotice((0,a.__)("Settings saved.","wp-tiktok-feed"),{type:"snackbar"}),!0)},V=e=>e.accounts,W=e=>e.feeds,G=e=>e.settings,H=async()=>{try{const e=await m();return P(e)}catch(e){console.error(e)}},$=async()=>{try{const e=await F();return I(e)}catch(e){console.error(e)}},x=async()=>{try{const e=await k();return j(e)}catch(e){console.error(e)}},J={reducer:p,actions:c,selectors:n,resolvers:o},K=(0,r.createReduxStore)(i,J);(0,r.register)(N(v,w)?O(K):K),(window.qlttf=window.qlttf||{}).store=t})();
     1(()=>{"use strict";var e={n:t=>{var s=t&&t.__esModule?()=>t.default:()=>t;return e.d(s,{a:s}),s},d:(t,s)=>{for(var c in s)e.o(s,c)&&!e.o(t,c)&&Object.defineProperty(t,c,{enumerable:!0,get:s[c]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{FIRST_WP_VERSION_WITH_THUNK_SUPPORT:()=>w,INITIAL_STATE:()=>d,STORE_NAME:()=>i,WP_VERSION:()=>v,actions:()=>c,applyThunkMiddleware:()=>O,clearFeedCache:()=>T,fetchRestApiAccounts:()=>m,fetchRestApiFeeds:()=>F,fetchRestApiSettings:()=>k,fetchRestApiUserProfile:()=>A,isVersionLessThan:()=>N,reducer:()=>s,resolvers:()=>o,selectors:()=>n,storeConfig:()=>J,useAccountsEntities:()=>b,useFeedsEntities:()=>R,useSettingsEntities:()=>E});var s={};e.r(s),e.d(s,{accounts:()=>u,default:()=>p,feeds:()=>l,settings:()=>h});var c={};e.r(c),e.d(c,{createAccount:()=>C,createFeed:()=>U,deleteAccount:()=>D,deleteFeed:()=>q,editFeed:()=>M,saveSettings:()=>L,setAccounts:()=>P,setFeeds:()=>I,setSettings:()=>j});var n={};e.r(n),e.d(n,{getAccounts:()=>V,getFeeds:()=>W,getSettings:()=>G});var o={};e.r(o),e.d(o,{getAccounts:()=>H,getFeeds:()=>$,getSettings:()=>x});const a=window.wp.i18n,r=window.wp.data,i="quadlayers/tiktok",d={accounts:[],feeds:[],settings:{flush:!1,spinner_id:0}};function u(e=d.accounts,t){return"SET_ACCOUNTS"===t.type?t.payload:e}function l(e=d.feeds,t){return"SET_FEEDS"===t.type?t.payload:e}function h(e=d.settings,t){return"SET_SETTINGS"===t.type?t.payload:e}const p=(0,r.combineReducers)({accounts:u,feeds:l,settings:h}),g=(window.lodash,window.wp.notices),S=window.wp.apiFetch;var f=e.n(S);async function y(e){return await f()(e).then(e=>{if(e.code)throw new Error(`${e.code}: ${e?.message||"Unknown"}`);return e}).catch(e=>{throw new Error(JSON.stringify(e))})}const _=qlttf_store_routes,{WP_VERSION:v}=qlttf_store,w="6.0",F=({method:e,data:t}={})=>y({path:_.feeds,method:e,data:t});function R(){const{createFeed:e,editFeed:t,deleteFeed:s}=(0,r.useDispatch)(i),{feeds:c,isResolvingFeeds:n,hasResolvedFeeds:o}=(0,r.useSelect)(e=>{const{isResolving:t,hasFinishedResolution:s,getFeeds:c}=e(i);return{feeds:c(),isResolvingFeeds:t("getFeeds"),hasResolvedFeeds:s("getFeeds")}},[]);return{feeds:c,isResolvingFeeds:n,hasResolvedFeeds:o,hasFeeds:!(!o||!Object.keys(c)?.length),createFeed:e,editFeed:t,deleteFeed:s}}function T({method:e,data:t}){return y({path:_.cache,method:e,data:t})}const m=({method:e,data:t}={})=>y({path:_.accounts,method:e,data:t}),A=({method:e,data:t})=>y({path:`${_.profile.account}`,method:e,data:t});function b(){const{createAccount:e,deleteAccount:t}=(0,r.useDispatch)(i),{accounts:s,isResolvingAccounts:c,hasResolvedAccounts:n}=(0,r.useSelect)(e=>{const{isResolving:t,hasFinishedResolution:s,getAccounts:c}=e(i);return{accounts:c(),isResolvingAccounts:t("getAccounts"),hasResolvedAccounts:s("getAccounts")}},[]);return{accounts:s,isResolvingAccounts:c,hasResolvedAccounts:n,hasAccounts:!(!n||!Object.keys(s)?.length),createAccount:e,deleteAccount:t}}const k=({method:e,data:t}={})=>y({path:_.settings,method:e,data:t});function E(){const{saveSettings:e}=(0,r.useDispatch)(i),{settings:t,isResolvingSettings:s,hasResolvedSettings:c}=(0,r.useSelect)(e=>{const{isResolving:t,hasFinishedResolution:s,getSettings:c}=e(i);return{settings:c(),isResolvingSettings:t("getSettings"),hasResolvedSettings:s("getSettings")}},[]);return{settings:t,isResolvingSettings:s,hasResolvedSettings:c,hasSettings:!(!c||!Object.keys(t)?.length),saveSettings:e}}const N=(e,t)=>{const s=e.split(".").map(Number),c=t.split(".").map(Number);for(let e=0;e<c.length;e++){if(s[e]<c[e])return!0;if(s[e]>c[e])return!1}return!1},O=e=>{const t=e.instantiate;return e.instantiate=e=>{const s=t(e);if(!s.store||!s.store.dispatch)throw new Error(__("The created instance does not contain a valid store.","wp-tiktok-feed"));const c=s.store.dispatch,n=((e,t)=>({registry:t,get dispatch(){return Object.assign(t=>e.store.dispatch(t),e.getActions())},get select(){return Object.assign(t=>t(e.store.__unstableOriginalGetState()),e.getSelectors())},get resolveSelect(){return e.getResolveSelectors()}}))(s,e);return s.store.dispatch=((e,t)=>s=>"function"==typeof s?s(e):t(s))(n,c),s},e},P=async e=>({type:"SET_ACCOUNTS",payload:await Promise.all(e?.map(async e=>{try{const t=await A({method:"POST",data:{feedSettings:{open_id:e.open_id}}});return{...e,...t}}catch(t){return console.error(t),e}}))}),I=e=>({type:"SET_FEEDS",payload:e}),j=e=>({type:"SET_SETTINGS",payload:e}),C=e=>async({registry:t,dispatch:s,select:c,resolveSelect:n})=>{const o=c.getAccounts(),r=await m({method:"POST",data:e});return r?.code?(t.dispatch(g.store).createSuccessNotice((0,a.sprintf)((0,a.__)("%s: %s"),r.code,r.message),{type:"snackbar"}),!1):(o.push(r),s.setAccounts([...o]),t.dispatch(g.store).createSuccessNotice((0,a.__)("The account has been created successfully.","wp-tiktok-feed"),{type:"snackbar"}),!0)},D=(e,t)=>async({registry:s,dispatch:c,select:n,resolveSelect:o})=>{const r=n.getAccounts(),i=await m({method:"DELETE",data:{open_id:e}});if(i?.code)return s.dispatch(g.store).createSuccessNotice((0,a.sprintf)((0,a.__)("%s: %s"),i.code,i.message),{type:"snackbar"}),!1;const d=r.filter(t=>t.open_id!==e);return c.setAccounts([...d]),s.dispatch(g.store).createSuccessNotice((0,a.sprintf)((0,a.__)("The account %s has been deleted.","wp-tiktok-feed"),t),{type:"snackbar"}),!0},U=e=>async({registry:t,dispatch:s,select:c,resolveSelect:n})=>{const o=c.getFeeds(),r=await F({method:"POST",data:{feed:e}});return r?.code?(t.dispatch(g.store).createSuccessNotice((0,a.sprintf)((0,a.__)("%s: %s"),r.code,r.message),{type:"snackbar"}),!1):(o.push(r),s.setFeeds([...o]),t.dispatch(g.store).createSuccessNotice((0,a.__)("The feed has been created successfully.","wp-tiktok-feed"),{type:"snackbar"}),!0)},q=e=>async({registry:t,dispatch:s,select:c,resolveSelect:n})=>{const o=c.getFeeds(),r=await F({method:"DELETE",data:{feed_settings:e}});if(r?.code)return t.dispatch(g.store).createSuccessNotice((0,a.sprintf)((0,a.__)("%s: %s"),r.code,r.message),{type:"snackbar"}),!1;const i=o.filter(t=>t.id!==e.id);return s.setFeeds([...i]),t.dispatch(g.store).createSuccessNotice((0,a.sprintf)((0,a.__)("The feed %s has been deleted.","wp-tiktok-feed"),e.id),{type:"snackbar"}),!0},M=e=>async({registry:t,dispatch:s,select:c,resolveSelect:n})=>{const o=c.getFeeds(),r=await F({method:"PATCH",data:{feed:e}});return r?.code?(t.dispatch(g.store).createSuccessNotice((0,a.sprintf)((0,a.__)("%s: %s"),r.code,r.message),{type:"snackbar"}),!1):(s.setFeeds([...o.map(t=>t.id==e.id?e:t)]),t.dispatch(g.store).createSuccessNotice((0,a.__)("The feed has been updated successfully.","wp-tiktok-feed"),{type:"snackbar"}),!0)},L=e=>async({registry:t,dispatch:s,select:c,resolveSelect:n})=>{const o=await k({method:"POST",data:e});return o?.code?(t.dispatch(g.store).createSuccessNotice((0,a.sprintf)((0,a.__)("%s: %s"),o.code,o.message),{type:"snackbar"}),!1):(s.setSettings({...e}),t.dispatch(g.store).createSuccessNotice((0,a.__)("Settings saved.","wp-tiktok-feed"),{type:"snackbar"}),!0)},V=e=>e.accounts,W=e=>e.feeds,G=e=>e.settings,H=async()=>{try{const e=await m();return P(e)}catch(e){console.error(e)}},$=async()=>{try{const e=await F();return I(e)}catch(e){console.error(e)}},x=async()=>{try{const e=await k();return j(e)}catch(e){console.error(e)}},J={reducer:p,actions:c,selectors:n,resolvers:o},K=(0,r.createReduxStore)(i,J);(0,r.register)(N(v,w)?O(K):K),(window.qlttf=window.qlttf||{}).store=t})();
  • wp-tiktok-feed/trunk/jetpack_vendor/automattic/jetpack-assets/CHANGELOG.md

    r3409498 r3416701  
    55The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
    66and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
     7
     8## [4.3.15] - 2025-12-08
     9### Fixed
     10- Ensure proper flags are used with `json_encode()`. [#46092]
    711
    812## [4.3.14] - 2025-12-01
     
    745749- Statically access asset tools
    746750
     751[4.3.15]: https://github.com/Automattic/jetpack-assets/compare/v4.3.14...v4.3.15
    747752[4.3.14]: https://github.com/Automattic/jetpack-assets/compare/v4.3.13...v4.3.14
    748753[4.3.13]: https://github.com/Automattic/jetpack-assets/compare/v4.3.12...v4.3.13
  • wp-tiktok-feed/trunk/jetpack_vendor/automattic/jetpack-assets/src/class-assets.php

    r3198832 r3416701  
    531531            $data['domainMap']   = (object) $data['domainMap']; // Ensure it becomes a json object.
    532532            $data['domainPaths'] = (object) $data['domainPaths']; // Ensure it becomes a json object.
    533             $wp_scripts->add_inline_script( $handle, 'wp.jpI18nLoader.state = ' . wp_json_encode( $data, JSON_UNESCAPED_SLASHES ) . ';' );
     533            $wp_scripts->add_inline_script( $handle, 'wp.jpI18nLoader.state = ' . wp_json_encode( $data, JSON_UNESCAPED_SLASHES | JSON_HEX_TAG | JSON_HEX_AMP ) . ';' );
    534534        }
    535535
  • wp-tiktok-feed/trunk/jetpack_vendor/i18n-map.php

    r3409498 r3416701  
    77    'jetpack-assets' => array(
    88      'path' => 'jetpack_vendor/automattic/jetpack-assets',
    9       'ver' => '4.3.14',
     9      'ver' => '4.3.15',
    1010    ),
    1111    'wp-dashboard-widget-news' => array(
  • wp-tiktok-feed/trunk/readme.txt

    r3409498 r3416701  
    66Requires PHP: 5.6
    77Tested up to: 6.9
    8 Stable tag: 4.6.3
     8Stable tag: 4.6.4
    99License: GPLv3
    1010License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    104104== Changelog ==
    105105
     106= 4.6.4 =
     107* Fix: Undefined sprintf
     108
    106109= 4.6.3 =
    107110* WordPress compatibility
  • wp-tiktok-feed/trunk/vendor/composer/autoload_static.php

    r3403592 r3416701  
    1414
    1515    public static $prefixLengthsPsr4 = array (
    16         'Q' => 
     16        'Q' =>
    1717        array (
    1818            'QuadLayers\\WP_Plugin_Table_Links\\' => 33,
     
    2828
    2929    public static $prefixDirsPsr4 = array (
    30         'QuadLayers\\WP_Plugin_Table_Links\\' => 
     30        'QuadLayers\\WP_Plugin_Table_Links\\' =>
    3131        array (
    3232            0 => __DIR__ . '/../..' . '/jetpack_vendor/quadlayers/wp-plugin-table-links/src',
    3333        ),
    34         'QuadLayers\\WP_Plugin_Suggestions\\' => 
     34        'QuadLayers\\WP_Plugin_Suggestions\\' =>
    3535        array (
    3636            0 => __DIR__ . '/../..' . '/jetpack_vendor/quadlayers/wp-plugin-suggestions/src',
    3737        ),
    38         'QuadLayers\\WP_Plugin_Install_Tab\\' => 
     38        'QuadLayers\\WP_Plugin_Install_Tab\\' =>
    3939        array (
    4040            0 => __DIR__ . '/../..' . '/jetpack_vendor/quadlayers/wp-plugin-install-tab/src',
    4141        ),
    42         'QuadLayers\\WP_Orm\\' => 
     42        'QuadLayers\\WP_Orm\\' =>
    4343        array (
    4444            0 => __DIR__ . '/..' . '/franmastromarino/wp-orm/src',
    4545        ),
    46         'QuadLayers\\WP_Notice_Plugin_Required\\' => 
     46        'QuadLayers\\WP_Notice_Plugin_Required\\' =>
    4747        array (
    4848            0 => __DIR__ . '/../..' . '/jetpack_vendor/quadlayers/wp-notice-plugin-required/src',
    4949        ),
    50         'QuadLayers\\WP_Notice_Plugin_Promote\\' => 
     50        'QuadLayers\\WP_Notice_Plugin_Promote\\' =>
    5151        array (
    5252            0 => __DIR__ . '/../..' . '/jetpack_vendor/quadlayers/wp-notice-plugin-promote/src',
    5353        ),
    54         'QuadLayers\\WP_Dashboard_Widget_News\\' => 
     54        'QuadLayers\\WP_Dashboard_Widget_News\\' =>
    5555        array (
    5656            0 => __DIR__ . '/../..' . '/jetpack_vendor/quadlayers/wp-dashboard-widget-news/src',
    5757        ),
    58         'QuadLayers\\PluginFeedback\\' => 
     58        'QuadLayers\\PluginFeedback\\' =>
    5959        array (
    6060            0 => __DIR__ . '/..' . '/franmastromarino/wp-plugin-feedback/src',
  • wp-tiktok-feed/trunk/vendor/composer/installed.json

    r3409498 r3416701  
    33        {
    44            "name": "automattic/jetpack-assets",
    5             "version": "v4.3.14",
    6             "version_normalized": "4.3.14.0",
     5            "version": "v4.3.15",
     6            "version_normalized": "4.3.15.0",
    77            "source": {
    88                "type": "git",
    99                "url": "https://github.com/Automattic/jetpack-assets.git",
    10                 "reference": "9402905e3dc72216309df8c08c67bb855f50058d"
    11             },
    12             "dist": {
    13                 "type": "zip",
    14                 "url": "https://api.github.com/repos/Automattic/jetpack-assets/zipball/9402905e3dc72216309df8c08c67bb855f50058d",
    15                 "reference": "9402905e3dc72216309df8c08c67bb855f50058d",
     10                "reference": "0df8b3b3103819543681d24f1f622912d3bae8cd"
     11            },
     12            "dist": {
     13                "type": "zip",
     14                "url": "https://api.github.com/repos/Automattic/jetpack-assets/zipball/0df8b3b3103819543681d24f1f622912d3bae8cd",
     15                "reference": "0df8b3b3103819543681d24f1f622912d3bae8cd",
    1616                "shasum": ""
    1717            },
     
    2222            },
    2323            "require-dev": {
    24                 "automattic/jetpack-changelogger": "^6.0.10",
     24                "automattic/jetpack-changelogger": "^6.0.11",
    2525                "automattic/phpunit-select-config": "^1.0.3",
    2626                "brain/monkey": "^2.6.2",
     
    3131                "automattic/jetpack-autoloader": "Allow for better interoperability with other plugins that use this package."
    3232            },
    33             "time": "2025-12-01T22:34:35+00:00",
     33            "time": "2025-12-08T13:55:22+00:00",
    3434            "type": "jetpack-library",
    3535            "extra": {
     
    5959            "description": "Asset management utilities for Jetpack ecosystem packages",
    6060            "support": {
    61                 "source": "https://github.com/Automattic/jetpack-assets/tree/v4.3.14"
     61                "source": "https://github.com/Automattic/jetpack-assets/tree/v4.3.15"
    6262            },
    6363            "install-path": "../../jetpack_vendor/automattic/jetpack-assets"
  • wp-tiktok-feed/trunk/vendor/composer/installed.php

    r3409498 r3416701  
    22    'root' => array(
    33        'name' => 'quadlayers/wp-tiktok-feed',
    4         'pretty_version' => 'v4.6.3',
    5         'version' => '4.6.3.0',
    6         'reference' => 'f461ee1f8378ca5eaaea40bd0b714895ad3a3af4',
     4        'pretty_version' => 'v4.6.4',
     5        'version' => '4.6.4.0',
     6        'reference' => 'c2e20a03865f78eadabf156ce255100ac9efb15a',
    77        'type' => 'project',
    88        'install_path' => __DIR__ . '/../../',
     
    1212    'versions' => array(
    1313        'automattic/jetpack-assets' => array(
    14             'pretty_version' => 'v4.3.14',
    15             'version' => '4.3.14.0',
    16             'reference' => '9402905e3dc72216309df8c08c67bb855f50058d',
     14            'pretty_version' => 'v4.3.15',
     15            'version' => '4.3.15.0',
     16            'reference' => '0df8b3b3103819543681d24f1f622912d3bae8cd',
    1717            'type' => 'jetpack-library',
    1818            'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-assets',
     
    122122        ),
    123123        'quadlayers/wp-tiktok-feed' => array(
    124             'pretty_version' => 'v4.6.3',
    125             'version' => '4.6.3.0',
    126             'reference' => 'f461ee1f8378ca5eaaea40bd0b714895ad3a3af4',
     124            'pretty_version' => 'v4.6.4',
     125            'version' => '4.6.4.0',
     126            'reference' => 'c2e20a03865f78eadabf156ce255100ac9efb15a',
    127127            'type' => 'project',
    128128            'install_path' => __DIR__ . '/../../',
  • wp-tiktok-feed/trunk/wp-tiktok-feed.php

    r3409498 r3416701  
    55 * Plugin URI:              https://quadlayers.com/products/tiktok-feed/
    66 * Description:             Display beautiful and responsive galleries on your website from your TikTok feed account.
    7  * Version:                 4.6.3
     7 * Version:                 4.6.4
    88 * Text Domain:             wp-tiktok-feed
    99 * Author:                  QuadLayers
     
    2121
    2222define( 'QLTTF_PLUGIN_NAME', 'TikTok Feed' );
    23 define( 'QLTTF_PLUGIN_VERSION', '4.6.3' );
     23define( 'QLTTF_PLUGIN_VERSION', '4.6.4' );
    2424define( 'QLTTF_PLUGIN_FILE', __FILE__ );
    2525define( 'QLTTF_PLUGIN_DIR', __DIR__ . DIRECTORY_SEPARATOR );
Note: See TracChangeset for help on using the changeset viewer.