{"version":3,"sources":["jsdelivr-header.js","/npm/@wix/sdk_realtime_site@1.0.15/build/cjs/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACNA,aACA,IAAI,gBAAmB,MAAQ,KAAK,kBAAqB,OAAO,OAAS,SAAU,EAAG,EAAG,EAAG,QAC7E,IAAP,IAAkB,EAAK,GAC3B,IAAI,EAAO,OAAO,yBAAyB,EAAG,GACzC,KAAS,QAAS,GAAQ,EAAE,WAAa,EAAK,UAAY,EAAK,gBAClE,EAAO,CAAE,YAAY,EAAM,IAAK,WAAa,OAAO,EAAE,EAAI,IAE5D,OAAO,eAAe,EAAG,EAAI,EAChC,EAAI,SAAU,EAAG,EAAG,EAAG,QACT,IAAP,IAAkB,EAAK,GAC3B,EAAE,GAAM,EAAE,EACb,GACG,aAAgB,MAAQ,KAAK,cAAiB,SAAS,EAAG,GAC1D,IAAK,IAAI,KAAK,EAAa,YAAN,GAAoB,OAAO,UAAU,eAAe,KAAK,EAAS,IAAI,gBAAgB,EAAS,EAAG,EAC3H,EACA,OAAO,eAAe,QAAS,aAAc,CAAE,OAAO,IACtD,QAAQ,aAAU,EAClB,MAAM,eAAiB,QAAQ,iCACzB,eAAiB,QAAQ,kBAC/B,aAAa,QAAQ,2BAA4B,SAoBjD,MAAM,SAAU,EAAI,eAAe,mBAAmB,IAAe,EAAI,eAAe,iBAAiB,CACrG,aACA,OAAQ,QAAQ,IAAI,kBAChB,mDACJ,GACJ,QAAQ,QAAU","file":"/npm/@wix/sdk_realtime_site@1.0.15/build/cjs/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/@wix/sdk_realtime_site@1.0.15/build/cjs/index.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","\"use strict\";\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n    if (k2 === undefined) k2 = k;\n    var desc = Object.getOwnPropertyDescriptor(m, k);\n    if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n      desc = { enumerable: true, get: function() { return m[k]; } };\n    }\n    Object.defineProperty(o, k2, desc);\n}) : (function(o, m, k, k2) {\n    if (k2 === undefined) k2 = k;\n    o[k2] = m[k];\n}));\nvar __exportStar = (this && this.__exportStar) || function(m, exports) {\n    for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.publish = void 0;\nconst rest_modules_1 = require(\"@wix/sdk-runtime/rest-modules\");\nconst publisher_js_1 = require(\"./publisher.js\");\n__exportStar(require(\"./permissions-router.js\"), exports);\n/**\n *  The `publish()` function publishes a message to the specified channel or\n *  channel resource.\n *\n *  When site visitors subscribe to a channel, they do not\n *  receive messages published to a resource on that same channel. Similarly,\n *  when site visitors subscribe to a channel resource, they do not\n *  receive messages published to that same channel without a specified resource.\n *\n *  To publish a message to specific users only, specify the users by ID in\n *  the `PublishOptions` object sent to the `options` parameter.\n *\n *  To include the ID of the user who triggered the publish in the published message,\n *  set the `includePublisher` property of the `PublishOptions` object to `true`.\n * @param channel The channel, and optionally the resource, to publish to.\n * @param payload Message payload. <br /><br /> Max: 10kb\n * @param options Options to use when publishing.\n * @public\n */\nconst publish = (0, rest_modules_1.createRESTModule)((httpClient) => (0, publisher_js_1.createPublisher)({\n    httpClient,\n    apiUrl: process.env.DUPLEXER_API_URL ||\n        'https://manage.wix.com/_api/wix-duplexer-api',\n}), true);\nexports.publish = publish;\n"]}