(()=>{"use strict";var e,t={482(){const e=window.wp.blocks,t=window.ReactJSXRuntime,i=window.wp.i18n,s=window.wp.blockEditor,r=window.wp.element,n=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"title":"FAQ Item","description":"A block to generate a single FAQ item","version":"1.0.0","textdomain":"filter-ai","name":"filter-ai/faq-item","parent":["filter-ai/faqs"],"icon":"admin-comments","category":"filter-ai","attributes":{"question":{"type":"string"},"questionAlign":{"type":"string"}},"editorScript":"file:./index.js","style":"file:./style-index.css","supports":{"color":{"background":false,"text":false,"heading":true}}}');(0,e.registerBlockType)(n,{edit:({attributes:e,setAttributes:n,context:a})=>{const o=(0,s.useBlockProps)();return(0,r.useEffect)(()=>{n({headingColor:a["filter-ai/faqs/heading-color"]})},[n,a]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(s.BlockControls,{children:(0,t.jsx)(s.AlignmentToolbar,{value:e.questionAlign,onChange:e=>n({questionAlign:e})})}),(0,t.jsx)("div",Object.assign({},o,{children:(0,t.jsxs)("div",{className:"filter-ai-faq-item",children:[(0,t.jsx)("div",{className:"filter-ai-faq-item-question",children:(0,t.jsx)(s.RichText,{value:e.question,onChange:e=>n({question:e}),placeholder:(0,i.__)("Question","filter-ai"),tagName:"h3",style:{textAlign:e.questionAlign}},"faq-item-question-edit")}),(0,t.jsx)("div",{className:"filter-ai-faq-item-answer",children:(0,t.jsx)("div",{children:(0,t.jsx)(s.InnerBlocks,{template:[["core/paragraph",{placeholder:(0,i.__)("Answer","filter-ai")}]]})})})]})}))]})},save:({attributes:e})=>{const i=s.useBlockProps.save(e);return(0,t.jsx)("div",Object.assign({},i,{children:(0,t.jsxs)("details",{className:"filter-ai-faq-item",itemScope:!0,itemProp:"mainEntity",itemType:"https://schema.org/Question",children:[(0,t.jsx)("summary",{className:"filter-ai-faq-item-question",itemProp:"name",children:(0,t.jsx)(s.RichText.Content,{tagName:"h3",value:e.question,style:{textAlign:e.questionAlign}})}),(0,t.jsx)("div",{className:"filter-ai-faq-item-answer",itemScope:!0,itemProp:"acceptedAnswer",itemType:"https://schema.org/Answer",children:(0,t.jsx)("div",{itemProp:"text",children:(0,t.jsx)(s.InnerBlocks.Content,{})})})]})}))}})}},i={};function s(e){var r=i[e];if(void 0!==r)return r.exports;var n=i[e]={exports:{}};return t[e](n,n.exports,s),n.exports}s.m=t,e=[],s.O=(t,i,r,n)=>{if(!i){var a=1/0;for(d=0;d<e.length;d++){for(var[i,r,n]=e[d],o=!0,l=0;l<i.length;l++)(!1&n||a>=n)&&Object.keys(s.O).every(e=>s.O[e](i[l]))?i.splice(l--,1):(o=!1,n<a&&(a=n));if(o){e.splice(d--,1);var c=r();void 0!==c&&(t=c)}}return t}n=n||0;for(var d=e.length;d>0&&e[d-1][2]>n;d--)e[d]=e[d-1];e[d]=[i,r,n]},s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={781:0,969:0};s.O.j=t=>0===e[t];var t=(t,i)=>{var r,n,[a,o,l]=i,c=0;if(a.some(t=>0!==e[t])){for(r in o)s.o(o,r)&&(s.m[r]=o[r]);if(l)var d=l(s)}for(t&&t(i);c<a.length;c++)n=a[c],s.o(e,n)&&e[n]&&e[n][0](),e[n]=0;return s.O(d)},i=globalThis.webpackChunkfilter_ai=globalThis.webpackChunkfilter_ai||[];i.forEach(t.bind(null,0)),i.push=t.bind(null,i.push.bind(i))})();var r=s.O(void 0,[969],()=>s(482));r=s.O(r)})();