PageSourceSearch

https://loverhub.ai/assets/merchantAvailabilityBatch-iU8jYyT9.js

js loverhub.ai collected 2026-10-05 15:39:33 UTC 1,267 bytes, 1 lines download raw bytes

1import{X as y}from"./index-DESokjJk.js";import{n as v}from"./vendor-icons-Bxvif_pP.js";function _(a){return a.availabilityBatchDayMode==="weekdays"?[1,2,3,4,5]:a.availabilityBatchDayMode==="weekends"?[0,6]:a.availabilityBatchDayMode==="custom"?[...a.availabilityBatchWeekdays]:[0,1,2,3,4,5,6]}async function b(a,i,t,e,s,r){const n=e[0],c=e.at(-1);if(!n||!c)throw new Error("请选择有效的批量开放日期范围。");if(!t)throw new Error("请先确认可约时间时区。");const l=[{start_time:i.availabilityBatchStartTime,end_time:i.availabilityBatchEndTime}];i.availabilityBatchUseSecondTime&&l.push({start_time:i.availabilityBatchSecondStartTime,end_time:i.availabilityBatchSecondEndTime}),await v(),await new Promise(o=>window.requestAnimationFrame(()=>o()));const{data:d}=await y.post(a,{request_id:`availability-${Date.now().toString(36)}-${Math.random().toString(36).slice(2,8)}`,expected_revision:i.availabilityRevision||void 0,timezone_id:t,range_start:n,range_end:c,weekdays:_(i),time_windows:l,service_modes:s,service_location_client_id:i.availabilityLegacyLocationClientId||null,service_package_client_ids:i.availabilityRestrictPackages?i.availabilityPackageClientIds:[],replace_client_ids:r});return d}export{b as postMerchantAvailabilityBatch};

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.