!function(){"use strict";var e,t={7005:function(e,t,r){var o=r(1609),n=Symbol.for("react.element"),l=(Symbol.for("react.fragment"),Object.prototype.hasOwnProperty),a=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};t.jsx=function(e,t,r){var o,c={},s=null,u=null;for(o in void 0!==r&&(s=""+r),void 0!==t.key&&(s=""+t.key),void 0!==t.ref&&(u=t.ref),t)l.call(t,o)&&!i.hasOwnProperty(o)&&(c[o]=t[o]);if(e&&e.defaultProps)for(o in t=e.defaultProps)void 0===c[o]&&(c[o]=t[o]);return{$$typeof:n,type:e,key:s,ref:u,props:c,_owner:a.current}}},9255:function(e,t,r){e.exports=r(7005)},2500:function(e,t,r){var o=window.wp.blocks,n=window.wp.primitives,l=r(9255),a=(0,l.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,l.jsx)(n.Path,{d:"m4 5.5h2v6.5h1.5v-6.5h2v-1.5h-5.5zm16 10.5h-16v-1.5h16zm-7 4h-9v-1.5h9z"})}),i=window.wp.blockEditor,c=window.wp.i18n,s=window.wp.components,u=(window.wp.data,window.wp.element,window.wp.coreData,window.wp.htmlEntities,window.wp.compose);function p(e){let{attributes:t,setAttributes:r}=e;const{placeholder:o}=t,n=(0,u.useViewportMatch)("medium","<")?{}:{popoverProps:{placement:"left-start",offset:259}};return React.createElement(s.__experimentalToolsPanel,{label:(0,c.__)("Labels","surecart"),resetAll:()=>r({placeholder:""}),dropdownMenuProps:n},React.createElement(s.__experimentalToolsPanelItem,{label:(0,c.__)("Placeholder","surecart"),hasValue:()=>""!==o,onDeselect:()=>r({placeholder:""})},React.createElement(s.TextControl,{label:(0,c.__)("Placeholder","surecart"),value:o,onChange:e=>r({placeholder:e}),help:(0,c.__)("Placeholder text shown in the input field.","surecart"),isBlock:!0,__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0})))}var d=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"surecart/product-review-form-title","title":"Review Form Title","description":"Provide a title input field for product reviews.","version":"1.0.0","category":"surecart-product-page","example":{},"ancestor":["surecart/product-review-form"],"attributes":{"label":{"type":"string","default":"Title"},"placeholder":{"type":"string","default":"Enter a title for your review"},"text_align":{"type":"string"}},"supports":{"interactivity":true,"color":{"gradients":true,"link":false,"__experimentalDefaultControls":{"background":true,"text":true}},"spacing":{"margin":true,"padding":true,"__experimentalDefaultControls":{"padding":true}},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontWeight":true},"__experimentalBorder":{"color":true,"radius":true,"style":true,"width":true,"__experimentalDefaultControls":{"color":true,"radius":true,"style":true,"width":true}}},"textdomain":"surecart","render":"file:./view.php","editorScript":"file:./index.js","style":["surecart-form-control","file:./style-index.css"],"viewScriptModule":["@surecart/product-review-form"]}');(0,o.registerBlockType)(d,{icon:a,edit:function(e){let{attributes:t,setAttributes:r}=e;const{label:o,placeholder:n,text_align:l}=t,a=(0,i.useBlockProps)({style:{textAlign:l||"left"}});return React.createElement(React.Fragment,null,React.createElement(i.BlockControls,{group:"block"},React.createElement(i.AlignmentControl,{value:l,onChange:e=>{r({text_align:e})}})),React.createElement(i.InspectorControls,null,React.createElement(p,{attributes:t,setAttributes:r})),React.createElement("div",a,o&&React.createElement(i.RichText,{tagName:"label",className:"sc-form-label","aria-label":(0,c.__)("Label","surecart"),placeholder:(0,c.__)("Review Title","surecart"),value:o,onChange:e=>r({label:e}),withoutInteractiveFormatting:!0,allowedFormats:["core/bold","core/italic"]}),React.createElement("input",{type:"text",name:"title",className:"sc-form-control",placeholder:n,required:!0})))}})},1609:function(e){e.exports=window.React}},r={};function o(e){var n=r[e];if(void 0!==n)return n.exports;var l=r[e]={exports:{}};return t[e](l,l.exports,o),l.exports}o.m=t,e=[],o.O=function(t,r,n,l){if(!r){var a=1/0;for(u=0;u<e.length;u++){r=e[u][0],n=e[u][1],l=e[u][2];for(var i=!0,c=0;c<r.length;c++)(!1&l||a>=l)&&Object.keys(o.O).every((function(e){return o.O[e](r[c])}))?r.splice(c--,1):(i=!1,l<a&&(a=l));if(i){e.splice(u--,1);var s=n();void 0!==s&&(t=s)}}return t}l=l||0;for(var u=e.length;u>0&&e[u-1][2]>l;u--)e[u]=e[u-1];e[u]=[r,n,l]},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){var e={6593:0,2917:0};o.O.j=function(t){return 0===e[t]};var t=function(t,r){var n,l,a=r[0],i=r[1],c=r[2],s=0;if(a.some((function(t){return 0!==e[t]}))){for(n in i)o.o(i,n)&&(o.m[n]=i[n]);if(c)var u=c(o)}for(t&&t(r);s<a.length;s++)l=a[s],o.o(e,l)&&e[l]&&e[l][0](),e[l]=0;return o.O(u)},r=self.webpackChunk_surecart_blocks_next=self.webpackChunk_surecart_blocks_next||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))}();var n=o.O(void 0,[2917],(function(){return o(2500)}));n=o.O(n)}();