????

Your IP : 3.145.60.133


Current Path : /home/multihiv/www/store/wp-content/plugins/woocommerce/assets/client/admin/chunks/
Upload File :
Current File : /home/multihiv/www/store/wp-content/plugins/woocommerce/assets/client/admin/chunks/6262.js

"use strict";(globalThis.webpackChunk_wcAdmin_webpackJsonp=globalThis.webpackChunk_wcAdmin_webpackJsonp||[]).push([[6262],{58176:(e,o,t)=>{t.d(o,{Z:()=>n});var r=t(70444),c=t(81514);const n=(0,c.jsx)(r.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,c.jsx)(r.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"})})},32196:(e,o,t)=>{t.d(o,{Z:()=>n});var r=t(70444),c=t(81514);const n=(0,c.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,c.jsx)(r.Path,{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"})})},91667:(e,o,t)=>{t.d(o,{Z:()=>n});var r=t(70444),c=t(81514);const n=(0,c.jsx)(r.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,c.jsx)(r.Path,{d:"M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"})})},24304:(e,o,t)=>{t.d(o,{Z:()=>i});var r=t(65736),c=t(55609),n=t(14812),s=t(81514);const i=({onCancel:e,onImport:o})=>(0,s.jsxs)(c.Modal,{className:"woocommerce-products-load-sample-product-confirm-modal",overlayClassName:"woocommerce-products-load-sample-product-confirm-modal-overlay",title:(0,r.__)("Load sample products","woocommerce"),onRequestClose:e,children:[(0,s.jsx)(n.Text,{className:"woocommerce-confirmation-modal__message",children:(0,r.__)("We’ll import images from WooCommerce.com to set up your sample products.","woocommerce")}),(0,s.jsxs)("div",{className:"woocommerce-confirmation-modal-actions",children:[(0,s.jsx)(c.Button,{isSecondary:!0,onClick:e,children:(0,r.__)("Cancel","woocommerce")}),(0,s.jsx)(c.Button,{isPrimary:!0,onClick:o,children:(0,r.__)("Import sample products","woocommerce")})]})]})},43378:(e,o,t)=>{t.d(o,{Z:()=>i});var r=t(65736),c=t(55609),n=t(14812),s=t(81514);const i=()=>(0,s.jsxs)(c.Modal,{className:"woocommerce-products-load-sample-product-modal",overlayClassName:"woocommerce-products-load-sample-product-modal-overlay",title:"",onRequestClose:()=>{},children:[(0,s.jsx)(c.Spinner,{color:"#007cba",size:48}),(0,s.jsx)(n.Text,{className:"woocommerce-load-sample-product-modal__title",children:(0,r.__)("Loading sample products","woocommerce")}),(0,s.jsx)(n.Text,{className:"woocommerce-load-sample-product-modal__description",children:(0,r.__)("We are loading 9 sample products into your store","woocommerce")})]})},19987:(e,o,t)=>{t.d(o,{Z:()=>m});var r=t(65736),c=t(86989),n=t.n(c),s=t(67221),i=t(9818),a=t(69307),l=t(14599),d=t(80945);const m=({redirectUrlAfterSuccess:e})=>{const[o,t]=(0,a.useState)(!1),{createNotice:c}=(0,i.useDispatch)("core/notices"),{recordCompletionTime:m}=(0,d.Z)("products");return{loadSampleProduct:async()=>{(0,l.recordEvent)("tasklist_add_product",{method:"sample_product"}),m(),t(!0);try{if(await n()({path:`${s.WC_ADMIN_NAMESPACE}/onboarding/tasks/import_sample_products`,method:"POST"}),e)return void(window.location.href=e)}catch(e){const o=e instanceof Error&&e.message?e.message:(0,r.__)("There was an error importing the sample products","woocommerce");c("error",o)}t(!1)},isLoadingSampleProducts:o}}},40955:(e,o,t)=>{t.d(o,{RC:()=>f,xz:()=>_,x:()=>k,Ir:()=>x,Yc:()=>g,wW:()=>v,M5:()=>h,T:()=>y});var r=t(65736),c=t(30234),n=t(81406),s=t(3173),i=t(59550),a=t(32196),l=t(14599),d=t(74617),m=t(81514);const p=()=>(0,m.jsxs)("svg",{width:"25",height:"24",viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,m.jsx)("mask",{id:"mask0_1133_132681",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"2",y:"7",width:"21",height:"10",children:(0,m.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.5 15H7.5C5.85 15 4.5 13.65 4.5 12C4.5 10.35 5.85 9 7.5 9H11.5V7H7.5C4.74 7 2.5 9.24 2.5 12C2.5 14.76 4.74 17 7.5 17H11.5V15ZM17.5 7H13.5V9H17.5C19.15 9 20.5 10.35 20.5 12C20.5 13.65 19.15 15 17.5 15H13.5V17H17.5C20.26 17 22.5 14.76 22.5 12C22.5 9.24 20.26 7 17.5 7ZM16.5 11H8.5V13H16.5V11Z",fill:"white"})}),(0,m.jsx)("g",{mask:"url(#mask0_1133_132681)",children:(0,m.jsx)("rect",{x:"0.5",width:"24",height:"24"})})]}),u=()=>(0,m.jsxs)("svg",{width:"25",height:"24",viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,m.jsx)("mask",{id:"mask0_1133_132667",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"2",y:"2",width:"21",height:"20",children:(0,m.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.5 2.34497L10.84 7.99497V3.65497H2.84003V11.655H10.84V7.99497L16.5 13.655H12.84V21.655H20.84V13.655H16.5L22.16 7.99497L16.5 2.34497ZM19.33 8.00497L16.5 5.17497L13.67 8.00497L16.5 10.835L19.33 8.00497ZM8.84003 9.65497V5.65497H4.84003V9.65497H8.84003ZM18.84 15.655V19.655H14.84V15.655H18.84ZM8.84003 19.655V15.655H4.84003V19.655H8.84003ZM2.84003 13.655H10.84V21.655H2.84003V13.655Z",fill:"white"})}),(0,m.jsx)("g",{mask:"url(#mask0_1133_132667)",children:(0,m.jsx)("rect",{x:"0.5",width:"24",height:"24"})})]}),w=()=>(0,m.jsxs)("svg",{width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,m.jsx)("circle",{cx:"20",cy:"20",r:"20",fill:"#007CBA",fillOpacity:"0.05"}),(0,m.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M26.5 23L26.5 28L28 28L28 23L26.5 23Z"}),(0,m.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 23L12 28L13.5 28L13.5 23L12 23Z"}),(0,m.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 28H28V26.5H12V28Z"}),(0,m.jsx)("path",{d:"M20.25 13L26 18.25M20.25 13L20.25 28M20.25 13L15 18.25",strokeWidth:"1.5",className:"stroke-admin-theme"})]}),h=Object.freeze([{key:"physical",title:(0,r.__)("Physical product","woocommerce"),content:(0,r.__)("A tangible item that gets delivered to customers.","woocommerce"),before:(0,m.jsx)(c.Z,{}),after:(0,m.jsx)(i.Z,{icon:a.Z})},{key:"digital",title:(0,r.__)("Digital product","woocommerce"),content:(0,r.__)("A digital product like service, downloadable book, music or video.","woocommerce"),before:(0,m.jsx)(n.Z,{}),after:(0,m.jsx)(i.Z,{icon:a.Z})},{key:"variable",title:(0,r.__)("Variable product","woocommerce"),content:(0,r.__)("A product with variations like color or size.","woocommerce"),before:(0,m.jsx)(s.Z,{}),after:(0,m.jsx)(i.Z,{icon:a.Z})},{key:"grouped",title:(0,r.__)("Grouped product","woocommerce"),content:(0,r.__)("A collection of related products.","woocommerce"),before:(0,m.jsx)(u,{}),after:(0,m.jsx)(i.Z,{icon:a.Z})},{key:"external",title:(0,r.__)("External product","woocommerce"),content:(0,r.__)("Link a product to an external website.","woocommerce"),before:(0,m.jsx)(p,{}),after:(0,m.jsx)(i.Z,{icon:a.Z})}]),_=((0,r.__)("can’t decide?","woocommerce"),(0,r.__)("Load sample products and see what they look like in your store.","woocommerce"),i.Z,a.Z,{key:"printful-advert",title:(0,m.jsx)("span",{className:"printful-sponsored__text",children:(0,r.__)("Print-on-demand products","woocommerce")}),content:(0,r.__)("Design and easily sell custom print products online with Printful.","woocommerce"),className:"woocommerce-products-list__item-advert",before:(0,m.jsx)("img",{className:"printful-sponsored__icon",alt:"Printful",src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAQ+SURBVHgB7VbrS1tnGH9zsbqoNYkmCm7k4IiLF5zDynR4GZvzBoK2ODYZWnABtaTTmcHWZJu2H8SBa7VksjLWD1sn88NYaP+B0oqlFVGqeCcqqOA1XqImmqS/U4gcj++xKaX0y/mB+J7zPO9z+T2XHEJEiBAhQoQIEQEUFRXdPk2em5t7saKiIl9IbrFYdPn5+d+S14G0tLTahIQEf3l5eS1N3tjYyEDuSExMfHCKjZakpCQvksgmQUIajFJvb69mZ2fHyp4nJyd/qaqqUvF1+vv7r+Afc3h4mFNaWnqBLzcYDIzf7//J7XZLZ2ZmbuIclO+glGw22w+sc/a8v7+vRpBWrrysrMywvr5uDDwvLi52dnV1neXqhIaGtrtcLgl7RrIZYPESCQIvDLC4uPi9tbW1b7jv4OhyXV0dE3h2Op02r9d7JN/a2orv6en5MfCM3q3e3t7+nGtjYmKihWEYJXnVAOH4v93d3WN6KJN8dHTUxp6NRuMXCwsLn/DvbWxsNJlMpvcHBwc1U1NTrXw5bKg1Gk0zeQFkpwnZqZybmzPSZOghfUlJSefQ0JAFZTfw5UiMTcrV19e3s7y8fJlmA/16rrKy8p+BgQEnEYAggwhAjl76WfCiVNq6tLRUk5yc3BISEuKiqMxGRkbeQ3tsR0dH99FsHBwcKJDgLXIKBAPMy8v7DkEyNBkCWlQqlX+jtL+il84jkBNOUL6r09PTNRiIPwsKCpoxJD6aLbD7GYbsAnmZALOyshg0+vdCl8BIOxy3s70JveaUlJQ7MpnsqExo/tH09PSnkF3EXzJK+HF4eHinkL35+fkbWGURNBm1B+Pj4/9Ak39Ak8XGxg7C+W8jIyPX2Wefz3cGwR4gKPvKykoR2CUKhSIH7N31eDzPpxQTfC47O9u8urpajOE4MbnQO4s96gab9/myEww2NDR8CUdUyiUSCVGr1V8NDw//y30Pli7FxcU9QWCPweRfcrn8PIJmAnIMgxKtcC01NbWVCACBN2E3avnvjzGInpOZzWY7JpC6n7Ra7W2wIUcC1dz3YJFdznr8lJmjoqIeYfJtCErB1cE9vUql+h2D8eHe3p6abxs2wpBgrMPh+J/7/hiDGRkZtaCbIXTM6nS6W2DmKk0IBnJgPBRLOwlrJ4YvR/JkfHzcqtfrvwbLVAe4X43V9ik1wI6Ojnc2NzevEAGAvZsoUx0S0NLkERERDtx3hIWFPUKJ92g6uPsRgn8XPX5HyA+YvsGuuBMB2u12CwQ62iX03mxmZuZDXK4RMlxYWGiKiYlhh8uEUl0X0sOHQju+eq4hiS2aHP2cih+ApiPfgUNbW5sKy/ct0B+ClSDhXkLWzrGxMQ8CiMSKOYOdJoXeMZ36+vpZfCC8DQd+q9W60N3dzfBssH3mxeL2YKCcCFCBxKO4OmDYBxK8qIIbs7BKRIgQIUKECBFvHM8A3oX7lMGFKQ8AAAAASUVORK5CYII="}),after:(0,m.jsx)("div",{className:"woocommerce-label",children:(0,r.__)("Promoted","woocommerce")}),onClick:()=>{(0,l.recordEvent)("tasklist_product_printful_advert_click"),window.open("https://woocommerce.com/products/printful","_blank","noopener,noreferrer")}}),f={key:"import-csv",title:(0,m.jsx)("span",{className:"printful-sponsored__text",children:(0,r.__)("Are you already selling somewhere else?","woocommerce")}),content:(0,r.__)("Import your products from a CSV file.","woocommerce"),className:"woocommerce-products-list__item-advert",before:(0,m.jsx)(w,{}),after:null,onClick:()=>{(0,l.recordEvent)("tasklist_add_product",{method:"import"}),window.location.href=(0,d.getAdminLink)("edit.php?post_type=product&page=product_importer&wc_onboarding_active_task=products")}},v=Object.freeze({physical:["physical","variable","grouped"],downloads:["digital"],"downloads,physical":["physical","digital"]}),g=v.physical,y=["physical","downloads"],x="experimental_woocommerce_tasklist_product_types",k="woocommerce_admin_task_products_after"},639:(e,o,t)=>{t.d(o,{Z:()=>m});var r=t(65736),c=t(86020),n=t(14812),s=t(28302),i=t(74617),a=t(14599),l=t(80945),d=t(81514);const m=({items:e,onClickLoadSampleProduct:o=(()=>{}),showOtherOptions:t=!0,isTaskListItemClicked:m=!1})=>{const{recordCompletionTime:p}=(0,l.Z)("products");return(0,d.jsxs)("div",{className:"woocommerce-products-stack",children:[m&&(0,d.jsx)("div",{className:"woocommerce-stack__overlay-spinner",children:(0,d.jsx)(c.Spinner,{className:"list-overlay"})}),(0,d.jsx)(c.List,{items:e}),t&&(0,d.jsx)(n.Text,{className:"woocommerce-stack__other-options",children:(0,s.Z)({mixedString:(0,r.__)("Can’t find your product type? {{sbLink}}Start Blank{{/sbLink}} or {{LspLink}}Load Sample Products{{/LspLink}} to see what they look like in your store.","woocommerce"),components:{sbLink:(0,d.jsx)(c.Link,{onClick:()=>((0,a.recordEvent)("tasklist_add_product",{method:"manually"}),p(),window.location.href=(0,i.getAdminLink)("post-new.php?post_type=product&wc_onboarding_active_task=products&tutorial=true"),!1),href:"",type:"wc-admin",children:(0,d.jsx)(d.Fragment,{})}),LspLink:(0,d.jsx)(c.Link,{href:"",type:"wc-admin",onClick:()=>(o(),!1),children:(0,d.jsx)(d.Fragment,{})})}})})]})}},55684:(e,o,t)=>{t.d(o,{Z:()=>p});var r=t(69307),c=t(14599),n=t(9818),s=t(67221),i=t(10431),a=t(74617),l=t(73516),d=t(4174),m=t(91978);const p=(e,o=[],{onClick:t}={})=>{const{createProductByType:p,isRequesting:u}=(()=>{const{createProductFromTemplate:e}=(0,n.useDispatch)(s.ITEMS_STORE_NAME),[o,t]=(0,r.useState)(!1),c=async o=>{try{const t=await e({template_name:o,status:"draft"},{_fields:["id"]});if(t&&t.id)return(0,a.getAdminLink)(`post.php?post=${t.id}&action=edit&wc_onboarding_active_task=products&tutorial=true&tutorial_type=${o}`);throw new Error("Unexpected empty data response from server")}catch(e){(0,d.a)(e)}};return{createProductByType:async e=>{if(t(!0),("physical"===e||"variable"===e||"digital"===e||"grouped"===e||"external"===e)&&"treatment"===(await(0,l.loadExperimentAssignment)("woocommerce_product_creation_experience_pricing_to_general_202406")).variationName){const o=await c(e),t=(0,m.O3)("_feature_nonce");return void(window.location.href=o+`&product_block_editor=1&_feature_nonce=${t}`)}const o=await c(e);o&&(0,i.navigateTo)({url:o}),t(!1)},isRequesting:o}})();return{productTypes:(0,r.useMemo)((()=>e.map((e=>({...e,onClick:()=>{"function"==typeof e?.onClick?e.onClick():p(e.key),(0,c.recordEvent)("tasklist_add_product",{method:"product_template"}),(0,c.recordEvent)("tasklist_product_template_selection",{product_type:e.key,is_suggested:o.includes(e.key)}),"function"==typeof t&&t()}})))),[e,p,t,o]),isRequesting:u}}},76731:(e,o,t)=>{t.d(o,{Q:()=>s,r:()=>i});var r=t(92819),c=t(92694),n=t(40955);const s=({exclude:e}={})=>{const o=(0,c.applyFilters)(n.Ir,[]);let t=[...n.M5,...o];return e&&e?.length>0&&(t=t.filter((o=>!e.includes(o.key)))),t},i=e=>{const o=(0,r.intersection)(e,n.T).sort().join(",");return n.wW.hasOwnProperty(o)?n.wW[o]:n.Yc}},80945:(e,o,t)=>{t.d(o,{Z:()=>s});var r=t(69307),c=t(14599),n=t(21464);const s=(e,o)=>{const t=(0,r.useRef)(o||window.performance.now());return{recordCompletionTime:()=>{(0,c.recordEvent)("task_completion_time",{task_name:e,time:(0,n.Jm)(window.performance.now()-t.current)})}}}},81406:(e,o,t)=>{o.Z=function(e){var o=e.size,t=void 0===o?24:o,r=e.onClick,i=(e.icon,e.className),a=function(e,o){if(null==e)return{};var t,r,c=function(e,o){if(null==e)return{};var t,r,c={},n=Object.keys(e);for(r=0;r<n.length;r++)t=n[r],0<=o.indexOf(t)||(c[t]=e[t]);return c}(e,o);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r<n.length;r++)t=n[r],0<=o.indexOf(t)||Object.prototype.propertyIsEnumerable.call(e,t)&&(c[t]=e[t])}return c}(e,n),l=["gridicon","gridicons-cloud-outline",i,!1,!1,!1].filter(Boolean).join(" ");return c.default.createElement("svg",s({className:l,height:t,width:t,onClick:r},a,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),c.default.createElement("g",null,c.default.createElement("path",{d:"M11.5 5a4.514 4.514 0 014.481 4.154l.141 1.861 1.867-.013.093-.001A3.003 3.003 0 0121 14c0 .748-.28 1.452-.783 2H3.279A1.906 1.906 0 013 15c0-1.074.851-1.953 1.915-1.998.059.007.118.012.178.015l2.659.124-.621-2.588A4.468 4.468 0 017 9.5C7 7.019 9.019 5 11.5 5m0-2A6.5 6.5 0 005 9.5a6.5 6.5 0 00.186 1.519C5.123 11.016 5.064 11 5 11a4 4 0 00-4 4c0 1.202.541 2.267 1.38 3h18.593C22.196 17.089 23 15.643 23 14a5 5 0 00-5-5l-.025.002A6.496 6.496 0 0011.5 3z"})))};var r,c=(r=t(99196))&&r.__esModule?r:{default:r},n=["size","onClick","icon","className"];function s(){return s=Object.assign?Object.assign.bind():function(e){for(var o,t=1;t<arguments.length;t++)for(var r in o=arguments[t])Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r]);return e},s.apply(this,arguments)}},30234:(e,o,t)=>{o.Z=function(e){var o=e.size,t=void 0===o?24:o,r=e.onClick,i=(e.icon,e.className),a=function(e,o){if(null==e)return{};var t,r,c=function(e,o){if(null==e)return{};var t,r,c={},n=Object.keys(e);for(r=0;r<n.length;r++)t=n[r],0<=o.indexOf(t)||(c[t]=e[t]);return c}(e,o);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r<n.length;r++)t=n[r],0<=o.indexOf(t)||Object.prototype.propertyIsEnumerable.call(e,t)&&(c[t]=e[t])}return c}(e,n),l=["gridicon","gridicons-product",i,!1,!1,!1].filter(Boolean).join(" ");return c.default.createElement("svg",s({className:l,height:t,width:t,onClick:r},a,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),c.default.createElement("g",null,c.default.createElement("path",{d:"M22 3H2v6h1v11a2 2 0 002 2h14a2 2 0 002-2V9h1V3zM4 5h16v2H4V5zm15 15H5V9h14v11zM9 11h6a2 2 0 01-2 2h-2a2 2 0 01-2-2z"})))};var r,c=(r=t(99196))&&r.__esModule?r:{default:r},n=["size","onClick","icon","className"];function s(){return s=Object.assign?Object.assign.bind():function(e){for(var o,t=1;t<arguments.length;t++)for(var r in o=arguments[t])Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r]);return e},s.apply(this,arguments)}},3173:(e,o,t)=>{o.Z=function(e){var o=e.size,t=void 0===o?24:o,r=e.onClick,i=(e.icon,e.className),a=function(e,o){if(null==e)return{};var t,r,c=function(e,o){if(null==e)return{};var t,r,c={},n=Object.keys(e);for(r=0;r<n.length;r++)t=n[r],0<=o.indexOf(t)||(c[t]=e[t]);return c}(e,o);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r<n.length;r++)t=n[r],0<=o.indexOf(t)||Object.prototype.propertyIsEnumerable.call(e,t)&&(c[t]=e[t])}return c}(e,n),l=["gridicon","gridicons-types",i,!1,!1,!1].filter(Boolean).join(" ");return c.default.createElement("svg",s({className:l,height:t,width:t,onClick:r},a,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),c.default.createElement("g",null,c.default.createElement("path",{d:"M22 17a5 5 0 11-10.001-.001A5 5 0 0122 17zM6.5 6.5h3.8L7 1 1 11h5.5V6.5zm9.5 4.085V8H8v8h2.585A6.505 6.505 0 0116 10.585z"})))};var r,c=(r=t(99196))&&r.__esModule?r:{default:r},n=["size","onClick","icon","className"];function s(){return s=Object.assign?Object.assign.bind():function(e){for(var o,t=1;t<arguments.length;t++)for(var r in o=arguments[t])Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r]);return e},s.apply(this,arguments)}}}]);