PageSourceSearch

https://app.wodbump.com/assets/marketingScheduleAt-DsYpdGOP.js

js wodbump.com collected 2026-09-24 14:59:51 UTC 2,647 bytes, 1 lines download raw bytes

1import{bk as f,bl as T,nQ as c}from"./index-BvpNZgMf.js";import{b as N}from"./vendor-ZpyZOZKZ.js";import"./firebase-RkFr3iC1.js";import"./stripe-CuFmHH1H.js";const g="Choose a valid date, time, and time zone.",h="Schedule time must be in the future.";function s(e){return String(e).padStart(2,"0")}function l(e){return`${e.getFullYear()}-${s(e.getMonth()+1)}-${s(e.getDate())}`}function k(e=new Date){const t=new Date(e);return t.setDate(t.getDate()+1),t.setHours(9,0,0,0),{minDate:l(e),date:l(t),time:"09:00"}}function w(e,t,n){if(!e||!t)return null;const[u,r]=t.split(":"),o=Number.parseInt(u??"",10),i=Number.parseInt(r??"",10);if(Number.isNaN(o)||Number.isNaN(i))return null;const a=T(e,o,i,n);return Number.isNaN(a.getTime())?null:a}function E(e,t=new Date){return!e||Number.isNaN(e.getTime())?g:e.getTime()<=t.getTime()?h:null}function x(e,t=new Date){const n=E(e??null,t);if(n)throw new Error(n)}function C(e,t,n=new Date){if(!e)return;const u=f(n,t);if(e!==u)return;const r=N(n,t),o=new Date(r.getTime()+6e4);return`${s(o.getHours())}:${s(o.getMinutes())}`}const m=5;function M(e){const[t,n]=e.split(":"),u=Number.parseInt(t??"",10),r=Number.parseInt(n??"",10);return Number.isNaN(u)||Number.isNaN(r)||u<0||u>23||r<0||r>59?null:{hours:u,minutes:r}}function I(e){const t=(e%1440+1440)%1440,n=Math.floor(t/60),u=t%60;return`${s(n)}:${s(u)}`}function b(e,t=m){const n=M(e);if(!n||t<=0)return{snapped:e,adjusted:!1};const u=`${s(n.hours)}:${s(n.minutes)}`,r=n.hours*60+n.minutes,o=r%t;if(o===0)return{snapped:u,adjusted:!1};const i=o*2<t?r-o:r-o+t,a=I(i);return{snapped:a,adjusted:a!==u}}function G(e,t,n=m){const u=N(e,t),r=`${s(u.getHours())}:${s(u.getMinutes())}`,{snapped:o,adjusted:i}=b(r,n);if(!i)return{scheduledAt:e,adjusted:!1,fromTime:r,toTime:r};const a=f(e,t),[p,S]=o.split(":"),d=T(a,Number.parseInt(p??"0",10),Number.parseInt(S??"0",10),t);return{scheduledAt:Number.isNaN(d.getTime())?e:d,adjusted:!0,fromTime:r,toTime:o}}function L(e,t){return`Schedule time adjusted from ${c(e)} to ${c(t)} to match the closest available send window.`}function U(e){return c(e)}const j=m*60;export{m as MARKETING_CAMPAIGN_SCHEDULER_INTERVAL_MINUTES,j as MARKETING_CAMPAIGN_SCHEDULE_TIME_STEP_SECONDS,g as MARKETING_SCHEDULE_INVALID_MESSAGE,h as MARKETING_SCHEDULE_MUST_BE_FUTURE_MESSAGE,x as assertFutureMarketingScheduleAt,k as defaultMarketingScheduleFields,U as formatMarketingScheduleTimeLabel,L as formatMarketingScheduleTimeSnapToastMessage,E as marketingScheduleAtError,C as minMarketingScheduleTimeForDate,w as parseMarketingScheduleAt,G as snapMarketingScheduleAtToSchedulerInterval,b as snapMarketingScheduleTimeToSchedulerInterval};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.