surveysparrow-ionic-plugin 2.0.4-beta.1 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.js","sources":["esm/angular-ui/lib/spotchecks/state/store.js","esm/angular-ui/lib/spotchecks/helpers/version.js","esm/angular-ui/lib/spotchecks/helpers/sentry.js","esm/angular-ui/lib/spotchecks/helpers/storage.js","../node_modules/tslib/tslib.es6.mjs","../node_modules/rxjs/dist/esm5/internal/util/isFunction.js","../node_modules/rxjs/dist/esm5/internal/util/createErrorClass.js","../node_modules/rxjs/dist/esm5/internal/util/UnsubscriptionError.js","../node_modules/rxjs/dist/esm5/internal/util/arrRemove.js","../node_modules/rxjs/dist/esm5/internal/Subscription.js","esm/angular-ui/lib/spotchecks/helpers/listener.js","esm/angular-ui/lib/spotchecks/helpers/executables.js","esm/angular-ui/lib/spotchecks/helpers/survey-page.js","esm/angular-ui/lib/spotchecks/helpers/render.js","esm/angular-ui/lib/spotchecks/helpers/binding.js","esm/angular-ui/lib/spotchecks/components/builder.component.js","esm/angular-ui/lib/spotcheck.component.js","esm/angular-ui/lib/spotchecks/helpers/device.js","esm/angular-ui/lib/spotchecks/spotcheck.js","esm/index.js"],"sourcesContent":["// Minimal observable store; components re-render on every change.\nexport class Store {\n constructor(state, reducer) {\n this.state = state;\n this.reducer = reducer;\n this.listeners = new Set();\n }\n getState() {\n return this.state;\n }\n dispatch(update) {\n this.state = this.reducer(this.state, update);\n this.listeners.forEach((listener) => {\n try {\n listener();\n }\n catch (error) {\n console.error('[SpotCheck] store listener failed', error);\n }\n });\n }\n subscribe(listener) {\n this.listeners.add(listener);\n return () => {\n this.listeners.delete(listener);\n };\n }\n}\n// Same shape and merge rules as the other SDKs (backend functions read state.SpotCheckState).\nconst initialSpotcheckState = {\n allSpotChecksInToken: [],\n customEventsSpotChecks: [],\n filteredSpotChecks: [],\n showSpotCheck: false,\n currentSpotcheck: {\n spotcheckURL: '',\n spotcheckID: 0,\n spotcheckContactID: 0,\n triggerToken: '',\n screenName: '',\n afterDelay: 0,\n isChat: false,\n appearance: {},\n },\n params: {\n targetToken: '',\n domainName: '',\n userDetails: {},\n variables: {},\n customProperties: {},\n visitor: {},\n framework: 'ionic',\n userAgent: '',\n traceId: '',\n },\n spotCheckDetails: {\n keyBoardHeight: 0,\n textPosition: 0,\n isMounted: false,\n isVisible: false,\n isExiting: false,\n currentQuestionHeight: 0,\n miniCardHeight: 0,\n sideTabButtonWidth: 0,\n isFullScreenMode: false,\n spotCheckType: null,\n position: 'bottom',\n mode: '',\n closeButton: {\n isEnabled: false,\n color: '#000000',\n isMiniCard: false,\n },\n isSpotCheckButton: false,\n spotCheckButtonConfig: {},\n showSurveyContent: true,\n avatarEnabled: false,\n avatarUrl: '',\n isRTLLanguage: false,\n },\n webViewDetails: {\n isChatEnabled: false,\n isClassicEnabled: false,\n isClassicLoading: true,\n isChatLoading: true,\n chatUrl: null,\n classicUrl: null,\n isCurrentSpotcheckChat: null,\n canShowClassic: false,\n canShowChat: false,\n webViewInjectionData: null,\n chatWebViewRef: null,\n classicWebViewRef: null,\n },\n};\nconst NESTED_KEYS = ['currentSpotcheck', 'spotCheckDetails', 'webViewDetails', 'params'];\nconst spotcheckReducer = (state, update) => {\n const payload = update || {};\n const sc = state.SpotCheckState;\n const next = Object.assign(Object.assign({}, sc), payload);\n NESTED_KEYS.forEach((key) => {\n next[key] = Object.assign(Object.assign({}, sc[key]), (payload[key] || {}));\n });\n return { SpotCheckState: next };\n};\nexport const spotcheckStore = new Store({ SpotCheckState: initialSpotcheckState }, spotcheckReducer);\nexport const functionStore = new Store({ functionState: { isLoaded: false } }, (state, update) => ({ functionState: Object.assign(Object.assign({}, state.functionState), (update || {})) }));\nexport const componentStore = new Store({ componentState: { isLoaded: false, schemas: {} } }, (state, update) => ({ componentState: Object.assign(Object.assign({}, state.componentState), (update || {})) }));\n//# sourceMappingURL=store.js.map","// Keep in sync with package.json \"version\".\nexport const SDK_VERSION = '2.0.4-beta.1';\nexport const FRAMEWORK = 'ionic';\n//# sourceMappingURL=version.js.map","// SDK errors go to SurveySparrow's API (backend sentry.processSentryError), never to Sentry servers.\nimport { spotcheckStore } from '../state/store';\nimport { SDK_VERSION, FRAMEWORK } from './version';\n// Set by executables.ts at load time (avoids a circular import).\nlet executeRef = null;\nexport const registerExecute = (fn) => {\n executeRef = fn;\n};\nconst MAX_BREADCRUMBS = 30;\nconst sdkBreadcrumbs = [];\nexport const addBreadcrumb = (message, data) => {\n sdkBreadcrumbs.push({ category: 'spotcheck', message, data, timestamp: Date.now() / 1000 });\n if (sdkBreadcrumbs.length > MAX_BREADCRUMBS)\n sdkBreadcrumbs.shift();\n};\nconst MAX_BREADCRUMB_STRING = 200;\nconst capString = (value) => value.slice(0, MAX_BREADCRUMB_STRING);\n// Breadcrumb hook for backend functions; drops bad input and never throws.\nexport const safeAddBreadcrumb = (message, data) => {\n try {\n if (typeof message !== 'string')\n return;\n let clean;\n const proto = data && typeof data === 'object' ? Object.getPrototypeOf(data) : undefined;\n if (proto === Object.prototype || proto === null) {\n clean = {};\n Object.keys(data).forEach((key) => {\n const value = data[key];\n if (typeof value === 'string')\n clean[key] = capString(value);\n else if (value === null || typeof value === 'number' || typeof value === 'boolean')\n clean[key] = value;\n });\n }\n addBreadcrumb(capString(message), clean);\n }\n catch (_a) { }\n};\n// Flags an error as reported so execute() does not report it again.\nconst markReported = (error) => {\n try {\n if (error !== null && typeof error === 'object') {\n Object.defineProperty(error, '__ssReported', { value: true, configurable: true });\n }\n }\n catch (_a) { }\n};\nexport const isReported = (error) => {\n try {\n return !!(error === null || error === void 0 ? void 0 : error.__ssReported);\n }\n catch (_a) {\n return false;\n }\n};\n// Routes an event to the backend; never throws.\nconst sendToBackend = async (normalizedEvent) => {\n var _a, _b;\n try {\n const result = executeRef\n ? await executeRef('sentry.processSentryError', {\n event: normalizedEvent,\n sdkType: FRAMEWORK,\n sdkVersion: SDK_VERSION,\n })\n : null;\n if (result)\n return;\n const { domainName, targetToken } = ((_a = spotcheckStore.getState().SpotCheckState) === null || _a === void 0 ? void 0 : _a.params) || {};\n if (!domainName)\n return;\n await fetch(`https://${domainName}/api/internal/spotcheck/sdkErrors`, {\n method: 'POST',\n headers: { 'Content-Type': 'application/json' },\n body: JSON.stringify({\n errorMessage: normalizedEvent.errorMessage,\n sdkType: FRAMEWORK,\n sdkVersion: SDK_VERSION,\n level: ((_b = normalizedEvent.tags) === null || _b === void 0 ? void 0 : _b.error_priority) === 'P0' ? 'fatal' : 'error',\n tags: normalizedEvent.tags,\n extra: normalizedEvent.extra,\n breadcrumbs: normalizedEvent.breadcrumbs,\n contexts: { user: { spotcheck_token: targetToken || '', spotcheck_domain_name: domainName } },\n }),\n }).catch(() => { });\n }\n catch (_c) {\n // Reporting must never break the host app.\n }\n};\nconst report = (error, priority, source, extra) => {\n markReported(error);\n const err = error;\n sendToBackend({\n errorMessage: (err === null || err === void 0 ? void 0 : err.message) || String(error),\n tags: {\n error_priority: priority,\n severity: priority === 'P0' ? 'CRITICAL' : 'HIGH',\n errorType: source,\n },\n contexts: {},\n extra: extra || {},\n breadcrumbs: [...sdkBreadcrumbs],\n exceptions: [{\n type: (err === null || err === void 0 ? void 0 : err.name) || 'Error',\n value: (err === null || err === void 0 ? void 0 : err.message) || String(error),\n stack: String((err === null || err === void 0 ? void 0 : err.stack) || '').slice(0, 2000),\n }],\n timestamp: Date.now() / 1000,\n platform: 'javascript',\n });\n};\nexport const captureP0Error = (error, source, extra) => report(error, 'P0', source, extra);\nexport const captureP1Error = (error, source, extra) => report(error, 'P1', source, extra);\n//# sourceMappingURL=sentry.js.map","import { captureP1Error } from './sentry';\n// Same key as the legacy Ionic SDK, so existing installs keep their visitor.\nconst UUID_KEY = 'SurveySparrowUUID';\nconst uuidV4 = () => {\n const c = typeof crypto !== 'undefined' ? crypto : null;\n if (c === null || c === void 0 ? void 0 : c.randomUUID)\n return c.randomUUID();\n const bytes = new Uint8Array(16);\n if (c === null || c === void 0 ? void 0 : c.getRandomValues)\n c.getRandomValues(bytes);\n else\n for (let i = 0; i < 16; i++)\n bytes[i] = Math.floor(Math.random() * 256);\n bytes[6] = (bytes[6] & 0x0f) | 0x40;\n bytes[8] = (bytes[8] & 0x3f) | 0x80;\n const hex = Array.from(bytes, (b) => b.toString(16).padStart(2, '0')).join('');\n return `${hex.slice(0, 8)}-${hex.slice(8, 12)}-${hex.slice(12, 16)}-${hex.slice(16, 20)}-${hex.slice(20)}`;\n};\nexport const generateTraceId = () => `${uuidV4()}-${Date.now()}`;\nexport const saveData = async (value) => {\n try {\n localStorage.setItem(UUID_KEY, value);\n }\n catch (error) {\n captureP1Error(error, 'GENERAL', { action: 'saveData', errorMessage: error === null || error === void 0 ? void 0 : error.message });\n }\n};\n// isuuid: a new trace id; otherwise the stored visitor UUID.\nexport const loadData = async (isuuid = false) => {\n try {\n if (isuuid)\n return generateTraceId();\n return localStorage.getItem(UUID_KEY) || null;\n }\n catch (error) {\n captureP1Error(error, 'GENERAL', { action: 'loadData', isuuid, errorMessage: error === null || error === void 0 ? void 0 : error.message });\n return null;\n }\n};\n//# sourceMappingURL=storage.js.map","/******************************************************************************\nCopyright (c) Microsoft Corporation.\n\nPermission to use, copy, modify, and/or distribute this software for any\npurpose with or without fee is hereby granted.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\nPERFORMANCE OF THIS SOFTWARE.\n***************************************************************************** */\n/* global Reflect, Promise, SuppressedError, Symbol, Iterator */\n\nvar extendStatics = function(d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n};\n\nexport function __extends(d, b) {\n if (typeof b !== \"function\" && b !== null)\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n}\n\nexport var __assign = function() {\n __assign = Object.assign || function __assign(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n }\n return t;\n }\n return __assign.apply(this, arguments);\n}\n\nexport function __rest(s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n}\n\nexport function __decorate(decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n}\n\nexport function __param(paramIndex, decorator) {\n return function (target, key) { decorator(target, key, paramIndex); }\n}\n\nexport function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {\n function accept(f) { if (f !== void 0 && typeof f !== \"function\") throw new TypeError(\"Function expected\"); return f; }\n var kind = contextIn.kind, key = kind === \"getter\" ? \"get\" : kind === \"setter\" ? \"set\" : \"value\";\n var target = !descriptorIn && ctor ? contextIn[\"static\"] ? ctor : ctor.prototype : null;\n var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});\n var _, done = false;\n for (var i = decorators.length - 1; i >= 0; i--) {\n var context = {};\n for (var p in contextIn) context[p] = p === \"access\" ? {} : contextIn[p];\n for (var p in contextIn.access) context.access[p] = contextIn.access[p];\n context.addInitializer = function (f) { if (done) throw new TypeError(\"Cannot add initializers after decoration has completed\"); extraInitializers.push(accept(f || null)); };\n var result = (0, decorators[i])(kind === \"accessor\" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);\n if (kind === \"accessor\") {\n if (result === void 0) continue;\n if (result === null || typeof result !== \"object\") throw new TypeError(\"Object expected\");\n if (_ = accept(result.get)) descriptor.get = _;\n if (_ = accept(result.set)) descriptor.set = _;\n if (_ = accept(result.init)) initializers.unshift(_);\n }\n else if (_ = accept(result)) {\n if (kind === \"field\") initializers.unshift(_);\n else descriptor[key] = _;\n }\n }\n if (target) Object.defineProperty(target, contextIn.name, descriptor);\n done = true;\n};\n\nexport function __runInitializers(thisArg, initializers, value) {\n var useValue = arguments.length > 2;\n for (var i = 0; i < initializers.length; i++) {\n value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);\n }\n return useValue ? value : void 0;\n};\n\nexport function __propKey(x) {\n return typeof x === \"symbol\" ? x : \"\".concat(x);\n};\n\nexport function __setFunctionName(f, name, prefix) {\n if (typeof name === \"symbol\") name = name.description ? \"[\".concat(name.description, \"]\") : \"\";\n return Object.defineProperty(f, \"name\", { configurable: true, value: prefix ? \"\".concat(prefix, \" \", name) : name });\n};\n\nexport function __metadata(metadataKey, metadataValue) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\n}\n\nexport function __awaiter(thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n}\n\nexport function __generator(thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === \"function\" ? Iterator : Object).prototype);\n return g.next = verb(0), g[\"throw\"] = verb(1), g[\"return\"] = verb(2), typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while (g && (g = 0, op[0] && (_ = 0)), _) try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n}\n\nexport var __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});\n\nexport function __exportStar(m, o) {\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\n}\n\nexport function __values(o) {\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\n if (m) return m.call(o);\n if (o && typeof o.length === \"number\") return {\n next: function () {\n if (o && i >= o.length) o = void 0;\n return { value: o && o[i++], done: !o };\n }\n };\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\n}\n\nexport function __read(o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n}\n\n/** @deprecated */\nexport function __spread() {\n for (var ar = [], i = 0; i < arguments.length; i++)\n ar = ar.concat(__read(arguments[i]));\n return ar;\n}\n\n/** @deprecated */\nexport function __spreadArrays() {\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\n r[k] = a[j];\n return r;\n}\n\nexport function __spreadArray(to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n}\n\nexport function __await(v) {\n return this instanceof __await ? (this.v = v, this) : new __await(v);\n}\n\nexport function __asyncGenerator(thisArg, _arguments, generator) {\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\n return i = Object.create((typeof AsyncIterator === \"function\" ? AsyncIterator : Object).prototype), verb(\"next\"), verb(\"throw\"), verb(\"return\", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;\n function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }\n function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } }\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\n function fulfill(value) { resume(\"next\", value); }\n function reject(value) { resume(\"throw\", value); }\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\n}\n\nexport function __asyncDelegator(o) {\n var i, p;\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }\n}\n\nexport function __asyncValues(o) {\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\n var m = o[Symbol.asyncIterator], i;\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\n}\n\nexport function __makeTemplateObject(cooked, raw) {\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\n return cooked;\n};\n\nvar __setModuleDefault = Object.create ? (function(o, v) {\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n o[\"default\"] = v;\n};\n\nvar ownKeys = function(o) {\n ownKeys = Object.getOwnPropertyNames || function (o) {\n var ar = [];\n for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;\n return ar;\n };\n return ownKeys(o);\n};\n\nexport function __importStar(mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== \"default\") __createBinding(result, mod, k[i]);\n __setModuleDefault(result, mod);\n return result;\n}\n\nexport function __importDefault(mod) {\n return (mod && mod.__esModule) ? mod : { default: mod };\n}\n\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\n}\n\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\n}\n\nexport function __classPrivateFieldIn(state, receiver) {\n if (receiver === null || (typeof receiver !== \"object\" && typeof receiver !== \"function\")) throw new TypeError(\"Cannot use 'in' operator on non-object\");\n return typeof state === \"function\" ? receiver === state : state.has(receiver);\n}\n\nexport function __addDisposableResource(env, value, async) {\n if (value !== null && value !== void 0) {\n if (typeof value !== \"object\" && typeof value !== \"function\") throw new TypeError(\"Object expected.\");\n var dispose, inner;\n if (async) {\n if (!Symbol.asyncDispose) throw new TypeError(\"Symbol.asyncDispose is not defined.\");\n dispose = value[Symbol.asyncDispose];\n }\n if (dispose === void 0) {\n if (!Symbol.dispose) throw new TypeError(\"Symbol.dispose is not defined.\");\n dispose = value[Symbol.dispose];\n if (async) inner = dispose;\n }\n if (typeof dispose !== \"function\") throw new TypeError(\"Object not disposable.\");\n if (inner) dispose = function() { try { inner.call(this); } catch (e) { return Promise.reject(e); } };\n env.stack.push({ value: value, dispose: dispose, async: async });\n }\n else if (async) {\n env.stack.push({ async: true });\n }\n return value;\n}\n\nvar _SuppressedError = typeof SuppressedError === \"function\" ? SuppressedError : function (error, suppressed, message) {\n var e = new Error(message);\n return e.name = \"SuppressedError\", e.error = error, e.suppressed = suppressed, e;\n};\n\nexport function __disposeResources(env) {\n function fail(e) {\n env.error = env.hasError ? new _SuppressedError(e, env.error, \"An error was suppressed during disposal.\") : e;\n env.hasError = true;\n }\n var r, s = 0;\n function next() {\n while (r = env.stack.pop()) {\n try {\n if (!r.async && s === 1) return s = 0, env.stack.push(r), Promise.resolve().then(next);\n if (r.dispose) {\n var result = r.dispose.call(r.value);\n if (r.async) return s |= 2, Promise.resolve(result).then(next, function(e) { fail(e); return next(); });\n }\n else s |= 1;\n }\n catch (e) {\n fail(e);\n }\n }\n if (s === 1) return env.hasError ? Promise.reject(env.error) : Promise.resolve();\n if (env.hasError) throw env.error;\n }\n return next();\n}\n\nexport function __rewriteRelativeImportExtension(path, preserveJsx) {\n if (typeof path === \"string\" && /^\\.\\.?\\//.test(path)) {\n return path.replace(/\\.(tsx)$|((?:\\.d)?)((?:\\.[^./]+?)?)\\.([cm]?)ts$/i, function (m, tsx, d, ext, cm) {\n return tsx ? preserveJsx ? \".jsx\" : \".js\" : d && (!ext || !cm) ? m : (d + ext + \".\" + cm.toLowerCase() + \"js\");\n });\n }\n return path;\n}\n\nexport default {\n __extends,\n __assign,\n __rest,\n __decorate,\n __param,\n __esDecorate,\n __runInitializers,\n __propKey,\n __setFunctionName,\n __metadata,\n __awaiter,\n __generator,\n __createBinding,\n __exportStar,\n __values,\n __read,\n __spread,\n __spreadArrays,\n __spreadArray,\n __await,\n __asyncGenerator,\n __asyncDelegator,\n __asyncValues,\n __makeTemplateObject,\n __importStar,\n __importDefault,\n __classPrivateFieldGet,\n __classPrivateFieldSet,\n __classPrivateFieldIn,\n __addDisposableResource,\n __disposeResources,\n __rewriteRelativeImportExtension,\n};\n","export function isFunction(value) {\n return typeof value === 'function';\n}\n//# sourceMappingURL=isFunction.js.map","export function createErrorClass(createImpl) {\n var _super = function (instance) {\n Error.call(instance);\n instance.stack = new Error().stack;\n };\n var ctorFunc = createImpl(_super);\n ctorFunc.prototype = Object.create(Error.prototype);\n ctorFunc.prototype.constructor = ctorFunc;\n return ctorFunc;\n}\n//# sourceMappingURL=createErrorClass.js.map","import { createErrorClass } from './createErrorClass';\nexport var UnsubscriptionError = createErrorClass(function (_super) {\n return function UnsubscriptionErrorImpl(errors) {\n _super(this);\n this.message = errors\n ? errors.length + \" errors occurred during unsubscription:\\n\" + errors.map(function (err, i) { return i + 1 + \") \" + err.toString(); }).join('\\n ')\n : '';\n this.name = 'UnsubscriptionError';\n this.errors = errors;\n };\n});\n//# sourceMappingURL=UnsubscriptionError.js.map","export function arrRemove(arr, item) {\n if (arr) {\n var index = arr.indexOf(item);\n 0 <= index && arr.splice(index, 1);\n }\n}\n//# sourceMappingURL=arrRemove.js.map","import { __read, __spreadArray, __values } from \"tslib\";\nimport { isFunction } from './util/isFunction';\nimport { UnsubscriptionError } from './util/UnsubscriptionError';\nimport { arrRemove } from './util/arrRemove';\nvar Subscription = (function () {\n function Subscription(initialTeardown) {\n this.initialTeardown = initialTeardown;\n this.closed = false;\n this._parentage = null;\n this._finalizers = null;\n }\n Subscription.prototype.unsubscribe = function () {\n var e_1, _a, e_2, _b;\n var errors;\n if (!this.closed) {\n this.closed = true;\n var _parentage = this._parentage;\n if (_parentage) {\n this._parentage = null;\n if (Array.isArray(_parentage)) {\n try {\n for (var _parentage_1 = __values(_parentage), _parentage_1_1 = _parentage_1.next(); !_parentage_1_1.done; _parentage_1_1 = _parentage_1.next()) {\n var parent_1 = _parentage_1_1.value;\n parent_1.remove(this);\n }\n }\n catch (e_1_1) { e_1 = { error: e_1_1 }; }\n finally {\n try {\n if (_parentage_1_1 && !_parentage_1_1.done && (_a = _parentage_1.return)) _a.call(_parentage_1);\n }\n finally { if (e_1) throw e_1.error; }\n }\n }\n else {\n _parentage.remove(this);\n }\n }\n var initialFinalizer = this.initialTeardown;\n if (isFunction(initialFinalizer)) {\n try {\n initialFinalizer();\n }\n catch (e) {\n errors = e instanceof UnsubscriptionError ? e.errors : [e];\n }\n }\n var _finalizers = this._finalizers;\n if (_finalizers) {\n this._finalizers = null;\n try {\n for (var _finalizers_1 = __values(_finalizers), _finalizers_1_1 = _finalizers_1.next(); !_finalizers_1_1.done; _finalizers_1_1 = _finalizers_1.next()) {\n var finalizer = _finalizers_1_1.value;\n try {\n execFinalizer(finalizer);\n }\n catch (err) {\n errors = errors !== null && errors !== void 0 ? errors : [];\n if (err instanceof UnsubscriptionError) {\n errors = __spreadArray(__spreadArray([], __read(errors)), __read(err.errors));\n }\n else {\n errors.push(err);\n }\n }\n }\n }\n catch (e_2_1) { e_2 = { error: e_2_1 }; }\n finally {\n try {\n if (_finalizers_1_1 && !_finalizers_1_1.done && (_b = _finalizers_1.return)) _b.call(_finalizers_1);\n }\n finally { if (e_2) throw e_2.error; }\n }\n }\n if (errors) {\n throw new UnsubscriptionError(errors);\n }\n }\n };\n Subscription.prototype.add = function (teardown) {\n var _a;\n if (teardown && teardown !== this) {\n if (this.closed) {\n execFinalizer(teardown);\n }\n else {\n if (teardown instanceof Subscription) {\n if (teardown.closed || teardown._hasParent(this)) {\n return;\n }\n teardown._addParent(this);\n }\n (this._finalizers = (_a = this._finalizers) !== null && _a !== void 0 ? _a : []).push(teardown);\n }\n }\n };\n Subscription.prototype._hasParent = function (parent) {\n var _parentage = this._parentage;\n return _parentage === parent || (Array.isArray(_parentage) && _parentage.includes(parent));\n };\n Subscription.prototype._addParent = function (parent) {\n var _parentage = this._parentage;\n this._parentage = Array.isArray(_parentage) ? (_parentage.push(parent), _parentage) : _parentage ? [_parentage, parent] : parent;\n };\n Subscription.prototype._removeParent = function (parent) {\n var _parentage = this._parentage;\n if (_parentage === parent) {\n this._parentage = null;\n }\n else if (Array.isArray(_parentage)) {\n arrRemove(_parentage, parent);\n }\n };\n Subscription.prototype.remove = function (teardown) {\n var _finalizers = this._finalizers;\n _finalizers && arrRemove(_finalizers, teardown);\n if (teardown instanceof Subscription) {\n teardown._removeParent(this);\n }\n };\n Subscription.EMPTY = (function () {\n var empty = new Subscription();\n empty.closed = true;\n return empty;\n })();\n return Subscription;\n}());\nexport { Subscription };\nexport var EMPTY_SUBSCRIPTION = Subscription.EMPTY;\nexport function isSubscription(value) {\n return (value instanceof Subscription ||\n (value && 'closed' in value && isFunction(value.remove) && isFunction(value.add) && isFunction(value.unsubscribe)));\n}\nfunction execFinalizer(finalizer) {\n if (isFunction(finalizer)) {\n finalizer();\n }\n else {\n finalizer.unsubscribe();\n }\n}\n//# sourceMappingURL=Subscription.js.map","import { Subscription } from 'rxjs';\nconst legacyCallbacks = new Map();\nconst emit = (type, data) => {\n var _a;\n (_a = legacyCallbacks.get(type)) === null || _a === void 0 ? void 0 : _a.forEach((callback) => {\n try {\n runInApp(() => callback(data));\n }\n catch (error) {\n console.error(`[SpotCheck] ${type} listener failed`, error);\n }\n });\n};\n// Returns an RxJS Subscription, as the legacy SDK did.\nexport const addSpotCheckListener = (eventType, callback) => {\n if (!legacyCallbacks.has(eventType))\n legacyCallbacks.set(eventType, new Set());\n legacyCallbacks.get(eventType).add(callback);\n return new Subscription(() => {\n var _a;\n (_a = legacyCallbacks.get(eventType)) === null || _a === void 0 ? void 0 : _a.delete(callback);\n });\n};\nlet appListener = {};\n// Set by <SpotCheck>: runs app callbacks inside the Angular zone.\nlet runInApp = (fn) => fn();\nexport const setAppRunner = (runner) => {\n runInApp = runner;\n};\nexport const setListener = (listener) => {\n appListener = listener || {};\n};\n// What backend functions call: the app's listener first, then the legacy events.\nexport const sdkListener = {\n onSurveyLoaded: async (data) => {\n var _a;\n await runInApp(() => { var _a; return (_a = appListener.onSurveyLoaded) === null || _a === void 0 ? void 0 : _a.call(appListener, data); });\n // 2.0.3 passed surveyDetails.\n emit('surveyLoadStarted', (_a = data === null || data === void 0 ? void 0 : data['surveyDetails']) !== null && _a !== void 0 ? _a : data);\n },\n onSurveyResponse: async (data) => {\n var _a;\n await runInApp(() => { var _a; return (_a = appListener.onSurveyResponse) === null || _a === void 0 ? void 0 : _a.call(appListener, data); });\n // Legacy Ionic passed the response array.\n emit('surveyCompleted', (_a = data === null || data === void 0 ? void 0 : data['response']) !== null && _a !== void 0 ? _a : data);\n },\n onPartialSubmission: async (data) => {\n await runInApp(() => { var _a; return (_a = appListener.onPartialSubmission) === null || _a === void 0 ? void 0 : _a.call(appListener, data); });\n },\n onCloseButtonTap: async () => {\n await runInApp(() => { var _a; return (_a = appListener.onCloseButtonTap) === null || _a === void 0 ? void 0 : _a.call(appListener); });\n emit('surveyDismissed');\n },\n};\n//# sourceMappingURL=listener.js.map","import { functionStore, spotcheckStore } from '../state/store';\nimport { saveData, loadData } from './storage';\nimport { sdkListener } from './listener';\nimport { captureP0Error, captureP1Error, addBreadcrumb, safeAddBreadcrumb, isReported, registerExecute } from './sentry';\nimport { SDK_VERSION } from './version';\nexport const dispatchWrapper = (stateUpdate) => {\n try {\n spotcheckStore.dispatch(stateUpdate);\n }\n catch (error) {\n captureP1Error(error, 'GENERAL', { action: 'dispatchWrapper', errorMessage: error === null || error === void 0 ? void 0 : error.message });\n }\n};\nconst pendingExecutes = [];\nconst MAX_PENDING_EXECUTES = 20;\nconst isTrackScreenOrEvent = (functionName) => functionName === 'trackScreen' || functionName === 'trackEvent';\nconst flushPendingExecutes = async () => {\n while (pendingExecutes.length > 0) {\n const item = pendingExecutes.shift();\n if (item)\n await execute(item.functionName, item.params);\n }\n};\n// Track calls wait until initializeSpotcheckComponent has finished.\nlet isInitialized = false;\nexport const markInitialized = async () => {\n isInitialized = true;\n await flushPendingExecutes();\n};\n// Reporting failures are not reported again (avoids loops).\nconst isSentryFunction = (functionName) => functionName.startsWith('sentry.');\n// Style getters run on every render; they would push useful breadcrumbs out.\nconst isBreadcrumbWorthy = (functionName) => !isSentryFunction(functionName) && !/\\.get\\w*Styles$/.test(functionName);\n// Message type only; never survey content.\nconst describeParams = (functionName, params) => {\n var _a, _b, _c;\n if (functionName !== 'webviewComponent.handleWebViewMessage')\n return {};\n try {\n return { messageType: (_c = JSON.parse((_b = (_a = params === null || params === void 0 ? void 0 : params.event) === null || _a === void 0 ? void 0 : _a.nativeEvent) === null || _b === void 0 ? void 0 : _b.data)) === null || _c === void 0 ? void 0 : _c.type };\n }\n catch (_d) {\n return {};\n }\n};\nconst lookup = (functionName) => {\n let current = functionStore.getState().functionState;\n for (const part of functionName.split('.'))\n current = current === null || current === void 0 ? void 0 : current[part];\n return current;\n};\n// True when the backend sent this function (dotted path), e.g. for schema `$execute`.\nexport const hasFunction = (functionName) => typeof lookup(functionName) === 'string';\n// The SDK has no native keyboard mode to change; the overlay follows the keyboard instead.\nconst keyboard = {\n pauseDefaultKeyboardBehavior: () => { },\n resumeDefaultKeyboardBehavior: () => { },\n};\nexport const execute = async (functionName, params) => {\n let func;\n let payload;\n try {\n if (isTrackScreenOrEvent(functionName) && !isInitialized) {\n pendingExecutes.push({ functionName, params });\n // Cap the queue while init keeps failing; oldest calls go first.\n if (pendingExecutes.length > MAX_PENDING_EXECUTES)\n pendingExecutes.shift();\n return null;\n }\n if (!functionStore.getState().functionState.isLoaded)\n return null;\n const functionString = lookup(functionName);\n if (!functionString || typeof functionString !== 'string') {\n console.error(`Function ${functionName} not found`);\n return null;\n }\n payload = {\n params: Object.assign(Object.assign({}, params), { sdkVersion: SDK_VERSION }),\n state: spotcheckStore.getState(),\n dispatchWrapper,\n storage: { saveData, loadData },\n listener: sdkListener,\n sentry: { captureP0Error, captureP1Error, addBreadcrumb: safeAddBreadcrumb },\n keyboard,\n };\n // Fresh evaluation per call like the other SDKs; indirect eval keeps it in global scope.\n func = (0, eval)(`(${functionString})`);\n if (isBreadcrumbWorthy(functionName)) {\n addBreadcrumb('execute', Object.assign({ functionName }, describeParams(functionName, params)));\n }\n }\n catch (error) {\n if (isSentryFunction(functionName))\n return null;\n captureP1Error(error, 'GENERAL', { action: 'execute:setup', functionName, errorMessage: error === null || error === void 0 ? void 0 : error.message });\n return null;\n }\n try {\n return await func(payload);\n }\n catch (error) {\n if (isSentryFunction(functionName))\n return null;\n // Skip when the function already reported this error itself.\n if (!isReported(error)) {\n captureP1Error(error, 'GENERAL', { action: 'execute:runtime', functionName, errorMessage: error === null || error === void 0 ? void 0 : error.message });\n }\n console.error(`[execute] ${functionName}:`, error);\n return null;\n }\n};\nregisterExecute(execute);\n//# sourceMappingURL=executables.js.map","// Loads the survey page from its own domain in a separate-origin iframe (as in 2.0.3), so the\n// page can never reach the host app. The SDK and the page talk only through postMessage.\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\n// Runs a backend injection with a stand-in window and keeps only the messages it dispatches.\n// Scripts that touch the page DOM (CSS, re-measure) cannot cross origins and are dropped, as in 2.0.3.\nconst messagesFromScript = (script) => {\n const messages = [];\n const pageWindow = {\n dispatchEvent: (event) => {\n if ((event === null || event === void 0 ? void 0 : event.data) != null)\n messages.push(event.data);\n return true;\n },\n };\n class PageMessageEvent {\n constructor(type, init) {\n this.type = type;\n this.data = init === null || init === void 0 ? void 0 : init.data;\n }\n }\n try {\n // The host globals are shadowed so a DOM script fails here instead of touching the app.\n new Function('window', 'MessageEvent', 'document', 'self', 'globalThis', 'parent', 'top', script)(pageWindow, PageMessageEvent, undefined, pageWindow, pageWindow, pageWindow, pageWindow);\n }\n catch (_a) {\n // DOM-only script: nothing to send.\n }\n return messages;\n};\n// Same list as the survey page (rtls).\nconst RTL_LANGUAGES = ['ar', 'he', 'fa', 'ps', 'ur'];\n// The web page sends its fields at the top level; the backend reads the RN/Expo shape { type, data }.\nconst toBackendMessage = (message) => {\n var _a;\n if (!message || typeof message !== 'object' || typeof message.type !== 'string')\n return null;\n if (message.type === 'resizeWindow') {\n const height = (_a = message.size) === null || _a === void 0 ? void 0 : _a.height;\n return typeof height === 'number' ? { type: 'spotCheckData', data: { currentQuestionSize: { height } } } : null;\n }\n if ('data' in message)\n return message;\n const { type } = message, data = __rest(message, [\"type\"]);\n // The web languageChanged has only the code; add isRtl from the page's own RTL list.\n if (type === 'languageChanged' && typeof data.code === 'string') {\n data.isRtl = RTL_LANGUAGES.includes(data.code.split(/[-_]/)[0].toLowerCase());\n }\n return { type, data };\n};\nexport class SurveyPage {\n constructor(host, callbacks) {\n this.callbacks = callbacks;\n this.uri = '';\n this.origin = '';\n this.loadSeq = 0;\n this.onWindowMessage = (event) => {\n // Only the survey page in this iframe, from the survey domain.\n if (event.source !== this.iframe.contentWindow || event.origin !== this.origin)\n return;\n const message = toBackendMessage(event.data);\n if (message)\n this.callbacks.onMessage(JSON.stringify(message));\n };\n // Same contract as the RN WebView ref the backend functions call; messages go by postMessage.\n this.injectJavaScript = (script) => {\n const win = this.iframe.contentWindow;\n if (!win || !this.origin)\n return false;\n const messages = messagesFromScript(script);\n messages.forEach((data) => {\n var _a, _b;\n win.postMessage(data, this.origin);\n // 2.0.3 sent the theme right after the survey state; the web page needs it to apply survey colours.\n const themeInfo = (data === null || data === void 0 ? void 0 : data.type) === 'RESET_STATE' ? (_b = (_a = data.state) === null || _a === void 0 ? void 0 : _a.config) === null || _b === void 0 ? void 0 : _b.generatedCSS : null;\n if (themeInfo)\n win.postMessage({ type: 'THEME_UPDATE_SPOTCHECK', themeInfo }, this.origin);\n });\n return messages.length > 0;\n };\n this.iframe = document.createElement('iframe');\n this.iframe.setAttribute('title', 'Survey');\n this.iframe.setAttribute('allow', 'camera; microphone; geolocation; display-capture; autoplay; clipboard-read; clipboard-write; fullscreen');\n this.iframe.setAttribute('allowfullscreen', '');\n this.iframe.style.cssText = 'display:block;width:100%;height:100%;border:0;background:transparent;';\n host.appendChild(this.iframe);\n window.addEventListener('message', this.onWindowMessage);\n }\n load(uri) {\n if (!uri || uri === this.uri)\n return;\n this.uri = uri;\n this.origin = new URL(uri).origin;\n const seq = ++this.loadSeq;\n // A cross-origin iframe hides HTTP errors, so check the page first to report a failed load.\n fetch(uri, { credentials: 'omit' })\n .then((response) => {\n if (!response.ok)\n throw new Error(`Survey page failed with status ${response.status}`);\n if (seq === this.loadSeq)\n this.iframe.src = uri;\n })\n .catch((error) => {\n if (seq !== this.loadSeq)\n return;\n // A later load() with the same uri retries.\n this.uri = '';\n const description = (error === null || error === void 0 ? void 0 : error.message) || String(error);\n // message: readable text for the Sentry report (the RN event shape has none).\n this.callbacks.onError({ nativeEvent: { url: uri, description }, message: description });\n });\n }\n destroy() {\n this.loadSeq++;\n window.removeEventListener('message', this.onWindowMessage);\n this.iframe.remove();\n }\n}\n//# sourceMappingURL=survey-page.js.map","import { captureP0Error } from './sentry';\n// Render guard, like RN's error boundary: a failed draw hides SpotCheck, the app keeps running,\n// and it is reported once as APP_CRASH.\nlet crashed = false;\nconst crashListeners = new Set();\nexport const hasCrashed = () => crashed;\nexport const onCrash = (listener) => {\n crashListeners.add(listener);\n return () => {\n crashListeners.delete(listener);\n };\n};\nexport const guardedDetectChanges = (cdr, action) => {\n if (crashed)\n return;\n try {\n cdr.detectChanges();\n }\n catch (error) {\n crashed = true;\n captureP0Error(error, 'APP_CRASH', { action, errorMessage: error === null || error === void 0 ? void 0 : error.message });\n crashListeners.forEach((listener) => {\n try {\n listener();\n }\n catch (_a) { }\n });\n }\n};\n// Runs fn once per microtask however often it is requested (many dispatches, one render).\nexport const batched = (fn) => {\n let queued = false;\n return () => {\n if (queued)\n return;\n queued = true;\n queueMicrotask(() => {\n queued = false;\n fn();\n });\n };\n};\n//# sourceMappingURL=render.js.map","import { captureP1Error } from './sentry';\nimport { execute, hasFunction } from './executables';\n// Same binding rules as the other SDKs' Builder.\nconst evaluateExpression = (expr, context) => {\n try {\n const safeContext = { state: context.state, styles: context.styles, Math };\n const func = new Function(...Object.keys(safeContext), `return ${expr}`);\n return func(...Object.values(safeContext));\n }\n catch (error) {\n captureP1Error(error, 'GENERAL', {\n action: 'evaluateExpression',\n expression: expr === null || expr === void 0 ? void 0 : expr.substring(0, 200),\n errorMessage: error === null || error === void 0 ? void 0 : error.message,\n });\n return undefined;\n }\n};\nconst readPath = (root, path) => {\n let result = root;\n for (const key of path.split('.'))\n result = result === null || result === void 0 ? void 0 : result[key];\n return result;\n};\nexport const resolveBinding = (value, context) => {\n if (!value || typeof value !== 'object')\n return value;\n if (Array.isArray(value))\n return value.map((item) => resolveBinding(item, context));\n if (value.$expr)\n return evaluateExpression(value.$expr, context);\n if (value.$ref)\n return readPath(context, value.$ref);\n if (value.$path)\n return readPath(context.state, value.$path);\n if (value.$handler && context.handlers)\n return context.handlers[value.$handler];\n // Generic action: `{ $execute: 'group.fn', args: {...} }` runs a backend function; unknown names do nothing.\n if (typeof value.$execute === 'string') {\n const functionName = value.$execute;\n const args = value.args && typeof value.args === 'object' ? value.args : {};\n return (event) => {\n if (!functionName || !hasFunction(functionName))\n return;\n const nativeEvent = event === null || event === void 0 ? void 0 : event.nativeEvent;\n const eventData = nativeEvent && typeof nativeEvent === 'object' ? Object.assign({}, nativeEvent) : undefined;\n execute(functionName, eventData ? Object.assign(Object.assign({}, args), { event: eventData }) : Object.assign({}, args)).catch(() => { });\n };\n }\n if (Array.isArray(value.$handlers) && context.handlers) {\n return (...args) => {\n value.$handlers.forEach((name) => { var _a, _b; return (_b = (_a = context.handlers) === null || _a === void 0 ? void 0 : _a[name]) === null || _b === void 0 ? void 0 : _b.call(_a, ...args); });\n };\n }\n const resolved = {};\n for (const key in value)\n resolved[key] = resolveBinding(value[key], context);\n return resolved;\n};\nconst pair = (cond, op, context) => cond[op].map((val) => resolveBinding(val, context));\nexport const evaluateCondition = (condition, context) => {\n if (!condition)\n return true;\n if (typeof condition === 'object' && !Array.isArray(condition)) {\n if (Array.isArray(condition.$and))\n return condition.$and.every((c) => evaluateCondition(c, context));\n if (Array.isArray(condition.$or))\n return condition.$or.some((c) => evaluateCondition(c, context));\n if (condition.$not !== undefined)\n return !evaluateCondition(condition.$not, context);\n if (Array.isArray(condition.$eq) && condition.$eq.length === 2) {\n const [l, r] = pair(condition, '$eq', context);\n return l === r;\n }\n if (Array.isArray(condition.$ne) && condition.$ne.length === 2) {\n const [l, r] = pair(condition, '$ne', context);\n return l !== r;\n }\n if (Array.isArray(condition.$gt) && condition.$gt.length === 2) {\n const [l, r] = pair(condition, '$gt', context);\n return l > r;\n }\n if (Array.isArray(condition.$lt) && condition.$lt.length === 2) {\n const [l, r] = pair(condition, '$lt', context);\n return l < r;\n }\n }\n return Boolean(resolveBinding(condition, context));\n};\n// CSS properties that take plain numbers; every other number is px.\nconst UNITLESS = new Set([\n 'opacity', 'zIndex', 'flex', 'flexGrow', 'flexShrink', 'fontWeight', 'order', 'aspectRatio', 'scale',\n]);\n// Backend styles are CSS objects with camelCase keys.\nexport const toCss = (style) => {\n if (!style || typeof style !== 'object' || Array.isArray(style))\n return null;\n const css = {};\n for (const key of Object.keys(style)) {\n const value = style[key];\n if (value == null || typeof value === 'object')\n continue;\n css[key] = typeof value === 'number' && !UNITLESS.has(key) ? `${value}px` : String(value);\n }\n return css;\n};\n//# sourceMappingURL=binding.js.map","var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata = (this && this.__metadata) || function (k, v) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\n};\nimport { ChangeDetectorRef, Component, Directive, ElementRef, EventEmitter, Input, NgZone, Output, ViewEncapsulation, forwardRef, } from '@angular/core';\nimport { NgFor, NgIf, NgStyle, NgSwitch, NgSwitchCase } from '@angular/common';\nimport { componentStore, spotcheckStore } from '../state/store';\nimport { execute } from '../helpers/executables';\nimport { SurveyPage } from '../helpers/survey-page';\nimport { batched, guardedDetectChanges } from '../helpers/render';\nimport { evaluateCondition, resolveBinding, toCss, } from '../helpers/binding';\n// Reports the element's untransformed width like RN onLayout ({ nativeEvent: { layout } }).\nlet LayoutDirective = class LayoutDirective {\n constructor(el, zone) {\n this.el = el;\n this.zone = zone;\n this.ssLayout = new EventEmitter();\n this.last = '';\n }\n ngOnInit() {\n if (typeof ResizeObserver === 'undefined')\n return;\n this.zone.runOutsideAngular(() => {\n this.observer = new ResizeObserver(() => {\n const node = this.el.nativeElement;\n const layout = { x: node.offsetLeft, y: node.offsetTop, width: node.offsetWidth, height: node.offsetHeight };\n const key = `${layout.width}x${layout.height}`;\n if (key === this.last)\n return;\n this.last = key;\n this.ssLayout.emit({ nativeEvent: { layout } });\n });\n this.observer.observe(this.el.nativeElement);\n });\n }\n ngOnDestroy() {\n var _a;\n (_a = this.observer) === null || _a === void 0 ? void 0 : _a.disconnect();\n }\n};\n__decorate([\n Output(),\n __metadata(\"design:type\", Object)\n], LayoutDirective.prototype, \"ssLayout\", void 0);\nLayoutDirective = __decorate([\n Directive({ selector: '[ssLayout]', standalone: true }),\n __metadata(\"design:paramtypes\", [ElementRef, NgZone])\n], LayoutDirective);\nexport { LayoutDirective };\n// Hosts one survey page; mirrors the RN WebViewRenderer (hidden pages stay 1x1 off-screen and keep loading).\nlet WebViewRendererComponent = class WebViewRendererComponent {\n constructor(el) {\n this.el = el;\n this.uri = '';\n this.canShow = false;\n this.hostStyle = '';\n }\n ngOnChanges() {\n var _a;\n this.hostStyle = this.canShow\n ? 'display:block;position:relative;width:100%;height:100%;'\n : 'display:block;position:absolute;left:-1000px;top:0;width:1px;height:1px;opacity:0;overflow:hidden;';\n if (!this.uri)\n return;\n if (!this.page) {\n this.page = new SurveyPage(this.el.nativeElement, {\n onMessage: (data) => { var _a; return (_a = this.onMessage) === null || _a === void 0 ? void 0 : _a.call(this, { nativeEvent: { data } }); },\n onError: (error) => { var _a; return (_a = this.onError) === null || _a === void 0 ? void 0 : _a.call(this, error); },\n });\n (_a = this.refCallback) === null || _a === void 0 ? void 0 : _a.call(this, this.page);\n }\n this.page.load(this.uri);\n }\n ngOnDestroy() {\n var _a, _b;\n (_a = this.refCallback) === null || _a === void 0 ? void 0 : _a.call(this, null);\n (_b = this.page) === null || _b === void 0 ? void 0 : _b.destroy();\n }\n};\n__decorate([\n Input(),\n __metadata(\"design:type\", Object)\n], WebViewRendererComponent.prototype, \"uri\", void 0);\n__decorate([\n Input(),\n __metadata(\"design:type\", Object)\n], WebViewRendererComponent.prototype, \"canShow\", void 0);\n__decorate([\n Input(),\n __metadata(\"design:type\", Function)\n], WebViewRendererComponent.prototype, \"onMessage\", void 0);\n__decorate([\n Input(),\n __metadata(\"design:type\", Function)\n], WebViewRendererComponent.prototype, \"onError\", void 0);\n__decorate([\n Input(),\n __metadata(\"design:type\", Function)\n], WebViewRendererComponent.prototype, \"refCallback\", void 0);\nWebViewRendererComponent = __decorate([\n Component({\n selector: 'ss-webview-renderer',\n standalone: true,\n template: '',\n host: { '[style]': 'hostStyle' },\n }),\n __metadata(\"design:paramtypes\", [ElementRef])\n], WebViewRendererComponent);\nexport { WebViewRendererComponent };\n// Renders one backend schema node as HTML (same node rules as the other SDKs' Builder).\nlet SsNodeComponent = class SsNodeComponent {\n constructor() {\n this.ctx = {};\n this.visible = false;\n this.kind = '';\n this.role = null;\n this.props = {};\n this.css = null;\n this.content = null;\n this.slot = null;\n this.svgSrc = '';\n this.children = [];\n }\n // Binding results are computed once per render so templates see stable values.\n ngOnChanges() {\n var _a, _b;\n const node = this.node;\n const ctx = this.ctx || {};\n this.slot = null;\n if (!node) {\n this.visible = false;\n return;\n }\n if (node.slot) {\n this.kind = 'slot';\n this.slot = ((_a = ctx.slots) === null || _a === void 0 ? void 0 : _a[node.slot]) || null;\n this.visible = Boolean(this.slot);\n return;\n }\n this.visible = node.if === undefined || evaluateCondition(node.if, ctx);\n if (!this.visible)\n return;\n this.kind = node.type || '';\n this.role = ((_b = node.meta) === null || _b === void 0 ? void 0 : _b.componentRole) || null;\n this.props = node.props ? resolveBinding(node.props, ctx) || {} : {};\n this.css = toCss(this.props['style']);\n this.content = node.content !== undefined ? resolveBinding(node.content, ctx) : null;\n this.children = node.children || [];\n if (this.kind === 'SvgXml') {\n const xml = typeof this.props['xml'] === 'string' ? this.props['xml'] : '';\n // As an image, so markup in the icon can never run script.\n this.svgSrc = xml ? `data:image/svg+xml;charset=utf-8,${encodeURIComponent(xml)}` : '';\n }\n }\n byIndex(index) {\n return index;\n }\n press(event) {\n var _a, _b;\n event.stopPropagation();\n (_b = (_a = this.props)['onPress']) === null || _b === void 0 ? void 0 : _b.call(_a, event);\n }\n layout(event) {\n var _a, _b;\n (_b = (_a = this.props)['onLayout']) === null || _b === void 0 ? void 0 : _b.call(_a, event);\n }\n};\n__decorate([\n Input(),\n __metadata(\"design:type\", Object)\n], SsNodeComponent.prototype, \"node\", void 0);\n__decorate([\n Input(),\n __metadata(\"design:type\", Object)\n], SsNodeComponent.prototype, \"ctx\", void 0);\nSsNodeComponent = __decorate([\n Component({\n selector: 'ss-node',\n standalone: true,\n encapsulation: ViewEncapsulation.None,\n imports: [\n NgIf, NgFor, NgStyle, NgSwitch, NgSwitchCase, LayoutDirective, WebViewRendererComponent,\n forwardRef(() => CloseButtonComponent),\n ],\n styles: [`\n ss-node, ss-close-button { display: contents; }\n .ss-node-box, .ss-node-pressable, .ss-node-text, .ss-node-image, .ss-node-svg { box-sizing: border-box; }\n .ss-node-pressable { -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; }\n .ss-node-pressable:active { opacity: 0.6; }\n .ss-node-pressable:focus { outline: none; }\n `],\n template: `\n <ng-container *ngIf=\"visible\" [ngSwitch]=\"kind\">\n <ng-container *ngSwitchCase=\"'slot'\">\n <ss-node *ngIf=\"slot?.schema\" [node]=\"slot!.schema!\" [ctx]=\"slot!.context\"></ss-node>\n </ng-container>\n <div *ngSwitchCase=\"'Box'\" class=\"ss-node-box\" [attr.data-ss-role]=\"role\" [ngStyle]=\"css\">\n <ss-node *ngFor=\"let child of children; trackBy: byIndex\" [node]=\"child\" [ctx]=\"ctx\"></ss-node>\n </div>\n <div *ngSwitchCase=\"'Pressable'\" class=\"ss-node-pressable\" role=\"button\" tabindex=\"0\"\n [attr.data-ss-role]=\"role\" [attr.aria-label]=\"props['ariaLabel'] || null\" [ngStyle]=\"css\"\n (click)=\"press($event)\" (keydown.enter)=\"press($event)\" (ssLayout)=\"layout($event)\">\n <ss-node *ngFor=\"let child of children; trackBy: byIndex\" [node]=\"child\" [ctx]=\"ctx\"></ss-node>\n </div>\n <span *ngSwitchCase=\"'Text'\" class=\"ss-node-text\" [ngStyle]=\"css\">{{ content }}</span>\n <!-- A failed image keeps its space but shows nothing, like iOS and Flutter. -->\n <img *ngSwitchCase=\"'Image'\" class=\"ss-node-image\" [attr.data-ss-role]=\"role\" [src]=\"props['src']\" [ngStyle]=\"css\" alt=\"\"\n (error)=\"$any($event.target).style.visibility = 'hidden'\" (load)=\"$any($event.target).style.visibility = ''\" />\n <img *ngSwitchCase=\"'SvgXml'\" class=\"ss-node-svg\" [src]=\"svgSrc\" [ngStyle]=\"css\" alt=\"\" />\n <ss-close-button *ngSwitchCase=\"'CloseButton'\"></ss-close-button>\n <ss-webview-renderer *ngSwitchCase=\"'WebViewRenderer'\"\n [attr.data-ss-webview]=\"node.meta?.['webViewType']\"\n [uri]=\"props['uri']\" [canShow]=\"props['canShow']\" [onMessage]=\"props['onMessage']\"\n [onError]=\"props['onError']\" [refCallback]=\"props['ref']\"></ss-webview-renderer>\n </ng-container>\n `,\n })\n], SsNodeComponent);\nexport { SsNodeComponent };\n// Backend-driven close button (schema closeButton + closeButton.getCloseButtonStyles).\nlet CloseButtonComponent = class CloseButtonComponent {\n constructor(cdr) {\n this.cdr = cdr;\n this.schema = null;\n this.ctx = {};\n this.styles = {};\n this.styleKey = [];\n this.unsubscribers = [];\n this.handlers = {\n handleClosePress: () => {\n execute('closeButton.handleCloseButton');\n },\n };\n this.destroyed = false;\n this.scheduleRender = batched(() => {\n if (this.destroyed)\n return;\n this.ctx = { state: spotcheckStore.getState().SpotCheckState, styles: this.styles, handlers: this.handlers };\n guardedDetectChanges(this.cdr, 'closeButtonRender');\n });\n }\n ngOnInit() {\n this.unsubscribers.push(spotcheckStore.subscribe(() => this.update()));\n this.unsubscribers.push(componentStore.subscribe(() => this.update()));\n this.update();\n }\n ngOnDestroy() {\n this.destroyed = true;\n this.unsubscribers.forEach((unsubscribe) => unsubscribe());\n }\n update() {\n var _a;\n const state = spotcheckStore.getState().SpotCheckState;\n const componentState = componentStore.getState().componentState;\n this.schema = componentState.isLoaded ? ((_a = componentState.schemas) === null || _a === void 0 ? void 0 : _a.closeButton) || null : null;\n const key = [state.spotCheckDetails.closeButton, state.spotCheckDetails.isRTLLanguage];\n if (key[0] !== this.styleKey[0] || key[1] !== this.styleKey[1]) {\n this.styleKey = key;\n execute('closeButton.getCloseButtonStyles').then((result) => {\n if (!result)\n return;\n this.styles = result;\n this.scheduleRender();\n });\n }\n this.scheduleRender();\n }\n};\nCloseButtonComponent = __decorate([\n Component({\n selector: 'ss-close-button',\n standalone: true,\n imports: [NgIf, SsNodeComponent],\n template: `<ss-node *ngIf=\"schema\" [node]=\"schema\" [ctx]=\"ctx\"></ss-node>`,\n }),\n __metadata(\"design:paramtypes\", [ChangeDetectorRef])\n], CloseButtonComponent);\nexport { CloseButtonComponent };\n//# sourceMappingURL=builder.component.js.map","var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nimport { ChangeDetectorRef, Component, NgZone, PLATFORM_ID, inject } from '@angular/core';\nimport { NgIf, isPlatformBrowser } from '@angular/common';\nimport { GuardsCheckEnd, NavigationEnd, Router } from '@angular/router';\nimport { SsNodeComponent } from './spotchecks/components/builder.component';\nimport { componentStore, spotcheckStore } from './spotchecks/state/store';\nimport { dispatchWrapper, execute } from './spotchecks/helpers/executables';\nimport { captureP1Error } from './spotchecks/helpers/sentry';\nimport { setAppRunner } from './spotchecks/helpers/listener';\nimport { batched, guardedDetectChanges, hasCrashed, onCrash } from './spotchecks/helpers/render';\n// Path only: query or hash changes stay on the same screen.\nconst pathOf = (url) => (url || '').split(/[?#]/)[0];\n// Only one <SpotCheck> renders; extra instances stay empty so they never touch the live page.\nlet owner = null;\n// Keyboard cover below this is browser chrome, not a keyboard.\nconst MIN_KEYBOARD_HEIGHT = 80;\n// Place once at the app root: <SpotCheck />. One Angular codebase for web, Android and iOS.\nlet SpotCheck = class SpotCheck {\n constructor() {\n this.wrapperSchema = null;\n this.buttonSchema = null;\n this.wrapperCtx = {};\n this.buttonCtx = {};\n this.buttonReady = false;\n this.wrapperStyles = {\n overlayStyle: { position: 'fixed', height: 0, opacity: 0, zIndex: -999999, pointerEvents: 'none' },\n wrapperStyle: {},\n };\n this.buttonStyles = {};\n this.destroyed = false;\n this.cleanups = [];\n this.lastInjectionKey = [];\n this.lastButtonKey = [];\n this.lastPath = null;\n this.cdr = inject(ChangeDetectorRef);\n this.zone = inject(NgZone);\n this.router = inject(Router, { optional: true });\n this.isBrowser = isPlatformBrowser(inject(PLATFORM_ID));\n this.webviewHandlers = {\n classicWebViewRefCallback: (ref) => execute('webviewComponent.classicWebViewRefCallback', { ref }),\n chatWebViewRefCallback: (ref) => execute('webviewComponent.chatWebViewRefCallback', { ref }),\n handleOnMessage: (event) => execute('webviewComponent.handleWebViewMessage', { event }),\n handleOnError: (error) => execute('webviewComponent.handleWebViewError', { error }),\n };\n this.buttonHandlers = {\n handleSpotCheckButtonPress: () => execute('spotCheckButton.handleSpotCheckButtonPress'),\n handleSideTabLayout: (event) => execute('spotCheckButton.handleSideTabLayout', { event }),\n };\n this.scheduleRender = batched(() => {\n if (!this.destroyed)\n this.render();\n });\n this.scheduleWrapperStyles = batched(() => {\n if (this.destroyed)\n return;\n execute('wrapper.getWrapperStyles', {\n screenHeight: window.innerHeight,\n screenWidth: window.innerWidth,\n setStyles: (styles) => {\n this.wrapperStyles = styles;\n this.scheduleRender();\n },\n });\n });\n }\n ngOnInit() {\n // Server render (SSR) or a second instance: render nothing.\n if (!this.isBrowser || owner)\n return;\n owner = this;\n // App callbacks run inside Angular so the app's own UI updates.\n setAppRunner((fn) => this.zone.run(fn));\n this.cleanups.push(spotcheckStore.subscribe(() => this.onStateChange()));\n this.cleanups.push(componentStore.subscribe(() => this.onStateChange()));\n this.cleanups.push(onCrash(() => this.hideAfterCrash()));\n this.watchWindow();\n this.watchRouter();\n this.onStateChange();\n }\n ngOnDestroy() {\n if (owner === this)\n owner = null;\n this.destroyed = true;\n this.cleanups.forEach((cleanup) => cleanup());\n }\n // Same triggers as the other SDKs' Wrapper / WebViewComponent / SpotCheckButton effects.\n onStateChange() {\n const state = spotcheckStore.getState().SpotCheckState;\n const { webViewDetails, spotCheckDetails } = state;\n this.scheduleWrapperStyles();\n const injectionKey = [webViewDetails.isChatLoading, webViewDetails.isClassicLoading, webViewDetails.webViewInjectionData];\n if (injectionKey.some((value, i) => value !== this.lastInjectionKey[i])) {\n this.lastInjectionKey = injectionKey;\n execute('webviewComponent.handleWebViewInjection');\n }\n const buttonKey = [spotCheckDetails.spotCheckButtonConfig, spotCheckDetails.isSpotCheckButton, spotCheckDetails.sideTabButtonWidth];\n if (buttonKey.some((value, i) => value !== this.lastButtonKey[i])) {\n this.lastButtonKey = buttonKey;\n execute('spotCheckButton.getSpotCheckButtonStyles').then((result) => {\n if (!result)\n return;\n this.buttonStyles = result;\n this.scheduleRender();\n });\n }\n this.scheduleRender();\n }\n render() {\n if (hasCrashed())\n return;\n const state = spotcheckStore.getState().SpotCheckState;\n const componentState = componentStore.getState().componentState;\n const schemas = componentState.isLoaded ? componentState.schemas || {} : {};\n this.wrapperSchema = schemas.wrapper || null;\n this.buttonSchema = schemas.spotCheckButton || null;\n this.wrapperCtx = {\n state,\n styles: this.wrapperStyles,\n slots: {\n children: {\n schema: schemas.webviewComponent || null,\n context: { state, handlers: this.webviewHandlers },\n },\n },\n };\n this.buttonCtx = { state, styles: this.buttonStyles, handlers: this.buttonHandlers };\n // Wait for styles so the button never renders unstyled for a frame.\n this.buttonReady = Object.keys(this.buttonStyles || {}).length > 0;\n guardedDetectChanges(this.cdr, 'render');\n }\n // After a failed draw, SpotCheck renders nothing for the rest of the session (RN error boundary parity).\n hideAfterCrash() {\n this.wrapperSchema = null;\n this.buttonSchema = null;\n try {\n this.cdr.detectChanges();\n }\n catch (_a) { }\n }\n // Screen size and the part of it the on-screen keyboard covers.\n watchWindow() {\n const vv = window.visualViewport;\n const onResize = () => {\n let keyboard = 0;\n if (vv)\n keyboard = Math.round(window.innerHeight - vv.height - vv.offsetTop);\n if (keyboard < MIN_KEYBOARD_HEIGHT)\n keyboard = 0;\n const current = spotcheckStore.getState().SpotCheckState.spotCheckDetails.keyBoardHeight || 0;\n if (keyboard !== current)\n dispatchWrapper({ spotCheckDetails: { keyBoardHeight: keyboard } });\n else\n this.scheduleWrapperStyles();\n };\n this.zone.runOutsideAngular(() => {\n window.addEventListener('resize', onResize);\n vv === null || vv === void 0 ? void 0 : vv.addEventListener('resize', onResize);\n vv === null || vv === void 0 ? void 0 : vv.addEventListener('scroll', onResize);\n });\n this.cleanups.push(() => {\n window.removeEventListener('resize', onResize);\n vv === null || vv === void 0 ? void 0 : vv.removeEventListener('resize', onResize);\n vv === null || vv === void 0 ? void 0 : vv.removeEventListener('scroll', onResize);\n });\n }\n // Leaving a screen closes its spotcheck. GuardsCheckEnd comes after guards and redirects\n // (a blocked navigation keeps the survey) and before the new page's trackScreen.\n watchRouter() {\n if (!this.router)\n return;\n this.lastPath = this.router.navigated ? pathOf(this.router.url) : null;\n const subscription = this.router.events.subscribe((event) => {\n try {\n if (event instanceof GuardsCheckEnd && event.shouldActivate) {\n const next = pathOf(event.urlAfterRedirects);\n if (this.lastPath !== null && next !== this.lastPath) {\n execute('handleNavigationChange');\n }\n this.lastPath = next;\n }\n else if (event instanceof NavigationEnd) {\n this.lastPath = pathOf(event.urlAfterRedirects);\n }\n }\n catch (error) {\n captureP1Error(error, 'GENERAL', { action: 'navigationListener', errorMessage: error === null || error === void 0 ? void 0 : error.message });\n }\n });\n this.cleanups.push(() => subscription.unsubscribe());\n }\n};\nSpotCheck = __decorate([\n Component({\n selector: 'SpotCheck',\n standalone: true,\n imports: [NgIf, SsNodeComponent],\n styles: [':host { display: contents; }'],\n template: `\n <ss-node *ngIf=\"wrapperSchema\" [node]=\"wrapperSchema\" [ctx]=\"wrapperCtx\"></ss-node>\n <ss-node *ngIf=\"buttonSchema && buttonReady\" [node]=\"buttonSchema\" [ctx]=\"buttonCtx\"></ss-node>\n `,\n })\n], SpotCheck);\nexport { SpotCheck };\n//# sourceMappingURL=spotcheck.component.js.map","import { Capacitor } from '@capacitor/core';\nimport { Device } from '@capacitor/device';\nlet deviceInfo = null;\nconst getDeviceInfo = async () => {\n if (deviceInfo)\n return deviceInfo;\n try {\n deviceInfo = await Device.getInfo();\n }\n catch (_a) {\n deviceInfo = { platform: Capacitor.getPlatform(), operatingSystem: 'unknown', osVersion: '' };\n }\n return deviceInfo;\n};\n// Legacy Ionic visitor: operatingSystem from @capacitor/device (cached at init), size from the window.\nexport const getVisitorInfo = () => {\n const info = deviceInfo || {};\n return {\n deviceType: 'MOBILE',\n operatingSystem: info.operatingSystem || 'unknown',\n screenResolution: {\n width: Math.round(window.innerWidth),\n height: Math.round(window.innerHeight),\n },\n timezone: Intl.DateTimeFormat().resolvedOptions().timeZone,\n };\n};\nexport const loadDeviceInfo = () => getDeviceInfo();\n// Raw device facts; the backend keeps the SDK version per app build.\nexport const getDeviceFacts = async () => {\n var _a;\n const info = await getDeviceInfo();\n const facts = Object.assign({ os: info.platform === 'web' ? 'web' : info.platform, osVersion: String(info.osVersion || ''), isTablet: false }, (info.model ? { model: String(info.model) } : {}));\n if (Capacitor.isNativePlatform()) {\n try {\n // @capacitor/app is optional; its native plugin registers here when installed.\n const app = (_a = Capacitor.Plugins) === null || _a === void 0 ? void 0 : _a.App;\n const appInfo = (app === null || app === void 0 ? void 0 : app.getInfo) ? await app.getInfo() : null;\n if (appInfo === null || appInfo === void 0 ? void 0 : appInfo.version)\n facts['appVersion'] = String(appInfo.version);\n if (appInfo === null || appInfo === void 0 ? void 0 : appInfo.build)\n facts['appBuild'] = String(appInfo.build);\n }\n catch (_b) { }\n }\n return facts;\n};\n//# sourceMappingURL=device.js.map","var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport { componentStore, functionStore, spotcheckStore } from './state/store';\nimport { execute, markInitialized } from './helpers/executables';\nimport { setListener } from './helpers/listener';\nimport { getDeviceFacts, getVisitorInfo, loadDeviceInfo } from './helpers/device';\nimport { addBreadcrumb, captureP0Error } from './helpers/sentry';\nimport { FRAMEWORK } from './helpers/version';\nexport { SDK_VERSION } from './helpers/version';\nconst INIT_TIMEOUT_MS = 15000;\n// Backend functions, schemas and page script for this SDK (framework=ionic).\nconst getAllSpotcheckFunctions = async (domainName) => {\n const controller = typeof AbortController !== 'undefined' ? new AbortController() : null;\n const timer = setTimeout(() => controller === null || controller === void 0 ? void 0 : controller.abort(), INIT_TIMEOUT_MS);\n try {\n const response = await fetch(`https://${domainName}/api/internal/spotcheck/mobile/init?framework=${FRAMEWORK}`, { signal: controller === null || controller === void 0 ? void 0 : controller.signal, cache: 'no-store' });\n if (!response.ok)\n throw new Error(`mobile/init failed with status ${response.status}`);\n const data = await response.json().catch(() => null);\n // A non-JSON 200 (e.g. captive portal) counts as a failed init.\n if (!data || typeof data !== 'object' || typeof data.initializeSpotcheckComponent !== 'string') {\n throw new Error('Invalid mobile/init response');\n }\n const { componentSchemas, config } = data, functions = __rest(data, [\"componentSchemas\", \"config\"]);\n functionStore.dispatch(Object.assign(Object.assign({}, functions), { isLoaded: true }));\n componentStore.dispatch({ schemas: componentSchemas || {}, config: config || {}, isLoaded: Boolean(componentSchemas) });\n return data;\n }\n catch (error) {\n captureP0Error(error, 'SPOTCHECK_INITIALIZATION', {\n component: 'getAllSpotcheckFunctions',\n action: 'fetchFunctions',\n domainName,\n errorMessage: error === null || error === void 0 ? void 0 : error.message,\n });\n console.error('Error fetching spotcheck functions:', error);\n throw error;\n }\n finally {\n clearTimeout(timer);\n }\n};\n// Synchronous: trackScreen must reach execute in the same tick as a following trackEvent.\nconst refreshVisitor = () => {\n try {\n spotcheckStore.dispatch({ params: { visitor: getVisitorInfo() } });\n }\n catch (_a) { }\n};\n// Init retry: a failed init (e.g. offline at launch) is retried on the next track call.\nconst INIT_RETRY_GAP_MS = 10000;\nlet lastInitParams = null;\nlet initStatus = 'idle';\nlet lastInitAttempt = 0;\nconst retryInitIfFailed = () => {\n if (initStatus !== 'failed' || !lastInitParams)\n return;\n if (Date.now() - lastInitAttempt < INIT_RETRY_GAP_MS)\n return;\n initializeSpotChecks(lastInitParams).catch(() => { });\n};\nexport const initializeSpotChecks = async (params) => {\n lastInitParams = params;\n initStatus = 'running';\n lastInitAttempt = Date.now();\n try {\n setListener(params === null || params === void 0 ? void 0 : params.listener);\n if (params === null || params === void 0 ? void 0 : params.domainName)\n spotcheckStore.dispatch({ params: { domainName: params.domainName } });\n await loadDeviceInfo();\n refreshVisitor();\n const device = await getDeviceFacts();\n await getAllSpotcheckFunctions(params.domainName);\n const { listener } = params, initParams = __rest(params, [\"listener\"]);\n await execute('initializeSpotcheckComponent', Object.assign(Object.assign({}, initParams), { framework: FRAMEWORK, device }));\n await markInitialized();\n initStatus = 'done';\n }\n catch (error) {\n // Legacy never threw into the host app; failures go to the backend and the console.\n console.error('Error initializing spotchecks:', error);\n initStatus = 'failed';\n }\n};\nconst resolveTrackOptions = (input) => {\n var _a, _b, _c;\n return ({\n variables: (_a = input === null || input === void 0 ? void 0 : input.variables) !== null && _a !== void 0 ? _a : {},\n customProperties: (_b = input === null || input === void 0 ? void 0 : input.customProperties) !== null && _b !== void 0 ? _b : {},\n userDetails: (_c = input === null || input === void 0 ? void 0 : input.userDetails) !== null && _c !== void 0 ? _c : {},\n });\n};\nexport async function trackScreen(screenOrProps, optionsArg) {\n const screen = typeof screenOrProps === 'string' ? screenOrProps : screenOrProps === null || screenOrProps === void 0 ? void 0 : screenOrProps.screen;\n const options = resolveTrackOptions(typeof screenOrProps === 'string' ? optionsArg : screenOrProps === null || screenOrProps === void 0 ? void 0 : screenOrProps.options);\n if (!screen) {\n console.error('trackScreen: `screen` is required');\n return;\n }\n addBreadcrumb('trackScreen', { screen });\n retryInitIfFailed();\n try {\n refreshVisitor();\n await execute('trackScreen', { screen, options });\n }\n catch (error) {\n // Legacy only logged; never throw into the host app.\n console.error('Error tracking screen:', error);\n }\n}\nexport async function trackEvent(screenOrProps, eventArg, optionsArg) {\n const isString = typeof screenOrProps === 'string';\n const screen = isString ? screenOrProps : screenOrProps === null || screenOrProps === void 0 ? void 0 : screenOrProps.screen;\n const event = isString ? eventArg : screenOrProps === null || screenOrProps === void 0 ? void 0 : screenOrProps.event;\n if (!screen) {\n console.error('trackEvent: `screen` is required');\n return;\n }\n if (event == null) {\n console.error('trackEvent: `event` is required');\n return;\n }\n const options = resolveTrackOptions(isString ? optionsArg : screenOrProps.options);\n addBreadcrumb('trackEvent', { screen, event: Object.keys(event || {}).join(',') });\n retryInitIfFailed();\n try {\n await execute('trackEvent', { screen, event, options });\n }\n catch (error) {\n console.error('Error tracking event:', error);\n }\n}\n// Closes any open spotcheck and its button (screen changes the SDK can't detect).\nexport async function closeSpotChecks() {\n addBreadcrumb('closeSpotChecks', {});\n await execute('handleNavigationChange', { reason: 'close' });\n}\n//# sourceMappingURL=spotcheck.js.map","import { registerPlugin } from '@capacitor/core';\nconst SurveySparrowIonicPlugin = registerPlugin('SurveySparrowIonicPlugin');\nexport * from './definitions';\nexport { SurveySparrowIonicPlugin };\nexport * from './angular-ui/lib/public-api';\n//# sourceMappingURL=index.js.map"],"names":["__rest","this","__decorate","EventEmitter","Output","Directive","ElementRef","NgZone","Input","Component","ViewEncapsulation","NgIf","NgFor","NgStyle","NgSwitch","NgSwitchCase","forwardRef","ChangeDetectorRef","SpotCheck","inject","Router","isPlatformBrowser","PLATFORM_ID","GuardsCheckEnd","NavigationEnd","Device","Capacitor","registerPlugin"],"mappings":";;;IAAA;IACO,MAAM,KAAK,CAAC;IACnB,IAAI,WAAW,CAAC,KAAK,EAAE,OAAO,EAAE;IAChC,QAAQ,IAAI,CAAC,KAAK,GAAG,KAAK;IAC1B,QAAQ,IAAI,CAAC,OAAO,GAAG,OAAO;IAC9B,QAAQ,IAAI,CAAC,SAAS,GAAG,IAAI,GAAG,EAAE;IAClC,IAAI;IACJ,IAAI,QAAQ,GAAG;IACf,QAAQ,OAAO,IAAI,CAAC,KAAK;IACzB,IAAI;IACJ,IAAI,QAAQ,CAAC,MAAM,EAAE;IACrB,QAAQ,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,MAAM,CAAC;IACrD,QAAQ,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,QAAQ,KAAK;IAC7C,YAAY,IAAI;IAChB,gBAAgB,QAAQ,EAAE;IAC1B,YAAY;IACZ,YAAY,OAAO,KAAK,EAAE;IAC1B,gBAAgB,OAAO,CAAC,KAAK,CAAC,mCAAmC,EAAE,KAAK,CAAC;IACzE,YAAY;IACZ,QAAQ,CAAC,CAAC;IACV,IAAI;IACJ,IAAI,SAAS,CAAC,QAAQ,EAAE;IACxB,QAAQ,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,QAAQ,CAAC;IACpC,QAAQ,OAAO,MAAM;IACrB,YAAY,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,QAAQ,CAAC;IAC3C,QAAQ,CAAC;IACT,IAAI;IACJ;IACA;IACA,MAAM,qBAAqB,GAAG;IAC9B,IAAI,oBAAoB,EAAE,EAAE;IAC5B,IAAI,sBAAsB,E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;IAC/D,IAAI;IACJ,IAAI,OAAO,KAAK,EAAE;IAClB,QAAQ,OAAO,CAAC,KAAK,CAAC,uBAAuB,EAAE,KAAK,CAAC;IACrD,IAAI;IACJ;IACA;IACO,eAAe,eAAe,GAAG;IACxC,IAAI,aAAa,CAAC,iBAAiB,EAAE,EAAE,CAAC;IACxC,IAAI,MAAM,OAAO,CAAC,wBAAwB,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC;IAChE;;AChJK,UAAC,wBAAwB,GAAG0B,qBAAc,CAAC,0BAA0B;;;;;;;;;;;;","x_google_ignoreList":[4,5,6,7,8,9]}
1
+ {"version":3,"file":"plugin.js","sources":["esm/angular-ui/lib/spotchecks/state/store.js","esm/angular-ui/lib/spotchecks/helpers/version.js","esm/angular-ui/lib/spotchecks/helpers/sentry.js","esm/angular-ui/lib/spotchecks/helpers/storage.js","../node_modules/tslib/tslib.es6.mjs","../node_modules/rxjs/dist/esm5/internal/util/isFunction.js","../node_modules/rxjs/dist/esm5/internal/util/createErrorClass.js","../node_modules/rxjs/dist/esm5/internal/util/UnsubscriptionError.js","../node_modules/rxjs/dist/esm5/internal/util/arrRemove.js","../node_modules/rxjs/dist/esm5/internal/Subscription.js","esm/angular-ui/lib/spotchecks/helpers/listener.js","esm/angular-ui/lib/spotchecks/helpers/executables.js","esm/angular-ui/lib/spotchecks/helpers/survey-page.js","esm/angular-ui/lib/spotchecks/helpers/render.js","esm/angular-ui/lib/spotchecks/helpers/binding.js","esm/angular-ui/lib/spotchecks/components/builder.component.js","esm/angular-ui/lib/spotcheck.component.js","esm/angular-ui/lib/spotchecks/helpers/device.js","esm/angular-ui/lib/spotchecks/spotcheck.js","esm/index.js"],"sourcesContent":["// Minimal observable store; components re-render on every change.\nexport class Store {\n constructor(state, reducer) {\n this.state = state;\n this.reducer = reducer;\n this.listeners = new Set();\n }\n getState() {\n return this.state;\n }\n dispatch(update) {\n this.state = this.reducer(this.state, update);\n this.listeners.forEach((listener) => {\n try {\n listener();\n }\n catch (error) {\n console.error('[SpotCheck] store listener failed', error);\n }\n });\n }\n subscribe(listener) {\n this.listeners.add(listener);\n return () => {\n this.listeners.delete(listener);\n };\n }\n}\n// Same shape and merge rules as the other SDKs (backend functions read state.SpotCheckState).\nconst initialSpotcheckState = {\n allSpotChecksInToken: [],\n customEventsSpotChecks: [],\n filteredSpotChecks: [],\n showSpotCheck: false,\n currentSpotcheck: {\n spotcheckURL: '',\n spotcheckID: 0,\n spotcheckContactID: 0,\n triggerToken: '',\n screenName: '',\n afterDelay: 0,\n isChat: false,\n appearance: {},\n },\n params: {\n targetToken: '',\n domainName: '',\n userDetails: {},\n variables: {},\n customProperties: {},\n visitor: {},\n framework: 'ionic',\n userAgent: '',\n traceId: '',\n },\n spotCheckDetails: {\n keyBoardHeight: 0,\n textPosition: 0,\n isMounted: false,\n isVisible: false,\n isExiting: false,\n currentQuestionHeight: 0,\n miniCardHeight: 0,\n sideTabButtonWidth: 0,\n isFullScreenMode: false,\n spotCheckType: null,\n position: 'bottom',\n mode: '',\n closeButton: {\n isEnabled: false,\n color: '#000000',\n isMiniCard: false,\n },\n isSpotCheckButton: false,\n spotCheckButtonConfig: {},\n showSurveyContent: true,\n avatarEnabled: false,\n avatarUrl: '',\n isRTLLanguage: false,\n },\n webViewDetails: {\n isChatEnabled: false,\n isClassicEnabled: false,\n isClassicLoading: true,\n isChatLoading: true,\n chatUrl: null,\n classicUrl: null,\n isCurrentSpotcheckChat: null,\n canShowClassic: false,\n canShowChat: false,\n webViewInjectionData: null,\n chatWebViewRef: null,\n classicWebViewRef: null,\n },\n};\nconst NESTED_KEYS = ['currentSpotcheck', 'spotCheckDetails', 'webViewDetails', 'params'];\nconst spotcheckReducer = (state, update) => {\n const payload = update || {};\n const sc = state.SpotCheckState;\n const next = Object.assign(Object.assign({}, sc), payload);\n NESTED_KEYS.forEach((key) => {\n next[key] = Object.assign(Object.assign({}, sc[key]), (payload[key] || {}));\n });\n return { SpotCheckState: next };\n};\nexport const spotcheckStore = new Store({ SpotCheckState: initialSpotcheckState }, spotcheckReducer);\nexport const functionStore = new Store({ functionState: { isLoaded: false } }, (state, update) => ({ functionState: Object.assign(Object.assign({}, state.functionState), (update || {})) }));\nexport const componentStore = new Store({ componentState: { isLoaded: false, schemas: {} } }, (state, update) => ({ componentState: Object.assign(Object.assign({}, state.componentState), (update || {})) }));\n//# sourceMappingURL=store.js.map","// Keep in sync with package.json \"version\".\nexport const SDK_VERSION = '2.1.0';\nexport const FRAMEWORK = 'ionic';\n//# sourceMappingURL=version.js.map","// SDK errors go to SurveySparrow's API (backend sentry.processSentryError), never to Sentry servers.\nimport { spotcheckStore } from '../state/store';\nimport { SDK_VERSION, FRAMEWORK } from './version';\n// Set by executables.ts at load time (avoids a circular import).\nlet executeRef = null;\nexport const registerExecute = (fn) => {\n executeRef = fn;\n};\nconst MAX_BREADCRUMBS = 30;\nconst sdkBreadcrumbs = [];\nexport const addBreadcrumb = (message, data) => {\n sdkBreadcrumbs.push({ category: 'spotcheck', message, data, timestamp: Date.now() / 1000 });\n if (sdkBreadcrumbs.length > MAX_BREADCRUMBS)\n sdkBreadcrumbs.shift();\n};\nconst MAX_BREADCRUMB_STRING = 200;\nconst capString = (value) => value.slice(0, MAX_BREADCRUMB_STRING);\n// Breadcrumb hook for backend functions; drops bad input and never throws.\nexport const safeAddBreadcrumb = (message, data) => {\n try {\n if (typeof message !== 'string')\n return;\n let clean;\n const proto = data && typeof data === 'object' ? Object.getPrototypeOf(data) : undefined;\n if (proto === Object.prototype || proto === null) {\n clean = {};\n Object.keys(data).forEach((key) => {\n const value = data[key];\n if (typeof value === 'string')\n clean[key] = capString(value);\n else if (value === null || typeof value === 'number' || typeof value === 'boolean')\n clean[key] = value;\n });\n }\n addBreadcrumb(capString(message), clean);\n }\n catch (_a) { }\n};\n// Flags an error as reported so execute() does not report it again.\nconst markReported = (error) => {\n try {\n if (error !== null && typeof error === 'object') {\n Object.defineProperty(error, '__ssReported', { value: true, configurable: true });\n }\n }\n catch (_a) { }\n};\nexport const isReported = (error) => {\n try {\n return !!(error === null || error === void 0 ? void 0 : error.__ssReported);\n }\n catch (_a) {\n return false;\n }\n};\n// Routes an event to the backend; never throws.\nconst sendToBackend = async (normalizedEvent) => {\n var _a, _b;\n try {\n const result = executeRef\n ? await executeRef('sentry.processSentryError', {\n event: normalizedEvent,\n sdkType: FRAMEWORK,\n sdkVersion: SDK_VERSION,\n })\n : null;\n if (result)\n return;\n const { domainName, targetToken } = ((_a = spotcheckStore.getState().SpotCheckState) === null || _a === void 0 ? void 0 : _a.params) || {};\n if (!domainName)\n return;\n await fetch(`https://${domainName}/api/internal/spotcheck/sdkErrors`, {\n method: 'POST',\n headers: { 'Content-Type': 'application/json' },\n body: JSON.stringify({\n errorMessage: normalizedEvent.errorMessage,\n sdkType: FRAMEWORK,\n sdkVersion: SDK_VERSION,\n level: ((_b = normalizedEvent.tags) === null || _b === void 0 ? void 0 : _b.error_priority) === 'P0' ? 'fatal' : 'error',\n tags: normalizedEvent.tags,\n extra: normalizedEvent.extra,\n breadcrumbs: normalizedEvent.breadcrumbs,\n contexts: { user: { spotcheck_token: targetToken || '', spotcheck_domain_name: domainName } },\n }),\n }).catch(() => { });\n }\n catch (_c) {\n // Reporting must never break the host app.\n }\n};\nconst report = (error, priority, source, extra) => {\n markReported(error);\n const err = error;\n sendToBackend({\n errorMessage: (err === null || err === void 0 ? void 0 : err.message) || String(error),\n tags: {\n error_priority: priority,\n severity: priority === 'P0' ? 'CRITICAL' : 'HIGH',\n errorType: source,\n },\n contexts: {},\n extra: extra || {},\n breadcrumbs: [...sdkBreadcrumbs],\n exceptions: [{\n type: (err === null || err === void 0 ? void 0 : err.name) || 'Error',\n value: (err === null || err === void 0 ? void 0 : err.message) || String(error),\n stack: String((err === null || err === void 0 ? void 0 : err.stack) || '').slice(0, 2000),\n }],\n timestamp: Date.now() / 1000,\n platform: 'javascript',\n });\n};\nexport const captureP0Error = (error, source, extra) => report(error, 'P0', source, extra);\nexport const captureP1Error = (error, source, extra) => report(error, 'P1', source, extra);\n//# sourceMappingURL=sentry.js.map","import { captureP1Error } from './sentry';\n// Same key as the legacy Ionic SDK, so existing installs keep their visitor.\nconst UUID_KEY = 'SurveySparrowUUID';\nconst uuidV4 = () => {\n const c = typeof crypto !== 'undefined' ? crypto : null;\n if (c === null || c === void 0 ? void 0 : c.randomUUID)\n return c.randomUUID();\n const bytes = new Uint8Array(16);\n if (c === null || c === void 0 ? void 0 : c.getRandomValues)\n c.getRandomValues(bytes);\n else\n for (let i = 0; i < 16; i++)\n bytes[i] = Math.floor(Math.random() * 256);\n bytes[6] = (bytes[6] & 0x0f) | 0x40;\n bytes[8] = (bytes[8] & 0x3f) | 0x80;\n const hex = Array.from(bytes, (b) => b.toString(16).padStart(2, '0')).join('');\n return `${hex.slice(0, 8)}-${hex.slice(8, 12)}-${hex.slice(12, 16)}-${hex.slice(16, 20)}-${hex.slice(20)}`;\n};\nexport const generateTraceId = () => `${uuidV4()}-${Date.now()}`;\nexport const saveData = async (value) => {\n try {\n localStorage.setItem(UUID_KEY, value);\n }\n catch (error) {\n captureP1Error(error, 'GENERAL', { action: 'saveData', errorMessage: error === null || error === void 0 ? void 0 : error.message });\n }\n};\n// isuuid: a new trace id; otherwise the stored visitor UUID.\nexport const loadData = async (isuuid = false) => {\n try {\n if (isuuid)\n return generateTraceId();\n return localStorage.getItem(UUID_KEY) || null;\n }\n catch (error) {\n captureP1Error(error, 'GENERAL', { action: 'loadData', isuuid, errorMessage: error === null || error === void 0 ? void 0 : error.message });\n return null;\n }\n};\n//# sourceMappingURL=storage.js.map","/******************************************************************************\nCopyright (c) Microsoft Corporation.\n\nPermission to use, copy, modify, and/or distribute this software for any\npurpose with or without fee is hereby granted.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\nPERFORMANCE OF THIS SOFTWARE.\n***************************************************************************** */\n/* global Reflect, Promise, SuppressedError, Symbol, Iterator */\n\nvar extendStatics = function(d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n};\n\nexport function __extends(d, b) {\n if (typeof b !== \"function\" && b !== null)\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n}\n\nexport var __assign = function() {\n __assign = Object.assign || function __assign(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n }\n return t;\n }\n return __assign.apply(this, arguments);\n}\n\nexport function __rest(s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n}\n\nexport function __decorate(decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n}\n\nexport function __param(paramIndex, decorator) {\n return function (target, key) { decorator(target, key, paramIndex); }\n}\n\nexport function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {\n function accept(f) { if (f !== void 0 && typeof f !== \"function\") throw new TypeError(\"Function expected\"); return f; }\n var kind = contextIn.kind, key = kind === \"getter\" ? \"get\" : kind === \"setter\" ? \"set\" : \"value\";\n var target = !descriptorIn && ctor ? contextIn[\"static\"] ? ctor : ctor.prototype : null;\n var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});\n var _, done = false;\n for (var i = decorators.length - 1; i >= 0; i--) {\n var context = {};\n for (var p in contextIn) context[p] = p === \"access\" ? {} : contextIn[p];\n for (var p in contextIn.access) context.access[p] = contextIn.access[p];\n context.addInitializer = function (f) { if (done) throw new TypeError(\"Cannot add initializers after decoration has completed\"); extraInitializers.push(accept(f || null)); };\n var result = (0, decorators[i])(kind === \"accessor\" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);\n if (kind === \"accessor\") {\n if (result === void 0) continue;\n if (result === null || typeof result !== \"object\") throw new TypeError(\"Object expected\");\n if (_ = accept(result.get)) descriptor.get = _;\n if (_ = accept(result.set)) descriptor.set = _;\n if (_ = accept(result.init)) initializers.unshift(_);\n }\n else if (_ = accept(result)) {\n if (kind === \"field\") initializers.unshift(_);\n else descriptor[key] = _;\n }\n }\n if (target) Object.defineProperty(target, contextIn.name, descriptor);\n done = true;\n};\n\nexport function __runInitializers(thisArg, initializers, value) {\n var useValue = arguments.length > 2;\n for (var i = 0; i < initializers.length; i++) {\n value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);\n }\n return useValue ? value : void 0;\n};\n\nexport function __propKey(x) {\n return typeof x === \"symbol\" ? x : \"\".concat(x);\n};\n\nexport function __setFunctionName(f, name, prefix) {\n if (typeof name === \"symbol\") name = name.description ? \"[\".concat(name.description, \"]\") : \"\";\n return Object.defineProperty(f, \"name\", { configurable: true, value: prefix ? \"\".concat(prefix, \" \", name) : name });\n};\n\nexport function __metadata(metadataKey, metadataValue) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\n}\n\nexport function __awaiter(thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n}\n\nexport function __generator(thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === \"function\" ? Iterator : Object).prototype);\n return g.next = verb(0), g[\"throw\"] = verb(1), g[\"return\"] = verb(2), typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while (g && (g = 0, op[0] && (_ = 0)), _) try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n}\n\nexport var __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});\n\nexport function __exportStar(m, o) {\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\n}\n\nexport function __values(o) {\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\n if (m) return m.call(o);\n if (o && typeof o.length === \"number\") return {\n next: function () {\n if (o && i >= o.length) o = void 0;\n return { value: o && o[i++], done: !o };\n }\n };\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\n}\n\nexport function __read(o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n}\n\n/** @deprecated */\nexport function __spread() {\n for (var ar = [], i = 0; i < arguments.length; i++)\n ar = ar.concat(__read(arguments[i]));\n return ar;\n}\n\n/** @deprecated */\nexport function __spreadArrays() {\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\n r[k] = a[j];\n return r;\n}\n\nexport function __spreadArray(to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n}\n\nexport function __await(v) {\n return this instanceof __await ? (this.v = v, this) : new __await(v);\n}\n\nexport function __asyncGenerator(thisArg, _arguments, generator) {\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\n return i = Object.create((typeof AsyncIterator === \"function\" ? AsyncIterator : Object).prototype), verb(\"next\"), verb(\"throw\"), verb(\"return\", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;\n function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }\n function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } }\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\n function fulfill(value) { resume(\"next\", value); }\n function reject(value) { resume(\"throw\", value); }\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\n}\n\nexport function __asyncDelegator(o) {\n var i, p;\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }\n}\n\nexport function __asyncValues(o) {\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\n var m = o[Symbol.asyncIterator], i;\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\n}\n\nexport function __makeTemplateObject(cooked, raw) {\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\n return cooked;\n};\n\nvar __setModuleDefault = Object.create ? (function(o, v) {\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n o[\"default\"] = v;\n};\n\nvar ownKeys = function(o) {\n ownKeys = Object.getOwnPropertyNames || function (o) {\n var ar = [];\n for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;\n return ar;\n };\n return ownKeys(o);\n};\n\nexport function __importStar(mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== \"default\") __createBinding(result, mod, k[i]);\n __setModuleDefault(result, mod);\n return result;\n}\n\nexport function __importDefault(mod) {\n return (mod && mod.__esModule) ? mod : { default: mod };\n}\n\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\n}\n\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\n}\n\nexport function __classPrivateFieldIn(state, receiver) {\n if (receiver === null || (typeof receiver !== \"object\" && typeof receiver !== \"function\")) throw new TypeError(\"Cannot use 'in' operator on non-object\");\n return typeof state === \"function\" ? receiver === state : state.has(receiver);\n}\n\nexport function __addDisposableResource(env, value, async) {\n if (value !== null && value !== void 0) {\n if (typeof value !== \"object\" && typeof value !== \"function\") throw new TypeError(\"Object expected.\");\n var dispose, inner;\n if (async) {\n if (!Symbol.asyncDispose) throw new TypeError(\"Symbol.asyncDispose is not defined.\");\n dispose = value[Symbol.asyncDispose];\n }\n if (dispose === void 0) {\n if (!Symbol.dispose) throw new TypeError(\"Symbol.dispose is not defined.\");\n dispose = value[Symbol.dispose];\n if (async) inner = dispose;\n }\n if (typeof dispose !== \"function\") throw new TypeError(\"Object not disposable.\");\n if (inner) dispose = function() { try { inner.call(this); } catch (e) { return Promise.reject(e); } };\n env.stack.push({ value: value, dispose: dispose, async: async });\n }\n else if (async) {\n env.stack.push({ async: true });\n }\n return value;\n}\n\nvar _SuppressedError = typeof SuppressedError === \"function\" ? SuppressedError : function (error, suppressed, message) {\n var e = new Error(message);\n return e.name = \"SuppressedError\", e.error = error, e.suppressed = suppressed, e;\n};\n\nexport function __disposeResources(env) {\n function fail(e) {\n env.error = env.hasError ? new _SuppressedError(e, env.error, \"An error was suppressed during disposal.\") : e;\n env.hasError = true;\n }\n var r, s = 0;\n function next() {\n while (r = env.stack.pop()) {\n try {\n if (!r.async && s === 1) return s = 0, env.stack.push(r), Promise.resolve().then(next);\n if (r.dispose) {\n var result = r.dispose.call(r.value);\n if (r.async) return s |= 2, Promise.resolve(result).then(next, function(e) { fail(e); return next(); });\n }\n else s |= 1;\n }\n catch (e) {\n fail(e);\n }\n }\n if (s === 1) return env.hasError ? Promise.reject(env.error) : Promise.resolve();\n if (env.hasError) throw env.error;\n }\n return next();\n}\n\nexport function __rewriteRelativeImportExtension(path, preserveJsx) {\n if (typeof path === \"string\" && /^\\.\\.?\\//.test(path)) {\n return path.replace(/\\.(tsx)$|((?:\\.d)?)((?:\\.[^./]+?)?)\\.([cm]?)ts$/i, function (m, tsx, d, ext, cm) {\n return tsx ? preserveJsx ? \".jsx\" : \".js\" : d && (!ext || !cm) ? m : (d + ext + \".\" + cm.toLowerCase() + \"js\");\n });\n }\n return path;\n}\n\nexport default {\n __extends,\n __assign,\n __rest,\n __decorate,\n __param,\n __esDecorate,\n __runInitializers,\n __propKey,\n __setFunctionName,\n __metadata,\n __awaiter,\n __generator,\n __createBinding,\n __exportStar,\n __values,\n __read,\n __spread,\n __spreadArrays,\n __spreadArray,\n __await,\n __asyncGenerator,\n __asyncDelegator,\n __asyncValues,\n __makeTemplateObject,\n __importStar,\n __importDefault,\n __classPrivateFieldGet,\n __classPrivateFieldSet,\n __classPrivateFieldIn,\n __addDisposableResource,\n __disposeResources,\n __rewriteRelativeImportExtension,\n};\n","export function isFunction(value) {\n return typeof value === 'function';\n}\n//# sourceMappingURL=isFunction.js.map","export function createErrorClass(createImpl) {\n var _super = function (instance) {\n Error.call(instance);\n instance.stack = new Error().stack;\n };\n var ctorFunc = createImpl(_super);\n ctorFunc.prototype = Object.create(Error.prototype);\n ctorFunc.prototype.constructor = ctorFunc;\n return ctorFunc;\n}\n//# sourceMappingURL=createErrorClass.js.map","import { createErrorClass } from './createErrorClass';\nexport var UnsubscriptionError = createErrorClass(function (_super) {\n return function UnsubscriptionErrorImpl(errors) {\n _super(this);\n this.message = errors\n ? errors.length + \" errors occurred during unsubscription:\\n\" + errors.map(function (err, i) { return i + 1 + \") \" + err.toString(); }).join('\\n ')\n : '';\n this.name = 'UnsubscriptionError';\n this.errors = errors;\n };\n});\n//# sourceMappingURL=UnsubscriptionError.js.map","export function arrRemove(arr, item) {\n if (arr) {\n var index = arr.indexOf(item);\n 0 <= index && arr.splice(index, 1);\n }\n}\n//# sourceMappingURL=arrRemove.js.map","import { __read, __spreadArray, __values } from \"tslib\";\nimport { isFunction } from './util/isFunction';\nimport { UnsubscriptionError } from './util/UnsubscriptionError';\nimport { arrRemove } from './util/arrRemove';\nvar Subscription = (function () {\n function Subscription(initialTeardown) {\n this.initialTeardown = initialTeardown;\n this.closed = false;\n this._parentage = null;\n this._finalizers = null;\n }\n Subscription.prototype.unsubscribe = function () {\n var e_1, _a, e_2, _b;\n var errors;\n if (!this.closed) {\n this.closed = true;\n var _parentage = this._parentage;\n if (_parentage) {\n this._parentage = null;\n if (Array.isArray(_parentage)) {\n try {\n for (var _parentage_1 = __values(_parentage), _parentage_1_1 = _parentage_1.next(); !_parentage_1_1.done; _parentage_1_1 = _parentage_1.next()) {\n var parent_1 = _parentage_1_1.value;\n parent_1.remove(this);\n }\n }\n catch (e_1_1) { e_1 = { error: e_1_1 }; }\n finally {\n try {\n if (_parentage_1_1 && !_parentage_1_1.done && (_a = _parentage_1.return)) _a.call(_parentage_1);\n }\n finally { if (e_1) throw e_1.error; }\n }\n }\n else {\n _parentage.remove(this);\n }\n }\n var initialFinalizer = this.initialTeardown;\n if (isFunction(initialFinalizer)) {\n try {\n initialFinalizer();\n }\n catch (e) {\n errors = e instanceof UnsubscriptionError ? e.errors : [e];\n }\n }\n var _finalizers = this._finalizers;\n if (_finalizers) {\n this._finalizers = null;\n try {\n for (var _finalizers_1 = __values(_finalizers), _finalizers_1_1 = _finalizers_1.next(); !_finalizers_1_1.done; _finalizers_1_1 = _finalizers_1.next()) {\n var finalizer = _finalizers_1_1.value;\n try {\n execFinalizer(finalizer);\n }\n catch (err) {\n errors = errors !== null && errors !== void 0 ? errors : [];\n if (err instanceof UnsubscriptionError) {\n errors = __spreadArray(__spreadArray([], __read(errors)), __read(err.errors));\n }\n else {\n errors.push(err);\n }\n }\n }\n }\n catch (e_2_1) { e_2 = { error: e_2_1 }; }\n finally {\n try {\n if (_finalizers_1_1 && !_finalizers_1_1.done && (_b = _finalizers_1.return)) _b.call(_finalizers_1);\n }\n finally { if (e_2) throw e_2.error; }\n }\n }\n if (errors) {\n throw new UnsubscriptionError(errors);\n }\n }\n };\n Subscription.prototype.add = function (teardown) {\n var _a;\n if (teardown && teardown !== this) {\n if (this.closed) {\n execFinalizer(teardown);\n }\n else {\n if (teardown instanceof Subscription) {\n if (teardown.closed || teardown._hasParent(this)) {\n return;\n }\n teardown._addParent(this);\n }\n (this._finalizers = (_a = this._finalizers) !== null && _a !== void 0 ? _a : []).push(teardown);\n }\n }\n };\n Subscription.prototype._hasParent = function (parent) {\n var _parentage = this._parentage;\n return _parentage === parent || (Array.isArray(_parentage) && _parentage.includes(parent));\n };\n Subscription.prototype._addParent = function (parent) {\n var _parentage = this._parentage;\n this._parentage = Array.isArray(_parentage) ? (_parentage.push(parent), _parentage) : _parentage ? [_parentage, parent] : parent;\n };\n Subscription.prototype._removeParent = function (parent) {\n var _parentage = this._parentage;\n if (_parentage === parent) {\n this._parentage = null;\n }\n else if (Array.isArray(_parentage)) {\n arrRemove(_parentage, parent);\n }\n };\n Subscription.prototype.remove = function (teardown) {\n var _finalizers = this._finalizers;\n _finalizers && arrRemove(_finalizers, teardown);\n if (teardown instanceof Subscription) {\n teardown._removeParent(this);\n }\n };\n Subscription.EMPTY = (function () {\n var empty = new Subscription();\n empty.closed = true;\n return empty;\n })();\n return Subscription;\n}());\nexport { Subscription };\nexport var EMPTY_SUBSCRIPTION = Subscription.EMPTY;\nexport function isSubscription(value) {\n return (value instanceof Subscription ||\n (value && 'closed' in value && isFunction(value.remove) && isFunction(value.add) && isFunction(value.unsubscribe)));\n}\nfunction execFinalizer(finalizer) {\n if (isFunction(finalizer)) {\n finalizer();\n }\n else {\n finalizer.unsubscribe();\n }\n}\n//# sourceMappingURL=Subscription.js.map","import { Subscription } from 'rxjs';\nconst legacyCallbacks = new Map();\nconst emit = (type, data) => {\n var _a;\n (_a = legacyCallbacks.get(type)) === null || _a === void 0 ? void 0 : _a.forEach((callback) => {\n try {\n runInApp(() => callback(data));\n }\n catch (error) {\n console.error(`[SpotCheck] ${type} listener failed`, error);\n }\n });\n};\n// Returns an RxJS Subscription, as the legacy SDK did.\nexport const addSpotCheckListener = (eventType, callback) => {\n if (!legacyCallbacks.has(eventType))\n legacyCallbacks.set(eventType, new Set());\n legacyCallbacks.get(eventType).add(callback);\n return new Subscription(() => {\n var _a;\n (_a = legacyCallbacks.get(eventType)) === null || _a === void 0 ? void 0 : _a.delete(callback);\n });\n};\nlet appListener = {};\n// Set by <SpotCheck>: runs app callbacks inside the Angular zone.\nlet runInApp = (fn) => fn();\nexport const setAppRunner = (runner) => {\n runInApp = runner;\n};\nexport const setListener = (listener) => {\n appListener = listener || {};\n};\n// What backend functions call: the app's listener first, then the legacy events.\nexport const sdkListener = {\n onSurveyLoaded: async (data) => {\n var _a;\n await runInApp(() => { var _a; return (_a = appListener.onSurveyLoaded) === null || _a === void 0 ? void 0 : _a.call(appListener, data); });\n // 2.0.3 passed surveyDetails.\n emit('surveyLoadStarted', (_a = data === null || data === void 0 ? void 0 : data['surveyDetails']) !== null && _a !== void 0 ? _a : data);\n },\n onSurveyResponse: async (data) => {\n var _a;\n await runInApp(() => { var _a; return (_a = appListener.onSurveyResponse) === null || _a === void 0 ? void 0 : _a.call(appListener, data); });\n // Legacy Ionic passed the response array.\n emit('surveyCompleted', (_a = data === null || data === void 0 ? void 0 : data['response']) !== null && _a !== void 0 ? _a : data);\n },\n onPartialSubmission: async (data) => {\n await runInApp(() => { var _a; return (_a = appListener.onPartialSubmission) === null || _a === void 0 ? void 0 : _a.call(appListener, data); });\n },\n onCloseButtonTap: async () => {\n await runInApp(() => { var _a; return (_a = appListener.onCloseButtonTap) === null || _a === void 0 ? void 0 : _a.call(appListener); });\n emit('surveyDismissed');\n },\n};\n//# sourceMappingURL=listener.js.map","import { functionStore, spotcheckStore } from '../state/store';\nimport { saveData, loadData } from './storage';\nimport { sdkListener } from './listener';\nimport { captureP0Error, captureP1Error, addBreadcrumb, safeAddBreadcrumb, isReported, registerExecute } from './sentry';\nimport { SDK_VERSION } from './version';\nexport const dispatchWrapper = (stateUpdate) => {\n try {\n spotcheckStore.dispatch(stateUpdate);\n }\n catch (error) {\n captureP1Error(error, 'GENERAL', { action: 'dispatchWrapper', errorMessage: error === null || error === void 0 ? void 0 : error.message });\n }\n};\nconst pendingExecutes = [];\nconst MAX_PENDING_EXECUTES = 20;\nconst isTrackScreenOrEvent = (functionName) => functionName === 'trackScreen' || functionName === 'trackEvent';\nconst flushPendingExecutes = async () => {\n while (pendingExecutes.length > 0) {\n const item = pendingExecutes.shift();\n if (item)\n await execute(item.functionName, item.params);\n }\n};\n// Track calls wait until initializeSpotcheckComponent has finished.\nlet isInitialized = false;\nexport const markInitialized = async () => {\n isInitialized = true;\n await flushPendingExecutes();\n};\n// Reporting failures are not reported again (avoids loops).\nconst isSentryFunction = (functionName) => functionName.startsWith('sentry.');\n// Style getters run on every render; they would push useful breadcrumbs out.\nconst isBreadcrumbWorthy = (functionName) => !isSentryFunction(functionName) && !/\\.get\\w*Styles$/.test(functionName);\n// Message type only; never survey content.\nconst describeParams = (functionName, params) => {\n var _a, _b, _c;\n if (functionName !== 'webviewComponent.handleWebViewMessage')\n return {};\n try {\n return { messageType: (_c = JSON.parse((_b = (_a = params === null || params === void 0 ? void 0 : params.event) === null || _a === void 0 ? void 0 : _a.nativeEvent) === null || _b === void 0 ? void 0 : _b.data)) === null || _c === void 0 ? void 0 : _c.type };\n }\n catch (_d) {\n return {};\n }\n};\nconst lookup = (functionName) => {\n let current = functionStore.getState().functionState;\n for (const part of functionName.split('.'))\n current = current === null || current === void 0 ? void 0 : current[part];\n return current;\n};\n// True when the backend sent this function (dotted path), e.g. for schema `$execute`.\nexport const hasFunction = (functionName) => typeof lookup(functionName) === 'string';\n// The SDK has no native keyboard mode to change; the overlay follows the keyboard instead.\nconst keyboard = {\n pauseDefaultKeyboardBehavior: () => { },\n resumeDefaultKeyboardBehavior: () => { },\n};\nexport const execute = async (functionName, params) => {\n let func;\n let payload;\n try {\n if (isTrackScreenOrEvent(functionName) && !isInitialized) {\n pendingExecutes.push({ functionName, params });\n // Cap the queue while init keeps failing; oldest calls go first.\n if (pendingExecutes.length > MAX_PENDING_EXECUTES)\n pendingExecutes.shift();\n return null;\n }\n if (!functionStore.getState().functionState.isLoaded)\n return null;\n const functionString = lookup(functionName);\n if (!functionString || typeof functionString !== 'string') {\n console.error(`Function ${functionName} not found`);\n return null;\n }\n payload = {\n params: Object.assign(Object.assign({}, params), { sdkVersion: SDK_VERSION }),\n state: spotcheckStore.getState(),\n dispatchWrapper,\n storage: { saveData, loadData },\n listener: sdkListener,\n sentry: { captureP0Error, captureP1Error, addBreadcrumb: safeAddBreadcrumb },\n keyboard,\n };\n // Fresh evaluation per call like the other SDKs; indirect eval keeps it in global scope.\n func = (0, eval)(`(${functionString})`);\n if (isBreadcrumbWorthy(functionName)) {\n addBreadcrumb('execute', Object.assign({ functionName }, describeParams(functionName, params)));\n }\n }\n catch (error) {\n if (isSentryFunction(functionName))\n return null;\n captureP1Error(error, 'GENERAL', { action: 'execute:setup', functionName, errorMessage: error === null || error === void 0 ? void 0 : error.message });\n return null;\n }\n try {\n return await func(payload);\n }\n catch (error) {\n if (isSentryFunction(functionName))\n return null;\n // Skip when the function already reported this error itself.\n if (!isReported(error)) {\n captureP1Error(error, 'GENERAL', { action: 'execute:runtime', functionName, errorMessage: error === null || error === void 0 ? void 0 : error.message });\n }\n console.error(`[execute] ${functionName}:`, error);\n return null;\n }\n};\nregisterExecute(execute);\n//# sourceMappingURL=executables.js.map","// Loads the survey page from its own domain in a separate-origin iframe (as in 2.0.3), so the\n// page can never reach the host app. The SDK and the page talk only through postMessage.\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\n// Runs a backend injection with a stand-in window and keeps only the messages it dispatches.\n// Scripts that touch the page DOM (CSS, re-measure) cannot cross origins and are dropped, as in 2.0.3.\nconst messagesFromScript = (script) => {\n const messages = [];\n const pageWindow = {\n dispatchEvent: (event) => {\n if ((event === null || event === void 0 ? void 0 : event.data) != null)\n messages.push(event.data);\n return true;\n },\n };\n class PageMessageEvent {\n constructor(type, init) {\n this.type = type;\n this.data = init === null || init === void 0 ? void 0 : init.data;\n }\n }\n try {\n // The host globals are shadowed so a DOM script fails here instead of touching the app.\n new Function('window', 'MessageEvent', 'document', 'self', 'globalThis', 'parent', 'top', script)(pageWindow, PageMessageEvent, undefined, pageWindow, pageWindow, pageWindow, pageWindow);\n }\n catch (_a) {\n // DOM-only script: nothing to send.\n }\n return messages;\n};\n// Same list as the survey page (rtls).\nconst RTL_LANGUAGES = ['ar', 'he', 'fa', 'ps', 'ur'];\n// The web page sends its fields at the top level; the backend reads the RN/Expo shape { type, data }.\nconst toBackendMessage = (message) => {\n var _a;\n if (!message || typeof message !== 'object' || typeof message.type !== 'string')\n return null;\n if (message.type === 'resizeWindow') {\n const height = (_a = message.size) === null || _a === void 0 ? void 0 : _a.height;\n return typeof height === 'number' ? { type: 'spotCheckData', data: { currentQuestionSize: { height } } } : null;\n }\n if ('data' in message)\n return message;\n const { type } = message, data = __rest(message, [\"type\"]);\n // The web languageChanged has only the code; add isRtl from the page's own RTL list.\n if (type === 'languageChanged' && typeof data.code === 'string') {\n data.isRtl = RTL_LANGUAGES.includes(data.code.split(/[-_]/)[0].toLowerCase());\n }\n return { type, data };\n};\nexport class SurveyPage {\n constructor(host, callbacks) {\n this.callbacks = callbacks;\n this.uri = '';\n this.origin = '';\n this.loadSeq = 0;\n this.onWindowMessage = (event) => {\n // Only the survey page in this iframe, from the survey domain.\n if (event.source !== this.iframe.contentWindow || event.origin !== this.origin)\n return;\n const message = toBackendMessage(event.data);\n if (message)\n this.callbacks.onMessage(JSON.stringify(message));\n };\n // Same contract as the RN WebView ref the backend functions call; messages go by postMessage.\n this.injectJavaScript = (script) => {\n const win = this.iframe.contentWindow;\n if (!win || !this.origin)\n return false;\n const messages = messagesFromScript(script);\n messages.forEach((data) => {\n var _a, _b;\n win.postMessage(data, this.origin);\n // 2.0.3 sent the theme right after the survey state; the web page needs it to apply survey colours.\n const themeInfo = (data === null || data === void 0 ? void 0 : data.type) === 'RESET_STATE' ? (_b = (_a = data.state) === null || _a === void 0 ? void 0 : _a.config) === null || _b === void 0 ? void 0 : _b.generatedCSS : null;\n if (themeInfo)\n win.postMessage({ type: 'THEME_UPDATE_SPOTCHECK', themeInfo }, this.origin);\n });\n return messages.length > 0;\n };\n this.iframe = document.createElement('iframe');\n this.iframe.setAttribute('title', 'Survey');\n this.iframe.setAttribute('allow', 'camera; microphone; geolocation; display-capture; autoplay; clipboard-read; clipboard-write; fullscreen');\n this.iframe.setAttribute('allowfullscreen', '');\n this.iframe.style.cssText = 'display:block;width:100%;height:100%;border:0;background:transparent;';\n host.appendChild(this.iframe);\n window.addEventListener('message', this.onWindowMessage);\n }\n load(uri) {\n if (!uri || uri === this.uri)\n return;\n this.uri = uri;\n this.origin = new URL(uri).origin;\n const seq = ++this.loadSeq;\n // A cross-origin iframe hides HTTP errors, so check the page first to report a failed load.\n fetch(uri, { credentials: 'omit' })\n .then((response) => {\n if (!response.ok)\n throw new Error(`Survey page failed with status ${response.status}`);\n if (seq === this.loadSeq)\n this.iframe.src = uri;\n })\n .catch((error) => {\n if (seq !== this.loadSeq)\n return;\n // A later load() with the same uri retries.\n this.uri = '';\n const description = (error === null || error === void 0 ? void 0 : error.message) || String(error);\n // message: readable text for the Sentry report (the RN event shape has none).\n this.callbacks.onError({ nativeEvent: { url: uri, description }, message: description });\n });\n }\n destroy() {\n this.loadSeq++;\n window.removeEventListener('message', this.onWindowMessage);\n this.iframe.remove();\n }\n}\n//# sourceMappingURL=survey-page.js.map","import { captureP0Error } from './sentry';\n// Render guard, like RN's error boundary: a failed draw hides SpotCheck, the app keeps running,\n// and it is reported once as APP_CRASH.\nlet crashed = false;\nconst crashListeners = new Set();\nexport const hasCrashed = () => crashed;\nexport const onCrash = (listener) => {\n crashListeners.add(listener);\n return () => {\n crashListeners.delete(listener);\n };\n};\nexport const guardedDetectChanges = (cdr, action) => {\n if (crashed)\n return;\n try {\n cdr.detectChanges();\n }\n catch (error) {\n crashed = true;\n captureP0Error(error, 'APP_CRASH', { action, errorMessage: error === null || error === void 0 ? void 0 : error.message });\n crashListeners.forEach((listener) => {\n try {\n listener();\n }\n catch (_a) { }\n });\n }\n};\n// Runs fn once per microtask however often it is requested (many dispatches, one render).\nexport const batched = (fn) => {\n let queued = false;\n return () => {\n if (queued)\n return;\n queued = true;\n queueMicrotask(() => {\n queued = false;\n fn();\n });\n };\n};\n//# sourceMappingURL=render.js.map","import { captureP1Error } from './sentry';\nimport { execute, hasFunction } from './executables';\n// Same binding rules as the other SDKs' Builder.\nconst evaluateExpression = (expr, context) => {\n try {\n const safeContext = { state: context.state, styles: context.styles, Math };\n const func = new Function(...Object.keys(safeContext), `return ${expr}`);\n return func(...Object.values(safeContext));\n }\n catch (error) {\n captureP1Error(error, 'GENERAL', {\n action: 'evaluateExpression',\n expression: expr === null || expr === void 0 ? void 0 : expr.substring(0, 200),\n errorMessage: error === null || error === void 0 ? void 0 : error.message,\n });\n return undefined;\n }\n};\nconst readPath = (root, path) => {\n let result = root;\n for (const key of path.split('.'))\n result = result === null || result === void 0 ? void 0 : result[key];\n return result;\n};\nexport const resolveBinding = (value, context) => {\n if (!value || typeof value !== 'object')\n return value;\n if (Array.isArray(value))\n return value.map((item) => resolveBinding(item, context));\n if (value.$expr)\n return evaluateExpression(value.$expr, context);\n if (value.$ref)\n return readPath(context, value.$ref);\n if (value.$path)\n return readPath(context.state, value.$path);\n if (value.$handler && context.handlers)\n return context.handlers[value.$handler];\n // Generic action: `{ $execute: 'group.fn', args: {...} }` runs a backend function; unknown names do nothing.\n if (typeof value.$execute === 'string') {\n const functionName = value.$execute;\n const args = value.args && typeof value.args === 'object' ? value.args : {};\n return (event) => {\n if (!functionName || !hasFunction(functionName))\n return;\n const nativeEvent = event === null || event === void 0 ? void 0 : event.nativeEvent;\n const eventData = nativeEvent && typeof nativeEvent === 'object' ? Object.assign({}, nativeEvent) : undefined;\n execute(functionName, eventData ? Object.assign(Object.assign({}, args), { event: eventData }) : Object.assign({}, args)).catch(() => { });\n };\n }\n if (Array.isArray(value.$handlers) && context.handlers) {\n return (...args) => {\n value.$handlers.forEach((name) => { var _a, _b; return (_b = (_a = context.handlers) === null || _a === void 0 ? void 0 : _a[name]) === null || _b === void 0 ? void 0 : _b.call(_a, ...args); });\n };\n }\n const resolved = {};\n for (const key in value)\n resolved[key] = resolveBinding(value[key], context);\n return resolved;\n};\nconst pair = (cond, op, context) => cond[op].map((val) => resolveBinding(val, context));\nexport const evaluateCondition = (condition, context) => {\n if (!condition)\n return true;\n if (typeof condition === 'object' && !Array.isArray(condition)) {\n if (Array.isArray(condition.$and))\n return condition.$and.every((c) => evaluateCondition(c, context));\n if (Array.isArray(condition.$or))\n return condition.$or.some((c) => evaluateCondition(c, context));\n if (condition.$not !== undefined)\n return !evaluateCondition(condition.$not, context);\n if (Array.isArray(condition.$eq) && condition.$eq.length === 2) {\n const [l, r] = pair(condition, '$eq', context);\n return l === r;\n }\n if (Array.isArray(condition.$ne) && condition.$ne.length === 2) {\n const [l, r] = pair(condition, '$ne', context);\n return l !== r;\n }\n if (Array.isArray(condition.$gt) && condition.$gt.length === 2) {\n const [l, r] = pair(condition, '$gt', context);\n return l > r;\n }\n if (Array.isArray(condition.$lt) && condition.$lt.length === 2) {\n const [l, r] = pair(condition, '$lt', context);\n return l < r;\n }\n }\n return Boolean(resolveBinding(condition, context));\n};\n// CSS properties that take plain numbers; every other number is px.\nconst UNITLESS = new Set([\n 'opacity', 'zIndex', 'flex', 'flexGrow', 'flexShrink', 'fontWeight', 'order', 'aspectRatio', 'scale',\n]);\n// Backend styles are CSS objects with camelCase keys.\nexport const toCss = (style) => {\n if (!style || typeof style !== 'object' || Array.isArray(style))\n return null;\n const css = {};\n for (const key of Object.keys(style)) {\n const value = style[key];\n if (value == null || typeof value === 'object')\n continue;\n css[key] = typeof value === 'number' && !UNITLESS.has(key) ? `${value}px` : String(value);\n }\n return css;\n};\n//# sourceMappingURL=binding.js.map","var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata = (this && this.__metadata) || function (k, v) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\n};\nimport { ChangeDetectorRef, Component, Directive, ElementRef, EventEmitter, Input, NgZone, Output, ViewEncapsulation, forwardRef, } from '@angular/core';\nimport { NgFor, NgIf, NgStyle, NgSwitch, NgSwitchCase } from '@angular/common';\nimport { componentStore, spotcheckStore } from '../state/store';\nimport { execute } from '../helpers/executables';\nimport { SurveyPage } from '../helpers/survey-page';\nimport { batched, guardedDetectChanges } from '../helpers/render';\nimport { evaluateCondition, resolveBinding, toCss, } from '../helpers/binding';\n// Reports the element's untransformed width like RN onLayout ({ nativeEvent: { layout } }).\nlet LayoutDirective = class LayoutDirective {\n constructor(el, zone) {\n this.el = el;\n this.zone = zone;\n this.ssLayout = new EventEmitter();\n this.last = '';\n }\n ngOnInit() {\n if (typeof ResizeObserver === 'undefined')\n return;\n this.zone.runOutsideAngular(() => {\n this.observer = new ResizeObserver(() => {\n const node = this.el.nativeElement;\n const layout = { x: node.offsetLeft, y: node.offsetTop, width: node.offsetWidth, height: node.offsetHeight };\n const key = `${layout.width}x${layout.height}`;\n if (key === this.last)\n return;\n this.last = key;\n this.ssLayout.emit({ nativeEvent: { layout } });\n });\n this.observer.observe(this.el.nativeElement);\n });\n }\n ngOnDestroy() {\n var _a;\n (_a = this.observer) === null || _a === void 0 ? void 0 : _a.disconnect();\n }\n};\n__decorate([\n Output(),\n __metadata(\"design:type\", Object)\n], LayoutDirective.prototype, \"ssLayout\", void 0);\nLayoutDirective = __decorate([\n Directive({ selector: '[ssLayout]', standalone: true }),\n __metadata(\"design:paramtypes\", [ElementRef, NgZone])\n], LayoutDirective);\nexport { LayoutDirective };\n// Hosts one survey page; mirrors the RN WebViewRenderer (hidden pages stay 1x1 off-screen and keep loading).\nlet WebViewRendererComponent = class WebViewRendererComponent {\n constructor(el) {\n this.el = el;\n this.uri = '';\n this.canShow = false;\n this.hostStyle = '';\n }\n ngOnChanges() {\n var _a;\n this.hostStyle = this.canShow\n ? 'display:block;position:relative;width:100%;height:100%;'\n : 'display:block;position:absolute;left:-1000px;top:0;width:1px;height:1px;opacity:0;overflow:hidden;';\n if (!this.uri)\n return;\n if (!this.page) {\n this.page = new SurveyPage(this.el.nativeElement, {\n onMessage: (data) => { var _a; return (_a = this.onMessage) === null || _a === void 0 ? void 0 : _a.call(this, { nativeEvent: { data } }); },\n onError: (error) => { var _a; return (_a = this.onError) === null || _a === void 0 ? void 0 : _a.call(this, error); },\n });\n (_a = this.refCallback) === null || _a === void 0 ? void 0 : _a.call(this, this.page);\n }\n this.page.load(this.uri);\n }\n ngOnDestroy() {\n var _a, _b;\n (_a = this.refCallback) === null || _a === void 0 ? void 0 : _a.call(this, null);\n (_b = this.page) === null || _b === void 0 ? void 0 : _b.destroy();\n }\n};\n__decorate([\n Input(),\n __metadata(\"design:type\", Object)\n], WebViewRendererComponent.prototype, \"uri\", void 0);\n__decorate([\n Input(),\n __metadata(\"design:type\", Object)\n], WebViewRendererComponent.prototype, \"canShow\", void 0);\n__decorate([\n Input(),\n __metadata(\"design:type\", Function)\n], WebViewRendererComponent.prototype, \"onMessage\", void 0);\n__decorate([\n Input(),\n __metadata(\"design:type\", Function)\n], WebViewRendererComponent.prototype, \"onError\", void 0);\n__decorate([\n Input(),\n __metadata(\"design:type\", Function)\n], WebViewRendererComponent.prototype, \"refCallback\", void 0);\nWebViewRendererComponent = __decorate([\n Component({\n selector: 'ss-webview-renderer',\n standalone: true,\n template: '',\n host: { '[style]': 'hostStyle' },\n }),\n __metadata(\"design:paramtypes\", [ElementRef])\n], WebViewRendererComponent);\nexport { WebViewRendererComponent };\n// Renders one backend schema node as HTML (same node rules as the other SDKs' Builder).\nlet SsNodeComponent = class SsNodeComponent {\n constructor() {\n this.ctx = {};\n this.visible = false;\n this.kind = '';\n this.role = null;\n this.props = {};\n this.css = null;\n this.content = null;\n this.slot = null;\n this.svgSrc = '';\n this.children = [];\n }\n // Binding results are computed once per render so templates see stable values.\n ngOnChanges() {\n var _a, _b;\n const node = this.node;\n const ctx = this.ctx || {};\n this.slot = null;\n if (!node) {\n this.visible = false;\n return;\n }\n if (node.slot) {\n this.kind = 'slot';\n this.slot = ((_a = ctx.slots) === null || _a === void 0 ? void 0 : _a[node.slot]) || null;\n this.visible = Boolean(this.slot);\n return;\n }\n this.visible = node.if === undefined || evaluateCondition(node.if, ctx);\n if (!this.visible)\n return;\n this.kind = node.type || '';\n this.role = ((_b = node.meta) === null || _b === void 0 ? void 0 : _b.componentRole) || null;\n this.props = node.props ? resolveBinding(node.props, ctx) || {} : {};\n this.css = toCss(this.props['style']);\n this.content = node.content !== undefined ? resolveBinding(node.content, ctx) : null;\n this.children = node.children || [];\n if (this.kind === 'SvgXml') {\n const xml = typeof this.props['xml'] === 'string' ? this.props['xml'] : '';\n // As an image, so markup in the icon can never run script.\n this.svgSrc = xml ? `data:image/svg+xml;charset=utf-8,${encodeURIComponent(xml)}` : '';\n }\n }\n byIndex(index) {\n return index;\n }\n press(event) {\n var _a, _b;\n event.stopPropagation();\n (_b = (_a = this.props)['onPress']) === null || _b === void 0 ? void 0 : _b.call(_a, event);\n }\n layout(event) {\n var _a, _b;\n (_b = (_a = this.props)['onLayout']) === null || _b === void 0 ? void 0 : _b.call(_a, event);\n }\n};\n__decorate([\n Input(),\n __metadata(\"design:type\", Object)\n], SsNodeComponent.prototype, \"node\", void 0);\n__decorate([\n Input(),\n __metadata(\"design:type\", Object)\n], SsNodeComponent.prototype, \"ctx\", void 0);\nSsNodeComponent = __decorate([\n Component({\n selector: 'ss-node',\n standalone: true,\n encapsulation: ViewEncapsulation.None,\n imports: [\n NgIf, NgFor, NgStyle, NgSwitch, NgSwitchCase, LayoutDirective, WebViewRendererComponent,\n forwardRef(() => CloseButtonComponent),\n ],\n styles: [`\n ss-node, ss-close-button { display: contents; }\n .ss-node-box, .ss-node-pressable, .ss-node-text, .ss-node-image, .ss-node-svg { box-sizing: border-box; }\n .ss-node-pressable { -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; }\n .ss-node-pressable:active { opacity: 0.6; }\n .ss-node-pressable:focus { outline: none; }\n `],\n template: `\n <ng-container *ngIf=\"visible\" [ngSwitch]=\"kind\">\n <ng-container *ngSwitchCase=\"'slot'\">\n <ss-node *ngIf=\"slot?.schema\" [node]=\"slot!.schema!\" [ctx]=\"slot!.context\"></ss-node>\n </ng-container>\n <div *ngSwitchCase=\"'Box'\" class=\"ss-node-box\" [attr.data-ss-role]=\"role\" [ngStyle]=\"css\">\n <ss-node *ngFor=\"let child of children; trackBy: byIndex\" [node]=\"child\" [ctx]=\"ctx\"></ss-node>\n </div>\n <div *ngSwitchCase=\"'Pressable'\" class=\"ss-node-pressable\" role=\"button\" tabindex=\"0\"\n [attr.data-ss-role]=\"role\" [attr.aria-label]=\"props['ariaLabel'] || null\" [ngStyle]=\"css\"\n (click)=\"press($event)\" (keydown.enter)=\"press($event)\" (ssLayout)=\"layout($event)\">\n <ss-node *ngFor=\"let child of children; trackBy: byIndex\" [node]=\"child\" [ctx]=\"ctx\"></ss-node>\n </div>\n <span *ngSwitchCase=\"'Text'\" class=\"ss-node-text\" [ngStyle]=\"css\">{{ content }}</span>\n <!-- A failed image keeps its space but shows nothing, like iOS and Flutter. -->\n <img *ngSwitchCase=\"'Image'\" class=\"ss-node-image\" [attr.data-ss-role]=\"role\" [src]=\"props['src']\" [ngStyle]=\"css\" alt=\"\"\n (error)=\"$any($event.target).style.visibility = 'hidden'\" (load)=\"$any($event.target).style.visibility = ''\" />\n <img *ngSwitchCase=\"'SvgXml'\" class=\"ss-node-svg\" [src]=\"svgSrc\" [ngStyle]=\"css\" alt=\"\" />\n <ss-close-button *ngSwitchCase=\"'CloseButton'\"></ss-close-button>\n <ss-webview-renderer *ngSwitchCase=\"'WebViewRenderer'\"\n [attr.data-ss-webview]=\"node.meta?.['webViewType']\"\n [uri]=\"props['uri']\" [canShow]=\"props['canShow']\" [onMessage]=\"props['onMessage']\"\n [onError]=\"props['onError']\" [refCallback]=\"props['ref']\"></ss-webview-renderer>\n </ng-container>\n `,\n })\n], SsNodeComponent);\nexport { SsNodeComponent };\n// Backend-driven close button (schema closeButton + closeButton.getCloseButtonStyles).\nlet CloseButtonComponent = class CloseButtonComponent {\n constructor(cdr) {\n this.cdr = cdr;\n this.schema = null;\n this.ctx = {};\n this.styles = {};\n this.styleKey = [];\n this.unsubscribers = [];\n this.handlers = {\n handleClosePress: () => {\n execute('closeButton.handleCloseButton');\n },\n };\n this.destroyed = false;\n this.scheduleRender = batched(() => {\n if (this.destroyed)\n return;\n this.ctx = { state: spotcheckStore.getState().SpotCheckState, styles: this.styles, handlers: this.handlers };\n guardedDetectChanges(this.cdr, 'closeButtonRender');\n });\n }\n ngOnInit() {\n this.unsubscribers.push(spotcheckStore.subscribe(() => this.update()));\n this.unsubscribers.push(componentStore.subscribe(() => this.update()));\n this.update();\n }\n ngOnDestroy() {\n this.destroyed = true;\n this.unsubscribers.forEach((unsubscribe) => unsubscribe());\n }\n update() {\n var _a;\n const state = spotcheckStore.getState().SpotCheckState;\n const componentState = componentStore.getState().componentState;\n this.schema = componentState.isLoaded ? ((_a = componentState.schemas) === null || _a === void 0 ? void 0 : _a.closeButton) || null : null;\n const key = [state.spotCheckDetails.closeButton, state.spotCheckDetails.isRTLLanguage];\n if (key[0] !== this.styleKey[0] || key[1] !== this.styleKey[1]) {\n this.styleKey = key;\n execute('closeButton.getCloseButtonStyles').then((result) => {\n if (!result)\n return;\n this.styles = result;\n this.scheduleRender();\n });\n }\n this.scheduleRender();\n }\n};\nCloseButtonComponent = __decorate([\n Component({\n selector: 'ss-close-button',\n standalone: true,\n imports: [NgIf, SsNodeComponent],\n template: `<ss-node *ngIf=\"schema\" [node]=\"schema\" [ctx]=\"ctx\"></ss-node>`,\n }),\n __metadata(\"design:paramtypes\", [ChangeDetectorRef])\n], CloseButtonComponent);\nexport { CloseButtonComponent };\n//# sourceMappingURL=builder.component.js.map","var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nimport { ChangeDetectorRef, Component, NgZone, PLATFORM_ID, inject } from '@angular/core';\nimport { NgIf, isPlatformBrowser } from '@angular/common';\nimport { GuardsCheckEnd, NavigationEnd, Router } from '@angular/router';\nimport { SsNodeComponent } from './spotchecks/components/builder.component';\nimport { componentStore, spotcheckStore } from './spotchecks/state/store';\nimport { dispatchWrapper, execute } from './spotchecks/helpers/executables';\nimport { captureP1Error } from './spotchecks/helpers/sentry';\nimport { setAppRunner } from './spotchecks/helpers/listener';\nimport { batched, guardedDetectChanges, hasCrashed, onCrash } from './spotchecks/helpers/render';\n// Path only: query or hash changes stay on the same screen.\nconst pathOf = (url) => (url || '').split(/[?#]/)[0];\n// Only one <SpotCheck> renders; extra instances stay empty so they never touch the live page.\nlet owner = null;\n// Keyboard cover below this is browser chrome, not a keyboard.\nconst MIN_KEYBOARD_HEIGHT = 80;\n// Place once at the app root: <SpotCheck />. One Angular codebase for web, Android and iOS.\nlet SpotCheck = class SpotCheck {\n constructor() {\n this.wrapperSchema = null;\n this.buttonSchema = null;\n this.wrapperCtx = {};\n this.buttonCtx = {};\n this.buttonReady = false;\n this.wrapperStyles = {\n overlayStyle: { position: 'fixed', height: 0, opacity: 0, zIndex: -999999, pointerEvents: 'none' },\n wrapperStyle: {},\n };\n this.buttonStyles = {};\n this.destroyed = false;\n this.cleanups = [];\n this.lastInjectionKey = [];\n this.lastButtonKey = [];\n this.lastPath = null;\n this.cdr = inject(ChangeDetectorRef);\n this.zone = inject(NgZone);\n this.router = inject(Router, { optional: true });\n this.isBrowser = isPlatformBrowser(inject(PLATFORM_ID));\n this.webviewHandlers = {\n classicWebViewRefCallback: (ref) => execute('webviewComponent.classicWebViewRefCallback', { ref }),\n chatWebViewRefCallback: (ref) => execute('webviewComponent.chatWebViewRefCallback', { ref }),\n handleOnMessage: (event) => execute('webviewComponent.handleWebViewMessage', { event }),\n handleOnError: (error) => execute('webviewComponent.handleWebViewError', { error }),\n };\n this.buttonHandlers = {\n handleSpotCheckButtonPress: () => execute('spotCheckButton.handleSpotCheckButtonPress'),\n handleSideTabLayout: (event) => execute('spotCheckButton.handleSideTabLayout', { event }),\n };\n this.scheduleRender = batched(() => {\n if (!this.destroyed)\n this.render();\n });\n this.scheduleWrapperStyles = batched(() => {\n if (this.destroyed)\n return;\n execute('wrapper.getWrapperStyles', {\n screenHeight: window.innerHeight,\n screenWidth: window.innerWidth,\n setStyles: (styles) => {\n this.wrapperStyles = styles;\n this.scheduleRender();\n },\n });\n });\n }\n ngOnInit() {\n // Server render (SSR) or a second instance: render nothing.\n if (!this.isBrowser || owner)\n return;\n owner = this;\n // App callbacks run inside Angular so the app's own UI updates.\n setAppRunner((fn) => this.zone.run(fn));\n this.cleanups.push(spotcheckStore.subscribe(() => this.onStateChange()));\n this.cleanups.push(componentStore.subscribe(() => this.onStateChange()));\n this.cleanups.push(onCrash(() => this.hideAfterCrash()));\n this.watchWindow();\n this.watchRouter();\n this.onStateChange();\n }\n ngOnDestroy() {\n if (owner === this)\n owner = null;\n this.destroyed = true;\n this.cleanups.forEach((cleanup) => cleanup());\n }\n // Same triggers as the other SDKs' Wrapper / WebViewComponent / SpotCheckButton effects.\n onStateChange() {\n const state = spotcheckStore.getState().SpotCheckState;\n const { webViewDetails, spotCheckDetails } = state;\n this.scheduleWrapperStyles();\n const injectionKey = [webViewDetails.isChatLoading, webViewDetails.isClassicLoading, webViewDetails.webViewInjectionData];\n if (injectionKey.some((value, i) => value !== this.lastInjectionKey[i])) {\n this.lastInjectionKey = injectionKey;\n execute('webviewComponent.handleWebViewInjection');\n }\n const buttonKey = [spotCheckDetails.spotCheckButtonConfig, spotCheckDetails.isSpotCheckButton, spotCheckDetails.sideTabButtonWidth];\n if (buttonKey.some((value, i) => value !== this.lastButtonKey[i])) {\n this.lastButtonKey = buttonKey;\n execute('spotCheckButton.getSpotCheckButtonStyles').then((result) => {\n if (!result)\n return;\n this.buttonStyles = result;\n this.scheduleRender();\n });\n }\n this.scheduleRender();\n }\n render() {\n if (hasCrashed())\n return;\n const state = spotcheckStore.getState().SpotCheckState;\n const componentState = componentStore.getState().componentState;\n const schemas = componentState.isLoaded ? componentState.schemas || {} : {};\n this.wrapperSchema = schemas.wrapper || null;\n this.buttonSchema = schemas.spotCheckButton || null;\n this.wrapperCtx = {\n state,\n styles: this.wrapperStyles,\n slots: {\n children: {\n schema: schemas.webviewComponent || null,\n context: { state, handlers: this.webviewHandlers },\n },\n },\n };\n this.buttonCtx = { state, styles: this.buttonStyles, handlers: this.buttonHandlers };\n // Wait for styles so the button never renders unstyled for a frame.\n this.buttonReady = Object.keys(this.buttonStyles || {}).length > 0;\n guardedDetectChanges(this.cdr, 'render');\n }\n // After a failed draw, SpotCheck renders nothing for the rest of the session (RN error boundary parity).\n hideAfterCrash() {\n this.wrapperSchema = null;\n this.buttonSchema = null;\n try {\n this.cdr.detectChanges();\n }\n catch (_a) { }\n }\n // Screen size and the part of it the on-screen keyboard covers.\n watchWindow() {\n const vv = window.visualViewport;\n const onResize = () => {\n let keyboard = 0;\n if (vv)\n keyboard = Math.round(window.innerHeight - vv.height - vv.offsetTop);\n if (keyboard < MIN_KEYBOARD_HEIGHT)\n keyboard = 0;\n const current = spotcheckStore.getState().SpotCheckState.spotCheckDetails.keyBoardHeight || 0;\n if (keyboard !== current)\n dispatchWrapper({ spotCheckDetails: { keyBoardHeight: keyboard } });\n else\n this.scheduleWrapperStyles();\n };\n this.zone.runOutsideAngular(() => {\n window.addEventListener('resize', onResize);\n vv === null || vv === void 0 ? void 0 : vv.addEventListener('resize', onResize);\n vv === null || vv === void 0 ? void 0 : vv.addEventListener('scroll', onResize);\n });\n this.cleanups.push(() => {\n window.removeEventListener('resize', onResize);\n vv === null || vv === void 0 ? void 0 : vv.removeEventListener('resize', onResize);\n vv === null || vv === void 0 ? void 0 : vv.removeEventListener('scroll', onResize);\n });\n }\n // Leaving a screen closes its spotcheck. GuardsCheckEnd comes after guards and redirects\n // (a blocked navigation keeps the survey) and before the new page's trackScreen.\n watchRouter() {\n if (!this.router)\n return;\n this.lastPath = this.router.navigated ? pathOf(this.router.url) : null;\n const subscription = this.router.events.subscribe((event) => {\n try {\n if (event instanceof GuardsCheckEnd && event.shouldActivate) {\n const next = pathOf(event.urlAfterRedirects);\n if (this.lastPath !== null && next !== this.lastPath) {\n execute('handleNavigationChange');\n }\n this.lastPath = next;\n }\n else if (event instanceof NavigationEnd) {\n this.lastPath = pathOf(event.urlAfterRedirects);\n }\n }\n catch (error) {\n captureP1Error(error, 'GENERAL', { action: 'navigationListener', errorMessage: error === null || error === void 0 ? void 0 : error.message });\n }\n });\n this.cleanups.push(() => subscription.unsubscribe());\n }\n};\nSpotCheck = __decorate([\n Component({\n selector: 'SpotCheck',\n standalone: true,\n imports: [NgIf, SsNodeComponent],\n styles: [':host { display: contents; }'],\n template: `\n <ss-node *ngIf=\"wrapperSchema\" [node]=\"wrapperSchema\" [ctx]=\"wrapperCtx\"></ss-node>\n <ss-node *ngIf=\"buttonSchema && buttonReady\" [node]=\"buttonSchema\" [ctx]=\"buttonCtx\"></ss-node>\n `,\n })\n], SpotCheck);\nexport { SpotCheck };\n//# sourceMappingURL=spotcheck.component.js.map","import { Capacitor } from '@capacitor/core';\nimport { Device } from '@capacitor/device';\nlet deviceInfo = null;\nconst getDeviceInfo = async () => {\n if (deviceInfo)\n return deviceInfo;\n try {\n deviceInfo = await Device.getInfo();\n }\n catch (_a) {\n deviceInfo = { platform: Capacitor.getPlatform(), operatingSystem: 'unknown', osVersion: '' };\n }\n return deviceInfo;\n};\n// Legacy Ionic visitor: operatingSystem from @capacitor/device (cached at init), size from the window.\nexport const getVisitorInfo = () => {\n const info = deviceInfo || {};\n return {\n deviceType: 'MOBILE',\n operatingSystem: info.operatingSystem || 'unknown',\n screenResolution: {\n width: Math.round(window.innerWidth),\n height: Math.round(window.innerHeight),\n },\n timezone: Intl.DateTimeFormat().resolvedOptions().timeZone,\n };\n};\nexport const loadDeviceInfo = () => getDeviceInfo();\n// Raw device facts; the backend keeps the SDK version per app build.\nexport const getDeviceFacts = async () => {\n var _a;\n const info = await getDeviceInfo();\n const facts = Object.assign({ os: info.platform === 'web' ? 'web' : info.platform, osVersion: String(info.osVersion || ''), isTablet: false }, (info.model ? { model: String(info.model) } : {}));\n if (Capacitor.isNativePlatform()) {\n try {\n // @capacitor/app is optional; its native plugin registers here when installed.\n const app = (_a = Capacitor.Plugins) === null || _a === void 0 ? void 0 : _a.App;\n const appInfo = (app === null || app === void 0 ? void 0 : app.getInfo) ? await app.getInfo() : null;\n if (appInfo === null || appInfo === void 0 ? void 0 : appInfo.version)\n facts['appVersion'] = String(appInfo.version);\n if (appInfo === null || appInfo === void 0 ? void 0 : appInfo.build)\n facts['appBuild'] = String(appInfo.build);\n }\n catch (_b) { }\n }\n return facts;\n};\n//# sourceMappingURL=device.js.map","var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport { componentStore, functionStore, spotcheckStore } from './state/store';\nimport { execute, markInitialized } from './helpers/executables';\nimport { setListener } from './helpers/listener';\nimport { getDeviceFacts, getVisitorInfo, loadDeviceInfo } from './helpers/device';\nimport { addBreadcrumb, captureP0Error } from './helpers/sentry';\nimport { FRAMEWORK } from './helpers/version';\nexport { SDK_VERSION } from './helpers/version';\nconst INIT_TIMEOUT_MS = 15000;\n// Backend functions, schemas and page script for this SDK (framework=ionic).\nconst getAllSpotcheckFunctions = async (domainName) => {\n const controller = typeof AbortController !== 'undefined' ? new AbortController() : null;\n const timer = setTimeout(() => controller === null || controller === void 0 ? void 0 : controller.abort(), INIT_TIMEOUT_MS);\n try {\n const response = await fetch(`https://${domainName}/api/internal/spotcheck/mobile/init?framework=${FRAMEWORK}`, { signal: controller === null || controller === void 0 ? void 0 : controller.signal, cache: 'no-store' });\n if (!response.ok)\n throw new Error(`mobile/init failed with status ${response.status}`);\n const data = await response.json().catch(() => null);\n // A non-JSON 200 (e.g. captive portal) counts as a failed init.\n if (!data || typeof data !== 'object' || typeof data.initializeSpotcheckComponent !== 'string') {\n throw new Error('Invalid mobile/init response');\n }\n const { componentSchemas, config } = data, functions = __rest(data, [\"componentSchemas\", \"config\"]);\n functionStore.dispatch(Object.assign(Object.assign({}, functions), { isLoaded: true }));\n componentStore.dispatch({ schemas: componentSchemas || {}, config: config || {}, isLoaded: Boolean(componentSchemas) });\n return data;\n }\n catch (error) {\n captureP0Error(error, 'SPOTCHECK_INITIALIZATION', {\n component: 'getAllSpotcheckFunctions',\n action: 'fetchFunctions',\n domainName,\n errorMessage: error === null || error === void 0 ? void 0 : error.message,\n });\n console.error('Error fetching spotcheck functions:', error);\n throw error;\n }\n finally {\n clearTimeout(timer);\n }\n};\n// Synchronous: trackScreen must reach execute in the same tick as a following trackEvent.\nconst refreshVisitor = () => {\n try {\n spotcheckStore.dispatch({ params: { visitor: getVisitorInfo() } });\n }\n catch (_a) { }\n};\n// Init retry: a failed init (e.g. offline at launch) is retried on the next track call.\nconst INIT_RETRY_GAP_MS = 10000;\nlet lastInitParams = null;\nlet initStatus = 'idle';\nlet lastInitAttempt = 0;\nconst retryInitIfFailed = () => {\n if (initStatus !== 'failed' || !lastInitParams)\n return;\n if (Date.now() - lastInitAttempt < INIT_RETRY_GAP_MS)\n return;\n initializeSpotChecks(lastInitParams).catch(() => { });\n};\nexport const initializeSpotChecks = async (params) => {\n lastInitParams = params;\n initStatus = 'running';\n lastInitAttempt = Date.now();\n try {\n setListener(params === null || params === void 0 ? void 0 : params.listener);\n if (params === null || params === void 0 ? void 0 : params.domainName)\n spotcheckStore.dispatch({ params: { domainName: params.domainName } });\n await loadDeviceInfo();\n refreshVisitor();\n const device = await getDeviceFacts();\n await getAllSpotcheckFunctions(params.domainName);\n const { listener } = params, initParams = __rest(params, [\"listener\"]);\n await execute('initializeSpotcheckComponent', Object.assign(Object.assign({}, initParams), { framework: FRAMEWORK, device }));\n await markInitialized();\n initStatus = 'done';\n }\n catch (error) {\n // Legacy never threw into the host app; failures go to the backend and the console.\n console.error('Error initializing spotchecks:', error);\n initStatus = 'failed';\n }\n};\nconst resolveTrackOptions = (input) => {\n var _a, _b, _c;\n return ({\n variables: (_a = input === null || input === void 0 ? void 0 : input.variables) !== null && _a !== void 0 ? _a : {},\n customProperties: (_b = input === null || input === void 0 ? void 0 : input.customProperties) !== null && _b !== void 0 ? _b : {},\n userDetails: (_c = input === null || input === void 0 ? void 0 : input.userDetails) !== null && _c !== void 0 ? _c : {},\n });\n};\nexport async function trackScreen(screenOrProps, optionsArg) {\n const screen = typeof screenOrProps === 'string' ? screenOrProps : screenOrProps === null || screenOrProps === void 0 ? void 0 : screenOrProps.screen;\n const options = resolveTrackOptions(typeof screenOrProps === 'string' ? optionsArg : screenOrProps === null || screenOrProps === void 0 ? void 0 : screenOrProps.options);\n if (!screen) {\n console.error('trackScreen: `screen` is required');\n return;\n }\n addBreadcrumb('trackScreen', { screen });\n retryInitIfFailed();\n try {\n refreshVisitor();\n await execute('trackScreen', { screen, options });\n }\n catch (error) {\n // Legacy only logged; never throw into the host app.\n console.error('Error tracking screen:', error);\n }\n}\nexport async function trackEvent(screenOrProps, eventArg, optionsArg) {\n const isString = typeof screenOrProps === 'string';\n const screen = isString ? screenOrProps : screenOrProps === null || screenOrProps === void 0 ? void 0 : screenOrProps.screen;\n const event = isString ? eventArg : screenOrProps === null || screenOrProps === void 0 ? void 0 : screenOrProps.event;\n if (!screen) {\n console.error('trackEvent: `screen` is required');\n return;\n }\n if (event == null) {\n console.error('trackEvent: `event` is required');\n return;\n }\n const options = resolveTrackOptions(isString ? optionsArg : screenOrProps.options);\n addBreadcrumb('trackEvent', { screen, event: Object.keys(event || {}).join(',') });\n retryInitIfFailed();\n try {\n await execute('trackEvent', { screen, event, options });\n }\n catch (error) {\n console.error('Error tracking event:', error);\n }\n}\n// Closes any open spotcheck and its button (screen changes the SDK can't detect).\nexport async function closeSpotChecks() {\n addBreadcrumb('closeSpotChecks', {});\n await execute('handleNavigationChange', { reason: 'close' });\n}\n//# sourceMappingURL=spotcheck.js.map","import { registerPlugin } from '@capacitor/core';\nconst SurveySparrowIonicPlugin = registerPlugin('SurveySparrowIonicPlugin');\nexport * from './definitions';\nexport { SurveySparrowIonicPlugin };\nexport * from './angular-ui/lib/public-api';\n//# sourceMappingURL=index.js.map"],"names":["__rest","this","__decorate","EventEmitter","Output","Directive","ElementRef","NgZone","Input","Component","ViewEncapsulation","NgIf","NgFor","NgStyle","NgSwitch","NgSwitchCase","forwardRef","ChangeDetectorRef","SpotCheck","inject","Router","isPlatformBrowser","PLATFORM_ID","GuardsCheckEnd","NavigationEnd","Device","Capacitor","registerPlugin"],"mappings":";;;IAAA;IACO,MAAM,KAAK,CAAC;IACnB,IAAI,WAAW,CAAC,KAAK,EAAE,OAAO,EAAE;IAChC,QAAQ,IAAI,CAAC,KAAK,GAAG,KAAK;IAC1B,QAAQ,IAAI,CAAC,OAAO,GAAG,OAAO;IAC9B,QAAQ,IAAI,CAAC,SAAS,GAAG,IAAI,GAAG,EAAE;IAClC,IAAI;IACJ,IAAI,QAAQ,GAAG;IACf,QAAQ,OAAO,IAAI,CAAC,KAAK;IACzB,IAAI;IACJ,IAAI,QAAQ,CAAC,MAAM,EAAE;IACrB,QAAQ,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,MAAM,CAAC;IACrD,QAAQ,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,QAAQ,KAAK;IAC7C,YAAY,IAAI;IAChB,gBAAgB,QAAQ,EAAE;IAC1B,YAAY;IACZ,YAAY,OAAO,KAAK,EAAE;IAC1B,gBAAgB,OAAO,CAAC,KAAK,CAAC,mCAAmC,EAAE,KAAK,CAAC;IACzE,YAAY;IACZ,QAAQ,CAAC,CAAC;IACV,IAAI;IACJ,IAAI,SAAS,CAAC,QAAQ,EAAE;IACxB,QAAQ,IAAI,CAAC,SAA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