たらの野菜あんかけの作り方・レシピ|揚げずに作れて彩り豊か!

▸魚類

ようこそ、「ムク家のごはんブログ」へ!

本日は「たらの野菜あんかけ」のレシピを紹介します。

両面カリカリに焼いたたらに、ほくほくのじゃがいも、その上から彩り野菜がたくさん入ったあんをかけています!

あんかけは中華風の味つけにしています。

甘酢あんで作ったたらの甘酢あんかけのレシピも公開していますので、気になる方はご覧ください。

是非参考にしていただければ幸いです!

たらの野菜あんかけの作り方 ~材料と下ごしらえ編~

まず初めに材料と下ごしらえの紹介をします。

【材 料 (2人分)】 調理時間:20

  • 皮なしたらの切身(90g):2切れ
  • じゃがいも:1個
  • にんじん:30g
  • 玉ねぎ:1/4個
  • ピーマン:1個
(A)漬けダレ
  • 水:150ml
  • 酒:小匙1
  • 醤油:小匙1
  • 鶏がらスープの素:小匙1
  • オイスターソース:小匙1/2
(B)水溶き片栗粉
  • 片栗粉:大匙1
  • 水:大匙2
  • 塩(下ごしらえ用):少々
  • 胡椒:少々
  • 片栗粉:大匙1
  • サラダ油:大匙2

【下ごしらえ】

  • たらの切身
    1. 両面に塩をふって10分置き、ペーパータオルで水分をふき取ります。
    2. 一口大に切って胡椒をふり、片栗粉をまぶして余計な粉は落とします。

塩をふると、魚の中の余計な水分や臭みを含む水分が出てくるので、しっかり拭き取りましょう。

今回は皮なしのものを使いましたが、皮ありでもOKです。

  • じゃがいも
    1. 皮を剥いて輪切りにします。
    2. 耐熱ボウルに入れてラップをし、600Wの電子レンジで5分加熱します。
  • にんじん
    • 皮を剥き、細切りにします。
  • 玉ねぎ
    • 薄くスライスします。
  • ピーマン
    • 種とわたをとり、細切りにします。
  • 合わせ調味料(A)
    • ボウルに入れて混ぜあわせます。
  • 水溶き片栗粉(B)
    • ボウルに入れて混ぜあわせます。

たらの野菜あんかけの作り方 ~調理編~

  1. 熱したフライパンにサラダ油(大匙1)をいれてたらを焼き、両面に焼き色がついたら取り出します。
  2. フライパンを綺麗にして残りのサラダ油をいれ、じゃがいも以外の野菜をさっと炒めます。
  3. (A)を加えて混ぜ合わせ、(B)を入れてとろみをつけます。
  4. 器にたらとじゃがいもを盛り付け、あんをかけます。

【まとめ】たらとたっぷり野菜をあんかけでいただきます!

鱈とじゃがいものたっぷり野菜中華あんかけ
たらの野菜あんかけ

以上、「たらの野菜あんかけ」の作り方・レシピ紹介でした!

最後に「たらの野菜あんかけ」のポイントをまとめます。

たらの野菜あんかけのポイント
  • 塩をふると、魚の中の余計な水分や臭みを含む水分が出てくるので、しっかり拭き取りましょう。
  • 今回、皮なしのたらを使いましたが、皮ありでもOKです。

本日の料理がいいなと思った方は試してみてください!

今夜のおかずにいかがでしょうか?

それでは、また会いましょう!!

コメント

