this.kkart=this.kkart||{},this.kkart.customerEffortScore=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=716)}({0:function(e,t){!function(){e.exports=this.wp.element}()},1:function(e,t,n){e.exports=n(138)()},116:function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},117:function(e,t){e.exports=function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,c=void 0;try{for(var i,u=e[Symbol.iterator]();!(r=(i=u.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,c=e}finally{try{r||null==u.return||u.return()}finally{if(o)throw c}}return n}}},118:function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},138:function(e,t,n){"use strict";var r=n(139);function o(){}function c(){}c.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,c,i){if(i!==r){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:c,resetWarningCache:o};return n.PropTypes=n,n}},139:function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},2:function(e,t){!function(){e.exports=this.lodash}()},20:function(e,t){!function(){e.exports=this.wp.data}()},277:function(e,t,n){"use strict";var r=n(2);t.a=r.flowRight},3:function(e,t){!function(){e.exports=this.wp.i18n}()},34:function(e,t,n){var r=n(116),o=n(117),c=n(83),i=n(118);e.exports=function(e,t){return r(e)||o(e,t)||c(e,t)||i()}},716:function(e,t,n){"use strict";n.r(t);var r=n(34),o=n.n(r),c=n(0),i=n(1),u=n.n(i),a=n(3),f=n(277),s=n(20);function l(e){var t=e.trackCallback,n=e.label,r=e.createNotice,i=e.openedCallback,u=Object(c.useState)(0),f=o()(u,2),s=f[0],l=f[1],p=Object(c.useState)(!0),b=o()(p,2),y=b[0],d=b[1],m=Object(c.useState)(!1),h=o()(m,2),v=h[0],O=h[1];if(y)return r("success",n,{actions:[{label:Object(a.__)("Give feedback",'kkart'),onClick:function(){O(!0),i()}}]}),d(!1),null;if(!v)return null;return Object(c.createElement)("p",{className:"customer-effort-score_modal"},n," ",Object(c.createElement)("button",{onClick:function(){l(3),O(!1),t(s)}},"Click me"))}l.propTypes={trackCallback:u.a.func.isRequired,label:u.a.string.isRequired,createNotice:u.a.func},t.default=Object(f.a)(Object(s.withDispatch)((function(e){return{createNotice:e("core/notices").createNotice}})))(l)},79:function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}},83:function(e,t,n){var r=n(79);e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}}});