(()=>{"use strict";var e={n:t=>{var n=t&&t.__esModule?()=>t.default:()=>t;return e.d(n,{a:n}),n},d:(t,n)=>{for(var o in n)e.o(n,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:n[o]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)};const t=window.wp.domReady;var n=e.n(t);const o=window.jQuery;var a=e.n(o);const i=window.wp.i18n,l="gutenify",s=window?.[`_${l}_vars`]?window[`_${l}_vars`]:{},{is_pro_activated:r,pro_account_url:c,pro_license_status:g,title:p,prefix:d,slug:u,authorWebSite:m,authorDemoWebSite:f,authorWebSiteProPage:h,defaultTheme:$,authorWebSiteSupport:_,plugin_directory_url:w,brand_color:b,plugin_main_version:C,documentationsURL:v,pro_title:k,active_blocks:y,plugin_main_camel_case_name:S}=s,M=(s?.siteUrl?s.siteUrl:s.site_url,(0,i.sprintf)("Want to enjoy all feature of blocks? Checkout %1$s%2$s%3$s.",'<a href="'+h+'" target="_blank">',k,"</a>"),{pluginMainSlug:"gutenify",pluginMainCamelCaseName:S,pluginMainFunctionPrefix:"gutenify"}),{pluginMainSlug:P}=M;n()((function(){a()((function(e){e(`.wp-block-${P}-faqs`).each((function(){e(this).hasClass(`${P}-block-faq-open-all`)||(e(this).find(`.${P}-content-toggle-item-wrapper`).removeClass(`${P}-content-toggle-item-open`).addClass(`${P}-content-toggle-item-closed`),e(this).hasClass(`${P}-block-faq-open-first`)&&e(this).find(`.${P}-block-content-toggle-item-wrapper:first-child`).find(`.${P}-content-toggle-item-wrapper`).removeClass(`${P}-content-toggle-item-closed`).addClass(`${P}-content-toggle-item-open`))})),e(document).on("click",`.${P}-content-toggle-item-wrapper .${P}-content-toggle-item-header`,(function(){e(this).parent().parent().parent().hasClass(`${P}-block-faq-accordion`)&&e(this).parent().parent().siblings().children().removeClass(`${P}-content-toggle-item-open`).addClass(`${P}-content-toggle-item-closed`),e(this).parent().hasClass(`${P}-content-toggle-item-open`)?e(this).parent().removeClass(`${P}-content-toggle-item-open`).addClass(`${P}-content-toggle-item-closed`):e(this).parent().addClass(`${P}-content-toggle-item-open`).removeClass(`${P}-content-toggle-item-closed`)}))}))}))})();