");const r=J?J.createHTML(e):e;if(Ve===He)try{t=(new U).parseFromString(r,Ye)}catch(e){}if(!t||!t.documentElement){t=Q.createDocument(Ve,"template",null);try{t.documentElement.innerHTML=qe?Z:r}catch(e){}}const o=t.body||t.documentElement;return e&&n&&o.insertBefore(s.createTextNode(n),o.childNodes[0]||null),Ve===He?ne.call(t,_e?"html":"body")[0]:_e?t.documentElement:o},ut=function(e){return ee.call(e.ownerDocument||e,e,F.SHOW_ELEMENT|F.SHOW_COMMENT|F.SHOW_TEXT,null,!1)},dt=function(e){return"object"==typeof x?e instanceof x:e&&"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},ft=function(e,t,n){oe[e]&&u(oe[e],(e=>{e.call(r,t,n,Ze)}))},pt=function(e){let t;if(ft("beforeSanitizeElements",e,null),(n=e)instanceof z&&("string"!=typeof n.nodeName||"string"!=typeof n.textContent||"function"!=typeof n.removeChild||!(n.attributes instanceof I)||"function"!=typeof n.removeAttribute||"function"!=typeof n.setAttribute||"string"!=typeof n.namespaceURI||"function"!=typeof n.insertBefore||"function"!=typeof n.hasChildNodes))return st(e),!0;var n;const o=Je(e.nodeName);if(ft("uponSanitizeElement",e,{tagName:o,allowedTags:pe}),e.hasChildNodes()&&!dt(e.firstElementChild)&&(!dt(e.content)||!dt(e.content.firstElementChild))&&v(/<[/\w]/g,e.innerHTML)&&v(/<[/\w]/g,e.textContent))return st(e),!0;if(!pe[o]||be[o]){if(!be[o]&&ht(o)){if(ye.tagNameCheck instanceof RegExp&&v(ye.tagNameCheck,o))return!1;if(ye.tagNameCheck instanceof Function&&ye.tagNameCheck(o))return!1}if(Pe&&!De[o]){const t=X(e)||e.parentNode,n=Y(e)||e.childNodes;if(n&&t)for(let r=n.length-1;r>=0;--r)t.insertBefore(H(n[r],!0),G(e))}return st(e),!0}return e instanceof E&&!function(e){let t=X(e);t&&t.tagName||(t={namespaceURI:Ve,tagName:"template"});const n=p(e.tagName),r=p(t.tagName);return!!Ke[e.namespaceURI]&&(e.namespaceURI===We?t.namespaceURI===He?"svg"===n:t.namespaceURI===Be?"svg"===n&&("annotation-xml"===r||nt[r]):Boolean(at[n]):e.namespaceURI===Be?t.namespaceURI===He?"math"===n:t.namespaceURI===We?"math"===n&&rt[r]:Boolean(it[n]):e.namespaceURI===He?!(t.namespaceURI===We&&!rt[r])&&!(t.namespaceURI===Be&&!nt[r])&&!it[n]&&(ot[n]||!at[n]):!("application/xhtml+xml"!==Ye||!Ke[e.namespaceURI]))}(e)?(st(e),!0):"noscript"!==o&&"noembed"!==o&&"noframes"!==o||!v(/<\/no(script|embed|frames)/i,e.innerHTML)?(Oe&&3===e.nodeType&&(t=e.textContent,t=g(t,ae," "),t=g(t,ie," "),t=g(t,se," "),e.textContent!==t&&(f(r.removed,{element:e.cloneNode()}),e.textContent=t)),ft("afterSanitizeElements",e,null),!1):(st(e),!0)},mt=function(e,t,n){if(Ne&&("id"===t||"name"===t)&&(n in s||n in Qe))return!1;if(xe&&!ve[t]&&v(le,t));else if(we&&v(ce,t));else if(!he[t]||ve[t]){if(!(ht(e)&&(ye.tagNameCheck instanceof RegExp&&v(ye.tagNameCheck,e)||ye.tagNameCheck instanceof Function&&ye.tagNameCheck(e))&&(ye.attributeNameCheck instanceof RegExp&&v(ye.attributeNameCheck,t)||ye.attributeNameCheck instanceof Function&&ye.attributeNameCheck(t))||"is"===t&&ye.allowCustomizedBuiltInElements&&(ye.tagNameCheck instanceof RegExp&&v(ye.tagNameCheck,n)||ye.tagNameCheck instanceof Function&&ye.tagNameCheck(n))))return!1}else if(Ue[t]);else if(v(fe,g(n,de,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==y(n,"data:")||!Ie[e])if(Ee&&!v(ue,g(n,de,"")));else if(n)return!1;return!0},ht=function(e){return e.indexOf("-")>0},gt=function(e){let t,n,o,a;ft("beforeSanitizeAttributes",e,null);const{attributes:i}=e;if(!i)return;const s={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:he};for(a=i.length;a--;){t=i[a];const{name:l,namespaceURI:c}=t;if(n="value"===l?t.value:b(t.value),o=Je(l),s.attrName=o,s.attrValue=n,s.keepAttr=!0,s.forceKeepAttr=void 0,ft("uponSanitizeAttribute",e,s),n=s.attrValue,s.forceKeepAttr)continue;if(lt(l,e),!s.keepAttr)continue;if(!Se&&v(/\/>/i,n)){lt(l,e);continue}Oe&&(n=g(n,ae," "),n=g(n,ie," "),n=g(n,se," "));const u=Je(e.nodeName);if(mt(u,o,n)){if(!je||"id"!==o&&"name"!==o||(lt(l,e),n="user-content-"+n),J&&"object"==typeof $&&"function"==typeof $.getAttributeType)if(c);else switch($.getAttributeType(u,o)){case"TrustedHTML":n=J.createHTML(n);break;case"TrustedScriptURL":n=J.createScriptURL(n)}try{c?e.setAttributeNS(c,l,n):e.setAttribute(l,n),d(r.removed)}catch(e){}}}ft("afterSanitizeAttributes",e,null)},yt=function e(t){let n;const r=ut(t);for(ft("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)ft("uponSanitizeShadowNode",n,null),pt(n)||(n.content instanceof l&&e(n.content),gt(n));ft("afterSanitizeShadowDOM",t,null)};return r.sanitize=function(e){let t,n,a,i,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(qe=!e,qe&&(e="\x3c!--\x3e"),"string"!=typeof e&&!dt(e)){if("function"!=typeof e.toString)throw w("toString is not a function");if("string"!=typeof(e=e.toString()))throw w("dirty is not a string, aborting")}if(!r.isSupported)return e;if(Ce||tt(s),r.removed=[],"string"==typeof e&&(Me=!1),Me){if(e.nodeName){const t=Je(e.nodeName);if(!pe[t]||be[t])throw w("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof x)t=ct("\x3c!----\x3e"),n=t.ownerDocument.importNode(e,!0),1===n.nodeType&&"BODY"===n.nodeName||"HTML"===n.nodeName?t=n:t.appendChild(n);else{if(!ke&&!Oe&&!_e&&-1===e.indexOf("<"))return J&&Te?J.createHTML(e):e;if(t=ct(e),!t)return ke?null:Te?Z:""}t&&Ae&&st(t.firstChild);const c=ut(Me?e:t);for(;a=c.nextNode();)pt(a)||(a.content instanceof l&&yt(a.content),gt(a));if(Me)return e;if(ke){if(Re)for(i=te.call(t.ownerDocument);t.firstChild;)i.appendChild(t.firstChild);else i=t;return(he.shadowroot||he.shadowrootmode)&&(i=re.call(o,i,!0)),i}let u=_e?t.outerHTML:t.innerHTML;return _e&&pe["!doctype"]&&t.ownerDocument&&t.ownerDocument.doctype&&t.ownerDocument.doctype.name&&v(V,t.ownerDocument.doctype.name)&&(u="\n"+u),Oe&&(u=g(u,ae," "),u=g(u,ie," "),u=g(u,se," ")),J&&Te?J.createHTML(u):u},r.setConfig=function(e){tt(e),Ce=!0},r.clearConfig=function(){Ze=null,Ce=!1},r.isValidAttribute=function(e,t,n){Ze||tt({});const r=Je(e),o=Je(t);return mt(r,o,n)},r.addHook=function(e,t){"function"==typeof t&&(oe[e]=oe[e]||[],f(oe[e],t))},r.removeHook=function(e){if(oe[e])return d(oe[e])},r.removeHooks=function(e){oe[e]&&(oe[e]=[])},r.removeAllHooks=function(){oe={}},r}()}()},632:function(e,t,n){var r;!function(){"use strict";var o=!("undefined"==typeof window||!window.document||!window.document.createElement),a={canUseDOM:o,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:o&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:o&&!!window.screen};void 0===(r=function(){return a}.call(t,n,t,e))||(e.exports=r)}()},682:function(e,t,n){"use strict";var r=n(573),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?i:s[e.$$typeof]||o}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=i;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,m=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(m){var o=p(n);o&&o!==m&&e(t,o,r)}var i=u(n);d&&(i=i.concat(d(n)));for(var s=l(t),h=l(n),g=0;g0&&0==(b-=1)&&u.show(t),n.props.shouldFocusAfterRender&&(n.props.shouldReturnFocusAfterClose?(l.returnFocus(n.props.preventScroll),l.teardownScopedFocus()):l.popWithoutFocus()),n.props.onAfterClose&&n.props.onAfterClose(),m.default.deregister(n)},n.open=function(){n.beforeOpen(),n.state.afterOpen&&n.state.beforeClose?(clearTimeout(n.closeTimer),n.setState({beforeClose:!1})):(n.props.shouldFocusAfterRender&&(l.setupScopedFocus(n.node),l.markForFocusLater()),n.setState({isOpen:!0},(function(){n.openAnimationFrame=requestAnimationFrame((function(){n.setState({afterOpen:!0}),n.props.isOpen&&n.props.onAfterOpen&&n.props.onAfterOpen({overlayEl:n.overlay,contentEl:n.content})}))})))},n.close=function(){n.props.closeTimeoutMS>0?n.closeWithTimeout():n.closeWithoutTimeout()},n.focusContent=function(){return n.content&&!n.contentHasFocus()&&n.content.focus({preventScroll:!0})},n.closeWithTimeout=function(){var e=Date.now()+n.props.closeTimeoutMS;n.setState({beforeClose:!0,closesAt:e},(function(){n.closeTimer=setTimeout(n.closeWithoutTimeout,n.state.closesAt-Date.now())}))},n.closeWithoutTimeout=function(){n.setState({beforeClose:!1,isOpen:!1,afterOpen:!1,closesAt:null},n.afterClose)},n.handleKeyDown=function(e){(function(e){return"Tab"===e.code||9===e.keyCode})(e)&&(0,c.default)(n.content,e),n.props.shouldCloseOnEsc&&function(e){return"Escape"===e.code||27===e.keyCode}(e)&&(e.stopPropagation(),n.requestClose(e))},n.handleOverlayOnClick=function(e){null===n.shouldClose&&(n.shouldClose=!0),n.shouldClose&&n.props.shouldCloseOnOverlayClick&&(n.ownerHandlesClose()?n.requestClose(e):n.focusContent()),n.shouldClose=null},n.handleContentOnMouseUp=function(){n.shouldClose=!1},n.handleOverlayOnMouseDown=function(e){n.props.shouldCloseOnOverlayClick||e.target!=n.overlay||e.preventDefault()},n.handleContentOnClick=function(){n.shouldClose=!1},n.handleContentOnMouseDown=function(){n.shouldClose=!1},n.requestClose=function(e){return n.ownerHandlesClose()&&n.props.onRequestClose(e)},n.ownerHandlesClose=function(){return n.props.onRequestClose},n.shouldBeClosed=function(){return!n.state.isOpen&&!n.state.beforeClose},n.contentHasFocus=function(){return document.activeElement===n.content||n.content.contains(document.activeElement)},n.buildClassName=function(e,t){var r="object"===(void 0===t?"undefined":o(t))?t:{base:y[e],afterOpen:y[e]+"--after-open",beforeClose:y[e]+"--before-close"},a=r.base;return n.state.afterOpen&&(a=a+" "+r.afterOpen),n.state.beforeClose&&(a=a+" "+r.beforeClose),"string"==typeof t&&t?a+" "+t:a},n.attributesFromObject=function(e,t){return Object.keys(t).reduce((function(n,r){return n[e+"-"+r]=t[r],n}),{})},n.state={afterOpen:!1,beforeClose:!1},n.shouldClose=null,n.moveFromContentToOverlay=null,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),a(t,[{key:"componentDidMount",value:function(){this.props.isOpen&&this.open()}},{key:"componentDidUpdate",value:function(e,t){this.props.isOpen&&!e.isOpen?this.open():!this.props.isOpen&&e.isOpen&&this.close(),this.props.shouldFocusAfterRender&&this.state.isOpen&&!t.isOpen&&this.focusContent()}},{key:"componentWillUnmount",value:function(){this.state.isOpen&&this.afterClose(),clearTimeout(this.closeTimer),cancelAnimationFrame(this.openAnimationFrame)}},{key:"beforeOpen",value:function(){var e=this.props,t=e.appElement,n=e.ariaHideApp,r=e.htmlOpenClassName,o=e.bodyOpenClassName,a=e.parentSelector,i=a&&a().ownerDocument||document;o&&d.add(i.body,o),r&&d.add(i.getElementsByTagName("html")[0],r),n&&(b+=1,u.hide(t)),m.default.register(this)}},{key:"render",value:function(){var e=this.props,t=e.id,n=e.className,o=e.overlayClassName,a=e.defaultStyles,i=e.children,s=n?{}:a.content,l=o?{}:a.overlay;if(this.shouldBeClosed())return null;var c={ref:this.setOverlayRef,className:this.buildClassName("overlay",o),style:r({},l,this.props.style.overlay),onClick:this.handleOverlayOnClick,onMouseDown:this.handleOverlayOnMouseDown},u=r({id:t,ref:this.setContentRef,style:r({},s,this.props.style.content),className:this.buildClassName("content",n),tabIndex:"-1",onKeyDown:this.handleKeyDown,onMouseDown:this.handleContentOnMouseDown,onMouseUp:this.handleContentOnMouseUp,onClick:this.handleContentOnClick,role:this.props.role,"aria-label":this.props.contentLabel},this.attributesFromObject("aria",r({modal:!0},this.props.aria)),this.attributesFromObject("data",this.props.data||{}),{"data-testid":this.props.testId}),d=this.props.contentElement(u,i);return this.props.overlayElement(c,d)}}]),t}(i.Component);v.defaultProps={style:{overlay:{},content:{}},defaultStyles:{}},v.propTypes={isOpen:s.default.bool.isRequired,defaultStyles:s.default.shape({content:s.default.object,overlay:s.default.object}),style:s.default.shape({content:s.default.object,overlay:s.default.object}),className:s.default.oneOfType([s.default.string,s.default.object]),overlayClassName:s.default.oneOfType([s.default.string,s.default.object]),parentSelector:s.default.func,bodyOpenClassName:s.default.string,htmlOpenClassName:s.default.string,ariaHideApp:s.default.bool,appElement:s.default.oneOfType([s.default.instanceOf(p.default),s.default.instanceOf(f.SafeHTMLCollection),s.default.instanceOf(f.SafeNodeList),s.default.arrayOf(s.default.instanceOf(p.default))]),onAfterOpen:s.default.func,onAfterClose:s.default.func,onRequestClose:s.default.func,closeTimeoutMS:s.default.number,shouldFocusAfterRender:s.default.bool,shouldCloseOnOverlayClick:s.default.bool,shouldReturnFocusAfterClose:s.default.bool,preventScroll:s.default.bool,role:s.default.string,contentLabel:s.default.string,aria:s.default.object,data:s.default.object,children:s.default.node,shouldCloseOnEsc:s.default.bool,overlayRef:s.default.func,contentRef:s.default.func,id:s.default.string,overlayElement:s.default.func,contentElement:s.default.func,testId:s.default.string},t.default=v,e.exports=t.default},677:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){i&&(i.removeAttribute?i.removeAttribute("aria-hidden"):null!=i.length?i.forEach((function(e){return e.removeAttribute("aria-hidden")})):document.querySelectorAll(i).forEach((function(e){return e.removeAttribute("aria-hidden")}))),i=null},t.log=function(){},t.assertNodeList=s,t.setElement=function(e){var t=e;if("string"==typeof t&&a.canUseDOM){var n=document.querySelectorAll(t);s(n,t),t=n}return i=t||i},t.validateElement=l,t.hide=function(e){var t=!0,n=!1,r=void 0;try{for(var o,a=l(e)[Symbol.iterator]();!(t=(o=a.next()).done);t=!0)o.value.setAttribute("aria-hidden","true")}catch(e){n=!0,r=e}finally{try{!t&&a.return&&a.return()}finally{if(n)throw r}}},t.show=function(e){var t=!0,n=!1,r=void 0;try{for(var o,a=l(e)[Symbol.iterator]();!(t=(o=a.next()).done);t=!0)o.value.removeAttribute("aria-hidden")}catch(e){n=!0,r=e}finally{try{!t&&a.return&&a.return()}finally{if(n)throw r}}},t.documentNotReadyOrSSRTesting=function(){i=null};var r,o=(r=n(609))&&r.__esModule?r:{default:r},a=n(468),i=null;function s(e,t){if(!e||!e.length)throw new Error("react-modal: No elements were found for selector "+t+".")}function l(e){var t=e||i;return t?Array.isArray(t)||t instanceof HTMLCollection||t instanceof NodeList?t:[t]:((0,o.default)(!1,["react-modal: App element is not defined.","Please use `Modal.setAppElement(el)` or set `appElement={el}`.","This is needed so screen readers don't see main content","when modal is opened. It is not recommended, but you can opt-out","by setting `ariaHideApp={false}`."].join(" ")),[])}},721:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){for(var e=[a,i],t=0;t0?(document.body.firstChild!==a&&document.body.insertBefore(a,document.body.firstChild),document.body.lastChild!==i&&document.body.appendChild(i)):(a.parentElement&&a.parentElement.removeChild(a),i.parentElement&&i.parentElement.removeChild(i))}))},52:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){var e=document.getElementsByTagName("html")[0];for(var t in n)o(e,n[t]);var a=document.body;for(var i in r)o(a,r[i]);n={},r={}},t.log=function(){};var n={},r={};function o(e,t){e.classList.remove(t)}t.add=function(e,t){return o=e.classList,a="html"==e.nodeName.toLowerCase()?n:r,void t.split(" ").forEach((function(e){!function(e,t){e[t]||(e[t]=0),e[t]+=1}(a,e),o.add(e)}));var o,a},t.remove=function(e,t){return o=e.classList,a="html"==e.nodeName.toLowerCase()?n:r,void t.split(" ").forEach((function(e){!function(e,t){e[t]&&(e[t]-=1)}(a,e),0===a[e]&&o.remove(e)}));var o,a}},516:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){a=[]},t.log=function(){},t.handleBlur=l,t.handleFocus=c,t.markForFocusLater=function(){a.push(document.activeElement)},t.returnFocus=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=null;try{return void(0!==a.length&&(t=a.pop()).focus({preventScroll:e}))}catch(e){console.warn(["You tried to return focus to",t,"but it is not in the DOM anymore"].join(" "))}},t.popWithoutFocus=function(){a.length>0&&a.pop()},t.setupScopedFocus=function(e){i=e,window.addEventListener?(window.addEventListener("blur",l,!1),document.addEventListener("focus",c,!0)):(window.attachEvent("onBlur",l),document.attachEvent("onFocus",c))},t.teardownScopedFocus=function(){i=null,window.addEventListener?(window.removeEventListener("blur",l),document.removeEventListener("focus",c)):(window.detachEvent("onBlur",l),document.detachEvent("onFocus",c))};var r,o=(r=n(299))&&r.__esModule?r:{default:r},a=[],i=null,s=!1;function l(){s=!0}function c(){if(s){if(s=!1,!i)return;setTimeout((function(){i.contains(document.activeElement)||((0,o.default)(i)[0]||i).focus()}),0)}}},961:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.log=function(){console.log("portalOpenInstances ----------"),console.log(r.openInstances.length),r.openInstances.forEach((function(e){return console.log(e)})),console.log("end portalOpenInstances ----------")},t.resetState=function(){r=new n};var n=function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.register=function(e){-1===t.openInstances.indexOf(e)&&(t.openInstances.push(e),t.emit("register"))},this.deregister=function(e){var n=t.openInstances.indexOf(e);-1!==n&&(t.openInstances.splice(n,1),t.emit("deregister"))},this.subscribe=function(e){t.subscribers.push(e)},this.emit=function(e){t.subscribers.forEach((function(n){return n(e,t.openInstances.slice())}))},this.openInstances=[],this.subscribers=[]},r=new n;t.default=r},468:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.canUseDOM=t.SafeNodeList=t.SafeHTMLCollection=void 0;var r,o=((r=n(632))&&r.__esModule?r:{default:r}).default,a=o.canUseDOM?window.HTMLElement:{};t.SafeHTMLCollection=o.canUseDOM?window.HTMLCollection:{},t.SafeNodeList=o.canUseDOM?window.NodeList:{},t.canUseDOM=o.canUseDOM,t.default=a},430:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=(0,o.default)(e);if(n.length){var r=void 0,i=t.shiftKey,s=n[0],l=n[n.length-1],c=a();if(e===c){if(!i)return;r=l}if(l!==c||i||(r=s),s===c&&i&&(r=l),r)return t.preventDefault(),void r.focus();var u=/(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent);if(null!=u&&"Chrome"!=u[1]&&null==/\biPod\b|\biPad\b/g.exec(navigator.userAgent)){var d=n.indexOf(c);if(d>-1&&(d+=i?-1:1),void 0===(r=n[d]))return t.preventDefault(),void(r=i?l:s).focus();t.preventDefault(),r.focus()}}else t.preventDefault()};var r,o=(r=n(299))&&r.__esModule?r:{default:r};function a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;return e.activeElement.shadowRoot?a(e.activeElement.shadowRoot):e.activeElement}e.exports=t.default},299:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){return[].slice.call(t.querySelectorAll("*"),0).reduce((function(t,n){return t.concat(n.shadowRoot?e(n.shadowRoot):[n])}),[]).filter(i)};var n="none",r="contents",o=/input|select|textarea|button|object|iframe/;function a(e){var t=e.offsetWidth<=0&&e.offsetHeight<=0;if(t&&!e.innerHTML)return!0;try{var o=window.getComputedStyle(e),a=o.getPropertyValue("display");return t?a!==r&&function(e,t){return"visible"!==t.getPropertyValue("overflow")||e.scrollWidth<=0&&e.scrollHeight<=0}(e,o):a===n}catch(e){return console.warn("Failed to inspect element style"),!1}}function i(e){var t=e.getAttribute("tabindex");null===t&&(t=void 0);var n=isNaN(t);return(n||t>=0)&&function(e,t){var n=e.nodeName.toLowerCase();return(o.test(n)&&!e.disabled||"a"===n&&e.href||t)&&function(e){for(var t=e,n=e.getRootNode&&e.getRootNode();t&&t!==document.body;){if(n&&t===n&&(t=n.host.parentNode),a(t))return!1;t=t.parentNode}return!0}(e)}(e,!n)}e.exports=t.default},824:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=(r=n(970))&&r.__esModule?r:{default:r};t.default=o.default,e.exports=t.default},728:function(e,t,n){"use strict";var r=n(196),o=Symbol.for("react.element"),a=(Symbol.for("react.fragment"),Object.prototype.hasOwnProperty),i=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function l(e,t,n){var r,l={},c=null,u=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)a.call(t,r)&&!s.hasOwnProperty(r)&&(l[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===l[r]&&(l[r]=t[r]);return{$$typeof:o,type:e,key:c,ref:u,props:l,_owner:i.current}}t.jsx=l,t.jsxs=l},742:function(e,t,n){"use strict";e.exports=n(728)},609:function(e){"use strict";e.exports=function(){}},196:function(e){"use strict";e.exports=window.React},850:function(e){"use strict";e.exports=window.ReactDOM}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var a=t[r]={exports:{}};return e[r].call(a.exports,a,a.exports,n),a.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},function(){"use strict";var e=n(196),t=n.n(e),r=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t0?u(w,--b):0,g--,10===v&&(g=1,h--),v}function O(){return v=b2||k(v)>3?"":" "}function P(e,t){for(;--t&&O()&&!(v<48||v>102||v>57&&v<65||v>70&&v<97););return A(e,C()+(t<6&&32==_()&&32==O()))}function M(e){for(;O();)switch(v){case e:return b;case 34:case 39:34!==e&&39!==e&&M(v);break;case 40:41===e&&M(e);break;case 92:O()}return b}function L(e,t){for(;O()&&e+v!==57&&(e+v!==84||47!==_()););return" left: 0px; top: 0; animation-name: ${0}; animation-duration: 2500ms; animation-timing-function: ${0}; animation-iteration-count: infinite; animation-delay: 200ms; } `),yr.rippleVisible,Or,550,(e=>{let{theme:t}=e;return t.transitions.easing.easeInOut}),yr.ripplePulsate,(e=>{let{theme:t}=e;return t.transitions.duration.shorter}),yr.child,yr.childLeaving,_r,550,(e=>{let{theme:t}=e;return t.transitions.easing.easeInOut}),yr.childPulsate,Cr,(e=>{let{theme:t}=e;return t.transitions.easing.easeInOut})),Rr=e.forwardRef((function(t,n){const r=Wn({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:a={},className:i}=r,s=ke(r,br),[l,c]=e.useState([]),u=e.useRef(0),d=e.useRef(null);e.useEffect((()=>{d.current&&(d.current(),d.current=null)}),[l]);const f=e.useRef(!1),p=e.useRef(0),m=e.useRef(null),h=e.useRef(null);e.useEffect((()=>()=>{p.current&&clearTimeout(p.current)}),[]);const g=e.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:o,cb:i}=e;c((e=>[...e,(0,dr.jsx)(kr,{classes:{ripple:Ne(a.ripple,yr.ripple),rippleVisible:Ne(a.rippleVisible,yr.rippleVisible),ripplePulsate:Ne(a.ripplePulsate,yr.ripplePulsate),child:Ne(a.child,yr.child),childLeaving:Ne(a.childLeaving,yr.childLeaving),childPulsate:Ne(a.childPulsate,yr.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:o},u.current)])),u.current+=1,d.current=i}),[a]),y=e.useCallback((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{};const{pulsate:r=!1,center:a=o||t.pulsate,fakeElement:i=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&f.current)return void(f.current=!1);"touchstart"===(null==e?void 0:e.type)&&(f.current=!0);const s=i?null:h.current,l=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0};let c,u,d;if(a||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(l.width/2),u=Math.round(l.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;c=Math.round(t-l.left),u=Math.round(n-l.top)}if(a)d=Math.sqrt((2*l.width**2+l.height**2)/3),d%2==0&&(d+=1);else{const e=2*Math.max(Math.abs((s?s.clientWidth:0)-c),c)+2,t=2*Math.max(Math.abs((s?s.clientHeight:0)-u),u)+2;d=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===m.current&&(m.current=()=>{g({pulsate:r,rippleX:c,rippleY:u,rippleSize:d,cb:n})},p.current=setTimeout((()=>{m.current&&(m.current(),m.current=null)}),80)):g({pulsate:r,rippleX:c,rippleY:u,rippleSize:d,cb:n})}),[o,g]),b=e.useCallback((()=>{y({},{pulsate:!0})}),[y]),v=e.useCallback(((e,t)=>{if(clearTimeout(p.current),"touchend"===(null==e?void 0:e.type)&&m.current)return m.current(),m.current=null,void(p.current=setTimeout((()=>{v(e,t)})));m.current=null,c((e=>e.length>0?e.slice(1):e)),d.current=t}),[]);return e.useImperativeHandle(n,(()=>({pulsate:b,start:y,stop:v})),[b,y,v]),(0,dr.jsx)(Ar,Re({className:Ne(yr.root,a.root,i),ref:h},s,{children:(0,dr.jsx)(lr,{component:null,exit:!0,children:l})}))}));var Tr=Rr;function Nr(e){return hr("MuiButtonBase",e)}var jr=gr("MuiButtonBase",["root","disabled","focusVisible"]);const Pr=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],Mr=Un("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${jr.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Lr=e.forwardRef((function(t,n){const r=Wn({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:a=!1,children:i,className:s,component:l="button",disabled:c=!1,disableRipple:u=!1,disableTouchRipple:d=!1,focusRipple:f=!1,LinkComponent:p="a",onBlur:m,onClick:h,onContextMenu:g,onDragLeave:y,onFocus:b,onFocusVisible:v,onKeyDown:w,onKeyUp:x,onMouseDown:E,onMouseLeave:S,onMouseUp:O,onTouchEnd:_,onTouchMove:C,onTouchStart:A,tabIndex:k=0,TouchRippleProps:R,touchRippleRef:T,type:N}=r,j=ke(r,Pr),P=e.useRef(null),M=e.useRef(null),L=Hn(M,T),{isFocusVisibleRef:D,onFocus:F,onBlur:I,ref:z}=er(),[U,$]=e.useState(!1);c&&U&&$(!1),e.useImperativeHandle(o,(()=>({focusVisible:()=>{$(!0),P.current.focus()}})),[]);const[B,W]=e.useState(!1);e.useEffect((()=>{W(!0)}),[]);const H=B&&!u&&!c;function V(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:d;return qn((r=>(t&&t(r),!n&&M.current&&M.current[e](r),!0)))}e.useEffect((()=>{U&&f&&!u&&B&&M.current.pulsate()}),[u,f,U,B]);const q=V("start",E),K=V("stop",g),G=V("stop",y),Y=V("stop",O),X=V("stop",(e=>{U&&e.preventDefault(),S&&S(e)})),J=V("start",A),Z=V("stop",_),Q=V("stop",C),ee=V("stop",(e=>{I(e),!1===D.current&&$(!1),m&&m(e)}),!1),te=qn((e=>{P.current||(P.current=e.currentTarget),F(e),!0===D.current&&($(!0),v&&v(e)),b&&b(e)})),ne=()=>{const e=P.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},re=e.useRef(!1),oe=qn((e=>{f&&!re.current&&U&&M.current&&""===e.key&&(re.current=!0,M.current.stop(e,(()=>{M.current.start(e)}))),e.target===e.currentTarget&&ne()&&""===e.key&&e.preventDefault(),w&&w(e),e.target===e.currentTarget&&ne()&&"Enter"===e.key&&!c&&(e.preventDefault(),h&&h(e))})),ae=qn((e=>{f&&""===e.key&&M.current&&U&&!e.defaultPrevented&&(re.current=!1,M.current.stop(e,(()=>{M.current.pulsate(e)}))),x&&x(e),h&&e.target===e.currentTarget&&ne()&&""===e.key&&!e.defaultPrevented&&h(e)}));let ie=l;"button"===ie&&(j.href||j.to)&&(ie=p);const se={};"button"===ie?(se.type=void 0===N?"button":N,se.disabled=c):(j.href||j.to||(se.role="button"),c&&(se["aria-disabled"]=c));const le=Hn(n,z,P),ce=Re({},r,{centerRipple:a,component:l,disabled:c,disableRipple:u,disableTouchRipple:d,focusRipple:f,tabIndex:k,focusVisible:U}),ue=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,a=Pe({root:["root",t&&"disabled",n&&"focusVisible"]},Nr,o);return n&&r&&(a.root+=` ${r}`),a})(ce);return(0,dr.jsxs)(Mr,Re({as:ie,className:Ne(ue.root,s),ownerState:ce,onBlur:ee,onClick:h,onContextMenu:K,onFocus:te,onKeyDown:oe,onKeyUp:ae,onMouseDown:q,onMouseLeave:X,onMouseUp:Y,onDragLeave:G,onTouchEnd:Z,onTouchMove:Q,onTouchStart:J,ref:le,tabIndex:c?-1:k,type:N},se,j,{children:[i,H?(0,dr.jsx)(Tr,Re({ref:L,center:a},R)):null]}))}));var Dr=Lr,Fr=it;function Ir(e){return hr("MuiButton",e)}var zr=gr("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),Ur=e.createContext({});const $r=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Br=e=>Re({},"small"===e.size&&{"&>*:nth-of-type(1)":{fontSize:18}},"medium"===e.size&&{"&>*:nth-of-type(1)":{fontSize:20}},"large"===e.size&&{"&>*:nth-of-type(1)":{fontSize:22}}),Wr=Un(Dr,{shouldForwardProp:e=>In(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Fr(n.color)}`],t[`size${Fr(n.size)}`],t[`${n.variant}Size${Fr(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})((e=>{let{theme:t,ownerState:n}=e;var r,o;const a="light"===t.palette.mode?t.palette.grey[300]:t.palette.grey[800],i="light"===t.palette.mode?t.palette.grey.A100:t.palette.grey[700];return Re({},t.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create(["background-color","box-shadow","border-color","color"],{duration:t.transitions.duration.short}),"&:hover":Re({textDecoration:"none",backgroundColor:t.vars?`rgba(${t.vars.palette.text.primaryChannel} / ${t.vars.palette.action.hoverOpacity})`:ze(t.palette.text.primary,t.palette.action.hoverOpacity),"@media(hover:none)":{backgroundColor:"transparent"}},"text"===n.variant&&"inherit"!==n.color&&{backgroundColor:t.vars?`rgba(${t.vars.palette[n.color].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:ze(t.palette[n.color].main,t.palette.action.hoverOpacity),"@media(hover:none)":{backgroundColor:"transparent"}},"outlined"===n.variant&&"inherit"!==n.color&&{border:`1px solid ${(t.vars||t).palette[n.color].main}`,backgroundColor:t.vars?`rgba(${t.vars.palette[n.color].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:ze(t.palette[n.color].main,t.palette.action.hoverOpacity),"@media(hover:none)":{backgroundColor:"transparent"}},"contained"===n.variant&&{backgroundColor:t.vars?t.vars.palette.Button.inheritContainedHoverBg:i,boxShadow:(t.vars||t).shadows[4],"@media(hover:none)":{boxShadow:(t.vars||t).shadows[2],backgroundColor:(t.vars||t).palette.grey[300]}},"contained"===n.variant&&"inherit"!==n.color&&{backgroundColor:(t.vars||t).palette[n.color].dark,"@media(hover:none)":{backgroundColor:(t.vars||t).palette[n.color].main}}),"&:active":Re({},"contained"===n.variant&&{boxShadow:(t.vars||t).shadows[8]}),[`&.${zr.focusVisible}`]:Re({},"contained"===n.variant&&{boxShadow:(t.vars||t).shadows[6]}),[`&.${zr.disabled}`]:Re({color:(t.vars||t).palette.action.disabled},"outlined"===n.variant&&{border:`1px solid ${(t.vars||t).palette.action.disabledBackground}`},"contained"===n.variant&&{color:(t.vars||t).palette.action.disabled,boxShadow:(t.vars||t).shadows[0],backgroundColor:(t.vars||t).palette.action.disabledBackground})},"text"===n.variant&&{padding:"6px 8px"},"text"===n.variant&&"inherit"!==n.color&&{color:(t.vars||t).palette[n.color].main},"outlined"===n.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===n.variant&&"inherit"!==n.color&&{color:(t.vars||t).palette[n.color].main,border:t.vars?`1px solid rgba(${t.vars.palette[n.color].mainChannel} / 0.5)`:`1px solid ${ze(t.palette[n.color].main,.5)}`},"contained"===n.variant&&{color:t.vars?t.vars.palette.text.primary:null==(r=(o=t.palette).getContrastText)?void 0:r.call(o,t.palette.grey[300]),backgroundColor:t.vars?t.vars.palette.Button.inheritContainedBg:a,boxShadow:(t.vars||t).shadows[2]},"contained"===n.variant&&"inherit"!==n.color&&{color:(t.vars||t).palette[n.color].contrastText,backgroundColor:(t.vars||t).palette[n.color].main},"inherit"===n.color&&{color:"inherit",borderColor:"currentColor"},"small"===n.size&&"text"===n.variant&&{padding:"4px 5px",fontSize:t.typography.pxToRem(13)},"large"===n.size&&"text"===n.variant&&{padding:"8px 11px",fontSize:t.typography.pxToRem(15)},"small"===n.size&&"outlined"===n.variant&&{padding:"3px 9px",fontSize:t.typography.pxToRem(13)},"large"===n.size&&"outlined"===n.variant&&{padding:"7px 21px",fontSize:t.typography.pxToRem(15)},"small"===n.size&&"contained"===n.variant&&{padding:"4px 10px",fontSize:t.typography.pxToRem(13)},"large"===n.size&&"contained"===n.variant&&{padding:"8px 22px",fontSize:t.typography.pxToRem(15)},n.fullWidth&&{width:"100%"})}),(e=>{let{ownerState:t}=e;return t.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${zr.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${zr.disabled}`]:{boxShadow:"none"}}})),Hr=Un("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${Fr(n.size)}`]]}})((e=>{let{ownerState:t}=e;return Re({display:"inherit",marginRight:8,marginLeft:-4},"small"===t.size&&{marginLeft:-2},Br(t))})),Vr=Un("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${Fr(n.size)}`]]}})((e=>{let{ownerState:t}=e;return Re({display:"inherit",marginRight:-4,marginLeft:8},"small"===t.size&&{marginRight:-2},Br(t))}));var qr=e.forwardRef((function(t,n){const r=e.useContext(Ur),o=Wn({props:je(r,t),name:"MuiButton"}),{children:a,color:i="primary",component:s="button",className:l,disabled:c=!1,disableElevation:u=!1,disableFocusRipple:d=!1,endIcon:f,focusVisibleClassName:p,fullWidth:m=!1,size:h="medium",startIcon:g,type:y,variant:b="text"}=o,v=ke(o,$r),w=Re({},o,{color:i,component:s,disabled:c,disableElevation:u,disableFocusRipple:d,fullWidth:m,size:h,type:y,variant:b}),x=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:a,classes:i}=e;return Re({},i,Pe({root:["root",a,`${a}${Fr(t)}`,`size${Fr(o)}`,`${a}Size${Fr(o)}`,"inherit"===t&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${Fr(o)}`],endIcon:["endIcon",`iconSize${Fr(o)}`]},Ir,i))})(w),E=g&&(0,dr.jsx)(Hr,{className:x.startIcon,ownerState:w,children:g}),S=f&&(0,dr.jsx)(Vr,{className:x.endIcon,ownerState:w,children:f});return(0,dr.jsxs)(Wr,Re({ownerState:w,className:Ne(r.className,x.root,l),component:s,disabled:c,focusRipple:!d,focusVisibleClassName:Ne(x.focusVisible,p),ref:n,type:y},v,{classes:x,children:[E,a,S]}))})),Kr={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Gr=t().createContext&&t().createContext(Kr),Yr=function(){return Yr=Object.assign||function(e){for(var t,n=1,r=arguments.length;n"login"in a?t().createElement(Ws,a):"authenticate"in a?t().createElement(Us,a):"register"in a?t().createElement($s,a):"resetPassword"in a?t().createElement(Hs,a):"post"in a?t().createElement(zs,a):t().createElement("div",{className:_e({textAlign:"center"})},(0,Ce.__)("Failed to display a form because an unexpected error has occurred.","shinobi-reviews")),d=()=>t().createElement("div",{className:_e({display:"flex",justifyContent:"center",alignItems:"center",padding:"1em"})},t().createElement("div",null,(0,Ce.__)("Write a review","shinobi-reviews")),t().createElement("div",{onClick:()=>{o(!1)},className:_e({cursor:"pointer",display:"flex",position:"absolute",right:"1em",borderStyle:"none",backgroundColor:"transparent",color:"currentcolor","&:focus":{outline:"none"}}),role:"button"},t().createElement(ro,null))),f=()=>t().createElement("div",{className:_e({backgroundColor:"#fafafa",padding:"1em"})},t().createElement("div",{className:_e({maxWidth:"340px",margin:"auto",display:"flex",flexDirection:"column"})},t().createElement(u,null))),p=()=>t().createElement("div",{className:_e({padding:"1em",textAlign:"right"})},t().createElement("span",{dangerouslySetInnerHTML:{__html:(0,Ce.sprintf)("Powered by %s",`Shinobi Reviews`)}})),m=()=>t().createElement(t().Fragment,null,t().createElement(d,null),t().createElement(f,null),!s&&t().createElement(p,null));return(0,e.useMemo)((()=>t().createElement(fo(),{className:_e({position:"absolute",top:"50%",right:"auto",bottom:"auto",left:"50%",background:"rgb(255, 255, 255)",overflow:"auto",borderRadius:"4px",outline:"none",padding:"0",marginRight:"-50%",transform:"translate(-50%, -50%)",width:"100%",maxWidth:"680px",display:"flex",flexDirection:"column",color:ls,fontSize:"16px"}),onRequestClose:()=>{o(!1)},isOpen:r,overlayClassName:_e({zIndex:9999,backdropFilter:"blur(4px)",position:"fixed",top:"0",right:"0",bottom:"0",left:"0",backgroundColor:"rgba(33, 33, 33, 0.46)",borderColor:"rgb(33, 33, 33)"})},s?t().createElement(m,null):(0,as.map)([(0,as.map)((0,as.range)(0,(0,as.random)(1,4)),(e=>t().createElement("div",{className:_e({display:"none"}),key:`dummyElm-zero-to-four-${e}`}))),t().createElement(m,null),(0,as.map)((0,as.range)(5,(0,as.random)(6,10)),(e=>t().createElement("div",{className:_e({display:"none"}),key:`dummyElm-five-to-ten-${e}`})))],((n,r)=>t().createElement(e.Fragment,{key:r},n))))),[a,r,c])},qs=n=>{let{rating:r,editable:o}=n;const a=r,i=[...Array(5)].map(((e,t)=>t+1)).map((e=>t().createElement(lo,{size:24,key:`rating-${e}`,color:a>=e?"#ffc200":"#cccccc"}))),[s,l]=(0,e.useState)(!1);return t().createElement("header",{className:_e({display:"flex",alignItems:"center",justifyContent:"space-between",lineHeight:"1",marginBottom:"1em"})},t().createElement("div",{className:_e({display:"flex",alignItems:"center"})},i),o&&t().createElement("div",null,t().createElement(qr,{variant:"outlined",startIcon:t().createElement(co,null),onClick:()=>{l(!0)}},(0,Ce.__)("Edit","shinobi-reviews"))),t().createElement(Vs,{show:s,setShow:l}))};fo().setAppElement(".ShinobiReviews");const Ks=n=>{let{images:r}=n;const[o,a]=(0,e.useState)(!1),[i,s]=(0,e.useState)(""),[l,c]=(0,e.useState)(0),[u,d]=(0,e.useState)(0);return r?t().createElement(t().Fragment,null,t().createElement("div",{className:_e({marginBottom:"1em"})},t().createElement("div",{className:_e({display:"flex",flexWrap:"nowrap",overflowX:"auto",paddingBottom:"8px"})},r.map(((e,n)=>t().createElement("div",{key:`image-${n}`,className:_e({height:"88px",display:"inline-flex"})},t().createElement("img",{src:e,style:{maxWidth:"none",height:"88px",width:"auto"},className:_e({marginRight:"1px",cursor:"zoom-in"}),onClick:e=>{const t=e.currentTarget;s(t.currentSrc),c(t.naturalWidth),d(t.naturalHeight),a(!0)}})))))),t().createElement(fo(),{className:_e({position:"absolute",top:"50%",right:"auto",bottom:"auto",left:"50%",background:"rgb(255, 255, 255)",overflow:"hidden",borderRadius:"4px",outline:"none",padding:"0",marginRight:"-50%",transform:"translate(-50%, -50%)",width:"auto",maxWidth:"1080px",maxHeight:"95%",display:"flex",flexDirection:"column"}),onRequestClose:()=>{a(!1)},isOpen:o,overlayClassName:_e({zIndex:9999,backdropFilter:"blur(4px)",position:"fixed",top:"0",right:"0",bottom:"0",left:"0",backgroundColor:"rgba(33, 33, 33, 0.46)",borderColor:"rgb(33, 33, 33)"})},i&&t().createElement(t().Fragment,null,t().createElement("div",{className:_e({overflow:"auto"})},t().createElement("div",{className:_e({display:"flex",flexDirection:"column"})},t().createElement("img",{src:i,width:l&&l,height:u&&u,style:{width:"100%",height:"auto"}})),t().createElement("div",{onClick:()=>{a(!1)},role:"button",className:_e({position:"absolute",top:"0.5em",right:"0.5em",display:"flex",cursor:"pointer",background:"#333",border:"1px solid #fff",borderRadius:"50%",padding:".5em"})},t().createElement(ro,{size:24,fill:"#fff"})))))):t().createElement(e.Fragment,null)};function Gs(e){return Zr({tag:"svg",attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M6.267 3.455a3.066 3.066 0 001.745-.723 3.066 3.066 0 013.976 0 3.066 3.066 0 001.745.723 3.066 3.066 0 012.812 2.812c.051.643.304 1.254.723 1.745a3.066 3.066 0 010 3.976 3.066 3.066 0 00-.723 1.745 3.066 3.066 0 01-2.812 2.812 3.066 3.066 0 00-1.745.723 3.066 3.066 0 01-3.976 0 3.066 3.066 0 00-1.745-.723 3.066 3.066 0 01-2.812-2.812 3.066 3.066 0 00-.723-1.745 3.066 3.066 0 010-3.976 3.066 3.066 0 00.723-1.745 3.066 3.066 0 012.812-2.812zm7.44 5.252a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"}}]})(e)}const Ys=e=>{const{reviewer:n,isMember:r,date:o}=e;return t().createElement("footer",{className:_e({display:"flex",alignItems:"flex-end",lineHeight:"1.6"})},t().createElement("div",{className:_e({display:"flex",alignItems:"flex-end",overflow:"hidden"})},t().createElement("div",{className:_e({display:"flex",marginRight:"4px"})},t().createElement(eo,{size:24})),t().createElement("span",{className:_e({color:"#666",fontSize:"0.8em",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"})},n)),r?t().createElement("div",{className:_e({display:"flex",marginLeft:"2px",flex:1})},t().createElement(Gs,{size:18,fill:"#28a745"})):t().createElement("div",{className:_e({flex:1})}),t().createElement("div",{className:_e({color:"#666",fontSize:"0.8em",paddingLeft:"1em"})},o))};var Xs=window.wp.autop,Js=n(449),Zs=n.n(Js);const Qs=_e({width:"100%",maxWidth:"600px",marginBottom:"1em",padding:"0.8em",position:"relative",overflow:"hidden",borderRadius:"4px",boxShadow:"0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12)",backgroundColor:"#fff"});function el(){return el=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const{state:{isReviewPosted:r,ownReview:o}}=(0,e.useContext)(yl);return t().createElement("div",{className:Se(Qs,_e({display:n.show?"":"none"}))},t().createElement(qs,el({},n,{editable:o?.ID===n.id&&!r})),t().createElement("div",{className:_e({"> p":{marginBottom:"1em"}}),dangerouslySetInnerHTML:{__html:(0,Xs.autop)(Zs().sanitize(n.content))}}),t().createElement(Ks,n),t().createElement(Ys,n))};function nl(e){return Zr({tag:"svg",attr:{viewBox:"0 0 16 16",fill:"currentColor"},child:[{tag:"path",attr:{fillRule:"evenodd",clipRule:"evenodd",d:"M7.976 10.072l4.357-4.357.62.618L8.284 11h-.618L3 6.333l.619-.618 4.357 4.357z"}}]})(e)}function rl(){return rl=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const{state:{reviews:n,initialReviewCount:r}}=(0,e.useContext)(yl),[o,a]=(0,e.useState)(r>0?r:n.length);return t().createElement(t().Fragment,null,n.map(((e,n)=>t().createElement(tl,rl({key:e.id,show:o>n},e)))),n.length>o&&t().createElement("div",{className:_e({marginBottom:"1.5em",cursor:"pointer",color:"#0274be",display:"flex",justifyContent:"center",alignContent:"center"}),onClick:()=>{a(o+r)}},t().createElement("span",null,(0,Ce.__)("Read More Reviews","shinobi-reviews")),t().createElement("span",{className:_e({display:"flex",alignItems:"center",marginLeft:".25em"})},t().createElement(nl,null))))},al=()=>{const{state:{ownReview:n,isReviewPosted:r}}=(0,e.useContext)(yl),[o,a]=(0,e.useState)(!1),i=n?(0,Ce.__)("Edit your review","shinobi-reviews"):(0,Ce.__)("Write a review","shinobi-reviews");return t().createElement(t().Fragment,null,t().createElement("button",{className:Se(cs,r&&_e({":disabled":{cursor:"not-allowed"}})),onClick:()=>{r||a(!0)},disabled:r},i),t().createElement(Vs,{show:o,setShow:a}))},il=e=>t().createElement("div",null,[...Array(5)].map(((n,r)=>{const o=r+1;return t().createElement("div",{key:`chart-${o}`,className:_e({display:"flex",justifyContent:"center"})},t().createElement("div",{className:_e({display:"flex",justifyContent:"center",alignItems:"center"})},t().createElement("div",{className:_e({display:"flex",justifyContent:"center"})},t().createElement(lo,{size:24,fill:"#ffc200",color:"#ffc200"})),t().createElement("span",{className:_e({width:"1.5em"})},o)),t().createElement("div",{className:_e({backgroundColor:"#eee",borderRadius:"2px",boxShadow:"inset 0 0.1em 0.2em rgb(0 0 0 / 40%), inset 0 0 0 0.1em rgb(0 0 0 / 10%)",verticalAlign:"middle",backgroundClip:"padding-box",borderTop:"8px solid transparent",borderBottom:"8px solid transparent",flex:"1"})},t().createElement("div",{style:{width:`${e[o]?e[o]:0}%`},className:_e({height:"1em",borderRadius:"2px",backgroundColor:"#ffc200",boxShadow:"inset 0 0 0 0.05em rgb(0 0 0 / 25%)"})})))})).reverse()),sl=n=>{const{state:r,dispatch:o}=(0,e.useContext)(yl),[a,i]=(0,e.useState)(!1),[s,l]=(0,e.useState)((0,as.keys)(r.aggregateRating));return(0,as.keys)(n).length?t().createElement("div",null,t().createElement("div",{className:_e({display:"flex",justifyContent:"center",margin:"1em auto 0"})},t().createElement("div",{className:_e({cursor:"pointer",border:"none",outline:"none",boxShadow:"none",borderRadius:0,color:ls,backgroundColor:"transparent",background:"transparent",display:"flex",alignItems:"center",lineHeight:"1.6",fontSize:"0.8em",fontWeight:400,margin:0,padding:0}),role:"button",onClick:()=>{i(!a)}},t().createElement("span",null,(0,Ce.__)("Filter by Rating","shinobi-reviews")),t().createElement("span",{className:_e({display:"flex"})},a?t().createElement(oo,{size:16}):t().createElement(ao,{size:16})))),t().createElement("div",{className:Se(_e({display:"flex",padding:a?"1em 0 0.8em":"0",overflow:a?"auto":"hidden",transition:"max-height 0.2s ease-out,padding 0.2s ease-out"}),!a&&_e({maxHeight:"0"}))},(0,as.map)(n,((e,n)=>{const r=n;return t().createElement("div",{key:`filterButton-${r}`,style:{color:(0,as.includes)(s,r)?"#ffc200":"#999"},className:_e({cursor:"pointer",fontSize:"14px",fontWeight:300,textDecoration:"none",letterSpacing:"0.4px",lineHeight:"16px",backgroundColor:"#fff",border:"none",borderRadius:"20px",boxShadow:"0 1px 2px 0 rgb(0 0 0 / 25%)",display:"flex",alignItems:"center",flexShrink:0,width:"auto",margin:"0 0.25em",padding:"8px 16px"}),role:"button",onClick:()=>{const e=(0,as.includes)(s,r)?(0,as.filter)(s,(e=>e!==r)):[...s,r];l(e),o({type:"filter",ratings:e})}},t().createElement("div",{className:_e({display:"flex"})},t().createElement(lo,{size:16})),t().createElement("span",null,r))})))):t().createElement(e.Fragment,null)},ll=()=>{const{state:n,dispatch:r}=(0,e.useContext)(yl),{reviews:o}=n;return t().createElement("div",{className:_e({background:"#fff",marginBottom:"0.5em",maxWidth:"600px",display:"flex",justifyContent:"space-between"})},t().createElement("div",null,t().createElement("span",{className:_e({marginRight:"0.4em"})},(0,Ce.__)("Review Count","shinobi-reviews")),t().createElement("span",null,(0,as.keys)(o).length)),t().createElement("div",{className:_e({display:"flex",position:"relative",alignItems:"center"})},t().createElement("div",{className:_e({display:"flex",position:"absolute",top:0,pointerEvents:"none"})},t().createElement(to,{size:24})),t().createElement("select",{onChange:e=>{const t=e.target.value;switch(t){case"latest":case"oldest":r({type:"sort",order:t})}},className:_e({cursor:"pointer",border:"none",outline:"none",boxShadow:"none",appearance:"none",borderRadius:"0",background:"transparent",backgroundImage:"none",margin:"0",padding:"0 0 0 26px",lineHeight:"1.6"})},t().createElement("option",{value:"latest"},(0,Ce.__)("Latest","shinobi-reviews")),t().createElement("option",{value:"oldest"},(0,Ce.__)("Oldest","shinobi-reviews")))))},cl=()=>{const{aggregateRating:n}=(0,e.useContext)(yl).state;return t().createElement("div",{className:_e({padding:"1em"})},t().createElement(ll,null),t().createElement(il,n),t().createElement(sl,n))};var ul=window.moment,dl=n.n(ul);const fl=e=>e&&t().createElement("a",{href:e,target:"_blank",rel:"noopener noreferrer",className:_e({wordBreak:"break-all"})},e),pl=e=>{try{return(0).toLocaleString(e),!0}catch(e){return!1}},ml=()=>{const{structuredData:n,locale:r}=(0,e.useContext)(yl).state,o=r.replace(/_/,"-"),a=[{label:(0,Ce.__)("Description","shinobi-reviews"),content:n.description},{label:(0,Ce.__)("Price","shinobi-reviews"),content:n.offers?.price&&pl(o)&&(0,as.toNumber)(n.offers.price).toLocaleString(o,{style:"currency",currency:n.offers.priceCurrency})},{label:(0,Ce.__)("Price Valid Until","shinobi-reviews"),content:n.offers?.priceValidUntil&&(0,Ce.sprintf)((0,Ce.__)("Until %s","shinobi-reviews"),dl()(n.offers.priceValidUntil).toDate().toLocaleDateString("ja"))},{label:(0,Ce.__)("Availability","shinobi-reviews"),content:(0,Ce.__)((0,as.startCase)(n.offers?.availability),"shinobi-reviews")},{label:"URL",content:fl(n.offers?.url)}],i=[n.address?.postalCode,n.address?.addressRegion,n.address?.addressLocality,n.address?.streetAddress],s=[...a,{label:(0,Ce.__)("Global URL","shinobi-reviews"),content:fl(n["@id"])},{label:(0,Ce.__)("Address","shinobi-reviews"),content:0===(0,as.filter)(i,(e=>!e)).length&&(0,as.values)("JP"===n.address?.addressCountry?i:i.reverse()).join(" ")},{label:(0,Ce.__)("Telephone","shinobi-reviews"),content:n.telephone&&t().createElement("a",{href:`tel:${n.telephone}`},n.telephone)},{label:"URL",content:fl(n.url)},{label:(0,Ce.__)("Author","shinobi-reviews"),content:n.author?.name},{label:(0,Ce.__)("Recipe Cuisine","shinobi-reviews"),content:n.recipeCuisine},{label:(0,Ce.__)("Recipe Category","shinobi-reviews"),content:n.recipeCategory},{label:(0,Ce.__)("Calories","shinobi-reviews"),content:n.nutrition?.calories&&Number((0,as.toNumber)(n.nutrition.calories.replace(/[^0-9]/g,""))/1e3).toLocaleString()+" kcal"},{label:"OS",content:n.operatingSystem},{label:(0,Ce.__)("Director","shinobi-reviews"),content:n.director?.name},{label:(0,Ce.__)("Date Created","shinobi-reviews"),content:n.dateCreated}],l=(0,as.map)(s,((e,n)=>{let{label:r,content:o}=e;return o&&t().createElement("div",{key:`info-components-${n}`,className:Se(_e({margin:"1em auto",padding:"0 1em"}))},t().createElement("div",null,r),t().createElement("div",{className:_e({fontWeight:300,lineHeight:1.6})},o))}));return(0,as.filter)(l).length?t().createElement("div",null,l):t().createElement(e.Fragment,null)},hl=()=>{const[n,r]=(0,e.useState)(0),{structuredData:o}=(0,e.useContext)(yl).state,a=[{title:(0,Ce.__)("Rate","shinobi-reviews"),component:t().createElement(cl,null)}];return"symbol"!=typeof ml().type&&a.push({title:(0,Ce.__)("Info","shinobi-reviews"),component:t().createElement(ml,null)}),t().createElement("div",{className:Se(Qs,_e({padding:"0"}))},t().createElement("div",{className:Se(_e({backgroundColor:"rgba(0, 0, 0, 0.05)",paddingTop:"4em"}))}),t().createElement("div",null,t().createElement("div",{className:_e({display:"flex",position:"relative",padding:"0 1em 0",marginBottom:"1.5em"})},t().createElement("div",{className:_e({display:"inline-block",flexShrink:0,marginRight:"0.5em",marginTop:"-1em",background:"#fff"})},(0,as.isArray)(o.image)&&o.image.length>0?t().createElement("img",{src:o.image[0],width:"100",height:"100",className:_e({border:"1px solid rgba(0, 0, 0, 0.2)",borderRadius:"4px"})}):t().createElement("div",{className:_e({width:"100px",height:"100px",borderRadius:"4px",display:"flex",justifyContent:"center",alignItems:"center",backgroundColor:"#1976d2",color:"#fff"})},t().createElement("div",{className:_e({fontSize:"3em","&::before":{content:`"${o.name[0]}"`}})}))),t().createElement("div",{className:_e({display:"flex",flexDirection:"column"})},t().createElement("div",{className:_e({fontSize:"1.2em",fontWeight:600})},o.name),t().createElement("div",{className:_e({display:"flex"})},t().createElement("div",{className:_e({display:"flex"})},(0,as.map)((0,as.range)(1,6),(e=>{if(o.aggregateRating?.ratingValue){const n=100*e,r=100*o.aggregateRating?.ratingValue;return n<=r?t().createElement(lo,{size:24,key:`rating-${e}`,color:"#ffc200"}):n-r<=50?t().createElement(so,{size:24,color:"#ffc200"}):t().createElement(io,{size:24,key:`rating-${e}`,color:"#ffc200"})}return t().createElement(io,{size:24,key:`rating-${e}`,color:"#ffc200"})}))),t().createElement("div",{className:_e({marginLeft:"0.25em"})},t().createElement("span",null,o.aggregateRating?.ratingValue?o.aggregateRating?.ratingValue:0))))),t().createElement("div",null,t().createElement("div",{className:_e({display:"flex",borderBottom:"1px solid #dee2e6",padding:"0 1em"})},(0,as.map)(a,((e,o)=>{let{title:a}=e;return t().createElement("div",{key:`menu-${o}`,className:Se(_e({padding:"0.5em 0.75em",textAlign:"center",cursor:"pointer",marginBottom:"-1px",border:"1px solid transparent",borderTopLeftRadius:"0.25em",borderTopRightRadius:"0.25em"}),n===o&&_e({backgroundColor:"#fff",borderColor:"#dee2e6 #dee2e6 #fff",color:"#1976d2"})),onClick:()=>{r(o)}},a)})))),t().createElement("div",null,(0,as.map)(a,((e,t)=>{let{component:r}=e;return t===n&&r})))))},gl=()=>{const{state:{signIn:n,formId:r,formActions:o,isMembership:a,reviews:i},dispatch:s}=(0,e.useContext)(yl);return(0,e.useEffect)((()=>{n.token&&(async()=>{try{const e=is({...n,token:"WEZUs7mi1jeycq15ov87eYw8V8ec4af1pjN/O8v1FPDke5dqdAPWfOqTV6iURwPY"}),[t]=await Promise.all([os.post(shinobiReviewsAjaxUrl,e)]);t.data.success&&s({type:"signIn",isAuthenticated:!0})}catch(e){console.error("Failed to post with axios")}})()}),[]),(0,e.useEffect)((()=>{a&&"fetchReview"in o&&(async e=>{let{fetchReview:t}=e;const{data:n}=await os.post(shinobiReviewsAjaxUrl,is({...t,formId:`${r}`}));if(n.success){const e={...n.data},t=i.find((t=>t.id===e.ID));e&&t&&s({type:"fetchOwnReview",ownReview:{...e,...t}})}})(o)}),[o]),t().createElement("div",{className:_e({fontSize:"16px",color:"#333333",boxSizing:"border-box","*, *::before, *::after":{boxSizing:"inherit"},"button,select":{"&:focus":{outline:"none"}}})},t().createElement(hl,null),t().createElement(ol,null),t().createElement(al,null))},yl=(0,e.createContext)({}),bl=n=>{const{formActions:r,recaptcha:o,isMediaUploader:a,reviews:i,formId:s,structuredData:l,locale:c,signIn:u,initialReviewCount:d,isMembership:f}=n,p=[...Array(5)].map(((e,t)=>Math.round(i.filter((e=>e.rating==t+1)).length/i.length*100))).reduce(((e,t,n)=>(t&&(e[n+1]=t),e)),{}),[m,h]=(0,e.useReducer)(((e,t)=>{let n={};switch(t.type){case"formModal/registeration":n={...e,formActions:{register:t.register,logout:t.logout}};break;case"formModal/login":n={...e,formActions:{login:t.login,logout:t.logout,sendResetPassword:t.sendResetPassword}};break;case"formModal/post":n={...e,formActions:{post:t.post,logout:t.logout,fetchReview:t.fetchReview}};break;case"formModal/passwordReset":n={...e,formActions:{resetPassword:t.resetPassword,logout:t.logout}};break;case"formModal/authenticate":n={...e,formActions:{authenticate:t.authenticate}};break;case"filter":const r=[...i].filter((e=>t.ratings.includes(`${e.rating}`))),o="latest"===e.order?r:r.reverse();n={...e,reviews:o};break;case"sort":switch(t.order){case"latest":case"oldest":n={...e,reviews:[...e.reviews].reverse(),order:t.order};break;default:return e}break;case"fetchOwnReview":n={...e,ownReview:t.ownReview};break;case"isReviewPosted":n={...e,isReviewPosted:t.isReviewPosted};break;case"signIn":n={...e,isAuthenticated:t.isAuthenticated};break;default:return e}return n}),{formActions:r,order:"latest",aggregateRating:p,recaptcha:o,reviews:i,isAuthenticated:!1,isMediaUploader:a,formId:s,structuredData:l,locale:c,signIn:u,initialReviewCount:d,isMembership:f,ownReview:null,isReviewPosted:!1});return t().createElement(yl.Provider,{value:{state:m,dispatch:h}},t().createElement(gl,null))},vl=document.body.querySelectorAll(".ShinobiReviews");vl.length&&vl.forEach((e=>{const n=e.children[0],r="data-props",o=n.getAttribute(r);n.removeAttribute(r);try{o?(0,Ae.render)(t().createElement(bl,JSON.parse(o)),n):console.error("There are no props inner element of .ShinobiReviews")}catch(e){(0,Ae.render)(t().createElement("div",{className:_e({color:"#808080"})},(0,Ce.__)("Failed to display the form of Shinobi Reviews.","shinobi-reviews")),n)}}))}()}()
タイトルとURLをコピーしました