"use strict";(self.webpackChunk_woocommerce_storybook=self.webpackChunk_woocommerce_storybook||[]).push([[7274],{"../../node_modules/.pnpm/@wordpress+components@19.8.5_@types+react@17.0.71_react-dom@17.0.2_react@17.0.2__react-with-d_oli5xz3n7pc4ztqokra47llglu/node_modules/@wordpress/components/build-module/flex/context.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{R:()=>FlexContext,a:()=>useFlexContext});var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("../../node_modules/.pnpm/react@18.3.1/node_modules/react/index.js");const FlexContext=(0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createContext)({flexItemDisplay:void 0}),useFlexContext=()=>(0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.useContext)(FlexContext)},"../../node_modules/.pnpm/@wordpress+components@19.8.5_@types+react@17.0.71_react-dom@17.0.2_react@17.0.2__react-with-d_oli5xz3n7pc4ztqokra47llglu/node_modules/@wordpress/components/build-module/flex/flex/component.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{A:()=>flex_component});var esm_extends=__webpack_require__("../../node_modules/.pnpm/@babel+runtime@7.23.5/node_modules/@babel/runtime/helpers/esm/extends.js"),react=__webpack_require__("../../node_modules/.pnpm/react@18.3.1/node_modules/react/index.js"),context_connect=__webpack_require__("../../node_modules/.pnpm/@wordpress+components@19.8.5_@types+react@17.0.71_react-dom@17.0.2_react@17.0.2__react-with-d_oli5xz3n7pc4ztqokra47llglu/node_modules/@wordpress/components/build-module/ui/context/context-connect.js"),emotion_react_browser_esm=__webpack_require__("../../node_modules/.pnpm/@emotion+react@11.11.1_@types+react@17.0.71_react@17.0.2/node_modules/@emotion/react/dist/emotion-react.browser.esm.js"),build_module=__webpack_require__("../../node_modules/.pnpm/@wordpress+deprecated@3.41.0/node_modules/@wordpress/deprecated/build-module/index.js"),use_context_system=__webpack_require__("../../node_modules/.pnpm/@wordpress+components@19.8.5_@types+react@17.0.71_react-dom@17.0.2_react@17.0.2__react-with-d_oli5xz3n7pc4ztqokra47llglu/node_modules/@wordpress/components/build-module/ui/context/use-context-system.js");const breakpoints=["40em","52em","64em"],useBreakpointIndex=function(){let options=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{defaultIndex=0}=options;if("number"!=typeof defaultIndex)throw new TypeError(`Default breakpoint index should be a number. Got: ${defaultIndex}, ${typeof defaultIndex}`);if(defaultIndex<0||defaultIndex>breakpoints.length-1)throw new RangeError(`Default breakpoint index out of range. Theme has ${breakpoints.length} breakpoints, got index ${defaultIndex}`);const[value,setValue]=(0,react.useState)(defaultIndex);return(0,react.useEffect)((()=>{const onResize=()=>{const newValue=breakpoints.filter((bp=>"undefined"!=typeof window&&window.matchMedia(`screen and (min-width: ${bp})`).matches)).length;value!==newValue&&setValue(newValue)};return onResize(),"undefined"!=typeof window&&window.addEventListener("resize",onResize),()=>{"undefined"!=typeof window&&window.removeEventListener("resize",onResize)}}),[value]),value};var space=__webpack_require__("../../node_modules/.pnpm/@wordpress+components@19.8.5_@types+react@17.0.71_react-dom@17.0.2_react@17.0.2__react-with-d_oli5xz3n7pc4ztqokra47llglu/node_modules/@wordpress/components/build-module/ui/utils/space.js"),styles=__webpack_require__("../../node_modules/.pnpm/@wordpress+components@19.8.5_@types+react@17.0.71_react-dom@17.0.2_react@17.0.2__react-with-d_oli5xz3n7pc4ztqokra47llglu/node_modules/@wordpress/components/build-module/flex/styles.js"),use_cx=__webpack_require__("../../node_modules/.pnpm/@wordpress+components@19.8.5_@types+react@17.0.71_react-dom@17.0.2_react@17.0.2__react-with-d_oli5xz3n7pc4ztqokra47llglu/node_modules/@wordpress/components/build-module/utils/hooks/use-cx.js"),rtl=__webpack_require__("../../node_modules/.pnpm/@wordpress+components@19.8.5_@types+react@17.0.71_react-dom@17.0.2_react@17.0.2__react-with-d_oli5xz3n7pc4ztqokra47llglu/node_modules/@wordpress/components/build-module/utils/rtl.js");function useFlex(props){const{align="center",className,direction:directionProp="row",expanded=!0,gap=2,justify="space-between",wrap=!1,...otherProps}=(0,use_context_system.A)(function useDeprecatedProps(_ref){let{isReversed,...otherProps}=_ref;return void 0!==isReversed?((0,build_module.A)("Flex isReversed",{alternative:'Flex direction="row-reverse" or "column-reverse"',since:"5.9"}),{...otherProps,direction:isReversed?"row-reverse":"row"}):otherProps}(props),"Flex"),direction=function useResponsiveValue(values){const index=useBreakpointIndex(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{});if(!Array.isArray(values)&&"function"!=typeof values)return values;const array=values||[];return array[index>=array.length?array.length-1:index]}(Array.isArray(directionProp)?directionProp:[directionProp]),isColumn="string"==typeof direction&&!!direction.includes("column"),isReverse="string"==typeof direction&&direction.includes("reverse"),cx=(0,use_cx.l)();return{...otherProps,className:(0,react.useMemo)((()=>{const sx={};return sx.Base=(0,emotion_react_browser_esm.AH)({alignItems:isColumn?"normal":align,flexDirection:direction,flexWrap:wrap?"wrap":void 0,justifyContent:justify,height:isColumn&&expanded?"100%":void 0,width:!isColumn&&expanded?"100%":void 0,marginBottom:wrap?`calc(${(0,space.x)(gap)} * -1)`:void 0},"",""),sx.Items=(0,emotion_react_browser_esm.AH)(">*+*:not( marquee ){margin-top:",isColumn?(0,space.x)(gap):void 0,";",(0,rtl.h)({marginLeft:isColumn||isReverse?void 0:(0,space.x)(gap),marginRight:!isColumn&&isReverse?(0,space.x)(gap):void 0})(),";}",""),sx.WrapItems=(0,emotion_react_browser_esm.AH)(">*:not( marquee ){margin-bottom:",(0,space.x)(gap),";",(0,rtl.h)({marginLeft:!isColumn&&isReverse?(0,space.x)(gap):void 0,marginRight:isColumn||isReverse?void 0:(0,space.x)(gap)})(),";}>*:last-child:not( marquee ){",(0,rtl.h)({marginLeft:!isColumn&&isReverse?0:void 0,marginRight:isColumn||isReverse?void 0:0})(),";}",""),cx(styles.so,sx.Base,wrap?sx.WrapItems:sx.Items,isColumn?styles.Z2:styles.RI,className)}),[align,className,cx,direction,expanded,gap,isColumn,isReverse,justify,wrap,rtl.h.watch()]),isColumn}}var context=__webpack_require__("../../node_modules/.pnpm/@wordpress+components@19.8.5_@types+react@17.0.71_react-dom@17.0.2_react@17.0.2__react-with-d_oli5xz3n7pc4ztqokra47llglu/node_modules/@wordpress/components/build-module/flex/context.js"),component=__webpack_require__("../../node_modules/.pnpm/@wordpress+components@19.8.5_@types+react@17.0.71_react-dom@17.0.2_react@17.0.2__react-with-d_oli5xz3n7pc4ztqokra47llglu/node_modules/@wordpress/components/build-module/view/component.js");const flex_component=(0,context_connect.KZ)((function Flex(props,forwardedRef){const{children,isColumn,...otherProps}=useFlex(props);return(0,react.createElement)(context.R.Provider,{value:{flexItemDisplay:isColumn?"block":void 0}},(0,react.createElement)(component.A,(0,esm_extends.A)({},otherProps,{ref:forwardedRef}),children))}),"Flex")},"../../node_modules/.pnpm/@wordpress+components@19.8.5_@types+react@17.0.71_react-dom@17.0.2_react@17.0.2__react-with-d_oli5xz3n7pc4ztqokra47llglu/node_modules/@wordpress/components/build-module/flex/styles.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{RI:()=>ItemsRow,Z2:()=>ItemsColumn,om:()=>block,q7:()=>Item,so:()=>Flex});const Flex={name:"zjik7",styles:"display:flex"},Item={name:"qgaee5",styles:"display:block;max-height:100%;max-width:100%;min-height:0;min-width:0"},block={name:"82a6rk",styles:"flex:1"},ItemsColumn={name:"13nosa1",styles:">*{min-height:0;}"},ItemsRow={name:"1pwxzk4",styles:">*{min-width:0;}"}},"../../node_modules/.pnpm/@wordpress+components@19.8.5_@types+react@17.0.71_react-dom@17.0.2_react@17.0.2__react-with-d_oli5xz3n7pc4ztqokra47llglu/node_modules/@wordpress/components/build-module/utils/rtl.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{h:()=>rtl});var _emotion_react__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("../../node_modules/.pnpm/@emotion+react@11.11.1_@types+react@17.0.71_react@17.0.2/node_modules/@emotion/react/dist/emotion-react.browser.esm.js"),lodash__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/lodash.js"),_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("../../node_modules/.pnpm/@wordpress+i18n@4.6.1/node_modules/@wordpress/i18n/build-module/index.js");const LOWER_LEFT_REGEXP=new RegExp(/-left/g),LOWER_RIGHT_REGEXP=new RegExp(/-right/g),UPPER_LEFT_REGEXP=new RegExp(/Left/g),UPPER_RIGHT_REGEXP=new RegExp(/Right/g);const convertLTRToRTL=function(){let ltrStyles=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,lodash__WEBPACK_IMPORTED_MODULE_0__.mapKeys)(ltrStyles,((_value,key)=>function getConvertedKey(key){return"left"===key?"right":"right"===key?"left":LOWER_LEFT_REGEXP.test(key)?key.replace(LOWER_LEFT_REGEXP,"-right"):LOWER_RIGHT_REGEXP.test(key)?key.replace(LOWER_RIGHT_REGEXP,"-left"):UPPER_LEFT_REGEXP.test(key)?key.replace(UPPER_LEFT_REGEXP,"Right"):UPPER_RIGHT_REGEXP.test(key)?key.replace(UPPER_RIGHT_REGEXP,"Left"):key}(key)))};function rtl(){let ltrStyles=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},rtlStyles=arguments.length>1?arguments[1]:void 0;return()=>rtlStyles?(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.V8)()?(0,_emotion_react__WEBPACK_IMPORTED_MODULE_2__.AH)(rtlStyles,""):(0,_emotion_react__WEBPACK_IMPORTED_MODULE_2__.AH)(ltrStyles,""):(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.V8)()?(0,_emotion_react__WEBPACK_IMPORTED_MODULE_2__.AH)(convertLTRToRTL(ltrStyles),""):(0,_emotion_react__WEBPACK_IMPORTED_MODULE_2__.AH)(ltrStyles,"")}rtl.watch=()=>(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.V8)()}}]);