PageSourceSearch

https://www.irmadulce.org.br/_nuxt/CmqgjD11.js

js irmadulce.org.br collected 2026-10-02 10:56:43 UTC 4,394 bytes, 1 lines download raw bytes

1import{L as I,aB as y,j as h,aC as O,aD as b,x as S,aE as C,aF as E,J as B,h as N,aG as T,aH as $,v as J,N as H}from"./Dfl0qPmI.js";const M=t=>t==="defer"||t===!1;function j(...t){var w;const i=typeof t[t.length-1]=="string"?t.pop():void 0;typeof t[0]!="string"&&t.unshift(i);let[r,p,a={}]=t;if(typeof r!="string")throw new TypeError("[nuxt] [asyncData] key must be a string.");if(typeof p!="function")throw new TypeError("[nuxt] [asyncData] handler must be a function.");const s=I(),_=p,e=()=>y.value,f=()=>s.isHydrating?s.payload.data[r]:s.static.data[r];a.server=a.server??!0,a.default=a.default??e,a.getCachedData=a.getCachedData??f,a.lazy=a.lazy??!1,a.immediate=a.immediate??!0,a.deep=a.deep??y.deep,a.dedupe=a.dedupe??"cancel";const l=a.getCachedData(r,s),u=l!=null;if(!s._asyncData[r]||!a.immediate){(w=s.payload._errors)[r]??(w[r]=y.errorValue);const c=a.deep?h:O;s._asyncData[r]={data:c(u?l:a.default()),pending:h(!u),error:b(s.payload._errors,r),status:h("idle"),_default:a.default}}const n={...s._asyncData[r]};delete n._default,n.refresh=n.execute=(c={})=>{if(s._asyncDataPromises[r]){if(M(c.dedupe??a.dedupe))return s._asyncDataPromises[r];s._asyncDataPromises[r].cancelled=!0}if(c._initial||s.isHydrating&&c._initial!==!1){const m=c._initial?l:a.getCachedData(r,s);if(m!=null)return Promise.resolve(m)}n.pending.value=!0,n.status.value="pending";const d=new Promise((m,o)=>{try{m(_(s))}catch(D){o(D)}}).then(async m=>{if(d.cancelled)return s._asyncDataPromises[r];let o=m;a.transform&&(o=await a.transform(m)),a.pick&&(o=R(o,a.pick)),s.payload.data[r]=o,n.data.value=o,n.error.value=y.errorValue,n.status.value="success"}).catch(m=>{if(d.cancelled)return s._asyncDataPromises[r];n.error.value=B(m),n.data.value=N(a.default()),n.status.value="error"}).finally(()=>{d.cancelled||(n.pending.value=!1,delete s._asyncDataPromises[r])});return s._asyncDataPromises[r]=d,s._asyncDataPromises[r]},n.clear=()=>G(s,r);const g=()=>n.refresh({_initial:!0}),v=a.server!==!1&&s.payload.serverRendered;{const c=T();if(c&&v&&a.immediate&&!c.sp&&(c.sp=[]),c&&!c._nuxtOnBeforeMountCbs){c._nuxtOnBeforeMountCbs=[];const o=c._nuxtOnBeforeMountCbs;$(()=>{o.forEach(D=>{D()}),o.splice(0,o.length)}),J(()=>o.splice(0,o.length))}v&&s.isHydrating&&(n.error.value||l!=null)?(n.pending.value=!1,n.status.value=n.error.value?"error":"success"):c&&(s.payload.serverRendered&&s.isHydrating||a.lazy)&&a.immediate?c._nuxtOnBeforeMountCbs.push(g):a.immediate&&g();const d=E();if(a.watch){const o=S(a.watch,()=>n.refresh());d&&C(o)}const m=s.hook("app:data:refresh",async o=>{(!o||o.includes(r))&&await n.refresh()});d&&C(m)}const P=Promise.resolve(s._asyncDataPromises[r]).then(()=>n);return Object.assign(P,n),P}function G(t,i){i in t.payload.data&&(t.payload.data[i]=void 0),i in t.payload._errors&&(t.payload._errors[i]=y.errorValue),t._asyncData[i]&&(t._asyncData[i].data.value=void 0,t._asyncData[i].error.value=y.errorValue,t._asyncData[i].pending.value=!1,t._asyncData[i].status.value="idle"),i in t._asyncDataPromises&&(t._asyncDataPromises[i]&&(t._asyncDataPromises[i].cancelled=!0),t._asyncDataPromises[i]=void 0)}function R(t,i){const r={};for(const p of i)r[p]=t[p];return r}const z=()=>{const t=H();async function i(e){var l,u;(l=e.params)!=null&&l.filter&&(e.params.filter=JSON.stringify(e.params.filter)),(u=e.params)!=null&&u.deep&&(e.params.deep=JSON.stringify(e.params.deep));const f=await t(`/items/${e.collection}`,{method:"GET",params:e.params});return f.meta?f:f.data}return{getItems:i,getSingletonItem:async e=>{var l,u;return(l=e.params)!=null&&l.filter&&(e.params.filter=JSON.stringify(e.params.filter)),(u=e.params)!=null&&u.deep&&(e.params.deep=JSON.stringify(e.params.deep)),(await t(`/items/${e.collection}`,{method:"GET",params:e.params})).data},getItemById:async e=>{var l,u;return(l=e.params)!=null&&l.filter&&(e.params.filter=JSON.stringify(e.params.filter)),(u=e.params)!=null&&u.deep&&(e.params.deep=JSON.stringify(e.params.deep)),(await t(`/items/${e.collection}/${e.id}`,{method:"GET",params:e.params})).data},createItems:async e=>(await t(`/items/${e.collection}`,{method:"POST",body:e.items,params:e.params})).data,deleteItems:async e=>{await t(`/items/${e.collection}`,{method:"DELETE",body:e.items})},updateItem:async e=>{const f=await t(`/items/${e.collection}/${e.id}`,{method:"PATCH",body:e.item,params:e.params});return f==null?void 0:f.data}}};export{j as a,z as u};

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.