PATH:
home
/
lab2454c
/
carbonbullion.net
/
wp-content
/
plugins
/
woocommerce
/
assets
/
client
/
admin
/
chunks
"use strict";(globalThis.webpackChunk_wcAdmin_webpackJsonp=globalThis.webpackChunk_wcAdmin_webpackJsonp||[]).push([[8597],{64793:(e,t,r)=>{r.d(t,{Z:()=>s});var a=r(69307),o=r(70444);const s=(0,a.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(o.Path,{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"}))},85932:(e,t,r)=>{r.r(t),r.d(t,{StoreAlerts:()=>C,default:()=>k});var a=r(69307),o=r(65736),s=r(55609),l=r(83849),n=r.n(l),i=r(29497),c=r(94333),m=r(9818),d=r(76292),u=r.n(d),p=r(62907),h=r(78810),_=r(64793),g=r(67221),E=r(14599),w=r(14812),N=r(58556),v=r(7862),A=r.n(v);class b extends a.Component{render(){const{hasMultipleAlerts:e}=this.props;return(0,a.createElement)(s.Card,{className:"woocommerce-store-alerts is-loading","aria-hidden":!0,size:null},(0,a.createElement)(s.CardHeader,{isBorderless:!0},(0,a.createElement)("span",{className:"is-placeholder"}),e&&(0,a.createElement)("span",{className:"is-placeholder"})),(0,a.createElement)(s.CardBody,null,(0,a.createElement)("div",{className:"woocommerce-store-alerts__message"},(0,a.createElement)("span",{className:"is-placeholder"}),(0,a.createElement)("span",{className:"is-placeholder"}))),(0,a.createElement)(s.CardFooter,{isBorderless:!0},(0,a.createElement)("span",{className:"is-placeholder"})))}}const x=b;b.propTypes={hasMultipleAlerts:A().bool},b.defaultProps={hasMultipleAlerts:!1};var S=r(27182);class C extends a.Component{constructor(e){super(e),this.state={currentIndex:0},this.previousAlert=this.previousAlert.bind(this),this.nextAlert=this.nextAlert.bind(this)}previousAlert(e){e.stopPropagation();const{currentIndex:t}=this.state;t>0&&this.setState({currentIndex:t-1})}nextAlert(e){e.stopPropagation();const t=this.getAlerts(),{currentIndex:r}=this.state;r<t.length-1&&this.setState({currentIndex:r+1})}renderActions(e){const{triggerNoteAction:t,updateNote:r}=this.props,l=e.actions.map((r=>(0,a.createElement)(s.Button,{key:r.name,isPrimary:r.primary,isSecondary:!r.primary,href:r.url||void 0,onClick:()=>t(e.id,r.id)},r.label))),n=[{value:u()().add(4,"hours").unix().toString(),label:(0,o.__)("Later Today","woocommerce")},{value:u()().add(1,"day").hour(9).minute(0).second(0).millisecond(0).unix().toString(),label:(0,o.__)("Tomorrow","woocommerce")},{value:u()().add(1,"week").hour(9).minute(0).second(0).millisecond(0).unix().toString(),label:(0,o.__)("Next Week","woocommerce")},{value:u()().add(1,"month").hour(9).minute(0).second(0).millisecond(0).unix().toString(),label:(0,o.__)("Next Month","woocommerce")}],i=e.is_snoozable&&(0,a.createElement)(s.SelectControl,{className:"woocommerce-store-alerts__snooze",options:[{label:(0,o.__)("Remind Me Later","woocommerce"),value:"0"},...n],onChange:t=>{if("0"===t)return;const a=n.find((e=>e.value===t));(t=>{r(e.id,{status:"snoozed",date_reminder:t.value});const a={alert_name:e.name,alert_title:e.title,snooze_duration:t.value,snooze_label:t.label};(0,E.recordEvent)("store_alert_snooze",a)})({value:t,label:a&&a.label})}});if(l||i)return(0,a.createElement)("div",{className:"woocommerce-store-alerts__actions"},l,i)}getAlerts(){return(this.props.alerts||[]).filter((e=>"unactioned"===e.status))}render(){const e=this.getAlerts(),t=(0,S.O3)("alertCount",0,(e=>parseInt(e,10)));if(t>0&&this.props.isLoading)return(0,a.createElement)(x,{hasMultipleAlerts:t>1});if(0===e.length)return null;const{currentIndex:r}=this.state,l=e.length,c=e[r],m=c.type,d=n()("woocommerce-store-alerts",{"is-alert-error":"error"===m,"is-alert-update":"update"===m});return(0,a.createElement)(s.Card,{className:d,size:null},(0,a.createElement)(s.CardHeader,{isBorderless:!0},(0,a.createElement)(w.Text,{variant:"title.medium",as:"h2",size:"24",lineHeight:"32px"},c.title),l>1&&(0,a.createElement)("div",{className:"woocommerce-store-alerts__pagination"},(0,a.createElement)(s.Button,{onClick:this.previousAlert,disabled:0===r,label:(0,o.__)("Previous Alert","woocommerce")},(0,a.createElement)(p.Z,{icon:h.Z,className:"arrow-left-icon"})),(0,a.createElement)("span",{className:"woocommerce-store-alerts__pagination-label",role:"status","aria-live":"polite"},(0,i.Z)({mixedString:(0,o.__)("{{current /}} of {{total /}}","woocommerce"),components:{current:(0,a.createElement)(a.Fragment,null,r+1),total:(0,a.createElement)(a.Fragment,null,l)}})),(0,a.createElement)(s.Button,{onClick:this.nextAlert,disabled:l-1===r,label:(0,o.__)("Next Alert","woocommerce")},(0,a.createElement)(p.Z,{icon:_.Z,className:"arrow-right-icon"})))),(0,a.createElement)(s.CardBody,null,(0,a.createElement)("div",{className:"woocommerce-store-alerts__message",dangerouslySetInnerHTML:(0,N.ZP)(c.content)})),(0,a.createElement)(s.CardFooter,{isBorderless:!0},this.renderActions(c)))}}const y={page:1,per_page:g.QUERY_DEFAULTS.pageSize,type:"error,update",status:"unactioned"},k=(0,c.compose)((0,m.withSelect)((e=>{const{getNotes:t,isResolving:r}=e(g.NOTES_STORE_NAME);return{alerts:t(y),isLoading:r("getNotes",[y])}})),(0,m.withDispatch)((e=>{const{triggerNoteAction:t,updateNote:r}=e(g.NOTES_STORE_NAME);return{triggerNoteAction:t,updateNote:r}})))(C)}}]);
[-] analytics-report-products.js
[edit]
[-] marketing-overview.js
[edit]
[-] 8544.style.css
[edit]
[-] two-column-tasks.js
[edit]
[-] analytics-report-orders.js
[edit]
[-] 2036.style.css
[edit]
[-] 727.style.css
[edit]
[-] 2397.style.css
[edit]
[-] 3994.style.css
[edit]
[-] 6340.js
[edit]
[-] 4854.style.css
[edit]
[-] 1996.style.css
[edit]
[-] wcpay-payment-welcome-page.js
[edit]
[-] analytics-report-coupons.js
[edit]
[+]
..
[-] 6063.js
[edit]
[-] customizable-dashboard.js
[edit]
[-] analytics-report-downloads.js
[edit]
[-] 5531.js
[edit]
[-] 7708.style.css
[edit]
[-] dashboard.js
[edit]
[-] analytics-report.js
[edit]
[-] store-performance.js
[edit]
[-] 3700.style.css
[edit]
[-] wc-pay-subscriptions-page.js
[edit]
[-] analytics-report-stock.js
[edit]
[-] analytics-settings.js
[edit]
[-] profile-wizard.js
[edit]
[-] 2953.style.css
[edit]
[-] 7433.js
[edit]
[-] 8851.style.css
[edit]
[-] 8597.style.css
[edit]
[-] 6732.style.css
[edit]
[-] 5152.js
[edit]
[-] activity-panels-inbox.js
[edit]
[-] 6063.style.css
[edit]
[-] 6125.style.css
[edit]
[-] 6232.js
[edit]
[-] 9456.style.css
[edit]
[-] analytics-report-categories.js
[edit]
[-] 5152.js.LICENSE.txt
[edit]
[-] activity-panels-help.js
[edit]
[-] analytics-report-customers.js
[edit]
[-] analytics-report-revenue.js
[edit]
[-] homescreen.js
[edit]
[-] 4011.style.css
[edit]
[-] payment-recommendations.js
[edit]
[-] 5586.js
[edit]
[-] analytics-report-variations.js
[edit]
[-] two-column-tasks-extended.js
[edit]
[-] 6340.style.css
[edit]
[-] 9360.style.css
[edit]
[-] activity-panels-setup.js
[edit]
[-] dashboard-charts.js
[edit]
[-] 5502.style.css
[edit]
[-] store-alerts.js
[edit]
[-] 9198.js
[edit]
[-] 185.style.css
[edit]
[-] leaderboards.js
[edit]
[-] 2624.style.css
[edit]
[-] 2502.style.css
[edit]
[-] shipping-recommendations.js
[edit]
[-] 3576.style.css
[edit]
[-] 3726.style.css
[edit]
[-] 6232.style.css
[edit]
[-] analytics-report-taxes.js
[edit]
[-] 6824.style.css
[edit]
[-] 9966.style.css
[edit]
[-] 9792.style.css
[edit]