woocommerce/1317.d6caf979.iframe.bundle.js

9 lines
275 KiB
JavaScript
Raw Normal View History

(self.webpackChunk_woocommerce_storybook=self.webpackChunk_woocommerce_storybook||[]).push([[1317],{"../../node_modules/.pnpm/@wordpress+dataviews@4.3.0_@emotion+is-prop-valid@1.2.1_@types+react@17.0.71_react-dom@17.0.2_react@17.0.2__react@17.0.2/node_modules/@wordpress/dataviews/build-module/components/dataviews/index.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>DataViews});var selectors_namespaceObject={};__webpack_require__.r(selectors_namespaceObject),__webpack_require__.d(selectors_namespaceObject,{countSelectorsByStatus:()=>countSelectorsByStatus,getCachedResolvers:()=>getCachedResolvers,getIsResolving:()=>getIsResolving,getResolutionError:()=>getResolutionError,getResolutionState:()=>getResolutionState,hasFinishedResolution:()=>hasFinishedResolution,hasResolutionFailed:()=>hasResolutionFailed,hasResolvingSelectors:()=>hasResolvingSelectors,hasStartedResolution:()=>hasStartedResolution,isResolving:()=>isResolving});var actions_namespaceObject={};__webpack_require__.r(actions_namespaceObject),__webpack_require__.d(actions_namespaceObject,{failResolution:()=>failResolution,failResolutions:()=>failResolutions,finishResolution:()=>finishResolution,finishResolutions:()=>finishResolutions,invalidateResolution:()=>invalidateResolution,invalidateResolutionForStore:()=>invalidateResolutionForStore,invalidateResolutionForStoreSelector:()=>invalidateResolutionForStoreSelector,startResolution:()=>startResolution,startResolutions:()=>startResolutions});var component=__webpack_require__("../../node_modules/.pnpm/@wordpress+components@28.7.0_@emotion+is-prop-valid@1.2.1_@types+react@17.0.71_react-dom@17.0_hsnmspo6xxbym6m5qywqiwgrj4/node_modules/@wordpress/components/build-module/h-stack/component.js"),react=__webpack_require__("../../node_modules/.pnpm/react@18.3.1/node_modules/react/index.js"),build_module=__webpack_require__("../../node_modules/.pnpm/@wordpress+i18n@5.7.0/node_modules/@wordpress/i18n/build-module/index.js"),svg=__webpack_require__("../../node_modules/.pnpm/@wordpress+primitives@4.7.0_react@17.0.2/node_modules/@wordpress/primitives/build-module/svg/index.js"),jsx_runtime=__webpack_require__("../../node_modules/.pnpm/react@17.0.2/node_modules/react/jsx-runtime.js");const arrow_up=(0,jsx_runtime.jsx)(svg.t4,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,jsx_runtime.jsx)(svg.wA,{d:"M12 3.9 6.5 9.5l1 1 3.8-3.7V20h1.5V6.8l3.7 3.7 1-1z"})}),arrow_down=(0,jsx_runtime.jsx)(svg.t4,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,jsx_runtime.jsx)(svg.wA,{d:"m16.5 13.5-3.7 3.7V4h-1.5v13.2l-3.8-3.7-1 1 5.5 5.6 5.5-5.6z"})}),OPERATOR_IS="is",OPERATOR_IS_NOT="isNot",OPERATOR_IS_ANY="isAny",OPERATOR_IS_NONE="isNone",ALL_OPERATORS=[OPERATOR_IS,OPERATOR_IS_NOT,OPERATOR_IS_ANY,OPERATOR_IS_NONE,"isAll","isNotAll"],OPERATORS={[OPERATOR_IS]:{key:"is-filter",label:(0,build_module.__)("Is")},[OPERATOR_IS_NOT]:{key:"is-not-filter",label:(0,build_module.__)("Is not")},[OPERATOR_IS_ANY]:{key:"is-any-filter",label:(0,build_module.__)("Is any")},[OPERATOR_IS_NONE]:{key:"is-none-filter",label:(0,build_module.__)("Is none")},isAll:{key:"is-all-filter",label:(0,build_module.__)("Is all")},isNotAll:{key:"is-not-all-filter",label:(0,build_module.__)("Is not all")}},SORTING_DIRECTIONS=["asc","desc"],sortArrows={asc:"↑",desc:"↓"},sortValues={asc:"ascending",desc:"descending"},sortLabels={asc:(0,build_module.__)("Sort ascending"),desc:(0,build_module.__)("Sort descending")},sortIcons={asc:arrow_up,desc:arrow_down},LAYOUT_TABLE="table",LAYOUT_GRID="grid",LAYOUT_LIST="list",DataViewsContext=(0,react.createContext)({view:{type:LAYOUT_TABLE},onChangeView:()=>{},fields:[],data:[],paginationInfo:{totalItems:0,totalPages:0},selection:[],onChangeSelection:()=>{},setOpenedFilter:()=>{},openedFilter:null,getItemId:item=>item.id,density:0}),dataviews_context=DataViewsContext;var build_module_button=__webpack_require__("../../node_modules/.pnpm/@wordpress+components@28.7.0_@emotion+is-prop-valid@1.2.1_@types+react@17.0.71_react
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
`,StyledSpinner=(0,emotion_styled_base_browser_esm.A)("svg",{target:"ea4tfvq2"})("width:",config_values.A.spinnerSize,"px;height:",config_values.A.spinnerSize,"px;display:inline-block;margin:5px 11px 0;position:relative;color:",colors_values.l.theme.accent,";overflow:visible;opacity:1;background-color:transparent;"),commonPathProps={name:"9s4963",styles:"fill:transparent;stroke-width:1.5px"},SpinnerTrack=(0,emotion_styled_base_browser_esm.A)("circle",{target:"ea4tfvq1"})(commonPathProps,";stroke:",colors_values.l.gray[300],";"),SpinnerIndicator=(0,emotion_styled_base_browser_esm.A)("path",{target:"ea4tfvq0"})(commonPathProps,";stroke:currentColor;stroke-linecap:round;transform-origin:50% 50%;animation:1.4s linear infinite both ",spinAnimation,";");const spinner=(0,react.forwardRef)((function UnforwardedSpinner({className,...props},forwardedRef){return(0,jsx_runtime.jsxs)(StyledSpinner,{className:(0,clsx.A)("components-spinner",className),viewBox:"0 0 100 100",width:"16",height:"16",xmlns:"http://www.w3.org/2000/svg",role:"presentation",focusable:"false",...props,ref:forwardedRef,children:[(0,jsx_runtime.jsx)(SpinnerTrack,{cx:"50",cy:"50",r:"50",vectorEffect:"non-scaling-stroke"}),(0,jsx_runtime.jsx)(SpinnerIndicator,{d:"m 50 0 a 50 50 0 0 1 50 50",vectorEffect:"non-scaling-stroke"})]})}));var use_ref_effect=__webpack_require__("../../node_modules/.pnpm/@wordpress+compose@7.7.0_react@17.0.2/node_modules/@wordpress/compose/build-module/hooks/use-ref-effect/index.js"),deprecated_build_module=__webpack_require__("../../node_modules/.pnpm/@wordpress+deprecated@4.7.0/node_modules/@wordpress/deprecated/build-module/index.js"),library_reset=__webpack_require__("../../node_modules/.pnpm/@wordpress+icons@10.7.0_react@17.0.2/node_modules/@wordpress/icons/build-module/library/reset.js"),base_control=__webpack_require__("../../node_modules/.pnpm/@wordpress+components@28.7.0_@emotion+is-prop-valid@1.2.1_@types+react@17.0.71_react-dom@17.0_hsnmspo6xxbym6m5qywqiwgrj4/node_modules/@wordpress/components/build-module/base-control/index.js");const checkbox_control=function CheckboxControl(props){const{__nextHasNoMarginBottom,label,className,heading,checked,indeterminate,help,id:idProp,onChange,...additionalProps}=props;heading&&(0,deprecated_build_module.A)("`heading` prop in `CheckboxControl`",{alternative:"a separate element to implement a heading",since:"5.8"});const[showCheckedIcon,setShowCheckedIcon]=(0,react.useState)(!1),[showIndeterminateIcon,setShowIndeterminateIcon]=(0,react.useState)(!1),ref=(0,use_ref_effect.A)((node=>{node&&(node.indeterminate=!!indeterminate,setShowCheckedIcon(node.matches(":checked")),setShowIndeterminateIcon(node.matches(":indeterminate")))}),[checked,indeterminate]),id=(0,use_instance_id.A)(CheckboxControl,"inspector-checkbox-control",idProp);return(0,jsx_runtime.jsx)(base_control.Ay,{__nextHasNoMarginBottom,__associatedWPComponentName:"CheckboxControl",label:heading,id,help:help&&(0,jsx_runtime.jsx)("span",{className:"components-checkbox-control__help",children:help}),className:(0,clsx.A)("components-checkbox-control",className),children:(0,jsx_runtime.jsxs)(component.A,{spacing:0,justify:"start",alignment:"top",children:[(0,jsx_runtime.jsxs)("span",{className:"components-checkbox-control__input-container",children:[(0,jsx_runtime.jsx)("input",{ref,id,className:"components-checkbox-control__input",type:"checkbox",value:"1",onChange:event=>onChange(event.target.checked),checked,"aria-describedby":help?id+"__help":void 0,...additionalProps}),showIndeterminateIcon?(0,jsx_runtime.jsx)(icon.A,{icon:library_reset.A,className:"components-checkbox-control__indeterminate",role:"presentation"}):null,showCheckedIcon?(0,jsx_runtime.jsx)(icon.A,{icon:library_check,className:"components-checkbox-control__checked",role:"presentation"}):null]}),label&&(0,jsx_runtime.jsx)("label",{className:"components-checkbox-control__label",htmlFor:id,children:label})]})})};function DataViewsSelectionCheckbox({selection,onChangeSelection,item,getItemId,primaryField,disabled}){const id=getItemId(item),checked=!disabled&&selection.inclu
//# sourceMappingURL=1317.d6caf979.iframe.bundle.js.map