%PDF- %PDF-
Direktori : /home/t/r/a/tradesc/www/relax/wp-content/plugins/woocommerce/assets/client/admin/chunks/ |
Current File : /home/t/r/a/tradesc/www/relax/wp-content/plugins/woocommerce/assets/client/admin/chunks/6290.js |
"use strict";(globalThis.webpackChunk_wcAdmin_webpackJsonp=globalThis.webpackChunk_wcAdmin_webpackJsonp||[]).push([[6290],{46290:(M,I,N)=>{N.r(I);var j=N(69307),g=N(67221),i=N(9818),D=N(98817),z=N(66811),e=N(94333),c=N(65736),S=N(92819),T=N(86020),A=N(55609),u=N(14599),o=N(99439);const t=({onConnect:M})=>(0,j.createElement)(o.Z,{onConnect:()=>{(0,u.recordEvent)("tasklist_shipping_recommendation_connect_store",{connect:!0}),M?.()}});var y=N(70319),a=N(83122);const O=M=>"object"==typeof M&&null!==M,n=({nextStep:M,pluginsToActivate:I})=>{const{updateOptions:N}=(0,i.useDispatch)(g.OPTIONS_STORE_NAME),{isResolving:D,tosAccepted:z}=(0,i.useSelect)((M=>{const{getOption:I,hasFinishedResolution:N}=M(g.OPTIONS_STORE_NAME),j=I("wc_connect_options");return{isResolving:!N("getOption",["woocommerce_setup_jetpack_opted_in"])||!N("getOption",["wc_connect_options"]),tosAccepted:O(j)&&j?.tos_accepted||"1"===I("woocommerce_setup_jetpack_opted_in")}}));return(0,j.useEffect)((()=>{z&&!I.length&&M()}),[M,I,z]),D?null:(0,j.createElement)(j.Fragment,null,!z&&(0,j.createElement)(a.O,{buttonText:(0,c.__)("Install & enable","woocommerce")}),(0,j.createElement)(T.Plugins,{onComplete:(I,j)=>{(0,y.a)(j),(0,u.recordEvent)("tasklist_shipping_recommendation_install_extensions",{install_extensions:!0}),N({woocommerce_setup_jetpack_opted_in:!0}),M()},onError:(M,I)=>(0,y.a)(I),pluginSlugs:I}))};var C=N(24082),l=N(16069),L=N(18109);const s=({nextStep:M,onLocationComplete:I})=>{const{createNotice:N}=(0,i.useDispatch)("core/notices"),{updateAndPersistSettingsForGroup:D}=(0,i.useDispatch)(g.SETTINGS_STORE_NAME),{generalSettings:z,isResolving:e}=(0,i.useSelect)((M=>{const{getSettings:I,hasFinishedResolution:N}=M(g.SETTINGS_STORE_NAME);return{generalSettings:I("general")?.general,isResolving:!N("getSettings",["general"])}}));return(0,j.useEffect)((()=>{!e&&(0,l.AO)(z||{})&&I()}),[z,I,e]),e?null:(0,j.createElement)(L.Z,{onComplete:I=>{const N=(0,C.so)(I.countryState);(0,u.recordEvent)("tasklist_shipping_recommendation_set_location",{country:N}),M()},isSettingsRequesting:!1,settings:z,updateAndPersistSettingsForGroup:D,createNotice:N})};var Y=N(34305);const m=[{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjkiIGhlaWdodD0iMjgiIHZpZXdCb3g9IjAgMCAyOSAyOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3QgeD0iMC42NDU1MDgiIHdpZHRoPSIyOCIgaGVpZ2h0PSIyOCIgcng9IjQiIGZpbGw9IiNGNkY3RjciLz4KPG1hc2sgaWQ9Im1hc2swXzg4N18xMTY5MTQiIHN0eWxlPSJtYXNrLXR5cGU6YWxwaGEiIG1hc2tVbml0cz0idXNlclNwYWNlT25Vc2UiIHg9IjciIHk9IjgiIHdpZHRoPSIxNSIgaGVpZ2h0PSIxMyI+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNMjEuMzEyMyAxNy4zMzMzSDE5LjMxMjNWMTkuMzMzM0MxOS4zMTIzIDIwLjA3IDE4LjcxNTcgMjAuNjY2NyAxNy45NzkgMjAuNjY2N0gxMS4zMTIzQzEwLjU3NTcgMjAuNjY2NyA5Ljk3OSAyMC4wNyA5Ljk3OSAxOS4zMzMzVjE3LjMzMzNINy45NzlWMTJDNy45NzkgMTEuMjYzMyA4LjU3NTY3IDEwLjY2NjcgOS4zMTIzNCAxMC42NjY3SDkuOTc5VjkuMzMzMzNDOS45NzkgOC41OTY2NyAxMC41NzU3IDggMTEuMzEyMyA4SDE3Ljk3OUMxOC43MTU3IDggMTkuMzEyMyA4LjU5NjY3IDE5LjMxMjMgOS4zMzMzM1YxMC42NjY3SDE5Ljk3OUMyMC43MTU3IDEwLjY2NjcgMjEuMzEyMyAxMS4yNjMzIDIxLjMxMjMgMTJWMTcuMzMzM1pNMTIuNjQ1NyAxNi42NjY3SDE2LjY0NTdWMThIMTIuNjQ1N1YxNi42NjY3Wk0xNy45NzkgMTAuNjY2N0gxMS4zMTIzVjkuMzMzMzNIMTcuOTc5VjEwLjY2NjdaTTE3Ljk3OSAxNS4zMzMzSDExLjMxMjNWMTkuMzMzM0gxNy45NzlWMTUuMzMzM1pNMTguOTc5IDEyQzE5LjUzMSAxMiAxOS45NzkgMTIuNDQ4IDE5Ljk3OSAxM0MxOS45NzkgMTMuNTUyIDE5LjUzMSAxNCAxOC45NzkgMTRDMTguNDI3IDE0IDE3Ljk3OSAxMy41NTIgMTcuOTc5IDEzQzE3Ljk3OSAxMi40NDggMTguNDI3IDEyIDE4Ljk3OSAxMloiIGZpbGw9IndoaXRlIi8+CjwvbWFzaz4KPGcgbWFzaz0idXJsKCNtYXNrMF84ODdfMTE2OTE0KSI+CjxyZWN0IHg9IjYuNjQ1NTEiIHk9IjYiIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgZmlsbD0iIzhDOEY5NCIvPgo8L2c+Cjwvc3ZnPgo=",title:(0,c.__)("Buy postage when you need it","woocommerce"),description:(0,c.__)("No need to wonder where that stampbook went.","woocommerce")},{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjkiIGhlaWdodD0iMjgiIHZpZXdCb3g9IjAgMCAyOSAyOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3QgeD0iMC42NDU1MDgiIHdpZHRoPSIyOCIgaGVpZ2h0PSIyOCIgcng9IjQiIGZ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MC42NDUzIDcuMzMzMzdIMTguNjQ1M0MxOS4zODIgNy4zMzMzNyAxOS45Nzg3IDcuOTMwMDQgMTkuOTc4NyA4LjY2NjcxWk0xMS45Nzg3IDExLjMzMzRIMTcuMzEyVjEwSDExLjk3ODdWMTEuMzMzNFpNMTEuOTc4NyAxMi42NjY3SDE3LjMxMlYxNEgxMS45Nzg3VjEyLjY2NjdaTTE4LjY0NTMgOC42NjY3MVYxNS4zMzM0SDE1Ljk3ODdDMTUuMjQyIDE1LjMzMzQgMTQuNjQ1MyAxNS45MyAxNC42NDUzIDE2LjY2NjdWMTkuMzMzNEgxMC42NDUzVjguNjY2NzFIMTguNjQ1M1oiIGZpbGw9IndoaXRlIi8+CjwvbWFzaz4KPGcgbWFzaz0idXJsKCNtYXNrMF84ODdfMTE2OTIwKSI+CjxyZWN0IHg9IjYuNjQ1NTEiIHk9IjYiIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgZmlsbD0iIzhDOEY5NCIvPgo8L2c+Cjwvc3ZnPgo=",title:(0,c.__)("Print at home","woocommerce"),description:(0,c.__)("Pick up an order, then just pay, print, package and post.","woocommerce")},{icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjkiIGhlaWdodD0iMjgiIHZpZXdCb3g9IjAgMCAyOSAyOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3QgeD0iMC42NDU1MDgiIHdpZHRoPSIyOCIgaGVpZ2h0PSIyOCIgcng9IjQiIGZpbGw9IiNGNkY3RjciLz4KPHJlY3QgeD0iMTAuNzI5IiB5PSIxMC4wODM0IiB3aWR0aD0iMi41IiBoZWlnaHQ9IjIuNSIgcng9IjEuMjUiIHN0cm9rZT0iIzhDOEY5NCIgc3Ryb2tlLXdpZHRoPSIxLjUiLz4KPHJlY3QgeD0iMTYuMDYyNSIgeT0iMTUuNDE2NyIgd2lkdGg9IjIuNSIgaGVpZ2h0PSIyLjUiIHJ4PSIxLjI1IiBzdHJva2U9IiM4QzhGOTQiIHN0cm9rZS13aWR0aD0iMS41Ii8+CjxsaW5lIHgxPSIxMC42NDU1IiB5MT0iMTcuNjA2MSIgeDI9IjE4LjI1MTUiIHkyPSIxMC4wMDAxIiBzdHJva2U9IiM4QzhGOTQiIHN0cm9rZS13aWR0aD0iMS41IiBzdHJva2UtbGluZWNhcD0icm91bmQiLz4KPC9zdmc+Cg==",title:(0,c.__)("Discounted rates","woocommerce"),description:(0,c.__)("Access discounted shipping rates with DHL and USPS.","woocommerce")}],E=()=>(0,j.createElement)(Y.L,{logo:{image:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQ3IiBoZWlnaHQ9IjExNiIgdmlld0JveD0iMCAwIDE0NyAxMTYiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxyZWN0IHg9IjMyLjAwMDUiIHk9IjAuNSIgd2lkdGg9Ijg0IiBoZWlnaHQ9IjExNSIgcng9IjQuNTkwNTMiIGZpbGw9IiNGN0VERjciLz4KPGcgZmlsdGVyPSJ1cmwoI2ZpbHRlcjBfZF84ODdfMTE2ODcxKSI+CjxyZWN0IHdpZHRoPSI4MS43Nzc4IiBoZWlnaHQ9IjkyLjQ0NDQiIHJ4PSI0LjMwMzYyIiB0cmFuc2Zvcm09Im1hdHJpeCgtMSAwIDAgMSA5MS43Nzc4IDExLjM0MzgpIiBmaWxsPSJ3aGl0ZSIvPgo8L2c+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNNjMuNjY1MyAyMi43MjI3SDM4LjgzMTlDMzcuMjYwMyAyMi43MjI3IDM1Ljk4ODEgMjMuOTYyNSAzNi4wMDA2IDI1LjQ2NzJWMzQuNjE1OEMzNi4wMDA2IDM2LjEzMjUgMzcuMjcyOCAzNy4zNjAzIDM4Ljg0NDQgMzcuMzYwM0g1M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dXJjZUFscGhhIiB0eXBlPSJtYXRyaXgiIHZhbHVlcz0iMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMTI3IDAiIHJlc3VsdD0iaGFyZEFscGhhIi8+CjxmZU9mZnNldCBkeT0iMi44NjkwOCIvPgo8ZmVHYXVzc2lhbkJsdXIgc3RkRGV2aWF0aW9uPSI0LjU5MDUzIi8+CjxmZUNvbXBvc2l0ZSBpbjI9ImhhcmRBbHBoYSIgb3BlcmF0b3I9Im91dCIvPgo8ZmVDb2xvck1hdHJpeCB0eXBlPSJtYXRyaXgiIHZhbHVlcz0iMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMC4xIDAiLz4KPGZlQmxlbmQgbW9kZT0ibm9ybWFsIiBpbjI9IkJhY2tncm91bmRJbWFnZUZpeCIgcmVzdWx0PSJlZmZlY3QxX2Ryb3BTaGFkb3dfODg3XzExNjg3MSIvPgo8ZmVCbGVuZCBtb2RlPSJub3JtYWwiIGluPSJTb3VyY2VHcmFwaGljIiBpbjI9ImVmZmVjdDFfZHJvcFNoYWRvd184ODdfMTE2ODcxIiByZXN1bHQ9InNoYXBlIi8+CjwvZmlsdGVyPgo8L2RlZnM+Cjwvc3ZnPgo="},features:m});var w=N(74617);const x=["woocommerce-services"],d=(0,e.compose)((0,i.withSelect)((M=>{const{getSettings:I}=M(g.SETTINGS_STORE_NAME),{hasFinishedResolution:N}=M(g.OPTIONS_STORE_NAME),{getActivePlugins:j}=M(g.PLUGINS_STORE_NAME);return{activePlugins:j(),generalSettings:I("general")?.general,isJetpackConnected:M(g.PLUGINS_STORE_NAME).isJetpackConnected(),isResolving:!N("getOption",["woocommerce_setup_jetpack_opted_in"])||!N("getOption",["wc_connect_options"])||!M(g.PLUGINS_STORE_NAME).hasFinishedResolution("isJetpackConnected")}})))((({activePlugins:M,isJetpackConnected:I,isResolving:N})=>{const[g,i]=(0,j.useState)([]),[D,z]=(0,j.useState)(0),[e,u]=(0,j.useState)(!1),[o,y]=(0,j.useState)(!1),a=()=>{z(D+1)},O=()=>{u(!0),window?.location&&(window.location.href=(0,w.getAdminLink)("admin.php?page=wc-settings&tab=shipping§ion=woocommerce-services-settings"))};(0,j.useEffect)((()=>{const j=(0,S.difference)(x,M);!N&&0===j.length&&I&&O(),j.length<=g.length||i(j)}),[M,I,N,g]);const C=[{key:"store_location",label:(0,c.__)("Set store location","woocommerce"),description:(0,c.__)("The address from which your business operates","woocommerce"),content:(0,j.createElement)(s,{nextStep:a,onLocationComplete:()=>{o||(y(!0),a())}}),onClick:()=>{z(0)}},{key:"plugins",label:(0,c.__)("Install WooCommerce Shipping","woocommerce"),description:(0,c.__)("Enable shipping label printing and discounted rates","woocommerce"),content:(0,j.createElement)("div",null,(0,j.createElement)(E,null),(0,j.createElement)(n,{nextStep:a,pluginsToActivate:g}))},{key:"connect",label:(0,c.__)("Connect your store","woocommerce"),description:(0,c.__)("Connect your store to WordPress.com to enable WooCommerce Shipping","woocommerce"),content:I?(0,j.createElement)(A.Button,{onClick:O,isBusy:e,isPrimary:!0},(0,c.__)("Complete task","woocommerce")):(0,j.createElement)(t,null)}],l=C[D];return(0,j.createElement)("div",{className:"woocommerce-task-shipping-recommendation"},(0,j.createElement)(A.Card,{className:"woocommerce-task-card"},(0,j.createElement)(A.CardBody,null,(0,j.createElement)(T.Stepper,{isPending:N,isVertical:!0,currentStep:l.key,steps:C}))))}));(0,D.registerPlugin)("wc-admin-onboarding-task-shipping-recommendation",{scope:"woocommerce-tasks",render:()=>(0,j.createElement)(z.WooOnboardingTask,{id:"shipping-recommendation"},(({onComplete:M,query:I,task:N})=>(0,j.createElement)(d,{onComplete:M,query:I,task:N})))})}}]);