(()=>{"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;var l;const s=null!==(l=window)&&void 0!==l&&l._gutenify_vars?window._gutenify_vars:{},{is_pro_activated:r,pro_account_url:c,pro_license_status:g,title:p,prefix:u,slug:d,authorWebSite:m,authorDemoWebSite:f,authorWebSiteProPage:h,defaultTheme:_,authorWebSiteSupport:$,plugin_directory_url:w,brand_color:b,plugin_main_version:v,documentationsURL:C,pro_title:y,active_blocks:k,plugin_main_camel_case_name:S}=s,M=(null!=s&&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">',y,"</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`)}))}))}))})();