PageSourceSearch

https://www.reserveafricainesigean.fr/content/themes/sigean-theme/build/module-petite-vue-8230ec0e.js

js reserveafricainesigean.fr collected 2026-10-01 12:21:57 UTC 5,101 bytes, 2 lines download raw bytes

1(self.webpackChunksigean_theme=self.webpackChunksigean_theme||[]).push([[438],{7683:function(t,e,a){var n={"./restaurant-menu":[5032,6831],"./restaurant-menu.js":[5032,6831]};function i(t){if(!a.o(n,t))return Promise.resolve().then((function(){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}));var e=n[t],i=e[0];return a.e(e[1]).then((function(){return a(i)}))}i.keys=function(){return Object.keys(n)},i.id=7683,t.exports=i},1649:function(t,e,a){"use strict";a.r(e),a.d(e,{default:function(){return l}});var n=a(2750),i=a(9978),s=a(6975),r=a(7620);class p{static getVendor(){return"nematis"}static getType(){return null}static getConfig(){return{attrNames:{name:"data-app-name",id:"id",targetName:"data-target-app-name",targetId:"data-target-id"}}}static getInstance(){return this._manager}static getInstanceName(){return`_${this.getVendor()}AppManager`}static getApps(){return this._manager.apps}static getAppInfo(t,e){const a=this._getStore(t);return a&&a.length?e?a.find((t=>t.el.id===e)):a[0]:null}static getAppInfoByElement(t){if(!this._isValidElement(t))return null;const e=this.getAppAttribute(t,"name"),a=this.getAppAttribute(t,"id");return this.getAppInfo(e,a)}static getAppAttribute(t,e){const a=this.getConfig();return e in a.attrNames?t.getAttribute(a.attrNames[e]):null}static async loadAppFromElement(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!this._isValidElement(t))return!1;const n=this.getType(),i=this.getAppAttribute(t,"name"),s=this.getAppAttribute(t,"id");if(this.getAppInfoByElement(t))return!1;a=this._sanitizeFilters(a),await a.doActionAsync(`app.${n}.beforeLoad`,i,s,t,e),e=a.applyFilters(`app.${n}.data`,e,i,s,t);const r=await this._buildApp(i,s,t,e,a);return this._registerApp(r,i,t,a),a.doAction(`app.${n}.loaded`,r,i,s,t),this.getAppInfoByElement(t)}static _register(){this._manager||(this._manager={apps:new Map})}static get _manager(){const t=this.getInstanceName();return t in window?window[t]:null}static set _manager(t){const e=this.getInstanceName();this._manager||(window[e]=t)}static _isValidElement(t){return t&&null!==this.getAppAttribute(t,"name")}static async _buildApp(t,e,a,n,i){return null}static _registerApp(t,e,a,n){const i=this._getStore(e,!0);if(this._storeHasElement(i,a))throw new Error("Element already registered.");const s=n.namespace("app");i.push({app:t,el:a,namespace:s})}static _getStore(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const a=this.getType();this._manager.apps.has(a)||this._manager.apps.set(a,new Map);const n=this._manager.apps.get(a);return t&&!n.has(t)&&e&&n.set(t,[]),t?n.get(t):n}static _storeHasElement(t,e){return t&&t.find((t=>t.el===e))}static _sanitizeFilters(t){return t||(t=r.A),t}}class o extends p{static getType(){return"petiteVue"}static getConfig(){return{attrNames:{name:"data-v-app-name",id:"id",targetName:"data-v-target-app-name",targetId:"data-v-target-id"}}}static registerHooks(){r.A.addAction("customElements.domMutation.loaded",(t=>{const e=this.getAppAttribute(t,"targetName"),a=this.getAppAttribute(t,"targetId"),n=this.getAppInfo(e,a);n&&n.app.mount(t)}),`app/${this.getType()}/mount`)}static async _buildApp(t,e,a,n,i){const{createApp:s,reactive:r}=await import("https://cdn.skypack.dev/pin/[email protected]/mode=imports,min/optimized/petite-vue.js"),p=s({$delimiters:["${","}"],[t]:r(n)}),o=i.applyFilters(`app.${this.getType()}.directives`,{},t,e,a);for(const t of Object.keys(o))p.directive(t,o[t]);return p.mount(a)}}var u=a(7267),g=a(8240);class l extends s.A{getName(){return"petiteVue"}getDefaultConfig(){return{appsSelector:`[${i.A.getAlphaAttributeName("required-modules")}*="${this.getName()}"]`}}_onLoad(){super._onLoad(),this._registerHooks(),this._loadApps()}_registerHooks(){n.A.addAction("app.petiteVue.beforeLoad",(async t=>{const e=(0,u.A)(t),i=await n.A.applyFiltersAsync("load.petiteVue.apps",(()=>a(7683)(`./${e}`)),e,t);"function"==typeof i&&await i()}),"loadAppFile",9),n.A.addFilter("app.petiteVue.data",(t=>(0,g.A)(t,{alpha:this._getManager(),alphaNotifier:window.alphaNotifier,status:"idle",getAlpha(){return this.alpha},getAlphaNotifier(){return this.alphaNotifier},getStatus(){return this.status},setStatus(t){this.status=t},isStatus(t){let e=t;return"string"==typeof t&&(e=[],e.push(t)),e.includes(this.getStatus())}})),"addThemeData",9)}_loadApps(){const t=i.A.smartQuerySelectorAll(this.getConfig().appsSelector);(async()=>{for(const e of t)await this._loadApp(e)})()}_getAppDataId(t,e){return[(0,u.A)(t),e,"data"].filter((t=>t)).join("-")}_getDataAppElement(t,e){let a=this._getAppDataId(t,e),n=document.getElementById(a);
1return!n&&e&&(a=this._getAppDataId(t),n=document.getElementById(a)),n}_getInlineAppData(t,e){const a=this._getDataAppElement(t,e);return a&&i.A.getParsedJsonContent(a.innerText)||{}}async _loadApp(t){const e=o.getAppAttribute(t,"name");if(e){const a=this._getInlineAppData(e,t.id);await o.loadAppFromElement(t,a,n.A)}}}}}]);
2//# sourceMappingURL=module-petite-vue-8230ec0e.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.