Current Path : /var/www/www-root/data/www/www.monolith-realty.ru/bitrix/js/ui/vue/portal/dist/ |
Current File : /var/www/www-root/data/www/www.monolith-realty.ru/bitrix/js/ui/vue/portal/dist/portal.bundle.js.map |
{"version":3,"sources":["../src/wrap/start.js","../src/portal.js","../src/wrap/end.js"],"names":["_typeof","obj","Symbol","iterator","constructor","prototype","_toConsumableArray","arr","_arrayWithoutHoles","_iterableToArray","_nonIterableSpread","Array","isArray","i","arr2","length","iter","Object","toString","call","from","TypeError","inBrowser","window","freeze","item","combinePassengers","transports","slotProps","arguments","undefined","reduce","passengers","transport","temp","newPassengers","concat","stableSort","array","compareFn","map","v","idx","sort","a","b","c","pick","keys","acc","key","hasOwnProperty","targets","sources","Wormhole","Vue","extend","data","trackInstances","methods","open","to","_transport$order","order","Infinity","newTransport","indexOf","set","currentIndex","$_getTransportIndex","newTransports","slice","push","close","force","index","splice","registerTarget","target","vm","console","warn","$set","unregisterTarget","$delete","registerSource","source","unregisterSource","hasTarget","hasSource","hasContentFor","_ref","wormhole","_id","Portal","name","props","disabled","type","Boolean","String","_default","Number","slim","tag","Math","round","random","created","_this","$nextTick","mounted","sendUpdate","updated","clear","beforeDestroy","watch","newValue","oldValue","closer","normalizeSlots","$scopedSlots","$slots","normalizeOwnChildren","children","slotContent","render","h","Tag","style","display","PortalTarget","multiple","required","transition","Function","firstRender","ownTransports","$emit","newVal","oldVal","_this2","computed","noWrapper","_id$1","portalProps","targetProps","MountingPortal","inheritAttrs","append","bail","mountTo","targetSlim","targetSlotProps","targetTag","document","el","querySelector","error","$props","portalTarget","mountEl","createElement","appendChild","_props","parent","$parent","propsData","$el","parentNode","removeChild","$destroy","manual","attrs","$attrs","on","$listeners","scopedSlots","content","install","Vue$$1","options","component","portalName","portalTargetName","MountingPortalName","version"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;CChBA;CACA;CACA;CACA;CACA;CAC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AAO;;;;;;;;;;;;ACjmBvB","file":"portal.bundle.js.map","sourcesContent":[null,"/*!\n * portal-vue (C) Thorsten Lunborg, 2019\n * Version: 2.1.7\n * LICENCE: MIT\n * https://github.com/linusborg/portal-vue\n *\n * @source: https://unpkg.com/portal-vue@2.1.7/dist/portal-vue.esm.js\n*/\n\n/**\n * Modify list for integration with Bitrix Framework:\n * - remove import Vue\n * - remove default export and change install function to plugin variable for work in Bitrix CoreJS extensions;\n */\n\nimport {VueVendor as Vue} from \"ui.vue\";\n\n// origin-start\nfunction _typeof(obj) {\n\tif (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") {\n\t\t_typeof = function (obj) {\n\t\t\treturn typeof obj;\n\t\t};\n\t} else {\n\t\t_typeof = function (obj) {\n\t\t\treturn obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n\t\t};\n\t}\n\n\treturn _typeof(obj);\n}\n\nfunction _toConsumableArray(arr) {\n\treturn _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread();\n}\n\nfunction _arrayWithoutHoles(arr) {\n\tif (Array.isArray(arr)) {\n\t\tfor (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) arr2[i] = arr[i];\n\n\t\treturn arr2;\n\t}\n}\n\nfunction _iterableToArray(iter) {\n\tif (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === \"[object Arguments]\") return Array.from(iter);\n}\n\nfunction _nonIterableSpread() {\n\tthrow new TypeError(\"Invalid attempt to spread non-iterable instance\");\n}\n\nvar inBrowser = typeof window !== 'undefined';\nfunction freeze(item) {\n\tif (Array.isArray(item) || _typeof(item) === 'object') {\n\t\treturn Object.freeze(item);\n\t}\n\n\treturn item;\n}\nfunction combinePassengers(transports) {\n\tvar slotProps = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\treturn transports.reduce(function (passengers, transport) {\n\t\tvar temp = transport.passengers[0];\n\t\tvar newPassengers = typeof temp === 'function' ? temp(slotProps) : transport.passengers;\n\t\treturn passengers.concat(newPassengers);\n\t}, []);\n}\nfunction stableSort(array, compareFn) {\n\treturn array.map(function (v, idx) {\n\t\treturn [idx, v];\n\t}).sort(function (a, b) {\n\t\treturn compareFn(a[1], b[1]) || a[0] - b[0];\n\t}).map(function (c) {\n\t\treturn c[1];\n\t});\n}\nfunction pick(obj, keys) {\n\treturn keys.reduce(function (acc, key) {\n\t\tif (obj.hasOwnProperty(key)) {\n\t\t\tacc[key] = obj[key];\n\t\t}\n\n\t\treturn acc;\n\t}, {});\n}\n\nvar transports = {};\nvar targets = {};\nvar sources = {};\nvar Wormhole = Vue.extend({\n\tdata: function data() {\n\t\treturn {\n\t\t\ttransports: transports,\n\t\t\ttargets: targets,\n\t\t\tsources: sources,\n\t\t\ttrackInstances: inBrowser\n\t\t};\n\t},\n\tmethods: {\n\t\topen: function open(transport) {\n\t\t\tif (!inBrowser) return;\n\t\t\tvar to = transport.to,\n\t\t\t\tfrom = transport.from,\n\t\t\t\tpassengers = transport.passengers,\n\t\t\t\t_transport$order = transport.order,\n\t\t\t\torder = _transport$order === void 0 ? Infinity : _transport$order;\n\t\t\tif (!to || !from || !passengers) return;\n\t\t\tvar newTransport = {\n\t\t\t\tto: to,\n\t\t\t\tfrom: from,\n\t\t\t\tpassengers: freeze(passengers),\n\t\t\t\torder: order\n\t\t\t};\n\t\t\tvar keys = Object.keys(this.transports);\n\n\t\t\tif (keys.indexOf(to) === -1) {\n\t\t\t\tVue.set(this.transports, to, []);\n\t\t\t}\n\n\t\t\tvar currentIndex = this.$_getTransportIndex(newTransport); // Copying the array here so that the PortalTarget change event will actually contain two distinct arrays\n\n\t\t\tvar newTransports = this.transports[to].slice(0);\n\n\t\t\tif (currentIndex === -1) {\n\t\t\t\tnewTransports.push(newTransport);\n\t\t\t} else {\n\t\t\t\tnewTransports[currentIndex] = newTransport;\n\t\t\t}\n\n\t\t\tthis.transports[to] = stableSort(newTransports, function (a, b) {\n\t\t\t\treturn a.order - b.order;\n\t\t\t});\n\t\t},\n\t\tclose: function close(transport) {\n\t\t\tvar force = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n\t\t\tvar to = transport.to,\n\t\t\t\tfrom = transport.from;\n\t\t\tif (!to || !from && force === false) return;\n\n\t\t\tif (!this.transports[to]) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tif (force) {\n\t\t\t\tthis.transports[to] = [];\n\t\t\t} else {\n\t\t\t\tvar index = this.$_getTransportIndex(transport);\n\n\t\t\t\tif (index >= 0) {\n\t\t\t\t\t// Copying the array here so that the PortalTarget change event will actually contain two distinct arrays\n\t\t\t\t\tvar newTransports = this.transports[to].slice(0);\n\t\t\t\t\tnewTransports.splice(index, 1);\n\t\t\t\t\tthis.transports[to] = newTransports;\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\tregisterTarget: function registerTarget(target, vm, force) {\n\t\t\tif (!inBrowser) return;\n\n\t\t\tif (this.trackInstances && !force && this.targets[target]) {\n\t\t\t\tconsole.warn(\"[portal-vue]: Target \".concat(target, \" already exists\"));\n\t\t\t}\n\n\t\t\tthis.$set(this.targets, target, Object.freeze([vm]));\n\t\t},\n\t\tunregisterTarget: function unregisterTarget(target) {\n\t\t\tthis.$delete(this.targets, target);\n\t\t},\n\t\tregisterSource: function registerSource(source, vm, force) {\n\t\t\tif (!inBrowser) return;\n\n\t\t\tif (this.trackInstances && !force && this.sources[source]) {\n\t\t\t\tconsole.warn(\"[portal-vue]: source \".concat(source, \" already exists\"));\n\t\t\t}\n\n\t\t\tthis.$set(this.sources, source, Object.freeze([vm]));\n\t\t},\n\t\tunregisterSource: function unregisterSource(source) {\n\t\t\tthis.$delete(this.sources, source);\n\t\t},\n\t\thasTarget: function hasTarget(to) {\n\t\t\treturn !!(this.targets[to] && this.targets[to][0]);\n\t\t},\n\t\thasSource: function hasSource(to) {\n\t\t\treturn !!(this.sources[to] && this.sources[to][0]);\n\t\t},\n\t\thasContentFor: function hasContentFor(to) {\n\t\t\treturn !!this.transports[to] && !!this.transports[to].length;\n\t\t},\n\t\t// Internal\n\t\t$_getTransportIndex: function $_getTransportIndex(_ref) {\n\t\t\tvar to = _ref.to,\n\t\t\t\tfrom = _ref.from;\n\n\t\t\tfor (var i in this.transports[to]) {\n\t\t\t\tif (this.transports[to][i].from === from) {\n\t\t\t\t\treturn +i;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn -1;\n\t\t}\n\t}\n});\nvar wormhole = new Wormhole(transports);\n\nvar _id = 1;\nvar Portal = Vue.extend({\n\tname: 'portal',\n\tprops: {\n\t\tdisabled: {\n\t\t\ttype: Boolean\n\t\t},\n\t\tname: {\n\t\t\ttype: String,\n\t\t\tdefault: function _default() {\n\t\t\t\treturn String(_id++);\n\t\t\t}\n\t\t},\n\t\torder: {\n\t\t\ttype: Number,\n\t\t\tdefault: 0\n\t\t},\n\t\tslim: {\n\t\t\ttype: Boolean\n\t\t},\n\t\tslotProps: {\n\t\t\ttype: Object,\n\t\t\tdefault: function _default() {\n\t\t\t\treturn {};\n\t\t\t}\n\t\t},\n\t\ttag: {\n\t\t\ttype: String,\n\t\t\tdefault: 'DIV'\n\t\t},\n\t\tto: {\n\t\t\ttype: String,\n\t\t\tdefault: function _default() {\n\t\t\t\treturn String(Math.round(Math.random() * 10000000));\n\t\t\t}\n\t\t}\n\t},\n\tcreated: function created() {\n\t\tvar _this = this;\n\n\t\tthis.$nextTick(function () {\n\t\t\twormhole.registerSource(_this.name, _this);\n\t\t});\n\t},\n\tmounted: function mounted() {\n\t\tif (!this.disabled) {\n\t\t\tthis.sendUpdate();\n\t\t}\n\t},\n\tupdated: function updated() {\n\t\tif (this.disabled) {\n\t\t\tthis.clear();\n\t\t} else {\n\t\t\tthis.sendUpdate();\n\t\t}\n\t},\n\tbeforeDestroy: function beforeDestroy() {\n\t\twormhole.unregisterSource(this.name);\n\t\tthis.clear();\n\t},\n\twatch: {\n\t\tto: function to(newValue, oldValue) {\n\t\t\toldValue && oldValue !== newValue && this.clear(oldValue);\n\t\t\tthis.sendUpdate();\n\t\t}\n\t},\n\tmethods: {\n\t\tclear: function clear(target) {\n\t\t\tvar closer = {\n\t\t\t\tfrom: this.name,\n\t\t\t\tto: target || this.to\n\t\t\t};\n\t\t\twormhole.close(closer);\n\t\t},\n\t\tnormalizeSlots: function normalizeSlots() {\n\t\t\treturn this.$scopedSlots.default ? [this.$scopedSlots.default] : this.$slots.default;\n\t\t},\n\t\tnormalizeOwnChildren: function normalizeOwnChildren(children) {\n\t\t\treturn typeof children === 'function' ? children(this.slotProps) : children;\n\t\t},\n\t\tsendUpdate: function sendUpdate() {\n\t\t\tvar slotContent = this.normalizeSlots();\n\n\t\t\tif (slotContent) {\n\t\t\t\tvar transport = {\n\t\t\t\t\tfrom: this.name,\n\t\t\t\t\tto: this.to,\n\t\t\t\t\tpassengers: _toConsumableArray(slotContent),\n\t\t\t\t\torder: this.order\n\t\t\t\t};\n\t\t\t\twormhole.open(transport);\n\t\t\t} else {\n\t\t\t\tthis.clear();\n\t\t\t}\n\t\t}\n\t},\n\trender: function render(h) {\n\t\tvar children = this.$slots.default || this.$scopedSlots.default || [];\n\t\tvar Tag = this.tag;\n\n\t\tif (children && this.disabled) {\n\t\t\treturn children.length <= 1 && this.slim ? this.normalizeOwnChildren(children)[0] : h(Tag, [this.normalizeOwnChildren(children)]);\n\t\t} else {\n\t\t\treturn this.slim ? h() : h(Tag, {\n\t\t\t\tclass: {\n\t\t\t\t\t'v-portal': true\n\t\t\t\t},\n\t\t\t\tstyle: {\n\t\t\t\t\tdisplay: 'none'\n\t\t\t\t},\n\t\t\t\tkey: 'v-portal-placeholder'\n\t\t\t});\n\t\t}\n\t}\n});\n\nvar PortalTarget = Vue.extend({\n\tname: 'portalTarget',\n\tprops: {\n\t\tmultiple: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: false\n\t\t},\n\t\tname: {\n\t\t\ttype: String,\n\t\t\trequired: true\n\t\t},\n\t\tslim: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: false\n\t\t},\n\t\tslotProps: {\n\t\t\ttype: Object,\n\t\t\tdefault: function _default() {\n\t\t\t\treturn {};\n\t\t\t}\n\t\t},\n\t\ttag: {\n\t\t\ttype: String,\n\t\t\tdefault: 'div'\n\t\t},\n\t\ttransition: {\n\t\t\ttype: [String, Object, Function]\n\t\t}\n\t},\n\tdata: function data() {\n\t\treturn {\n\t\t\ttransports: wormhole.transports,\n\t\t\tfirstRender: true\n\t\t};\n\t},\n\tcreated: function created() {\n\t\tvar _this = this;\n\n\t\tthis.$nextTick(function () {\n\t\t\twormhole.registerTarget(_this.name, _this);\n\t\t});\n\t},\n\twatch: {\n\t\townTransports: function ownTransports() {\n\t\t\tthis.$emit('change', this.children().length > 0);\n\t\t},\n\t\tname: function name(newVal, oldVal) {\n\t\t\t/**\n\t\t\t * TODO\n\t\t\t * This should warn as well ...\n\t\t\t */\n\t\t\twormhole.unregisterTarget(oldVal);\n\t\t\twormhole.registerTarget(newVal, this);\n\t\t}\n\t},\n\tmounted: function mounted() {\n\t\tvar _this2 = this;\n\n\t\tif (this.transition) {\n\t\t\tthis.$nextTick(function () {\n\t\t\t\t// only when we have a transition, because it causes a re-render\n\t\t\t\t_this2.firstRender = false;\n\t\t\t});\n\t\t}\n\t},\n\tbeforeDestroy: function beforeDestroy() {\n\t\twormhole.unregisterTarget(this.name);\n\t},\n\tcomputed: {\n\t\townTransports: function ownTransports() {\n\t\t\tvar transports = this.transports[this.name] || [];\n\n\t\t\tif (this.multiple) {\n\t\t\t\treturn transports;\n\t\t\t}\n\n\t\t\treturn transports.length === 0 ? [] : [transports[transports.length - 1]];\n\t\t},\n\t\tpassengers: function passengers() {\n\t\t\treturn combinePassengers(this.ownTransports, this.slotProps);\n\t\t}\n\t},\n\tmethods: {\n\t\t// can't be a computed prop because it has to \"react\" to $slot changes.\n\t\tchildren: function children() {\n\t\t\treturn this.passengers.length !== 0 ? this.passengers : this.$scopedSlots.default ? this.$scopedSlots.default(this.slotProps) : this.$slots.default || [];\n\t\t},\n\t\t// can't be a computed prop because it has to \"react\" to this.children().\n\t\tnoWrapper: function noWrapper() {\n\t\t\tvar noWrapper = this.slim && !this.transition;\n\n\t\t\tif (noWrapper && this.children().length > 1) {\n\t\t\t\tconsole.warn('[portal-vue]: PortalTarget with `slim` option received more than one child element.');\n\t\t\t}\n\n\t\t\treturn noWrapper;\n\t\t}\n\t},\n\trender: function render(h) {\n\t\tvar noWrapper = this.noWrapper();\n\t\tvar children = this.children();\n\t\tvar Tag = this.transition || this.tag;\n\t\treturn noWrapper ? children[0] : this.slim && !Tag ? h() : h(Tag, {\n\t\t\tprops: {\n\t\t\t\t// if we have a transition component, pass the tag if it exists\n\t\t\t\ttag: this.transition && this.tag ? this.tag : undefined\n\t\t\t},\n\t\t\tclass: {\n\t\t\t\t'vue-portal-target': true\n\t\t\t}\n\t\t}, children);\n\t}\n});\n\nvar _id$1 = 0;\nvar portalProps = ['disabled', 'name', 'order', 'slim', 'slotProps', 'tag', 'to'];\nvar targetProps = ['multiple', 'transition'];\nvar MountingPortal = Vue.extend({\n\tname: 'MountingPortal',\n\tinheritAttrs: false,\n\tprops: {\n\t\tappend: {\n\t\t\ttype: [Boolean, String]\n\t\t},\n\t\tbail: {\n\t\t\ttype: Boolean\n\t\t},\n\t\tmountTo: {\n\t\t\ttype: String,\n\t\t\trequired: true\n\t\t},\n\t\t// Portal\n\t\tdisabled: {\n\t\t\ttype: Boolean\n\t\t},\n\t\t// name for the portal\n\t\tname: {\n\t\t\ttype: String,\n\t\t\tdefault: function _default() {\n\t\t\t\treturn 'mounted_' + String(_id$1++);\n\t\t\t}\n\t\t},\n\t\torder: {\n\t\t\ttype: Number,\n\t\t\tdefault: 0\n\t\t},\n\t\tslim: {\n\t\t\ttype: Boolean\n\t\t},\n\t\tslotProps: {\n\t\t\ttype: Object,\n\t\t\tdefault: function _default() {\n\t\t\t\treturn {};\n\t\t\t}\n\t\t},\n\t\ttag: {\n\t\t\ttype: String,\n\t\t\tdefault: 'DIV'\n\t\t},\n\t\t// name for the target\n\t\tto: {\n\t\t\ttype: String,\n\t\t\tdefault: function _default() {\n\t\t\t\treturn String(Math.round(Math.random() * 10000000));\n\t\t\t}\n\t\t},\n\t\t// Target\n\t\tmultiple: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: false\n\t\t},\n\t\ttargetSlim: {\n\t\t\ttype: Boolean\n\t\t},\n\t\ttargetSlotProps: {\n\t\t\ttype: Object,\n\t\t\tdefault: function _default() {\n\t\t\t\treturn {};\n\t\t\t}\n\t\t},\n\t\ttargetTag: {\n\t\t\ttype: String,\n\t\t\tdefault: 'div'\n\t\t},\n\t\ttransition: {\n\t\t\ttype: [String, Object, Function]\n\t\t}\n\t},\n\tcreated: function created() {\n\t\tif (typeof document === 'undefined') return;\n\t\tvar el = document.querySelector(this.mountTo);\n\n\t\tif (!el) {\n\t\t\tconsole.error(\"[portal-vue]: Mount Point '\".concat(this.mountTo, \"' not found in document\"));\n\t\t\treturn;\n\t\t}\n\n\t\tvar props = this.$props; // Target already exists\n\n\t\tif (wormhole.targets[props.name]) {\n\t\t\tif (props.bail) {\n\t\t\t\tconsole.warn(\"[portal-vue]: Target \".concat(props.name, \" is already mounted.\\n Aborting because 'bail: true' is set\"));\n\t\t\t} else {\n\t\t\t\tthis.portalTarget = wormhole.targets[props.name];\n\t\t\t}\n\n\t\t\treturn;\n\t\t}\n\n\t\tvar append = props.append;\n\n\t\tif (append) {\n\t\t\tvar type = typeof append === 'string' ? append : 'DIV';\n\t\t\tvar mountEl = document.createElement(type);\n\t\t\tel.appendChild(mountEl);\n\t\t\tel = mountEl;\n\t\t} // get props for target from $props\n\t\t// we have to rename a few of them\n\n\n\t\tvar _props = pick(this.$props, targetProps);\n\n\t\t_props.slim = this.targetSlim;\n\t\t_props.tag = this.targetTag;\n\t\t_props.slotProps = this.targetSlotProps;\n\t\t_props.name = this.to;\n\t\tthis.portalTarget = new PortalTarget({\n\t\t\tel: el,\n\t\t\tparent: this.$parent || this,\n\t\t\tpropsData: _props\n\t\t});\n\t},\n\tbeforeDestroy: function beforeDestroy() {\n\t\tvar target = this.portalTarget;\n\n\t\tif (this.append) {\n\t\t\tvar el = target.$el;\n\t\t\tel.parentNode.removeChild(el);\n\t\t}\n\n\t\ttarget.$destroy();\n\t},\n\trender: function render(h) {\n\t\tif (!this.portalTarget) {\n\t\t\tconsole.warn(\"[portal-vue] Target wasn't mounted\");\n\t\t\treturn h();\n\t\t} // if there's no \"manual\" scoped slot, so we create a <Portal> ourselves\n\n\n\t\tif (!this.$scopedSlots.manual) {\n\t\t\tvar props = pick(this.$props, portalProps);\n\t\t\treturn h(Portal, {\n\t\t\t\tprops: props,\n\t\t\t\tattrs: this.$attrs,\n\t\t\t\ton: this.$listeners,\n\t\t\t\tscopedSlots: this.$scopedSlots\n\t\t\t}, this.$slots.default);\n\t\t} // else, we render the scoped slot\n\n\n\t\tvar content = this.$scopedSlots.manual({\n\t\t\tto: this.to\n\t\t}); // if user used <template> for the scoped slot\n\t\t// content will be an array\n\n\t\tif (Array.isArray(content)) {\n\t\t\tcontent = content[0];\n\t\t}\n\n\t\tif (!content) return h();\n\t\treturn content;\n\t}\n});\n\nfunction install(Vue$$1) {\n\tvar options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\tVue$$1.component(options.portalName || 'Portal', Portal);\n\tVue$$1.component(options.portalTargetName || 'PortalTarget', PortalTarget);\n\tVue$$1.component(options.MountingPortalName || 'MountingPortal', MountingPortal);\n}\n\nvar index = {\n\tinstall: install\n};\n// origin-end\n\nindex.version = '2.1.7';\nexport { index as PortalVue, Portal, PortalTarget, MountingPortal, wormhole as Wormhole };",null]}