/*! For license information please see 832.d499d6b1.iframe.bundle.js.LICENSE.txt */ "use strict";(self.webpackChunk_woocommerce_storybook=self.webpackChunk_woocommerce_storybook||[]).push([[832],{"../../node_modules/.pnpm/equivalent-key-map@0.2.2/node_modules/equivalent-key-map/equivalent-key-map.js":module=>{function _typeof(obj){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_typeof(obj)}function _defineProperties(target,props){for(var i=0;i1&&void 0!==arguments[1]?arguments[1]:this;this._map.forEach((function(value,key){null!==key&&"object"===_typeof(key)&&(value=value[1]),callback.call(thisArg,value,key,_this)}))}},{key:"clear",value:function clear(){this._map=new Map,this._arrayTreeMap=new Map,this._objectTreeMap=new Map}},{key:"size",get:function get(){return this._map.size}}]),EquivalentKeyMap}();module.exports=EquivalentKeyMap},"../../node_modules/.pnpm/is-plain-object@5.0.0/node_modules/is-plain-object/dist/is-plain-object.mjs":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{function isObject(o){return"[object Object]"===Object.prototype.toString.call(o)}function isPlainObject(o){var ctor,prot;return!1!==isObject(o)&&(void 0===(ctor=o.constructor)||!1!==isObject(prot=ctor.prototype)&&!1!==prot.hasOwnProperty("isPrototypeOf"))}__webpack_require__.d(__webpack_exports__,{Q:()=>isPlainObject})},"../../node_modules/.pnpm/is-promise@4.0.0/node_modules/is-promise/index.mjs":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{function isPromise(obj){return!!obj&&("object"==typeof obj||"function"==typeof obj)&&"function"==typeof obj.then}__webpack_require__.d(__webpack_exports__,{A:()=>isPromise})},"../../node_modules/.pnpm/redux@4.2.1/node_modules/redux/es/redux.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}function toPropertyKey(t){var i=function toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==_typeof(i)?i:String(i)}function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function _objectSpread2(e){for(var r=1;rapplyMiddleware,y$:()=>createStore});var $$observable="function"==typeof Symbol&&Symbol.observable||"@@observable",randomString=function randomString(){return Math.random().toString(36).substring(7).split("").join(".")},ActionTypes={INIT:"@@redux/INIT"+randomString(),REPLACE:"@@redux/REPLACE"+randomString(),PROBE_UNKNOWN_ACTION:function PROBE_UNKNOWN_ACTION(){return"@@redux/PROBE_UNKNOWN_ACTION"+randomString()}};function isPlainObject(obj){if("object"!=typeof obj||null===obj)return!1;for(var proto=obj;null!==Object.getPrototypeOf(proto);)proto=Object.getPrototypeOf(proto);return Object.getPrototypeOf(obj)===proto}function createStore(reducer,preloadedState,enhancer){var _ref2;if("function"==typeof preloadedState&&"function"==typeof enhancer||"function"==typeof enhancer&&"function"==typeof arguments[3])throw new Error(formatProdErrorMessage(0));if("function"==typeof preloadedState&&void 0===enhancer&&(enhancer=preloadedState,preloadedState=void 0),void 0!==enhancer){if("function"!=typeof enhancer)throw new Error(formatProdErrorMessage(1));return enhancer(createStore)(reducer,preloadedState)}if("function"!=typeof reducer)throw new Error(formatProdErrorMessage(2));var currentReducer=reducer,currentState=preloadedState,currentListeners=[],nextListeners=currentListeners,isDispatching=!1;function ensureCanMutateNextListeners(){nextListeners===currentListeners&&(nextListeners=currentListeners.slice())}function getState(){if(isDispatching)throw new Error(formatProdErrorMessage(3));return currentState}function subscribe(listener){if("function"!=typeof listener)throw new Error(formatProdErrorMessage(4));if(isDispatching)throw new Error(formatProdErrorMessage(5));var isSubscribed=!0;return ensureCanMutateNextListeners(),nextListeners.push(listener),function unsubscribe(){if(isSubscribed){if(isDispatching)throw new Error(formatProdErrorMessage(6));isSubscribed=!1,ensureCanMutateNextListeners();var index=nextListeners.indexOf(listener);nextListeners.splice(index,1),currentListeners=null}}}function dispatch(action){if(!isPlainObject(action))throw new Error(formatProdErrorMessage(7));if(void 0===action.type)throw new Error(formatProdErrorMessage(8));if(isDispatching)throw new Error(formatProdErrorMessage(9));try{isDispatching=!0,currentState=currentReducer(currentState,action)}finally{isDispatching=!1}for(var listeners=currentListeners=nextListeners,i=0;i{Object.defineProperty(exports,"__esModule",{value:!0}),exports.race=exports.join=exports.fork=exports.promise=void 0;var _is2=_interopRequireDefault(__webpack_require__("../../node_modules/.pnpm/rungen@0.3.2/node_modules/rungen/dist/utils/is.js")),_helpers=__webpack_require__("../../node_modules/.pnpm/rungen@0.3.2/node_modules/rungen/dist/utils/helpers.js"),_dispatcher2=_interopRequireDefault(__webpack_require__("../../node_modules/.pnpm/rungen@0.3.2/node_modules/rungen/dist/utils/dispatcher.js"));function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var promise=exports.promise=function promise(value,next,rungen,yieldNext,raiseNext){return!!_is2.default.promise(value)&&(value.then(next,raiseNext),!0)},forkedTasks=new Map,fork=exports.fork=function fork(value,next,rungen){if(!_is2.default.fork(value))return!1;var task=Symbol("fork"),dispatcher=(0,_dispatcher2.default)();forkedTasks.set(task,dispatcher),rungen(value.iterator.apply(null,value.args),(function(result){return dispatcher.dispatch(result)}),(function(err){return dispatcher.dispatch((0,_helpers.error)(err))}));var unsubscribe=dispatcher.subscribe((function(){unsubscribe(),forkedTasks.delete(task)}));return next(task),!0},join=exports.join=function join(value,next,rungen,yieldNext,raiseNext){if(!_is2.default.join(value))return!1;var unsubscribe,dispatcher=forkedTasks.get(value.task);return dispatcher?unsubscribe=dispatcher.subscribe((function(result){unsubscribe(),next(result)})):raiseNext("join error : task not found"),!0},race=exports.race=function race(value,next,rungen,yieldNext,raiseNext){if(!_is2.default.race(value))return!1;var result,finished=!1,success=function success(result,k,v){finished||(finished=!0,result[k]=v,next(result))},fail=function fail(err){finished||raiseNext(err)};return _is2.default.array(value.competitors)?(result=value.competitors.map((function(){return!1})),value.competitors.forEach((function(competitor,index){rungen(competitor,(function(output){return success(result,index,output)}),fail)}))):function(){var result=Object.keys(value.competitors).reduce((function(p,c){return p[c]=!1,p}),{});Object.keys(value.competitors).forEach((function(index){rungen(value.competitors[index],(function(output){return success(result,index,output)}),fail)}))}(),!0};exports.default=[promise,fork,join,race,function subscribe(value,next){if(!_is2.default.subscribe(value))return!1;if(!_is2.default.channel(value.channel))throw new Error('the first argument of "subscribe" must be a valid channel');var unsubscribe=value.channel.subscribe((function(ret){unsubscribe&&unsubscribe(),next(ret)}));return!0}]},"../../node_modules/.pnpm/rungen@0.3.2/node_modules/rungen/dist/controls/builtin.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.iterator=exports.array=exports.object=exports.error=exports.any=void 0;var _is2=function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}(__webpack_require__("../../node_modules/.pnpm/rungen@0.3.2/node_modules/rungen/dist/utils/is.js"));var any=exports.any=function any(value,next,rungen,yieldNext){return yieldNext(value),!0},error=exports.error=function error(value,next,rungen,yieldNext,raiseNext){return!!_is2.default.error(value)&&(raiseNext(value.error),!0)},object=exports.object=function object(value,next,rungen,yieldNext,raiseNext){if(!_is2.default.all(value)||!_is2.default.obj(value.value))return!1;var result={},keys=Object.keys(value.value),count=0,hasError=!1;return keys.map((function(key){rungen(value.value[key],(function(ret){return function gotResultSuccess(key,ret){hasError||(result[key]=ret,++count===keys.length&&yieldNext(result))}(key,ret)}),(function(err){return function gotResultError(key,error){hasError||(hasError=!0,raiseNext(error))}(0,err)}))})),!0},array=exports.array=function array(value,next,rungen,yieldNext,raiseNext){if(!_is2.default.all(value)||!_is2.default.array(value.value))return!1;var result=[],count=0,hasError=!1;return value.value.map((function(v,key){rungen(v,(function(ret){return function gotResultSuccess(key,ret){hasError||(result[key]=ret,++count===value.value.length&&yieldNext(result))}(key,ret)}),(function(err){return function gotResultError(key,error){hasError||(hasError=!0,raiseNext(error))}(0,err)}))})),!0},iterator=exports.iterator=function iterator(value,next,rungen,yieldNext,raiseNext){return!!_is2.default.iterator(value)&&(rungen(value,next,raiseNext),!0)};exports.default=[error,iterator,array,object,any]},"../../node_modules/.pnpm/rungen@0.3.2/node_modules/rungen/dist/controls/wrap.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.cps=exports.call=void 0;var _is2=function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}(__webpack_require__("../../node_modules/.pnpm/rungen@0.3.2/node_modules/rungen/dist/utils/is.js"));var call=exports.call=function call(value,next,rungen,yieldNext,raiseNext){if(!_is2.default.call(value))return!1;try{next(value.func.apply(value.context,value.args))}catch(err){raiseNext(err)}return!0},cps=exports.cps=function cps(value,next,rungen,yieldNext,raiseNext){var _value$func;return!!_is2.default.cps(value)&&((_value$func=value.func).call.apply(_value$func,[null].concat(function _toConsumableArray(arr){if(Array.isArray(arr)){for(var i=0,arr2=Array(arr.length);i{Object.defineProperty(exports,"__esModule",{value:!0});var _builtin2=_interopRequireDefault(__webpack_require__("../../node_modules/.pnpm/rungen@0.3.2/node_modules/rungen/dist/controls/builtin.js")),_is2=_interopRequireDefault(__webpack_require__("../../node_modules/.pnpm/rungen@0.3.2/node_modules/rungen/dist/utils/is.js"));function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _toConsumableArray(arr){if(Array.isArray(arr)){for(var i=0,arr2=Array(arr.length);i{Object.defineProperty(exports,"__esModule",{value:!0}),exports.wrapControls=exports.asyncControls=exports.create=void 0;var _helpers=__webpack_require__("../../node_modules/.pnpm/rungen@0.3.2/node_modules/rungen/dist/utils/helpers.js");Object.keys(_helpers).forEach((function(key){"default"!==key&&Object.defineProperty(exports,key,{enumerable:!0,get:function get(){return _helpers[key]}})}));var _create2=_interopRequireDefault(__webpack_require__("../../node_modules/.pnpm/rungen@0.3.2/node_modules/rungen/dist/create.js")),_async2=_interopRequireDefault(__webpack_require__("../../node_modules/.pnpm/rungen@0.3.2/node_modules/rungen/dist/controls/async.js")),_wrap2=_interopRequireDefault(__webpack_require__("../../node_modules/.pnpm/rungen@0.3.2/node_modules/rungen/dist/controls/wrap.js"));function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}exports.create=_create2.default,exports.asyncControls=_async2.default,exports.wrapControls=_wrap2.default},"../../node_modules/.pnpm/rungen@0.3.2/node_modules/rungen/dist/utils/dispatcher.js":(__unused_webpack_module,exports)=>{Object.defineProperty(exports,"__esModule",{value:!0});exports.default=function createDispatcher(){var listeners=[];return{subscribe:function subscribe(listener){return listeners.push(listener),function(){listeners=listeners.filter((function(l){return l!==listener}))}},dispatch:function dispatch(action){listeners.slice().forEach((function(listener){return listener(action)}))}}}},"../../node_modules/.pnpm/rungen@0.3.2/node_modules/rungen/dist/utils/helpers.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.createChannel=exports.subscribe=exports.cps=exports.apply=exports.call=exports.invoke=exports.delay=exports.race=exports.join=exports.fork=exports.error=exports.all=void 0;var _keys2=function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}(__webpack_require__("../../node_modules/.pnpm/rungen@0.3.2/node_modules/rungen/dist/utils/keys.js"));exports.all=function all(value){return{type:_keys2.default.all,value}},exports.error=function error(err){return{type:_keys2.default.error,error:err}},exports.fork=function fork(iterator){for(var _len=arguments.length,args=Array(_len>1?_len-1:0),_key=1;_key<_len;_key++)args[_key-1]=arguments[_key];return{type:_keys2.default.fork,iterator,args}},exports.join=function join(task){return{type:_keys2.default.join,task}},exports.race=function race(competitors){return{type:_keys2.default.race,competitors}},exports.delay=function delay(timeout){return new Promise((function(resolve){setTimeout((function(){return resolve(!0)}),timeout)}))},exports.invoke=function invoke(func){for(var _len2=arguments.length,args=Array(_len2>1?_len2-1:0),_key2=1;_key2<_len2;_key2++)args[_key2-1]=arguments[_key2];return{type:_keys2.default.call,func,context:null,args}},exports.call=function call(func,context){for(var _len3=arguments.length,args=Array(_len3>2?_len3-2:0),_key3=2;_key3<_len3;_key3++)args[_key3-2]=arguments[_key3];return{type:_keys2.default.call,func,context,args}},exports.apply=function apply(func,context,args){return{type:_keys2.default.call,func,context,args}},exports.cps=function cps(func){for(var _len4=arguments.length,args=Array(_len4>1?_len4-1:0),_key4=1;_key4<_len4;_key4++)args[_key4-1]=arguments[_key4];return{type:_keys2.default.cps,func,args}},exports.subscribe=function subscribe(channel){return{type:_keys2.default.subscribe,channel}},exports.createChannel=function createChannel(callback){var listeners=[];return callback((function next(val){return listeners.forEach((function(l){return l(val)}))})),{subscribe:function subscribe(l){return listeners.push(l),function(){return listeners.splice(listeners.indexOf(l),1)}}}}},"../../node_modules/.pnpm/rungen@0.3.2/node_modules/rungen/dist/utils/is.js":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0});var _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol?"symbol":typeof obj},_keys2=function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}(__webpack_require__("../../node_modules/.pnpm/rungen@0.3.2/node_modules/rungen/dist/utils/keys.js"));var is={obj:function obj(value){return"object"===(void 0===value?"undefined":_typeof(value))&&!!value},all:function all(value){return is.obj(value)&&value.type===_keys2.default.all},error:function error(value){return is.obj(value)&&value.type===_keys2.default.error},array:Array.isArray,func:function func(value){return"function"==typeof value},promise:function promise(value){return value&&is.func(value.then)},iterator:function iterator(value){return value&&is.func(value.next)&&is.func(value.throw)},fork:function fork(value){return is.obj(value)&&value.type===_keys2.default.fork},join:function join(value){return is.obj(value)&&value.type===_keys2.default.join},race:function race(value){return is.obj(value)&&value.type===_keys2.default.race},call:function call(value){return is.obj(value)&&value.type===_keys2.default.call},cps:function cps(value){return is.obj(value)&&value.type===_keys2.default.cps},subscribe:function subscribe(value){return is.obj(value)&&value.type===_keys2.default.subscribe},channel:function channel(value){return is.obj(value)&&is.func(value.subscribe)}};exports.default=is},"../../node_modules/.pnpm/rungen@0.3.2/node_modules/rungen/dist/utils/keys.js":(__unused_webpack_module,exports)=>{Object.defineProperty(exports,"__esModule",{value:!0});var keys={all:Symbol("all"),error:Symbol("error"),fork:Symbol("fork"),join:Symbol("join"),race:Symbol("race"),call:Symbol("call"),cps:Symbol("cps"),subscribe:Symbol("subscribe")};exports.default=keys}}]);