import{proxyCustomElement,HTMLElement,h}from"@stencil/core/internal/client";import{d as defineCustomElement$5}from"./sc-button2.js";import{d as defineCustomElement$4}from"./sc-icon2.js";import{d as defineCustomElement$3}from"./sc-popover2.js";import{d as defineCustomElement$2}from"./sc-spinner2.js";const scTestModeInfoCss='sc-test-mode-info .sc-test-mode-info-content ol{padding-left:1em;margin:0;font-size:12px}sc-test-mode-info .sc-test-mode-info-content ol img{width:320px;margin-top:12px}sc-test-mode-info .sc-test-mode-info-content ul{padding-left:1em}sc-test-mode-info .sc-test-mode-info-footer{display:flex;justify-content:space-between}sc-test-mode-info .sc-test-mode-info-footer sc-button>sc-icon{margin-left:4px}sc-test-mode-info .sc-test-mode-info-footer>span{font-size:var(--sc-button-font-size-small);align-content:center;opacity:0.75}sc-test-mode-info sc-popover{--panel-width:25em}#wpadminbar #wp-admin-bar-sc_change_checkout_mode>.ab-item:before{content:"\\f186"/"";top:2px}',ScTestModeInfoStyle0=scTestModeInfoCss,ScTestModeInfo$1=proxyCustomElement(class extends HTMLElement{constructor(){super(),this.__registerHost()}render(){var e,t;return h("sc-popover",{key:"c3c7e245d9aa2ce50cb90fd01516a9e788321e1f",skidding:30},h("slot",{key:"cd308040fb12b80cc5fd30458de70306cd5c5033",name:"trigger",slot:"trigger"}),h("span",{key:"c6d986e948e54f6372f4e7cc2d4694ae5196fcaf",slot:"title"},wp.i18n.__("How to switch from Test to Live mode","surecart")),h("div",{key:"1b4426b384df6f9e17354f582b586eb20baf0f5d",class:"sc-test-mode-info-content",slot:"content"},h("ol",{key:"d7d047c036d4c112ed862b71f25f259d5c53f7d0"},h("li",{key:"e6a5836e1889d24188ed3bde96241f5cfe6a99d8"},wp.i18n.__("From the Admin Bar","surecart"),h("ul",{key:"7027ac7e5205f1fefbbb2da93b233d123de63745"},h("li",{key:"7a9598ca8c235c32696bcd974d66106a20a5b6a1"},wp.i18n.__("Select any product & proceed to its checkout page.","surecart")),h("li",{key:"f0f8c063befceef10989656d2a610f26320425fb"},wp.i18n.__("Access the dropdown menu & select the live mode.","surecart"))),h("img",{key:"e3bf61c3cc63bfd1eee24976f3e00162ca9a7e1d",src:`${null===(e=null===window||void 0===window?void 0:window.scData)||void 0===e?void 0:e.plugin_url}/images/change-from-adminbar.png`,alt:wp.i18n.__("Screenshot showing how to change mode from the admin bar","surecart")})),h("li",{key:"a0dea67fe90c8e5bf851e5c8be0b9595062d3a1b"},wp.i18n.__("From the Editor","surecart"),h("ul",{key:"3cee9014cc126ee45a13127450f8b9a793956339"},h("li",{key:"f72f0ef91d2eef4b1812d9d9e4904da097fd6744"},wp.i18n.__("Navigate to the custom Forms section under SureCart.","surecart")),h("li",{key:"c4f30dd9e074c3a0b9763e94e458a752dc8c21fe"},wp.i18n.__("Select the checkout form.","surecart")),h("li",{key:"08c1dee15422c2eac6dbc31cce601ef91a31c54b"},wp.i18n.__('Select "Live" from the dropdown. Hit Update!',"surecart"))),h("img",{key:"5e47dfcc7b24e2e7823fbc8b4d0a3eaf992e5cf5",src:`${null===(t=null===window||void 0===window?void 0:window.scData)||void 0===t?void 0:t.plugin_url}/images/change-from-editor.png`,alt:wp.i18n.__("Screenshot showing how to change mode from the editor","surecart")})))),h("div",{key:"b6d43049d7981c1816febb5600135fb525d7f86a",class:"sc-test-mode-info-footer",slot:"footer"},h("sc-button",{key:"439c6b43bf7078bc25ccaf80e5bfc4e6313d738e",size:"small",type:"link",target:"_blank",href:"https://surecart.com/docs/how-to-make-test-payments/"},wp.i18n.__("Documentation ","surecart")," ",h("sc-icon",{key:"c03ef2c2f9c140582040fcb46d69ae798730918f",name:"external-link"})),h("sc-button",{key:"5580d9d0b80b27b52afbabc6c85ce888dc7e7280",size:"small",type:"link",target:"_blank",href:"https://surecart.com/contact-us/"},wp.i18n.__("Open a ticket ","surecart")," ",h("sc-icon",{key:"658adfc08722c24b9eb8767821ece9ac703c3d01",name:"external-link"}))))}static get style(){return ScTestModeInfoStyle0}},[4,"sc-test-mode-info"]);function defineCustomElement$1(){"undefined"!=typeof customElements&&["sc-test-mode-info","sc-button","sc-icon","sc-popover","sc-spinner"].forEach((e=>{switch(e){case"sc-test-mode-info":customElements.get(e)||customElements.define(e,ScTestModeInfo$1);break;case"sc-button":customElements.get(e)||defineCustomElement$5();break;case"sc-icon":customElements.get(e)||defineCustomElement$4();break;case"sc-popover":customElements.get(e)||defineCustomElement$3();break;case"sc-spinner":customElements.get(e)||defineCustomElement$2()}}))}const ScTestModeInfo=ScTestModeInfo$1,defineCustomElement=defineCustomElement$1;export{ScTestModeInfo,defineCustomElement};