{
  "version": 3,
  "sources": ["ssg:https://asset.29cm.co.kr/contents/framer/node_modules/date-fns/isSameDay.js", "ssg:https://asset.29cm.co.kr/contents/framer/apis/subscription/SubscriptionApiService.js"],
  "sourcesContent": ["import { startOfDay } from \"./startOfDay.js\";\nfunction isSameDay(dateLeft, dateRight) {\n  const dateLeftStartOfDay = startOfDay(dateLeft);\n  const dateRightStartOfDay = startOfDay(dateRight);\n  return +dateLeftStartOfDay === +dateRightStartOfDay;\n}\nexport {\n  isSameDay as default,\n  isSameDay\n};\n", "import { throwFailError } from \"../@middlewares/throwFailError.js\";\nimport { APIService } from \"../APIService.js\";\nimport { env } from \"../../config/index.js\";\nclass SubscriptionApiService extends APIService {\n  constructor() {\n    super();\n    this.setBaseUrl(env.api.content);\n    this.setMiddleware(throwFailError);\n  }\n  async getSubscriptionsByGroupKey(groupKey) {\n    var _a;\n    const response = await this.get(`/api/v4/framers/proxy/activation-api/api/v4/event-notification/events/${groupKey}/subscriptions`, void 0, {\n      credentials: \"include\"\n    });\n    return ((_a = response.data) == null ? void 0 : _a.eventKeys) ?? [];\n  }\n  async getSubscription(eventKey) {\n    const response = await this.get(`/api/v4/framers/proxy/activation-api/api/v4/event-notification/events/${eventKey}/subscription`, void 0, {\n      credentials: \"include\"\n    });\n    const isSubscribed = response.data ?? false;\n    return isSubscribed ? [eventKey] : [];\n  }\n  async subscribe(eventKeys) {\n    await this.post(\"/api/v4/framers/proxy/activation-api/api/v4/event-notification/events/subscription:on\", {\n      eventKeys\n    }, {\n      credentials: \"include\"\n    });\n    return eventKeys;\n  }\n  async unsubscribe(eventKey) {\n    await this.post(`/api/v4/framers/proxy/activation-api/v4/event-notification/events/${eventKey}/subscription:off`, void 0, {\n      credentials: \"include\"\n    });\n    return eventKey;\n  }\n}\nconst subscriptionApi = new SubscriptionApiService();\nexport {\n  subscriptionApi\n};\n"],
  "mappings": "4FACA,SAASA,EAAUC,EAAUC,EAAW,CACtC,IAAMC,EAAqBC,EAAWH,CAAQ,EACxCI,EAAsBD,EAAWF,CAAS,EAChD,MAAO,CAACC,GAAuB,CAACE,CAClC,CCFA,IAAMC,EAAN,cAAqCC,CAAW,CAC9C,aAAc,CACZ,MAAM,EACN,KAAK,WAAWC,EAAI,IAAI,OAAO,EAC/B,KAAK,cAAcC,CAAc,CACnC,CACA,MAAM,2BAA2BC,EAAU,CACzC,IAAIC,EAIJ,QAASA,GAHQ,MAAM,KAAK,IAAI,yEAAyED,CAAQ,iBAAkB,OAAQ,CACzI,YAAa,SACf,CAAC,GACsB,OAAS,KAAO,OAASC,EAAG,YAAc,CAAC,CACpE,CACA,MAAM,gBAAgBC,EAAU,CAK9B,OAJiB,MAAM,KAAK,IAAI,yEAAyEA,CAAQ,gBAAiB,OAAQ,CACxI,YAAa,SACf,CAAC,GAC6B,MAAQ,GAChB,CAACA,CAAQ,EAAI,CAAC,CACtC,CACA,MAAM,UAAUC,EAAW,CACzB,aAAM,KAAK,KAAK,wFAAyF,CACvG,UAAAA,CACF,EAAG,CACD,YAAa,SACf,CAAC,EACMA,CACT,CACA,MAAM,YAAYD,EAAU,CAC1B,aAAM,KAAK,KAAK,qEAAqEA,CAAQ,oBAAqB,OAAQ,CACxH,YAAa,SACf,CAAC,EACMA,CACT,CACF,EACME,EAAkB,IAAIR",
  "names": ["isSameDay", "dateLeft", "dateRight", "dateLeftStartOfDay", "startOfDay", "dateRightStartOfDay", "SubscriptionApiService", "APIService", "env", "throwFailError", "groupKey", "_a", "eventKey", "eventKeys", "subscriptionApi"]
}
