PageSourceSearch

https://app.opus1.io/releases/20260925T143842Z-e1befdfb692b/async/19013.29c8b188.js

js opus1.io collected 2026-09-25 18:55:42 UTC 3,945 bytes, 2 lines download raw bytes

1!function(){try{var n="u">typeof window?window:"u">typeof global?global:"u">typeof self?self:{},e=(new n.Error).stack;e&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[e]="cd8455a5-1c71-4f14-99d7-cfc795b325c3",n._sentryDebugIdIdentifier="sentry-dbid-cd8455a5-1c71-4f14-99d7-cfc795b325c3")}catch(n){}}();var _global="u">typeof window?window:"u">typeof global?global:"u">typeof self?self:{};_global.SENTRY_RELEASE={id:"e1befdfb692b28496829f71c2490b06d48ba02c9"};"use strict";(self.webpackChunkopus1io=self.webpackChunkopus1io||[]).push([["19013"],{88640:function(n,e,i){i.r(e);var o=i(84577);i(93632),i(38827),i(61874),i(1633),i(9700),i(60726),i(45336),i(79936);var t=i(74848),r=i(96540),a=i(52956),s=i(56347),l=i(78258),u=i(95093),c=i.n(u),d=i(35774),p=i(38499),b=i(61734),f=i(50613),m=i(87936),y=i(98684),v=i(48810);i(99574);var g=i(35743),h=i(67131);function S(){var n=(0,o._)(["\n    query subscriptionForReplacement($business: String!, $subscriptionId: ID!) {\n        subscription(business: $business, id: $subscriptionId) {\n            id\n            service {\n                id\n                name\n                hasSessions\n                requiresBooking\n                durationMinutes\n                scheduleOptimizationStrategy\n                plans {\n                    name\n                    paymentInterval\n                    onlyPayableWithCredit\n                    dueType\n                    canBePurchasedWithoutBooking\n                }\n            }\n            client {\n                id\n                name\n                profilePhoto\n                address\n            }\n            payer {\n                id\n                name\n                profilePhoto\n                creditBalance\n            }\n            primaryStaff {\n                id\n                name\n                profilePhoto\n            }\n            sampleEvent {\n                id\n                startAt\n                recurringRule\n                roomName\n                location {\n                    id\n                    name\n                    locationType\n                    timezone\n                }\n            }\n            dontSkipUnavailableLocation\n            timezone\n        }\n    }\n"]);return S=function(){return n},n}var{YI:w}=d,k=(0,l.J1)(S()),z=()=>{var n=(0,a.useSelector)(n=>n.app.business.name),e=(0,s.zy)(),i=(0,r.useMemo)(()=>new URLSearchParams(e.search),[e.search]).get("subscriptionId"),{data:o,loading:l}=(0,f.A)({query:k,variables:{business:n,subscriptionId:i},processor:n=>n.subscription});if(l)return(0,t.jsx)(b.A,{});var{service:u,client:d,payer:S,primaryStaff:z,sampleEvent:I,timezone:R,dontSkipUnavailableLocation:A}=o;(null==u?void 0:u.hasSessions)&&((0,v.UG)({title:"Replace Subscription Error",message:"Only appointment subscriptions can be replaced"}),g.A.back());var D=[y.nD,y.a,y.fG,y.LW,y.QA,y.og,y.jt],E=c()();if(I){var _,P,B,O,[j]=w(I.recurringRule).options.byweekday,L=D[j],T=c()(I.startAt).tz(null==I||null==(B=I.location)?void 0:B.timezone);E=(0,m.aC)(c()().tz(null==I||null==(O=I.location)?void 0:O.timezone).add(1,"month").startOf("month"),L).hours(T.hours()).minutes(T.minutes()).seconds(T.seconds())}return(0,t.jsx)("div",{id:"update-appointment-schedule-page",children:(0,t.jsx)(h.A,{initialOverriddenTimezone:(null==I||null==(_=I.location)?void 0:_.timezone)||R,children:(0,t.jsx)(p.A,{replaceSubscription:!0,defaultFormData:{payer:S,service:u,location:I?I.location:void 0,room:I?{name:I.roomName}:void 0,staff:[z].filter(Boolean),clients:[d].filter(Boolean),startAt:E.toISOString(),isRecurring:!I||!!I.recurringRule,recurringRule:I?I.recurringRule:void 0,subscription:o,skipUnavailableLocation:!A,currentSubscriptionEndDate:c()().tz((null==I||null==(P=I.location)?void 0:P.timezone)||R).endOf("month")}},e.key)})})};z.propTypes={},z.defaultProps={},e.default=z}}]);
2//# sourceMappingURL=19013.29c8b188.js.map

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.