Changeset 3336252
- Timestamp:
- 07/29/2025 10:54:17 PM (6 months ago)
- Location:
- wp-fastest-site-search
- Files:
-
- 194 added
- 9 edited
-
tags/5.4.6 (added)
-
tags/5.4.6/LICENSE.txt (added)
-
tags/5.4.6/README.txt (added)
-
tags/5.4.6/assets (added)
-
tags/5.4.6/assets/css (added)
-
tags/5.4.6/assets/css/expertrecsearch-admin.css (added)
-
tags/5.4.6/assets/css/index.php (added)
-
tags/5.4.6/assets/css/main.css (added)
-
tags/5.4.6/assets/images (added)
-
tags/5.4.6/assets/images/Spin-1s-200px.svg (added)
-
tags/5.4.6/assets/images/expertrec-icon-64.png (added)
-
tags/5.4.6/assets/images/expertrec.png (added)
-
tags/5.4.6/assets/images/index.php (added)
-
tags/5.4.6/assets/images/support.svg (added)
-
tags/5.4.6/assets/index.php (added)
-
tags/5.4.6/assets/js (added)
-
tags/5.4.6/assets/js/deactivate.js (added)
-
tags/5.4.6/assets/js/index.php (added)
-
tags/5.4.6/assets/js/main.js (added)
-
tags/5.4.6/assets/js/post-api.js (added)
-
tags/5.4.6/changelog.txt (added)
-
tags/5.4.6/composer.json (added)
-
tags/5.4.6/composer.lock (added)
-
tags/5.4.6/expertrecsearch.php (added)
-
tags/5.4.6/hooks (added)
-
tags/5.4.6/hooks/expertrecsearch-ajax.php (added)
-
tags/5.4.6/hooks/expertrecsearch-caller.php (added)
-
tags/5.4.6/hooks/index.php (added)
-
tags/5.4.6/includes (added)
-
tags/5.4.6/includes/class-expertrecsearch-activator.php (added)
-
tags/5.4.6/includes/class-expertrecsearch-admin.php (added)
-
tags/5.4.6/includes/class-expertrecsearch-client.php (added)
-
tags/5.4.6/includes/class-expertrecsearch-deactivator.php (added)
-
tags/5.4.6/includes/class-expertrecsearch-i18n.php (added)
-
tags/5.4.6/includes/class-expertrecsearch-loader.php (added)
-
tags/5.4.6/includes/class-expertrecsearch-logger.php (added)
-
tags/5.4.6/includes/class-expertrecsearch.php (added)
-
tags/5.4.6/includes/index.php (added)
-
tags/5.4.6/index.php (added)
-
tags/5.4.6/languages (added)
-
tags/5.4.6/languages/expertrecsearch.pot (added)
-
tags/5.4.6/languages/index.php (added)
-
tags/5.4.6/public (added)
-
tags/5.4.6/public/class-expertrecsearch-public.php (added)
-
tags/5.4.6/public/index.php (added)
-
tags/5.4.6/shortcodes (added)
-
tags/5.4.6/shortcodes/expertrecsearch-search-bar.php (added)
-
tags/5.4.6/uninstall.php (added)
-
tags/5.4.6/vendor (added)
-
tags/5.4.6/vendor/autoload.php (added)
-
tags/5.4.6/vendor/bin (added)
-
tags/5.4.6/vendor/bin/sentry (added)
-
tags/5.4.6/vendor/composer (added)
-
tags/5.4.6/vendor/composer/ClassLoader.php (added)
-
tags/5.4.6/vendor/composer/InstalledVersions.php (added)
-
tags/5.4.6/vendor/composer/LICENSE (added)
-
tags/5.4.6/vendor/composer/autoload_classmap.php (added)
-
tags/5.4.6/vendor/composer/autoload_files.php (added)
-
tags/5.4.6/vendor/composer/autoload_namespaces.php (added)
-
tags/5.4.6/vendor/composer/autoload_psr4.php (added)
-
tags/5.4.6/vendor/composer/autoload_real.php (added)
-
tags/5.4.6/vendor/composer/autoload_static.php (added)
-
tags/5.4.6/vendor/composer/installed.json (added)
-
tags/5.4.6/vendor/composer/installed.php (added)
-
tags/5.4.6/vendor/composer/platform_check.php (added)
-
tags/5.4.6/vendor/sentry (added)
-
tags/5.4.6/vendor/sentry/sentry (added)
-
tags/5.4.6/vendor/sentry/sentry/.gitattributes (added)
-
tags/5.4.6/vendor/sentry/sentry/.gitignore (added)
-
tags/5.4.6/vendor/sentry/sentry/.gitmodules (added)
-
tags/5.4.6/vendor/sentry/sentry/.php_cs (added)
-
tags/5.4.6/vendor/sentry/sentry/.travis.yml (added)
-
tags/5.4.6/vendor/sentry/sentry/AUTHORS (added)
-
tags/5.4.6/vendor/sentry/sentry/CHANGES (added)
-
tags/5.4.6/vendor/sentry/sentry/LICENSE (added)
-
tags/5.4.6/vendor/sentry/sentry/Makefile (added)
-
tags/5.4.6/vendor/sentry/sentry/README.rst (added)
-
tags/5.4.6/vendor/sentry/sentry/bin (added)
-
tags/5.4.6/vendor/sentry/sentry/bin/sentry (added)
-
tags/5.4.6/vendor/sentry/sentry/composer.json (added)
-
tags/5.4.6/vendor/sentry/sentry/lib (added)
-
tags/5.4.6/vendor/sentry/sentry/lib/Raven (added)
-
tags/5.4.6/vendor/sentry/sentry/lib/Raven/Autoloader.php (added)
-
tags/5.4.6/vendor/sentry/sentry/lib/Raven/Breadcrumbs (added)
-
tags/5.4.6/vendor/sentry/sentry/lib/Raven/Breadcrumbs.php (added)
-
tags/5.4.6/vendor/sentry/sentry/lib/Raven/Breadcrumbs/ErrorHandler.php (added)
-
tags/5.4.6/vendor/sentry/sentry/lib/Raven/Breadcrumbs/MonologHandler.php (added)
-
tags/5.4.6/vendor/sentry/sentry/lib/Raven/Client.php (added)
-
tags/5.4.6/vendor/sentry/sentry/lib/Raven/Compat.php (added)
-
tags/5.4.6/vendor/sentry/sentry/lib/Raven/Context.php (added)
-
tags/5.4.6/vendor/sentry/sentry/lib/Raven/CurlHandler.php (added)
-
tags/5.4.6/vendor/sentry/sentry/lib/Raven/ErrorHandler.php (added)
-
tags/5.4.6/vendor/sentry/sentry/lib/Raven/Exception.php (added)
-
tags/5.4.6/vendor/sentry/sentry/lib/Raven/Processor.php (added)
-
tags/5.4.6/vendor/sentry/sentry/lib/Raven/ReprSerializer.php (added)
-
tags/5.4.6/vendor/sentry/sentry/lib/Raven/SanitizeDataProcessor.php (added)
-
tags/5.4.6/vendor/sentry/sentry/lib/Raven/Serializer.php (added)
-
tags/5.4.6/vendor/sentry/sentry/lib/Raven/Stacktrace.php (added)
-
tags/5.4.6/vendor/sentry/sentry/lib/Raven/TransactionStack.php (added)
-
tags/5.4.6/vendor/sentry/sentry/lib/Raven/Util.php (added)
-
tags/5.4.6/vendor/sentry/sentry/lib/Raven/data (added)
-
tags/5.4.6/vendor/sentry/sentry/lib/Raven/data/cacert.pem (added)
-
tags/5.4.6/vendor/sentry/sentry/phpunit.xml (added)
-
tags/5.4.6/vendor/smalot (added)
-
tags/5.4.6/vendor/smalot/pdfparser (added)
-
tags/5.4.6/vendor/smalot/pdfparser/.github (added)
-
tags/5.4.6/vendor/smalot/pdfparser/.github/ISSUE_TEMPLATE (added)
-
tags/5.4.6/vendor/smalot/pdfparser/.github/ISSUE_TEMPLATE/incorrect-parsing.md (added)
-
tags/5.4.6/vendor/smalot/pdfparser/.github/pull_request_template.md (added)
-
tags/5.4.6/vendor/smalot/pdfparser/.github/workflows (added)
-
tags/5.4.6/vendor/smalot/pdfparser/.github/workflows/coding-standards.yml (added)
-
tags/5.4.6/vendor/smalot/pdfparser/.github/workflows/continuous-integration.yml (added)
-
tags/5.4.6/vendor/smalot/pdfparser/.github/workflows/performance.yml (added)
-
tags/5.4.6/vendor/smalot/pdfparser/.php-cs-fixer.php (added)
-
tags/5.4.6/vendor/smalot/pdfparser/LICENSE.txt (added)
-
tags/5.4.6/vendor/smalot/pdfparser/Makefile (added)
-
tags/5.4.6/vendor/smalot/pdfparser/README.md (added)
-
tags/5.4.6/vendor/smalot/pdfparser/alt_autoload.php-dist (added)
-
tags/5.4.6/vendor/smalot/pdfparser/composer.json (added)
-
tags/5.4.6/vendor/smalot/pdfparser/doc (added)
-
tags/5.4.6/vendor/smalot/pdfparser/doc/CustomConfig.md (added)
-
tags/5.4.6/vendor/smalot/pdfparser/doc/Developer.md (added)
-
tags/5.4.6/vendor/smalot/pdfparser/doc/Usage.md (added)
-
tags/5.4.6/vendor/smalot/pdfparser/phpunit-windows.xml (added)
-
tags/5.4.6/vendor/smalot/pdfparser/src (added)
-
tags/5.4.6/vendor/smalot/pdfparser/src/Smalot (added)
-
tags/5.4.6/vendor/smalot/pdfparser/src/Smalot/PdfParser (added)
-
tags/5.4.6/vendor/smalot/pdfparser/src/Smalot/PdfParser/Config.php (added)
-
tags/5.4.6/vendor/smalot/pdfparser/src/Smalot/PdfParser/Document.php (added)
-
tags/5.4.6/vendor/smalot/pdfparser/src/Smalot/PdfParser/Element (added)
-
tags/5.4.6/vendor/smalot/pdfparser/src/Smalot/PdfParser/Element.php (added)
-
tags/5.4.6/vendor/smalot/pdfparser/src/Smalot/PdfParser/Element/ElementArray.php (added)
-
tags/5.4.6/vendor/smalot/pdfparser/src/Smalot/PdfParser/Element/ElementBoolean.php (added)
-
tags/5.4.6/vendor/smalot/pdfparser/src/Smalot/PdfParser/Element/ElementDate.php (added)
-
tags/5.4.6/vendor/smalot/pdfparser/src/Smalot/PdfParser/Element/ElementHexa.php (added)
-
tags/5.4.6/vendor/smalot/pdfparser/src/Smalot/PdfParser/Element/ElementMissing.php (added)
-
tags/5.4.6/vendor/smalot/pdfparser/src/Smalot/PdfParser/Element/ElementName.php (added)
-
tags/5.4.6/vendor/smalot/pdfparser/src/Smalot/PdfParser/Element/ElementNull.php (added)
-
tags/5.4.6/vendor/smalot/pdfparser/src/Smalot/PdfParser/Element/ElementNumeric.php (added)
-
tags/5.4.6/vendor/smalot/pdfparser/src/Smalot/PdfParser/Element/ElementString.php (added)
-
tags/5.4.6/vendor/smalot/pdfparser/src/Smalot/PdfParser/Element/ElementStruct.php (added)
-
tags/5.4.6/vendor/smalot/pdfparser/src/Smalot/PdfParser/Element/ElementXRef.php (added)
-
tags/5.4.6/vendor/smalot/pdfparser/src/Smalot/PdfParser/Encoding (added)
-
tags/5.4.6/vendor/smalot/pdfparser/src/Smalot/PdfParser/Encoding.php (added)
-
tags/5.4.6/vendor/smalot/pdfparser/src/Smalot/PdfParser/Encoding/AbstractEncoding.php (added)
-
tags/5.4.6/vendor/smalot/pdfparser/src/Smalot/PdfParser/Encoding/EncodingLocator.php (added)
-
tags/5.4.6/vendor/smalot/pdfparser/src/Smalot/PdfParser/Encoding/ISOLatin1Encoding.php (added)
-
tags/5.4.6/vendor/smalot/pdfparser/src/Smalot/PdfParser/Encoding/ISOLatin9Encoding.php (added)
-
tags/5.4.6/vendor/smalot/pdfparser/src/Smalot/PdfParser/Encoding/MacRomanEncoding.php (added)
-
tags/5.4.6/vendor/smalot/pdfparser/src/Smalot/PdfParser/Encoding/PDFDocEncoding.php (added)
-
tags/5.4.6/vendor/smalot/pdfparser/src/Smalot/PdfParser/Encoding/PostScriptGlyphs.php (added)
-
tags/5.4.6/vendor/smalot/pdfparser/src/Smalot/PdfParser/Encoding/StandardEncoding.php (added)
-
tags/5.4.6/vendor/smalot/pdfparser/src/Smalot/PdfParser/Encoding/WinAnsiEncoding.php (added)
-
tags/5.4.6/vendor/smalot/pdfparser/src/Smalot/PdfParser/Exception (added)
-
tags/5.4.6/vendor/smalot/pdfparser/src/Smalot/PdfParser/Exception/EncodingNotFoundException.php (added)
-
tags/5.4.6/vendor/smalot/pdfparser/src/Smalot/PdfParser/Font (added)
-
tags/5.4.6/vendor/smalot/pdfparser/src/Smalot/PdfParser/Font.php (added)
-
tags/5.4.6/vendor/smalot/pdfparser/src/Smalot/PdfParser/Font/FontCIDFontType0.php (added)
-
tags/5.4.6/vendor/smalot/pdfparser/src/Smalot/PdfParser/Font/FontCIDFontType2.php (added)
-
tags/5.4.6/vendor/smalot/pdfparser/src/Smalot/PdfParser/Font/FontTrueType.php (added)
-
tags/5.4.6/vendor/smalot/pdfparser/src/Smalot/PdfParser/Font/FontType0.php (added)
-
tags/5.4.6/vendor/smalot/pdfparser/src/Smalot/PdfParser/Font/FontType1.php (added)
-
tags/5.4.6/vendor/smalot/pdfparser/src/Smalot/PdfParser/Font/FontType3.php (added)
-
tags/5.4.6/vendor/smalot/pdfparser/src/Smalot/PdfParser/Header.php (added)
-
tags/5.4.6/vendor/smalot/pdfparser/src/Smalot/PdfParser/PDFObject.php (added)
-
tags/5.4.6/vendor/smalot/pdfparser/src/Smalot/PdfParser/Page.php (added)
-
tags/5.4.6/vendor/smalot/pdfparser/src/Smalot/PdfParser/Pages.php (added)
-
tags/5.4.6/vendor/smalot/pdfparser/src/Smalot/PdfParser/Parser.php (added)
-
tags/5.4.6/vendor/smalot/pdfparser/src/Smalot/PdfParser/RawData (added)
-
tags/5.4.6/vendor/smalot/pdfparser/src/Smalot/PdfParser/RawData/FilterHelper.php (added)
-
tags/5.4.6/vendor/smalot/pdfparser/src/Smalot/PdfParser/RawData/RawDataParser.php (added)
-
tags/5.4.6/vendor/smalot/pdfparser/src/Smalot/PdfParser/XObject (added)
-
tags/5.4.6/vendor/smalot/pdfparser/src/Smalot/PdfParser/XObject/Form.php (added)
-
tags/5.4.6/vendor/smalot/pdfparser/src/Smalot/PdfParser/XObject/Image.php (added)
-
tags/5.4.6/vendor/symfony (added)
-
tags/5.4.6/vendor/symfony/polyfill-mbstring (added)
-
tags/5.4.6/vendor/symfony/polyfill-mbstring/LICENSE (added)
-
tags/5.4.6/vendor/symfony/polyfill-mbstring/Mbstring.php (added)
-
tags/5.4.6/vendor/symfony/polyfill-mbstring/README.md (added)
-
tags/5.4.6/vendor/symfony/polyfill-mbstring/Resources (added)
-
tags/5.4.6/vendor/symfony/polyfill-mbstring/Resources/unidata (added)
-
tags/5.4.6/vendor/symfony/polyfill-mbstring/Resources/unidata/caseFolding.php (added)
-
tags/5.4.6/vendor/symfony/polyfill-mbstring/Resources/unidata/lowerCase.php (added)
-
tags/5.4.6/vendor/symfony/polyfill-mbstring/Resources/unidata/titleCaseRegexp.php (added)
-
tags/5.4.6/vendor/symfony/polyfill-mbstring/Resources/unidata/upperCase.php (added)
-
tags/5.4.6/vendor/symfony/polyfill-mbstring/bootstrap.php (added)
-
tags/5.4.6/vendor/symfony/polyfill-mbstring/bootstrap80.php (added)
-
tags/5.4.6/vendor/symfony/polyfill-mbstring/composer.json (added)
-
tags/5.4.6/views (added)
-
tags/5.4.6/views/deactivate.html (added)
-
tags/5.4.6/views/expertrec-help.php (added)
-
tags/5.4.6/views/expertrec-page-footer.php (added)
-
tags/5.4.6/views/expertrec-page-header.php (added)
-
tags/5.4.6/views/expertrec-ui.php (added)
-
trunk/README.txt (modified) (2 diffs)
-
trunk/assets/js/deactivate.js (modified) (1 diff)
-
trunk/assets/js/main.js (modified) (1 diff)
-
trunk/changelog.txt (modified) (1 diff)
-
trunk/expertrecsearch.php (modified) (2 diffs)
-
trunk/includes/class-expertrecsearch-logger.php (modified) (1 diff)
-
trunk/vendor/autoload.php (modified) (1 diff)
-
trunk/vendor/composer/autoload_real.php (modified) (2 diffs)
-
trunk/vendor/composer/autoload_static.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-fastest-site-search/trunk/README.txt
r3336091 r3336252 7 7 Requires at least: 5.6 8 8 Tested up to: 6.8 9 Stable tag: 5.4. 59 Stable tag: 5.4.6 10 10 Requires PHP: 7.1 11 11 License: GPLv2 or later … … 159 159 == Changelog == 160 160 161 = 5.4.6 = 162 * Fixed log file write failures to prevent fatal errors. 163 161 164 = 5.4.5 = 162 165 * Fixed all critical WordPress.org plugin check errors. -
wp-fastest-site-search/trunk/assets/js/deactivate.js
r3336091 r3336252 1 function a0_0x 4715(_0xfc162a,_0x6c0945){const _0x2937bc=a0_0x2937();return a0_0x4715=function(_0x471582,_0xef85b0){_0x471582=_0x471582-0xe2;let _0x1b4f95=_0x2937bc[_0x471582];if(a0_0x4715['vPdGGE']===undefined){var _0x524d5f=function(_0x5b065f){const _0xc51f07='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x262770='',_0x42790e='';for(let _0x145e85=0x0,_0xd2438b,_0x567ba9,_0x44c4d6=0x0;_0x567ba9=_0x5b065f['charAt'](_0x44c4d6++);~_0x567ba9&&(_0xd2438b=_0x145e85%0x4?_0xd2438b*0x40+_0x567ba9:_0x567ba9,_0x145e85++%0x4)?_0x262770+=String['fromCharCode'](0xff&_0xd2438b>>(-0x2*_0x145e85&0x6)):0x0){_0x567ba9=_0xc51f07['indexOf'](_0x567ba9);}for(let _0x53c7f1=0x0,_0x144d98=_0x262770['length'];_0x53c7f1<_0x144d98;_0x53c7f1++){_0x42790e+='%'+('00'+_0x262770['charCodeAt'](_0x53c7f1)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x42790e);};const _0x14b6f9=function(_0x141908,_0x55e2ff){let _0x1f484f=[],_0x41a04a=0x0,_0x198ba1,_0xc10433='';_0x141908=_0x524d5f(_0x141908);let _0x454348;for(_0x454348=0x0;_0x454348<0x100;_0x454348++){_0x1f484f[_0x454348]=_0x454348;}for(_0x454348=0x0;_0x454348<0x100;_0x454348++){_0x41a04a=(_0x41a04a+_0x1f484f[_0x454348]+_0x55e2ff['charCodeAt'](_0x454348%_0x55e2ff['length']))%0x100,_0x198ba1=_0x1f484f[_0x454348],_0x1f484f[_0x454348]=_0x1f484f[_0x41a04a],_0x1f484f[_0x41a04a]=_0x198ba1;}_0x454348=0x0,_0x41a04a=0x0;for(let _0x141657=0x0;_0x141657<_0x141908['length'];_0x141657++){_0x454348=(_0x454348+0x1)%0x100,_0x41a04a=(_0x41a04a+_0x1f484f[_0x454348])%0x100,_0x198ba1=_0x1f484f[_0x454348],_0x1f484f[_0x454348]=_0x1f484f[_0x41a04a],_0x1f484f[_0x41a04a]=_0x198ba1,_0xc10433+=String['fromCharCode'](_0x141908['charCodeAt'](_0x141657)^_0x1f484f[(_0x1f484f[_0x454348]+_0x1f484f[_0x41a04a])%0x100]);}return _0xc10433;};a0_0x4715['WKJJIw']=_0x14b6f9,_0xfc162a=arguments,a0_0x4715['vPdGGE']=!![];}const _0x4877fb=_0x2937bc[0x0],_0x440891=_0x471582+_0x4877fb,_0x4742dc=_0xfc162a[_0x440891];return!_0x4742dc?(a0_0x4715['fTXKNy']===undefined&&(a0_0x4715['fTXKNy']=!![]),_0x1b4f95=a0_0x4715['WKJJIw'](_0x1b4f95,_0xef85b0),_0xfc162a[_0x440891]=_0x1b4f95):_0x1b4f95=_0x4742dc,_0x1b4f95;},a0_0x4715(_0xfc162a,_0x6c0945);}(function(_0x4b4def,_0x39a0eb){const _0x5c744d=a0_0x4715,_0x291299=_0x4b4def();while(!![]){try{const _0x54e523=-parseInt(_0x5c744d(0xf0,'i4PF'))/0x1*(-parseInt(_0x5c744d(0xec,'LxId'))/0x2)+-parseInt(_0x5c744d(0x16d,'kZ!M'))/0x3+-parseInt(_0x5c744d(0x161,'cv@e'))/0x4+-parseInt(_0x5c744d(0x170,'NLUN'))/0x5*(-parseInt(_0x5c744d(0x188,'$dvZ'))/0x6)+-parseInt(_0x5c744d(0x149,'gL2a'))/0x7*(-parseInt(_0x5c744d(0x173,'sGvf'))/0x8)+parseInt(_0x5c744d(0x11d,'9Ef$'))/0x9*(-parseInt(_0x5c744d(0x11a,'Vam^'))/0xa)+parseInt(_0x5c744d(0x141,'20j6'))/0xb;if(_0x54e523===_0x39a0eb)break;else _0x291299['push'](_0x291299['shift']());}catch(_0x449bed){_0x291299['push'](_0x291299['shift']());}}}(a0_0x2937,0xc8140),((()=>{const _0x4b1a93=a0_0x4715;window[_0x4b1a93(0x140,'LxId')]='#';const _0x14b6f9=window[_0x4b1a93(0x145,'TN0u')],_0x5b065f=_0x4b1a93(0xf2,'%[R!'),_0xc51f07=_0x4b1a93(0x167,'Qe@X'),_0x262770=_0x4b1a93(0x14d,'bmrp'),_0x42790e=_0x4b1a93(0x17a,'(EIm'),_0x145e85='Search\x20Results\x20are\x20not\x20yielding\x20correct\x20results',_0xd2438b=_0x4b1a93(0xfc,'Qe@X');let _0x567ba9=!0x1;const _0x44c4d6=_0x14b6f9['pathname'][_0x4b1a93(0x14c,'kZ!M')]('/');_0x44c4d6['splice'](-0x2);const _0x53c7f1=_0x14b6f9[_0x4b1a93(0x135,'rq1Z')]+_0x44c4d6[_0x4b1a93(0x121,'ZLMJ')]('/');function _0x144d98(){const _0x3e4a7e=_0x4b1a93;return fetch(_0x53c7f1+_0x3e4a7e(0x174,'UD6]'))[_0x3e4a7e(0xeb,'rq1Z')](_0x1f484f=>_0x1f484f[_0x3e4a7e(0x103,'9Ef$')]())[_0x3e4a7e(0x137,'TOVB')](_0x41a04a=>_0x41a04a[_0x3e4a7e(0x18b,'tYdF')])[_0x3e4a7e(0x11b,'Mo^g')](_0x198ba1=>!0x0);}function _0x141908(_0xc10433){setTimeout(function(){const _0x7c544a=a0_0x4715,_0x454348=_0xc10433(_0x7c544a(0x17f,'Qe@X'));_0x454348[_0x7c544a(0x182,'i4PF')]('id',_0x7c544a(0x102,'i4PF')),_0xc10433(_0x7c544a(0x108,'tYdF'))[_0x7c544a(0x144,'$dvZ')](_0x454348),_0xc10433('#expertrec_feedback_form')[_0x7c544a(0x183,'&[zb')](expertrecPath['pluginsUrl']+_0x7c544a(0x152,'twY2'));const _0x141657=document['querySelector'](_0x7c544a(0x10c,'ZLMJ'));_0x141657?(_0x144d98()[_0x7c544a(0x10d,'WYbU')](_0x3a2eb7=>{_0x3a2eb7||(function(){const _0x26f4b3=a0_0x4715,_0xb88df1=document['querySelector'](_0x26f4b3(0x117,'twY2')),_0x51d56f=document[_0x26f4b3(0xe6,'0bXp')]('div'),_0x363685=document[_0x26f4b3(0x175,'OUXk')]('a');_0x363685[_0x26f4b3(0x185,'$dvZ')]=_0x26f4b3(0x126,'jgRH'),_0x363685[_0x26f4b3(0x123,'phMw')]=_0x26f4b3(0x12f,'TN0u'),_0x363685['classList'][_0x26f4b3(0x142,'Vam^')](_0x26f4b3(0x11f,'JS0n')),_0x51d56f['appendChild'](_0x363685),_0xb88df1[_0x26f4b3(0x177,'(EIm')](_0x51d56f);}());}),_0x141657[_0x7c544a(0xe7,'hB^%')](_0x7c544a(0xfe,'sv&9'),function(_0x29f895){const _0x5a2d57=_0x7c544a;window[_0x5a2d57(0x140,'LxId')]=_0x29f895[_0x5a2d57(0x15d,'sv&9')][_0x5a2d57(0x15c,'gL2a')],_0x29f895[_0x5a2d57(0x10f,'(EIm')](),_0x55e2ff();})):_0x141908(jQuery);},0x1f4);}const _0x55e2ff=function(){const _0x1ccd5f=_0x4b1a93;document[_0x1ccd5f(0xfa,'Qe@X')](_0x1ccd5f(0x130,'LxId'))[_0x1ccd5f(0x127,'P!4y')][_0x1ccd5f(0xff,'Qe@X')](_0x1ccd5f(0x116,'phMw'));const _0x5e7fd9=document['querySelector'](_0x1ccd5f(0x115,'7Nn)'));!(function(){const _0x57d000=_0x1ccd5f,_0x33a22e=document[_0x57d000(0x176,'JS0n')](_0x57d000(0x146,'l]EU')),_0x53e4bc=document['querySelector']('#expertrec-reason-deactivation');_0x144d98()['then'](_0x201802=>{const _0x557408=_0x57d000;_0x201802?_0x567ba9=!0x0:(_0x567ba9=!0x1,_0x33a22e['style'][_0x557408(0x13c,'jgRH')]=_0x557408(0x17b,'RvFj'),_0x53e4bc['style'][_0x557408(0x131,'%[R!')]='none');});}()),window['addEventListener'](_0x1ccd5f(0x104,'3v0D'),function(_0x19d9cc){const _0xe2cbb0=_0x1ccd5f;_0x19d9cc[_0xe2cbb0(0xef,'P!4y')]===_0x5e7fd9&&_0x5e7fd9['classList']['toggle'](_0xe2cbb0(0x10e,'rq1Z'));});};window[_0x4b1a93(0x16e,'jgRH')]('locationchange',function(_0x1222dd){const _0x49fe42=_0x4b1a93;_0x1222dd['detail'][_0x49fe42(0x13b,'hB^%')]!==window[_0x49fe42(0x17d,'9Ef$')]['href']&&_0x141908(jQuery);}),jQuery(document)[_0x4b1a93(0x18a,'y*gY')](function(_0x7f5255){const _0x51ce14=_0x4b1a93;window[_0x51ce14(0x12c,'rq1Z')][_0x51ce14(0x12b,'20j6')][_0x51ce14(0x165,'FvE1')](_0x51ce14(0x136,'3v0D'))>-0x1&&(window[_0x51ce14(0x129,'JS0n')]=function(){const _0x14e575=_0x51ce14;document['querySelector']('.expertrec-modal')[_0x14e575(0x12a,'gL2a')][_0x14e575(0x138,'hB^%')](_0x14e575(0xee,'9Ef$')),document[_0x14e575(0x187,'hd#e')](_0x14e575(0x11c,'Mo^g'))[_0x14e575(0xf3,'7Nn)')]='';},window[_0x51ce14(0xf4,'P!4y')]=function(){const _0x15c370=_0x51ce14;var _0x1c1d22=document[_0x15c370(0x13e,'P!4y')]('.expertrec-deactivate-select'),_0x21bc49=_0x1c1d22[_0x15c370(0x13f,'sGvf')][_0x1c1d22[_0x15c370(0x16c,'jgRH')]][_0x15c370(0x125,'TN0u')],_0x3bad39=_0x1c1d22[_0x15c370(0x15e,'hd#e')][_0x1c1d22[_0x15c370(0xf9,'i4PF')]][_0x15c370(0x106,'hB^%')];_0x567ba9||(_0x3bad39='');var _0x8c7bed=document[_0x15c370(0x16b,'TN0u')]('.expertrec-deactivate-input')[_0x15c370(0x164,'sGvf')];document[_0x15c370(0x160,'TOVB')](_0x15c370(0x186,'JS0n'))[_0x15c370(0x159,'9Ef$')]='',document['querySelector'](_0x15c370(0x147,'twY2'))[_0x15c370(0x156,'sv&9')]=!0x0;var _0x26dda6={'value':_0x21bc49,'selected_option':_0x3bad39,'description':_0x8c7bed};const _0x4f4584=new FormData();for(const _0x135c5c in _0x26dda6)_0x4f4584[_0x15c370(0x13d,'sGvf')](_0x135c5c,_0x26dda6[_0x135c5c]);fetch(_0x53c7f1+_0x15c370(0x171,'7Nn)'),{'method':'POST','body':_0x4f4584})[_0x15c370(0x137,'TOVB')](_0x18e13b=>{const _0x397a2e=_0x15c370;window['open'](window['expertrecDeactivateUrl'],_0x397a2e(0x143,'LxId'));});},window['expertrec_updateErrorMessage']=function(_0x5333a4){const _0xb56ea3=_0x51ce14;var _0x52bdcd=document[_0xb56ea3(0xe8,'&[zb')]('.expertrec-deactivate-select')[_0xb56ea3(0x107,'vCOo')][_0x5333a4];const _0x75caa1=document[_0xb56ea3(0x16a,'UD6]')](_0xb56ea3(0x110,'vCOo')),_0x28436b=document['getElementById'](_0xb56ea3(0x14e,'%xpe')),_0x489abc=_0x75caa1['querySelector'](_0xb56ea3(0x132,'hd#e')),_0x472991=document[_0xb56ea3(0x15b,'l]EU')]('expertrec-theme-mismatch-message');_0x472991[_0xb56ea3(0x169,'rq1Z')]='',_0xb56ea3(0x100,'UD6]')===_0x28436b[_0xb56ea3(0x14b,'OUXk')][_0xb56ea3(0x18d,'vCOo')]&&(_0x28436b['style'][_0xb56ea3(0x17e,'3v0D')]='block'),_0xb56ea3(0x172,'cv@e')===_0x489abc[_0xb56ea3(0x133,'rq1Z')][_0xb56ea3(0xf1,'cv@e')]&&(_0x489abc[_0xb56ea3(0x113,'7Nn)')][_0xb56ea3(0x12e,'l]EU')]=_0xb56ea3(0x10a,'vCOo')),document[_0xb56ea3(0x184,'Mo^g')](_0xb56ea3(0x105,'7Nn)'))[_0xb56ea3(0x128,'jgRH')]=_0xb56ea3(0xfb,'i[6J'),_0x52bdcd['text']!==_0xd2438b&&_0x52bdcd[_0xb56ea3(0x181,'bmrp')]!==_0xc51f07&&_0x52bdcd[_0xb56ea3(0x15a,'#DwM')]!==_0x42790e&&_0x52bdcd[_0xb56ea3(0x10b,'cv@e')]!==_0x145e85&&(document[_0xb56ea3(0x109,'Vam^')](_0xb56ea3(0xe9,'y*gY'))[_0xb56ea3(0x180,'Vam^')]=''),_0x52bdcd[_0xb56ea3(0x118,'q#o6')]==_0x5b065f&&(document[_0xb56ea3(0xf7,'cv@e')]('deactivation-label')[_0xb56ea3(0x178,'TOVB')]=_0xb56ea3(0x168,'RvFj')),_0x52bdcd[_0xb56ea3(0x158,'NLUN')]==_0xc51f07&&(document[_0xb56ea3(0x119,'WYbU')]('deactivation-label')[_0xb56ea3(0x101,'RvFj')]=_0xb56ea3(0xe4,'NLUN')),_0x52bdcd[_0xb56ea3(0x124,'(EIm')]==_0x262770&&(_0x28436b[_0xb56ea3(0x11e,'WYbU')]['display']='none',_0x489abc[_0xb56ea3(0x16f,'%[R!')][_0xb56ea3(0x112,'FvE1')]='none',_0x489abc[_0xb56ea3(0x153,'q#o6')]='',_0x472991[_0xb56ea3(0x18c,'TN0u')]=_0xb56ea3(0x12d,'sGvf'));},window[_0x51ce14(0xf8,'20j6')]=function(_0x578f2b){const _0x2d38e4=_0x51ce14;_0x578f2b[_0x2d38e4(0xed,'hd#e')]()[_0x2d38e4(0x13a,'hd#e')]>=0x14&&(document[_0x2d38e4(0xe2,'P!4y')](_0x2d38e4(0x148,'sv&9'))[_0x2d38e4(0x14a,'hB^%')]='');},_0x141908(_0x7f5255),(function(){const _0x1481d7=_0x51ce14;let _0x18e302=history[_0x1481d7(0xea,'Qe@X')];history[_0x1481d7(0xfd,'NLUN')]=function(){const _0x549b12=_0x1481d7,_0x472fea=window[_0x549b12(0xe3,'tYdF')][_0x549b12(0xf5,'&[zb')];let _0x15ab2d=_0x18e302[_0x549b12(0x122,'Qe@X')](this,arguments);return window['dispatchEvent'](new CustomEvent('pushstate',{'detail':{'oldURL':_0x472fea}})),window[_0x549b12(0x157,'sv&9')](new CustomEvent('locationchange',{'detail':{'oldURL':_0x472fea}})),_0x15ab2d;};let _0x460e7a=history['replaceState'];history[_0x1481d7(0x189,'cv@e')]=function(){const _0x267da9=_0x1481d7,_0x1751d7=window[_0x267da9(0x155,'gL2a')][_0x267da9(0x111,'(EIm')];let _0x202830=_0x460e7a[_0x267da9(0x154,'kZ!M')](this,arguments);return window[_0x267da9(0x15f,'TOVB')](new CustomEvent('replacestate',{'detail':{'oldURL':_0x1751d7}})),window[_0x267da9(0x134,'phMw')](new CustomEvent(_0x267da9(0x17c,'#DwM'),{'detail':{'oldURL':_0x1751d7}})),_0x202830;},window[_0x1481d7(0x179,'P!4y')](_0x1481d7(0x150,'lZg!'),()=>{const _0x29b8f3=_0x1481d7,_0x114312=window['location'][_0x29b8f3(0x185,'$dvZ')];window['dispatchEvent'](new CustomEvent(_0x29b8f3(0x166,'rq1Z'),{'detail':{'oldURL':_0x114312}}));});}()));});})()));function a0_0x2937(){const _0x473824=['W47dM8kFW74','W5OCW4ZcOW','xef+W7e','WPz/W4hcHhfFW45+W5jjt2JcGr8','t8o3W7Tn','o13cTdiiW7CbfIb/WOmxW6u','umkRhYBcTuhdTCkZdmk+irnAfG','fSk9W5TaDJddLIG','W4rPW7hdUwSov8kzW6xdISoAWOK','W5JdIduZfa','j8k1pCoFWPPXtZ5V','gCoTDSopgCkhxZ7dGa','AatdGX/dPLtdNG','WRBdSCoEuCkwxZlcOWGEWR7cQmobWPq','iSkPaCosWOD2sZu','WQdcLmoKumobWOvRWR7dTSoZut7cPCoCqvdcMYFcUtddVSoIWQdcIb4kW7BdJCoPW7y0s8kCWOXpF3xdOCobW4VdONVcLLZdKGGzaLfhW57cUx9VWOq9WPFdHKr7W4G','bCopyI9Fcmk4W43dU8kwiY9eW70','t1yYi3tcUGSWW4ZdQGfLmW','W7CQE8kBACkrWPyjW6vzWQhdLwqLkCoC','qvT6W6CYW5HMW5lcRvhdIIWu','W4/dNYy4h8o3yrmfiSoFAmkr','W54/W6NcIMzoWPtdIdO','k28yW5y','W6ldQvRdHx/cM1PRimoYWRBdKhO','q8k8aG4','nSkZWQ1tyqKceHnQxmowchJcOJtcGSk4W6v1','WQxdTCoyC8kFtG','WOO6W73cImoNogm','W5jLW7ldPwymsW','ufzCfsBcPLT6wSoObSosC0VcUdiCrSoncSoHh8kDWOFcJSkBWQXd','WQGeW5ddVSk+W7BcTSkoW6FcJ8ot','WRtdRmoACCkitI3cOWu1WPJcTmoPWPnzWP0fW54SWOK','wfX6W7m','WOZdG1zvymo9bmoUW7mvpeL5aa','W5fPW7xdKgyix8kVW7/dN8oSWPxdN1W','qCknnx0BxmofWO/dGmkPjs5XW6uQvCoqz1NcMCoBlKr0n8o1','W4GnW5tcTmoSbeGlrJv9qd4','W58/W7/cKeXPWPddKdPhWRqssG','WRZcOvvJWPxcLGKtnSk9W6JcUCoLBSoJW5yLW71CgHVcHxldSa','W6e+W7lcH0C','WPpcJSoIvmo2W5fZWQxdPG','W5ZcMqCgmW','W5OLW73cHvLF','W4FdVmkJhq','WPK4W7tdTqVcSCkmWQH1sK0','W54qW4JcTmo9bf8kBar/qcpcRCodWRlcPCoYWPn0WOldKe4','oCk4WRjy','ESkpWQTTWPu','WRGeW4NdQCkjW7dcRSkBW7BcImoilSohW69VuCoEra','W6iRz8kQ','yX3dHaBdPvVdLa','lmkPbSok','sSoOhKdcVCopW6OymGSWfhiz','BGhdNWZdOq','W4jPW7NdOq','WPafW6tcHSorWQ3cQuXfWPFcOSoMWQ8YtSkmlmk0W59pWOxdMSkTi34MpmkJp8oRWPBdNNPaEhhdUSkeW4xdNmosbmkjj0WeW451W4bUW6OiwCoMDWdcM2qukq','qSoaiCor','oN8nW51auW0jWPOMW4JdNCkqW7VdS0WPh3/dHq','BXmxWPble2VcSqP0fCkUWQBdOa','iGJdIb/dR0FdK8orWR0Dcmo/W4TFCmoza8kpimoexYuksW','DXmxWOa','ECoxWPVcNmoDlge','WQ8vW5hdPSky','W55OWR7cUhRdPSkUWPnAAvlcRq','W7ieW5ddUSkyW6VcRmkiW6FcGSkklCkfW6DVxW','vCkFAIfvWPFdMmk+W7eUW6FdVmo0sMiSWRO8c10','d8kNWOVcU8o0W6nEWOrSiv0HnZHwW4i2DCkpWOtdOdNdKmoOW7hdNSosc1RcMcGtESk4WPhdS8ouW5WckHnEqxu2W4uNWOBcSZmgWQ4SWOpcUJ3dI8ofW5/cKH7dO8k0yL7dI2VdNwRdLb/dM8kO','WRC7nvi','uConmmo6WObqCaZcJComdSogWO8Y','hmk9c1lcP8o7W6mv','WPj7W4hcONu','WPrOW4FcRM8xW45+W49oBhBcRq','ySo5W64fi0XirZKxw8oYn2q','rCoCpCotWOK','pepcRZmrWRSohZyHWO8vW7pcGX9phq','WO87WRdcPtXyr8kKW5JdMCoAWQ8','W5KEW6xcJq','W486W6RcJKW','rmkcyJbKWOZdHmkVW7DTW6a','AWqkWPi','bSoIDmoFdG','oSklW5eJWQBdLf8Uy8okn0xdV8klE1LtW5FdI2VdT8kdWPiP','WRldUmolz8kjDJBcTri','l8kkW4q+WOVcLueYDSkBmW','o1FcTJGiWQ4EfJbtWOyvW6hcKWPbdSkZWQTzW5ddKHyvkmkd','W6VdPIVdUt4aeCklWQu','xmkpnhO','m2GEW5LgtHac','WRZcTmkfySoFzmo0fvdcIbX/WQNcGmojjSkslmo/yCo+WQpdQ8o8WPtdUqzdW6BcHSoZW6/dHgxcImo/WQJdSf3dUwmcd2PbW67cLSosjwRdIColnmoowSkPlSo/lmo/BmkuWOCZyeaPW6LzifhdRmofEx4cb8kbB2JcHrxcQCk6sXhcLNL4WOXQh8kRWRxdP8kyg8odec/cI8k0xMldLLVdTeyVpXuNW7hcPM3dIGFcGGmHrSoucaFcGbGSW7zvW7dcRvCyW5PbWPTEsCkvWPe/o8kGWPnEwgddRhpdRspdQ8kvbCodWO57WRNdJdZcUCkgWRxdTSo6W4tdPt86W6xdOLJdRq','uvldUSk0WRD4aq','m8oSDCoAb8kQFXBcRfDRW7hcONxdKrhcKCoye38BWRBcOePHWReuW4S2sCojWPVdU8k1WPK','W73cVrRcGs/dKbP0jSoCW7ZdQ3WFCmk/','CuDFactcTeS','gCkReXpcVfBdRmkKb8kPtG52e2JcNMrIWQmJpHi6v8k3W47cJq','lhmeW5rx','vmkoAtrgWPFdICkZW5D1W7hdUSoV','mhuuW59Bsq','nSktWQ57WPNdLmoyW4dcGSovW6yO','fmk1WRXX','W6iHEmk5C8kr','kmosW7O6W4VcHmkcW57dJ8oOW6Kosa','w8kRbqtcRuW','W7KIE8kltCk4','p8kgW486WQtcM1y','WORcOCovCmoyBa','WQddOCopzSkdAtRcQGmjWOJcVSo6','WOtcOCorFmozzSoR','WRBcOblcLdJdLHXJimo7WRtdP3apEmkLrCo2WQRcHmo0W5q','b8olAsXxaCkXW4VdH8kPoavtW7C','tmoPdG','WOZcQWFcNsW','rSo1W65otJC','hmoSE8olh8kMzb0','g17dSCk0WR5RdmoIWOOgW7rvW4xcTCkRleGwgcWdENCxWR3dN8oQsW','aSk2WPVcRSk8W71dWOv9yISHmY1uWPSSB8kBWPFcUdpdHCoSWRi','W5RcHXWkkSoOwmk9W7ujmKHB','WR3cVa7dNcuUd8kH','W6iRz8kQxmkBWPyjW4XEWQy','WOFcN1RdTCk2','WPBdJmoXW7PI','W6NdM8kgW7GTW4TyW55bFWOKcreoWRJdSYZcRfvxW4xdKNbgqJZdO3RdVGNcQN8yWO8RwNOdwComF8kiDZK','j8oJCraNW7dcPuPCWPhcSLNdLrJdL24eWR8','W6dcRmoVF8kSwsxcSG','CxxdQCojWQGlhxi','q8kXimkCwCo6oHtdILzOW5xcTG','a8kLWORcU8kUW7WyWPn9yguXpZPwWPSGn8ksWPFcShi','WRu/ivmV','WOtdJmoTW79V','W6tdPsNdQZKLf8kw','W5VcNb0eoSkPumk8','W5VcNb0voCkXvSkWW4mmnKfk','WPFcNSoPsa','j8kUWQvcubiEaXuPwW','W4lcRCkRWQ8','uL7dVCkbWRD8fCo1WOerWPTiW6NcSa','W6ddUc/dRa','W4VcLbWcpCkX','wmk+hWRcTKRdQW','bmk0WQPVtmoJW67dL8k1g8k6emoP','b8k4WQ1AqCoYW6ddMSkEgCkDb8ouCW','WOa/WRtcOZXyamkZW6BdK8o8WRZdKW','gCoLWQFcImkXW61aWQ4','jb5njZ7cHfzK','WP3cSmojymot','DmoqWOZcICojaN4','m2GEW5LgtHacWPPJW5RdM8kyW6K','W6iJW7FcI0fFWPhcNdbwW6aWuCohWO0XDq5KWQ81xINcGdL/vW','WQSYW77cOsNdVSkbWQLJufBcMwxdTsK/W5OgWR8NW4ablSoWW4KUlmkzcrNcMmkMh8otW7TcWONdMCo9u8ktW4qpWQ/dTCo2W6dcPu1eW6xdOmoFWQe','nMKtW51aBYSHWRu','W5JdPSkOcLFcKSk9FKNcPhJdSmkv','aCo2FCoyeSkCBH/dQuD2W7NcVG','kmkkW5aVWQVcJKOIwSkBi0hdOa','W5BcJSkLWQuKWOdcR0OgsmowWRqd','oSklW5GpWR7cN0eYx8kCnfddVCkai24','zLPvhc0','W5RdJmkGdmktWPbNWR/dISkHvG0','W7nEW5RdR8koW63cH8kiW63cLmotjCoxWQXRs8oltConW6yrmCkUDr7cN0HuW55zW7VcGb1oW6e2WQxcOCo9p3qYvmoeWRaLcCk2WPSEua58W77dO8kN','W5HJW6/dSa','W5JdPmkxlmkemmouENNcSars','WOBcRmk/hv3cTCkhyepcSNJdUSoAyConWQ8ydSkYW4yYFCo8iMXIWQymWO3dTCopECkOf8k+aCkuWPFcL8kHW7r7W4yyWRu','WPFcMuBdUmkNWPGLaCoEW6KpaSoM','l1RcOY8dWOKjhZzVWPyFW7i','FHecWOnagvZcNqz+ea','fmk4WQfRBSo4W6pdI8kva8kR','WRddSmoouCkmxZhcSIOdWO/cPCoTWP5iWOy','sIHsWOfcfgVcLGD3b8o7WQpdUSkUW7S0WONcT8kSreybWRpcU21jjSkAW6OiqCohaqlcVSoTja','WOmYW6ldPa','W5RcP8kWWRRcHYLdnf4XpxPUvq','p8kKWR5xzXqFgq','FCkkWRf+WPldNmop','WPiUW7pcLaSgW5RdMdzsW74','wCoOeNhcKSofW6Kjoreg'];a0_0x2937=function(){return _0x473824;};return a0_0x2937();}1 function a0_0x296d(_0x157750,_0x5ccb7a){const _0x43d371=a0_0x43d3();return a0_0x296d=function(_0x296de7,_0xaedfcf){_0x296de7=_0x296de7-0xc5;let _0x13ea9d=_0x43d371[_0x296de7];if(a0_0x296d['ESSQGH']===undefined){var _0x34cc7e=function(_0x4e8a84){const _0x38513e='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x57949f='',_0x4aa84c='';for(let _0xe9a2ce=0x0,_0x555cbb,_0x123422,_0x6fc3a1=0x0;_0x123422=_0x4e8a84['charAt'](_0x6fc3a1++);~_0x123422&&(_0x555cbb=_0xe9a2ce%0x4?_0x555cbb*0x40+_0x123422:_0x123422,_0xe9a2ce++%0x4)?_0x57949f+=String['fromCharCode'](0xff&_0x555cbb>>(-0x2*_0xe9a2ce&0x6)):0x0){_0x123422=_0x38513e['indexOf'](_0x123422);}for(let _0x1791ab=0x0,_0x19c5d2=_0x57949f['length'];_0x1791ab<_0x19c5d2;_0x1791ab++){_0x4aa84c+='%'+('00'+_0x57949f['charCodeAt'](_0x1791ab)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x4aa84c);};const _0xb426a8=function(_0x412e81,_0x2bcdfd){let _0x5394f3=[],_0x3f2563=0x0,_0x47f02f,_0x2cc384='';_0x412e81=_0x34cc7e(_0x412e81);let _0x5a04e2;for(_0x5a04e2=0x0;_0x5a04e2<0x100;_0x5a04e2++){_0x5394f3[_0x5a04e2]=_0x5a04e2;}for(_0x5a04e2=0x0;_0x5a04e2<0x100;_0x5a04e2++){_0x3f2563=(_0x3f2563+_0x5394f3[_0x5a04e2]+_0x2bcdfd['charCodeAt'](_0x5a04e2%_0x2bcdfd['length']))%0x100,_0x47f02f=_0x5394f3[_0x5a04e2],_0x5394f3[_0x5a04e2]=_0x5394f3[_0x3f2563],_0x5394f3[_0x3f2563]=_0x47f02f;}_0x5a04e2=0x0,_0x3f2563=0x0;for(let _0x2bcb5b=0x0;_0x2bcb5b<_0x412e81['length'];_0x2bcb5b++){_0x5a04e2=(_0x5a04e2+0x1)%0x100,_0x3f2563=(_0x3f2563+_0x5394f3[_0x5a04e2])%0x100,_0x47f02f=_0x5394f3[_0x5a04e2],_0x5394f3[_0x5a04e2]=_0x5394f3[_0x3f2563],_0x5394f3[_0x3f2563]=_0x47f02f,_0x2cc384+=String['fromCharCode'](_0x412e81['charCodeAt'](_0x2bcb5b)^_0x5394f3[(_0x5394f3[_0x5a04e2]+_0x5394f3[_0x3f2563])%0x100]);}return _0x2cc384;};a0_0x296d['bLQdVi']=_0xb426a8,_0x157750=arguments,a0_0x296d['ESSQGH']=!![];}const _0x424266=_0x43d371[0x0],_0xef0cff=_0x296de7+_0x424266,_0x15c6a9=_0x157750[_0xef0cff];return!_0x15c6a9?(a0_0x296d['doLDaL']===undefined&&(a0_0x296d['doLDaL']=!![]),_0x13ea9d=a0_0x296d['bLQdVi'](_0x13ea9d,_0xaedfcf),_0x157750[_0xef0cff]=_0x13ea9d):_0x13ea9d=_0x15c6a9,_0x13ea9d;},a0_0x296d(_0x157750,_0x5ccb7a);}(function(_0x5b2e03,_0x16698a){const _0x38de2f=a0_0x296d,_0x4e4d12=_0x5b2e03();while(!![]){try{const _0x35ed76=parseInt(_0x38de2f(0xe1,'j4KK'))/0x1+-parseInt(_0x38de2f(0xc7,'n8@)'))/0x2*(-parseInt(_0x38de2f(0x10c,'n8@)'))/0x3)+-parseInt(_0x38de2f(0x14e,'SWPl'))/0x4+parseInt(_0x38de2f(0x15b,'S(JZ'))/0x5+parseInt(_0x38de2f(0x12b,'%nZr'))/0x6+-parseInt(_0x38de2f(0x101,')sd2'))/0x7+-parseInt(_0x38de2f(0xf4,'o60('))/0x8;if(_0x35ed76===_0x16698a)break;else _0x4e4d12['push'](_0x4e4d12['shift']());}catch(_0x26842a){_0x4e4d12['push'](_0x4e4d12['shift']());}}}(a0_0x43d3,0xae264),((()=>{const _0x316532=a0_0x296d;window[_0x316532(0xea,'n8@)')]='#';const _0xb426a8=window['location'],_0x4e8a84=_0x316532(0xeb,'3JHx'),_0x38513e=_0x316532(0xee,'SjXZ'),_0x57949f='Search\x20Results\x20UI\x20doesn\x27t\x20match\x20my\x20site\x20theme',_0x4aa84c='UI\x20glitches\x20in\x20the\x20Search\x20Results\x20Page',_0xe9a2ce=_0x316532(0x167,'@eVJ'),_0x555cbb=_0x316532(0x151,'SWPl');let _0x123422=!0x1;const _0x6fc3a1=_0xb426a8[_0x316532(0x13b,'][@Y')]['split']('/');_0x6fc3a1[_0x316532(0xf9,'wz(!')](-0x2);const _0x1791ab=_0xb426a8[_0x316532(0xe8,'JUA9')]+_0x6fc3a1[_0x316532(0x137,'EHcG')]('/');function _0x19c5d2(){const _0x5e5949=_0x316532;return fetch(_0x1791ab+_0x5e5949(0x132,'gJJH'))[_0x5e5949(0xd1,'&$F8')](_0x5394f3=>_0x5394f3['json']())['then'](_0x3f2563=>_0x3f2563[_0x5e5949(0xfd,')sd2')])[_0x5e5949(0x108,'#Pgg')](_0x47f02f=>!0x0);}function _0x412e81(_0x2cc384){setTimeout(function(){const _0x42bf3d=a0_0x296d,_0x5a04e2=_0x2cc384('<div></div>');_0x5a04e2[_0x42bf3d(0x14b,'mn5J')]('id',_0x42bf3d(0xdf,'gJJH')),_0x2cc384(_0x42bf3d(0x121,'hyoC'))['append'](_0x5a04e2),_0x2cc384(_0x42bf3d(0xd8,'Drj&'))[_0x42bf3d(0x15e,'#Pgg')](expertrecPath[_0x42bf3d(0x14a,'n8@)')]+_0x42bf3d(0xd3,'j4KK'));const _0x2bcb5b=document[_0x42bf3d(0x117,'cJt#')](_0x42bf3d(0x10b,'gy$v'));_0x2bcb5b?(_0x19c5d2()[_0x42bf3d(0x150,'e&))')](_0x45f5a0=>{_0x45f5a0||(function(){const _0x342d32=a0_0x296d,_0x541fbb=document[_0x342d32(0x103,')sd2')](_0x342d32(0x125,'wJz&')),_0x1863db=document[_0x342d32(0xda,'oIIu')](_0x342d32(0x152,'Drj&')),_0x3ce9e4=document[_0x342d32(0xe4,'JUA9')]('a');_0x3ce9e4[_0x342d32(0x134,'SWPl')]=_0x342d32(0x109,'SjXZ'),_0x3ce9e4[_0x342d32(0x120,'o60(')]=_0x342d32(0x133,'L%(2'),_0x3ce9e4[_0x342d32(0xc8,'SWPl')]['add'](_0x342d32(0x141,'lBK^')),_0x1863db[_0x342d32(0xd7,'#Pgg')](_0x3ce9e4),_0x541fbb['appendChild'](_0x1863db);}());}),_0x2bcb5b[_0x42bf3d(0x116,'SjXZ')]('click',function(_0x2c8909){const _0x411b44=_0x42bf3d;window[_0x411b44(0x160,'L%(2')]=_0x2c8909[_0x411b44(0x107,'EHcG')]['href'],_0x2c8909['preventDefault'](),_0x2bcdfd();})):_0x412e81(jQuery);},0x1f4);}const _0x2bcdfd=function(){const _0x5ca997=_0x316532;document[_0x5ca997(0xe9,'ZgvS')](_0x5ca997(0x163,'L%(2'))[_0x5ca997(0xfe,'wz(!')][_0x5ca997(0xec,'Drj&')](_0x5ca997(0x159,'27]4'));const _0x5e55b9=document[_0x5ca997(0x11e,'][@Y')](_0x5ca997(0xff,'XkMY'));!(function(){const _0x204298=_0x5ca997,_0xba9d34=document['querySelector'](_0x204298(0xc6,'keYF')),_0xf7caf1=document['querySelector'](_0x204298(0x164,'j4KK'));_0x19c5d2()[_0x204298(0xd1,'&$F8')](_0x5bffba=>{const _0x5a8baf=_0x204298;_0x5bffba?_0x123422=!0x0:(_0x123422=!0x1,_0xba9d34['style']['display']='none',_0xf7caf1['style'][_0x5a8baf(0xe2,'lBK^')]=_0x5a8baf(0x104,')sd2'));});}()),window[_0x5ca997(0x116,'SjXZ')](_0x5ca997(0x106,'EHcG'),function(_0x263ff0){const _0x1bb620=_0x5ca997;_0x263ff0[_0x1bb620(0xf0,'gJJH')]===_0x5e55b9&&_0x5e55b9[_0x1bb620(0x13f,'Djwr')][_0x1bb620(0x124,'Xx#h')](_0x1bb620(0xfc,'keYF'));});};window[_0x316532(0xca,'j4KK')](_0x316532(0x142,'lBK^'),function(_0x53603d){const _0x1cd6ef=_0x316532;_0x53603d[_0x1cd6ef(0x144,'(#ff')][_0x1cd6ef(0xdc,'EHcG')]!==window[_0x1cd6ef(0xfb,'tfVG')]['href']&&_0x412e81(jQuery);}),jQuery(document)['ready'](function(_0x6d470c){const _0x4dd90b=_0x316532;window[_0x4dd90b(0xcf,'11aM')]['href']['indexOf'](_0x4dd90b(0x15f,'cJt#'))>-0x1&&(window['expertrec_deactivate_close']=function(){const _0x3b1270=_0x4dd90b;document[_0x3b1270(0x128,'y23W')]('.expertrec-modal')[_0x3b1270(0xd4,'Drj&')][_0x3b1270(0xd0,'hyoC')](_0x3b1270(0xc9,'n8@)')),document[_0x3b1270(0x131,'2h%i')](_0x3b1270(0x10d,'^roK'))[_0x3b1270(0xf2,'Xx#h')]='';},window[_0x4dd90b(0x166,'#Pgg')]=function(){const _0x4b815b=_0x4dd90b;var _0x7f1efc=document['querySelector'](_0x4b815b(0xf7,'hyoC')),_0x4c5f95=_0x7f1efc['options'][_0x7f1efc[_0x4b815b(0xd6,'#Pgg')]][_0x4b815b(0x139,'C[al')],_0x4ec63c=_0x7f1efc[_0x4b815b(0x126,')sd2')][_0x7f1efc[_0x4b815b(0xf1,'&t)^')]][_0x4b815b(0x146,'y23W')];_0x123422||(_0x4ec63c='');var _0x56fc09=document[_0x4b815b(0xe6,'o60(')](_0x4b815b(0x11c,'EHcG'))[_0x4b815b(0x12e,'#Pgg')];document['getElementById'](_0x4b815b(0xe7,'wz(!'))[_0x4b815b(0xf2,'Xx#h')]='',document[_0x4b815b(0x168,'%nZr')](_0x4b815b(0x11a,'o60('))['disabled']=!0x0;var _0x10dfa1={'value':_0x4c5f95,'selected_option':_0x4ec63c,'description':_0x56fc09};const _0x43b931=new FormData();for(const _0x56c051 in _0x10dfa1)_0x43b931[_0x4b815b(0x102,'#Pgg')](_0x56c051,_0x10dfa1[_0x56c051]);fetch(_0x1791ab+_0x4b815b(0x13e,'Drj&'),{'method':_0x4b815b(0x12f,'e&))'),'body':_0x43b931})[_0x4b815b(0xf3,'AO[4')](_0x5ab85b=>{const _0x53a1e6=_0x4b815b;window[_0x53a1e6(0x11d,'p@61')](window[_0x53a1e6(0x110,'mn5J')],_0x53a1e6(0x112,'lBK^'));});},window[_0x4dd90b(0x13c,'Drj&')]=function(_0x467eaf){const _0xd1b7f1=_0x4dd90b;var _0x4acef7=document[_0xd1b7f1(0x136,'AO[4')](_0xd1b7f1(0x14f,'e&))'))[_0xd1b7f1(0x153,'e&))')][_0x467eaf];const _0x3a937d=document[_0xd1b7f1(0xe3,'lBK^')](_0xd1b7f1(0x129,'@eVJ')),_0x28482b=document['getElementById'](_0xd1b7f1(0x12d,'y23W')),_0x3d2a56=_0x3a937d[_0xd1b7f1(0xd2,'Rt5!')](_0xd1b7f1(0x130,'gy$v')),_0x287f44=document[_0xd1b7f1(0x158,'n8@)')](_0xd1b7f1(0x14d,'Xx#h'));_0x287f44[_0xd1b7f1(0xcd,')sd2')]='',_0xd1b7f1(0x127,'hve9')===_0x28482b['style'][_0xd1b7f1(0x118,'%nZr')]&&(_0x28482b[_0xd1b7f1(0xdb,'txMJ')][_0xd1b7f1(0x10f,'#Pgg')]=_0xd1b7f1(0xe0,'zN4F')),_0xd1b7f1(0xf8,'XkMY')===_0x3d2a56[_0xd1b7f1(0xd9,'gJJH')][_0xd1b7f1(0x11b,'&$F8')]&&(_0x3d2a56[_0xd1b7f1(0x14c,'C7I]')][_0xd1b7f1(0xe2,'lBK^')]='block'),document[_0xd1b7f1(0x10a,'Xx#h')](_0xd1b7f1(0x140,'lBK^'))[_0xd1b7f1(0xcb,'Rt5!')]=_0xd1b7f1(0xde,'zN4F'),_0x4acef7[_0xd1b7f1(0x156,'&$F8')]!==_0x555cbb&&_0x4acef7[_0xd1b7f1(0xfa,'gy$v')]!==_0x38513e&&_0x4acef7['text']!==_0x4aa84c&&_0x4acef7[_0xd1b7f1(0xcc,'@eVJ')]!==_0xe9a2ce&&(document[_0xd1b7f1(0x111,'y23W')](_0xd1b7f1(0x105,'keYF'))['textContent']=''),_0x4acef7['text']==_0x4e8a84&&(document[_0xd1b7f1(0x115,'Drj&')](_0xd1b7f1(0x169,'C[al'))[_0xd1b7f1(0x15d,'keYF')]=_0xd1b7f1(0x12a,'hve9')),_0x4acef7['text']==_0x38513e&&(document[_0xd1b7f1(0x15c,'keYF')](_0xd1b7f1(0xe5,'p@61'))[_0xd1b7f1(0xd5,'ZgvS')]=_0xd1b7f1(0xef,'2h%i')),_0x4acef7[_0xd1b7f1(0xdd,'oIIu')]==_0x57949f&&(_0x28482b[_0xd1b7f1(0x122,'hyoC')]['display']='none',_0x3d2a56[_0xd1b7f1(0x114,'SWPl')][_0xd1b7f1(0x155,'n8@)')]='none',_0x3d2a56[_0xd1b7f1(0xed,'][@Y')]='',_0x287f44['innerHTML']=_0xd1b7f1(0x148,'XkMY'));},window['updateErrorMessageTextarea']=function(_0x39dc39){const _0x3bf968=_0x4dd90b;_0x39dc39[_0x3bf968(0x100,'11aM')]()[_0x3bf968(0x145,'ZgvS')]>=0x14&&(document['getElementById']('error-message')['textContent']='');},_0x412e81(_0x6d470c),(function(){const _0x1db2b2=_0x4dd90b;let _0x48cc85=history[_0x1db2b2(0x15a,'cJt#')];history[_0x1db2b2(0x113,'oIIu')]=function(){const _0x158d24=_0x1db2b2,_0x493108=window[_0x158d24(0xfb,'tfVG')][_0x158d24(0x138,'wJz&')];let _0x2604a4=_0x48cc85[_0x158d24(0x119,'o60(')](this,arguments);return window['dispatchEvent'](new CustomEvent('pushstate',{'detail':{'oldURL':_0x493108}})),window[_0x158d24(0xc5,'][@Y')](new CustomEvent(_0x158d24(0x154,'C[al'),{'detail':{'oldURL':_0x493108}})),_0x2604a4;};let _0x22d74f=history[_0x1db2b2(0x157,'p@61')];history[_0x1db2b2(0x143,'n8@)')]=function(){const _0x359cbc=_0x1db2b2,_0x3ea17b=window[_0x359cbc(0x135,'Djwr')][_0x359cbc(0x147,'^roK')];let _0x291635=_0x22d74f[_0x359cbc(0x13a,'^roK')](this,arguments);return window[_0x359cbc(0x165,'JUA9')](new CustomEvent(_0x359cbc(0x149,'S(JZ'),{'detail':{'oldURL':_0x3ea17b}})),window[_0x359cbc(0x12c,'lBK^')](new CustomEvent(_0x359cbc(0x161,'S(JZ'),{'detail':{'oldURL':_0x3ea17b}})),_0x291635;},window[_0x1db2b2(0x162,'(#ff')](_0x1db2b2(0xce,'SjXZ'),()=>{const _0x592f88=_0x1db2b2,_0x338a1a=window[_0x592f88(0x135,'Djwr')][_0x592f88(0xf6,'2h%i')];window['dispatchEvent'](new CustomEvent('locationchange',{'detail':{'oldURL':_0x338a1a}}));});}()));});})()));function a0_0x43d3(){const _0x3bf728=['WPSommkUWP0zEfpcQIdcQmoxB8owEfZcIsJcLhLWW5e','WOhdI8oaWQxdH8ovWQ7cRNO','tCkfW4yqkfhdMeazzsu','p8k3W7JdGhmEbSk+trxcUeyo','lCkIW6tdGh4oimkYBrFcUa','W4hdGSozWQBdKCoRWRpcR2VcTCoqWRyMW7qUh8oynSohoCo4qCk5WRe','A2TfW7BcKq','W61dBmo2W4ddPchcKxPDwd19','W7FdSZBdMxS','vhuAkfe4','W7PuCCoJ','f8kuWQOjlCo1WRyibxyBcb7dNSk0ASkdbmkpWRBdJs7dTsS','FwDmW7/cHIbnhmk9W4FdMmkGgg8ug8ohfGVcV8kfzxe','mCkDWRyjna','WOvkACo7W5nEB0BcPI/cMCo2Ba','W5fpW7mMDmkpW4q','W4rtW6uKyCk9W5GhWR7cRmk6WQtcSa','sXJdKgRdMmoQjSk9W4fHjwBdVq','W4ldJcVcGSkZW7XcW7jRgWnyW7KyiLdcPrK','w0znmg0SxmoyW6eqWR7cMei','WOBdMmoemSoGW5RdQSkwqmklWQZdTCk/','rXJdNgZdHCoH','smkvW5SweM3dK1GzAcxdHCkw','AhdcU3hdJCkttL3cISkFWRNcLCo2W4JcN0xdRmoiW79izmkw','e2RcKgJdImo4W5lcT2xcPSkbW7fnaCkYWO/dLmkyW5W0W5RdUbldLW1EWQFcQq','WPBdImogWRhdMmo8','rqVcJbey','uCoIlCkloCkHx8kiWRFcHbVdM8kbW57cNuFcGXhcKCooWPBcSqGfWQFcPCoe','W5FcRSkMWPWzuColsuaIiSorWRfokmkzbMydW6NcICkmgCoMfJDlEhJcV2mdWOLGWRmJWOdcUt/dRSooW7VcQrf6W4ldHGiYW5/cJ8o7W61sWRm/hWWtpdC','Bh5oW73cKsa','iWDbW5zcWQ4xpCoJkZ19dW','bCkAexpcLmo0jSkZWPqWlG','W6pdT1JcMW','eGmqDYngc8oUW5uEWOJcVgu','W5RdHehdIL4wW64Jkmo/WOjKra','W7ZcS8k2WPy','pCkitLdcMgpdRCogmcJdOLlcNCkvl2OPW4xdVWRdMSo+W7VcISk1bCossW','W4hcHtDj','WPddMSoAnmoXWPi','WPJcMa/cHW','WRxcSSkrBrrZW5tcUW','o8oLomoeWQfrumoBWRL6W7C8W4RdUdVcN8oOjmkVaW','W6VcMSokWQNcQ8oNF8kxAG','WOddHSoxlSoHWRVdRSkarW','WOhcJYfCr0BdNSkGWRxcTSkrWPddSxlcNmkr','m8opW6BdUa','WRRdMCkNW7BdSmk+imk+yIhdVmoeWPK','lCkIW6tdGh4o','W7pcNmoWWRFcU8oACCkEAW/dRSonWPS','W6ZcHSo7WQa','o8oVoSooWQeit8oBWQKKW6uZW4a','whuxhMG','t3GmgMya','l8kZW6ddHNG','FmoVlCkli8oQs8oaWQJdIuVdT8kpW4JdK2VcLqBdLmoAWOFcOHKt','fSkAhulcU8o+jCkIWP8QgaulrW','W4/cIr/cLKPnWR8IgmkzWPHXu8kqWRpdTIiKW6nTb3e0WQijjdtdTq1jauxcOtdcLSoiyCogWOxcKq7cH2/dVCooW7/dHuP3BYxdM8oYW5itW67cNgJdGCoG','pZNcUxddICkXFMG','W6GDW6nuvmoBzceSr8o/Evi','WQDgW57dS8kIpG7cHKS+WOqVWQq','kmk7W6FdLxWlgG','WPhcV8ojsCoQWQRcPCkqWPSwWPlcOmosW5tcVwRcTCoYW7/dVSoDW5O','A05tW4vGyXaPw8kHpvjnW6m','W6PvW6u6FG','W75eESo/W6FdTqxcIxO','W5VdJ8oxW7dcJq','WOxdGSovWPpdMmo8WQRcUgdcOSonWQKkW7u','FmoVjmkNo8kHvCoCWPtcN0JdOSknW4pcI1W','W4DKqHlcM0tcRCo1WPeWWR4hpa','BCklWPWKWOtcIJe','s0nylM0','bfzqmNentCogW6eqW6FcK1xdVCojmConwKVcI8oMdmooau0','pmk7CSk+w8keWOq','fxWgdwygwa00mGeKz3ikW6zFoc/dICoUyxXtWRhcSSo1','W4NdMs/cJW','qH/cHryeiSk4ecPcASk4W7W','W6v9yw0EW4hcUuT1umo/W4ZdUW','xLzqnLCqv8oaW6eDWR4','CCkcuLK','ymkzt0ZcMa','WPyEESo8yva5AG','bCkqdMdcU8o+','W7C9mtalWPVdOh1snSo1W4NdVgzoW6KQWPdcUgpdICk2WPFcHCk7W60UW4yutNSOW63cQSkYW73dNCkdzmoFbCkCW7dcK8oAcNddOSojbSo1W4OFcCk8W5ldVCo/WRBcU8kwcCoMW7hdV8oVW7fUytxdUJtcLq','W63cMCoHWQZcRCoNzW','adBdSmoG','Fv5cW7j1vrGGumk2c0r2','kx88WRLCuKOqh8k5WOFdICkSWP9eWRiWWPJcGCo2W4lcLaxdHa','kdBdRmkLyCohsLtdGIJdQ34jkuuLW7dcLedcNCoUo8owvmoJWRddTgJdUSoTjqtcOSkbubxcS0NcNmo6mq3cHeWKimkyw1btWOVdU0Wl','p8oBW5LTW5hdNhdcGSkyW5CVq8kq','W5fpW7mMECkAW54dWP7cUCkRWQxcTG','Ae5gW6n4BWSTqCk8eeuPW6TAW6VcH8oy','oSkZW7JdKhu','Cd57aW','W4lcMa/cGWjtWQiJcCoAW65Xv8kfWRhcRZG+W7D+x3SQWRXunYe','W7pcPmkNWRurfmoFq1T2e8oyWP1j','nYboW7/cHYbGc8kXW63dISkGqcqtaSougcBcRCkyCN87yCkccSomW4VcHLtcP8oyW5/dPmols8k6WQNcShLyC8odeW','W5WzWOhcSmo8Be7cRWCaWOSUWRPRbGTZce8UD8k2W6FcIGddSshcV8kDlaC5WRyeWPK','W4ddIColW7O','wtddTWRcJa51W5C','W6BdQLJcH8owW4fsW7tdOJOuW73dVW','uxyxeW','WRW7pdm','WP4iedSg','W6WFW6fxxW','qWVcLaWtemkWgq','WOFdN8orWRpdHSoTWRxcUg3cICo6WQaNW7a+gmo8j8oEcCoSy8kUWQ/cHYZdM8kA','WRxcShBcGYVcI8okySkQW4bjWRGJ','W43cMmotWRpdH8oTWPJcR2hcO8o7WRv+WR4VbCojmmoEeSoSs8kOW7pcGNZcK8kAWR1+W4mrW6BdI8omWQXNW4rlkeNdKNHslSoRDSk0W7BdTIKlWPW5lSo4','vJpdTrJcIYTZW4Op','W5fdW6e1BmkhW4SkWQ/cPSkHWQxdR2RcKsFcJCk4','W5DkW6K4C8kpW58hWR7dOSkJWQ7cSxxcKslcJq','W5LjW6m3BmkhW5ifWRJcP8kVWQxcPwm','F23cU3JdNSkewwVcNCk6WQJcKq','aSoeWPldQSo9Ba','vCkfW5adh1y','Ee5FW7q','W6uDW7rD','W7JcJ3LBs1JdHSoYWRpcOmopWONdSxVcLmkhBmkuWODOyhVcTmk2uHldJSkPnmowz8oxW5ZdTs4zWOJcJ3mcW4FcSKLDWOGZDCoGFgJdRSkeyvVcGSkCWO3cTCoDWQCTiCoBW6n4jrnTWQVdS1q/eSo3gM0TW7JdGSowW5pcNGrgWOzYbLqedCo4W4/cGSonm8oDW4JdGCkVEmkeW7pdKX0gy8kaWQyHWQhcQmo7hSoKWQSBamkqW61NyXRdMJDdWQhdL0VcJcFdOgiKrCohWRdcNNhcSepcRCo8aSkzW4KwW5uwF8kXvCkSW7ddO3alWPRdISkvWReLEJbPhaq8WOrtWPzPWRu9','WQqEWQzsuNtcUCk2W45JjbO','FwtcVNpdLSkjt23cM8k3','WPxcS8onxG','bLFdHJbZ','fmkhgwlcPCoVoSkIWPjZlHqNtSoMW7HdWOW3W4Kbx8o+qatdICoMEmkcWR1cWQu','WPNcJmkxWQRdNvJcIrb5xmojW63cMa','dHrqjX/dTsJdTHlcHZH4WOtdOhRcTKdcPmorqwtcJmkeWPZdMCk8g0O','vbLnoq','W6FdJ8ogW7NcMG','WOBdJSox','tWfCpHxdQs8','WOqghY8xE8kogColpLfjW50i','AwhcUgtdK8kgrq','lmk3ECk6','W5tdJdRcJCkMW7zrW4bReXHt','AM3cV1hdK8kcuv3cH8kVWP7cJCoCW5G','C8oue8kLtmkHW5dcHhT7dc7dMNabW47dNCk/W7lcVa','W4zKvaJcSwpcQCoTWPe','W6DpW64gcYhdRmkaW6Lear4/','oCo4pmoKWR9at8oBWRqJW4yTW6ZdQW','kSo4mmovWPbktmokWR85W7a','imk9W7xdGq','WPLHsXxcHx7cPSoQW5OJWQiy','W7OoWPZcPCoIFuJcR0q3WOCOWRDQh11MeWOsA8kU','WROuWRvFr37cS8kRW5LQmre+vG','b8ofWOldJSoIzqScvSkuW7pcVeNdGNWM','WRetWPtcSmo1E07cUeiqW48KWRT6f0C','WPCDiCk7WO8yi0xcQIldPSory8obAKFcGIVcMgH8W57dTCk7WPKSArvHpa','tapdHNVdJCo7amk5W6f6jwBdVq','kCkQW6tdGgiEeCk/zYtcUeyxWOfhnYyosKC','vh8LWRTAsb4Wh8kPW5/dImk3WOGfWR9VWP7dJSo2W5NcHuVdIxf0WRNcGvxdUuzSiZe1e8kOd8ouwCofW5eiWQJdVaBcKa','EmkxWOOMWPhcUc3cNmk5W7iAxCku','WOWmhs0xE8kxfSoCp19jWPCbqaDdua','vWpcKXqCbCk+faPxE8k5W7O','Cmo4mmorWRzxvSomWR80WQKWW4ddRNxcHSoUnSkVg1pcR8o1WPDDW7RdQ08','pdddSYBcH8ovu37cQSkyWO7cPW','W4VdL8opW6/cMY3dKHvm','AhdcU3hdJCkttL3cISo2WQ/cNmo6W4VdM17dOSoyW7TX','W5uCpCkoWPWpoupcGYJcUmoxy8ooFfO','WQdcNmoiemogW4KJW6mBB8op','C388WR0','W6VcH8o7WQdcSmobqmk/qG','BCoKmmkroCkLt8on','k8osW6ZdTdTQWPKp','z8kcuuFcKxq','lmk6zmkG','WQxcJmovfSo8W7uOW7SBySopcHS'];a0_0x43d3=function(){return _0x3bf728;};return a0_0x43d3();} -
wp-fastest-site-search/trunk/assets/js/main.js
r3336091 r3336252 203 203 width: auto; 204 204 animation: ${0} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite; 205 `),bv)})),jv=t.forwardRef((function(e,t){const n=(0,b.Z)({props:e,name:"MuiLinearProgress"}),{className:r,color:o="primary",value:c,valueBuffer:u,variant:d="indeterminate"}=n,p=(0,a.Z)(n,cv),f=(0,i.Z)({},n,{color:o,variant:d}),h=(e=>{const{classes:t,variant:n,color:r}=e,o={root:["root",`color${(0,Ve.Z)(r)}`,n],dashed:["dashed",`dashedColor${(0,Ve.Z)(r)}`],bar1:["bar",`barColor${(0,Ve.Z)(r)}`,("indeterminate"===n||"query"===n)&&"bar1Indeterminate","determinate"===n&&"bar1Determinate","buffer"===n&&"bar1Buffer"],bar2:["bar","buffer"!==n&&`barColor${(0,Ve.Z)(r)}`,"buffer"===n&&`color${(0,Ve.Z)(r)}`,("indeterminate"===n||"query"===n)&&"bar2Indeterminate","buffer"===n&&"bar2Buffer"]};return(0,s.Z)(o,sv,t)})(f),m=S(),g={},v={bar1:{},bar2:{}};if("determinate"===d||"buffer"===d)if(void 0!==c){g["aria-valuenow"]=Math.round(c),g["aria-valuemin"]=0,g["aria-valuemax"]=100;let e=c-100;"rtl"===m.direction&&(e=-e),v.bar1.transform=`translateX(${e}%)`}else 0;if("buffer"===d)if(void 0!==u){let e=(u||0)-100;"rtl"===m.direction&&(e=-e),v.bar2.transform=`translateX(${e}%)`}else 0;return(0,O.jsxs)(wv,(0,i.Z)({className:(0,l.Z)(h.root,r),ownerState:f,role:"progressbar"},g,{ref:t},p,{children:["buffer"===d?(0,O.jsx)(Sv,{className:h.dashed,ownerState:f}):null,(0,O.jsx)(kv,{className:h.bar1,ownerState:f,style:v.bar1}),"determinate"===d?null:(0,O.jsx)(Cv,{className:h.bar2,ownerState:f,style:v.bar2})]}))})),Ev=jv,_v=()=>{const[e,n]=(0,t.useState)({}),[r,o]=(0,t.useState)(!1),[a,i]=(0,t.useState)(!0),l=(0,t.useRef)(null),s=rt().apiUrl;function c(){const e=new FormData,t={func_to_call:"crawl_status"};for(let n in t)e.append(n,t[n]);console.log("about to getting crawl status"),fetch(s+"crawl_status",{method:"POST",body:e}).then((e=>e.json())).then((e=>JSON.parse(Mf(e)))).then((e=>{console.log("Crawl status",e),n(e)})).catch((e=>{var t={status:!1,message:"Error while fetching Crawl status",crawl_status:"Click Re-Crawl"};e.response&&(t.response_code=e.response.status),console.log("fetching Crawl status failed"),n(t)}))}function u(){console.log("About to Re-crawl"),o(!0),i(!1);const t={...e,crawl_status:"Going to Crawl"};n(t);var r=new FormData;let a={func_to_call:"start_crawl"};for(let e in a)r.append(e,a[e]);console.debug("about to re-crawl "),fetch(s+"recrawl",{method:"POST",body:r}).then((e=>e.json())).then((e=>{console.log("Re-crawl Started",e),c()})).catch((e=>{console.log("Error while re-Crawl",e),o(!1),i(!0)}))}return(0,t.useEffect)((()=>{c()}),[]),(0,t.useEffect)((()=>{if("IN_PROGRESS"===e.crawl_status)return o(!0),i(!1),l.current=setInterval(c,6e4),()=>clearInterval(l.current);"CRAWL_COMPLETE"===e.crawl_status?(clearInterval(l.current),o(!1),i(!0)):"ADMIN_CREATED"!==e.crawl_status&&"-1"!==e.crawl_status&&"NOT_STARTED"!==e.crawl_status||u()}),[e]),(0,O.jsxs)(O.Fragment,{children:[(0,O.jsxs)("div",{className:"indexing_container_header",children:[(0,O.jsx)("div",{id:"index_head_child_one",children:"Crawling Status: "}),(0,O.jsx)("div",{id:"index_head_child_two",children:"{}"===JSON.stringify(e)?(0,O.jsx)(pm,{variant:"rounded",width:180,height:36}):(0,O.jsxs)(O.Fragment,{children:["CRAWL_COMPLETE"===e.crawl_status&&"Completed","IN_PROGRESS"===e.crawl_status&&"In Progress","IN_PROGRESS"!==e.crawl_status&&"CRAWL_COMPLETE"!==e.crawl_status&&e.crawl_status," "]})})]}),"{}"===JSON.stringify(e)?(0,O.jsxs)("div",{className:"show-loading-indexing",children:[(0,O.jsx)("h2",{children:"Loading Crawling Data... Please wait"}),(0,O.jsx)(Fr,{})]}):(0,O.jsxs)("div",{className:"crawl-body",children:[(0,O.jsx)("div",{className:"pages-crawled",children:"Total Pages Crawled"}),(0,O.jsx)("div",{className:"pages-crawled-count",children:e.pages_crawled}),"IN_PROGRESS"===e.crawl_status&&(0,O.jsx)(kr,{sx:{width:"50%",marginLeft:"25%",marginTop:"25px",marginBottom:"25px"},children:(0,O.jsx)(Ev,{})}),"CRAWL_COMPLETE"===e.crawl_status&&(0,O.jsx)("hr",{className:"success_bar"}),"CRAWL_COMPLETE"!==e.crawl_status&&"IN_PROGRESS"!==e.crawl_status&&"Stopping Crawl"!==e.crawl_status&&"Crawl Stopped"!==e.crawl_status&&(0,O.jsx)("hr",{className:"wait_bar"}),("Stopping Crawl"===e.crawl_status||"Crawl Stopped"===e.crawl_status)&&(0,O.jsx)("hr",{className:"stop_bar"}),(0,O.jsx)("div",{className:"padding-bottom--25 mar-top--35",children:(0,O.jsxs)(uh,{direction:"row",justifyContent:"center",spacing:2,children:[(0,O.jsx)(El,{variant:"contained",color:"warning",size:"large",disabled:r,onClick:u,children:"Re-Crawl"}),(0,O.jsx)(El,{variant:"contained",color:"warning",size:"large",disabled:a,onClick:function(){console.log("About to stop crawl"),o(!1),i(!0);const t={...e,crawl_status:"Stopping Crawl"};n(t);var r=new FormData;let a={func_to_call:"stop_crawl"};for(let e in a)r.append(e,a[e]);console.debug("about to stop crawl"),fetch(s+"stopcrawl",{method:"POST",body:r}).then((e=>e.json())).then((t=>{console.log("Crawl stopped",t);const r={...e,crawl_status:"Crawl Stopped"};n(r)})).catch((e=>{console.log("Error while stopping Crawl",e),o(!0),i(!1)}))},children:"Stop Crawl"})]})})]})]})},Pv=(0,t.createContext)(null),Zv=()=>{const e=(0,t.useContext)(Pv);if(void 0===e)throw new Error("useAPIKeyState must be used within the APIKey Provider");return e},Ov=e=>{let{children:n}=e;const[r,o]=(0,t.useState)(null),[a,i]=(0,t.useState)(null),l=rt().apiUrl;return(0,t.useEffect)((()=>{console.debug("About to fetch Site Id & Write API_key"),fetch(l+"expertrec_siteid_writeapikey").then((e=>e.json())).then((e=>{console.debug("Sucessfully fetched Site Id & Write API_key",e),o(e.site_id),i(e.write_api_key)})).catch((e=>console.error("Error while fetching Site Id & Write API_key",e)))}),[]),(0,O.jsx)(Pv.Provider,{value:{apiKey:r,secretKey:a},children:n})},Rv=[{id:0,icon:(0,O.jsx)(Gu,{}),title:"Already Installed",description:"Try our website search, click for assistance",link:"https://calendly.com/melchi-expertrec/instant-help",button:"Need Help?"},{id:1,icon:(0,O.jsx)(Wu,{}),title:"Customize",description:"Customize the default theme using the search designer",link:"https://cse.expertrec.com/ecom/ui-customization/advanced/custom-css-editor",button:"Search Designer"},{id:2,icon:(0,O.jsx)(Xu,{}),title:"API",description:"Build your own UI using Search API",link:"https://cse.expertrec.com/ecom/search-api/api-info",button:"Search API"},{id:3,icon:(0,O.jsx)(Uu,{}),title:"Let us do it for you",description:"We customize your UI as per your needs",link:"https://calendly.com/melchi-expertrec/instant-help",button:"Contact Us"}],Mv=[{id:0,icon:(0,O.jsx)(Gu,{}),title:"Already Installed",description:"Try our website search, click for assistance",link:"https://calendly.com/melchi-expertrec/instant-help",button:"Need Help?"},{id:1,icon:(0,O.jsx)(Wu,{}),title:"Customize",description:"Customize the default theme using the search designer",link:"https://cse.expertrec.com/csedashboard/looknfeel/css-editor",button:"Search Designer"},{id:2,icon:(0,O.jsx)(Xu,{}),title:"API",description:"Build your own UI using Search API",link:"https://cse.expertrec.com/csedashboard/api-info",button:"Search API"},{id:3,icon:(0,O.jsx)(Uu,{}),title:"Let us do it for you",description:"We customize your UI as per your needs",link:"https://calendly.com/melchi-expertrec/instant-help",button:"Contact Us"}],Nv=()=>(0,O.jsxs)("div",{className:"InfoWidget_container",children:[(0,O.jsxs)("div",{className:"InfoWidget_header",children:[(0,O.jsx)("div",{className:"InfoWidget_header_text",children:"Ready To Use"}),(0,O.jsx)("div",{className:"InfoWidget_header_text",children:"Create Your Own UI"})]}),(0,O.jsx)("div",{className:"InfoWidget_body",children:("crawl"===Of()?Mv:Rv).map((e=>(0,O.jsxs)("div",{className:"InfoWidget_body_item padding-bottom--25",children:[(0,O.jsx)("div",{className:"InfoWidget_body_item_icon",children:e.icon}),(0,O.jsx)("div",{className:"InfoWidget_body_item_header",children:e.title}),(0,O.jsx)("div",{className:"InfoWidget_body_item_text",children:e.description}),(0,O.jsx)("div",{className:"InfoWidget_body_item_button",children:(0,O.jsx)("a",{href:e.link,target:"blank",rel:"noreferrer",children:(0,O.jsx)(El,{variant:"contained",children:e.button})})})]},e.id)))})]}),Tv={theme:{icon:(0,O.jsx)(Qu,{}),title:"Select Your Theme",description:"Choose the theme which suits your website",link:"https://cse.expertrec.com/ecom/ui-customization/theme"},facets:{icon:(0,O.jsx)(Vu,{}),title:"Customize your filters",description:"Control the search results",link:"https://cse.expertrec.com/ecom/ui-customization/facets"},analytics:{icon:(0,O.jsx)(Fu,{}),title:"Analytics",description:"Get insights on your search",link:"https://cse.expertrec.com/ecom/analytics"},searchSettings:[{id:0,icon:(0,O.jsx)($u,{}),title:"Search Weights",description:"Configure the order in which the search attempts to query each document.",link:"https://cse.expertrec.com/ecom/search-settings/weights"},{id:1,icon:(0,O.jsx)(Yu,{}),title:"Synonyms",description:"Bring the same results for the words with similar meaning.",link:"https://cse.expertrec.com/ecom/search-settings/synonyms"},{id:2,icon:(0,O.jsx)(Ku,{}),title:"Search Redirects",description:"While search, if given query matches, it will be redirected to respective url",link:"https://cse.expertrec.com/ecom/search-settings/search-redirects"}],merchandising:[{id:0,icon:(0,O.jsx)(ed,{}),title:"Visual Ordering",description:"Search Results by New Documents, Pin Specific documents on top",link:"https://cse.expertrec.com/ecom/merchandise/pin-slot/table"},{id:1,icon:(0,O.jsx)(zu,{}),title:"Promotional Banner",description:"Banner allow you to promote certain products based on configured terms",link:"https://cse.expertrec.com/ecom/merchandise/promotional-banner"},{id:2,icon:(0,O.jsx)(Iu,{}),title:"Boosting Rules",description:"Promote or demote results based on selected fields and matching criteria",link:"https://cse.expertrec.com/ecom/merchandise/boost-fields"}],aiFeatures:[{id:0,icon:(0,O.jsx)(Hu,{}),title:"Semantic Search",description:"Intelligent Results Filtering",link:"https://cloudinfra.freshdesk.com/support/tickets/new"},{id:1,icon:(0,O.jsx)(Lu,{}),title:"Personalize",description:"Promote search results based on user behavior",link:"https://cloudinfra.freshdesk.com/support/tickets/new"},{id:2,icon:(0,O.jsx)(Du,{}),title:"Click Based Ranking",description:"Promote Search results based on all users behavior",link:"https://cloudinfra.freshdesk.com/support/tickets/new"}]},zv={theme:{icon:(0,O.jsx)(Qu,{}),title:"Select Your Theme",description:"Choose the theme which suits your website",link:"https://cse.expertrec.com/csedashboard/looknfeel/basic"},facets:{icon:(0,O.jsx)(Vu,{}),title:"Customize your filters",description:"Control the search results",link:"https://cse.expertrec.com/csedashboard/config/facets"},analytics:{icon:(0,O.jsx)(Fu,{}),title:"Analytics",description:"Get insights on your search",link:"https://cse.expertrec.com/csedashboard/analytics/search-analytics"},searchSettings:[{id:0,icon:(0,O.jsx)($u,{}),title:"Search Weights",description:"Configure the order in which the search attempts to query each document",link:"https://cse.expertrec.com/csedashboard/searchconfig/weights"},{id:1,icon:(0,O.jsx)(Yu,{}),title:"Synonyms",description:"Bring the same results for the words with similar meaning",link:"https://cse.expertrec.com/csedashboard/searchconfig/synonyms"}],merchandising:[{id:0,icon:(0,O.jsx)(ed,{}),title:"Visual Ordering",description:"Search Results by New Documents, Pin Specific documents on top",link:"https://cse.expertrec.com/csedashboard/merchandise/pinslot/table"},{id:1,icon:(0,O.jsx)(Iu,{}),title:"Boosting Rules",description:"Promote or demote results based on selected fields and matching criteria",link:"https://cse.expertrec.com/csedashboard/merchandise/boostFields"}],aiFeatures:[{id:0,icon:(0,O.jsx)(Hu,{}),title:"Semantic Search",description:"Intelligent Results Filtering",link:"https://cloudinfra.freshdesk.com/support/tickets/new"},{id:1,icon:(0,O.jsx)(Lu,{}),title:"Personalize",description:"Promote search results based on user behavior",link:"https://cloudinfra.freshdesk.com/support/tickets/new"},{id:2,icon:(0,O.jsx)(Du,{}),title:"Click Based Ranking",description:"Promote Search results based on all users behavior",link:"https://cloudinfra.freshdesk.com/support/tickets/new"}]};const Lv=function(e){const t=Zv(),n=Of(),r=`https://cse-demo.expertrec.com/demo/gcs.html?mid=${t.apiKey}&flush=true&q=*`,o=`https://cse-demo.expertrec.com/demo/gcs.html?mid=${t.apiKey}&q=*`,a="db"===n?Tv.analytics:zv.analytics;return(0,O.jsxs)(O.Fragment,{children:[(0,O.jsxs)("div",{className:"search_preview",children:[(0,O.jsxs)("div",{className:"d-flex align-center",children:[(0,O.jsx)("div",{className:"search_preview_icon",children:(0,O.jsx)(qu,{})}),(0,O.jsxs)("div",{className:"search_preview_text",children:["Expertrec Search Live on ",(0,O.jsx)("a",{href:window.location.origin,rel:"nofollow noreferrer",target:"_blank",children:window.location.host})]})]}),(0,O.jsx)("div",{className:"search_preview_link",children:(0,O.jsx)(El,{variant:"contained",color:"warning",size:"small",onClick:()=>{console.log("indexingStatus",e.indexingStatus),"Completed"===e.indexingStatus?window.open(o,"_blank"):window.open(r,"_blank")},children:"Search Preview"})})]}),(0,O.jsxs)("div",{className:"indexing",children:[(0,O.jsxs)("div",{className:"indexing_container width-indexing",children:["db"===n&&(0,O.jsx)(lv,{handleIndexingStatus:e.handleIndexingStatus}),"crawl"===n&&(0,O.jsx)(_v,{})]}),(0,O.jsxs)("div",{className:"indexing_container_second_warpper",children:[(0,O.jsx)("div",{className:"indexing_container",children:(0,O.jsx)(Ff,{})}),(0,O.jsxs)("div",{className:"indexing_container",children:[(0,O.jsx)("div",{className:"indexing_container_header",children:a.title}),(0,O.jsxs)("div",{className:"indexing_container_content",children:[(0,O.jsx)("div",{className:"analytics-icon",children:a.icon}),(0,O.jsx)("p",{className:"analytics-desc",children:a.description}),(0,O.jsx)("a",{href:a.link,target:"blank",rel:"noreferrer",className:"feature-link analytics-link",children:"Take me there"})]})]})]})]}),(0,O.jsx)("div",{className:"info_widget",children:(0,O.jsx)(Nv,{})})]})};function Av(e){return(0,ve.Z)("MuiMenuItem",e)}const Iv=(0,ne.Z)("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Fv=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Dv=(0,v.ZP)(ke,{shouldForwardProp:e=>(0,v.FO)(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((e=>{let{theme:t,ownerState:n}=e;return(0,i.Z)({},t.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!n.disableGutters&&{paddingLeft:16,paddingRight:16},n.divider&&{borderBottom:`1px solid ${(t.vars||t).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Iv.selected}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:(0,Pa.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity),[`&.${Iv.focusVisible}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.focusOpacity}))`:(0,Pa.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},[`&.${Iv.selected}:hover`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:(0,Pa.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:(0,Pa.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity)}},[`&.${Iv.focusVisible}`]:{backgroundColor:(t.vars||t).palette.action.focus},[`&.${Iv.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity},[`& + .${Lp.root}`]:{marginTop:t.spacing(1),marginBottom:t.spacing(1)},[`& + .${Lp.inset}`]:{marginLeft:52},[`& .${Cf.root}`]:{marginTop:0,marginBottom:0},[`& .${Cf.inset}`]:{paddingLeft:36},[`& .${bf.root}`]:{minWidth:36}},!n.dense&&{[t.breakpoints.up("sm")]:{minHeight:"auto"}},n.dense&&(0,i.Z)({minHeight:32,paddingTop:4,paddingBottom:4},t.typography.body2,{[`& .${bf.root} svg`]:{fontSize:"1.25rem"}}))})),Bv=t.forwardRef((function(e,n){const r=(0,b.Z)({props:e,name:"MuiMenuItem"}),{autoFocus:o=!1,component:c="li",dense:u=!1,divider:d=!1,disableGutters:p=!1,focusVisibleClassName:f,role:h="menuitem",tabIndex:m,className:g}=r,v=(0,a.Z)(r,Fv),y=t.useContext(ha),x=t.useMemo((()=>({dense:u||y.dense||!1,disableGutters:p})),[y.dense,u,p]),w=t.useRef(null);(0,P.Z)((()=>{o&&w.current&&w.current.focus()}),[o]);const S=(0,i.Z)({},r,{dense:x.dense,divider:d,disableGutters:p}),k=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:a,classes:l}=e,c={root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",a&&"selected"]},u=(0,s.Z)(c,Av,l);return(0,i.Z)({},l,u)})(r),C=(0,L.Z)(w,n);let j;return r.disabled||(j=void 0!==m?m:-1),(0,O.jsx)(ha.Provider,{value:x,children:(0,O.jsx)(Dv,(0,i.Z)({ref:C,role:h,tabIndex:j,component:c,focusVisibleClassName:(0,l.Z)(k.focusVisible,f),className:(0,l.Z)(k.root,g)},v,{ownerState:S,classes:k}))})})),$v=Bv;var Wv=n(3505);const Uv=()=>{const e=rt(),n=e.apiUrl,[r,o]=(0,t.useState)(""),[a,i]=(0,t.useState)(""),[l,s]=(0,t.useState)(""),[c,u]=(0,t.useState)(""),[d,p]=(0,t.useState)(""),[f,h]=(0,t.useState)(!1),[m,g]=(0,t.useState)(!1),{enqueueSnackbar:v}=Vn();(0,t.useEffect)((()=>{fetch(n+"get_layout").then((e=>e.json())).then((e=>{console.debug("Successfully fetched search page info",e),o(e.template),i(e.search_path),s(e.query_parameter),u(e.search_page_title)})).catch((e=>console.error("Error while fetching search page info",e)))}),[]),(0,t.useEffect)((()=>{console.log("searchPath in useEffect",a),console.log("queryParameter in useEffect",l);let t=y(a),n=l.replace(/\s+/g,""),r=`${e.baseUrl}/${t}/?${n}=*`;p(r)}),[a,l]);const b=e=>/[!@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?`~]+/.test(e),y=e=>e.replace(/\s+/g,"").replace(/^\/+/g,"").replace(/\.*\/+$/g,"");return""===r?(0,O.jsx)("div",{className:"show-loading-center",children:(0,O.jsx)(Fr,{})}):(0,O.jsx)("div",{id:"search-page",children:(0,O.jsxs)("div",{className:"search-page-info",children:[(0,O.jsx)(kr,{sx:{minWidth:120},children:(0,O.jsxs)(ia,{fullWidth:!0,children:[(0,O.jsx)(ea,{id:"search-page-select-label",children:"Choose Layout"}),(0,O.jsxs)(cl,{labelId:"search-page-select-label",id:"search-page-select",value:r,label:"Choose layout",onChange:e=>{console.log(e.target.value),o(e.target.value)},children:[(0,O.jsx)($v,{value:"overlay",id:"exp-overlay",children:"Overlay"}),(0,O.jsx)($v,{value:"separate",id:"exp-separate",children:"Search results on a different page"})]})]})}),"separate"===r?(0,O.jsxs)("div",{children:[(0,O.jsxs)("div",{className:"search-page-menu-info",children:[(0,O.jsx)(qu,{className:"search-page-menu-info-icon"}),"Search results will appear on a different page, configured under the Search result path."]}),(0,O.jsxs)("div",{className:"search-page-text-fields-wrapper",children:[(0,O.jsx)(ml,{label:"Search page title",id:"exp-search-page-title",value:c,variant:"standard",error:!c,onChange:e=>{u(e.target.value)},required:!0}),(0,O.jsx)(ml,{label:"Search result path",id:"exp-search-page-path",value:a,variant:"standard",error:!a,onChange:e=>{i(e.target.value)},required:!0}),(0,O.jsx)(ml,{label:"Query parameter",id:"exp-search-page-query-parameter",value:l,variant:"standard",error:!l||b(l),onChange:e=>{s(e.target.value)},required:!0}),(0,O.jsxs)("div",{className:"search-page-url",children:[(0,O.jsx)("b",{children:"Note:"})," Results will be shown on:\xa0",(0,O.jsx)("a",{id:"serach-result-url",href:d,target:"_blank",rel:"noreferrer",children:d})]})]})]}):(0,O.jsxs)("div",{className:"search-page-menu-info",children:[(0,O.jsx)(qu,{className:"search-page-menu-info-icon"}),"The Search results will be displayed in a full-screen overlay popup on the same page."]}),(0,O.jsx)(rd,{id:"search-page-update",variant:"contained",color:"warning",size:"large",onClick:function(){if(b(l))return void v("Query parameter cannot contain special characters",{variant:"error"});if("separate"===r&&(!l||!a||!c))return void v("Fields cannot be empty",{variant:"error"});h(!0),g(!0);const e={search_path:y(a),search_page_title:c.trim(),query_parameter:l.replace(/\s+/g,""),template:r};console.log("createPageData before sendind to php",e),fetch(n+"update_layout",{method:"POST",body:JSON.stringify(e)}).then((e=>e.json())).then((e=>{console.debug("Updated Page layout successfully",e),v("Updated search page details successfully",{variant:"success"}),h(!1),g(!1),o(e.template),i(e.search_path),s(e.query_parameter),u(e.search_page_title)})).catch((e=>{console.debug("Error while updating Page layout",e),v("Error while updating search page details",{variant:"error"})}))},disabled:f,loadingPage:m,buttonText:"Update",startIcon:(0,O.jsx)(Wv.Z,{}),marginTop:"50px"})]})})},Vv=()=>{const[e,n]=(0,t.useState)(),[r,o]=(0,t.useState)(!0),{enqueueSnackbar:a}=Vn(),i=rt().apiUrl;(0,t.useEffect)((()=>{fetch(i+"expertrec_hook_existing_boxstatus").then((e=>e.json())).then((e=>{console.debug("Successfully fetched search bar options",e),e.hook?n("default"):n("install-search-bar"),o(!1)})).catch((e=>console.error("Error while fetching search bar options",e)))}),[]);const l=e=>{o(!0),n(e.target.id),function(e){console.debug("Update search bar option post API call");var t=!0;"install-search-bar"===e&&(t=!1);var n=new FormData;n.append("data[hook_on_existing_input_box]",t),n.append("data[org_status]","NA"),n.append("update_type","install_mode"),fetch(i+"expertrec_update_config",{method:"POST",body:n}).then((e=>e.json())).then((e=>{console.debug("Updated search bar options successfully",e),a("Updated Search Bar option successfully",{variant:"success"}),o(!1)})).catch((e=>{console.debug("Error while updating search bar options",e),a("Failed to update Search Bar option",{variant:"error"})}))}(e.target.id)};return(0,O.jsxs)(O.Fragment,{children:[(0,O.jsxs)("div",{className:"field-header",children:[(0,O.jsx)("div",{className:"search_preview_icon",children:(0,O.jsx)(qu,{})}),(0,O.jsxs)("div",{className:"field-text-Meta",children:["To enable Voice Search in your search bar, please contact the support team at ",(0,O.jsx)("a",{href:"mailto:[email protected]",children:"[email protected]"})]})]}),(0,O.jsx)("div",{className:"configurations",children:(0,O.jsxs)("div",{className:"configurations_widget configurations_widget_width",children:[(0,O.jsx)("div",{className:"configurations_widget_header",children:(0,O.jsx)("h2",{children:"Search Bar Options"})}),(0,O.jsx)("div",{className:"configurations_widget_container",children:r?(0,O.jsx)("div",{className:"show-loading-configurations",children:(0,O.jsx)(Fr,{})}):(0,O.jsxs)(O.Fragment,{children:[(0,O.jsxs)("div",{className:"configurations_widget_container_div",children:[(0,O.jsx)("input",{type:"radio",className:"configurations_widget_input",id:"default",name:"searchHook",value:"default",checked:"default"===e,onChange:l}),(0,O.jsxs)("label",{className:"configurations_widget_label",htmlFor:"default",id:"default-label",children:[(0,O.jsx)("h2",{children:"Use the existing Search Bar"}),(0,O.jsx)("p",{children:"Put a faster, smarter search engine behind your search bar. Keep your Wordpress theme's search bar and use install-search-bar dropdown results"})]})]}),(0,O.jsxs)("div",{className:"configurations_widget_container_div",children:[(0,O.jsx)("input",{type:"radio",className:"configurations_widget_input",id:"install-search-bar",name:"searchHook",value:"install-search-bar",checked:"install-search-bar"===e,onChange:l}),(0,O.jsxs)("label",{className:"configurations_widget_label",htmlFor:"install-search-bar",id:"install-search-bar-label",children:[(0,O.jsx)("h2",{children:"Install New Search Bar"}),(0,O.jsx)("p",{children:"Customize your search result navigation, layout, styles, and text. Enjoy your new powerful accessibility - conscious and mobile optimized search."})]})]})]})})]})})]})},Hv=e=>(0,O.jsx)("div",{className:"configurations",children:(0,O.jsxs)("div",{className:"configurations_widget configurations_widget_features_width",children:[(0,O.jsx)("div",{className:"configurations_widget_header",children:(0,O.jsx)("h2",{children:e.data.title})}),(0,O.jsxs)("div",{children:[(0,O.jsx)("div",{className:"configurations_widget_features_icon",children:e.data.icon}),(0,O.jsx)("p",{className:"configurations_widget_features_desc",children:e.data.description}),(0,O.jsx)("a",{href:e.data.link,target:"blank",rel:"noreferrer",className:"feature-link",children:"Take me there"})]})]})});var qv=n(8029),Kv=n.n(qv);const Gv=()=>{const{enqueueSnackbar:e}=Vn(),t=Of();return(0,O.jsxs)("div",{id:"exp-shortcode",children:[(0,O.jsx)("h2",{children:"Place the following Shortcode where you want the ExpertRec Search Bar"}),(0,O.jsxs)("div",{id:"exp-shortcode-code",children:[(0,O.jsx)("input",{type:"text",value:"[expertrec_search_bar]",readOnly:!0}),(0,O.jsx)(Kv(),{text:"[expertrec_search_bar]",onCopy:()=>{e("Shortcode copied to clipboard!")},style:{cursor:"pointer"},children:(0,O.jsx)(ep,{})})]}),(0,O.jsxs)("div",{id:"exp-shortcode-info",children:[(0,O.jsxs)("p",{style:{fontSize:"16px"},children:[(0,O.jsx)("b",{children:" Note: "}),"Customize this search box using the CSS below"]}),(0,O.jsxs)("ul",{id:"exp-shortcode-info-list",children:["db"===t&&(0,O.jsx)("li",{className:"exp-shortcode-info-selector",children:".er_shortcode .expertrec_search_box_container"}),(0,O.jsx)("li",{className:"exp-shortcode-info-selector",children:".er_shortcode .expertrec_search_button"}),(0,O.jsx)("li",{className:"exp-shortcode-info-selector",children:".er_shortcode .expertrec_search_input_box"})]})]}),(0,O.jsxs)("div",{id:"exp-shortcode-usage",children:[(0,O.jsx)("h2",{children:"Usage"}),(0,O.jsxs)("div",{id:"exp-shortcode-usage-code-wrapper",children:[(0,O.jsx)("div",{id:"exp-shortcode-usage-code",children:(0,O.jsxs)("code",{children:[".er_shortcode .expertrec_search_input_box { ",(0,O.jsx)("br",{}),"\xa0\xa0\xa0\xa0background-color: green;","crawl"===t&&(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)("br",{}),"\xa0\xa0\xa0\xa0width: 300px;"]}),(0,O.jsx)("br",{}),"\xa0}"]})}),(0,O.jsx)("div",{id:"exp-shortcode-usage-code",children:(0,O.jsxs)("code",{children:[".er_shortcode .expertrec_search_button { ",(0,O.jsx)("br",{}),"\xa0\xa0\xa0\xa0background-color: blue;",(0,O.jsx)("br",{}),"\xa0}"]})}),"db"===t&&(0,O.jsx)("div",{id:"exp-shortcode-usage-code",children:(0,O.jsxs)("code",{children:[".er_shortcode .expertrec_search_box_container { ",(0,O.jsx)("br",{}),"\xa0\xa0\xa0\xa0width: 300px;",(0,O.jsx)("br",{}),"\xa0}"]})})]})]})]})};function Yv(e){const{children:t,value:n,index:r,...o}=e;return(0,O.jsx)("div",{role:"tabpanel",hidden:n!==r,id:`simple-tabpanel-${r}`,"aria-labelledby":`simple-tab-${r}`,...o,children:n===r&&(0,O.jsx)(kr,{sx:{p:3},children:(0,O.jsx)(Nl,{children:t})})})}function Xv(e){return{id:`simple-tab-${e}`,"aria-controls":`simple-tabpanel-${e}`}}const Qv=()=>{const[e,n]=t.useState(0),r=it(),o="db"===Of()?Tv:zv;return(0,O.jsxs)(kr,{sx:{width:"100%"},children:[(0,O.jsx)(kr,{sx:{borderBottom:1,borderColor:"divider"},children:(0,O.jsxs)(Ue,{value:e,onChange:(e,t)=>{n(t)},"aria-label":"basic tabs example",children:[(0,O.jsx)(Xe,{label:"Search Bar",...Xv(0)}),(0,O.jsx)(Xe,{label:"Shortcode",...Xv(1)}),(0,O.jsx)(Xe,{label:"Layout",...Xv(2)}),(0,O.jsx)(Xe,{label:"Filters",...Xv(3)}),r&&(0,O.jsx)(Xe,{label:"Theme",...Xv(4)})]})}),(0,O.jsx)(Yv,{value:e,index:0,children:(0,O.jsx)(Vv,{})}),(0,O.jsx)(Yv,{value:e,index:1,children:(0,O.jsx)(Gv,{})}),(0,O.jsx)(Yv,{value:e,index:2,children:(0,O.jsx)(Uv,{})}),(0,O.jsx)(Yv,{value:e,index:3,children:(0,O.jsx)(Hv,{data:o.facets})}),(0,O.jsx)(Yv,{value:e,index:4,children:(0,O.jsx)(Hv,{data:o.theme})})]})},Jv={title:"Frequently Asked Questions",rows:[{title:"Knowledge Base",content:"You can find solutions and answers at the <a href='https://blog.expertrec.com/knowledge-base/?utm_source=wordpress.org' rel='nofollow' target='_blank'>ExpertRec Knowledge Base</a>."},{title:"Can I use this on my Woocommerce store?",content:"Yes, ExpertRec site search does support Woocommerce search. The steps for installation are exactly the same. The search bar will intelligently detect Woocommerce and make the neccessary changes to get a better search experience suited to eCommerce."},{title:"What is my API Key?",content:"A common mistake is to think that your API key is the same as your email ID or web URL. API key is a unique identifier that is used to authenticate your search requests. You can find your API key <a href='https://blog.expertrec.com/how-to-find-your-api-key/?utm_source=wordpress.org' rel='nofollow' target='_blank'>here</a>."},{title:"Why is the search bar not appearing?",content:"<ol><li>Have you activated the Site Search plugin?</li><li>Is your API Key correct? Go to API menu.</li><li>Are you on a custom theme? Some themes may not have a search by default or may interfere with the plugin. In this case you may have to add code manually from <a href='https://cse.expertrec.com/login' rel='nofollow' target='_blank'>here</a>.</li><li><a href='https://cloudinfra.freshdesk.com/support/tickets/new' rel='nofollow' target='_blank'>Contact Support</a></li></ol>"},{title:"Does the search bar support live search / ajax search?",content:"Yes, the ExpertRec site search plugin is a live search plugin and it will support AJAX search."},{title:"Does it support voice search?",content:"Yes, the ExpertRec site search plugin is a live search plugin and it will support AJAX search."},{title:"Can I search multiple websites or multiple subdomains using this plugin?",content:"Yes, you can do both. Using this plugin your search bar will give results from both your main domain and all subdomains. You can also selectively choose which of your subdomains should be included in the search results. If you wish to search a completely separate domain, then this can also be done by adding the new domain to the list of URLs to crawl."},{title:"Is there any addtional charges for searching multiple URLs?",content:"No, all charges are based on the total number of pages in the search index. There is no limit on the number of domains that you can add."},{title:"Didn't find the answer you were looking for?",content:"<a href='https://cloudinfra.freshdesk.com/support/tickets/new' target='_blank'>Raise a support ticket</a> or send us an email to <a href='mailto:[email protected]'>[email protected]</a>"}]};var eb=n(2007),tb=n.n(eb);function nb(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function rb(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ob(e,t,n){return t&&rb(e.prototype,t),n&&rb(e,n),e}function ab(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ib(){return(ib=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function lb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function sb(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ub(e,t)}function cb(e){return(cb=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ub(e,t){return(ub=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function db(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function pb(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=cb(e);if(t){var o=cb(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?db(e):t}(this,n)}}var fb={return:13,arrowLeft:37,arrowUp:38,arrowRight:39,arrowDown:40,space:32};fb.keyCodes=Object.keys(fb).reduce((function(e,t){return e[fb[t]]=t,e}),{});var hb={"faq-row-wrapper":"styles_faq-row-wrapper__3vA1D","faq-row":"styles_faq-row__2YF3c","row-body":"styles_row-body__1NvUo","row-title":"styles_row-title__1YiiY","no-tabfocus":"styles_no-tabfocus__1HmyD","row-title-text":"styles_row-title-text__1MuhU","icon-wrapper":"styles_icon-wrapper__2cftw",closed:"styles_closed__39w54","row-content":"styles_row-content__QOGZd",animate:"styles_animate__3ecdr",static:"styles_static__3chYW",expanded:"styles_expanded__3elPy",expanding:"styles_expanding__2OAFB","row-content-text":"styles_row-content-text__2sgAB"};!function(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}(".styles_faq-row-wrapper__3vA1D {\n background-color: var(--faq-bg-color, white); }\n .styles_faq-row-wrapper__3vA1D h2 {\n margin: 0;\n color: var(--title-text-color, black);\n font-size: var(--title-text-size, 30px); }\n .styles_faq-row-wrapper__3vA1D .styles_faq-row__2YF3c {\n display: flex;\n justify-content: space-between;\n padding: 5px 0;\n border-bottom: 1px solid #ccc; }\n .styles_faq-row-wrapper__3vA1D .styles_row-body__1NvUo .styles_faq-row__2YF3c {\n flex-direction: column;\n position: relative; }\n .styles_faq-row-wrapper__3vA1D .styles_row-body__1NvUo .styles_faq-row__2YF3c .styles_row-title__1YiiY {\n padding: 10px 0;\n display: flex;\n justify-content: space-between;\n color: var(--row-title-color, black);\n font-size: var(--row-title-text-size, large);\n cursor: pointer;\n align-items: center; }\n .styles_faq-row-wrapper__3vA1D .styles_row-body__1NvUo .styles_faq-row__2YF3c .styles_row-title__1YiiY.styles_no-tabfocus__1HmyD {\n outline: none; }\n .styles_faq-row-wrapper__3vA1D .styles_row-body__1NvUo .styles_faq-row__2YF3c .styles_row-title__1YiiY .styles_row-title-text__1MuhU {\n padding-right: 3em; }\n .styles_faq-row-wrapper__3vA1D .styles_row-body__1NvUo .styles_faq-row__2YF3c .styles_row-title__1YiiY .styles_icon-wrapper__2cftw {\n max-width: 25px;\n max-height: 25px;\n margin: 0;\n padding: 0;\n color: var(--arrow-color, black);\n transform: rotate(0deg);\n transition: transform var(--transition-duration, 0.3s);\n position: absolute;\n top: 13px;\n right: 12px; }\n .styles_faq-row-wrapper__3vA1D .styles_row-body__1NvUo .styles_faq-row__2YF3c .styles_row-title__1YiiY .styles_icon-wrapper__2cftw svg {\n width: 100%;\n height: 100%; }\n .styles_faq-row-wrapper__3vA1D .styles_row-body__1NvUo .styles_faq-row__2YF3c .styles_row-title__1YiiY .styles_icon-wrapper__2cftw svg {\n fill: var(--arrow-color, black); }\n .styles_faq-row-wrapper__3vA1D .styles_row-body__1NvUo .styles_faq-row__2YF3c .styles_row-title__1YiiY.styles_closed__39w54 + .styles_row-content__QOGZd {\n visibility: hidden; }\n .styles_faq-row-wrapper__3vA1D .styles_row-body__1NvUo .styles_faq-row__2YF3c .styles_row-title__1YiiY.styles_closed__39w54 + .styles_row-content__QOGZd.styles_animate__3ecdr {\n opacity: 0;\n transition: height var(--transition-duration, 0.3s); }\n .styles_faq-row-wrapper__3vA1D .styles_row-body__1NvUo .styles_faq-row__2YF3c .styles_row-title__1YiiY.styles_closed__39w54 + .styles_row-content__QOGZd.styles_static__3chYW {\n display: none; }\n .styles_faq-row-wrapper__3vA1D .styles_row-body__1NvUo .styles_faq-row__2YF3c .styles_row-title__1YiiY.styles_expanded__3elPy + .styles_row-content__QOGZd {\n visibility: visible; }\n .styles_faq-row-wrapper__3vA1D .styles_row-body__1NvUo .styles_faq-row__2YF3c .styles_row-title__1YiiY.styles_expanded__3elPy + .styles_row-content__QOGZd.styles_static__3chYW {\n display: block; }\n .styles_faq-row-wrapper__3vA1D .styles_row-body__1NvUo .styles_faq-row__2YF3c .styles_row-title__1YiiY.styles_expanded__3elPy .styles_icon-wrapper__2cftw {\n transform: rotate(180deg); }\n .styles_faq-row-wrapper__3vA1D .styles_row-body__1NvUo .styles_faq-row__2YF3c .styles_row-title__1YiiY.styles_expanding__2OAFB .styles_icon-wrapper__2cftw {\n transform: rotate(180deg); }\n .styles_faq-row-wrapper__3vA1D .styles_row-body__1NvUo .styles_faq-row__2YF3c .styles_row-content__QOGZd {\n overflow: hidden;\n transition: height var(--transition-duration, 0.3s);\n transition-timing-function: var(--timing-function, ease); }\n .styles_faq-row-wrapper__3vA1D .styles_row-body__1NvUo .styles_faq-row__2YF3c .styles_row-content__QOGZd .styles_row-content-text__2sgAB {\n color: var(--row-content-color, black);\n font-size: var(--row-content-text-size, medium);\n padding: var(--row-content-padding-top, 0) var(--row-content-padding-right, 0) var(--row-content-padding-bottom, 0) var(--row-content-padding-left, 0); }\n");var mb=function(e){sb(r,t.PureComponent);var n=pb(r);function r(){var e;nb(this,r);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return ab(db(e=n.call.apply(n,[this].concat(a))),"state",{isExpanded:!1,ref:t.createRef(),rowRef:t.createRef(),height:0,rowClassName:"closed"}),ab(db(e),"finishTransition",(function(){var t=e.state.isExpanded;e.setState({rowClassName:t?"expanded":"closed"})})),ab(db(e),"toggle",(function(t){e.setState((function(){return{isExpanded:t}}))})),ab(db(e),"expand",(function(){e.setState((function(e){return{isExpanded:!e.isExpanded}}))})),ab(db(e),"keyPress",(function(t){var n=t.keyCode?t.keyCode:t.which;switch(fb.keyCodes[n]){case"space":case"return":t.preventDefault(),t.stopPropagation(),e.expand()}})),ab(db(e),"setHeight",(function(){var t=e.state,n=t.ref,r=t.isExpanded,o=n.current.scrollHeight;e.setState({height:r?o:0})})),e}return ob(r,[{key:"getSnapshotBeforeUpdate",value:function(e,t){var n=t.isExpanded,r=this.state.isExpanded,o=this.props.config,a=(o=void 0===o?{}:o).animate,i=void 0===a||a;return r!==n?{rowClassName:r?i?"expanding":"expanded":i?"closing":"closed"}:null}},{key:"componentDidUpdate",value:function(e,t,n){var r=this.props.config,o=(r=void 0===r?{}:r).animate,a=void 0===o||o;null!==n&&this.setState(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?lb(Object(n),!0).forEach((function(t){ab(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},n),a?this.setHeight:void 0)}},{key:"componentDidMount",value:function(){var e=this,t=this.state.rowRef;if(this.props.openOnload&&this.expand(),this.props.getRowOptions){var n={expand:function(){e.toggle(!0)},close:function(){e.toggle(!1)},scrollIntoView:function(e){e?t.current.scrollIntoView(e):t.current.scrollIntoView()}};this.props.getRowOptions(n)}}},{key:"render",value:function(){var e=this.props,n=e.data,r=n.title,o=n.content,a=e.config,i=(a=void 0===a?{}:a).animate,l=void 0===i||i,s=a.arrowIcon,c=a.expandIcon,u=a.collapseIcon,d=a.tabFocus,p=void 0!==d&&d,f=this.state,h=f.isExpanded,m=f.ref,g=f.height,v=f.rowClassName,b=f.rowRef,y={onClick:this.expand,role:"button","aria-expanded":h,"aria-controls":"react-faq-rowcontent-".concat(this.props.rowid),onKeyPress:this.keyPress,onKeyDown:this.keyPress};p&&(y.tabIndex=0);var x={role:"region",id:"react-faq-rowcontent-".concat(this.props.rowid),"aria-expanded":h,"aria-hidden":!h,onTransitionEnd:this.finishTransition};l&&(x.style={height:g});var w,S=["row-title",v,hb["row-title"],hb[v],p?"":hb["no-tabfocus"]].filter(Boolean).join(" ");w=c&&u?h?u:c:s||t.createElement("div",{dangerouslySetInnerHTML:{__html:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="black" width="36px" height="36px"><path d="M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z"/><path d="M0 0h24v24H0V0z" fill="none"/></svg>'},className:"arrow-image ".concat(hb["arrow-image"]),alt:"Expand arrow"});var k=[hb["row-content"],"row-content",l?hb.animate:hb.static].join(" "),C=[hb["row-content-text"],"row-content-text"].join(" "),j=o&&"string"==typeof o?t.createElement("div",{className:C,dangerouslySetInnerHTML:{__html:o}}):t.createElement("div",{className:C},o);return t.createElement("section",{className:"faq-row ".concat(hb["faq-row"]),role:"listitem",ref:b},t.createElement("div",ib({className:S},y),t.createElement("div",{className:"row-title-text ".concat(hb["row-title-text"]),id:"react-faq-rowtitle-".concat(this.props.rowid)},r),t.createElement("span",{className:"icon-wrapper ".concat(hb["icon-wrapper"]),"aria-hidden":"true"},w)),t.createElement("div",ib({className:k},x,{ref:m}),j))}}]),r}();ab(mb,"propTypes",{config:tb().object,data:tb().object,rowid:tb().number,getRowOptions:tb().func,openOnload:tb().bool});var gb=function(e){sb(r,t.PureComponent);var n=pb(r);function r(){var e;nb(this,r);for(var t=arguments.length,o=new Array(t),a=0;a<t;a++)o[a]=arguments[a];return ab(db(e=n.call.apply(n,[this].concat(o))),"state",{rowsOption:[]}),e}return ob(r,[{key:"componentDidMount",value:function(){this.props.getRowOptions&&this.props.getRowOptions(this.state.rowsOption)}},{key:"render",value:function(){var e=this,n=this.props.data||{},r=n.title,o=n.rows,a=void 0===o?[]:o,i=this.props,l=i.styles,s=void 0===l?{}:l,c=i.config,u=((c=void 0===c?{}:c).animate,c.openOnload),d={"--faq-bg-color":s.bgColor,"--title-text-color":s.titleTextColor,"--title-text-size":s.titleTextSize,"--row-title-color":s.rowTitleColor,"--row-title-text-size":s.rowTitleTextSize,"--row-content-color":s.rowContentColor,"--row-content-text-size":s.rowContentTextSize,"--row-content-padding-top":s.rowContentPaddingTop,"--row-content-padding-bottom":s.rowContentPaddingBottom,"--row-content-padding-right":s.rowContentPaddingRight,"--row-content-padding-left":s.rowContentPaddingLeft,"--arrow-color":s.arrowColor,"--transition-duration":s.transitionDuration,"--timing-function":s.timingFunc},p="faq-row-wrapper ".concat(hb["faq-row-wrapper"]),f="faq-title ".concat(hb["faq-row"]),h="faq-body ".concat(hb["row-body"]);return t.createElement("div",{className:p,style:d},r?t.createElement("section",{className:f},t.createElement("h2",null,r)):null,a.length?t.createElement("section",{className:h,role:"list"},a.map((function(n,r){return t.createElement(mb,{openOnload:u===r,data:n,key:r,rowid:r+1,config:e.props.config,getRowOptions:function(t){return e.state.rowsOption[r]=t}})}))):null)}}]),r}();ab(gb,"propTypes",{data:tb().object,styles:tb().object,config:tb().object,getRowOptions:tb().func});const vb=gb,bb=()=>(0,O.jsx)("div",{className:"help",children:(0,O.jsx)(vb,{data:Jv})});var yb=n(7250);const xb=t.createContext();function wb(e){return(0,ve.Z)("MuiGrid",e)}const Sb=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],kb=(0,ne.Z)("MuiGrid",["root","container","item","zeroMinWidth",...[0,1,2,3,4,5,6,7,8,9,10].map((e=>`spacing-xs-${e}`)),...["column-reverse","column","row-reverse","row"].map((e=>`direction-xs-${e}`)),...["nowrap","wrap-reverse","wrap"].map((e=>`wrap-xs-${e}`)),...Sb.map((e=>`grid-xs-${e}`)),...Sb.map((e=>`grid-sm-${e}`)),...Sb.map((e=>`grid-md-${e}`)),...Sb.map((e=>`grid-lg-${e}`)),...Sb.map((e=>`grid-xl-${e}`))]),Cb=kb,jb=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function Eb(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function _b(e){let{breakpoints:t,values:n}=e,r="";Object.keys(n).forEach((e=>{""===r&&0!==n[e]&&(r=e)}));const o=Object.keys(t).sort(((e,n)=>t[e]-t[n]));return o.slice(0,o.indexOf(r))}const Pb=(0,v.ZP)("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{container:r,direction:o,item:a,spacing:i,wrap:l,zeroMinWidth:s,breakpoints:c}=n;let u=[];r&&(u=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!e||e<=0)return[];if("string"===typeof e&&!Number.isNaN(Number(e))||"number"===typeof e)return[n[`spacing-xs-${String(e)}`]];const r=[];return t.forEach((t=>{const o=e[t];Number(o)>0&&r.push(n[`spacing-${t}-${String(o)}`])})),r}(i,c,t));const d=[];return c.forEach((e=>{const r=n[e];r&&d.push(t[`grid-${e}-${String(r)}`])})),[t.root,r&&t.container,a&&t.item,s&&t.zeroMinWidth,...u,"row"!==o&&t[`direction-xs-${String(o)}`],"wrap"!==l&&t[`wrap-xs-${String(l)}`],...d]}})((e=>{let{ownerState:t}=e;return(0,i.Z)({boxSizing:"border-box"},t.container&&{display:"flex",flexWrap:"wrap",width:"100%"},t.item&&{margin:0},t.zeroMinWidth&&{minWidth:0},"wrap"!==t.wrap&&{flexWrap:t.wrap})}),(function(e){let{theme:t,ownerState:n}=e;const r=(0,eh.P$)({values:n.direction,breakpoints:t.breakpoints.values});return(0,eh.k9)({theme:t},r,(e=>{const t={flexDirection:e};return 0===e.indexOf("column")&&(t[`& > .${Cb.item}`]={maxWidth:"none"}),t}))}),(function(e){let{theme:t,ownerState:n}=e;const{container:r,rowSpacing:o}=n;let a={};if(r&&0!==o){const e=(0,eh.P$)({values:o,breakpoints:t.breakpoints.values});let n;"object"===typeof e&&(n=_b({breakpoints:t.breakpoints.values,values:e})),a=(0,eh.k9)({theme:t},e,((e,r)=>{var o;const a=t.spacing(e);return"0px"!==a?{marginTop:`-${Eb(a)}`,[`& > .${Cb.item}`]:{paddingTop:Eb(a)}}:null!=(o=n)&&o.includes(r)?{}:{marginTop:0,[`& > .${Cb.item}`]:{paddingTop:0}}}))}return a}),(function(e){let{theme:t,ownerState:n}=e;const{container:r,columnSpacing:o}=n;let a={};if(r&&0!==o){const e=(0,eh.P$)({values:o,breakpoints:t.breakpoints.values});let n;"object"===typeof e&&(n=_b({breakpoints:t.breakpoints.values,values:e})),a=(0,eh.k9)({theme:t},e,((e,r)=>{var o;const a=t.spacing(e);return"0px"!==a?{width:`calc(100% + ${Eb(a)})`,marginLeft:`-${Eb(a)}`,[`& > .${Cb.item}`]:{paddingLeft:Eb(a)}}:null!=(o=n)&&o.includes(r)?{}:{width:"100%",marginLeft:0,[`& > .${Cb.item}`]:{paddingLeft:0}}}))}return a}),(function(e){let t,{theme:n,ownerState:r}=e;return n.breakpoints.keys.reduce(((e,o)=>{let a={};if(r[o]&&(t=r[o]),!t)return e;if(!0===t)a={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if("auto"===t)a={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const l=(0,eh.P$)({values:r.columns,breakpoints:n.breakpoints.values}),s="object"===typeof l?l[o]:l;if(void 0===s||null===s)return e;const c=Math.round(t/s*1e8)/1e6+"%";let u={};if(r.container&&r.item&&0!==r.columnSpacing){const e=n.spacing(r.columnSpacing);if("0px"!==e){const t=`calc(${c} + ${Eb(e)})`;u={flexBasis:t,maxWidth:t}}}a=(0,i.Z)({flexBasis:c,flexGrow:0,maxWidth:c},u)}return 0===n.breakpoints.values[o]?Object.assign(e,a):e[n.breakpoints.up(o)]=a,e}),{})}));const Zb=e=>{const{classes:t,container:n,direction:r,item:o,spacing:a,wrap:i,zeroMinWidth:l,breakpoints:c}=e;let u=[];n&&(u=function(e,t){if(!e||e<=0)return[];if("string"===typeof e&&!Number.isNaN(Number(e))||"number"===typeof e)return[`spacing-xs-${String(e)}`];const n=[];return t.forEach((t=>{const r=e[t];if(Number(r)>0){const e=`spacing-${t}-${String(r)}`;n.push(e)}})),n}(a,c));const d=[];c.forEach((t=>{const n=e[t];n&&d.push(`grid-${t}-${String(n)}`)}));const p={root:["root",n&&"container",o&&"item",l&&"zeroMinWidth",...u,"row"!==r&&`direction-xs-${String(r)}`,"wrap"!==i&&`wrap-xs-${String(i)}`,...d]};return(0,s.Z)(p,wb,t)},Ob=t.forwardRef((function(e,n){const r=(0,b.Z)({props:e,name:"MuiGrid"}),{breakpoints:o}=S(),s=br(r),{className:c,columns:u,columnSpacing:d,component:p="div",container:f=!1,direction:h="row",item:m=!1,rowSpacing:g,spacing:v=0,wrap:y="wrap",zeroMinWidth:x=!1}=s,w=(0,a.Z)(s,jb),k=g||v,C=d||v,j=t.useContext(xb),E=f?u||12:j,_={},P=(0,i.Z)({},w);o.keys.forEach((e=>{null!=w[e]&&(_[e]=w[e],delete P[e])}));const Z=(0,i.Z)({},s,{columns:E,container:f,direction:h,item:m,rowSpacing:k,columnSpacing:C,wrap:y,zeroMinWidth:x,spacing:v},_,{breakpoints:o.keys}),R=Zb(Z);return(0,O.jsx)(xb.Provider,{value:E,children:(0,O.jsx)(Pb,(0,i.Z)({ownerState:Z,className:(0,l.Z)(R.root,c),as:p,ref:n},P))})}));const Rb=Ob;function Mb(e){return(0,ve.Z)("MuiCard",e)}(0,ne.Z)("MuiCard",["root"]);const Nb=["className","raised"],Tb=(0,v.ZP)(Ta,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})((()=>({overflow:"hidden"}))),zb=t.forwardRef((function(e,t){const n=(0,b.Z)({props:e,name:"MuiCard"}),{className:r,raised:o=!1}=n,c=(0,a.Z)(n,Nb),u=(0,i.Z)({},n,{raised:o}),d=(e=>{const{classes:t}=e;return(0,s.Z)({root:["root"]},Mb,t)})(u);return(0,O.jsx)(Tb,(0,i.Z)({className:(0,l.Z)(d.root,r),elevation:o?8:void 0,ref:t,ownerState:u},c))})),Lb=zb;function Ab(e){return(0,ve.Z)("MuiCardHeader",e)}const Ib=(0,ne.Z)("MuiCardHeader",["root","avatar","action","content","title","subheader"]),Fb=["action","avatar","className","component","disableTypography","subheader","subheaderTypographyProps","title","titleTypographyProps"],Db=(0,v.ZP)("div",{name:"MuiCardHeader",slot:"Root",overridesResolver:(e,t)=>(0,i.Z)({[`& .${Ib.title}`]:t.title,[`& .${Ib.subheader}`]:t.subheader},t.root)})({display:"flex",alignItems:"center",padding:16}),Bb=(0,v.ZP)("div",{name:"MuiCardHeader",slot:"Avatar",overridesResolver:(e,t)=>t.avatar})({display:"flex",flex:"0 0 auto",marginRight:16}),$b=(0,v.ZP)("div",{name:"MuiCardHeader",slot:"Action",overridesResolver:(e,t)=>t.action})({flex:"0 0 auto",alignSelf:"flex-start",marginTop:-4,marginRight:-8,marginBottom:-4}),Wb=(0,v.ZP)("div",{name:"MuiCardHeader",slot:"Content",overridesResolver:(e,t)=>t.content})({flex:"1 1 auto"}),Ub=t.forwardRef((function(e,t){const n=(0,b.Z)({props:e,name:"MuiCardHeader"}),{action:r,avatar:o,className:c,component:u="div",disableTypography:d=!1,subheader:p,subheaderTypographyProps:f,title:h,titleTypographyProps:m}=n,g=(0,a.Z)(n,Fb),v=(0,i.Z)({},n,{component:u,disableTypography:d}),y=(e=>{const{classes:t}=e;return(0,s.Z)({root:["root"],avatar:["avatar"],action:["action"],content:["content"],title:["title"],subheader:["subheader"]},Ab,t)})(v);let x=h;null==x||x.type===Nl||d||(x=(0,O.jsx)(Nl,(0,i.Z)({variant:o?"body2":"h5",className:y.title,component:"span",display:"block"},m,{children:x})));let w=p;return null==w||w.type===Nl||d||(w=(0,O.jsx)(Nl,(0,i.Z)({variant:o?"body2":"body1",className:y.subheader,color:"text.secondary",component:"span",display:"block"},f,{children:w}))),(0,O.jsxs)(Db,(0,i.Z)({className:(0,l.Z)(y.root,c),as:u,ref:t,ownerState:v},g,{children:[o&&(0,O.jsx)(Bb,{className:y.avatar,ownerState:v,children:o}),(0,O.jsxs)(Wb,{className:y.content,ownerState:v,children:[x,w]}),r&&(0,O.jsx)($b,{className:y.action,ownerState:v,children:r})]}))})),Vb=Ub;function Hb(e){return(0,ve.Z)("PrivateSwitchBase",e)}(0,ne.Z)("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const qb=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],Kb=(0,v.ZP)(ke)((e=>{let{ownerState:t}=e;return(0,i.Z)({padding:9,borderRadius:"50%"},"start"===t.edge&&{marginLeft:"small"===t.size?-3:-12},"end"===t.edge&&{marginRight:"small"===t.size?-3:-12})})),Gb=(0,v.ZP)("input")({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Yb=t.forwardRef((function(e,t){const{autoFocus:n,checked:r,checkedIcon:o,className:c,defaultChecked:u,disabled:d,disableFocusRipple:p=!1,edge:f=!1,icon:h,id:m,inputProps:g,inputRef:v,name:b,onBlur:y,onChange:x,onFocus:w,readOnly:S,required:k=!1,tabIndex:C,type:j,value:E}=e,_=(0,a.Z)(e,qb),[P,Z]=(0,Ui.Z)({controlled:r,default:Boolean(u),name:"SwitchBase",state:"checked"}),R=eo();let M=d;R&&"undefined"===typeof M&&(M=R.disabled);const N="checkbox"===j||"radio"===j,T=(0,i.Z)({},e,{checked:P,disabled:M,disableFocusRipple:p,edge:f}),z=(e=>{const{classes:t,checked:n,disabled:r,edge:o}=e,a={root:["root",n&&"checked",r&&"disabled",o&&`edge${(0,Ve.Z)(o)}`],input:["input"]};return(0,s.Z)(a,Hb,t)})(T);return(0,O.jsxs)(Kb,(0,i.Z)({component:"span",className:(0,l.Z)(z.root,c),centerRipple:!0,focusRipple:!p,disabled:M,tabIndex:null,role:void 0,onFocus:e=>{w&&w(e),R&&R.onFocus&&R.onFocus(e)},onBlur:e=>{y&&y(e),R&&R.onBlur&&R.onBlur(e)},ownerState:T,ref:t},_,{children:[(0,O.jsx)(Gb,(0,i.Z)({autoFocus:n,checked:r,defaultChecked:u,className:z.input,disabled:M,id:N?m:void 0,name:b,onChange:e=>{if(e.nativeEvent.defaultPrevented)return;const t=e.target.checked;Z(t),x&&x(e,t)},readOnly:S,ref:v,required:k,ownerState:T,tabIndex:C,type:j},"checkbox"===j&&void 0===E?{}:{value:E},g)),P?o:h]}))})),Xb=Yb,Qb=(0,N.Z)((0,O.jsx)("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),Jb=(0,N.Z)((0,O.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),ey=(0,N.Z)((0,O.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function ty(e){return(0,ve.Z)("MuiCheckbox",e)}const ny=(0,ne.Z)("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary"]),ry=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],oy=(0,v.ZP)(Xb,{shouldForwardProp:e=>(0,v.FO)(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,"default"!==n.color&&t[`color${(0,Ve.Z)(n.color)}`]]}})((e=>{let{theme:t,ownerState:n}=e;return(0,i.Z)({color:(t.vars||t).palette.text.secondary},!n.disableRipple&&{"&:hover":{backgroundColor:t.vars?`rgba(${"default"===n.color?t.vars.palette.action.activeChannel:t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.hoverOpacity})`:(0,Pa.Fq)("default"===n.color?t.palette.action.active:t.palette[n.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==n.color&&{[`&.${ny.checked}, &.${ny.indeterminate}`]:{color:(t.vars||t).palette[n.color].main},[`&.${ny.disabled}`]:{color:(t.vars||t).palette.action.disabled}})})),ay=(0,O.jsx)(Jb,{}),iy=(0,O.jsx)(Qb,{}),ly=(0,O.jsx)(ey,{}),sy=t.forwardRef((function(e,n){var r,o;const c=(0,b.Z)({props:e,name:"MuiCheckbox"}),{checkedIcon:u=ay,color:d="primary",icon:p=iy,indeterminate:f=!1,indeterminateIcon:h=ly,inputProps:m,size:g="medium",className:v}=c,y=(0,a.Z)(c,ry),x=f?h:p,w=f?h:u,S=(0,i.Z)({},c,{color:d,indeterminate:f,size:g}),k=(e=>{const{classes:t,indeterminate:n,color:r}=e,o={root:["root",n&&"indeterminate",`color${(0,Ve.Z)(r)}`]},a=(0,s.Z)(o,ty,t);return(0,i.Z)({},t,a)})(S);return(0,O.jsx)(oy,(0,i.Z)({type:"checkbox",inputProps:(0,i.Z)({"data-indeterminate":f},m),icon:t.cloneElement(x,{fontSize:null!=(r=x.props.fontSize)?r:g}),checkedIcon:t.cloneElement(w,{fontSize:null!=(o=w.props.fontSize)?o:g}),ownerState:S,ref:n,className:(0,l.Z)(k.root,v)},y,{classes:k}))})),cy=sy;var uy=n(9823);const dy=(0,v.ZP)(Oh)((e=>{let{theme:t}=e;return{"& .MuiDialogContent-root":{padding:t.spacing(2)},"& .MuiDialogActions-root":{padding:t.spacing(1)}}}));function py(e){const{children:t,onClose:n,...r}=e;return(0,O.jsxs)(Xh,{sx:{m:0,p:2},...r,children:[t,n?(0,O.jsx)(qp,{"aria-label":"close",onClick:n,sx:{position:"absolute",right:8,top:8,color:e=>e.palette.grey[500]},children:(0,O.jsx)(uy.Z,{})}):null]})}function fy(e){const[n,r]=(0,t.useState)(!1);(0,t.useEffect)((()=>{e.handleClickOpen?r(!0):r(!1)}),[e.handleClickOpen]);const o=()=>{r(!1),e.onChange(!1)};return(0,O.jsx)("div",{children:(0,O.jsxs)(dy,{onClose:o,"aria-labelledby":"customized-dialog-title",open:n,children:[(0,O.jsx)(py,{id:"customized-dialog-title",onClose:o,children:e.title}),(0,O.jsxs)($h,{dividers:!0,children:[(0,O.jsx)(Nl,{gutterBottom:!0,children:"Selected fields have been successfully updated."}),(0,O.jsx)(Nl,{gutterBottom:!0,children:"Now, you need to initiate the indexing process from the Dashboard page to include the selected fields. Would you like to initiate it now?"}),(0,O.jsx)(Nl,{gutterBottom:!0,children:"Please click 'Yes' to proceed. If you prefer to do it later, click 'No'."})]}),(0,O.jsxs)(zh,{children:[(0,O.jsx)(El,{autoFocus:!0,variant:"contained",color:"success",onClick:()=>{e.handleMenuListState("Dashboard"),e.onChange(!1),r(!1)},id:"field-yes",children:"Yes"}),(0,O.jsx)(El,{variant:"outlined",color:"error",onClick:o,id:"field-no",children:"No"})]})]})})}function hy(e,t){return e.filter((e=>-1===t.indexOf(e)))}function my(e,t){return e.filter((e=>-1!==t.indexOf(e)))}function gy(e){const[n,r]=(0,t.useState)([]),[o,a]=(0,t.useState)([]),[i,l]=(0,t.useState)([]),[s,c]=(0,t.useState)([]),[u,d]=(0,t.useState)(!1),p=my(o,i),f=my(o,s),[h,m]=(0,t.useState)(!0),g=(0,t.useRef)([]),v=(0,t.useRef)(""),b=(0,t.useRef)(""),y=rt().apiUrl;(0,t.useEffect)((()=>{fetch(y+"expertrec_get_product_attribute_to_index").then((e=>e.json())).then((e=>{console.debug("Successfully fetched Product Attribute",e),console.debug("length of Product Attribute",e.length),r(e),c(e.filter((e=>e.selected)).map((e=>e.attribute_name))),l(e.filter((e=>!e.selected)).map((e=>e.attribute_name))),m(!1)})).catch((e=>console.error(e)))}),[]);const x=e=>()=>{const t=o.indexOf(e),n=[...o];-1===t?n.push(e):n.splice(t,1),a(n)},w=e=>my(o,e).length,S=e=>()=>{w(e)===e.length?a(hy(o,e)):a(function(e,t){return[...e,...hy(t,e)]}(o,e))};function k(){console.log("includedProductAttriData",g.current),fetch(y+"expertrec_update_attribute_index",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(g.current)}).then((e=>e.json())).then((e=>{console.log("updated Product Attribute data",e),r(e),c(e.filter((e=>e.selected)).map((e=>e.attribute_name))),l(e.filter((e=>!e.selected)).map((e=>e.attribute_name))),d(!0)})).catch((e=>{console.error("There was a problem with the fetch operation:",e)}))}const C=(e,t,n,r,a)=>(0,O.jsxs)(Lb,{children:[(0,O.jsx)(Vb,{sx:{px:2,py:1},avatar:(0,O.jsx)(cy,{id:`${a}_product_selectAll_checkbox`,onClick:S(t),checked:w(t)===t.length&&0!==t.length,indeterminate:w(t)!==t.length&&0!==w(t),disabled:0===t.length,inputProps:{"aria-label":"all items selected"}}),title:e,subheader:`${w(t)}/${t.length} selected`}),(0,O.jsx)("div",{className:"field_search",children:(0,O.jsx)(ml,{fullWidth:!0,id:`${a}_product_search`,placeholder:"Search",InputProps:{startAdornment:(0,O.jsx)(qp,{children:(0,O.jsx)(yb.Z,{})})},onChange:e=>{r.current=e.target.value,n()}})}),(0,O.jsx)(ya,{sx:{width:300,height:230,bgcolor:"background.paper",overflow:"auto"},dense:!0,component:"div",role:"list",children:t.map((e=>{const t=`transfer-list-all-item-${e}-label`;return(0,O.jsxs)(pf,{role:"listitem",button:!0,onClick:x(e),children:[(0,O.jsx)(Sf,{children:(0,O.jsx)(cy,{checked:-1!==o.indexOf(e),tabIndex:-1,disableRipple:!0,inputProps:{"aria-labelledby":t}})}),(0,O.jsx)(Pf,{id:t,primary:e,className:"field-list-text"})]},e)}))})]});return h?(0,O.jsx)("div",{className:"show-loading-center",children:(0,O.jsx)(Fr,{})}):(0,O.jsx)(O.Fragment,{children:0===n.length?(0,O.jsx)("h2",{children:"No Product Attributes Found"}):(0,O.jsxs)(O.Fragment,{children:[(0,O.jsxs)("div",{className:"field-header",children:[(0,O.jsx)("div",{className:"search_preview_icon",children:(0,O.jsx)(qu,{})}),(0,O.jsx)("div",{className:"field-text-Product",children:"Improve your search experience and filters by selecting Product Attributes for indexing. They'll become searchable fields, making it easier to find products efficiently."})]}),(0,O.jsxs)(Rb,{className:"transfer-list-container-resposive",container:!0,spacing:5,justifyContent:"center",alignItems:"center",children:[(0,O.jsx)(Rb,{className:"transfer-list-resposive",item:!0,children:C("Available Attributes",i,(function(){if(console.log("searchValExcluded",b),""===b.current)return void l(n.filter((e=>!e.selected)).map((e=>e.attribute_name)));const e=Nf(n,!1,b.current,"attribute_name");console.log("filterBySearchExcluded",e),l(e)}),b,"available")}),(0,O.jsx)(Rb,{item:!0,children:(0,O.jsxs)(Rb,{container:!0,direction:"column",alignItems:"center",children:[(0,O.jsx)(El,{sx:{my:.5},variant:"contained",size:"large",color:"warning",onClick:()=>{g.current=s.concat(o),c(s.concat(p)),l(hy(i,p)),a(hy(o,p)),k()},disabled:0===p.length,"aria-label":"move selected right",id:"move-right-button",children:">"}),(0,O.jsx)(El,{sx:{my:.5},variant:"contained",size:"large",color:"warning",onClick:()=>{g.current=hy(s,o),l(i.concat(f)),c(hy(s,f)),a(hy(o,f)),k()},disabled:0===f.length,"aria-label":"move selected left",id:"move-left-button",children:"<"})]})}),(0,O.jsx)(Rb,{className:"transfer-list-resposive",item:!0,children:C("Selected Attributes",s,(function(){if(console.log("searchValIncluded",v),""===v.current)return void c(n.filter((e=>e.selected)).map((e=>e.attribute_name)));const e=Nf(n,!0,v.current,"attribute_name");console.log("filterBySearchIncluded",e),c(e)}),v,"selected")}),(0,O.jsx)(fy,{handleClickOpen:u,title:"Product Attributes Updated",onChange:e=>{d(e)},handleMenuListState:e.handleMenuListState})]})]})})}function vy(e,t){return e.filter((e=>-1===t.indexOf(e)))}function by(e,t){return e.filter((e=>-1!==t.indexOf(e)))}function yy(e){const[n,r]=(0,t.useState)([]),[o,a]=(0,t.useState)([]),[i,l]=(0,t.useState)([]),s=by(n,o),c=by(n,i),[u,d]=(0,t.useState)(!1),[p,f]=(0,t.useState)([]),h=(0,t.useRef)([]),[m,g]=(0,t.useState)(!0),v=(0,t.useRef)(""),b=(0,t.useRef)(""),y=rt().apiUrl;(0,t.useEffect)((()=>{console.debug("About to fetching Meta keys"),fetch(y+"expertrec_get_metakeys_to_index").then((e=>e.json())).then((e=>{console.debug("Successfully fetched Meta keys",e),console.debug("Length of Meta keys",e.length),f(e),h.current=e.filter((e=>e.selected)).map((e=>e.name)),l(e.filter((e=>e.selected)).map((e=>e.name))),a(e.filter((e=>!e.selected)).map((e=>e.name))),g(!1)})).catch((e=>console.error("Error while fetching Meta keys",e)))}),[]);const x=e=>()=>{const t=n.indexOf(e),o=[...n];-1===t?o.push(e):o.splice(t,1),r(o)},w=e=>by(n,e).length,S=e=>()=>{w(e)===e.length?r(vy(n,e)):r(function(e,t){return[...e,...vy(t,e)]}(n,e))};function k(){console.debug("About to updating Meta Keys",h.current),fetch(y+"expertrec_update_metakeys_to_index",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(h.current)}).then((e=>e.json())).then((e=>{console.debug("Sucessfully updated Meta Keys",e),f(e),l(e.filter((e=>e.selected)).map((e=>e.name))),a(e.filter((e=>!e.selected)).map((e=>e.name))),d(!0)})).catch((e=>{console.error("Error while updating Meta Keys",e)}))}const C=(e,t,r,o,a)=>(0,O.jsxs)(Lb,{children:[(0,O.jsx)(Vb,{sx:{px:2,py:1},avatar:(0,O.jsx)(cy,{id:`${a}_meta_selectAll_checkbox`,onClick:S(t),checked:w(t)===t.length&&0!==t.length,indeterminate:w(t)!==t.length&&0!==w(t),disabled:0===t.length,inputProps:{"aria-label":"all items selected"}}),title:e,subheader:`${w(t)}/${t.length} selected`}),(0,O.jsx)("div",{className:"field_search",children:(0,O.jsx)(ml,{fullWidth:!0,id:`${a}_meta_search`,placeholder:"Search",InputProps:{startAdornment:(0,O.jsx)(qp,{children:(0,O.jsx)(yb.Z,{})})},onChange:e=>{o.current=e.target.value,r()}})}),(0,O.jsx)(ya,{sx:{width:300,height:230,bgcolor:"background.paper",overflow:"auto"},dense:!0,component:"div",role:"list",children:t.map((e=>{const t=`transfer-list-all-item-${e}-label`;return(0,O.jsxs)(pf,{role:"listitem",button:!0,onClick:x(e),children:[(0,O.jsx)(Sf,{children:(0,O.jsx)(cy,{checked:-1!==n.indexOf(e),tabIndex:-1,disableRipple:!0,inputProps:{"aria-labelledby":t}})}),(0,O.jsx)(Pf,{id:t,className:"field-list-text",primary:e})]},e)}))})]});return m?(0,O.jsx)("div",{className:"show-loading-center",children:(0,O.jsx)(Fr,{})}):(0,O.jsx)(O.Fragment,{children:0===p.length?(0,O.jsx)("h2",{children:"No MetaData Found"}):(0,O.jsxs)(O.Fragment,{children:[(0,O.jsxs)("div",{className:"field-header",children:[(0,O.jsx)("div",{className:"search_preview_icon",children:(0,O.jsx)(qu,{})}),(0,O.jsx)("div",{className:"field-text-Meta",children:"Improve your search experience and filters by selecting Metadata for indexing. They'll become searchable fields, making it easier to find products efficiently."})]}),(0,O.jsxs)(Rb,{className:"transfer-list-container-resposive",container:!0,spacing:5,justifyContent:"center",alignItems:"center",children:[(0,O.jsx)(Rb,{className:"transfer-list-resposive",item:!0,children:C("Available Metadata",o,(function(){if(console.log("searchValExcluded",b),""===b.current)return void a(p.filter((e=>!e.selected)).map((e=>e.name)));const e=Nf(p,!1,b.current,"name");console.log("filterBySearchExcluded",e),a(e)}),b,"available")}),(0,O.jsx)(Rb,{item:!0,children:(0,O.jsxs)(Rb,{container:!0,direction:"column",alignItems:"center",children:[(0,O.jsx)(El,{sx:{my:.5},variant:"contained",size:"large",color:"warning",onClick:()=>{h.current=i.concat(n),l(i.concat(s)),a(vy(o,s)),r(vy(n,s)),k()},disabled:0===s.length,"aria-label":"move selected right",id:"move-right-button",children:">"}),(0,O.jsx)(El,{sx:{my:.5},variant:"contained",size:"large",color:"warning",onClick:()=>{h.current=vy(i,n),a(o.concat(c)),l(vy(i,c)),r(vy(n,c)),k()},disabled:0===c.length,"aria-label":"move selected left",id:"move-left-button",children:"<"})]})}),(0,O.jsx)(Rb,{className:"transfer-list-resposive",item:!0,children:C("Selected Metadata",i,(function(){if(console.log("searchValIncluded",v),""===v.current)return void l(p.filter((e=>e.selected)).map((e=>e.name)));const e=Nf(p,!0,v.current,"name");console.log("filterBySearchIncluded",e),l(e)}),v,"selected")}),(0,O.jsx)(fy,{handleClickOpen:u,title:"Metadata Updated",onChange:e=>{d(e)},handleMenuListState:e.handleMenuListState})]})]})})}function xy(e){const{children:t,value:n,index:r,...o}=e;return(0,O.jsx)("div",{role:"tabpanel",hidden:n!==r,id:`simple-tabpanel-${r}`,"aria-labelledby":`simple-tab-${r}`,...o,children:n===r&&(0,O.jsx)(kr,{sx:{p:3},children:(0,O.jsx)(Nl,{children:t})})})}function wy(e){return{id:`simple-tab-${e}`,"aria-controls":`simple-tabpanel-${e}`}}function Sy(e){const n=it(),[r,o]=(0,t.useState)(0),a=(e,t)=>{o(t)};return(0,O.jsxs)(kr,{sx:{width:"100%"},children:[(0,O.jsx)(kr,{sx:{borderBottom:1,borderColor:"divider"},children:n?(0,O.jsxs)(Ue,{value:r,onChange:a,"aria-label":"basic tabs example",children:[(0,O.jsx)(Xe,{label:"Product Attributes",...wy(0)}),(0,O.jsx)(Xe,{label:"MetaData",...wy(1)})]}):(0,O.jsx)(Ue,{value:r,onChange:a,"aria-label":"basic tabs example",children:(0,O.jsx)(Xe,{label:"MetaData",...wy(0)})})}),n?(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(xy,{value:r,index:0,children:(0,O.jsx)(gy,{handleMenuListState:e.handleMenuListState})}),(0,O.jsx)(xy,{value:r,index:1,children:(0,O.jsx)(yy,{handleMenuListState:e.handleMenuListState})})]}):(0,O.jsx)(O.Fragment,{children:(0,O.jsx)(xy,{value:r,index:0,children:(0,O.jsx)(yy,{handleMenuListState:e.handleMenuListState})})})]})}function ky(e){return(0,ve.Z)("MuiFormControlLabel",e)}const Cy=(0,ne.Z)("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),jy=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],Ey=(0,v.ZP)("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Cy.label}`]:t.label},t.root,t[`labelPlacement${(0,Ve.Z)(n.labelPlacement)}`]]}})((e=>{let{theme:t,ownerState:n}=e;return(0,i.Z)({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Cy.disabled}`]:{cursor:"default"}},"start"===n.labelPlacement&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},"top"===n.labelPlacement&&{flexDirection:"column-reverse",marginLeft:16},"bottom"===n.labelPlacement&&{flexDirection:"column",marginLeft:16},{[`& .${Cy.label}`]:{[`&.${Cy.disabled}`]:{color:(t.vars||t).palette.text.disabled}}})})),_y=(0,v.ZP)("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})((e=>{let{theme:t}=e;return{[`&.${Cy.error}`]:{color:(t.vars||t).palette.error.main}}})),Py=t.forwardRef((function(e,n){var r,o;const c=(0,b.Z)({props:e,name:"MuiFormControlLabel"}),{className:u,componentsProps:d={},control:p,disabled:f,disableTypography:h,label:m,labelPlacement:g="end",required:v,slotProps:y={}}=c,x=(0,a.Z)(c,jy),w=eo(),S=null!=(r=null!=f?f:p.props.disabled)?r:null==w?void 0:w.disabled,k=null!=v?v:p.props.required,C={disabled:S,required:k};["checked","name","onChange","value","inputRef"].forEach((e=>{"undefined"===typeof p.props[e]&&"undefined"!==typeof c[e]&&(C[e]=c[e])}));const j=Qr({props:c,muiFormControl:w,states:["error"]}),E=(0,i.Z)({},c,{disabled:S,labelPlacement:g,required:k,error:j.error}),_=(e=>{const{classes:t,disabled:n,labelPlacement:r,error:o,required:a}=e,i={root:["root",n&&"disabled",`labelPlacement${(0,Ve.Z)(r)}`,o&&"error",a&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]};return(0,s.Z)(i,ky,t)})(E),P=null!=(o=y.typography)?o:d.typography;let Z=m;return null==Z||Z.type===Nl||h||(Z=(0,O.jsx)(Nl,(0,i.Z)({component:"span"},P,{className:(0,l.Z)(_.label,null==P?void 0:P.className),children:Z}))),(0,O.jsxs)(Ey,(0,i.Z)({className:(0,l.Z)(_.root,u),ownerState:E,ref:n},x,{children:[t.cloneElement(p,C),Z,k&&(0,O.jsxs)(_y,{ownerState:E,"aria-hidden":!0,className:_.asterisk,children:["\u2009","*"]})]}))})),Zy=Py;function Oy(e){return(0,ve.Z)("MuiSwitch",e)}const Ry=(0,ne.Z)("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),My=["className","color","edge","size","sx"],Ny=(0,v.ZP)("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${(0,Ve.Z)(n.edge)}`],t[`size${(0,Ve.Z)(n.size)}`]]}})((e=>{let{ownerState:t}=e;return(0,i.Z)({display:"inline-flex",width:58,height:38,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"}},"start"===t.edge&&{marginLeft:-8},"end"===t.edge&&{marginRight:-8},"small"===t.size&&{width:40,height:24,padding:7,[`& .${Ry.thumb}`]:{width:16,height:16},[`& .${Ry.switchBase}`]:{padding:4,[`&.${Ry.checked}`]:{transform:"translateX(16px)"}}})})),Ty=(0,v.ZP)(Xb,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${Ry.input}`]:t.input},"default"!==n.color&&t[`color${(0,Ve.Z)(n.color)}`]]}})((e=>{let{theme:t}=e;return{position:"absolute",top:0,left:0,zIndex:1,color:t.vars?t.vars.palette.Switch.defaultColor:`${"light"===t.palette.mode?t.palette.common.white:t.palette.grey[300]}`,transition:t.transitions.create(["left","transform"],{duration:t.transitions.duration.shortest}),[`&.${Ry.checked}`]:{transform:"translateX(20px)"},[`&.${Ry.disabled}`]:{color:t.vars?t.vars.palette.Switch.defaultDisabledColor:`${"light"===t.palette.mode?t.palette.grey[100]:t.palette.grey[600]}`},[`&.${Ry.checked} + .${Ry.track}`]:{opacity:.5},[`&.${Ry.disabled} + .${Ry.track}`]:{opacity:t.vars?t.vars.opacity.switchTrackDisabled:""+("light"===t.palette.mode?.12:.2)},[`& .${Ry.input}`]:{left:"-100%",width:"300%"}}}),(e=>{let{theme:t,ownerState:n}=e;return(0,i.Z)({"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:(0,Pa.Fq)(t.palette.action.active,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==n.color&&{[`&.${Ry.checked}`]:{color:(t.vars||t).palette[n.color].main,"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette[n.color].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:(0,Pa.Fq)(t.palette[n.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Ry.disabled}`]:{color:t.vars?t.vars.palette.Switch[`${n.color}DisabledColor`]:`${"light"===t.palette.mode?(0,Pa.$n)(t.palette[n.color].main,.62):(0,Pa._j)(t.palette[n.color].main,.55)}`}},[`&.${Ry.checked} + .${Ry.track}`]:{backgroundColor:(t.vars||t).palette[n.color].main}})})),zy=(0,v.ZP)("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})((e=>{let{theme:t}=e;return{height:"100%",width:"100%",borderRadius:7,zIndex:-1,transition:t.transitions.create(["opacity","background-color"],{duration:t.transitions.duration.shortest}),backgroundColor:t.vars?t.vars.palette.common.onBackground:`${"light"===t.palette.mode?t.palette.common.black:t.palette.common.white}`,opacity:t.vars?t.vars.opacity.switchTrack:""+("light"===t.palette.mode?.38:.3)}})),Ly=(0,v.ZP)("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})((e=>{let{theme:t}=e;return{boxShadow:(t.vars||t).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}})),Ay=t.forwardRef((function(e,t){const n=(0,b.Z)({props:e,name:"MuiSwitch"}),{className:r,color:o="primary",edge:c=!1,size:u="medium",sx:d}=n,p=(0,a.Z)(n,My),f=(0,i.Z)({},n,{color:o,edge:c,size:u}),h=(e=>{const{classes:t,edge:n,size:r,color:o,checked:a,disabled:l}=e,c={root:["root",n&&`edge${(0,Ve.Z)(n)}`,`size${(0,Ve.Z)(r)}`],switchBase:["switchBase",`color${(0,Ve.Z)(o)}`,a&&"checked",l&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},u=(0,s.Z)(c,Oy,t);return(0,i.Z)({},t,u)})(f),m=(0,O.jsx)(Ly,{className:h.thumb,ownerState:f});return(0,O.jsxs)(Ny,{className:(0,l.Z)(h.root,r),sx:d,ownerState:f,children:[(0,O.jsx)(Ty,(0,i.Z)({type:"checkbox",icon:m,checkedIcon:m,ref:t,ownerState:f},p,{classes:(0,i.Z)({},h,{root:h.switchBase})})),(0,O.jsx)(zy,{className:h.track,ownerState:f})]})})),Iy=Ay;const Fy=function(e){console.log("PluginSettings component loaded");const[n,r]=(0,t.useState)(),[o,a]=(0,t.useState)(),[i,l]=(0,t.useState)(),[s,c]=(0,t.useState)(),[u,d]=(0,t.useState)(),[p,f]=(0,t.useState)(),[h,m]=(0,t.useState)(),[g,v]=(0,t.useState)(),[b,y]=(0,t.useState)(),[x,w]=(0,t.useState)(!1),[S,k]=(0,t.useState)(!1),{apiKey:C,secretKey:j}=Zv(),E=Of(),_=rt().apiUrl;function P(e){var t;console.log("event",e),r(e),t=e,w(!0),t?fetch(_+"set_debug").then((e=>e.json())).then((e=>{console.debug("Sucessfully set debug mode",e),r(e),k("Debug Mode On"),w(!1)})).catch((e=>console.error("Error while setting debug mode",e))):fetch(_+"reset_debug").then((e=>e.json())).then((e=>{console.debug("Sucessfully unset debug mode",e),r(e),k("Debug Mode Off"),w(!1)})).catch((e=>console.error("Error while unsetting debug mode",e)))}function Z(e){var t;console.log("event",e),l(e),t=e,w(!0),t?fetch(_+"set_init").then((e=>e.json())).then((e=>{console.debug("Sucessfully set init mode",e),l(e),m("Init Mode On"),w(!1)})).catch((e=>console.error("Error while setting init mode",e))):fetch(_+"reset_init").then((e=>e.json())).then((e=>{console.debug("Sucessfully unset init mode",e),l(e),m("Init Mode Off"),w(!1)})).catch((e=>console.error("Error while unsetting init mode",e)))}function R(e){var t;console.log("event",e),c(e),t=e,w(!0),t?fetch(_+"set_ai_ui").then((e=>e.json())).then((e=>{console.debug("Successfully set AI UI mode",e),c(e),v("AI Compatible UI On"),w(!1)})).catch((e=>console.error("Error while setting AI UI mode",e))):fetch(_+"reset_ai_ui").then((e=>e.json())).then((e=>{console.debug("Successfully unset AI UI mode",e),c(e),v("AI Compatible UI Off"),w(!1)})).catch((e=>console.error("Error while unsetting AI UI mode",e)))}function M(e){var t;console.log("event",e),d(e),t=e,w(!0),t?fetch(_+"set_readonly_mode").then((e=>e.json())).then((e=>{console.debug("Successfully set readonly mode",e),d(e),y("Readonly Mode On"),w(!1)})).catch((e=>console.error("Error while setting readonly mode",e))):fetch(_+"reset_readonly_mode").then((e=>e.json())).then((e=>{console.debug("Successfully unset readonly mode",e),d(e),y("Readonly Mode Off"),w(!1)})).catch((e=>console.error("Error while unsetting readonly mode",e)))}function N(e){console.log("sentry toogle button event",e),w(!0),e?(fetch(_+"set_sentry").then((e=>e.json())).then((e=>{console.debug("Sucessfully set sentry mode",e),w(!1),f("Sentry Mode On")})).catch((e=>console.error("Error while setting sentry mode",e))),a(!0)):(fetch(_+"reset_sentry").then((e=>e.json())).then((e=>{console.debug("Sucessfully unset sentry mode",e),w(!1),f("Sentry Mode Off")})).catch((e=>console.error("Error while unsetting sentry mode",e))),a(!1))}return(0,t.useEffect)((()=>{fetch(_+"get_debug").then((e=>e.json())).then((e=>{console.debug("Sucessfully fetched debug mode",e),r(e),k(e?"Debug Mode On":"Debug Mode Off")})).catch((e=>console.error("Error while fetching debug mode",e)))}),[]),(0,t.useEffect)((()=>{fetch(_+"get_readonly_mode").then((e=>e.json())).then((e=>{console.debug("Successfully fetched readonly mode",e),d(e),y(e?"Readonly Mode On":"Readonly Mode Off")})).catch((e=>console.error("Error while fetching readonly mode",e)))}),[]),(0,t.useEffect)((()=>{fetch(_+"get_sentry").then((e=>e.json())).then((e=>{console.debug("Successfully fetched sentry mode",e),a(e),f(e?"Sentry Mode On":"Sentry Mode Off")})).catch((e=>console.error("Error while fetching sentry mode",e)))}),[]),(0,t.useEffect)((()=>{fetch(_+"get_init").then((e=>e.json())).then((e=>{console.debug("Sucessfully fetched init mode",e),l(e),m(e?"Init Mode On":"Init Mode Off")})).catch((e=>console.error("Error while fetching init mode",e)))}),[]),(0,t.useEffect)((()=>{fetch(_+"get_ai_ui").then((e=>e.json())).then((e=>{console.debug("Successfully fetched AI UI mode",e),c(e),v(e?"AI Compatible UI On":"AI Compatible UI Off")})).catch((e=>console.error("Error while fetching AI UI mode",e)))}),[]),void 0===n||void 0===o||void 0===i||void 0===s||void 0===u?(0,O.jsx)("div",{className:"show-loading-center",children:(0,O.jsx)(Fr,{})}):(0,O.jsxs)("div",{className:"plugin_settings",children:[(0,O.jsxs)("div",{className:"plugin_settings_key",children:[(0,O.jsx)("label",{htmlFor:"api_key",children:"API Key"}),(0,O.jsx)("input",{type:"text",id:"api_key",value:C,readOnly:!0})]}),"db"===E&&(0,O.jsxs)("div",{className:"plugin_settings_key",children:[(0,O.jsx)("label",{htmlFor:"secret_key",children:"Secret Key"}),(0,O.jsx)("input",{type:"text",id:"secret_key",value:j,readOnly:!0})]}),(0,O.jsxs)("div",{className:"left-align-Control-switches",children:[(0,O.jsx)("div",{className:"mar-top--35",children:(0,O.jsx)(Zy,{control:(0,O.jsx)(Iy,{}),label:S,checked:n,onChange:e=>P(e.target.checked)})}),(0,O.jsx)("div",{className:"mar-top--35",children:(0,O.jsx)(Zy,{control:(0,O.jsx)(Iy,{}),label:p,checked:o,onChange:e=>N(e.target.checked)})}),(0,O.jsx)("div",{className:"mar-top--35",children:(0,O.jsx)(Zy,{control:(0,O.jsx)(Iy,{}),label:h,checked:i,onChange:e=>Z(e.target.checked)})}),(0,O.jsx)("div",{className:"mar-top--35",children:(0,O.jsx)(Zy,{control:(0,O.jsx)(Iy,{}),label:g,checked:s,onChange:e=>R(e.target.checked)})}),(0,O.jsx)("div",{className:"mar-top--35",children:(0,O.jsx)(Zy,{control:(0,O.jsx)(Iy,{}),label:b,checked:u,onChange:e=>M(e.target.checked)})})]}),x&&(0,O.jsx)(Fr,{})]})},Dy=(0,v.ZP)(Oh)((e=>{let{theme:t}=e;return{"& .MuiDialogContent-root":{padding:t.spacing(2)},"& .MuiDialogActions-root":{padding:t.spacing(1)}}}));function By(e){const{children:t,onClose:n,...r}=e;return(0,O.jsxs)(Xh,{sx:{m:0,p:2},...r,children:[t,n?(0,O.jsx)(qp,{"aria-label":"close",onClick:n,sx:{position:"absolute",right:8,top:8,color:e=>e.palette.grey[500]},children:(0,O.jsx)(uy.Z,{})}):null]})}const $y=(0,t.forwardRef)(((e,n)=>{const[r,o]=(0,t.useState)(!1),a=()=>{e.onChange(!1,"nochange"),o(!1)};return(0,t.useImperativeHandle)(n,(()=>({updateValue:e=>{o(e)}}))),(0,O.jsx)("div",{children:(0,O.jsxs)(Dy,{"aria-labelledby":"customized-dialog-title",open:r,children:[(0,O.jsx)(By,{id:"customized-dialog-title",onClose:a,children:"Warning"}),(0,O.jsxs)($h,{dividers:!0,children:[(0,O.jsx)(Nl,{gutterBottom:!0,children:"Please be patient while the indexing is being completed. Indexing will stop if you navigate away from this page."}),(0,O.jsx)(Nl,{gutterBottom:!0,children:(0,O.jsx)("br",{})}),(0,O.jsx)(Nl,{gutterBottom:!0,children:"If you want to navigate then click on 'Yes', Otherwise 'No'."})]}),(0,O.jsxs)(zh,{children:[(0,O.jsx)(El,{variant:"outlined",color:"error",onClick:()=>{e.onChange(!1,"change"),o(!1)},children:"Yes"}),(0,O.jsx)(El,{autoFocus:!0,variant:"contained",color:"success",onClick:a,children:"No"})]})]})})})),Wy=(0,v.ZP)(Oh)((e=>{let{theme:t}=e;return{"& .MuiDialogContent-root":{padding:t.spacing(2)},"& .MuiDialogActions-root":{padding:t.spacing(1)}}}));function Uy(e){const{children:t,onClose:n,...r}=e;return(0,O.jsxs)(Xh,{sx:{m:0,p:2},...r,children:[t,n?(0,O.jsx)(qp,{"aria-label":"close",onClick:n,sx:{position:"absolute",right:8,top:8,color:e=>e.palette.grey[500]},children:(0,O.jsx)(uy.Z,{})}):null]})}function Vy(e){const[n,r]=(0,t.useState)(!1);(0,t.useEffect)((()=>{e.handleClickOpen?r(!0):r(!1)}),[e.handleClickOpen]);const o=()=>{r(!1),e.onChange(!1)};return(0,O.jsx)("div",{children:(0,O.jsxs)(Wy,{onClose:o,"aria-labelledby":"customized-dialog-title",open:n,children:[(0,O.jsx)(Uy,{id:"customized-dialog-title",onClose:o,children:e.title}),(0,O.jsxs)($h,{dividers:!0,children:[(0,O.jsx)(Nl,{gutterBottom:!0,children:"Selected Doc Types have been successfully updated."}),(0,O.jsx)(Nl,{gutterBottom:!0,children:"Now, you need to initiate the indexing process from the Dashboard page to include the selected fields. Would you like to initiate it now?"}),(0,O.jsx)(Nl,{gutterBottom:!0,children:"Please click 'Yes' to proceed. If you prefer to do it later, click 'No'."})]}),(0,O.jsxs)(zh,{children:[(0,O.jsx)(El,{autoFocus:!0,variant:"contained",color:"success",onClick:()=>{e.handleMenuListState("Dashboard"),e.onChange(!1),r(!1)},id:"doc-type-yes",children:"Yes"}),(0,O.jsx)(El,{variant:"outlined",color:"error",onClick:o,id:"doc-type-no",children:"No"})]})]})})}function Hy(e,t){return e.filter((e=>-1===t.indexOf(e)))}function qy(e,t){return e.filter((e=>-1!==t.indexOf(e)))}function Ky(e){const{enqueueSnackbar:n}=Vn(),[r,o]=(0,t.useState)([]),[a,i]=(0,t.useState)([]),[l,s]=(0,t.useState)([]),[c,u]=(0,t.useState)(!1),d=qy(r,a),p=qy(r,l),[f,h]=(0,t.useState)(!0),[m,g]=(0,t.useState)(!1),[v,b]=(0,t.useState)(0),y=(0,t.useRef)([]),x=(0,t.useRef)(""),w=(0,t.useRef)(""),S=(0,t.useRef)([]),k=(0,t.useRef)([]),C=rt().apiUrl;(0,t.useEffect)((()=>{fetch(C+"get_cpanel_config").then((e=>e.json())).then((e=>{var t;console.log("Sucessfully fetched Selected Doc type",e.doc_type),t=e.doc_type,fetch(C+"get_index_status").then((e=>e.text())).then((e=>JSON.parse(Mf(e)))).then((e=>{console.debug("Successfully fetched Index Status",e),console.log("selectedDocType",t),S.current=t.map((t=>`${t} (${e.indexable_data[t]})`)),k.current=Object.entries(e.indexable_data).filter((e=>{let[n]=e;return!t.includes(n)})).map((e=>{let[t,n]=e;return`${t} (${n})`})),s(S.current),i(k.current),E(S.current),h(!1)})).catch((e=>{console.error("Error while fetching index status",e)}))})).catch((e=>{console.error("Error while fetching doc type",e)}))}),[]);function j(e,t){const n=t.toLowerCase();return e.filter((e=>e.toLowerCase().includes(n)))}function E(e){let t=0;for(const n of e){const e=n.match(/\((\d+)\)/);if(e){t+=parseInt(e[1],10)}}b(t)}const _=e=>()=>{const t=r.indexOf(e),n=[...r];-1===t?n.push(e):n.splice(t,1),o(n)},P=e=>qy(r,e).length,Z=e=>()=>{P(e)===e.length?o(Hy(r,e)):o(function(e,t){return[...e,...Hy(t,e)]}(r,e))};function R(){g(!0),console.log("includedSelectedDocType",y.current);const e=y.current.map((e=>{const t=e.match(/^(.*?)\s+\(\d+\)$/);return t?t[1]:e}));return console.log("updateDocTypeInCP and WP db as well data",e),fetch(C+"expertrec_update_doctype_CP",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}).then((e=>e.json())).then((e=>{console.log("Successfully updated doc type in CP",e),n("Successfully updated Doc Type",{variant:"success"}),u(!0),g(!1)})).catch((e=>{console.error("Error while updating doc type in CP",e)}))}const M=(e,t,n,o,a)=>(0,O.jsxs)(Lb,{children:[(0,O.jsx)(Vb,{sx:{px:2,py:1},avatar:(0,O.jsx)(cy,{id:`${a}_doc_selectAll_checkbox`,onClick:Z(t),checked:P(t)===t.length&&0!==t.length,indeterminate:P(t)!==t.length&&0!==P(t),disabled:0===t.length,inputProps:{"aria-label":"all items selected"}}),title:e,subheader:`${P(t)}/${t.length} selected`}),(0,O.jsx)("div",{className:"field_search",children:(0,O.jsx)(ml,{fullWidth:!0,id:`${a}_doc_search`,placeholder:"Search",InputProps:{startAdornment:(0,O.jsx)(qp,{children:(0,O.jsx)(yb.Z,{})})},onChange:e=>{o.current=e.target.value,n()}})}),(0,O.jsx)(ya,{sx:{width:300,height:230,bgcolor:"background.paper",overflow:"auto"},dense:!0,component:"div",role:"list",children:t.map((e=>{const t=`transfer-list-all-item-${e}-label`;return(0,O.jsxs)(pf,{role:"listitem",button:!0,onClick:_(e),children:[(0,O.jsx)(Sf,{children:(0,O.jsx)(cy,{checked:-1!==r.indexOf(e),tabIndex:-1,disableRipple:!0,inputProps:{"aria-labelledby":t}})}),(0,O.jsx)(Pf,{id:t,primary:e})]},e)}))})]});return f?(0,O.jsx)("div",{className:"show-loading-center",children:(0,O.jsx)(Fr,{})}):(0,O.jsxs)(O.Fragment,{children:[(0,O.jsxs)("div",{className:"field-header",children:[(0,O.jsx)("div",{className:"search_preview_icon",children:(0,O.jsx)(qu,{})}),(0,O.jsxs)("div",{className:"doc-type-text",children:["Select Post Types to include in the indexing process. By default, some of the selected post Types will not be shown in the search results. If you wish to include them in the search results, please contact the support team at ",(0,O.jsx)("a",{href:"mailto:[email protected]",children:"[email protected]"})]})]}),(0,O.jsxs)(Rb,{className:"transfer-list-container-resposive",container:!0,spacing:5,justifyContent:"center",alignItems:"center",children:[(0,O.jsx)(Rb,{className:"transfer-list-resposive",item:!0,children:M("Available Post Types",a,(function(){if(console.log("searchValExcluded",w,k,w.current),""===w.current)return void i(k.current);const e=j(k.current,w.current);console.log("searchValExcluded filterBySearchExcluded",e),i(e)}),w,"available")}),(0,O.jsx)(Rb,{item:!0,children:(0,O.jsx)(Rb,{container:!0,direction:"column",alignItems:"center",children:m?(0,O.jsx)("div",{className:"doc-type-loading-wrapper",children:(0,O.jsx)("div",{className:"doc-type-loading",children:(0,O.jsx)(Fr,{})})}):(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(El,{sx:{my:.5},variant:"contained",size:"large",color:"warning",onClick:()=>{y.current=S.current.concat(d),R().then((()=>{s(S.current.concat(d)),i(Hy(k.current,d)),o(Hy(r,d)),k.current=Hy(k.current,d),S.current=y.current,E(S.current)}))},disabled:0===d.length,"aria-label":"move selected right",id:"move-right-button",children:">"}),(0,O.jsx)(El,{sx:{my:.5},variant:"contained",size:"large",color:"warning",onClick:()=>{p.length!==S.current.length?(y.current=Hy(S.current,p),R().then((()=>{i(k.current.concat(p)),s(y.current),o(Hy(r,p)),k.current=k.current.concat(p),S.current=y.current,E(S.current)}))):n("Please include atleast one Doc Type",{variant:"error"})},disabled:0===p.length,"aria-label":"move selected left",id:"move-left-button",children:"<"})]})})}),(0,O.jsx)(Rb,{className:"transfer-list-resposive",item:!0,children:M("Selected Post Types",l,(function(){if(console.log("searchValIncluded",x),""===x.current)return void s(S.current);const e=j(S.current,x.current);console.log("filterBySearchIncluded",e),s(e)}),x,"selected")}),(0,O.jsx)(Vy,{handleClickOpen:c,title:"Doc Types Updated",onChange:e=>{u(e)},handleMenuListState:e.handleMenuListState})]}),(0,O.jsx)("div",{className:"show-total-index-count",children:(0,O.jsxs)("div",{id:"total-index-count-text",children:["Total Indexed Count: ",v]})})]})}const Gy=()=>(0,O.jsxs)("div",{id:"app-header",children:[(0,O.jsxs)("div",{className:"app-header-element",children:[(0,O.jsx)("a",{href:"https://www.expertrec.com/wordpress-search/",target:"_blank",rel:"noreferrer",children:(0,O.jsx)("img",{className:"logo-width",src:"https://www.expertrec.com/wp-content/uploads/2022/03/expertrec-icon-64.png",alt:"expertrec-logo"})}),(0,O.jsx)("h2",{className:"dashboard-title",children:"WP Fastest Site Search"}),(0,O.jsx)("p",{className:"plugin-version",children:"5.4. 5"})]}),(0,O.jsxs)("div",{className:"app-header-element",children:[(0,O.jsx)("span",{className:"app-header-support-text",children:"UI Customizations or Any Queries? :"}),(0,O.jsx)(Zc,{title:"Raise a ticket with us",placement:"bottom",arrow:!0,children:(0,O.jsx)("span",{className:"app-header-support-icons",children:(0,O.jsx)("a",{href:"https://cloudinfra.freshdesk.com/support/tickets/new",target:"_blank",rel:"noreferrer",children:(0,O.jsx)(Bu,{})})})}),(0,O.jsx)(Zc,{title:"Schedule a video call with us",placement:"bottom",arrow:!0,children:(0,O.jsx)("span",{className:"app-header-support-icons side-border",children:(0,O.jsx)("a",{href:"https://calendly.com/melchi-expertrec/tech-support",target:"_blank",rel:"noreferrer",children:(0,O.jsx)(Ju,{})})})}),(0,O.jsx)(Zc,{title:"Call our customer support executive. Number: +18646574650",placement:"bottom",arrow:!0,children:(0,O.jsx)("span",{className:"app-header-support-icons",children:(0,O.jsx)("a",{href:"tel:+18646574650",target:"_blank",rel:"noreferrer",children:(0,O.jsx)(Au,{})})})})]})]}),Yy=e=>(0,O.jsxs)("div",{className:"feature",children:[(0,O.jsx)("h2",{children:e.header}),(0,O.jsx)("div",{className:"feature-item-wrapper",children:e.data.map((t=>(0,O.jsx)("div",{className:"feature-item-content",children:(0,O.jsxs)("div",{className:"feature-content",children:[(0,O.jsx)("h3",{className:"feature-title",children:t.title}),(0,O.jsx)("div",{className:"feature-item-content-icon",children:t.icon}),(0,O.jsx)("p",{className:"feature-item-content-text",children:t.description}),e.support?(0,O.jsx)(El,{href:t.link,target:"blank",rel:"noreferrer",className:"ai-feature-support",variant:"outlined",startIcon:(0,O.jsx)(Xd,{}),children:"Contact Support"}):(0,O.jsx)("a",{href:t.link,target:"blank",rel:"noreferrer",className:"feature-link",children:"Take me there"})]})},t.id)))})]});var Xy=n(473);const Qy=(0,v.ZP)(Oh)((e=>{let{theme:t}=e;return{"& .MuiDialogContent-root":{padding:t.spacing(2)},"& .MuiDialogActions-root":{padding:t.spacing(1)}}}));function Jy(e){const{children:t,onClose:n,...r}=e;return(0,O.jsxs)(Xh,{sx:{m:0,p:2},...r,children:[t,n?(0,O.jsx)(qp,{"aria-label":"close",onClick:n,sx:{position:"absolute",right:8,top:8,color:e=>e.palette.grey[500]},children:(0,O.jsx)(uy.Z,{})}):null]})}function ex(e){const[n,r]=(0,t.useState)(!0);(0,t.useEffect)((()=>{e.handleClickOpen?r(!0):r(!1)}),[e.handleClickOpen]);const o=()=>{r(!1),e.onChange(!1)};return(0,O.jsx)("div",{children:(0,O.jsxs)(Qy,{onClose:o,"aria-labelledby":"customized-dialog-title",open:n,children:[(0,O.jsxs)(Jy,{id:"customized-dialog-title",onClose:o,children:[e.title," Variants"]}),(0,O.jsxs)($h,{dividers:!0,children:[(0,O.jsxs)(Nl,{gutterBottom:!0,children:["Now, you need to initiate the indexing process from the Dashboard page to ",e.title," the variants. Would you like to initiate it now?"]}),(0,O.jsx)(Nl,{gutterBottom:!0,children:"Please click 'Yes' to proceed. If you prefer to do it later, click 'No'."})]}),(0,O.jsxs)(zh,{children:[(0,O.jsx)(El,{autoFocus:!0,variant:"contained",color:"success",onClick:()=>{e.handleMenuListState("Dashboard"),e.onChange(!1),r(!1)},id:"variants-yes",children:"Yes"}),(0,O.jsx)(El,{variant:"outlined",color:"error",onClick:o,id:"varinats-no",children:"No"})]})]})})}const tx=(0,v.ZP)((e=>(0,O.jsx)(Iy,{focusVisibleClassName:".Mui-focusVisible",disableRipple:!0,...e})))((e=>{let{theme:t}=e;return{width:42,height:26,padding:0,"& .MuiSwitch-switchBase":{padding:0,margin:2,transitionDuration:"300ms","&.Mui-checked":{transform:"translateX(16px)",color:"#fff","& + .MuiSwitch-track":{backgroundColor:"dark"===t.palette.mode?"#2ECA45":"#65C466",opacity:1,border:0},"&.Mui-disabled + .MuiSwitch-track":{opacity:.5}},"&.Mui-focusVisible .MuiSwitch-thumb":{color:"#33cf4d",border:"6px solid #fff"},"&.Mui-disabled .MuiSwitch-thumb":{color:"light"===t.palette.mode?t.palette.grey[100]:t.palette.grey[600]},"&.Mui-disabled + .MuiSwitch-track":{opacity:"light"===t.palette.mode?.7:.3}},"& .MuiSwitch-thumb":{boxSizing:"border-box",width:22,height:22},"& .MuiSwitch-track":{borderRadius:13,backgroundColor:"light"===t.palette.mode?"#E9E9EA":"#39393D",opacity:1,transition:t.transitions.create(["background-color"],{duration:500})}}})),nx=e=>{const[n,r]=(0,t.useState)(),[o,a]=(0,t.useState)(),[i,l]=(0,t.useState)(!1),[s,c]=(0,t.useState)(),{enqueueSnackbar:u}=Vn(),d=rt().apiUrl;function p(e){console.log("heelo",e),a(!0),e?(fetch(d+"expertrec_set_indexvariants").then((e=>e.json())).then((e=>{console.debug("Sucessfully set indexing variants",e),u("Successfully Included Variants in Indexing",{variant:"success"}),a(!1),c("include"),l(!0)})).catch((e=>{console.error("Error while setting indexing variants",e),u("Failed to update Search Bar option",{variant:"error"})})),r(e)):(fetch(d+"expertrec_reset_indexvariants").then((e=>e.json())).then((e=>{console.debug("Sucessfully set indexing variants",e),u("Successfully Excluded Variants in Indexing",{variant:"success"}),a(!1),c("exclude"),l(!0)})).catch((e=>console.error("Error while resetting indexing variants",e))),r(e))}(0,t.useEffect)((()=>{fetch(d+"expertrec_get_indexvariants").then((e=>e.json())).then((e=>{console.log("Sucessfully fetched expertrec_get_index_variants",e),r(e)})).catch((e=>{console.error("Error while fetching wexpertrec_get_index_variants",e)}))}),[]);return void 0===n?(0,O.jsx)("div",{className:"show-loading-center",children:(0,O.jsx)(Fr,{})}):(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)("div",{className:"variants-info",children:(0,O.jsxs)("div",{className:"d-flex",children:[(0,O.jsx)("div",{className:"variants-icon",children:(0,O.jsx)(Xy.Z,{})}),(0,O.jsxs)("div",{className:"variants-text",children:[(0,O.jsx)("div",{className:"variants-text-title",children:"Want to display variants?"}),(0,O.jsxs)("div",{className:"variants-text-info",children:["The ",(0,O.jsx)("b",{children:"Variants display"})," feature enables you to showcase color swatches, sizes, styles, and more in the search results."]})]})]})}),(0,O.jsxs)("div",{className:"variants-switch",children:[(0,O.jsx)(Zy,{control:(0,O.jsx)(tx,{sx:{m:1}}),checked:n,label:"Include Variants Data in Indexing",labelPlacement:"start",onChange:e=>p(e.target.checked),id:"variants-switch-control"}),(0,O.jsxs)("div",{className:"variants-text-support",children:["If you want to include variant data in search results, please contact our ",(0,O.jsx)("a",{href:"https://cloudinfra.freshdesk.com/support/tickets/new",target:"_blank",rel:"noreferrer",children:"support"})," team."]})]}),(0,O.jsx)("div",{className:"variants-loading",children:o&&(0,O.jsx)(Fr,{})}),(0,O.jsx)(ex,{handleClickOpen:i,title:s,onChange:e=>{l(e)},handleMenuListState:e.handleMenuListState}),(0,O.jsx)("img",{src:"https://cse.expertrec.com/assets/images/variants_display_ref_img.png",alt:"variants",className:"variants-image"})]})};function rx(){return rx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rx.apply(this,arguments)}function ox(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}const ax=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"];function ix(e){let{basename:n,children:r,window:o}=e,a=t.useRef();var i;null==a.current&&(a.current=(void 0===(i={window:o,v5Compat:!0})&&(i={}),hd((function(e,t){let{pathname:n,search:r,hash:o}=e.location;return dd("",{pathname:n,search:r,hash:o},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){return"string"===typeof t?t:pd(t)}),null,i)));let l=a.current,[s,c]=t.useState({action:l.action,location:l.location});return t.useLayoutEffect((()=>l.listen(c)),[l]),t.createElement($d,{basename:n,children:r,location:s.location,navigationType:s.action,navigator:l})}const lx="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement,sx=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,cx=t.forwardRef((function(e,n){let r,{onClick:o,relative:a,reloadDocument:i,replace:l,state:s,target:c,to:u,preventScrollReset:d}=e,p=ox(e,ax),{basename:f}=t.useContext(Md),h=!1;if("string"===typeof u&&sx.test(u)&&(r=u,lx)){let e=new URL(window.location.href),t=u.startsWith("//")?new URL(e.protocol+u):new URL(u),n=gd(t.pathname,f);t.origin===e.origin&&null!=n?u=n+t.search+t.hash:h=!0}let m=function(e,n){let{relative:r}=void 0===n?{}:n;zd()||cd(!1);let{basename:o,navigator:a}=t.useContext(Md),{hash:i,pathname:l,search:s}=Id(e,{relative:r}),c=l;return"/"!==o&&(c="/"===l?o:xd([o,l])),a.createHref({pathname:c,search:s,hash:i})}(u,{relative:a}),g=function(e,n){let{target:r,replace:o,state:a,preventScrollReset:i,relative:l}=void 0===n?{}:n,s=Ad(),c=Ld(),u=Id(e,{relative:l});return t.useCallback((t=>{if(function(e,t){return 0===e.button&&(!t||"_self"===t)&&!function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)}(t,r)){t.preventDefault();let n=void 0!==o?o:pd(c)===pd(u);s(e,{replace:n,state:a,preventScrollReset:i,relative:l})}}),[c,s,u,o,a,r,e,i,l])}(u,{replace:l,state:s,target:c,preventScrollReset:d,relative:a});return t.createElement("a",rx({},p,{href:r||m,onClick:h||i?o:function(e){o&&o(e),e.defaultPrevented||g(e)},ref:n,target:c}))}));var ux,dx;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmitImpl="useSubmitImpl",e.UseFetcher="useFetcher"})(ux||(ux={})),function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(dx||(dx={}));const px=(0,v.ZP)(Oh)((e=>{let{theme:t}=e;return{"& .MuiDialogContent-root":{padding:t.spacing(2)},"& .MuiDialogActions-root":{padding:t.spacing(1)}}}));function fx(e){const{children:t,onClose:n,...r}=e;return(0,O.jsxs)(Xh,{sx:{m:0,p:2},...r,children:[t,n?(0,O.jsx)(qp,{"aria-label":"close",onClick:n,sx:{position:"absolute",right:8,top:8,color:e=>e.palette.grey[500]},children:(0,O.jsx)(uy.Z,{})}):null]})}function hx(e){const[n,r]=(0,t.useState)(!0);(0,t.useEffect)((()=>{e.handleDialogOpen?r(!0):r(!1)}),[e.handleDialogOpen]);const o=()=>{r(!1),e.handleDialogClose()};return(0,O.jsx)("div",{children:(0,O.jsxs)(px,{onClose:o,"aria-labelledby":"customized-dialog-title",open:n,children:[(0,O.jsx)(fx,{id:"customized-dialog-title",onClose:o,sx:{width:400},children:"Information"}),(0,O.jsx)($h,{dividers:!0,children:(0,O.jsx)(Nl,{gutterBottom:!0,children:"To enable this feature"})}),(0,O.jsxs)(zh,{children:[(0,O.jsx)(cx,{to:"https://cloudinfra.freshdesk.com/support/tickets/new",target:"_blank",rel:"noopener",style:{marginRight:10},children:(0,O.jsx)(El,{autoFocus:!0,variant:"contained",color:"success",id:"category-yes",children:"Support"})}),(0,O.jsx)(El,{variant:"outlined",color:"error",onClick:o,id:"category-no",children:"Close"})]})]})})}const mx=(0,v.ZP)((e=>(0,O.jsx)(Iy,{focusVisibleClassName:".Mui-focusVisible",disableRipple:!0,...e})))((e=>{let{theme:t}=e;return{width:42,height:26,padding:0,"& .MuiSwitch-switchBase":{padding:0,margin:2,transitionDuration:"300ms","&.Mui-checked":{transform:"translateX(16px)",color:"#fff","& + .MuiSwitch-track":{backgroundColor:"dark"===t.palette.mode?"#2ECA45":"#65C466",opacity:1,border:0},"&.Mui-disabled + .MuiSwitch-track":{opacity:.5}},"&.Mui-focusVisible .MuiSwitch-thumb":{color:"#33cf4d",border:"6px solid #fff"},"&.Mui-disabled .MuiSwitch-thumb":{color:"light"===t.palette.mode?t.palette.grey[100]:t.palette.grey[600]},"&.Mui-disabled + .MuiSwitch-track":{opacity:"light"===t.palette.mode?.7:.3}},"& .MuiSwitch-thumb":{boxSizing:"border-box",width:22,height:22},"& .MuiSwitch-track":{borderRadius:13,backgroundColor:"light"===t.palette.mode?"#E9E9EA":"#39393D",opacity:1,transition:t.transitions.create(["background-color"],{duration:500})}}})),gx=()=>{const[e,n]=(0,t.useState)(!1),[r,o]=(0,t.useState)(!0),[a,i]=(0,t.useState)(!1),l=rt().apiUrl;return(0,t.useEffect)((()=>{fetch(l+"expertrec_get_category_flag").then((e=>e.json())).then((e=>{console.log(e),n(e),o(!1)})).catch((e=>{console.log(e),o(!1)}))}),[]),r?(0,O.jsx)("div",{className:"category-loading-center",children:(0,O.jsx)(Fr,{})}):(0,O.jsxs)(O.Fragment,{children:[(0,O.jsxs)("div",{className:"category-switch",children:[(0,O.jsx)(Zy,{control:(0,O.jsx)(mx,{sx:{m:1}}),checked:e,label:"Category Pages",labelPlacement:"start",id:"category-switch-control",onChange:function(){e||i(!0)}}),(0,O.jsx)("div",{className:"category-text-support",children:"Power Category pages with Merchandizing, Filters & Sort Options"})]}),a&&(0,O.jsx)(hx,{handleDialogOpen:a,handleDialogClose:function(){i(!1)}})]})},vx=()=>{const e=S(),[n,r]=(0,t.useState)(!0),[o,a]=(0,t.useState)(),[i,l]=(0,t.useState)(),s=Ld(),[c,u]=(0,t.useState)(""),[d,p]=(0,t.useState)([]),f=(0,t.useRef)("Dashboard"),h=(0,t.useRef)(!1),m=Of(),g=Zv(),b=it(),y="db"===m?Tv:zv;function x(e){window.location.hash=e}(0,t.useEffect)((()=>{p(b?op:op.filter((e=>"Variants"!==e.label&&"Category Pages"!==e.label)))}),[b]),(0,t.useEffect)((()=>{const e=()=>{console.debug("Window Width:",window.innerWidth),window.innerWidth<1250?r(!1):r(!0)};return e(),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}}),[]),(0,t.useEffect)((()=>{window.location.hash="#Dashboard"}),[]),(0,t.useEffect)((()=>{console.debug("Location",s),l(s.hash),a(s.hash.replace("#",""))}),[s]),(0,t.useEffect)((()=>{const e=e=>{"In Progress"!==c&&"Not Started"!==c||(e.returnValue="")};return window.removeEventListener("beforeunload",e),window.addEventListener("beforeunload",e),()=>{window.removeEventListener("beforeunload",e)}}),[c]);const w=e=>{"#Dashboard"!==s.hash||"In Progress"!==c&&"Not Started"!==c?x(e):(f.current=e,h.current.updateValue(!0))},k=e=>{a(e),l("#Dashboard"),window.location.hash="#Dashboard"},C=215,j=e=>({width:C,transition:e.transitions.create("width",{easing:e.transitions.easing.sharp,duration:e.transitions.duration.enteringScreen}),overflowX:"hidden"}),E=e=>({transition:e.transitions.create("width",{easing:e.transitions.easing.sharp,duration:e.transitions.duration.leavingScreen}),overflowX:"hidden",width:`calc(${e.spacing(7)} + 1px)`,[e.breakpoints.up("sm")]:{width:`calc(${e.spacing(8)} + 1px)`}}),_=(0,v.ZP)("div")((e=>{let{theme:t}=e;return{...t.mixins.toolbar}})),P=(0,v.ZP)(Ep,{shouldForwardProp:e=>"open"!==e})((e=>{let{theme:t,open:n}=e;return{zIndex:t.zIndex.drawer+1,transition:t.transitions.create(["width","margin"],{easing:t.transitions.easing.sharp,duration:t.transitions.duration.leavingScreen}),...n&&{marginLeft:C,width:"calc(100% - 215px)",transition:t.transitions.create(["width","margin"],{easing:t.transitions.easing.sharp,duration:t.transitions.duration.enteringScreen})}}})),Z=(0,v.ZP)(xp,{shouldForwardProp:e=>"open"!==e})((e=>{let{theme:t,open:n}=e;return{width:C,flexShrink:0,whiteSpace:"nowrap",boxSizing:"border-box",...n&&{...j(t),"& .MuiDrawer-paper":j(t)},...!n&&{...E(t),"& .MuiDrawer-paper":E(t)}}}));return(0,O.jsxs)("div",{className:"main-container-wp",children:[(0,O.jsxs)(kr,{sx:{backgroundColor:""},children:[(0,O.jsx)(Tp,{}),(0,O.jsx)(P,{position:"static",children:(0,O.jsxs)(Rp,{sx:{backgroundColor:"white"},children:[(0,O.jsx)(qp,{"aria-label":"open drawer",onClick:()=>{r(!n)},edge:"start",id:"open-drawer",children:(0,O.jsx)(Kp.Z,{})}),(0,O.jsx)(Gy,{})]})}),(0,O.jsxs)("div",{className:"d-flex",children:[(0,O.jsx)(Z,{variant:"permanent",open:n,children:(0,O.jsxs)("div",{children:[(0,O.jsx)(_,{children:(0,O.jsx)(qp,{onClick:()=>{r(!1)},children:"rtl"===e.direction?(0,O.jsx)(Yp.Z,{}):(0,O.jsx)(Gp.Z,{})})}),(0,O.jsx)(Bp,{}),(0,O.jsx)(ya,{children:("crawl"===m?ip:d).map((e=>(0,O.jsx)(pf,{disablePadding:!0,sx:{display:"block",...null===m&&{opacity:"0.3",pointerEvents:"none"}},onClick:()=>w(e.label),children:(0,O.jsx)(Zc,{title:e.label,placement:"right",children:(0,O.jsxs)(gf,{sx:{minHeight:48,justifyContent:n?"initial":"center",px:2.5},id:e.label,children:[(0,O.jsx)(Sf,{sx:{minWidth:0,mr:n?1.6:"auto",justifyContent:"center",fontSize:"25px"},className:o===e.hashLink?"active-list-item ":"",children:e.icon}),(0,O.jsx)(Pf,{className:o===e.hashLink?"active-list-item ":"",primary:e.label,sx:{opacity:n?1:0}})]})})},e.id)))}),"db"===m&&"#Dashboard"!==window.location.hash&&(0,O.jsx)(ya,{children:(0,O.jsx)(pf,{disablePadding:!0,sx:{display:"block"},onClick:()=>w("Dashboard"),children:(0,O.jsx)(Zc,{title:"Status",placement:"right",children:(0,O.jsxs)(gf,{sx:{minHeight:48,justifyContent:n?"initial":"center",px:2.5},children:[console.log("indexingStatusindexingStatusindexingStatus",c),"Completed"===c?(0,O.jsx)(Pf,{primary:"Indexing Completed",sx:{opacity:n?1:0,color:"white",textAlign:"center",background:"linear-gradient(to bottom right, green, #4BB543)",padding:"10px",borderRadius:"10px"}}):(0,O.jsx)(Pf,{primary:"Indexing Pending",sx:{opacity:n?1:0,color:"white",textAlign:"center",background:"linear-gradient(to bottom right, blue, #36f)",padding:"10px",borderRadius:"10px",animation:"blink 1s infinite"}})]})})},"5")})]})}),(0,O.jsx)(kr,{component:"main",sx:{flexGrow:1,p:3},children:null===g||null===m?(0,O.jsxs)(O.Fragment,{children:[(0,O.jsxs)("div",{className:"InfoWidget_container",children:[(0,O.jsx)(Fr,{}),(0,O.jsx)("h2",{children:"Please wait while we load the data...."})]}),(0,O.jsx)(Nv,{})]}):(0,O.jsxs)(O.Fragment,{children:["#Dashboard"===i&&"Dashboard"===o&&(0,O.jsx)(Lv,{handleIndexingStatus:e=>{console.debug("Indexing Status",e),u(e)},indexingStatus:c}),"#Custom%20Post%20Types"===i&&"Custom%20Post%20Types"===o&&(0,O.jsx)(Ky,{handleMenuListState:k}),"#UI%20Customizations"===i&&"UI%20Customizations"===o&&(0,O.jsx)(Qv,{}),"#Category%20Pages"===i&&"Category%20Pages"===o&&(0,O.jsx)(gx,{}),"#Variants"===i&&"Variants"===o&&(0,O.jsx)(nx,{handleMenuListState:k}),"#Custom%20Attributes"===i&&"Custom%20Attributes"===o&&(0,O.jsx)(Sy,{handleMenuListState:k}),"#Search%20Settings"===i&&"Search%20Settings"===o&&(0,O.jsx)(Yy,{data:y.searchSettings,header:"Search Settings"}),"#Merchandising"===i&&"Merchandising"===o&&(0,O.jsx)(Yy,{data:y.merchandising,header:"Merchandising"}),"#AI%20Features"===i&&"AI%20Features"===o&&(0,O.jsx)(Yy,{data:y.aiFeatures,header:"AI Features",support:!0}),"#Plugin%20Settings"===i&&"Plugin%20Settings"===o&&(0,O.jsx)(Fy,{}),"#FAQs"===i&&"FAQs"===o&&(0,O.jsx)(bb,{})," "]})})]})]}),(0,O.jsx)($y,{ref:h,onChange:(e,t)=>{console.debug("Warning Dialog",e,f.current),"change"===t&&x(f.current)}})]})},bx=()=>{const[e,n]=(0,t.useState)();(0,t.useEffect)((()=>{fetch(tt+Qe+"expertrec_islinked").then((e=>e.json())).then((e=>{console.log(e),n(e.is_linked)})).catch((e=>{console.log(e)}))}),[]);return void 0===e?(0,O.jsx)(vx,{}):(0,O.jsx)(Un,{maxSnack:10,anchorOrigin:{vertical:"top",horizontal:"right"},children:(0,O.jsx)(ot,{children:(0,O.jsx)("div",{className:"mar-top",children:e?(0,O.jsx)(lt,{children:(0,O.jsx)(Rf,{children:(0,O.jsx)(Ov,{children:(0,O.jsx)(Af,{children:(0,O.jsx)(vx,{})})})})}):(0,O.jsx)(lt,{children:(0,O.jsx)(ad,{handleAuth:()=>{n(!0)}})})})})})},yx=e=>{e&&e instanceof Function&&n.e(787).then(n.bind(n,787)).then((t=>{let{getCLS:n,getFID:r,getFCP:o,getLCP:a,getTTFB:i}=t;n(e),r(e),o(e),a(e),i(e)}))};console.log=()=>{},console.error=()=>{},console.debug=()=>{};o.createRoot(document.getElementById("root")).render((0,O.jsx)(ix,{children:(0,O.jsx)(t.StrictMode,{children:(0,O.jsx)(bx,{})})})),yx()})()})();205 `),bv)})),jv=t.forwardRef((function(e,t){const n=(0,b.Z)({props:e,name:"MuiLinearProgress"}),{className:r,color:o="primary",value:c,valueBuffer:u,variant:d="indeterminate"}=n,p=(0,a.Z)(n,cv),f=(0,i.Z)({},n,{color:o,variant:d}),h=(e=>{const{classes:t,variant:n,color:r}=e,o={root:["root",`color${(0,Ve.Z)(r)}`,n],dashed:["dashed",`dashedColor${(0,Ve.Z)(r)}`],bar1:["bar",`barColor${(0,Ve.Z)(r)}`,("indeterminate"===n||"query"===n)&&"bar1Indeterminate","determinate"===n&&"bar1Determinate","buffer"===n&&"bar1Buffer"],bar2:["bar","buffer"!==n&&`barColor${(0,Ve.Z)(r)}`,"buffer"===n&&`color${(0,Ve.Z)(r)}`,("indeterminate"===n||"query"===n)&&"bar2Indeterminate","buffer"===n&&"bar2Buffer"]};return(0,s.Z)(o,sv,t)})(f),m=S(),g={},v={bar1:{},bar2:{}};if("determinate"===d||"buffer"===d)if(void 0!==c){g["aria-valuenow"]=Math.round(c),g["aria-valuemin"]=0,g["aria-valuemax"]=100;let e=c-100;"rtl"===m.direction&&(e=-e),v.bar1.transform=`translateX(${e}%)`}else 0;if("buffer"===d)if(void 0!==u){let e=(u||0)-100;"rtl"===m.direction&&(e=-e),v.bar2.transform=`translateX(${e}%)`}else 0;return(0,O.jsxs)(wv,(0,i.Z)({className:(0,l.Z)(h.root,r),ownerState:f,role:"progressbar"},g,{ref:t},p,{children:["buffer"===d?(0,O.jsx)(Sv,{className:h.dashed,ownerState:f}):null,(0,O.jsx)(kv,{className:h.bar1,ownerState:f,style:v.bar1}),"determinate"===d?null:(0,O.jsx)(Cv,{className:h.bar2,ownerState:f,style:v.bar2})]}))})),Ev=jv,_v=()=>{const[e,n]=(0,t.useState)({}),[r,o]=(0,t.useState)(!1),[a,i]=(0,t.useState)(!0),l=(0,t.useRef)(null),s=rt().apiUrl;function c(){const e=new FormData,t={func_to_call:"crawl_status"};for(let n in t)e.append(n,t[n]);console.log("about to getting crawl status"),fetch(s+"crawl_status",{method:"POST",body:e}).then((e=>e.json())).then((e=>JSON.parse(Mf(e)))).then((e=>{console.log("Crawl status",e),n(e)})).catch((e=>{var t={status:!1,message:"Error while fetching Crawl status",crawl_status:"Click Re-Crawl"};e.response&&(t.response_code=e.response.status),console.log("fetching Crawl status failed"),n(t)}))}function u(){console.log("About to Re-crawl"),o(!0),i(!1);const t={...e,crawl_status:"Going to Crawl"};n(t);var r=new FormData;let a={func_to_call:"start_crawl"};for(let e in a)r.append(e,a[e]);console.debug("about to re-crawl "),fetch(s+"recrawl",{method:"POST",body:r}).then((e=>e.json())).then((e=>{console.log("Re-crawl Started",e),c()})).catch((e=>{console.log("Error while re-Crawl",e),o(!1),i(!0)}))}return(0,t.useEffect)((()=>{c()}),[]),(0,t.useEffect)((()=>{if("IN_PROGRESS"===e.crawl_status)return o(!0),i(!1),l.current=setInterval(c,6e4),()=>clearInterval(l.current);"CRAWL_COMPLETE"===e.crawl_status?(clearInterval(l.current),o(!1),i(!0)):"ADMIN_CREATED"!==e.crawl_status&&"-1"!==e.crawl_status&&"NOT_STARTED"!==e.crawl_status||u()}),[e]),(0,O.jsxs)(O.Fragment,{children:[(0,O.jsxs)("div",{className:"indexing_container_header",children:[(0,O.jsx)("div",{id:"index_head_child_one",children:"Crawling Status: "}),(0,O.jsx)("div",{id:"index_head_child_two",children:"{}"===JSON.stringify(e)?(0,O.jsx)(pm,{variant:"rounded",width:180,height:36}):(0,O.jsxs)(O.Fragment,{children:["CRAWL_COMPLETE"===e.crawl_status&&"Completed","IN_PROGRESS"===e.crawl_status&&"In Progress","IN_PROGRESS"!==e.crawl_status&&"CRAWL_COMPLETE"!==e.crawl_status&&e.crawl_status," "]})})]}),"{}"===JSON.stringify(e)?(0,O.jsxs)("div",{className:"show-loading-indexing",children:[(0,O.jsx)("h2",{children:"Loading Crawling Data... Please wait"}),(0,O.jsx)(Fr,{})]}):(0,O.jsxs)("div",{className:"crawl-body",children:[(0,O.jsx)("div",{className:"pages-crawled",children:"Total Pages Crawled"}),(0,O.jsx)("div",{className:"pages-crawled-count",children:e.pages_crawled}),"IN_PROGRESS"===e.crawl_status&&(0,O.jsx)(kr,{sx:{width:"50%",marginLeft:"25%",marginTop:"25px",marginBottom:"25px"},children:(0,O.jsx)(Ev,{})}),"CRAWL_COMPLETE"===e.crawl_status&&(0,O.jsx)("hr",{className:"success_bar"}),"CRAWL_COMPLETE"!==e.crawl_status&&"IN_PROGRESS"!==e.crawl_status&&"Stopping Crawl"!==e.crawl_status&&"Crawl Stopped"!==e.crawl_status&&(0,O.jsx)("hr",{className:"wait_bar"}),("Stopping Crawl"===e.crawl_status||"Crawl Stopped"===e.crawl_status)&&(0,O.jsx)("hr",{className:"stop_bar"}),(0,O.jsx)("div",{className:"padding-bottom--25 mar-top--35",children:(0,O.jsxs)(uh,{direction:"row",justifyContent:"center",spacing:2,children:[(0,O.jsx)(El,{variant:"contained",color:"warning",size:"large",disabled:r,onClick:u,children:"Re-Crawl"}),(0,O.jsx)(El,{variant:"contained",color:"warning",size:"large",disabled:a,onClick:function(){console.log("About to stop crawl"),o(!1),i(!0);const t={...e,crawl_status:"Stopping Crawl"};n(t);var r=new FormData;let a={func_to_call:"stop_crawl"};for(let e in a)r.append(e,a[e]);console.debug("about to stop crawl"),fetch(s+"stopcrawl",{method:"POST",body:r}).then((e=>e.json())).then((t=>{console.log("Crawl stopped",t);const r={...e,crawl_status:"Crawl Stopped"};n(r)})).catch((e=>{console.log("Error while stopping Crawl",e),o(!0),i(!1)}))},children:"Stop Crawl"})]})})]})]})},Pv=(0,t.createContext)(null),Zv=()=>{const e=(0,t.useContext)(Pv);if(void 0===e)throw new Error("useAPIKeyState must be used within the APIKey Provider");return e},Ov=e=>{let{children:n}=e;const[r,o]=(0,t.useState)(null),[a,i]=(0,t.useState)(null),l=rt().apiUrl;return(0,t.useEffect)((()=>{console.debug("About to fetch Site Id & Write API_key"),fetch(l+"expertrec_siteid_writeapikey").then((e=>e.json())).then((e=>{console.debug("Sucessfully fetched Site Id & Write API_key",e),o(e.site_id),i(e.write_api_key)})).catch((e=>console.error("Error while fetching Site Id & Write API_key",e)))}),[]),(0,O.jsx)(Pv.Provider,{value:{apiKey:r,secretKey:a},children:n})},Rv=[{id:0,icon:(0,O.jsx)(Gu,{}),title:"Already Installed",description:"Try our website search, click for assistance",link:"https://calendly.com/melchi-expertrec/instant-help",button:"Need Help?"},{id:1,icon:(0,O.jsx)(Wu,{}),title:"Customize",description:"Customize the default theme using the search designer",link:"https://cse.expertrec.com/ecom/ui-customization/advanced/custom-css-editor",button:"Search Designer"},{id:2,icon:(0,O.jsx)(Xu,{}),title:"API",description:"Build your own UI using Search API",link:"https://cse.expertrec.com/ecom/search-api/api-info",button:"Search API"},{id:3,icon:(0,O.jsx)(Uu,{}),title:"Let us do it for you",description:"We customize your UI as per your needs",link:"https://calendly.com/melchi-expertrec/instant-help",button:"Contact Us"}],Mv=[{id:0,icon:(0,O.jsx)(Gu,{}),title:"Already Installed",description:"Try our website search, click for assistance",link:"https://calendly.com/melchi-expertrec/instant-help",button:"Need Help?"},{id:1,icon:(0,O.jsx)(Wu,{}),title:"Customize",description:"Customize the default theme using the search designer",link:"https://cse.expertrec.com/csedashboard/looknfeel/css-editor",button:"Search Designer"},{id:2,icon:(0,O.jsx)(Xu,{}),title:"API",description:"Build your own UI using Search API",link:"https://cse.expertrec.com/csedashboard/api-info",button:"Search API"},{id:3,icon:(0,O.jsx)(Uu,{}),title:"Let us do it for you",description:"We customize your UI as per your needs",link:"https://calendly.com/melchi-expertrec/instant-help",button:"Contact Us"}],Nv=()=>(0,O.jsxs)("div",{className:"InfoWidget_container",children:[(0,O.jsxs)("div",{className:"InfoWidget_header",children:[(0,O.jsx)("div",{className:"InfoWidget_header_text",children:"Ready To Use"}),(0,O.jsx)("div",{className:"InfoWidget_header_text",children:"Create Your Own UI"})]}),(0,O.jsx)("div",{className:"InfoWidget_body",children:("crawl"===Of()?Mv:Rv).map((e=>(0,O.jsxs)("div",{className:"InfoWidget_body_item padding-bottom--25",children:[(0,O.jsx)("div",{className:"InfoWidget_body_item_icon",children:e.icon}),(0,O.jsx)("div",{className:"InfoWidget_body_item_header",children:e.title}),(0,O.jsx)("div",{className:"InfoWidget_body_item_text",children:e.description}),(0,O.jsx)("div",{className:"InfoWidget_body_item_button",children:(0,O.jsx)("a",{href:e.link,target:"blank",rel:"noreferrer",children:(0,O.jsx)(El,{variant:"contained",children:e.button})})})]},e.id)))})]}),Tv={theme:{icon:(0,O.jsx)(Qu,{}),title:"Select Your Theme",description:"Choose the theme which suits your website",link:"https://cse.expertrec.com/ecom/ui-customization/theme"},facets:{icon:(0,O.jsx)(Vu,{}),title:"Customize your filters",description:"Control the search results",link:"https://cse.expertrec.com/ecom/ui-customization/facets"},analytics:{icon:(0,O.jsx)(Fu,{}),title:"Analytics",description:"Get insights on your search",link:"https://cse.expertrec.com/ecom/analytics"},searchSettings:[{id:0,icon:(0,O.jsx)($u,{}),title:"Search Weights",description:"Configure the order in which the search attempts to query each document.",link:"https://cse.expertrec.com/ecom/search-settings/weights"},{id:1,icon:(0,O.jsx)(Yu,{}),title:"Synonyms",description:"Bring the same results for the words with similar meaning.",link:"https://cse.expertrec.com/ecom/search-settings/synonyms"},{id:2,icon:(0,O.jsx)(Ku,{}),title:"Search Redirects",description:"While search, if given query matches, it will be redirected to respective url",link:"https://cse.expertrec.com/ecom/search-settings/search-redirects"}],merchandising:[{id:0,icon:(0,O.jsx)(ed,{}),title:"Visual Ordering",description:"Search Results by New Documents, Pin Specific documents on top",link:"https://cse.expertrec.com/ecom/merchandise/pin-slot/table"},{id:1,icon:(0,O.jsx)(zu,{}),title:"Promotional Banner",description:"Banner allow you to promote certain products based on configured terms",link:"https://cse.expertrec.com/ecom/merchandise/promotional-banner"},{id:2,icon:(0,O.jsx)(Iu,{}),title:"Boosting Rules",description:"Promote or demote results based on selected fields and matching criteria",link:"https://cse.expertrec.com/ecom/merchandise/boost-fields"}],aiFeatures:[{id:0,icon:(0,O.jsx)(Hu,{}),title:"Semantic Search",description:"Intelligent Results Filtering",link:"https://cloudinfra.freshdesk.com/support/tickets/new"},{id:1,icon:(0,O.jsx)(Lu,{}),title:"Personalize",description:"Promote search results based on user behavior",link:"https://cloudinfra.freshdesk.com/support/tickets/new"},{id:2,icon:(0,O.jsx)(Du,{}),title:"Click Based Ranking",description:"Promote Search results based on all users behavior",link:"https://cloudinfra.freshdesk.com/support/tickets/new"}]},zv={theme:{icon:(0,O.jsx)(Qu,{}),title:"Select Your Theme",description:"Choose the theme which suits your website",link:"https://cse.expertrec.com/csedashboard/looknfeel/basic"},facets:{icon:(0,O.jsx)(Vu,{}),title:"Customize your filters",description:"Control the search results",link:"https://cse.expertrec.com/csedashboard/config/facets"},analytics:{icon:(0,O.jsx)(Fu,{}),title:"Analytics",description:"Get insights on your search",link:"https://cse.expertrec.com/csedashboard/analytics/search-analytics"},searchSettings:[{id:0,icon:(0,O.jsx)($u,{}),title:"Search Weights",description:"Configure the order in which the search attempts to query each document",link:"https://cse.expertrec.com/csedashboard/searchconfig/weights"},{id:1,icon:(0,O.jsx)(Yu,{}),title:"Synonyms",description:"Bring the same results for the words with similar meaning",link:"https://cse.expertrec.com/csedashboard/searchconfig/synonyms"}],merchandising:[{id:0,icon:(0,O.jsx)(ed,{}),title:"Visual Ordering",description:"Search Results by New Documents, Pin Specific documents on top",link:"https://cse.expertrec.com/csedashboard/merchandise/pinslot/table"},{id:1,icon:(0,O.jsx)(Iu,{}),title:"Boosting Rules",description:"Promote or demote results based on selected fields and matching criteria",link:"https://cse.expertrec.com/csedashboard/merchandise/boostFields"}],aiFeatures:[{id:0,icon:(0,O.jsx)(Hu,{}),title:"Semantic Search",description:"Intelligent Results Filtering",link:"https://cloudinfra.freshdesk.com/support/tickets/new"},{id:1,icon:(0,O.jsx)(Lu,{}),title:"Personalize",description:"Promote search results based on user behavior",link:"https://cloudinfra.freshdesk.com/support/tickets/new"},{id:2,icon:(0,O.jsx)(Du,{}),title:"Click Based Ranking",description:"Promote Search results based on all users behavior",link:"https://cloudinfra.freshdesk.com/support/tickets/new"}]};const Lv=function(e){const t=Zv(),n=Of(),r=`https://cse-demo.expertrec.com/demo/gcs.html?mid=${t.apiKey}&flush=true&q=*`,o=`https://cse-demo.expertrec.com/demo/gcs.html?mid=${t.apiKey}&q=*`,a="db"===n?Tv.analytics:zv.analytics;return(0,O.jsxs)(O.Fragment,{children:[(0,O.jsxs)("div",{className:"search_preview",children:[(0,O.jsxs)("div",{className:"d-flex align-center",children:[(0,O.jsx)("div",{className:"search_preview_icon",children:(0,O.jsx)(qu,{})}),(0,O.jsxs)("div",{className:"search_preview_text",children:["Expertrec Search Live on ",(0,O.jsx)("a",{href:window.location.origin,rel:"nofollow noreferrer",target:"_blank",children:window.location.host})]})]}),(0,O.jsx)("div",{className:"search_preview_link",children:(0,O.jsx)(El,{variant:"contained",color:"warning",size:"small",onClick:()=>{console.log("indexingStatus",e.indexingStatus),"Completed"===e.indexingStatus?window.open(o,"_blank"):window.open(r,"_blank")},children:"Search Preview"})})]}),(0,O.jsxs)("div",{className:"indexing",children:[(0,O.jsxs)("div",{className:"indexing_container width-indexing",children:["db"===n&&(0,O.jsx)(lv,{handleIndexingStatus:e.handleIndexingStatus}),"crawl"===n&&(0,O.jsx)(_v,{})]}),(0,O.jsxs)("div",{className:"indexing_container_second_warpper",children:[(0,O.jsx)("div",{className:"indexing_container",children:(0,O.jsx)(Ff,{})}),(0,O.jsxs)("div",{className:"indexing_container",children:[(0,O.jsx)("div",{className:"indexing_container_header",children:a.title}),(0,O.jsxs)("div",{className:"indexing_container_content",children:[(0,O.jsx)("div",{className:"analytics-icon",children:a.icon}),(0,O.jsx)("p",{className:"analytics-desc",children:a.description}),(0,O.jsx)("a",{href:a.link,target:"blank",rel:"noreferrer",className:"feature-link analytics-link",children:"Take me there"})]})]})]})]}),(0,O.jsx)("div",{className:"info_widget",children:(0,O.jsx)(Nv,{})})]})};function Av(e){return(0,ve.Z)("MuiMenuItem",e)}const Iv=(0,ne.Z)("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Fv=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Dv=(0,v.ZP)(ke,{shouldForwardProp:e=>(0,v.FO)(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((e=>{let{theme:t,ownerState:n}=e;return(0,i.Z)({},t.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!n.disableGutters&&{paddingLeft:16,paddingRight:16},n.divider&&{borderBottom:`1px solid ${(t.vars||t).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Iv.selected}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:(0,Pa.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity),[`&.${Iv.focusVisible}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.focusOpacity}))`:(0,Pa.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},[`&.${Iv.selected}:hover`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:(0,Pa.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:(0,Pa.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity)}},[`&.${Iv.focusVisible}`]:{backgroundColor:(t.vars||t).palette.action.focus},[`&.${Iv.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity},[`& + .${Lp.root}`]:{marginTop:t.spacing(1),marginBottom:t.spacing(1)},[`& + .${Lp.inset}`]:{marginLeft:52},[`& .${Cf.root}`]:{marginTop:0,marginBottom:0},[`& .${Cf.inset}`]:{paddingLeft:36},[`& .${bf.root}`]:{minWidth:36}},!n.dense&&{[t.breakpoints.up("sm")]:{minHeight:"auto"}},n.dense&&(0,i.Z)({minHeight:32,paddingTop:4,paddingBottom:4},t.typography.body2,{[`& .${bf.root} svg`]:{fontSize:"1.25rem"}}))})),Bv=t.forwardRef((function(e,n){const r=(0,b.Z)({props:e,name:"MuiMenuItem"}),{autoFocus:o=!1,component:c="li",dense:u=!1,divider:d=!1,disableGutters:p=!1,focusVisibleClassName:f,role:h="menuitem",tabIndex:m,className:g}=r,v=(0,a.Z)(r,Fv),y=t.useContext(ha),x=t.useMemo((()=>({dense:u||y.dense||!1,disableGutters:p})),[y.dense,u,p]),w=t.useRef(null);(0,P.Z)((()=>{o&&w.current&&w.current.focus()}),[o]);const S=(0,i.Z)({},r,{dense:x.dense,divider:d,disableGutters:p}),k=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:a,classes:l}=e,c={root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",a&&"selected"]},u=(0,s.Z)(c,Av,l);return(0,i.Z)({},l,u)})(r),C=(0,L.Z)(w,n);let j;return r.disabled||(j=void 0!==m?m:-1),(0,O.jsx)(ha.Provider,{value:x,children:(0,O.jsx)(Dv,(0,i.Z)({ref:C,role:h,tabIndex:j,component:c,focusVisibleClassName:(0,l.Z)(k.focusVisible,f),className:(0,l.Z)(k.root,g)},v,{ownerState:S,classes:k}))})})),$v=Bv;var Wv=n(3505);const Uv=()=>{const e=rt(),n=e.apiUrl,[r,o]=(0,t.useState)(""),[a,i]=(0,t.useState)(""),[l,s]=(0,t.useState)(""),[c,u]=(0,t.useState)(""),[d,p]=(0,t.useState)(""),[f,h]=(0,t.useState)(!1),[m,g]=(0,t.useState)(!1),{enqueueSnackbar:v}=Vn();(0,t.useEffect)((()=>{fetch(n+"get_layout").then((e=>e.json())).then((e=>{console.debug("Successfully fetched search page info",e),o(e.template),i(e.search_path),s(e.query_parameter),u(e.search_page_title)})).catch((e=>console.error("Error while fetching search page info",e)))}),[]),(0,t.useEffect)((()=>{console.log("searchPath in useEffect",a),console.log("queryParameter in useEffect",l);let t=y(a),n=l.replace(/\s+/g,""),r=`${e.baseUrl}/${t}/?${n}=*`;p(r)}),[a,l]);const b=e=>/[!@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?`~]+/.test(e),y=e=>e.replace(/\s+/g,"").replace(/^\/+/g,"").replace(/\.*\/+$/g,"");return""===r?(0,O.jsx)("div",{className:"show-loading-center",children:(0,O.jsx)(Fr,{})}):(0,O.jsx)("div",{id:"search-page",children:(0,O.jsxs)("div",{className:"search-page-info",children:[(0,O.jsx)(kr,{sx:{minWidth:120},children:(0,O.jsxs)(ia,{fullWidth:!0,children:[(0,O.jsx)(ea,{id:"search-page-select-label",children:"Choose Layout"}),(0,O.jsxs)(cl,{labelId:"search-page-select-label",id:"search-page-select",value:r,label:"Choose layout",onChange:e=>{console.log(e.target.value),o(e.target.value)},children:[(0,O.jsx)($v,{value:"overlay",id:"exp-overlay",children:"Overlay"}),(0,O.jsx)($v,{value:"separate",id:"exp-separate",children:"Search results on a different page"})]})]})}),"separate"===r?(0,O.jsxs)("div",{children:[(0,O.jsxs)("div",{className:"search-page-menu-info",children:[(0,O.jsx)(qu,{className:"search-page-menu-info-icon"}),"Search results will appear on a different page, configured under the Search result path."]}),(0,O.jsxs)("div",{className:"search-page-text-fields-wrapper",children:[(0,O.jsx)(ml,{label:"Search page title",id:"exp-search-page-title",value:c,variant:"standard",error:!c,onChange:e=>{u(e.target.value)},required:!0}),(0,O.jsx)(ml,{label:"Search result path",id:"exp-search-page-path",value:a,variant:"standard",error:!a,onChange:e=>{i(e.target.value)},required:!0}),(0,O.jsx)(ml,{label:"Query parameter",id:"exp-search-page-query-parameter",value:l,variant:"standard",error:!l||b(l),onChange:e=>{s(e.target.value)},required:!0}),(0,O.jsxs)("div",{className:"search-page-url",children:[(0,O.jsx)("b",{children:"Note:"})," Results will be shown on:\xa0",(0,O.jsx)("a",{id:"serach-result-url",href:d,target:"_blank",rel:"noreferrer",children:d})]})]})]}):(0,O.jsxs)("div",{className:"search-page-menu-info",children:[(0,O.jsx)(qu,{className:"search-page-menu-info-icon"}),"The Search results will be displayed in a full-screen overlay popup on the same page."]}),(0,O.jsx)(rd,{id:"search-page-update",variant:"contained",color:"warning",size:"large",onClick:function(){if(b(l))return void v("Query parameter cannot contain special characters",{variant:"error"});if("separate"===r&&(!l||!a||!c))return void v("Fields cannot be empty",{variant:"error"});h(!0),g(!0);const e={search_path:y(a),search_page_title:c.trim(),query_parameter:l.replace(/\s+/g,""),template:r};console.log("createPageData before sendind to php",e),fetch(n+"update_layout",{method:"POST",body:JSON.stringify(e)}).then((e=>e.json())).then((e=>{console.debug("Updated Page layout successfully",e),v("Updated search page details successfully",{variant:"success"}),h(!1),g(!1),o(e.template),i(e.search_path),s(e.query_parameter),u(e.search_page_title)})).catch((e=>{console.debug("Error while updating Page layout",e),v("Error while updating search page details",{variant:"error"})}))},disabled:f,loadingPage:m,buttonText:"Update",startIcon:(0,O.jsx)(Wv.Z,{}),marginTop:"50px"})]})})},Vv=()=>{const[e,n]=(0,t.useState)(),[r,o]=(0,t.useState)(!0),{enqueueSnackbar:a}=Vn(),i=rt().apiUrl;(0,t.useEffect)((()=>{fetch(i+"expertrec_hook_existing_boxstatus").then((e=>e.json())).then((e=>{console.debug("Successfully fetched search bar options",e),e.hook?n("default"):n("install-search-bar"),o(!1)})).catch((e=>console.error("Error while fetching search bar options",e)))}),[]);const l=e=>{o(!0),n(e.target.id),function(e){console.debug("Update search bar option post API call");var t=!0;"install-search-bar"===e&&(t=!1);var n=new FormData;n.append("data[hook_on_existing_input_box]",t),n.append("data[org_status]","NA"),n.append("update_type","install_mode"),fetch(i+"expertrec_update_config",{method:"POST",body:n}).then((e=>e.json())).then((e=>{console.debug("Updated search bar options successfully",e),a("Updated Search Bar option successfully",{variant:"success"}),o(!1)})).catch((e=>{console.debug("Error while updating search bar options",e),a("Failed to update Search Bar option",{variant:"error"})}))}(e.target.id)};return(0,O.jsxs)(O.Fragment,{children:[(0,O.jsxs)("div",{className:"field-header",children:[(0,O.jsx)("div",{className:"search_preview_icon",children:(0,O.jsx)(qu,{})}),(0,O.jsxs)("div",{className:"field-text-Meta",children:["To enable Voice Search in your search bar, please contact the support team at ",(0,O.jsx)("a",{href:"mailto:[email protected]",children:"[email protected]"})]})]}),(0,O.jsx)("div",{className:"configurations",children:(0,O.jsxs)("div",{className:"configurations_widget configurations_widget_width",children:[(0,O.jsx)("div",{className:"configurations_widget_header",children:(0,O.jsx)("h2",{children:"Search Bar Options"})}),(0,O.jsx)("div",{className:"configurations_widget_container",children:r?(0,O.jsx)("div",{className:"show-loading-configurations",children:(0,O.jsx)(Fr,{})}):(0,O.jsxs)(O.Fragment,{children:[(0,O.jsxs)("div",{className:"configurations_widget_container_div",children:[(0,O.jsx)("input",{type:"radio",className:"configurations_widget_input",id:"default",name:"searchHook",value:"default",checked:"default"===e,onChange:l}),(0,O.jsxs)("label",{className:"configurations_widget_label",htmlFor:"default",id:"default-label",children:[(0,O.jsx)("h2",{children:"Use the existing Search Bar"}),(0,O.jsx)("p",{children:"Put a faster, smarter search engine behind your search bar. Keep your Wordpress theme's search bar and use install-search-bar dropdown results"})]})]}),(0,O.jsxs)("div",{className:"configurations_widget_container_div",children:[(0,O.jsx)("input",{type:"radio",className:"configurations_widget_input",id:"install-search-bar",name:"searchHook",value:"install-search-bar",checked:"install-search-bar"===e,onChange:l}),(0,O.jsxs)("label",{className:"configurations_widget_label",htmlFor:"install-search-bar",id:"install-search-bar-label",children:[(0,O.jsx)("h2",{children:"Install New Search Bar"}),(0,O.jsx)("p",{children:"Customize your search result navigation, layout, styles, and text. Enjoy your new powerful accessibility - conscious and mobile optimized search."})]})]})]})})]})})]})},Hv=e=>(0,O.jsx)("div",{className:"configurations",children:(0,O.jsxs)("div",{className:"configurations_widget configurations_widget_features_width",children:[(0,O.jsx)("div",{className:"configurations_widget_header",children:(0,O.jsx)("h2",{children:e.data.title})}),(0,O.jsxs)("div",{children:[(0,O.jsx)("div",{className:"configurations_widget_features_icon",children:e.data.icon}),(0,O.jsx)("p",{className:"configurations_widget_features_desc",children:e.data.description}),(0,O.jsx)("a",{href:e.data.link,target:"blank",rel:"noreferrer",className:"feature-link",children:"Take me there"})]})]})});var qv=n(8029),Kv=n.n(qv);const Gv=()=>{const{enqueueSnackbar:e}=Vn(),t=Of();return(0,O.jsxs)("div",{id:"exp-shortcode",children:[(0,O.jsx)("h2",{children:"Place the following Shortcode where you want the ExpertRec Search Bar"}),(0,O.jsxs)("div",{id:"exp-shortcode-code",children:[(0,O.jsx)("input",{type:"text",value:"[expertrec_search_bar]",readOnly:!0}),(0,O.jsx)(Kv(),{text:"[expertrec_search_bar]",onCopy:()=>{e("Shortcode copied to clipboard!")},style:{cursor:"pointer"},children:(0,O.jsx)(ep,{})})]}),(0,O.jsxs)("div",{id:"exp-shortcode-info",children:[(0,O.jsxs)("p",{style:{fontSize:"16px"},children:[(0,O.jsx)("b",{children:" Note: "}),"Customize this search box using the CSS below"]}),(0,O.jsxs)("ul",{id:"exp-shortcode-info-list",children:["db"===t&&(0,O.jsx)("li",{className:"exp-shortcode-info-selector",children:".er_shortcode .expertrec_search_box_container"}),(0,O.jsx)("li",{className:"exp-shortcode-info-selector",children:".er_shortcode .expertrec_search_button"}),(0,O.jsx)("li",{className:"exp-shortcode-info-selector",children:".er_shortcode .expertrec_search_input_box"})]})]}),(0,O.jsxs)("div",{id:"exp-shortcode-usage",children:[(0,O.jsx)("h2",{children:"Usage"}),(0,O.jsxs)("div",{id:"exp-shortcode-usage-code-wrapper",children:[(0,O.jsx)("div",{id:"exp-shortcode-usage-code",children:(0,O.jsxs)("code",{children:[".er_shortcode .expertrec_search_input_box { ",(0,O.jsx)("br",{}),"\xa0\xa0\xa0\xa0background-color: green;","crawl"===t&&(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)("br",{}),"\xa0\xa0\xa0\xa0width: 300px;"]}),(0,O.jsx)("br",{}),"\xa0}"]})}),(0,O.jsx)("div",{id:"exp-shortcode-usage-code",children:(0,O.jsxs)("code",{children:[".er_shortcode .expertrec_search_button { ",(0,O.jsx)("br",{}),"\xa0\xa0\xa0\xa0background-color: blue;",(0,O.jsx)("br",{}),"\xa0}"]})}),"db"===t&&(0,O.jsx)("div",{id:"exp-shortcode-usage-code",children:(0,O.jsxs)("code",{children:[".er_shortcode .expertrec_search_box_container { ",(0,O.jsx)("br",{}),"\xa0\xa0\xa0\xa0width: 300px;",(0,O.jsx)("br",{}),"\xa0}"]})})]})]})]})};function Yv(e){const{children:t,value:n,index:r,...o}=e;return(0,O.jsx)("div",{role:"tabpanel",hidden:n!==r,id:`simple-tabpanel-${r}`,"aria-labelledby":`simple-tab-${r}`,...o,children:n===r&&(0,O.jsx)(kr,{sx:{p:3},children:(0,O.jsx)(Nl,{children:t})})})}function Xv(e){return{id:`simple-tab-${e}`,"aria-controls":`simple-tabpanel-${e}`}}const Qv=()=>{const[e,n]=t.useState(0),r=it(),o="db"===Of()?Tv:zv;return(0,O.jsxs)(kr,{sx:{width:"100%"},children:[(0,O.jsx)(kr,{sx:{borderBottom:1,borderColor:"divider"},children:(0,O.jsxs)(Ue,{value:e,onChange:(e,t)=>{n(t)},"aria-label":"basic tabs example",children:[(0,O.jsx)(Xe,{label:"Search Bar",...Xv(0)}),(0,O.jsx)(Xe,{label:"Shortcode",...Xv(1)}),(0,O.jsx)(Xe,{label:"Layout",...Xv(2)}),(0,O.jsx)(Xe,{label:"Filters",...Xv(3)}),r&&(0,O.jsx)(Xe,{label:"Theme",...Xv(4)})]})}),(0,O.jsx)(Yv,{value:e,index:0,children:(0,O.jsx)(Vv,{})}),(0,O.jsx)(Yv,{value:e,index:1,children:(0,O.jsx)(Gv,{})}),(0,O.jsx)(Yv,{value:e,index:2,children:(0,O.jsx)(Uv,{})}),(0,O.jsx)(Yv,{value:e,index:3,children:(0,O.jsx)(Hv,{data:o.facets})}),(0,O.jsx)(Yv,{value:e,index:4,children:(0,O.jsx)(Hv,{data:o.theme})})]})},Jv={title:"Frequently Asked Questions",rows:[{title:"Knowledge Base",content:"You can find solutions and answers at the <a href='https://blog.expertrec.com/knowledge-base/?utm_source=wordpress.org' rel='nofollow' target='_blank'>ExpertRec Knowledge Base</a>."},{title:"Can I use this on my Woocommerce store?",content:"Yes, ExpertRec site search does support Woocommerce search. The steps for installation are exactly the same. The search bar will intelligently detect Woocommerce and make the neccessary changes to get a better search experience suited to eCommerce."},{title:"What is my API Key?",content:"A common mistake is to think that your API key is the same as your email ID or web URL. API key is a unique identifier that is used to authenticate your search requests. You can find your API key <a href='https://blog.expertrec.com/how-to-find-your-api-key/?utm_source=wordpress.org' rel='nofollow' target='_blank'>here</a>."},{title:"Why is the search bar not appearing?",content:"<ol><li>Have you activated the Site Search plugin?</li><li>Is your API Key correct? Go to API menu.</li><li>Are you on a custom theme? Some themes may not have a search by default or may interfere with the plugin. In this case you may have to add code manually from <a href='https://cse.expertrec.com/login' rel='nofollow' target='_blank'>here</a>.</li><li><a href='https://cloudinfra.freshdesk.com/support/tickets/new' rel='nofollow' target='_blank'>Contact Support</a></li></ol>"},{title:"Does the search bar support live search / ajax search?",content:"Yes, the ExpertRec site search plugin is a live search plugin and it will support AJAX search."},{title:"Does it support voice search?",content:"Yes, the ExpertRec site search plugin is a live search plugin and it will support AJAX search."},{title:"Can I search multiple websites or multiple subdomains using this plugin?",content:"Yes, you can do both. Using this plugin your search bar will give results from both your main domain and all subdomains. You can also selectively choose which of your subdomains should be included in the search results. If you wish to search a completely separate domain, then this can also be done by adding the new domain to the list of URLs to crawl."},{title:"Is there any addtional charges for searching multiple URLs?",content:"No, all charges are based on the total number of pages in the search index. There is no limit on the number of domains that you can add."},{title:"Didn't find the answer you were looking for?",content:"<a href='https://cloudinfra.freshdesk.com/support/tickets/new' target='_blank'>Raise a support ticket</a> or send us an email to <a href='mailto:[email protected]'>[email protected]</a>"}]};var eb=n(2007),tb=n.n(eb);function nb(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function rb(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ob(e,t,n){return t&&rb(e.prototype,t),n&&rb(e,n),e}function ab(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ib(){return(ib=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function lb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function sb(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ub(e,t)}function cb(e){return(cb=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ub(e,t){return(ub=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function db(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function pb(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=cb(e);if(t){var o=cb(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?db(e):t}(this,n)}}var fb={return:13,arrowLeft:37,arrowUp:38,arrowRight:39,arrowDown:40,space:32};fb.keyCodes=Object.keys(fb).reduce((function(e,t){return e[fb[t]]=t,e}),{});var hb={"faq-row-wrapper":"styles_faq-row-wrapper__3vA1D","faq-row":"styles_faq-row__2YF3c","row-body":"styles_row-body__1NvUo","row-title":"styles_row-title__1YiiY","no-tabfocus":"styles_no-tabfocus__1HmyD","row-title-text":"styles_row-title-text__1MuhU","icon-wrapper":"styles_icon-wrapper__2cftw",closed:"styles_closed__39w54","row-content":"styles_row-content__QOGZd",animate:"styles_animate__3ecdr",static:"styles_static__3chYW",expanded:"styles_expanded__3elPy",expanding:"styles_expanding__2OAFB","row-content-text":"styles_row-content-text__2sgAB"};!function(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}(".styles_faq-row-wrapper__3vA1D {\n background-color: var(--faq-bg-color, white); }\n .styles_faq-row-wrapper__3vA1D h2 {\n margin: 0;\n color: var(--title-text-color, black);\n font-size: var(--title-text-size, 30px); }\n .styles_faq-row-wrapper__3vA1D .styles_faq-row__2YF3c {\n display: flex;\n justify-content: space-between;\n padding: 5px 0;\n border-bottom: 1px solid #ccc; }\n .styles_faq-row-wrapper__3vA1D .styles_row-body__1NvUo .styles_faq-row__2YF3c {\n flex-direction: column;\n position: relative; }\n .styles_faq-row-wrapper__3vA1D .styles_row-body__1NvUo .styles_faq-row__2YF3c .styles_row-title__1YiiY {\n padding: 10px 0;\n display: flex;\n justify-content: space-between;\n color: var(--row-title-color, black);\n font-size: var(--row-title-text-size, large);\n cursor: pointer;\n align-items: center; }\n .styles_faq-row-wrapper__3vA1D .styles_row-body__1NvUo .styles_faq-row__2YF3c .styles_row-title__1YiiY.styles_no-tabfocus__1HmyD {\n outline: none; }\n .styles_faq-row-wrapper__3vA1D .styles_row-body__1NvUo .styles_faq-row__2YF3c .styles_row-title__1YiiY .styles_row-title-text__1MuhU {\n padding-right: 3em; }\n .styles_faq-row-wrapper__3vA1D .styles_row-body__1NvUo .styles_faq-row__2YF3c .styles_row-title__1YiiY .styles_icon-wrapper__2cftw {\n max-width: 25px;\n max-height: 25px;\n margin: 0;\n padding: 0;\n color: var(--arrow-color, black);\n transform: rotate(0deg);\n transition: transform var(--transition-duration, 0.3s);\n position: absolute;\n top: 13px;\n right: 12px; }\n .styles_faq-row-wrapper__3vA1D .styles_row-body__1NvUo .styles_faq-row__2YF3c .styles_row-title__1YiiY .styles_icon-wrapper__2cftw svg {\n width: 100%;\n height: 100%; }\n .styles_faq-row-wrapper__3vA1D .styles_row-body__1NvUo .styles_faq-row__2YF3c .styles_row-title__1YiiY .styles_icon-wrapper__2cftw svg {\n fill: var(--arrow-color, black); }\n .styles_faq-row-wrapper__3vA1D .styles_row-body__1NvUo .styles_faq-row__2YF3c .styles_row-title__1YiiY.styles_closed__39w54 + .styles_row-content__QOGZd {\n visibility: hidden; }\n .styles_faq-row-wrapper__3vA1D .styles_row-body__1NvUo .styles_faq-row__2YF3c .styles_row-title__1YiiY.styles_closed__39w54 + .styles_row-content__QOGZd.styles_animate__3ecdr {\n opacity: 0;\n transition: height var(--transition-duration, 0.3s); }\n .styles_faq-row-wrapper__3vA1D .styles_row-body__1NvUo .styles_faq-row__2YF3c .styles_row-title__1YiiY.styles_closed__39w54 + .styles_row-content__QOGZd.styles_static__3chYW {\n display: none; }\n .styles_faq-row-wrapper__3vA1D .styles_row-body__1NvUo .styles_faq-row__2YF3c .styles_row-title__1YiiY.styles_expanded__3elPy + .styles_row-content__QOGZd {\n visibility: visible; }\n .styles_faq-row-wrapper__3vA1D .styles_row-body__1NvUo .styles_faq-row__2YF3c .styles_row-title__1YiiY.styles_expanded__3elPy + .styles_row-content__QOGZd.styles_static__3chYW {\n display: block; }\n .styles_faq-row-wrapper__3vA1D .styles_row-body__1NvUo .styles_faq-row__2YF3c .styles_row-title__1YiiY.styles_expanded__3elPy .styles_icon-wrapper__2cftw {\n transform: rotate(180deg); }\n .styles_faq-row-wrapper__3vA1D .styles_row-body__1NvUo .styles_faq-row__2YF3c .styles_row-title__1YiiY.styles_expanding__2OAFB .styles_icon-wrapper__2cftw {\n transform: rotate(180deg); }\n .styles_faq-row-wrapper__3vA1D .styles_row-body__1NvUo .styles_faq-row__2YF3c .styles_row-content__QOGZd {\n overflow: hidden;\n transition: height var(--transition-duration, 0.3s);\n transition-timing-function: var(--timing-function, ease); }\n .styles_faq-row-wrapper__3vA1D .styles_row-body__1NvUo .styles_faq-row__2YF3c .styles_row-content__QOGZd .styles_row-content-text__2sgAB {\n color: var(--row-content-color, black);\n font-size: var(--row-content-text-size, medium);\n padding: var(--row-content-padding-top, 0) var(--row-content-padding-right, 0) var(--row-content-padding-bottom, 0) var(--row-content-padding-left, 0); }\n");var mb=function(e){sb(r,t.PureComponent);var n=pb(r);function r(){var e;nb(this,r);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return ab(db(e=n.call.apply(n,[this].concat(a))),"state",{isExpanded:!1,ref:t.createRef(),rowRef:t.createRef(),height:0,rowClassName:"closed"}),ab(db(e),"finishTransition",(function(){var t=e.state.isExpanded;e.setState({rowClassName:t?"expanded":"closed"})})),ab(db(e),"toggle",(function(t){e.setState((function(){return{isExpanded:t}}))})),ab(db(e),"expand",(function(){e.setState((function(e){return{isExpanded:!e.isExpanded}}))})),ab(db(e),"keyPress",(function(t){var n=t.keyCode?t.keyCode:t.which;switch(fb.keyCodes[n]){case"space":case"return":t.preventDefault(),t.stopPropagation(),e.expand()}})),ab(db(e),"setHeight",(function(){var t=e.state,n=t.ref,r=t.isExpanded,o=n.current.scrollHeight;e.setState({height:r?o:0})})),e}return ob(r,[{key:"getSnapshotBeforeUpdate",value:function(e,t){var n=t.isExpanded,r=this.state.isExpanded,o=this.props.config,a=(o=void 0===o?{}:o).animate,i=void 0===a||a;return r!==n?{rowClassName:r?i?"expanding":"expanded":i?"closing":"closed"}:null}},{key:"componentDidUpdate",value:function(e,t,n){var r=this.props.config,o=(r=void 0===r?{}:r).animate,a=void 0===o||o;null!==n&&this.setState(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?lb(Object(n),!0).forEach((function(t){ab(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},n),a?this.setHeight:void 0)}},{key:"componentDidMount",value:function(){var e=this,t=this.state.rowRef;if(this.props.openOnload&&this.expand(),this.props.getRowOptions){var n={expand:function(){e.toggle(!0)},close:function(){e.toggle(!1)},scrollIntoView:function(e){e?t.current.scrollIntoView(e):t.current.scrollIntoView()}};this.props.getRowOptions(n)}}},{key:"render",value:function(){var e=this.props,n=e.data,r=n.title,o=n.content,a=e.config,i=(a=void 0===a?{}:a).animate,l=void 0===i||i,s=a.arrowIcon,c=a.expandIcon,u=a.collapseIcon,d=a.tabFocus,p=void 0!==d&&d,f=this.state,h=f.isExpanded,m=f.ref,g=f.height,v=f.rowClassName,b=f.rowRef,y={onClick:this.expand,role:"button","aria-expanded":h,"aria-controls":"react-faq-rowcontent-".concat(this.props.rowid),onKeyPress:this.keyPress,onKeyDown:this.keyPress};p&&(y.tabIndex=0);var x={role:"region",id:"react-faq-rowcontent-".concat(this.props.rowid),"aria-expanded":h,"aria-hidden":!h,onTransitionEnd:this.finishTransition};l&&(x.style={height:g});var w,S=["row-title",v,hb["row-title"],hb[v],p?"":hb["no-tabfocus"]].filter(Boolean).join(" ");w=c&&u?h?u:c:s||t.createElement("div",{dangerouslySetInnerHTML:{__html:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="black" width="36px" height="36px"><path d="M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z"/><path d="M0 0h24v24H0V0z" fill="none"/></svg>'},className:"arrow-image ".concat(hb["arrow-image"]),alt:"Expand arrow"});var k=[hb["row-content"],"row-content",l?hb.animate:hb.static].join(" "),C=[hb["row-content-text"],"row-content-text"].join(" "),j=o&&"string"==typeof o?t.createElement("div",{className:C,dangerouslySetInnerHTML:{__html:o}}):t.createElement("div",{className:C},o);return t.createElement("section",{className:"faq-row ".concat(hb["faq-row"]),role:"listitem",ref:b},t.createElement("div",ib({className:S},y),t.createElement("div",{className:"row-title-text ".concat(hb["row-title-text"]),id:"react-faq-rowtitle-".concat(this.props.rowid)},r),t.createElement("span",{className:"icon-wrapper ".concat(hb["icon-wrapper"]),"aria-hidden":"true"},w)),t.createElement("div",ib({className:k},x,{ref:m}),j))}}]),r}();ab(mb,"propTypes",{config:tb().object,data:tb().object,rowid:tb().number,getRowOptions:tb().func,openOnload:tb().bool});var gb=function(e){sb(r,t.PureComponent);var n=pb(r);function r(){var e;nb(this,r);for(var t=arguments.length,o=new Array(t),a=0;a<t;a++)o[a]=arguments[a];return ab(db(e=n.call.apply(n,[this].concat(o))),"state",{rowsOption:[]}),e}return ob(r,[{key:"componentDidMount",value:function(){this.props.getRowOptions&&this.props.getRowOptions(this.state.rowsOption)}},{key:"render",value:function(){var e=this,n=this.props.data||{},r=n.title,o=n.rows,a=void 0===o?[]:o,i=this.props,l=i.styles,s=void 0===l?{}:l,c=i.config,u=((c=void 0===c?{}:c).animate,c.openOnload),d={"--faq-bg-color":s.bgColor,"--title-text-color":s.titleTextColor,"--title-text-size":s.titleTextSize,"--row-title-color":s.rowTitleColor,"--row-title-text-size":s.rowTitleTextSize,"--row-content-color":s.rowContentColor,"--row-content-text-size":s.rowContentTextSize,"--row-content-padding-top":s.rowContentPaddingTop,"--row-content-padding-bottom":s.rowContentPaddingBottom,"--row-content-padding-right":s.rowContentPaddingRight,"--row-content-padding-left":s.rowContentPaddingLeft,"--arrow-color":s.arrowColor,"--transition-duration":s.transitionDuration,"--timing-function":s.timingFunc},p="faq-row-wrapper ".concat(hb["faq-row-wrapper"]),f="faq-title ".concat(hb["faq-row"]),h="faq-body ".concat(hb["row-body"]);return t.createElement("div",{className:p,style:d},r?t.createElement("section",{className:f},t.createElement("h2",null,r)):null,a.length?t.createElement("section",{className:h,role:"list"},a.map((function(n,r){return t.createElement(mb,{openOnload:u===r,data:n,key:r,rowid:r+1,config:e.props.config,getRowOptions:function(t){return e.state.rowsOption[r]=t}})}))):null)}}]),r}();ab(gb,"propTypes",{data:tb().object,styles:tb().object,config:tb().object,getRowOptions:tb().func});const vb=gb,bb=()=>(0,O.jsx)("div",{className:"help",children:(0,O.jsx)(vb,{data:Jv})});var yb=n(7250);const xb=t.createContext();function wb(e){return(0,ve.Z)("MuiGrid",e)}const Sb=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],kb=(0,ne.Z)("MuiGrid",["root","container","item","zeroMinWidth",...[0,1,2,3,4,5,6,7,8,9,10].map((e=>`spacing-xs-${e}`)),...["column-reverse","column","row-reverse","row"].map((e=>`direction-xs-${e}`)),...["nowrap","wrap-reverse","wrap"].map((e=>`wrap-xs-${e}`)),...Sb.map((e=>`grid-xs-${e}`)),...Sb.map((e=>`grid-sm-${e}`)),...Sb.map((e=>`grid-md-${e}`)),...Sb.map((e=>`grid-lg-${e}`)),...Sb.map((e=>`grid-xl-${e}`))]),Cb=kb,jb=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function Eb(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function _b(e){let{breakpoints:t,values:n}=e,r="";Object.keys(n).forEach((e=>{""===r&&0!==n[e]&&(r=e)}));const o=Object.keys(t).sort(((e,n)=>t[e]-t[n]));return o.slice(0,o.indexOf(r))}const Pb=(0,v.ZP)("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{container:r,direction:o,item:a,spacing:i,wrap:l,zeroMinWidth:s,breakpoints:c}=n;let u=[];r&&(u=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!e||e<=0)return[];if("string"===typeof e&&!Number.isNaN(Number(e))||"number"===typeof e)return[n[`spacing-xs-${String(e)}`]];const r=[];return t.forEach((t=>{const o=e[t];Number(o)>0&&r.push(n[`spacing-${t}-${String(o)}`])})),r}(i,c,t));const d=[];return c.forEach((e=>{const r=n[e];r&&d.push(t[`grid-${e}-${String(r)}`])})),[t.root,r&&t.container,a&&t.item,s&&t.zeroMinWidth,...u,"row"!==o&&t[`direction-xs-${String(o)}`],"wrap"!==l&&t[`wrap-xs-${String(l)}`],...d]}})((e=>{let{ownerState:t}=e;return(0,i.Z)({boxSizing:"border-box"},t.container&&{display:"flex",flexWrap:"wrap",width:"100%"},t.item&&{margin:0},t.zeroMinWidth&&{minWidth:0},"wrap"!==t.wrap&&{flexWrap:t.wrap})}),(function(e){let{theme:t,ownerState:n}=e;const r=(0,eh.P$)({values:n.direction,breakpoints:t.breakpoints.values});return(0,eh.k9)({theme:t},r,(e=>{const t={flexDirection:e};return 0===e.indexOf("column")&&(t[`& > .${Cb.item}`]={maxWidth:"none"}),t}))}),(function(e){let{theme:t,ownerState:n}=e;const{container:r,rowSpacing:o}=n;let a={};if(r&&0!==o){const e=(0,eh.P$)({values:o,breakpoints:t.breakpoints.values});let n;"object"===typeof e&&(n=_b({breakpoints:t.breakpoints.values,values:e})),a=(0,eh.k9)({theme:t},e,((e,r)=>{var o;const a=t.spacing(e);return"0px"!==a?{marginTop:`-${Eb(a)}`,[`& > .${Cb.item}`]:{paddingTop:Eb(a)}}:null!=(o=n)&&o.includes(r)?{}:{marginTop:0,[`& > .${Cb.item}`]:{paddingTop:0}}}))}return a}),(function(e){let{theme:t,ownerState:n}=e;const{container:r,columnSpacing:o}=n;let a={};if(r&&0!==o){const e=(0,eh.P$)({values:o,breakpoints:t.breakpoints.values});let n;"object"===typeof e&&(n=_b({breakpoints:t.breakpoints.values,values:e})),a=(0,eh.k9)({theme:t},e,((e,r)=>{var o;const a=t.spacing(e);return"0px"!==a?{width:`calc(100% + ${Eb(a)})`,marginLeft:`-${Eb(a)}`,[`& > .${Cb.item}`]:{paddingLeft:Eb(a)}}:null!=(o=n)&&o.includes(r)?{}:{width:"100%",marginLeft:0,[`& > .${Cb.item}`]:{paddingLeft:0}}}))}return a}),(function(e){let t,{theme:n,ownerState:r}=e;return n.breakpoints.keys.reduce(((e,o)=>{let a={};if(r[o]&&(t=r[o]),!t)return e;if(!0===t)a={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if("auto"===t)a={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const l=(0,eh.P$)({values:r.columns,breakpoints:n.breakpoints.values}),s="object"===typeof l?l[o]:l;if(void 0===s||null===s)return e;const c=Math.round(t/s*1e8)/1e6+"%";let u={};if(r.container&&r.item&&0!==r.columnSpacing){const e=n.spacing(r.columnSpacing);if("0px"!==e){const t=`calc(${c} + ${Eb(e)})`;u={flexBasis:t,maxWidth:t}}}a=(0,i.Z)({flexBasis:c,flexGrow:0,maxWidth:c},u)}return 0===n.breakpoints.values[o]?Object.assign(e,a):e[n.breakpoints.up(o)]=a,e}),{})}));const Zb=e=>{const{classes:t,container:n,direction:r,item:o,spacing:a,wrap:i,zeroMinWidth:l,breakpoints:c}=e;let u=[];n&&(u=function(e,t){if(!e||e<=0)return[];if("string"===typeof e&&!Number.isNaN(Number(e))||"number"===typeof e)return[`spacing-xs-${String(e)}`];const n=[];return t.forEach((t=>{const r=e[t];if(Number(r)>0){const e=`spacing-${t}-${String(r)}`;n.push(e)}})),n}(a,c));const d=[];c.forEach((t=>{const n=e[t];n&&d.push(`grid-${t}-${String(n)}`)}));const p={root:["root",n&&"container",o&&"item",l&&"zeroMinWidth",...u,"row"!==r&&`direction-xs-${String(r)}`,"wrap"!==i&&`wrap-xs-${String(i)}`,...d]};return(0,s.Z)(p,wb,t)},Ob=t.forwardRef((function(e,n){const r=(0,b.Z)({props:e,name:"MuiGrid"}),{breakpoints:o}=S(),s=br(r),{className:c,columns:u,columnSpacing:d,component:p="div",container:f=!1,direction:h="row",item:m=!1,rowSpacing:g,spacing:v=0,wrap:y="wrap",zeroMinWidth:x=!1}=s,w=(0,a.Z)(s,jb),k=g||v,C=d||v,j=t.useContext(xb),E=f?u||12:j,_={},P=(0,i.Z)({},w);o.keys.forEach((e=>{null!=w[e]&&(_[e]=w[e],delete P[e])}));const Z=(0,i.Z)({},s,{columns:E,container:f,direction:h,item:m,rowSpacing:k,columnSpacing:C,wrap:y,zeroMinWidth:x,spacing:v},_,{breakpoints:o.keys}),R=Zb(Z);return(0,O.jsx)(xb.Provider,{value:E,children:(0,O.jsx)(Pb,(0,i.Z)({ownerState:Z,className:(0,l.Z)(R.root,c),as:p,ref:n},P))})}));const Rb=Ob;function Mb(e){return(0,ve.Z)("MuiCard",e)}(0,ne.Z)("MuiCard",["root"]);const Nb=["className","raised"],Tb=(0,v.ZP)(Ta,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})((()=>({overflow:"hidden"}))),zb=t.forwardRef((function(e,t){const n=(0,b.Z)({props:e,name:"MuiCard"}),{className:r,raised:o=!1}=n,c=(0,a.Z)(n,Nb),u=(0,i.Z)({},n,{raised:o}),d=(e=>{const{classes:t}=e;return(0,s.Z)({root:["root"]},Mb,t)})(u);return(0,O.jsx)(Tb,(0,i.Z)({className:(0,l.Z)(d.root,r),elevation:o?8:void 0,ref:t,ownerState:u},c))})),Lb=zb;function Ab(e){return(0,ve.Z)("MuiCardHeader",e)}const Ib=(0,ne.Z)("MuiCardHeader",["root","avatar","action","content","title","subheader"]),Fb=["action","avatar","className","component","disableTypography","subheader","subheaderTypographyProps","title","titleTypographyProps"],Db=(0,v.ZP)("div",{name:"MuiCardHeader",slot:"Root",overridesResolver:(e,t)=>(0,i.Z)({[`& .${Ib.title}`]:t.title,[`& .${Ib.subheader}`]:t.subheader},t.root)})({display:"flex",alignItems:"center",padding:16}),Bb=(0,v.ZP)("div",{name:"MuiCardHeader",slot:"Avatar",overridesResolver:(e,t)=>t.avatar})({display:"flex",flex:"0 0 auto",marginRight:16}),$b=(0,v.ZP)("div",{name:"MuiCardHeader",slot:"Action",overridesResolver:(e,t)=>t.action})({flex:"0 0 auto",alignSelf:"flex-start",marginTop:-4,marginRight:-8,marginBottom:-4}),Wb=(0,v.ZP)("div",{name:"MuiCardHeader",slot:"Content",overridesResolver:(e,t)=>t.content})({flex:"1 1 auto"}),Ub=t.forwardRef((function(e,t){const n=(0,b.Z)({props:e,name:"MuiCardHeader"}),{action:r,avatar:o,className:c,component:u="div",disableTypography:d=!1,subheader:p,subheaderTypographyProps:f,title:h,titleTypographyProps:m}=n,g=(0,a.Z)(n,Fb),v=(0,i.Z)({},n,{component:u,disableTypography:d}),y=(e=>{const{classes:t}=e;return(0,s.Z)({root:["root"],avatar:["avatar"],action:["action"],content:["content"],title:["title"],subheader:["subheader"]},Ab,t)})(v);let x=h;null==x||x.type===Nl||d||(x=(0,O.jsx)(Nl,(0,i.Z)({variant:o?"body2":"h5",className:y.title,component:"span",display:"block"},m,{children:x})));let w=p;return null==w||w.type===Nl||d||(w=(0,O.jsx)(Nl,(0,i.Z)({variant:o?"body2":"body1",className:y.subheader,color:"text.secondary",component:"span",display:"block"},f,{children:w}))),(0,O.jsxs)(Db,(0,i.Z)({className:(0,l.Z)(y.root,c),as:u,ref:t,ownerState:v},g,{children:[o&&(0,O.jsx)(Bb,{className:y.avatar,ownerState:v,children:o}),(0,O.jsxs)(Wb,{className:y.content,ownerState:v,children:[x,w]}),r&&(0,O.jsx)($b,{className:y.action,ownerState:v,children:r})]}))})),Vb=Ub;function Hb(e){return(0,ve.Z)("PrivateSwitchBase",e)}(0,ne.Z)("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const qb=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],Kb=(0,v.ZP)(ke)((e=>{let{ownerState:t}=e;return(0,i.Z)({padding:9,borderRadius:"50%"},"start"===t.edge&&{marginLeft:"small"===t.size?-3:-12},"end"===t.edge&&{marginRight:"small"===t.size?-3:-12})})),Gb=(0,v.ZP)("input")({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Yb=t.forwardRef((function(e,t){const{autoFocus:n,checked:r,checkedIcon:o,className:c,defaultChecked:u,disabled:d,disableFocusRipple:p=!1,edge:f=!1,icon:h,id:m,inputProps:g,inputRef:v,name:b,onBlur:y,onChange:x,onFocus:w,readOnly:S,required:k=!1,tabIndex:C,type:j,value:E}=e,_=(0,a.Z)(e,qb),[P,Z]=(0,Ui.Z)({controlled:r,default:Boolean(u),name:"SwitchBase",state:"checked"}),R=eo();let M=d;R&&"undefined"===typeof M&&(M=R.disabled);const N="checkbox"===j||"radio"===j,T=(0,i.Z)({},e,{checked:P,disabled:M,disableFocusRipple:p,edge:f}),z=(e=>{const{classes:t,checked:n,disabled:r,edge:o}=e,a={root:["root",n&&"checked",r&&"disabled",o&&`edge${(0,Ve.Z)(o)}`],input:["input"]};return(0,s.Z)(a,Hb,t)})(T);return(0,O.jsxs)(Kb,(0,i.Z)({component:"span",className:(0,l.Z)(z.root,c),centerRipple:!0,focusRipple:!p,disabled:M,tabIndex:null,role:void 0,onFocus:e=>{w&&w(e),R&&R.onFocus&&R.onFocus(e)},onBlur:e=>{y&&y(e),R&&R.onBlur&&R.onBlur(e)},ownerState:T,ref:t},_,{children:[(0,O.jsx)(Gb,(0,i.Z)({autoFocus:n,checked:r,defaultChecked:u,className:z.input,disabled:M,id:N?m:void 0,name:b,onChange:e=>{if(e.nativeEvent.defaultPrevented)return;const t=e.target.checked;Z(t),x&&x(e,t)},readOnly:S,ref:v,required:k,ownerState:T,tabIndex:C,type:j},"checkbox"===j&&void 0===E?{}:{value:E},g)),P?o:h]}))})),Xb=Yb,Qb=(0,N.Z)((0,O.jsx)("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),Jb=(0,N.Z)((0,O.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),ey=(0,N.Z)((0,O.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function ty(e){return(0,ve.Z)("MuiCheckbox",e)}const ny=(0,ne.Z)("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary"]),ry=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],oy=(0,v.ZP)(Xb,{shouldForwardProp:e=>(0,v.FO)(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,"default"!==n.color&&t[`color${(0,Ve.Z)(n.color)}`]]}})((e=>{let{theme:t,ownerState:n}=e;return(0,i.Z)({color:(t.vars||t).palette.text.secondary},!n.disableRipple&&{"&:hover":{backgroundColor:t.vars?`rgba(${"default"===n.color?t.vars.palette.action.activeChannel:t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.hoverOpacity})`:(0,Pa.Fq)("default"===n.color?t.palette.action.active:t.palette[n.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==n.color&&{[`&.${ny.checked}, &.${ny.indeterminate}`]:{color:(t.vars||t).palette[n.color].main},[`&.${ny.disabled}`]:{color:(t.vars||t).palette.action.disabled}})})),ay=(0,O.jsx)(Jb,{}),iy=(0,O.jsx)(Qb,{}),ly=(0,O.jsx)(ey,{}),sy=t.forwardRef((function(e,n){var r,o;const c=(0,b.Z)({props:e,name:"MuiCheckbox"}),{checkedIcon:u=ay,color:d="primary",icon:p=iy,indeterminate:f=!1,indeterminateIcon:h=ly,inputProps:m,size:g="medium",className:v}=c,y=(0,a.Z)(c,ry),x=f?h:p,w=f?h:u,S=(0,i.Z)({},c,{color:d,indeterminate:f,size:g}),k=(e=>{const{classes:t,indeterminate:n,color:r}=e,o={root:["root",n&&"indeterminate",`color${(0,Ve.Z)(r)}`]},a=(0,s.Z)(o,ty,t);return(0,i.Z)({},t,a)})(S);return(0,O.jsx)(oy,(0,i.Z)({type:"checkbox",inputProps:(0,i.Z)({"data-indeterminate":f},m),icon:t.cloneElement(x,{fontSize:null!=(r=x.props.fontSize)?r:g}),checkedIcon:t.cloneElement(w,{fontSize:null!=(o=w.props.fontSize)?o:g}),ownerState:S,ref:n,className:(0,l.Z)(k.root,v)},y,{classes:k}))})),cy=sy;var uy=n(9823);const dy=(0,v.ZP)(Oh)((e=>{let{theme:t}=e;return{"& .MuiDialogContent-root":{padding:t.spacing(2)},"& .MuiDialogActions-root":{padding:t.spacing(1)}}}));function py(e){const{children:t,onClose:n,...r}=e;return(0,O.jsxs)(Xh,{sx:{m:0,p:2},...r,children:[t,n?(0,O.jsx)(qp,{"aria-label":"close",onClick:n,sx:{position:"absolute",right:8,top:8,color:e=>e.palette.grey[500]},children:(0,O.jsx)(uy.Z,{})}):null]})}function fy(e){const[n,r]=(0,t.useState)(!1);(0,t.useEffect)((()=>{e.handleClickOpen?r(!0):r(!1)}),[e.handleClickOpen]);const o=()=>{r(!1),e.onChange(!1)};return(0,O.jsx)("div",{children:(0,O.jsxs)(dy,{onClose:o,"aria-labelledby":"customized-dialog-title",open:n,children:[(0,O.jsx)(py,{id:"customized-dialog-title",onClose:o,children:e.title}),(0,O.jsxs)($h,{dividers:!0,children:[(0,O.jsx)(Nl,{gutterBottom:!0,children:"Selected fields have been successfully updated."}),(0,O.jsx)(Nl,{gutterBottom:!0,children:"Now, you need to initiate the indexing process from the Dashboard page to include the selected fields. Would you like to initiate it now?"}),(0,O.jsx)(Nl,{gutterBottom:!0,children:"Please click 'Yes' to proceed. If you prefer to do it later, click 'No'."})]}),(0,O.jsxs)(zh,{children:[(0,O.jsx)(El,{autoFocus:!0,variant:"contained",color:"success",onClick:()=>{e.handleMenuListState("Dashboard"),e.onChange(!1),r(!1)},id:"field-yes",children:"Yes"}),(0,O.jsx)(El,{variant:"outlined",color:"error",onClick:o,id:"field-no",children:"No"})]})]})})}function hy(e,t){return e.filter((e=>-1===t.indexOf(e)))}function my(e,t){return e.filter((e=>-1!==t.indexOf(e)))}function gy(e){const[n,r]=(0,t.useState)([]),[o,a]=(0,t.useState)([]),[i,l]=(0,t.useState)([]),[s,c]=(0,t.useState)([]),[u,d]=(0,t.useState)(!1),p=my(o,i),f=my(o,s),[h,m]=(0,t.useState)(!0),g=(0,t.useRef)([]),v=(0,t.useRef)(""),b=(0,t.useRef)(""),y=rt().apiUrl;(0,t.useEffect)((()=>{fetch(y+"expertrec_get_product_attribute_to_index").then((e=>e.json())).then((e=>{console.debug("Successfully fetched Product Attribute",e),console.debug("length of Product Attribute",e.length),r(e),c(e.filter((e=>e.selected)).map((e=>e.attribute_name))),l(e.filter((e=>!e.selected)).map((e=>e.attribute_name))),m(!1)})).catch((e=>console.error(e)))}),[]);const x=e=>()=>{const t=o.indexOf(e),n=[...o];-1===t?n.push(e):n.splice(t,1),a(n)},w=e=>my(o,e).length,S=e=>()=>{w(e)===e.length?a(hy(o,e)):a(function(e,t){return[...e,...hy(t,e)]}(o,e))};function k(){console.log("includedProductAttriData",g.current),fetch(y+"expertrec_update_attribute_index",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(g.current)}).then((e=>e.json())).then((e=>{console.log("updated Product Attribute data",e),r(e),c(e.filter((e=>e.selected)).map((e=>e.attribute_name))),l(e.filter((e=>!e.selected)).map((e=>e.attribute_name))),d(!0)})).catch((e=>{console.error("There was a problem with the fetch operation:",e)}))}const C=(e,t,n,r,a)=>(0,O.jsxs)(Lb,{children:[(0,O.jsx)(Vb,{sx:{px:2,py:1},avatar:(0,O.jsx)(cy,{id:`${a}_product_selectAll_checkbox`,onClick:S(t),checked:w(t)===t.length&&0!==t.length,indeterminate:w(t)!==t.length&&0!==w(t),disabled:0===t.length,inputProps:{"aria-label":"all items selected"}}),title:e,subheader:`${w(t)}/${t.length} selected`}),(0,O.jsx)("div",{className:"field_search",children:(0,O.jsx)(ml,{fullWidth:!0,id:`${a}_product_search`,placeholder:"Search",InputProps:{startAdornment:(0,O.jsx)(qp,{children:(0,O.jsx)(yb.Z,{})})},onChange:e=>{r.current=e.target.value,n()}})}),(0,O.jsx)(ya,{sx:{width:300,height:230,bgcolor:"background.paper",overflow:"auto"},dense:!0,component:"div",role:"list",children:t.map((e=>{const t=`transfer-list-all-item-${e}-label`;return(0,O.jsxs)(pf,{role:"listitem",button:!0,onClick:x(e),children:[(0,O.jsx)(Sf,{children:(0,O.jsx)(cy,{checked:-1!==o.indexOf(e),tabIndex:-1,disableRipple:!0,inputProps:{"aria-labelledby":t}})}),(0,O.jsx)(Pf,{id:t,primary:e,className:"field-list-text"})]},e)}))})]});return h?(0,O.jsx)("div",{className:"show-loading-center",children:(0,O.jsx)(Fr,{})}):(0,O.jsx)(O.Fragment,{children:0===n.length?(0,O.jsx)("h2",{children:"No Product Attributes Found"}):(0,O.jsxs)(O.Fragment,{children:[(0,O.jsxs)("div",{className:"field-header",children:[(0,O.jsx)("div",{className:"search_preview_icon",children:(0,O.jsx)(qu,{})}),(0,O.jsx)("div",{className:"field-text-Product",children:"Improve your search experience and filters by selecting Product Attributes for indexing. They'll become searchable fields, making it easier to find products efficiently."})]}),(0,O.jsxs)(Rb,{className:"transfer-list-container-resposive",container:!0,spacing:5,justifyContent:"center",alignItems:"center",children:[(0,O.jsx)(Rb,{className:"transfer-list-resposive",item:!0,children:C("Available Attributes",i,(function(){if(console.log("searchValExcluded",b),""===b.current)return void l(n.filter((e=>!e.selected)).map((e=>e.attribute_name)));const e=Nf(n,!1,b.current,"attribute_name");console.log("filterBySearchExcluded",e),l(e)}),b,"available")}),(0,O.jsx)(Rb,{item:!0,children:(0,O.jsxs)(Rb,{container:!0,direction:"column",alignItems:"center",children:[(0,O.jsx)(El,{sx:{my:.5},variant:"contained",size:"large",color:"warning",onClick:()=>{g.current=s.concat(o),c(s.concat(p)),l(hy(i,p)),a(hy(o,p)),k()},disabled:0===p.length,"aria-label":"move selected right",id:"move-right-button",children:">"}),(0,O.jsx)(El,{sx:{my:.5},variant:"contained",size:"large",color:"warning",onClick:()=>{g.current=hy(s,o),l(i.concat(f)),c(hy(s,f)),a(hy(o,f)),k()},disabled:0===f.length,"aria-label":"move selected left",id:"move-left-button",children:"<"})]})}),(0,O.jsx)(Rb,{className:"transfer-list-resposive",item:!0,children:C("Selected Attributes",s,(function(){if(console.log("searchValIncluded",v),""===v.current)return void c(n.filter((e=>e.selected)).map((e=>e.attribute_name)));const e=Nf(n,!0,v.current,"attribute_name");console.log("filterBySearchIncluded",e),c(e)}),v,"selected")}),(0,O.jsx)(fy,{handleClickOpen:u,title:"Product Attributes Updated",onChange:e=>{d(e)},handleMenuListState:e.handleMenuListState})]})]})})}function vy(e,t){return e.filter((e=>-1===t.indexOf(e)))}function by(e,t){return e.filter((e=>-1!==t.indexOf(e)))}function yy(e){const[n,r]=(0,t.useState)([]),[o,a]=(0,t.useState)([]),[i,l]=(0,t.useState)([]),s=by(n,o),c=by(n,i),[u,d]=(0,t.useState)(!1),[p,f]=(0,t.useState)([]),h=(0,t.useRef)([]),[m,g]=(0,t.useState)(!0),v=(0,t.useRef)(""),b=(0,t.useRef)(""),y=rt().apiUrl;(0,t.useEffect)((()=>{console.debug("About to fetching Meta keys"),fetch(y+"expertrec_get_metakeys_to_index").then((e=>e.json())).then((e=>{console.debug("Successfully fetched Meta keys",e),console.debug("Length of Meta keys",e.length),f(e),h.current=e.filter((e=>e.selected)).map((e=>e.name)),l(e.filter((e=>e.selected)).map((e=>e.name))),a(e.filter((e=>!e.selected)).map((e=>e.name))),g(!1)})).catch((e=>console.error("Error while fetching Meta keys",e)))}),[]);const x=e=>()=>{const t=n.indexOf(e),o=[...n];-1===t?o.push(e):o.splice(t,1),r(o)},w=e=>by(n,e).length,S=e=>()=>{w(e)===e.length?r(vy(n,e)):r(function(e,t){return[...e,...vy(t,e)]}(n,e))};function k(){console.debug("About to updating Meta Keys",h.current),fetch(y+"expertrec_update_metakeys_to_index",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(h.current)}).then((e=>e.json())).then((e=>{console.debug("Sucessfully updated Meta Keys",e),f(e),l(e.filter((e=>e.selected)).map((e=>e.name))),a(e.filter((e=>!e.selected)).map((e=>e.name))),d(!0)})).catch((e=>{console.error("Error while updating Meta Keys",e)}))}const C=(e,t,r,o,a)=>(0,O.jsxs)(Lb,{children:[(0,O.jsx)(Vb,{sx:{px:2,py:1},avatar:(0,O.jsx)(cy,{id:`${a}_meta_selectAll_checkbox`,onClick:S(t),checked:w(t)===t.length&&0!==t.length,indeterminate:w(t)!==t.length&&0!==w(t),disabled:0===t.length,inputProps:{"aria-label":"all items selected"}}),title:e,subheader:`${w(t)}/${t.length} selected`}),(0,O.jsx)("div",{className:"field_search",children:(0,O.jsx)(ml,{fullWidth:!0,id:`${a}_meta_search`,placeholder:"Search",InputProps:{startAdornment:(0,O.jsx)(qp,{children:(0,O.jsx)(yb.Z,{})})},onChange:e=>{o.current=e.target.value,r()}})}),(0,O.jsx)(ya,{sx:{width:300,height:230,bgcolor:"background.paper",overflow:"auto"},dense:!0,component:"div",role:"list",children:t.map((e=>{const t=`transfer-list-all-item-${e}-label`;return(0,O.jsxs)(pf,{role:"listitem",button:!0,onClick:x(e),children:[(0,O.jsx)(Sf,{children:(0,O.jsx)(cy,{checked:-1!==n.indexOf(e),tabIndex:-1,disableRipple:!0,inputProps:{"aria-labelledby":t}})}),(0,O.jsx)(Pf,{id:t,className:"field-list-text",primary:e})]},e)}))})]});return m?(0,O.jsx)("div",{className:"show-loading-center",children:(0,O.jsx)(Fr,{})}):(0,O.jsx)(O.Fragment,{children:0===p.length?(0,O.jsx)("h2",{children:"No MetaData Found"}):(0,O.jsxs)(O.Fragment,{children:[(0,O.jsxs)("div",{className:"field-header",children:[(0,O.jsx)("div",{className:"search_preview_icon",children:(0,O.jsx)(qu,{})}),(0,O.jsx)("div",{className:"field-text-Meta",children:"Improve your search experience and filters by selecting Metadata for indexing. They'll become searchable fields, making it easier to find products efficiently."})]}),(0,O.jsxs)(Rb,{className:"transfer-list-container-resposive",container:!0,spacing:5,justifyContent:"center",alignItems:"center",children:[(0,O.jsx)(Rb,{className:"transfer-list-resposive",item:!0,children:C("Available Metadata",o,(function(){if(console.log("searchValExcluded",b),""===b.current)return void a(p.filter((e=>!e.selected)).map((e=>e.name)));const e=Nf(p,!1,b.current,"name");console.log("filterBySearchExcluded",e),a(e)}),b,"available")}),(0,O.jsx)(Rb,{item:!0,children:(0,O.jsxs)(Rb,{container:!0,direction:"column",alignItems:"center",children:[(0,O.jsx)(El,{sx:{my:.5},variant:"contained",size:"large",color:"warning",onClick:()=>{h.current=i.concat(n),l(i.concat(s)),a(vy(o,s)),r(vy(n,s)),k()},disabled:0===s.length,"aria-label":"move selected right",id:"move-right-button",children:">"}),(0,O.jsx)(El,{sx:{my:.5},variant:"contained",size:"large",color:"warning",onClick:()=>{h.current=vy(i,n),a(o.concat(c)),l(vy(i,c)),r(vy(n,c)),k()},disabled:0===c.length,"aria-label":"move selected left",id:"move-left-button",children:"<"})]})}),(0,O.jsx)(Rb,{className:"transfer-list-resposive",item:!0,children:C("Selected Metadata",i,(function(){if(console.log("searchValIncluded",v),""===v.current)return void l(p.filter((e=>e.selected)).map((e=>e.name)));const e=Nf(p,!0,v.current,"name");console.log("filterBySearchIncluded",e),l(e)}),v,"selected")}),(0,O.jsx)(fy,{handleClickOpen:u,title:"Metadata Updated",onChange:e=>{d(e)},handleMenuListState:e.handleMenuListState})]})]})})}function xy(e){const{children:t,value:n,index:r,...o}=e;return(0,O.jsx)("div",{role:"tabpanel",hidden:n!==r,id:`simple-tabpanel-${r}`,"aria-labelledby":`simple-tab-${r}`,...o,children:n===r&&(0,O.jsx)(kr,{sx:{p:3},children:(0,O.jsx)(Nl,{children:t})})})}function wy(e){return{id:`simple-tab-${e}`,"aria-controls":`simple-tabpanel-${e}`}}function Sy(e){const n=it(),[r,o]=(0,t.useState)(0),a=(e,t)=>{o(t)};return(0,O.jsxs)(kr,{sx:{width:"100%"},children:[(0,O.jsx)(kr,{sx:{borderBottom:1,borderColor:"divider"},children:n?(0,O.jsxs)(Ue,{value:r,onChange:a,"aria-label":"basic tabs example",children:[(0,O.jsx)(Xe,{label:"Product Attributes",...wy(0)}),(0,O.jsx)(Xe,{label:"MetaData",...wy(1)})]}):(0,O.jsx)(Ue,{value:r,onChange:a,"aria-label":"basic tabs example",children:(0,O.jsx)(Xe,{label:"MetaData",...wy(0)})})}),n?(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(xy,{value:r,index:0,children:(0,O.jsx)(gy,{handleMenuListState:e.handleMenuListState})}),(0,O.jsx)(xy,{value:r,index:1,children:(0,O.jsx)(yy,{handleMenuListState:e.handleMenuListState})})]}):(0,O.jsx)(O.Fragment,{children:(0,O.jsx)(xy,{value:r,index:0,children:(0,O.jsx)(yy,{handleMenuListState:e.handleMenuListState})})})]})}function ky(e){return(0,ve.Z)("MuiFormControlLabel",e)}const Cy=(0,ne.Z)("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),jy=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],Ey=(0,v.ZP)("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Cy.label}`]:t.label},t.root,t[`labelPlacement${(0,Ve.Z)(n.labelPlacement)}`]]}})((e=>{let{theme:t,ownerState:n}=e;return(0,i.Z)({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Cy.disabled}`]:{cursor:"default"}},"start"===n.labelPlacement&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},"top"===n.labelPlacement&&{flexDirection:"column-reverse",marginLeft:16},"bottom"===n.labelPlacement&&{flexDirection:"column",marginLeft:16},{[`& .${Cy.label}`]:{[`&.${Cy.disabled}`]:{color:(t.vars||t).palette.text.disabled}}})})),_y=(0,v.ZP)("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})((e=>{let{theme:t}=e;return{[`&.${Cy.error}`]:{color:(t.vars||t).palette.error.main}}})),Py=t.forwardRef((function(e,n){var r,o;const c=(0,b.Z)({props:e,name:"MuiFormControlLabel"}),{className:u,componentsProps:d={},control:p,disabled:f,disableTypography:h,label:m,labelPlacement:g="end",required:v,slotProps:y={}}=c,x=(0,a.Z)(c,jy),w=eo(),S=null!=(r=null!=f?f:p.props.disabled)?r:null==w?void 0:w.disabled,k=null!=v?v:p.props.required,C={disabled:S,required:k};["checked","name","onChange","value","inputRef"].forEach((e=>{"undefined"===typeof p.props[e]&&"undefined"!==typeof c[e]&&(C[e]=c[e])}));const j=Qr({props:c,muiFormControl:w,states:["error"]}),E=(0,i.Z)({},c,{disabled:S,labelPlacement:g,required:k,error:j.error}),_=(e=>{const{classes:t,disabled:n,labelPlacement:r,error:o,required:a}=e,i={root:["root",n&&"disabled",`labelPlacement${(0,Ve.Z)(r)}`,o&&"error",a&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]};return(0,s.Z)(i,ky,t)})(E),P=null!=(o=y.typography)?o:d.typography;let Z=m;return null==Z||Z.type===Nl||h||(Z=(0,O.jsx)(Nl,(0,i.Z)({component:"span"},P,{className:(0,l.Z)(_.label,null==P?void 0:P.className),children:Z}))),(0,O.jsxs)(Ey,(0,i.Z)({className:(0,l.Z)(_.root,u),ownerState:E,ref:n},x,{children:[t.cloneElement(p,C),Z,k&&(0,O.jsxs)(_y,{ownerState:E,"aria-hidden":!0,className:_.asterisk,children:["\u2009","*"]})]}))})),Zy=Py;function Oy(e){return(0,ve.Z)("MuiSwitch",e)}const Ry=(0,ne.Z)("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),My=["className","color","edge","size","sx"],Ny=(0,v.ZP)("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${(0,Ve.Z)(n.edge)}`],t[`size${(0,Ve.Z)(n.size)}`]]}})((e=>{let{ownerState:t}=e;return(0,i.Z)({display:"inline-flex",width:58,height:38,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"}},"start"===t.edge&&{marginLeft:-8},"end"===t.edge&&{marginRight:-8},"small"===t.size&&{width:40,height:24,padding:7,[`& .${Ry.thumb}`]:{width:16,height:16},[`& .${Ry.switchBase}`]:{padding:4,[`&.${Ry.checked}`]:{transform:"translateX(16px)"}}})})),Ty=(0,v.ZP)(Xb,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${Ry.input}`]:t.input},"default"!==n.color&&t[`color${(0,Ve.Z)(n.color)}`]]}})((e=>{let{theme:t}=e;return{position:"absolute",top:0,left:0,zIndex:1,color:t.vars?t.vars.palette.Switch.defaultColor:`${"light"===t.palette.mode?t.palette.common.white:t.palette.grey[300]}`,transition:t.transitions.create(["left","transform"],{duration:t.transitions.duration.shortest}),[`&.${Ry.checked}`]:{transform:"translateX(20px)"},[`&.${Ry.disabled}`]:{color:t.vars?t.vars.palette.Switch.defaultDisabledColor:`${"light"===t.palette.mode?t.palette.grey[100]:t.palette.grey[600]}`},[`&.${Ry.checked} + .${Ry.track}`]:{opacity:.5},[`&.${Ry.disabled} + .${Ry.track}`]:{opacity:t.vars?t.vars.opacity.switchTrackDisabled:""+("light"===t.palette.mode?.12:.2)},[`& .${Ry.input}`]:{left:"-100%",width:"300%"}}}),(e=>{let{theme:t,ownerState:n}=e;return(0,i.Z)({"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:(0,Pa.Fq)(t.palette.action.active,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==n.color&&{[`&.${Ry.checked}`]:{color:(t.vars||t).palette[n.color].main,"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette[n.color].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:(0,Pa.Fq)(t.palette[n.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Ry.disabled}`]:{color:t.vars?t.vars.palette.Switch[`${n.color}DisabledColor`]:`${"light"===t.palette.mode?(0,Pa.$n)(t.palette[n.color].main,.62):(0,Pa._j)(t.palette[n.color].main,.55)}`}},[`&.${Ry.checked} + .${Ry.track}`]:{backgroundColor:(t.vars||t).palette[n.color].main}})})),zy=(0,v.ZP)("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})((e=>{let{theme:t}=e;return{height:"100%",width:"100%",borderRadius:7,zIndex:-1,transition:t.transitions.create(["opacity","background-color"],{duration:t.transitions.duration.shortest}),backgroundColor:t.vars?t.vars.palette.common.onBackground:`${"light"===t.palette.mode?t.palette.common.black:t.palette.common.white}`,opacity:t.vars?t.vars.opacity.switchTrack:""+("light"===t.palette.mode?.38:.3)}})),Ly=(0,v.ZP)("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})((e=>{let{theme:t}=e;return{boxShadow:(t.vars||t).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}})),Ay=t.forwardRef((function(e,t){const n=(0,b.Z)({props:e,name:"MuiSwitch"}),{className:r,color:o="primary",edge:c=!1,size:u="medium",sx:d}=n,p=(0,a.Z)(n,My),f=(0,i.Z)({},n,{color:o,edge:c,size:u}),h=(e=>{const{classes:t,edge:n,size:r,color:o,checked:a,disabled:l}=e,c={root:["root",n&&`edge${(0,Ve.Z)(n)}`,`size${(0,Ve.Z)(r)}`],switchBase:["switchBase",`color${(0,Ve.Z)(o)}`,a&&"checked",l&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},u=(0,s.Z)(c,Oy,t);return(0,i.Z)({},t,u)})(f),m=(0,O.jsx)(Ly,{className:h.thumb,ownerState:f});return(0,O.jsxs)(Ny,{className:(0,l.Z)(h.root,r),sx:d,ownerState:f,children:[(0,O.jsx)(Ty,(0,i.Z)({type:"checkbox",icon:m,checkedIcon:m,ref:t,ownerState:f},p,{classes:(0,i.Z)({},h,{root:h.switchBase})})),(0,O.jsx)(zy,{className:h.track,ownerState:f})]})})),Iy=Ay;const Fy=function(e){console.log("PluginSettings component loaded");const[n,r]=(0,t.useState)(),[o,a]=(0,t.useState)(),[i,l]=(0,t.useState)(),[s,c]=(0,t.useState)(),[u,d]=(0,t.useState)(),[p,f]=(0,t.useState)(),[h,m]=(0,t.useState)(),[g,v]=(0,t.useState)(),[b,y]=(0,t.useState)(),[x,w]=(0,t.useState)(!1),[S,k]=(0,t.useState)(!1),{apiKey:C,secretKey:j}=Zv(),E=Of(),_=rt().apiUrl;function P(e){var t;console.log("event",e),r(e),t=e,w(!0),t?fetch(_+"set_debug").then((e=>e.json())).then((e=>{console.debug("Sucessfully set debug mode",e),r(e),k("Debug Mode On"),w(!1)})).catch((e=>console.error("Error while setting debug mode",e))):fetch(_+"reset_debug").then((e=>e.json())).then((e=>{console.debug("Sucessfully unset debug mode",e),r(e),k("Debug Mode Off"),w(!1)})).catch((e=>console.error("Error while unsetting debug mode",e)))}function Z(e){var t;console.log("event",e),l(e),t=e,w(!0),t?fetch(_+"set_init").then((e=>e.json())).then((e=>{console.debug("Sucessfully set init mode",e),l(e),m("Init Mode On"),w(!1)})).catch((e=>console.error("Error while setting init mode",e))):fetch(_+"reset_init").then((e=>e.json())).then((e=>{console.debug("Sucessfully unset init mode",e),l(e),m("Init Mode Off"),w(!1)})).catch((e=>console.error("Error while unsetting init mode",e)))}function R(e){var t;console.log("event",e),c(e),t=e,w(!0),t?fetch(_+"set_ai_ui").then((e=>e.json())).then((e=>{console.debug("Successfully set AI UI mode",e),c(e),v("AI Compatible UI On"),w(!1)})).catch((e=>console.error("Error while setting AI UI mode",e))):fetch(_+"reset_ai_ui").then((e=>e.json())).then((e=>{console.debug("Successfully unset AI UI mode",e),c(e),v("AI Compatible UI Off"),w(!1)})).catch((e=>console.error("Error while unsetting AI UI mode",e)))}function M(e){var t;console.log("event",e),d(e),t=e,w(!0),t?fetch(_+"set_readonly_mode").then((e=>e.json())).then((e=>{console.debug("Successfully set readonly mode",e),d(e),y("Readonly Mode On"),w(!1)})).catch((e=>console.error("Error while setting readonly mode",e))):fetch(_+"reset_readonly_mode").then((e=>e.json())).then((e=>{console.debug("Successfully unset readonly mode",e),d(e),y("Readonly Mode Off"),w(!1)})).catch((e=>console.error("Error while unsetting readonly mode",e)))}function N(e){console.log("sentry toogle button event",e),w(!0),e?(fetch(_+"set_sentry").then((e=>e.json())).then((e=>{console.debug("Sucessfully set sentry mode",e),w(!1),f("Sentry Mode On")})).catch((e=>console.error("Error while setting sentry mode",e))),a(!0)):(fetch(_+"reset_sentry").then((e=>e.json())).then((e=>{console.debug("Sucessfully unset sentry mode",e),w(!1),f("Sentry Mode Off")})).catch((e=>console.error("Error while unsetting sentry mode",e))),a(!1))}return(0,t.useEffect)((()=>{fetch(_+"get_debug").then((e=>e.json())).then((e=>{console.debug("Sucessfully fetched debug mode",e),r(e),k(e?"Debug Mode On":"Debug Mode Off")})).catch((e=>console.error("Error while fetching debug mode",e)))}),[]),(0,t.useEffect)((()=>{fetch(_+"get_readonly_mode").then((e=>e.json())).then((e=>{console.debug("Successfully fetched readonly mode",e),d(e),y(e?"Readonly Mode On":"Readonly Mode Off")})).catch((e=>console.error("Error while fetching readonly mode",e)))}),[]),(0,t.useEffect)((()=>{fetch(_+"get_sentry").then((e=>e.json())).then((e=>{console.debug("Successfully fetched sentry mode",e),a(e),f(e?"Sentry Mode On":"Sentry Mode Off")})).catch((e=>console.error("Error while fetching sentry mode",e)))}),[]),(0,t.useEffect)((()=>{fetch(_+"get_init").then((e=>e.json())).then((e=>{console.debug("Sucessfully fetched init mode",e),l(e),m(e?"Init Mode On":"Init Mode Off")})).catch((e=>console.error("Error while fetching init mode",e)))}),[]),(0,t.useEffect)((()=>{fetch(_+"get_ai_ui").then((e=>e.json())).then((e=>{console.debug("Successfully fetched AI UI mode",e),c(e),v(e?"AI Compatible UI On":"AI Compatible UI Off")})).catch((e=>console.error("Error while fetching AI UI mode",e)))}),[]),void 0===n||void 0===o||void 0===i||void 0===s||void 0===u?(0,O.jsx)("div",{className:"show-loading-center",children:(0,O.jsx)(Fr,{})}):(0,O.jsxs)("div",{className:"plugin_settings",children:[(0,O.jsxs)("div",{className:"plugin_settings_key",children:[(0,O.jsx)("label",{htmlFor:"api_key",children:"API Key"}),(0,O.jsx)("input",{type:"text",id:"api_key",value:C,readOnly:!0})]}),"db"===E&&(0,O.jsxs)("div",{className:"plugin_settings_key",children:[(0,O.jsx)("label",{htmlFor:"secret_key",children:"Secret Key"}),(0,O.jsx)("input",{type:"text",id:"secret_key",value:j,readOnly:!0})]}),(0,O.jsxs)("div",{className:"left-align-Control-switches",children:[(0,O.jsx)("div",{className:"mar-top--35",children:(0,O.jsx)(Zy,{control:(0,O.jsx)(Iy,{}),label:S,checked:n,onChange:e=>P(e.target.checked)})}),(0,O.jsx)("div",{className:"mar-top--35",children:(0,O.jsx)(Zy,{control:(0,O.jsx)(Iy,{}),label:p,checked:o,onChange:e=>N(e.target.checked)})}),(0,O.jsx)("div",{className:"mar-top--35",children:(0,O.jsx)(Zy,{control:(0,O.jsx)(Iy,{}),label:h,checked:i,onChange:e=>Z(e.target.checked)})}),(0,O.jsx)("div",{className:"mar-top--35",children:(0,O.jsx)(Zy,{control:(0,O.jsx)(Iy,{}),label:g,checked:s,onChange:e=>R(e.target.checked)})}),(0,O.jsx)("div",{className:"mar-top--35",children:(0,O.jsx)(Zy,{control:(0,O.jsx)(Iy,{}),label:b,checked:u,onChange:e=>M(e.target.checked)})})]}),x&&(0,O.jsx)(Fr,{})]})},Dy=(0,v.ZP)(Oh)((e=>{let{theme:t}=e;return{"& .MuiDialogContent-root":{padding:t.spacing(2)},"& .MuiDialogActions-root":{padding:t.spacing(1)}}}));function By(e){const{children:t,onClose:n,...r}=e;return(0,O.jsxs)(Xh,{sx:{m:0,p:2},...r,children:[t,n?(0,O.jsx)(qp,{"aria-label":"close",onClick:n,sx:{position:"absolute",right:8,top:8,color:e=>e.palette.grey[500]},children:(0,O.jsx)(uy.Z,{})}):null]})}const $y=(0,t.forwardRef)(((e,n)=>{const[r,o]=(0,t.useState)(!1),a=()=>{e.onChange(!1,"nochange"),o(!1)};return(0,t.useImperativeHandle)(n,(()=>({updateValue:e=>{o(e)}}))),(0,O.jsx)("div",{children:(0,O.jsxs)(Dy,{"aria-labelledby":"customized-dialog-title",open:r,children:[(0,O.jsx)(By,{id:"customized-dialog-title",onClose:a,children:"Warning"}),(0,O.jsxs)($h,{dividers:!0,children:[(0,O.jsx)(Nl,{gutterBottom:!0,children:"Please be patient while the indexing is being completed. Indexing will stop if you navigate away from this page."}),(0,O.jsx)(Nl,{gutterBottom:!0,children:(0,O.jsx)("br",{})}),(0,O.jsx)(Nl,{gutterBottom:!0,children:"If you want to navigate then click on 'Yes', Otherwise 'No'."})]}),(0,O.jsxs)(zh,{children:[(0,O.jsx)(El,{variant:"outlined",color:"error",onClick:()=>{e.onChange(!1,"change"),o(!1)},children:"Yes"}),(0,O.jsx)(El,{autoFocus:!0,variant:"contained",color:"success",onClick:a,children:"No"})]})]})})})),Wy=(0,v.ZP)(Oh)((e=>{let{theme:t}=e;return{"& .MuiDialogContent-root":{padding:t.spacing(2)},"& .MuiDialogActions-root":{padding:t.spacing(1)}}}));function Uy(e){const{children:t,onClose:n,...r}=e;return(0,O.jsxs)(Xh,{sx:{m:0,p:2},...r,children:[t,n?(0,O.jsx)(qp,{"aria-label":"close",onClick:n,sx:{position:"absolute",right:8,top:8,color:e=>e.palette.grey[500]},children:(0,O.jsx)(uy.Z,{})}):null]})}function Vy(e){const[n,r]=(0,t.useState)(!1);(0,t.useEffect)((()=>{e.handleClickOpen?r(!0):r(!1)}),[e.handleClickOpen]);const o=()=>{r(!1),e.onChange(!1)};return(0,O.jsx)("div",{children:(0,O.jsxs)(Wy,{onClose:o,"aria-labelledby":"customized-dialog-title",open:n,children:[(0,O.jsx)(Uy,{id:"customized-dialog-title",onClose:o,children:e.title}),(0,O.jsxs)($h,{dividers:!0,children:[(0,O.jsx)(Nl,{gutterBottom:!0,children:"Selected Doc Types have been successfully updated."}),(0,O.jsx)(Nl,{gutterBottom:!0,children:"Now, you need to initiate the indexing process from the Dashboard page to include the selected fields. Would you like to initiate it now?"}),(0,O.jsx)(Nl,{gutterBottom:!0,children:"Please click 'Yes' to proceed. If you prefer to do it later, click 'No'."})]}),(0,O.jsxs)(zh,{children:[(0,O.jsx)(El,{autoFocus:!0,variant:"contained",color:"success",onClick:()=>{e.handleMenuListState("Dashboard"),e.onChange(!1),r(!1)},id:"doc-type-yes",children:"Yes"}),(0,O.jsx)(El,{variant:"outlined",color:"error",onClick:o,id:"doc-type-no",children:"No"})]})]})})}function Hy(e,t){return e.filter((e=>-1===t.indexOf(e)))}function qy(e,t){return e.filter((e=>-1!==t.indexOf(e)))}function Ky(e){const{enqueueSnackbar:n}=Vn(),[r,o]=(0,t.useState)([]),[a,i]=(0,t.useState)([]),[l,s]=(0,t.useState)([]),[c,u]=(0,t.useState)(!1),d=qy(r,a),p=qy(r,l),[f,h]=(0,t.useState)(!0),[m,g]=(0,t.useState)(!1),[v,b]=(0,t.useState)(0),y=(0,t.useRef)([]),x=(0,t.useRef)(""),w=(0,t.useRef)(""),S=(0,t.useRef)([]),k=(0,t.useRef)([]),C=rt().apiUrl;(0,t.useEffect)((()=>{fetch(C+"get_cpanel_config").then((e=>e.json())).then((e=>{var t;console.log("Sucessfully fetched Selected Doc type",e.doc_type),t=e.doc_type,fetch(C+"get_index_status").then((e=>e.text())).then((e=>JSON.parse(Mf(e)))).then((e=>{console.debug("Successfully fetched Index Status",e),console.log("selectedDocType",t),S.current=t.map((t=>`${t} (${e.indexable_data[t]})`)),k.current=Object.entries(e.indexable_data).filter((e=>{let[n]=e;return!t.includes(n)})).map((e=>{let[t,n]=e;return`${t} (${n})`})),s(S.current),i(k.current),E(S.current),h(!1)})).catch((e=>{console.error("Error while fetching index status",e)}))})).catch((e=>{console.error("Error while fetching doc type",e)}))}),[]);function j(e,t){const n=t.toLowerCase();return e.filter((e=>e.toLowerCase().includes(n)))}function E(e){let t=0;for(const n of e){const e=n.match(/\((\d+)\)/);if(e){t+=parseInt(e[1],10)}}b(t)}const _=e=>()=>{const t=r.indexOf(e),n=[...r];-1===t?n.push(e):n.splice(t,1),o(n)},P=e=>qy(r,e).length,Z=e=>()=>{P(e)===e.length?o(Hy(r,e)):o(function(e,t){return[...e,...Hy(t,e)]}(r,e))};function R(){g(!0),console.log("includedSelectedDocType",y.current);const e=y.current.map((e=>{const t=e.match(/^(.*?)\s+\(\d+\)$/);return t?t[1]:e}));return console.log("updateDocTypeInCP and WP db as well data",e),fetch(C+"expertrec_update_doctype_CP",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}).then((e=>e.json())).then((e=>{console.log("Successfully updated doc type in CP",e),n("Successfully updated Doc Type",{variant:"success"}),u(!0),g(!1)})).catch((e=>{console.error("Error while updating doc type in CP",e)}))}const M=(e,t,n,o,a)=>(0,O.jsxs)(Lb,{children:[(0,O.jsx)(Vb,{sx:{px:2,py:1},avatar:(0,O.jsx)(cy,{id:`${a}_doc_selectAll_checkbox`,onClick:Z(t),checked:P(t)===t.length&&0!==t.length,indeterminate:P(t)!==t.length&&0!==P(t),disabled:0===t.length,inputProps:{"aria-label":"all items selected"}}),title:e,subheader:`${P(t)}/${t.length} selected`}),(0,O.jsx)("div",{className:"field_search",children:(0,O.jsx)(ml,{fullWidth:!0,id:`${a}_doc_search`,placeholder:"Search",InputProps:{startAdornment:(0,O.jsx)(qp,{children:(0,O.jsx)(yb.Z,{})})},onChange:e=>{o.current=e.target.value,n()}})}),(0,O.jsx)(ya,{sx:{width:300,height:230,bgcolor:"background.paper",overflow:"auto"},dense:!0,component:"div",role:"list",children:t.map((e=>{const t=`transfer-list-all-item-${e}-label`;return(0,O.jsxs)(pf,{role:"listitem",button:!0,onClick:_(e),children:[(0,O.jsx)(Sf,{children:(0,O.jsx)(cy,{checked:-1!==r.indexOf(e),tabIndex:-1,disableRipple:!0,inputProps:{"aria-labelledby":t}})}),(0,O.jsx)(Pf,{id:t,primary:e})]},e)}))})]});return f?(0,O.jsx)("div",{className:"show-loading-center",children:(0,O.jsx)(Fr,{})}):(0,O.jsxs)(O.Fragment,{children:[(0,O.jsxs)("div",{className:"field-header",children:[(0,O.jsx)("div",{className:"search_preview_icon",children:(0,O.jsx)(qu,{})}),(0,O.jsxs)("div",{className:"doc-type-text",children:["Select Post Types to include in the indexing process. By default, some of the selected post Types will not be shown in the search results. If you wish to include them in the search results, please contact the support team at ",(0,O.jsx)("a",{href:"mailto:[email protected]",children:"[email protected]"})]})]}),(0,O.jsxs)(Rb,{className:"transfer-list-container-resposive",container:!0,spacing:5,justifyContent:"center",alignItems:"center",children:[(0,O.jsx)(Rb,{className:"transfer-list-resposive",item:!0,children:M("Available Post Types",a,(function(){if(console.log("searchValExcluded",w,k,w.current),""===w.current)return void i(k.current);const e=j(k.current,w.current);console.log("searchValExcluded filterBySearchExcluded",e),i(e)}),w,"available")}),(0,O.jsx)(Rb,{item:!0,children:(0,O.jsx)(Rb,{container:!0,direction:"column",alignItems:"center",children:m?(0,O.jsx)("div",{className:"doc-type-loading-wrapper",children:(0,O.jsx)("div",{className:"doc-type-loading",children:(0,O.jsx)(Fr,{})})}):(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(El,{sx:{my:.5},variant:"contained",size:"large",color:"warning",onClick:()=>{y.current=S.current.concat(d),R().then((()=>{s(S.current.concat(d)),i(Hy(k.current,d)),o(Hy(r,d)),k.current=Hy(k.current,d),S.current=y.current,E(S.current)}))},disabled:0===d.length,"aria-label":"move selected right",id:"move-right-button",children:">"}),(0,O.jsx)(El,{sx:{my:.5},variant:"contained",size:"large",color:"warning",onClick:()=>{p.length!==S.current.length?(y.current=Hy(S.current,p),R().then((()=>{i(k.current.concat(p)),s(y.current),o(Hy(r,p)),k.current=k.current.concat(p),S.current=y.current,E(S.current)}))):n("Please include atleast one Doc Type",{variant:"error"})},disabled:0===p.length,"aria-label":"move selected left",id:"move-left-button",children:"<"})]})})}),(0,O.jsx)(Rb,{className:"transfer-list-resposive",item:!0,children:M("Selected Post Types",l,(function(){if(console.log("searchValIncluded",x),""===x.current)return void s(S.current);const e=j(S.current,x.current);console.log("filterBySearchIncluded",e),s(e)}),x,"selected")}),(0,O.jsx)(Vy,{handleClickOpen:c,title:"Doc Types Updated",onChange:e=>{u(e)},handleMenuListState:e.handleMenuListState})]}),(0,O.jsx)("div",{className:"show-total-index-count",children:(0,O.jsxs)("div",{id:"total-index-count-text",children:["Total Indexed Count: ",v]})})]})}const Gy=()=>(0,O.jsxs)("div",{id:"app-header",children:[(0,O.jsxs)("div",{className:"app-header-element",children:[(0,O.jsx)("a",{href:"https://www.expertrec.com/wordpress-search/",target:"_blank",rel:"noreferrer",children:(0,O.jsx)("img",{className:"logo-width",src:"https://www.expertrec.com/wp-content/uploads/2022/03/expertrec-icon-64.png",alt:"expertrec-logo"})}),(0,O.jsx)("h2",{className:"dashboard-title",children:"WP Fastest Site Search"}),(0,O.jsx)("p",{className:"plugin-version",children:"5.4.6"})]}),(0,O.jsxs)("div",{className:"app-header-element",children:[(0,O.jsx)("span",{className:"app-header-support-text",children:"UI Customizations or Any Queries? :"}),(0,O.jsx)(Zc,{title:"Raise a ticket with us",placement:"bottom",arrow:!0,children:(0,O.jsx)("span",{className:"app-header-support-icons",children:(0,O.jsx)("a",{href:"https://cloudinfra.freshdesk.com/support/tickets/new",target:"_blank",rel:"noreferrer",children:(0,O.jsx)(Bu,{})})})}),(0,O.jsx)(Zc,{title:"Schedule a video call with us",placement:"bottom",arrow:!0,children:(0,O.jsx)("span",{className:"app-header-support-icons side-border",children:(0,O.jsx)("a",{href:"https://calendly.com/melchi-expertrec/tech-support",target:"_blank",rel:"noreferrer",children:(0,O.jsx)(Ju,{})})})}),(0,O.jsx)(Zc,{title:"Call our customer support executive. Number: +18646574650",placement:"bottom",arrow:!0,children:(0,O.jsx)("span",{className:"app-header-support-icons",children:(0,O.jsx)("a",{href:"tel:+18646574650",target:"_blank",rel:"noreferrer",children:(0,O.jsx)(Au,{})})})})]})]}),Yy=e=>(0,O.jsxs)("div",{className:"feature",children:[(0,O.jsx)("h2",{children:e.header}),(0,O.jsx)("div",{className:"feature-item-wrapper",children:e.data.map((t=>(0,O.jsx)("div",{className:"feature-item-content",children:(0,O.jsxs)("div",{className:"feature-content",children:[(0,O.jsx)("h3",{className:"feature-title",children:t.title}),(0,O.jsx)("div",{className:"feature-item-content-icon",children:t.icon}),(0,O.jsx)("p",{className:"feature-item-content-text",children:t.description}),e.support?(0,O.jsx)(El,{href:t.link,target:"blank",rel:"noreferrer",className:"ai-feature-support",variant:"outlined",startIcon:(0,O.jsx)(Xd,{}),children:"Contact Support"}):(0,O.jsx)("a",{href:t.link,target:"blank",rel:"noreferrer",className:"feature-link",children:"Take me there"})]})},t.id)))})]});var Xy=n(473);const Qy=(0,v.ZP)(Oh)((e=>{let{theme:t}=e;return{"& .MuiDialogContent-root":{padding:t.spacing(2)},"& .MuiDialogActions-root":{padding:t.spacing(1)}}}));function Jy(e){const{children:t,onClose:n,...r}=e;return(0,O.jsxs)(Xh,{sx:{m:0,p:2},...r,children:[t,n?(0,O.jsx)(qp,{"aria-label":"close",onClick:n,sx:{position:"absolute",right:8,top:8,color:e=>e.palette.grey[500]},children:(0,O.jsx)(uy.Z,{})}):null]})}function ex(e){const[n,r]=(0,t.useState)(!0);(0,t.useEffect)((()=>{e.handleClickOpen?r(!0):r(!1)}),[e.handleClickOpen]);const o=()=>{r(!1),e.onChange(!1)};return(0,O.jsx)("div",{children:(0,O.jsxs)(Qy,{onClose:o,"aria-labelledby":"customized-dialog-title",open:n,children:[(0,O.jsxs)(Jy,{id:"customized-dialog-title",onClose:o,children:[e.title," Variants"]}),(0,O.jsxs)($h,{dividers:!0,children:[(0,O.jsxs)(Nl,{gutterBottom:!0,children:["Now, you need to initiate the indexing process from the Dashboard page to ",e.title," the variants. Would you like to initiate it now?"]}),(0,O.jsx)(Nl,{gutterBottom:!0,children:"Please click 'Yes' to proceed. If you prefer to do it later, click 'No'."})]}),(0,O.jsxs)(zh,{children:[(0,O.jsx)(El,{autoFocus:!0,variant:"contained",color:"success",onClick:()=>{e.handleMenuListState("Dashboard"),e.onChange(!1),r(!1)},id:"variants-yes",children:"Yes"}),(0,O.jsx)(El,{variant:"outlined",color:"error",onClick:o,id:"varinats-no",children:"No"})]})]})})}const tx=(0,v.ZP)((e=>(0,O.jsx)(Iy,{focusVisibleClassName:".Mui-focusVisible",disableRipple:!0,...e})))((e=>{let{theme:t}=e;return{width:42,height:26,padding:0,"& .MuiSwitch-switchBase":{padding:0,margin:2,transitionDuration:"300ms","&.Mui-checked":{transform:"translateX(16px)",color:"#fff","& + .MuiSwitch-track":{backgroundColor:"dark"===t.palette.mode?"#2ECA45":"#65C466",opacity:1,border:0},"&.Mui-disabled + .MuiSwitch-track":{opacity:.5}},"&.Mui-focusVisible .MuiSwitch-thumb":{color:"#33cf4d",border:"6px solid #fff"},"&.Mui-disabled .MuiSwitch-thumb":{color:"light"===t.palette.mode?t.palette.grey[100]:t.palette.grey[600]},"&.Mui-disabled + .MuiSwitch-track":{opacity:"light"===t.palette.mode?.7:.3}},"& .MuiSwitch-thumb":{boxSizing:"border-box",width:22,height:22},"& .MuiSwitch-track":{borderRadius:13,backgroundColor:"light"===t.palette.mode?"#E9E9EA":"#39393D",opacity:1,transition:t.transitions.create(["background-color"],{duration:500})}}})),nx=e=>{const[n,r]=(0,t.useState)(),[o,a]=(0,t.useState)(),[i,l]=(0,t.useState)(!1),[s,c]=(0,t.useState)(),{enqueueSnackbar:u}=Vn(),d=rt().apiUrl;function p(e){console.log("heelo",e),a(!0),e?(fetch(d+"expertrec_set_indexvariants").then((e=>e.json())).then((e=>{console.debug("Sucessfully set indexing variants",e),u("Successfully Included Variants in Indexing",{variant:"success"}),a(!1),c("include"),l(!0)})).catch((e=>{console.error("Error while setting indexing variants",e),u("Failed to update Search Bar option",{variant:"error"})})),r(e)):(fetch(d+"expertrec_reset_indexvariants").then((e=>e.json())).then((e=>{console.debug("Sucessfully set indexing variants",e),u("Successfully Excluded Variants in Indexing",{variant:"success"}),a(!1),c("exclude"),l(!0)})).catch((e=>console.error("Error while resetting indexing variants",e))),r(e))}(0,t.useEffect)((()=>{fetch(d+"expertrec_get_indexvariants").then((e=>e.json())).then((e=>{console.log("Sucessfully fetched expertrec_get_index_variants",e),r(e)})).catch((e=>{console.error("Error while fetching wexpertrec_get_index_variants",e)}))}),[]);return void 0===n?(0,O.jsx)("div",{className:"show-loading-center",children:(0,O.jsx)(Fr,{})}):(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)("div",{className:"variants-info",children:(0,O.jsxs)("div",{className:"d-flex",children:[(0,O.jsx)("div",{className:"variants-icon",children:(0,O.jsx)(Xy.Z,{})}),(0,O.jsxs)("div",{className:"variants-text",children:[(0,O.jsx)("div",{className:"variants-text-title",children:"Want to display variants?"}),(0,O.jsxs)("div",{className:"variants-text-info",children:["The ",(0,O.jsx)("b",{children:"Variants display"})," feature enables you to showcase color swatches, sizes, styles, and more in the search results."]})]})]})}),(0,O.jsxs)("div",{className:"variants-switch",children:[(0,O.jsx)(Zy,{control:(0,O.jsx)(tx,{sx:{m:1}}),checked:n,label:"Include Variants Data in Indexing",labelPlacement:"start",onChange:e=>p(e.target.checked),id:"variants-switch-control"}),(0,O.jsxs)("div",{className:"variants-text-support",children:["If you want to include variant data in search results, please contact our ",(0,O.jsx)("a",{href:"https://cloudinfra.freshdesk.com/support/tickets/new",target:"_blank",rel:"noreferrer",children:"support"})," team."]})]}),(0,O.jsx)("div",{className:"variants-loading",children:o&&(0,O.jsx)(Fr,{})}),(0,O.jsx)(ex,{handleClickOpen:i,title:s,onChange:e=>{l(e)},handleMenuListState:e.handleMenuListState}),(0,O.jsx)("img",{src:"https://cse.expertrec.com/assets/images/variants_display_ref_img.png",alt:"variants",className:"variants-image"})]})};function rx(){return rx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rx.apply(this,arguments)}function ox(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}const ax=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"];function ix(e){let{basename:n,children:r,window:o}=e,a=t.useRef();var i;null==a.current&&(a.current=(void 0===(i={window:o,v5Compat:!0})&&(i={}),hd((function(e,t){let{pathname:n,search:r,hash:o}=e.location;return dd("",{pathname:n,search:r,hash:o},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){return"string"===typeof t?t:pd(t)}),null,i)));let l=a.current,[s,c]=t.useState({action:l.action,location:l.location});return t.useLayoutEffect((()=>l.listen(c)),[l]),t.createElement($d,{basename:n,children:r,location:s.location,navigationType:s.action,navigator:l})}const lx="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement,sx=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,cx=t.forwardRef((function(e,n){let r,{onClick:o,relative:a,reloadDocument:i,replace:l,state:s,target:c,to:u,preventScrollReset:d}=e,p=ox(e,ax),{basename:f}=t.useContext(Md),h=!1;if("string"===typeof u&&sx.test(u)&&(r=u,lx)){let e=new URL(window.location.href),t=u.startsWith("//")?new URL(e.protocol+u):new URL(u),n=gd(t.pathname,f);t.origin===e.origin&&null!=n?u=n+t.search+t.hash:h=!0}let m=function(e,n){let{relative:r}=void 0===n?{}:n;zd()||cd(!1);let{basename:o,navigator:a}=t.useContext(Md),{hash:i,pathname:l,search:s}=Id(e,{relative:r}),c=l;return"/"!==o&&(c="/"===l?o:xd([o,l])),a.createHref({pathname:c,search:s,hash:i})}(u,{relative:a}),g=function(e,n){let{target:r,replace:o,state:a,preventScrollReset:i,relative:l}=void 0===n?{}:n,s=Ad(),c=Ld(),u=Id(e,{relative:l});return t.useCallback((t=>{if(function(e,t){return 0===e.button&&(!t||"_self"===t)&&!function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)}(t,r)){t.preventDefault();let n=void 0!==o?o:pd(c)===pd(u);s(e,{replace:n,state:a,preventScrollReset:i,relative:l})}}),[c,s,u,o,a,r,e,i,l])}(u,{replace:l,state:s,target:c,preventScrollReset:d,relative:a});return t.createElement("a",rx({},p,{href:r||m,onClick:h||i?o:function(e){o&&o(e),e.defaultPrevented||g(e)},ref:n,target:c}))}));var ux,dx;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmitImpl="useSubmitImpl",e.UseFetcher="useFetcher"})(ux||(ux={})),function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(dx||(dx={}));const px=(0,v.ZP)(Oh)((e=>{let{theme:t}=e;return{"& .MuiDialogContent-root":{padding:t.spacing(2)},"& .MuiDialogActions-root":{padding:t.spacing(1)}}}));function fx(e){const{children:t,onClose:n,...r}=e;return(0,O.jsxs)(Xh,{sx:{m:0,p:2},...r,children:[t,n?(0,O.jsx)(qp,{"aria-label":"close",onClick:n,sx:{position:"absolute",right:8,top:8,color:e=>e.palette.grey[500]},children:(0,O.jsx)(uy.Z,{})}):null]})}function hx(e){const[n,r]=(0,t.useState)(!0);(0,t.useEffect)((()=>{e.handleDialogOpen?r(!0):r(!1)}),[e.handleDialogOpen]);const o=()=>{r(!1),e.handleDialogClose()};return(0,O.jsx)("div",{children:(0,O.jsxs)(px,{onClose:o,"aria-labelledby":"customized-dialog-title",open:n,children:[(0,O.jsx)(fx,{id:"customized-dialog-title",onClose:o,sx:{width:400},children:"Information"}),(0,O.jsx)($h,{dividers:!0,children:(0,O.jsx)(Nl,{gutterBottom:!0,children:"To enable this feature"})}),(0,O.jsxs)(zh,{children:[(0,O.jsx)(cx,{to:"https://cloudinfra.freshdesk.com/support/tickets/new",target:"_blank",rel:"noopener",style:{marginRight:10},children:(0,O.jsx)(El,{autoFocus:!0,variant:"contained",color:"success",id:"category-yes",children:"Support"})}),(0,O.jsx)(El,{variant:"outlined",color:"error",onClick:o,id:"category-no",children:"Close"})]})]})})}const mx=(0,v.ZP)((e=>(0,O.jsx)(Iy,{focusVisibleClassName:".Mui-focusVisible",disableRipple:!0,...e})))((e=>{let{theme:t}=e;return{width:42,height:26,padding:0,"& .MuiSwitch-switchBase":{padding:0,margin:2,transitionDuration:"300ms","&.Mui-checked":{transform:"translateX(16px)",color:"#fff","& + .MuiSwitch-track":{backgroundColor:"dark"===t.palette.mode?"#2ECA45":"#65C466",opacity:1,border:0},"&.Mui-disabled + .MuiSwitch-track":{opacity:.5}},"&.Mui-focusVisible .MuiSwitch-thumb":{color:"#33cf4d",border:"6px solid #fff"},"&.Mui-disabled .MuiSwitch-thumb":{color:"light"===t.palette.mode?t.palette.grey[100]:t.palette.grey[600]},"&.Mui-disabled + .MuiSwitch-track":{opacity:"light"===t.palette.mode?.7:.3}},"& .MuiSwitch-thumb":{boxSizing:"border-box",width:22,height:22},"& .MuiSwitch-track":{borderRadius:13,backgroundColor:"light"===t.palette.mode?"#E9E9EA":"#39393D",opacity:1,transition:t.transitions.create(["background-color"],{duration:500})}}})),gx=()=>{const[e,n]=(0,t.useState)(!1),[r,o]=(0,t.useState)(!0),[a,i]=(0,t.useState)(!1),l=rt().apiUrl;return(0,t.useEffect)((()=>{fetch(l+"expertrec_get_category_flag").then((e=>e.json())).then((e=>{console.log(e),n(e),o(!1)})).catch((e=>{console.log(e),o(!1)}))}),[]),r?(0,O.jsx)("div",{className:"category-loading-center",children:(0,O.jsx)(Fr,{})}):(0,O.jsxs)(O.Fragment,{children:[(0,O.jsxs)("div",{className:"category-switch",children:[(0,O.jsx)(Zy,{control:(0,O.jsx)(mx,{sx:{m:1}}),checked:e,label:"Category Pages",labelPlacement:"start",id:"category-switch-control",onChange:function(){e||i(!0)}}),(0,O.jsx)("div",{className:"category-text-support",children:"Power Category pages with Merchandizing, Filters & Sort Options"})]}),a&&(0,O.jsx)(hx,{handleDialogOpen:a,handleDialogClose:function(){i(!1)}})]})},vx=()=>{const e=S(),[n,r]=(0,t.useState)(!0),[o,a]=(0,t.useState)(),[i,l]=(0,t.useState)(),s=Ld(),[c,u]=(0,t.useState)(""),[d,p]=(0,t.useState)([]),f=(0,t.useRef)("Dashboard"),h=(0,t.useRef)(!1),m=Of(),g=Zv(),b=it(),y="db"===m?Tv:zv;function x(e){window.location.hash=e}(0,t.useEffect)((()=>{p(b?op:op.filter((e=>"Variants"!==e.label&&"Category Pages"!==e.label)))}),[b]),(0,t.useEffect)((()=>{const e=()=>{console.debug("Window Width:",window.innerWidth),window.innerWidth<1250?r(!1):r(!0)};return e(),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}}),[]),(0,t.useEffect)((()=>{window.location.hash="#Dashboard"}),[]),(0,t.useEffect)((()=>{console.debug("Location",s),l(s.hash),a(s.hash.replace("#",""))}),[s]),(0,t.useEffect)((()=>{const e=e=>{"In Progress"!==c&&"Not Started"!==c||(e.returnValue="")};return window.removeEventListener("beforeunload",e),window.addEventListener("beforeunload",e),()=>{window.removeEventListener("beforeunload",e)}}),[c]);const w=e=>{"#Dashboard"!==s.hash||"In Progress"!==c&&"Not Started"!==c?x(e):(f.current=e,h.current.updateValue(!0))},k=e=>{a(e),l("#Dashboard"),window.location.hash="#Dashboard"},C=215,j=e=>({width:C,transition:e.transitions.create("width",{easing:e.transitions.easing.sharp,duration:e.transitions.duration.enteringScreen}),overflowX:"hidden"}),E=e=>({transition:e.transitions.create("width",{easing:e.transitions.easing.sharp,duration:e.transitions.duration.leavingScreen}),overflowX:"hidden",width:`calc(${e.spacing(7)} + 1px)`,[e.breakpoints.up("sm")]:{width:`calc(${e.spacing(8)} + 1px)`}}),_=(0,v.ZP)("div")((e=>{let{theme:t}=e;return{...t.mixins.toolbar}})),P=(0,v.ZP)(Ep,{shouldForwardProp:e=>"open"!==e})((e=>{let{theme:t,open:n}=e;return{zIndex:t.zIndex.drawer+1,transition:t.transitions.create(["width","margin"],{easing:t.transitions.easing.sharp,duration:t.transitions.duration.leavingScreen}),...n&&{marginLeft:C,width:"calc(100% - 215px)",transition:t.transitions.create(["width","margin"],{easing:t.transitions.easing.sharp,duration:t.transitions.duration.enteringScreen})}}})),Z=(0,v.ZP)(xp,{shouldForwardProp:e=>"open"!==e})((e=>{let{theme:t,open:n}=e;return{width:C,flexShrink:0,whiteSpace:"nowrap",boxSizing:"border-box",...n&&{...j(t),"& .MuiDrawer-paper":j(t)},...!n&&{...E(t),"& .MuiDrawer-paper":E(t)}}}));return(0,O.jsxs)("div",{className:"main-container-wp",children:[(0,O.jsxs)(kr,{sx:{backgroundColor:""},children:[(0,O.jsx)(Tp,{}),(0,O.jsx)(P,{position:"static",children:(0,O.jsxs)(Rp,{sx:{backgroundColor:"white"},children:[(0,O.jsx)(qp,{"aria-label":"open drawer",onClick:()=>{r(!n)},edge:"start",id:"open-drawer",children:(0,O.jsx)(Kp.Z,{})}),(0,O.jsx)(Gy,{})]})}),(0,O.jsxs)("div",{className:"d-flex",children:[(0,O.jsx)(Z,{variant:"permanent",open:n,children:(0,O.jsxs)("div",{children:[(0,O.jsx)(_,{children:(0,O.jsx)(qp,{onClick:()=>{r(!1)},children:"rtl"===e.direction?(0,O.jsx)(Yp.Z,{}):(0,O.jsx)(Gp.Z,{})})}),(0,O.jsx)(Bp,{}),(0,O.jsx)(ya,{children:("crawl"===m?ip:d).map((e=>(0,O.jsx)(pf,{disablePadding:!0,sx:{display:"block",...null===m&&{opacity:"0.3",pointerEvents:"none"}},onClick:()=>w(e.label),children:(0,O.jsx)(Zc,{title:e.label,placement:"right",children:(0,O.jsxs)(gf,{sx:{minHeight:48,justifyContent:n?"initial":"center",px:2.5},id:e.label,children:[(0,O.jsx)(Sf,{sx:{minWidth:0,mr:n?1.6:"auto",justifyContent:"center",fontSize:"25px"},className:o===e.hashLink?"active-list-item ":"",children:e.icon}),(0,O.jsx)(Pf,{className:o===e.hashLink?"active-list-item ":"",primary:e.label,sx:{opacity:n?1:0}})]})})},e.id)))}),"db"===m&&"#Dashboard"!==window.location.hash&&(0,O.jsx)(ya,{children:(0,O.jsx)(pf,{disablePadding:!0,sx:{display:"block"},onClick:()=>w("Dashboard"),children:(0,O.jsx)(Zc,{title:"Status",placement:"right",children:(0,O.jsxs)(gf,{sx:{minHeight:48,justifyContent:n?"initial":"center",px:2.5},children:[console.log("indexingStatusindexingStatusindexingStatus",c),"Completed"===c?(0,O.jsx)(Pf,{primary:"Indexing Completed",sx:{opacity:n?1:0,color:"white",textAlign:"center",background:"linear-gradient(to bottom right, green, #4BB543)",padding:"10px",borderRadius:"10px"}}):(0,O.jsx)(Pf,{primary:"Indexing Pending",sx:{opacity:n?1:0,color:"white",textAlign:"center",background:"linear-gradient(to bottom right, blue, #36f)",padding:"10px",borderRadius:"10px",animation:"blink 1s infinite"}})]})})},"5")})]})}),(0,O.jsx)(kr,{component:"main",sx:{flexGrow:1,p:3},children:null===g||null===m?(0,O.jsxs)(O.Fragment,{children:[(0,O.jsxs)("div",{className:"InfoWidget_container",children:[(0,O.jsx)(Fr,{}),(0,O.jsx)("h2",{children:"Please wait while we load the data...."})]}),(0,O.jsx)(Nv,{})]}):(0,O.jsxs)(O.Fragment,{children:["#Dashboard"===i&&"Dashboard"===o&&(0,O.jsx)(Lv,{handleIndexingStatus:e=>{console.debug("Indexing Status",e),u(e)},indexingStatus:c}),"#Custom%20Post%20Types"===i&&"Custom%20Post%20Types"===o&&(0,O.jsx)(Ky,{handleMenuListState:k}),"#UI%20Customizations"===i&&"UI%20Customizations"===o&&(0,O.jsx)(Qv,{}),"#Category%20Pages"===i&&"Category%20Pages"===o&&(0,O.jsx)(gx,{}),"#Variants"===i&&"Variants"===o&&(0,O.jsx)(nx,{handleMenuListState:k}),"#Custom%20Attributes"===i&&"Custom%20Attributes"===o&&(0,O.jsx)(Sy,{handleMenuListState:k}),"#Search%20Settings"===i&&"Search%20Settings"===o&&(0,O.jsx)(Yy,{data:y.searchSettings,header:"Search Settings"}),"#Merchandising"===i&&"Merchandising"===o&&(0,O.jsx)(Yy,{data:y.merchandising,header:"Merchandising"}),"#AI%20Features"===i&&"AI%20Features"===o&&(0,O.jsx)(Yy,{data:y.aiFeatures,header:"AI Features",support:!0}),"#Plugin%20Settings"===i&&"Plugin%20Settings"===o&&(0,O.jsx)(Fy,{}),"#FAQs"===i&&"FAQs"===o&&(0,O.jsx)(bb,{})," "]})})]})]}),(0,O.jsx)($y,{ref:h,onChange:(e,t)=>{console.debug("Warning Dialog",e,f.current),"change"===t&&x(f.current)}})]})},bx=()=>{const[e,n]=(0,t.useState)();(0,t.useEffect)((()=>{fetch(tt+Qe+"expertrec_islinked").then((e=>e.json())).then((e=>{console.log(e),n(e.is_linked)})).catch((e=>{console.log(e)}))}),[]);return void 0===e?(0,O.jsx)(vx,{}):(0,O.jsx)(Un,{maxSnack:10,anchorOrigin:{vertical:"top",horizontal:"right"},children:(0,O.jsx)(ot,{children:(0,O.jsx)("div",{className:"mar-top",children:e?(0,O.jsx)(lt,{children:(0,O.jsx)(Rf,{children:(0,O.jsx)(Ov,{children:(0,O.jsx)(Af,{children:(0,O.jsx)(vx,{})})})})}):(0,O.jsx)(lt,{children:(0,O.jsx)(ad,{handleAuth:()=>{n(!0)}})})})})})},yx=e=>{e&&e instanceof Function&&n.e(787).then(n.bind(n,787)).then((t=>{let{getCLS:n,getFID:r,getFCP:o,getLCP:a,getTTFB:i}=t;n(e),r(e),o(e),a(e),i(e)}))};console.log=()=>{},console.error=()=>{},console.debug=()=>{};o.createRoot(document.getElementById("root")).render((0,O.jsx)(ix,{children:(0,O.jsx)(t.StrictMode,{children:(0,O.jsx)(bx,{})})})),yx()})()})(); 206 206 //# sourceMappingURL=main.js.map -
wp-fastest-site-search/trunk/changelog.txt
r3336091 r3336252 1 1 == Changelog == 2 3 2024-07-29 - version 5.4.6 4 * Fixed log file write failures to prevent fatal errors. 2 5 3 6 2024-07-29 - version 5.4.5 -
wp-fastest-site-search/trunk/expertrecsearch.php
r3336091 r3336252 23 23 * Plugin URI: https://blog.expertrec.com/wordpress-search-not-working-how-to-fix/ 24 24 * Description: Expertrec Search enhances your site's search functionality with both <strong>speed</strong> and <strong>reliability</strong>. It effectively <strong>prevents adding any load to your WordPress server</strong> while your users perform searches. 25 * Version: 5.4. 525 * Version: 5.4.6 26 26 * Author: Expertrec 27 27 * Author URI: https://www.expertrec.com/wordpress-search-plugin/ … … 41 41 require_once __DIR__ . '/vendor/autoload.php'; 42 42 43 define( 'EXPERTREC_VERSION', '5.4. 5' );43 define( 'EXPERTREC_VERSION', '5.4.6' ); 44 44 define( 'EXPERTREC_NAME', 'expertrecsearch' ); 45 45 -
wp-fastest-site-search/trunk/includes/class-expertrecsearch-logger.php
r3336091 r3336252 149 149 $ret = $this->wp_filesystem->put_contents( $file_writer, $log_msg . "\n", FILE_APPEND ); 150 150 if ( false === $ret ) { 151 echo 'Error writing to log file';152 print_r( $file_writer );153 echo esc_html( $log_msg );154 exit;155 151 } 156 152 } -
wp-fastest-site-search/trunk/vendor/autoload.php
r3336091 r3336252 20 20 require_once __DIR__ . '/composer/autoload_real.php'; 21 21 22 return ComposerAutoloaderInit 4f91e3059938fb29b980a2df7e9b505d::getLoader();22 return ComposerAutoloaderInitaf8cb8fb44cbd4cb427f42e04971df36::getLoader(); -
wp-fastest-site-search/trunk/vendor/composer/autoload_real.php
r3336091 r3336252 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit 4f91e3059938fb29b980a2df7e9b505d5 class ComposerAutoloaderInitaf8cb8fb44cbd4cb427f42e04971df36 6 6 { 7 7 private static $loader; … … 25 25 require __DIR__ . '/platform_check.php'; 26 26 27 spl_autoload_register(array('ComposerAutoloaderInit 4f91e3059938fb29b980a2df7e9b505d', 'loadClassLoader'), true, true);27 spl_autoload_register(array('ComposerAutoloaderInitaf8cb8fb44cbd4cb427f42e04971df36', 'loadClassLoader'), true, true); 28 28 self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__)); 29 spl_autoload_unregister(array('ComposerAutoloaderInit 4f91e3059938fb29b980a2df7e9b505d', 'loadClassLoader'));29 spl_autoload_unregister(array('ComposerAutoloaderInitaf8cb8fb44cbd4cb427f42e04971df36', 'loadClassLoader')); 30 30 31 31 require __DIR__ . '/autoload_static.php'; 32 call_user_func(\Composer\Autoload\ComposerStaticInit 4f91e3059938fb29b980a2df7e9b505d::getInitializer($loader));32 call_user_func(\Composer\Autoload\ComposerStaticInitaf8cb8fb44cbd4cb427f42e04971df36::getInitializer($loader)); 33 33 34 34 $loader->register(true); 35 35 36 $filesToLoad = \Composer\Autoload\ComposerStaticInit 4f91e3059938fb29b980a2df7e9b505d::$files;36 $filesToLoad = \Composer\Autoload\ComposerStaticInitaf8cb8fb44cbd4cb427f42e04971df36::$files; 37 37 $requireFile = \Closure::bind(static function ($fileIdentifier, $file) { 38 38 if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) { -
wp-fastest-site-search/trunk/vendor/composer/autoload_static.php
r3336091 r3336252 5 5 namespace Composer\Autoload; 6 6 7 class ComposerStaticInit 4f91e3059938fb29b980a2df7e9b505d7 class ComposerStaticInitaf8cb8fb44cbd4cb427f42e04971df36 8 8 { 9 9 public static $files = array ( … … 49 49 { 50 50 return \Closure::bind(function () use ($loader) { 51 $loader->prefixLengthsPsr4 = ComposerStaticInit 4f91e3059938fb29b980a2df7e9b505d::$prefixLengthsPsr4;52 $loader->prefixDirsPsr4 = ComposerStaticInit 4f91e3059938fb29b980a2df7e9b505d::$prefixDirsPsr4;53 $loader->prefixesPsr0 = ComposerStaticInit 4f91e3059938fb29b980a2df7e9b505d::$prefixesPsr0;54 $loader->classMap = ComposerStaticInit 4f91e3059938fb29b980a2df7e9b505d::$classMap;51 $loader->prefixLengthsPsr4 = ComposerStaticInitaf8cb8fb44cbd4cb427f42e04971df36::$prefixLengthsPsr4; 52 $loader->prefixDirsPsr4 = ComposerStaticInitaf8cb8fb44cbd4cb427f42e04971df36::$prefixDirsPsr4; 53 $loader->prefixesPsr0 = ComposerStaticInitaf8cb8fb44cbd4cb427f42e04971df36::$prefixesPsr0; 54 $loader->classMap = ComposerStaticInitaf8cb8fb44cbd4cb427f42e04971df36::$classMap; 55 55 56 56 }, null, ClassLoader::class);
Note: See TracChangeset
for help on using the changeset viewer.