woocommerce/3.6620222e.iframe.bundle.js

1 line
15 KiB
JavaScript

"use strict";(self.webpackChunk_woocommerce_storybook=self.webpackChunk_woocommerce_storybook||[]).push([[3],{"../../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-item/component.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("../../node_modules/.pnpm/@babel+runtime@7.23.5/node_modules/@babel/runtime/helpers/esm/extends.js"),_wordpress_element__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("../../node_modules/.pnpm/react@18.3.1/node_modules/react/index.js"),_ui_context__WEBPACK_IMPORTED_MODULE_4__=__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"),_view__WEBPACK_IMPORTED_MODULE_2__=__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"),_hook__WEBPACK_IMPORTED_MODULE_0__=__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/flex-item/hook.js");const __WEBPACK_DEFAULT_EXPORT__=(0,_ui_context__WEBPACK_IMPORTED_MODULE_4__.KZ)((function FlexItem(props,forwardedRef){const flexItemProps=(0,_hook__WEBPACK_IMPORTED_MODULE_0__.K)(props);return(0,_wordpress_element__WEBPACK_IMPORTED_MODULE_1__.createElement)(_view__WEBPACK_IMPORTED_MODULE_2__.A,(0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_3__.A)({},flexItemProps,{ref:forwardedRef}))}),"FlexItem")},"../../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-item/hook.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{K:()=>useFlexItem});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"),_ui_context__WEBPACK_IMPORTED_MODULE_0__=__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"),_context__WEBPACK_IMPORTED_MODULE_1__=__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"),_styles__WEBPACK_IMPORTED_MODULE_4__=__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"),_utils_hooks_use_cx__WEBPACK_IMPORTED_MODULE_3__=__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");function useFlexItem(props){const{className,display:displayProp,isBlock=!1,...otherProps}=(0,_ui_context__WEBPACK_IMPORTED_MODULE_0__.A)(props,"FlexItem"),sx={},contextDisplay=(0,_context__WEBPACK_IMPORTED_MODULE_1__.a)().flexItemDisplay;sx.Base=(0,_emotion_react__WEBPACK_IMPORTED_MODULE_2__.AH)({display:displayProp||contextDisplay},"","");return{...otherProps,className:(0,_utils_hooks_use_cx__WEBPACK_IMPORTED_MODULE_3__.l)()(_styles__WEBPACK_IMPORTED_MODULE_4__.q7,sx.Base,isBlock&&_styles__WEBPACK_IMPORTED_MODULE_4__.om,className)}}},"../../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/input-control/input-base.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{A:()=>input_base});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"),use_instance_id=__webpack_require__("../../node_modules/.pnpm/@wordpress+compose@5.4.1_react@17.0.2/node_modules/@wordpress/compose/build-module/hooks/use-instance-id/index.js"),input_control_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/input-control/styles/input-control-styles.js");const backdrop=(0,react.memo)((function Backdrop(_ref){let{disabled=!1,isFocused=!1}=_ref;return(0,react.createElement)(input_control_styles.Hr,{"aria-hidden":"true",className:"components-input-control__backdrop",disabled,isFocused})}));var 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/visually-hidden/component.js");function Label(_ref){let{children,hideLabelFromVision,htmlFor,...props}=_ref;return children?hideLabelFromVision?(0,react.createElement)(component.A,{as:"label",htmlFor},children):(0,react.createElement)(input_control_styles.JU,(0,esm_extends.A)({htmlFor},props),children):null}function InputBase(_ref,ref){let{__unstableInputWidth,children,className,disabled=!1,hideLabelFromVision=!1,labelPosition,id:idProp,isFocused=!1,label,prefix,size="default",suffix,...props}=_ref;const id=function useUniqueId(idProp){const instanceId=(0,use_instance_id.A)(InputBase);return idProp||`input-base-control-${instanceId}`}(idProp),hideLabel=hideLabelFromVision||!label;return(0,react.createElement)(input_control_styles.bL,(0,esm_extends.A)({},props,function getUIFlexProps(labelPosition){const props={};switch(labelPosition){case"top":props.direction="column",props.gap=0;break;case"bottom":props.direction="column-reverse",props.gap=0;break;case"edge":props.justify="space-between"}return props}(labelPosition),{className,isFocused,labelPosition,ref}),(0,react.createElement)(input_control_styles.cR,null,(0,react.createElement)(Label,{className:"components-input-control__label",hideLabelFromVision,labelPosition,htmlFor:id,size},label)),(0,react.createElement)(input_control_styles.mc,{__unstableInputWidth,className:"components-input-control__container",disabled,hideLabel,labelPosition},prefix&&(0,react.createElement)(input_control_styles.b3,{className:"components-input-control__prefix"},prefix),children,suffix&&(0,react.createElement)(input_control_styles.sZ,{className:"components-input-control__suffix"},suffix),(0,react.createElement)(backdrop,{disabled,isFocused})))}const input_base=(0,react.forwardRef)(InputBase)},"../../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/input-control/styles/input-control-styles.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{Hr:()=>BackdropUI,JU:()=>Label,b3:()=>Prefix,bL:()=>Root,cR:()=>LabelWrapper,mc:()=>Container,pd:()=>Input,sZ:()=>Suffix});var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("../../node_modules/.pnpm/@babel+runtime@7.23.5/node_modules/@babel/runtime/helpers/esm/extends.js"),_emotion_styled_base__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("../../node_modules/.pnpm/@emotion+styled@11.11.0_@emotion+react@11.11.1_@types+react@17.0.71_react@17.0.2__@types+react@17.0.71_react@17.0.2/node_modules/@emotion/styled/base/dist/emotion-styled-base.browser.esm.js"),_wordpress_element__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("../../node_modules/.pnpm/react@18.3.1/node_modules/react/index.js"),_emotion_react__WEBPACK_IMPORTED_MODULE_3__=__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"),_flex__WEBPACK_IMPORTED_MODULE_1__=__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/flex/component.js"),_flex__WEBPACK_IMPORTED_MODULE_7__=__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/flex-item/component.js"),_text__WEBPACK_IMPORTED_MODULE_4__=__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/text/component.js"),_utils__WEBPACK_IMPORTED_MODULE_2__=__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/colors-values.js"),_utils__WEBPACK_IMPORTED_MODULE_8__=__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");var _ref6={name:"1739oy8",styles:"z-index:1"};const rootFocusedStyles=_ref7=>{let{isFocused}=_ref7;return isFocused?_ref6:""};var _ref3={name:"2o6p8u",styles:"justify-content:space-between"},_ref4={name:"14qk3ip",styles:"align-items:flex-start;flex-direction:column-reverse"},_ref5={name:"hbng6e",styles:"align-items:flex-start;flex-direction:column"};const rootLabelPositionStyles=_ref8=>{let{labelPosition}=_ref8;switch(labelPosition){case"top":return _ref5;case"bottom":return _ref4;case"edge":return _ref3;default:return""}},Root=(0,_emotion_styled_base__WEBPACK_IMPORTED_MODULE_0__.A)(_flex__WEBPACK_IMPORTED_MODULE_1__.A,{target:"em5sgkm7"})("position:relative;border-radius:2px;padding-top:0;",rootFocusedStyles," ",rootLabelPositionStyles,";");var _ref2={name:"wyxldh",styles:"margin:0 !important"};var _ref={name:"1d3w5wq",styles:"width:100%"};const Container=(0,_emotion_styled_base__WEBPACK_IMPORTED_MODULE_0__.A)("div",{target:"em5sgkm6"})("align-items:center;box-sizing:border-box;border-radius:inherit;display:flex;flex:1;position:relative;",(_ref9=>{let{disabled}=_ref9;const backgroundColor=disabled?_utils__WEBPACK_IMPORTED_MODULE_2__.lm.ui.backgroundDisabled:_utils__WEBPACK_IMPORTED_MODULE_2__.lm.ui.background;return(0,_emotion_react__WEBPACK_IMPORTED_MODULE_3__.AH)({backgroundColor},"","")})," ",(_ref10=>{let{hideLabel}=_ref10;return hideLabel?_ref2:null})," ",(_ref11=>{let{__unstableInputWidth,labelPosition}=_ref11;return __unstableInputWidth?"side"===labelPosition?"":"edge"===labelPosition?(0,_emotion_react__WEBPACK_IMPORTED_MODULE_3__.AH)({flex:`0 0 ${__unstableInputWidth}`},"",""):(0,_emotion_react__WEBPACK_IMPORTED_MODULE_3__.AH)({width:__unstableInputWidth},"",""):_ref}),";"),Input=(0,_emotion_styled_base__WEBPACK_IMPORTED_MODULE_0__.A)("input",{target:"em5sgkm5"})("&&&{background-color:transparent;box-sizing:border-box;border:none;box-shadow:none!important;color:",_utils__WEBPACK_IMPORTED_MODULE_2__.lm.black,";display:block;font-family:inherit;margin:0;outline:none;width:100%;",(_ref15=>{let defaultArrowStyles,activeDragCursorStyles,{isDragging,dragCursor}=_ref15;return isDragging&&(defaultArrowStyles=(0,_emotion_react__WEBPACK_IMPORTED_MODULE_3__.AH)("cursor:",dragCursor,";user-select:none;&::-webkit-outer-spin-button,&::-webkit-inner-spin-button{-webkit-appearance:none!important;margin:0!important;}","")),isDragging&&dragCursor&&(activeDragCursorStyles=(0,_emotion_react__WEBPACK_IMPORTED_MODULE_3__.AH)("&:active{cursor:",dragCursor,";}","")),(0,_emotion_react__WEBPACK_IMPORTED_MODULE_3__.AH)(defaultArrowStyles," ",activeDragCursorStyles,";","")})," ",(_ref12=>{let{disabled}=_ref12;return disabled?(0,_emotion_react__WEBPACK_IMPORTED_MODULE_3__.AH)({color:_utils__WEBPACK_IMPORTED_MODULE_2__.lm.ui.textDisabled},"",""):""})," ",(_ref13=>{let{inputSize:size}=_ref13;const sizes={default:"13px",small:"11px","__unstable-large":"13px"},fontSize=sizes[size]||sizes.default;return fontSize?(0,_emotion_react__WEBPACK_IMPORTED_MODULE_3__.AH)("font-size:","16px",";@media ( min-width: 600px ){font-size:",fontSize,";}",""):""})," ",(_ref14=>{let{inputSize:size}=_ref14;const sizes={default:{height:30,lineHeight:1,minHeight:30,paddingLeft:8,paddingRight:8},small:{height:24,lineHeight:1,minHeight:24,paddingLeft:8,paddingRight:8},"__unstable-large":{height:40,lineHeight:1,minHeight:40,paddingLeft:16,paddingRight:16}},style=sizes[size]||sizes.default;return(0,_emotion_react__WEBPACK_IMPORTED_MODULE_3__.AH)(style,"","")})," &::-webkit-input-placeholder{line-height:normal;}}"),labelMargin=_ref16=>{let{labelPosition}=_ref16,marginBottom=8;return"edge"!==labelPosition&&"side"!==labelPosition||(marginBottom=0),(0,_emotion_react__WEBPACK_IMPORTED_MODULE_3__.AH)({marginTop:0,marginRight:0,marginBottom,marginLeft:0},"","")},BaseLabel=(0,_emotion_styled_base__WEBPACK_IMPORTED_MODULE_0__.A)(_text__WEBPACK_IMPORTED_MODULE_4__.A,{target:"em5sgkm4"})("&&&{box-sizing:border-box;color:currentColor;display:block;padding-top:0;padding-bottom:0;max-width:100%;z-index:1;",labelMargin," overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}"),Label=props=>(0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.createElement)(BaseLabel,(0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_6__.A)({},props,{as:"label"})),LabelWrapper=(0,_emotion_styled_base__WEBPACK_IMPORTED_MODULE_0__.A)(_flex__WEBPACK_IMPORTED_MODULE_7__.A,{target:"em5sgkm3"})({name:"1b6uupn",styles:"max-width:calc( 100% - 10px )"}),BackdropUI=(0,_emotion_styled_base__WEBPACK_IMPORTED_MODULE_0__.A)("div",{target:"em5sgkm2"})("&&&{box-sizing:border-box;border-radius:inherit;bottom:0;left:0;margin:0;padding:0;pointer-events:none;position:absolute;right:0;top:0;",(_ref17=>{let boxShadow,{disabled,isFocused}=_ref17,borderColor=isFocused?_utils__WEBPACK_IMPORTED_MODULE_2__.lm.ui.borderFocus:_utils__WEBPACK_IMPORTED_MODULE_2__.lm.ui.border;return isFocused&&(boxShadow=`0 0 0 1px ${_utils__WEBPACK_IMPORTED_MODULE_2__.lm.ui.borderFocus} inset`),disabled&&(borderColor=_utils__WEBPACK_IMPORTED_MODULE_2__.lm.ui.borderDisabled),(0,_emotion_react__WEBPACK_IMPORTED_MODULE_3__.AH)({boxShadow,borderColor,borderStyle:"solid",borderWidth:1},"","")})," ",(0,_utils__WEBPACK_IMPORTED_MODULE_8__.h)({paddingLeft:2}),";}"),Prefix=(0,_emotion_styled_base__WEBPACK_IMPORTED_MODULE_0__.A)("span",{target:"em5sgkm1"})({name:"pvvbxf",styles:"box-sizing:border-box;display:block"}),Suffix=(0,_emotion_styled_base__WEBPACK_IMPORTED_MODULE_0__.A)("span",{target:"em5sgkm0"})({name:"jgf79h",styles:"align-items:center;align-self:stretch;box-sizing:border-box;display:flex"})}}]);