"use strict";(self.webpackChunk_woocommerce_storybook=self.webpackChunk_woocommerce_storybook||[]).push([[4452],{"../../node_modules/.pnpm/@wordpress+deprecated@3.41.0/node_modules/@wordpress/deprecated/build-module/index.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{A:()=>deprecated});var _wordpress_hooks__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("../../node_modules/.pnpm/@wordpress+hooks@3.57.0/node_modules/@wordpress/hooks/build-module/index.js");const logged=Object.create(null);function deprecated(feature,options={}){const{since,version,alternative,plugin,link,hint}=options,message=`${feature} is deprecated${since?` since version ${since}`:""}${version?` and will be removed${plugin?` from ${plugin}`:""} in version ${version}`:""}.${alternative?` Please use ${alternative} instead.`:""}${link?` See: ${link}`:""}${hint?` Note: ${hint}`:""}`;message in logged||((0,_wordpress_hooks__WEBPACK_IMPORTED_MODULE_0__.Eo)("deprecated",feature,options,message),console.warn(message),logged[message]=!0)}},"../../node_modules/.pnpm/@wordpress+hooks@3.57.0/node_modules/@wordpress/hooks/build-module/index.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{ip:()=>addAction,U2:()=>addFilter,W5:()=>applyFilters,FF:()=>build_module_createHooks,se:()=>defaultHooks,Eo:()=>doAction,FC:()=>hasFilter,V5:()=>removeAction});const build_module_validateNamespace=function validateNamespace(namespace){return"string"!=typeof namespace||""===namespace?(console.error("The namespace must be a non-empty string."),!1):!!/^[a-zA-Z][a-zA-Z0-9_.\-\/]*$/.test(namespace)||(console.error("The namespace can only contain numbers, letters, dashes, periods, underscores and slashes."),!1)};const build_module_validateHookName=function validateHookName(hookName){return"string"!=typeof hookName||""===hookName?(console.error("The hook name must be a non-empty string."),!1):/^__/.test(hookName)?(console.error("The hook name cannot begin with `__`."),!1):!!/^[a-zA-Z][a-zA-Z0-9_.-]*$/.test(hookName)||(console.error("The hook name can only contain numbers, letters, dashes, periods and underscores."),!1)};const build_module_createAddHook=function createAddHook(hooks,storeKey){return function addHook(hookName,namespace,callback,priority=10){const hooksStore=hooks[storeKey];if(!build_module_validateHookName(hookName))return;if(!build_module_validateNamespace(namespace))return;if("function"!=typeof callback)return void console.error("The hook callback must be a function.");if("number"!=typeof priority)return void console.error("If specified, the hook priority must be a number.");const handler={callback,priority,namespace};if(hooksStore[hookName]){const handlers=hooksStore[hookName].handlers;let i;for(i=handlers.length;i>0&&!(priority>=handlers[i-1].priority);i--);i===handlers.length?handlers[i]=handler:handlers.splice(i,0,handler),hooksStore.__current.forEach((hookInfo=>{hookInfo.name===hookName&&hookInfo.currentIndex>=i&&hookInfo.currentIndex++}))}else hooksStore[hookName]={handlers:[handler],runs:0};"hookAdded"!==hookName&&hooks.doAction("hookAdded",hookName,namespace,callback,priority)}};const build_module_createRemoveHook=function createRemoveHook(hooks,storeKey,removeAll=!1){return function removeHook(hookName,namespace){const hooksStore=hooks[storeKey];if(!build_module_validateHookName(hookName))return;if(!removeAll&&!build_module_validateNamespace(namespace))return;if(!hooksStore[hookName])return 0;let handlersRemoved=0;if(removeAll)handlersRemoved=hooksStore[hookName].handlers.length,hooksStore[hookName]={runs:hooksStore[hookName].runs,handlers:[]};else{const handlers=hooksStore[hookName].handlers;for(let i=handlers.length-1;i>=0;i--)handlers[i].namespace===namespace&&(handlers.splice(i,1),handlersRemoved++,hooksStore.__current.forEach((hookInfo=>{hookInfo.name===hookName&&hookInfo.currentIndex>=i&&hookInfo.currentIndex--})))}return"hookRemoved"!==hookName&&hooks.doAction("hookRemoved",hookName,namespace),handlersRemoved}};const build_module_createHasHook=function createHasHook(hooks,storeKey){return function hasHook(hookName,namespace){const hooksStore=hooks[storeKey];return void 0!==namespace?hookName in hooksStore&&hooksStore[hookName].handlers.some((hook=>hook.namespace===namespace)):hookName in hooksStore}};const build_module_createRunHook=function createRunHook(hooks,storeKey,returnFirstArg=!1){return function runHooks(hookName,...args){const hooksStore=hooks[storeKey];hooksStore[hookName]||(hooksStore[hookName]={handlers:[],runs:0}),hooksStore[hookName].runs++;const handlers=hooksStore[hookName].handlers;if(!handlers||!handlers.length)return returnFirstArg?args[0]:void 0;const hookInfo={name:hookName,currentIndex:0};for(hooksStore.__current.push(hookInfo);hookInfo.currentIndex