PageSourceSearch

https://camudigitalcampus.com/_next/static/chunks/b671ecd2788259d5.js

js camudigitalcampus.com collected 2026-09-26 01:13:29 UTC 159,230 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,987505,869238,661572,t=>{"use strict";var a,e,o,r,i,s,n,d,p,m,h,l,u,c,P,f,g,T,D,E,S,v,R,y,C,M,I,x,A,_,N,b,L,F,O,w,U,K,V,B,G,q,H,W,k,$,Y,Z,X,z,J,Q,j,tt,ta,te,to,tr,ti,ts,tn,td,tp,tm,th,tl,tu,tc,tP,tf,tg,tT,tD,tE,tS,tv,tR,ty,tC,tM,tI,tx,tA,t_,tN,tb,tL,tF,tO,tw,tU,tK,tV,tB,tG,tq,tH,tW,tk,t$,tY,tZ,tX,tz,tJ,tQ,tj,t0,t3,t2,t1,t9,t5,t8,t7,t6,t4,at,aa,ae,ao,ar,ai,as,an,ad,ap,am,ah,al,au,ac,aP,af,ag,aT,aD,aE,aS,av,aR,ay,aC,aM,aI,ax,aA,a_,aN,ab,aL,aF,aO,aw,aU,aK,aV,aB,aG,aq,aH,aW,ak,a$,aY,aZ,aX,az,aJ,aQ,aj,a0,a3,a2,a1,a9,a5,a8,a7,a6,a4,et,ea,ee,eo=t.i(235789),er=t.i(891515),ei=t.i(230503),es=t.i(802726),en=t.i(247501);async function ed(){var t;let{httpClient:a,sideEffects:e}=arguments[0],o=(t=(0,er.renameKeysFromSDKRequestToRESTRequest)({}),function({host:a}){var e;return{entityFqdn:"wix.blog.v1.blog_cache",method:"GET",methodFqn:"wix.blog.v1.BlogCacheService.GetBlogCache",packageName:"@wix/auto_sdk_blog_blog-cache",url:(e={protoPath:"/v1/blog-cache",data:t,host:a},(0,ei.resolveUrl)(Object.assign(e,{domainToMappings:{"bo._base_domain_":[{srcPath:"/_api/blog-cache-service",destPath:""}],"wixbo.ai":[{srcPath:"/_api/blog-cache-service",destPath:""}],"wix-bo.com":[{srcPath:"/_api/blog-cache-service",destPath:""}],"manage._base_domain_":[{srcPath:"/_api/blog-cache-service",destPath:""}],"apps._base_domain_":[{srcPath:"/_api/blog-cache-service",destPath:""}],"editor._base_domain_":[{srcPath:"/_api/blog-cache-service",destPath:""}],"blocks._base_domain_":[{srcPath:"/_api/blog-cache-service",destPath:""}],"create.editorx":[{srcPath:"/_api/blog-cache-service",destPath:""}],_:[{srcPath:"/_api/blog-cache-service",destPath:""}],"www._base_domain_":[{srcPath:"/_api/blog-cache-service",destPath:""}],"*.dev.wix-code.com":[{srcPath:"/_api/blog-cache-service",destPath:""}],"api._api_base_domain_":[{srcPath:"/blog-cache-service",destPath:""}]}}))),params:(0,ei.toURLSearchParams)(t),transformResponse:t=>(0,en.transformPaths)(t,[{transformFn:es.transformRESTTimestampToSDKTimestamp,paths:[{path:"blogCache.updatedDate"}]}])}});e?.onSiteCall?.();try{let t=await a.request(o);return e?.onSuccess?.(t),(0,er.renameKeysFromRESTResponseToSDKResponse)(t.data)}catch(a){let t=(0,eo.transformError)(a,{spreadPathsToArguments:{},explicitPathsToArguments:{},singleArgumentUnchanged:!1},[]);throw e?.onError?.(a),t}}(a=tK||(tK={})).UNDEFINED_STATUS="UNDEFINED_STATUS",a.INACTIVE="INACTIVE",a.ACTIVE="ACTIVE",a.DEFAULT="DEFAULT",(e=tV||(tV={})).UNDEFINED_FLAG_CODE="UNDEFINED_FLAG_CODE",e.AFG="AFG",e.AGO="AGO",e.AIA="AIA",e.ALA="ALA",e.ALB="ALB",e.AND="AND",e.ARE="ARE",e.ARG="ARG",e.ARM="ARM",e.ASM="ASM",e.ATF="ATF",e.ATG="ATG",e.AUS="AUS",e.AUT="AUT",e.AZE="AZE",e.BDI="BDI",e.BEL="BEL",e.BEN="BEN",e.BES="BES",e.BFA="BFA",e.BGD="BGD",e.BGR="BGR",e.BHR="BHR",e.BHS="BHS",e.BIH="BIH",e.BLM="BLM",e.BLR="BLR",e.BLZ="BLZ",e.BMU="BMU",e.BOL="BOL",e.BRA="BRA",e.BRB="BRB",e.BRN="BRN",e.BRT="BRT",e.BTN="BTN",e.BWA="BWA",e.CAF="CAF",e.CAN="CAN",e.CAT="CAT",e.CHE="CHE",e.CHL="CHL",e.CHN="CHN",e.CIV="CIV",e.CMR="CMR",e.COD="COD",e.COG="COG",e.COL="COL",e.COM="COM",e.COR="COR",e.CPV="CPV",e.CRI="CRI",e.CUB="CUB",e.CUW="CUW",e.CYM="CYM",e.CZE="CZE",e.DEU="DEU",e.DJI="DJI",e.DMA="DMA",e.DNK="DNK",e.DOM="DOM",e.DZA="DZA",e.ECU="ECU",e.EGY="EGY",e.ERI="ERI",e.ESP="ESP",e.EST="EST",e.ETH="ETH",e.EUR="EUR",e.EUS="EUS",e.FIN="FIN",e.FJI="FJI",e.FLK="FLK",e.FRA="FRA",e.FRO="FRO",e.FSM="FSM",e.GAB="GAB",e.GBR="GBR",e.GEO="GEO",e.GGY="GGY",e.GHA="GHA",e.GIB="GIB",e.GIN="GIN",e.GLG="GLG",e.GLO="GLO",e.GLP="GLP",e.GMB="GMB",e.GNB="GNB",e.GNQ="GNQ",e.GRC="GRC",e.GRD="GRD",e.GRL="GRL",e.GTM="GTM",e.GUM="GUM",e.GUY="GUY",e.HKG="HKG",e.HND="HND",e.HRV="HRV",e.HTI="HTI",e.HUN="HUN",e.IDN="IDN",e.IMN="IMN",e.IND="IND",e.IOT="IOT",e.IRL="IRL",e.IRN="IRN",e.IRQ="IRQ",e.ISL="ISL",e.ISR="ISR",e.ITA="ITA",e.JAM="JAM",e.JEY="JEY",e.JOR="JOR",e.JPN="JPN",e.KAZ="KAZ",e.KEN="KEN",e.KGZ="KGZ",e.KHM="KHM",e.KIR="KIR",e.KNA="KNA",e.KOR="KOR",e.KUR="KUR",e.KWT="KWT",e.LAO="LAO",e.LBN="LBN",e.LBR="LBR",e.LBY="LBY",e.LCA="LCA",e.LIE="LIE",e.LKA="LKA",e.LSO="LSO",e.LTU="LTU",e.
1LUX="LUX",e.LVA="LVA",e.MAC="MAC",e.MAF="MAF",e.MAR="MAR",e.MCO="MCO",e.MDA="MDA",e.MDG="MDG",e.MDV="MDV",e.MEX="MEX",e.MHL="MHL",e.MKD="MKD",e.MLI="MLI",e.MLT="MLT",e.MMR="MMR",e.MNE="MNE",e.MNG="MNG",e.MNP="MNP",e.MOZ="MOZ",e.MRT="MRT",e.MSR="MSR",e.MTQ="MTQ",e.MWI="MWI",e.MYS="MYS",e.MYT="MYT",e.NAM="NAM",e.NCL="NCL",e.NER="NER",e.NFK="NFK",e.NGA="NGA",e.NIC="NIC",e.NIU="NIU",e.NLD="NLD",e.NOR="NOR",e.NPL="NPL",e.NRU="NRU",e.NZL="NZL",e.OMN="OMN",e.PAK="PAK",e.PAN="PAN",e.PCN="PCN",e.PER="PER",e.PHL="PHL",e.PLW="PLW",e.PNG="PNG",e.POL="POL",e.PRI="PRI",e.PRK="PRK",e.PRT="PRT",e.PRY="PRY",e.PSE="PSE",e.PYF="PYF",e.QAT="QAT",e.REU="REU",e.ROU="ROU",e.RUS="RUS",e.RWA="RWA",e.SAU="SAU",e.SDN="SDN",e.SEN="SEN",e.SGP="SGP",e.SGS="SGS",e.SHN="SHN",e.SJM="SJM",e.SLB="SLB",e.SLE="SLE",e.SLV="SLV",e.SMR="SMR",e.SOM="SOM",e.SPM="SPM",e.SRB="SRB",e.SSD="SSD",e.STP="STP",e.SUR="SUR",e.SVK="SVK",e.SVN="SVN",e.SWE="SWE",e.SWZ="SWZ",e.SXM="SXM",e.SYC="SYC",e.SYR="SYR",e.TCA="TCA",e.TCD="TCD",e.TGO="TGO",e.THA="THA",e.TJK="TJK",e.TKL="TKL",e.TKM="TKM",e.TLS="TLS",e.TON="TON",e.TTO="TTO",e.TUN="TUN",e.TUR="TUR",e.TUV="TUV",e.TWN="TWN",e.TZA="TZA",e.UGA="UGA",e.UKR="UKR",e.URY="URY",e.USA="USA",e.UZB="UZB",e.VAT="VAT",e.VCT="VCT",e.VEN="VEN",e.VGB="VGB",e.VIR="VIR",e.VLC="VLC",e.VNM="VNM",e.VUT="VUT",e.WLF="WLF",e.WLS="WLS",e.YEM="YEM",e.ZAF="ZAF",e.ZM
1B="ZMB",e.ZWE="ZWE",(o=tB||(tB={})).QUERY_PARAM="QUERY_PARAM",o.SUBDOMAIN="SUBDOMAIN",o.SUBDIRECTORY="SUBDIRECTORY",(r=tG||(tG={})).BEFORE="BEFORE",r.AFTER="AFTER",r.REPLACE="REPLACE",(i=tq||(tq={})).MONDAY="MONDAY",i.TUESDAY="TUESDAY",i.WEDNESDAY="WEDNESDAY",i.THURSDAY="THURSDAY",i.FRIDAY="FRIDAY",i.SATURDAY="SATURDAY",i.SUNDAY="SUNDAY";let ep=(0,ei.createRESTModule)(function(t){return()=>ed({httpClient:t})});function em(t){return(0,ei.resolveUrl)(Object.assign(t,{domainToMappings:{"manage._base_domain_":[{srcPath:"/_api/xml-blog-importer",destPath:""}],_api_base_domain_:[{srcPath:"/_api/xml-blog-importer",destPath:""}]}}))}t.s(["getBlogCache",0,ep],513370),t.s([],635838),t.i(635838),t.i(513370),t.s(["DayOfWeek",()=>tq,"Flag",()=>tV,"LocaleStatus",()=>tK,"PlacementType",()=>tG,"ResolutionMethod",()=>tB,"getBlogCache",0,ep],103103),t.i(103103),t.s(["DayOfWeek",()=>tq,"Flag",()=>tV,"LocaleStatus",()=>tK,"PlacementType",()=>tG,"ResolutionMethod",()=>tB,"getBlogCache",0,ep],478265),t.i(478265);let eh="@wix/auto_sdk_blog_blog-importer";async function el(t){var a;let{httpClient:e,sideEffects:o}=arguments[1],r=(a=(0,er.renameKeysFromSDKRequestToRESTRequest)({shouldPublish:t?.shouldPublish}),function({host:t}){return{entityFqdn:"wix.blog.v1.wordpress_import",method:"POST",methodFqn:"com.wix.blog.WordpressImportService.StartImport",packageName:eh,url:em({protoPath:"/v1/wordpress-import",data:a,host:t}),data:a}});o?.onSiteCall?.();try{let t=await e.request(r);o?.onSuccess?.(t)}catch(a){let t=(0,eo.transformError)(a,{spreadPathsToArguments:{},explicitPathsToArguments:{shouldPublish:"$[0].shouldPublish"},singleArgumentUnchanged:!1},["options"]);throw o?.onError?.(a),t}}async function eu(t,a){var e;let{httpClient:o,sideEffects:r}=arguments[2],i=(e=(0,er.renameKeysFromSDKRequestToRESTRequest)({url:t,siteDomain:a?.siteDomain}),function({host:t}){return{entityFqdn:"wix.blog.v1.wordpress_import",method:"POST",methodFqn:"com.wix.blog.WordpressImportService.SubmitUrlForImport",packageName:eh,url:em({protoPath:"/v1/prepare-wordpress-url-import",data:e,host:t}),data:e}});r?.onSiteCall?.();try{let t=await o.request(i);r?.onSuccess?.(t)}catch(a){let t=(0,eo.transformError)(a,{spreadPathsToArguments:{},explicitPathsToArguments:{url:"$[0]",siteDomain:"$[1].siteDomain"},singleArgumentUnchanged:!1},["url","options"]);throw r?.onError?.(a),t}}async function ec(t){var a;let{httpClient:e,sideEffects:o}=arguments[1],r=(a=(0,er.renameKeysFromSDKRequestToRESTRequest)({url:t}),function({host:t}){return{entityFqdn:"wix.blog.v1.wordpress_import",method:"POST",methodFqn:"com.wix.blog.WordpressImportService.ValidateUrlForImport",packageName:eh,url:em({protoPath:"/v1/validate-wordpress-url-import",data:a,host:t}),data:a}});o?.onSiteCall?.();try{let t=await e.request(r);return o?.onSuccess?.(t),(0,er.renameKeysFromRESTResponseToSDKResponse)(t.data)}catch(a){let t=(0,eo.transformError)(a,{spreadPathsToArguments:{},explicitPathsToArguments:{url:"$[0]"},singleArgumentUnchanged:!1},["url"]);throw o?.onError?.(a),t}}async function eP(){var t;let{httpClient:a,sideEffects:e}=arguments[0],o=(t=(0,er.renameKeysFromSDKRequestToRESTRequest)({}),function({host:a}){return{entityFqdn:"wix.blog.v1.wordpress_import",method:"DELETE",methodFqn:"com.wix.blog.WordpressImportService.DeleteNotImported",packageName:eh,url:em({protoPath:"/v1/wordpress-import",data:t,host:a}),params:(0,ei.toURLSearchParams)(t)}});e?.onSiteCall?.();try{let t=await a.request(o);e?.onSuccess?.(t)}catch(a){let t=(0,eo.transformError)(a,{spreadPathsToArguments:{},explicitPathsToArguments:{},singleArgumentUnchanged:!1},[]);throw e?.onError?.(a),t}}async function ef(){var t;let{httpClient:a,sideEffects:e}=arguments[0],o=(t=(0,er.renameKeysFromSDKRequestToRESTRequest)({}),function({host:a}){return{entityFqdn:"wix.blog.v1.wordpress_import",method:"GET",methodFqn:"com.wix.blog.WordpressImportService.GetImportStatus",packageName:eh,url:em({protoPath:"/v1/wordpress-import",data:t,host:a}),params:(0,ei.toURLSearchParams)(t)}});e?.onSiteCall?.();try{let t=await a.request(o);return e?.onSuccess?.(t),(0,er.renameKeysFromRESTResponseToSDKResponse)(t.data)}catch(a){let t=(0,eo.transformError)(a,{spreadPathsToArguments:{},explicitPathsToArguments:{},singleArgumentUnchanged:!1},[]);throw e?.onError?.(a),t}}
1async function eg(){var t;let{httpClient:a,sideEffects:e}=arguments[0],o=(t=(0,er.renameKeysFromSDKRequestToRESTRequest)({}),function({host:a}){return{entityFqdn:"wix.blog.v1.wordpress_import",method:"GET",methodFqn:"com.wix.blog.WordpressImportService.GetNotImportedPosts",packageName:eh,url:em({protoPath:"/v1/wordpress-import/posts/not-imported",data:t,host:a}),params:(0,ei.toURLSearchParams)(t)}});e?.onSiteCall?.();try{let t=await a.request(o);return e?.onSuccess?.(t),(0,er.renameKeysFromRESTResponseToSDKResponse)(t.data)}catch(a){let t=(0,eo.transformError)(a,{spreadPathsToArguments:{},explicitPathsToArguments:{},singleArgumentUnchanged:!1},[]);throw e?.onError?.(a),t}}(s=tH||(tH={})).UNKNOWN="UNKNOWN",s.READY_TO_IMPORT="READY_TO_IMPORT",s.STARTED="STARTED",s.FAILED="FAILED",s.DONE="DONE",s.PARSING_URL="PARSING_URL",s.NOT_FOUND="NOT_FOUND";let eT=(0,ei.createRESTModule)(function(t){return a=>el(a,{httpClient:t})}),eD=(0,ei.createRESTModule)(function(t){return(a,e)=>eu(a,e,{httpClient:t})}),eE=(0,ei.createRESTModule)(function(t){return a=>ec(a,{httpClient:t})}),eS=(0,ei.createRESTModule)(function(t){return()=>eP({httpClient:t})}),ev=(0,ei.createRESTModule)(function(t){return()=>ef({httpClient:t})}),eR=(0,ei.createRESTModule)(function(t){return()=>eg({httpClient:t})});t.s(["deleteNotImported",0,eS,"getImportStatus",0,ev,"getNotImportedPosts",0,eR,"startImport",0,eT,"submitUrlForImport",0,eD,"validateUrlForImport",0,eE],813999),t.s([],912492),t.i(912492),t.i(813999),t.s(["Status",()=>tH,"deleteNotImported",0,eS,"getImportStatus",0,ev,"getNotImportedPosts",0,eR,"startImport",0,eT,"submitUrlForImport",0,eD,"validateUrlForImport",0,eE],42242),t.i(42242),t.s(["Status",()=>tH,"deleteNotImported",0,eS,"getImportStatus",0,ev,"getNotImportedPosts",0,eR,"startImport",0,eT,"submitUrlForImport",0,eD,"validateUrlForImport",0,eE],58898),t.i(58898);var ey=t.i(176312),eC=t.i(9725);function eM(t){if(!t)return;let{protocol:a,hash:e,pathname:o}=new URL((0,ey.alignIfLegacy)(t,"image")),r=new URLSearchParams(e.replace("#","")),i=r.get("originHeight"),s=r.get("originWidth"),[n,d]=o.replace("image://v1/","").split("/"),p=decodeURIComponent(d);if(a===eC.WIX_PROTOCOL){let t={id:n,height:Number(i),width:Number(s)};return p?{...t,altText:p,filename:p}:t}return{url:t}}function eI(t){if(!t)return;let a="";return(t.filename||t.altText)&&(a=`/${encodeURIComponent(t.filename||t.altText)}`),t.id?`wix:image://v1/${t.id}${a}#originWidth=${t.width}&originHeight=${t.height}`:t.url}function ex(t){let{host:a,pathname:e}=new URL(t);return{base:a,path:e}}function eA(t){if(t)return["http://","https://"].some(a=>t.base?.startsWith(a))?`${t.base}${t.path}`:`http://${t.base}${t.path}`}var e_=t.i(235449);function eN(t){return 1===Object.keys(t).length&&"$and"in t&&Array.isArray(t.$and)}function eb(t){return 1===Object.keys(t).length&&"$or"in t&&Array.isArray(t.$or)}function eL(t,a){return void 0===t||0===Object.keys(t).length?a:void 0===a||0===Object.keys(a).length?t:{$and:[...eN(t)?t.$and:[t],...eN(a)?a.$and:[a]]}}class eF{_items;_fetchNextPage;_fetchPrevPage;_originQuery;_limit;constructor({items:t,originQuery:a,fetchNextPage:e,fetchPrevPage:o,limit:r}){this._items=t,this._fetchNextPage=e,this._fetchPrevPage=o,this._originQuery=a,this._limit=r}get items(){return this._items}get length(){return this._items.length}get pageSize(){return this._limit}get query(){return this._originQuery}async next(){if(!this.hasNext())throw Error("No next page to fetch");return await this._fetchNextPage()}async prev(){if(!this.hasPrev())throw Error("No previous page to fetch");return await this._fetchPrevPage()}}class eO extends eF{_nextCursor;_prevCursor;cursors;constructor({items:t,originQuery:a,fetchNextPage:e,fetchPrevPage:o,limit:r,nextCursor:i,prevCursor:s}){super({items:t,originQuery:a,fetchNextPage:e,fetchPrevPage:o,limit:r}),this._nextCursor=i,this._prevCursor=s,this.cursors={next:i,prev:s}}hasNext(){return!!this._nextCursor}hasPrev(){return!!this._prevCursor}}class ew extends eF{_totalCount;_offset;_tooManyToCount;constructor({items:t,fetchNextPage:a,fetchPrevPage:e,offset:o,originQuery:r,limit:i,totalCount:s,tooManyToCount:n}
1){super({items:t,fetchNextPage:a,fetchPrevPage:e,originQuery:r,limit:i}),this._totalCount=s,this._offset=o,this._tooManyToCount=n}get currentPage(){return 0===this._limit?void 0:Math.floor(this._offset/this._limit)}get totalPages(){return this._tooManyToCount||0===this._limit?void 0:Math.ceil(this._totalCount/this._limit)}get totalCount(){return this._tooManyToCount?void 0:this._totalCount}hasNext(){return!!(0!==this._limit&&void 0!==this.currentPage&&void 0!==this.totalPages&&this.currentPage<this.totalPages-1)}hasPrev(){return!!(0!==this._limit&&this.currentPage&&this.currentPage>0)}}function eU(t){let a=e=>({query:e,async find(){try{let o=t.requestTransformer("CURSOR"===t.pagingMethod&&e.cursorPaging.cursor?{cursorPaging:e.cursorPaging}:e),r=await t.func(o),{[eC.ITEMS_RESULT_PROPERTY_NAME]:i,[eC.PAGING_METADATA_RESULT_PROPERTY_NAME]:s}=t.responseTransformer(r);if("OFFSET"===t.pagingMethod)return new ew({items:i??[],fetchNextPage:()=>a({...e,paging:{offset:e.paging.offset+e.paging.limit,limit:e.paging.limit}}).find(),fetchPrevPage:()=>a({...e,paging:{offset:Math.max(e.paging.offset-e.paging.limit,0),limit:e.paging.limit}}).find(),offset:e.paging.offset,limit:e.paging.limit,totalCount:s?.total,tooManyToCount:s?.tooManyToCount,originQuery:this});let n=e.cursorPaging;return new eO({items:i??[],limit:n.limit,originQuery:this,fetchNextPage:()=>a({...e,cursorPaging:{cursor:s?.cursors?.next??void 0,limit:n.limit}}).find(),fetchPrevPage:()=>a({...e,cursorPaging:{cursor:s?.cursors?.prev??void 0,limit:n.limit}}).find(),prevCursor:s?.cursors?.prev??void 0,nextCursor:s?.cursors?.next??void 0})}catch(a){throw t.errorTransformer(a)}},skipTo:t=>a({...e,cursorPaging:{cursor:t,limit:e.cursorPaging.limit}}),eq(o,r){let i={[eK(t.transformationPaths,o)]:void 0===r?null:r};return a({...e,filter:eL(e.filter,i)})},ne(o,r){let i={[eK(t.transformationPaths,o)]:{$ne:void 0===r?null:r}};return a({...e,filter:eL(e.filter,i)})},ge(o,r){let i={[eK(t.transformationPaths,o)]:{$gte:r}};return a({...e,filter:eL(e.filter,i)})},gt(o,r){let i={[eK(t.transformationPaths,o)]:{$gt:r}};return a({...e,filter:eL(e.filter,i)})},le(o,r){let i={[eK(t.transformationPaths,o)]:{$lte:r}};return a({...e,filter:eL(e.filter,i)})},lt(o,r){let i={[eK(t.transformationPaths,o)]:{$lt:r}};return a({...e,filter:eL(e.filter,i)})},isNotEmpty(t){return this.ne(t,null)},isEmpty(t){return this.eq(t,null)},startsWith(o,r){let i={[eK(t.transformationPaths,o)]:{$startsWith:r}};return a({...e,filter:eL(e.filter,i)})},endsWith(o,r){let i={[eK(t.transformationPaths,o)]:{$endsWith:r}};return a({...e,filter:eL(e.filter,i)})},contains(o,r){let i={[eK(t.transformationPaths,o)]:{$contains:r}};return a({...e,filter:eL(e.filter,i)})},hasSome(o,...r){let i={[eK(t.transformationPaths,o)]:{$hasSome:Array.isArray(r[0])?r[0]:r}};return a({...e,filter:eL(e.filter,i)})},hasAll(o,...r){let i={[eK(t.transformationPaths,o)]:{$hasAll:Array.isArray(r[0])?r[0]:r}};return a({...e,filter:eL(e.filter,i)})},between(t,a,e){return this.ge(t,a).lt(t,e)},in(o,r){let i={[eK(t.transformationPaths,o)]:{$in:r}};return a({...e,filter:eL(e.filter,i)})},exists(o,r=!0){let i={[eK(t.transformationPaths,o)]:{$exists:r}};return a({...e,filter:eL(e.filter,i)})},or:t=>{var o,r;return a({...e,filter:(o=e.filter,r=t.query.filter,void 0===o||0===Object.keys(o).length?r:void 0===r||0===Object.keys(r).length?o:{$or:[...eb(o)?o.$or:[o],...eb(r)?r.$or:[r]]})})},and:t=>a({...e,filter:eL(e.filter,t.query.filter)}),not:t=>a({...e,filter:function(t){if(void 0!==t&&0!==Object.keys(t).length)if(1===Object.keys(t).length&&"$not"in t&&"object"==typeof t.$not)return t.$not;else return{$not:t}}(t.query.filter)}),ascending:(...o)=>a({...e,sort:[...e.sort??[],...o.map(a=>({fieldName:eK(t.transformationPaths,a),order:"ASC"}))]}),descending:(...o)=>a({...e,sort:[...e.sort??[],...o.map(a=>({fieldName:eK(t.transformationPaths,a),order:"DESC"}))]}),skip:t=>a({...e,paging:{offset:t,limit:"limit"in e.paging?e.paging.limit:eC.DEFAULT_LIMIT}}),limit:o=>"CURSOR"===t.pagingMethod?a({...e,cursorPaging:{limit:o,cursor:"cursor"in e.cursorPaging?e.cursorPaging.cursor:void 0}}):a({...e,paging:{limit:o,offset:"offset"in e.paging?e.paging.offset:0}})});return a({filter:{},..."OFFSET"===t.pagingMethod?{paging:{offset:0,limit:eC.DEFAULT_LIMIT}}:{cursorPaging:{limit:eC.DEFAULT_LIMIT}}})}function eK(t,a){let e=Object.entries(t).find(([t])=>t===a||a.startsWith(`${t}.`))?.[0];return e?a.replace(e,t[e]):a.split(".").map(a=>t[a]??eC.SDKRequestToRESTRequestRenameMap[a]??a).join(".")}var eV=t.i(66083);function eB(t){return t?t.join(","):t}function eG(t){return(0,ei.resolveUrl)(Object.assign(t,{domainToMappings:{"manage._base_domain_":[{srcPath:"/_api/communities-blog-node-api/v3/categories",destPath:"/v3/categories"},{srcPath:"/_api/communities-blog-node-api/v3/bulk/category",destPath:"/v3/bulk/category"},{srcPath:"/_api/communities-blog-node-api/v3/bulk/categories",destPath:"/v3/bulk/categories"}],"*.pub.wix-code.com":[{srcPath:"/_api/communities-blog-node-api/v3/categories",destPath:"/v3/categories"}],"bo._base_domain_":[{srcPath:"/_api/communities-blog-node-api/v3/categories",destPath:"/v3/categories"}],"wixbo.ai":[{srcPath:"/_api/communities-blog-node-api/v3/categories",destPath:"/v3/categories"}],"wix-bo.com":[{srcPath:"/_api/communities-blog-node-api/v3/categories",destPath:"/v3/categories"}],"editor.wixapps.net":[{srcPath:"/_api/communities-blog-node-api/v3/categories",destPath:"/v3/categories"}],"editor._base_domain_":[{srcPath:"/_api/communities-blog-node-api/v3/categories",destPath:"/v3/categories"}],"blocks._base_domain_":[{srcPath:"/_api/communities-blog-node-api/v3/categories",destPath:"/v3/categories"}],"create.editorx":[{srcPath:"/_api/communities-blog-node-api/v3/categories",destPath:"/v3/categories"}],"social-blog._base_domain_":[{srcPath:"/_api/communities-blog-node-api/v3/categories",destPath:"/v3/categories"}],_:[{srcPath:"/_api/communities-blog-node-api/v3/categories",destPath:"/v3/categories"}],"apps._base_domain_":[{srcPath:"/_api/communities-blog-node-api/v3/categories",destPath:"/v3/categories"}],"www._base_domain_":[{srcPath:"/_api/communities-blog-node-api/v3/categories",destPath:"/v3/categories"}],"www.wixapis.com":[{srcPath:"/blog/v3/categories",destPath:"/v3/categories"},{srcPath:"/v3/categories",destPath:"/v3/categories"}],"*.dev.wix-code.com":[{srcPath:"/_api/communities-blog-node-api/v3/categories",destPath:"/v3/categories"}],"api._api_base_domain_":[{srcPath:"/category-service-api-proxy",destPath:""}]}}))}let eq="@wix/auto_sdk_blog_categories";async function eH(t,a){var e;let{httpClient:o,sideEffects:r}=arguments[2],i=(e=(0,en.transformPaths)((0,er.renameKeysFromSDKRequestToRESTRequest)({category:t,fieldsets:a?.fieldsets}),[{transformFn:ex,paths:[{path:"category.url"},{path:"category.translations.url"}]},{transformFn:eM,paths:[{path:"category.coverImage"}]}]),function({host:t}){let a=(0,en.transformPaths)(e,[{transformFn:es.transformSDKTimestampToRESTTimestamp,paths:[{path:"category.updatedDate"},{path:"category.coverImage.urlExpirationDate"}]},{transformFn:eV.transformSDKFloatToRESTFloat,paths:[{path:"category.coverImage.focalPoint.x"},{path:"category.coverImage.focalPoint.y"}]}]);return{entityFqdn:"wix.blog.v3.category",method:"POST",methodFqn:"com.wixpress.npm.communities.platformized.blog.v3.CategoryService.CreateCategory",packageName:eq,url:eG({protoPath:"/v3/categories",data:a,host:t}),data:a,transformResponse:t=>(0,en.transformPaths)(t,[{transformFn:es.transformRESTTimestampToSDKTimestamp,paths:[{path:"category.updatedDate"},{path:"category.coverImage.urlExpirationDate"}]},{transformFn:eV.transformRESTFloatToSDKFloat,paths:[{path:"category.coverImage.focalPoint.x"},{path:"category.coverImage.focalPoint.y"}]}])}});r?.onSiteCall?.();try{let t=await o.request(i);return r?.onSuccess?.(t),(0,er.renameKeysFromRESTResponseToSDKResponse)((0,en.transformPaths)(t.data,[{transformFn:eA,paths:[{path:"category.url"},{path:"category.translations.url"}]},{transformFn:eI,paths:[{path:"category.coverImage"}]}]))?.category}catch(a){let t=(0,eo.transformError)(a,{spreadPathsToArguments:{},explicitPathsToArguments:{category:"$[0]",fieldsets:"$[1].fieldsets"},singleArgumentUnchanged:!1},["category","options"]);throw r?.onError?.(a),t}}
1async function eW(t,a,e){var o;let{httpClient:r,sideEffects:i}=arguments[3],s=(o=(0,en.transformPaths)((0,er.renameKeysFromSDKRequestToRESTRequest)({category:{...a,id:t},fieldsets:e?.fieldsets}),[{transformFn:ex,paths:[{path:"category.url"},{path:"category.translations.url"}]},{transformFn:eM,paths:[{path:"category.coverImage"}]}]),function({host:t}){let a=(0,en.transformPaths)(o,[{transformFn:eB,paths:[{path:"fieldMask"}]},{transformFn:es.transformSDKTimestampToRESTTimestamp,paths:[{path:"category.updatedDate"},{path:"category.coverImage.urlExpirationDate"}]},{transformFn:eV.transformSDKFloatToRESTFloat,paths:[{path:"category.coverImage.focalPoint.x"},{path:"category.coverImage.focalPoint.y"}]}]);return{entityFqdn:"wix.blog.v3.category",method:"PATCH",methodFqn:"com.wixpress.npm.communities.platformized.blog.v3.CategoryService.UpdateCategory",packageName:eq,url:eG({protoPath:"/v3/categories/{category.id}",data:a,host:t}),data:a,transformResponse:t=>(0,en.transformPaths)(t,[{transformFn:es.transformRESTTimestampToSDKTimestamp,paths:[{path:"category.updatedDate"},{path:"category.coverImage.urlExpirationDate"}]},{transformFn:eV.transformRESTFloatToSDKFloat,paths:[{path:"category.coverImage.focalPoint.x"},{path:"category.coverImage.focalPoint.y"}]}])}});i?.onSiteCall?.();try{let t=await r.request(s);return i?.onSuccess?.(t),(0,er.renameKeysFromRESTResponseToSDKResponse)((0,en.transformPaths)(t.data,[{transformFn:eA,paths:[{path:"category.url"},{path:"category.translations.url"}]},{transformFn:eI,paths:[{path:"category.coverImage"}]}]))?.category}catch(a){let t=(0,eo.transformError)(a,{spreadPathsToArguments:{category:"$[1]"},explicitPathsToArguments:{"category.id":"$[0]",fieldsets:"$[2].fieldsets"},singleArgumentUnchanged:!1},["_id","category","options"]);throw i?.onError?.(a),t}}async function ek(t,a){var e;let{httpClient:o,sideEffects:r}=arguments[2],i=(e=(0,er.renameKeysFromSDKRequestToRESTRequest)({categoryId:t,fieldsets:a?.fieldsets}),function({host:t}){return{entityFqdn:"wix.blog.v3.category",method:"GET",methodFqn:"com.wixpress.npm.communities.platformized.blog.v3.CategoryService.GetCategory",packageName:eq,url:eG({protoPath:"/v3/categories/{categoryId}",data:e,host:t}),params:(0,ei.toURLSearchParams)(e),transformResponse:t=>(0,en.transformPaths)(t,[{transformFn:es.transformRESTTimestampToSDKTimestamp,paths:[{path:"category.updatedDate"},{path:"category.coverImage.urlExpirationDate"}]},{transformFn:eV.transformRESTFloatToSDKFloat,paths:[{path:"category.coverImage.focalPoint.x"},{path:"category.coverImage.focalPoint.y"}]}])}});r?.onSiteCall?.();try{let t=await o.request(i);return r?.onSuccess?.(t),(0,er.renameKeysFromRESTResponseToSDKResponse)((0,en.transformPaths)(t.data,[{transformFn:eA,paths:[{path:"category.url"},{path:"category.translations.url"}]},{transformFn:eI,paths:[{path:"category.coverImage"}]}]))}catch(a){let t=(0,eo.transformError)(a,{spreadPathsToArguments:{},explicitPathsToArguments:{categoryId:"$[0]",fieldsets:"$[1].fieldsets"},singleArgumentUnchanged:!1},["categoryId","options"]);throw r?.onError?.(a),t}}async function e$(t,a){var e;let{httpClient:o,sideEffects:r}=arguments[2],i=(e=(0,er.renameKeysFromSDKRequestToRESTRequest)({slug:t,fieldsets:a?.fieldsets,language:a?.language}),function({host:t}){return{entityFqdn:"wix.blog.v3.category",method:"GET",methodFqn:"com.wixpress.npm.communities.platformized.blog.v3.CategoryService.GetCategoryBySlug",packageName:eq,url:eG({protoPath:"/v3/categories/slugs/{slug}",data:e,host:t}),params:(0,ei.toURLSearchParams)(e),transformResponse:t=>(0,en.transformPaths)(t,[{transformFn:es.transformRESTTimestampToSDKTimestamp,paths:[{path:"category.updatedDate"},{path:"category.coverImage.urlExpirationDate"}]},{transformFn:eV.transformRESTFloatToSDKFloat,paths:[{path:"category.coverImage.focalPoint.x"},{path:"category.coverImage.focalPoint.y"}]}])}});r?.onSiteCall?.();try{let t=await o.request(i);return r?.onSuccess?.(t),(0,er.renameKeysFromRESTResponseToSDKResponse)((0,en.transformPaths)(t.data,[{transformFn:eA,paths:[{path:"category.url"},{path:"category.translations.url"}]},{transformFn:eI,paths:[{path:"category.coverImage"}]}]))}catch(a){let t=(0,eo.transformError)(a,{spreadPathsToArguments:{},explicitPathsToArguments:{slug:"$[0]",fieldsets:"$[1].fieldsets",language:"$[1].language"},singleArgumentUnchanged:!1},["slug","options"]);throw r?.onError?.(a),t}}
1async function eY(t){var a;let{httpClient:e,sideEffects:o}=arguments[1],r=(a=(0,er.renameKeysFromSDKRequestToRESTRequest)({paging:t?.paging,fieldsets:t?.fieldsets,language:t?.language}),function({host:t}){return{entityFqdn:"wix.blog.v3.category",method:"GET",methodFqn:"com.wixpress.npm.communities.platformized.blog.v3.CategoryService.ListCategories",packageName:eq,url:eG({protoPath:"/v3/categories",data:a,host:t}),params:(0,ei.toURLSearchParams)(a),transformResponse:t=>(0,en.transformPaths)(t,[{transformFn:es.transformRESTTimestampToSDKTimestamp,paths:[{path:"categories.updatedDate"},{path:"categories.coverImage.urlExpirationDate"}]},{transformFn:eV.transformRESTFloatToSDKFloat,paths:[{path:"categories.coverImage.focalPoint.x"},{path:"categories.coverImage.focalPoint.y"}]}])}});o?.onSiteCall?.();try{let t=await e.request(r);return o?.onSuccess?.(t),(0,er.renameKeysFromRESTResponseToSDKResponse)((0,en.transformPaths)(t.data,[{transformFn:eA,paths:[{path:"categories.url"},{path:"categories.translations.url"}]},{transformFn:eI,paths:[{path:"categories.coverImage"}]}]))}catch(a){let t=(0,eo.transformError)(a,{spreadPathsToArguments:{},explicitPathsToArguments:{paging:"$[0].paging",fieldsets:"$[0].fieldsets",language:"$[0].language"},singleArgumentUnchanged:!1},["options"]);throw o?.onError?.(a),t}}async function eZ(t){var a;let{httpClient:e,sideEffects:o}=arguments[1],r=(a=(0,er.renameKeysFromSDKRequestToRESTRequest)({categoryId:t}),function({host:t}){return{entityFqdn:"wix.blog.v3.category",method:"DELETE",methodFqn:"com.wixpress.npm.communities.platformized.blog.v3.CategoryService.DeleteCategory",packageName:eq,url:eG({protoPath:"/v3/categories/{categoryId}",data:a,host:t}),params:(0,ei.toURLSearchParams)(a)}});o?.onSiteCall?.();try{let t=await e.request(r);o?.onSuccess?.(t)}catch(a){let t=(0,eo.transformError)(a,{spreadPathsToArguments:{},explicitPathsToArguments:{categoryId:"$[0]"},singleArgumentUnchanged:!1},["categoryId"]);throw o?.onError?.(a),t}}(n=tW||(tW={})).UNKNOWN="UNKNOWN",n.URL="URL",n.SEO="SEO",(d=tk||(tk={})).ASC="ASC",d.DESC="DESC",(p=t$||(t$={})).UNKNOWN="UNKNOWN",p.ANONYMOUS_VISITOR="ANONYMOUS_VISITOR",p.MEMBER="MEMBER",p.WIX_USER="WIX_USER",p.APP
1="APP";let eX=(0,e_.EventDefinition)("wix.blog.v3.category_created",!0,t=>(0,er.renameKeysFromRESTResponseToSDKResponse)((0,en.transformPaths)(t,[{transformFn:eA,paths:[{path:"entity.url"},{path:"entity.translations.url"}]},{transformFn:eI,paths:[{path:"entity.coverImage"}]},{transformFn:es.transformRESTTimestampToSDKTimestamp,paths:[{path:"entity.updatedDate"},{path:"metadata.eventTime"}]}])))(),ez=(0,e_.EventDefinition)("wix.blog.v3.category_deleted",!0,t=>(0,er.renameKeysFromRESTResponseToSDKResponse)((0,en.transformPaths)(t,[{transformFn:eA,paths:[{path:"undefined.url"},{path:"undefined.translations.url"}]},{transformFn:eI,paths:[{path:"undefined.coverImage"}]},{transformFn:es.transformRESTTimestampToSDKTimestamp,paths:[{path:"undefined.updatedDate"},{path:"metadata.eventTime"}]}])))(),eJ=(0,e_.EventDefinition)("wix.blog.v3.category_updated",!0,t=>(0,er.renameKeysFromRESTResponseToSDKResponse)((0,en.transformPaths)(t,[{transformFn:eA,paths:[{path:"entity.url"},{path:"entity.translations.url"}]},{transformFn:eI,paths:[{path:"entity.coverImage"}]},{transformFn:es.transformRESTTimestampToSDKTimestamp,paths:[{path:"entity.updatedDate"},{path:"metadata.eventTime"}]}])))();var eQ=t.i(313106);let ej=(0,ei.createRESTModule)(function(t){return(a,e)=>eH(a,e,{httpClient:t})}),e0=(0,ei.createRESTModule)(function(t){return(a,e,o)=>eW(a,e,o,{httpClient:t})}),e3=(0,ei.createRESTModule)(function(t){return(a,e)=>ek(a,e,{httpClient:t})}),e2=(0,ei.createRESTModule)(function(t){return(a,e)=>e$(a,e,{httpClient:t})}),e1=(0,ei.createRESTModule)(function(t){return a=>eY(a,{httpClient:t})}),e9=(0,ei.createRESTModule)(function(t){return a=>(function(t){let{httpClient:a,sideEffects:e}=arguments[1];return eU({func:async o=>{var r;let i=(r={...o,...t??{}},function({host:t}){return{entityFqdn:"wix.blog.v3.category",method:"POST",methodFqn:"com.wixpress.npm.communities.platformized.blog.v3.CategoryService.QueryCategories",packageName:eq,url:eG({protoPath:"/v3/categories/query",data:r,host:t}),data:r,transformResponse:t=>(0,en.transformPaths)(t,[{transformFn:es.transformRESTTimestampToSDKTimestamp,paths:[{path:"categories.updatedDate"},{path:"categories.coverImage.urlExpirationDate"}]},{transformFn:eV.transformRESTFloatToSDKFloat,paths:[{path:"categories.coverImage.focalPoint.x"},{path:"categories.coverImage.focalPoint.y"}]}])}});e?.onSiteCall?.();try{let t=await a.request(i);return e?.onSuccess?.(t),t}catch(t){throw e?.onError?.(t),t}},requestTransformer:a=>{let e=[a,t];return(0,er.renameKeysFromSDKRequestToRESTRequest)({...e?.[1],query:e?.[0]})},responseTransformer:({data:t})=>{let a=(0,er.renameKeysFromRESTResponseToSDKResponse)((0,en.transformPaths)(t,[{transformFn:eA,paths:[{path:"categories.url"},{path:"categories.translations.url"}]},{transformFn:eI,paths:[{path:"categories.coverImage"}]}]));return{items:a?.categories,pagingMetadata:a?.pagingMetadata}},errorTransformer:t=>{throw(0,eo.transformError)(t,{spreadPathsToArguments:{},explicitPathsToArguments:{query:"$[0]"},singleArgumentUnchanged:!1})},pagingMethod:"OFFSET",transformationPaths:{}})})(a,{httpClient:t})}),e5=(0,ei.createRESTModule)(function(t){return a=>eZ(a,{httpClient:t})}),e8=(0,eQ.createEventModule)(eX),e7=(0,eQ.createEventModule)(ez),e6=(0,eQ.createEventModule)(eJ);function e4(t){if(!t)return;let{protocol:a,hash:e,pathname:o}=new URL((0,ey.alignIfLegacy)(t,"video")),r=new URLSearchParams(e.replace("#","")),i=r.get("posterHeight"),s=r.get("posterWidth"),n=r.get("posterUri"),[d]=o.replace("video://v1/","").split("/");return a===eC.WIX_PROTOCOL?n?{id:d,thumbnail:{height:Number(i),width:Number(s),id:n.toString()}}:{id:d}:{url:t}}function ot(t){if(!t)return;let a="";return t.thumbnail?.id&&(a=`#posterUri=${t.thumbnail.id}&posterWidth=${t.thumbnail.width}&posterHeight=${t.thumbnail.height}`),t.id?`wix:video://v1/${t.id}${a}`:t.url}function oa(t){if(!t)return;let{protocol:a,hash:e,pathname:o}=new URL((0,ey.alignIfLegacy)(t,"video")),r=new URLSearchParams(e.replace("#","")),i=r.get("posterUri"),s=r.get("posterHeight"),n=r.get("posterWidth"),[d,p]=o.replace("video://v1/","").split("/");if(a===eC.WIX_PROTOCOL){let t={id:d};return(p&&(t={...t,filename:decodeURIComponent(p)}),i)?{...t,posters:[{id:i.toString(),height:Number(s),width:Number(n)}]}:t}return{url:t}}function oe(t){if(!t)return;let a="";t?.filename&&(a=`/${encodeURIComponent(t.filename)}`);let e="";if(t.posters?.length){let[a,o]=t.posters,r=o||a,i=r.id||"";if(!i&&r.url){let t=r.url.lastIndexOf("/");-1!==t&&(i=r.url.substring(t+1))}i&&(e=`#posterUri=${i}&posterWidth=${r.width}&posterHeight=${r.height}`)}return t.id?`wix:video://v1/${t.id}${a}${e}`:t.url}function oo(t){return(0,ei.resolveUrl)(Object.assign(t,{domainToMappings:{_api_base_domain_:[{srcPath:"/draft-post-service-api-proxy",destPath:""}],"*.dev.wix-code.com":[{srcPath:"/_api/communities-blog-node-api/v3/draft-posts",destPath:"/v3/draft-posts"}],"*.pub.wix-code.com":[{srcPath:"/_api/communities-blog-node-api/v3/draft-posts",destPath:"/v3/draft-posts"}],_:[{srcPath:"/_api/communities-blog-node-api/v3/draft-posts",destPath:"/v3/draft-posts"}],"apps._base_domain_":[{srcPath:"/_api/communities-blog-node-api/v3/draft-posts",destPath:"/v3/draft-posts"}],"bo._base_domain_":[{srcPath:"/_api/communities-blog-node-api/v3/draft-posts",destPath:"/v3/draft-posts"}],"wixbo.ai":[{srcPath:"/_api/communities-blog-node-api/v3/draft-posts",destPath:"/v3/draft-posts"}],"wix-bo.com":[{srcPath:"/_api/communities-blog-node-api/v3/draft-posts",destPath:"/v3/draft-posts"}],"editor._base_domain_":[{srcPath:"/_api/communities-blog-node-api/v3/draft-posts",destPath:"/v3/draft-posts"}],"blocks._base_domain_":[{srcPath:"/_api/communities-blog-node-api/v3/draft-posts",destPath:"/v3/draft-posts"}],"create.editorx":[{srcPath:"/_api/communities-blog-node-api/v3/draft-posts",destPath:"/v3/draft-posts"}],"editor.wixapps.net":[{srcPath:"/_api/communities-blog-node-api/v3/draft-posts",destPath:"/v3/draft-posts"}],"manage._base_domain_":[{srcPath:"/_api/communities-blog-node-api/v3/draft-posts",destPath:"/v3/draft-posts"},{srcPath:"/_api/draft-post-service-api-proxy/v3/bulk/draft-posts",destPath:"/v3/bulk/draft-posts"}],"social-blog._base_domain_":[{srcPath:"/_api/communities-blog-node-api/v3/draft-posts",destPath:"/v3/draft-posts"}],"www.wixapis.com":[{srcPath:"/blog/v3/draft-posts",destPath:"/v3/draft-posts"},{srcPath:"/blog/v3/bulk/draft-posts/create",destPath:"/v3/bulk/draft-posts/create"},{srcPath:"/blog/v3/draft-posts/",destPath:"/v3/draft-posts"},{srcPath:"/blog/v3/bulk/draft-posts",destPath:"/v3/bulk/draft-posts"}],"www._base_domain_":[{srcPath:"/_api/communities-blog-node-api/v3/draft-posts",destPath:"/v3/draft-posts"}]}}))}t.s(["createCategory",0,ej,"deleteCategory",0,e5,"getCategory",0,e3,"getCategoryBySlug",0,e2,"listCategories",0,e1,"onCategoryCreated",0,e8,"onCategoryDeleted",0,e7,"onCategoryUpdated",0,e6,"queryCategories",0,e9,"updateCategory",0,e0],667277),t.s([],484796),t.i(484796),t.i(667277),t.s(["Field",()=>tW,"SortOrder",()=>tk,"WebhookIdentityType",()=>t$,"createCategory",0,ej,"deleteCategory",0,e5,"getCategory",0,e3,"getCategoryBySlug",0,e2,"listCategories",0,e1,"onCategoryCreated",0,e8,"onCategoryDeleted",0,e7,"onCategoryUpdated",0,e6,"queryCategories",0,e9,"updateCategory",0,e0],932777),t.i(932777),t.s(["Field",()=>tW,"SortOrder",()=>tk,"WebhookIdentityType",()=>t$,"createCategory",0,ej,"deleteCategory",0,e5,"getCategory",0,e3,"getCategoryBySlug",0,e2,"listCategories",0,e1,"onCategoryCreated",0,e8,"onCategoryDeleted",0,e7,"onCategoryUpdated",0,e6,"queryCategories",0,e9,"updateCategory",0,e0],869238),t.i(869238);let or="@wix/auto_sdk_blog_draft-posts";async function oi(t,a){var e;let{httpClient:o,sideEffects:r}=arguments[2],i=(e=(0,en.transformPaths)((0,er.renameKeysFromSDKRequestToRESTRequest)({draftPost:t,publish:a?.publish,fieldsets:a?.fieldsets}),[{transformFn:eM,paths:[{path:"draftPost.heroImage"},{path:"draftPost.coverMedia.image"},{path:"draftPost.media.wixMedia.image"}]},{transformFn:ex,paths:[{path:"draftPost.url"},{path:"draftPost.translations.url"}]},{transformFn:e4,paths:[{path:"draftPost.coverMedia.video"}]},{transformFn:oa,paths:[{path:"draftPost.media.wixMedia.videoV2"}]}]),function({host:t}){let a=(0,en.transformPaths)(e,[{transformFn:eB,paths:[{path:"fieldMask"}]},{transformFn:es.transformSDKTimestampToRESTTimestamp,paths:[{path:"draftPost.editedDate"},{path:"draftPost.scheduledPublishDate"},{path:"draftPost.firstPublishedDate"},{path:"draftPost.createdDate"},{path:"draftPost.coverMedia.image.urlExpirationDate"},{path:"draftPost.coverMedia.video.thumbnail.urlExpirationDate"},{path:"draftPost.heroImage.urlExpirationDate"}
1,{path:"draftPost.richContent.metadata.createdTimestamp"},{path:"draftPost.richContent.metadata.updatedTimestamp"},{path:"draftPost.moderationDetails.submittedDate"},{path:"draftPost.moderationDetails.moderationDate"},{path:"draftPost.media.wixMedia.image.urlExpirationDate"},{path:"draftPost.media.wixMedia.videoV2.urlExpirationDate"},{path:"draftPost.media.wixMedia.videoV2.resolutions.urlExpirationDate"},{path:"draftPost.media.wixMedia.videoV2.resolutions.poster.urlExpirationDate"},{path:"draftPost.media.wixMedia.videoV2.posters.urlExpirationDate"}]},{transformFn:eV.transformSDKFloatToRESTFloat,paths:[{path:"draftPost.coverMedia.image.focalPoint.x"},{path:"draftPost.coverMedia.image.focalPoint.y"},{path:"draftPost.coverMedia.video.thumbnail.focalPoint.x"},{path:"draftPost.coverMedia.video.thumbnail.focalPoint.y"},{path:"draftPost.heroImage.focalPoint.x"},{path:"draftPost.heroImage.focalPoint.y"},{path:"draftPost.media.wixMedia.image.focalPoint.x"},{path:"draftPost.media.wixMedia.image.focalPoint.y"},{path:"draftPost.media.wixMedia.videoV2.resolutions.poster.focalPoint.x"},{path:"draftPost.media.wixMedia.videoV2.resolutions.poster.focalPoint.y"},{path:"draftPost.media.wixMedia.videoV2.posters.focalPoint.x"},{path:"draftPost.media.wixMedia.videoV2.posters.focalPoint.y"},{path:"draftPost.richContent.nodes.galleryData.items.image.media.duration"},{path:"draftPost.richContent.nodes.galleryData.items.video.media.duration"},{path:"draftPost.richContent.nodes.galleryData.items.video.thumbnail.duration"},{path:"draftPost.richContent.nodes.galleryData.options.item.ratio"},{path:"draftPost.richContent.nodes.imageData.image.duration"},{path:"draftPost.richContent.nodes.mapData.mapSettings.lat"},{path:"draftPost.richContent.nodes.mapData.mapSettings.lng"},{path:"draftPost.richContent.nodes.pollData.poll.image.duration"},{path:"draftPost.richContent.nodes.pollData.poll.options.image.duration"},{path:"draftPost.richContent.nodes.pollData.design.poll.background.image.duration"},{path:"draftPost.richContent.nodes.appEmbedData.image.duration"},{path:"draftPost.richContent.nodes.videoData.video.duration"},{path:"draftPost.richContent.nodes.videoData.thumbnail.duration"},{path:"draftPost.richContent.nodes.audioData.audio.duration"},{path:"draftPost.richContent.nodes.audioData.coverImage.duration"}]}]);return{entityFqdn:"wix.blog.v3.draft",method:"POST",methodFqn:"com.wixpress.npm.communities.platformized.blog.v3.DraftPostService.CreateDraftPost",packageName:or,url:oo({protoPath:"/v3/draft-posts",data:a,host:t}),data:a,transformResponse:t=>(0,en.transformPaths)(t,[{transformFn:es.transformRESTTimestampToSDKTimestamp,paths:[{path:"draftPost.editedDate"},{path:"draftPost.scheduledPublishDate"},{path:"draftPost.firstPublishedDate"},{path:"draftPost.createdDate"},{path:"draftPost.coverMedia.image.urlExpirationDate"},{path:"draftPost.coverMedia.video.thumbnail.urlExpirationDate"},{path:"draftPost.heroImage.urlExpirationDate"},{path:"draftPost.richContent.metadata.createdTimestamp"},{path:"draftPost.richContent.metadata.updatedTimestamp"},{path:"draftPost.moderationDetails.submittedDate"},{path:"draftPost.moderationDetails.moderationDate"},{path:"draftPost.media.wixMedia.image.urlExpirationDate"},{path:"draftPost.media.wixMedia.videoV2.urlExpirationDate"},{path:"draftPost.media.wixMedia.videoV2.resolutions.urlExpirationDate"},{path:"draftPost.media.wixMedia.videoV2.resolutions.poster.urlExpirationDate"},{path:"draftPost.media.wixMedia.videoV2.posters.urlExpirationDate"}]},{transformFn:eV.transformRESTFloatToSDKFloat,paths:[{path:"draftPost.coverMedia.image.focalPoint.x"},{path:"draftPost.coverMedia.image.focalPoint.y"},{path:"draftPost.coverMedia.video.thumbnail.focalPoint.x"},{path:"draftPost.coverMedia.video.thumbnail.focalPoint.y"},{path:"draftPost.heroImage.focalPoint.x"},{path:"draftPost.heroImage.focalPoint.y"},{path:"draftPost.media.wixMedia.image.focalPoint.x"},{path:"draftPost.media.wixMedia.image.focalPoint.y"},{path:"draftPost.media.wixMedia.videoV2.resolutions.poster.focalPoint.x"},{path:"draftPost.media.wixMedia.videoV2.resolutions.poster.focalPoint.y"},{path:"draftPost.media.wixMedia.videoV2.posters.focalPoint.x"},{path:"draftPost.media.wixMedia.videoV2.posters.focalPoint.y"}
1,{path:"draftPost.richContent.nodes.galleryData.items.image.media.duration"},{path:"draftPost.richContent.nodes.galleryData.items.video.media.duration"},{path:"draftPost.richContent.nodes.galleryData.items.video.thumbnail.duration"},{path:"draftPost.richContent.nodes.galleryData.options.item.ratio"},{path:"draftPost.richContent.nodes.imageData.image.duration"},{path:"draftPost.richContent.nodes.mapData.mapSettings.lat"},{path:"draftPost.richContent.nodes.mapData.mapSettings.lng"},{path:"draftPost.richContent.nodes.pollData.poll.image.duration"},{path:"draftPost.richContent.nodes.pollData.poll.options.image.duration"},{path:"draftPost.richContent.nodes.pollData.design.poll.background.image.duration"},{path:"draftPost.richContent.nodes.appEmbedData.image.duration"},{path:"draftPost.richContent.nodes.videoData.video.duration"},{path:"draftPost.richContent.nodes.videoData.thumbnail.duration"},{path:"draftPost.richContent.nodes.audioData.audio.duration"},{path:"draftPost.richContent.nodes.audioData.coverImage.duration"}]}])}});r?.onSiteCall?.();try{let t=await o.request(i);return r?.onSuccess?.(t),(0,er.renameKeysFromRESTResponseToSDKResponse)((0,en.transformPaths)(t.data,[{transformFn:eI,paths:[{path:"draftPost.heroImage"},{path:"draftPost.coverMedia.image"},{path:"draftPost.media.wixMedia.image"}]},{transformFn:eA,paths:[{path:"draftPost.url"},{path:"draftPost.translations.url"}]},{transformFn:ot,paths:[{path:"draftPost.coverMedia.video"}]},{transformFn:oe,paths:[{path:"draftPost.media.wixMedia.videoV2"}]}]))}catch(a){let t=(0,eo.transformError)(a,{spreadPathsToArguments:{},explicitPathsToArguments:{draftPost:"$[0]",publish:"$[1].publish",fieldsets:"$[1].fieldsets"},singleArgumentUnchanged:!1},["draftPost","options"]);throw r?.onError?.(a),t}}async function os(t,a){var e;let{httpClient:o,sideEffects:r}=arguments[2],i=(e=(0,en.transformPaths)((0,er.renameKeysFromSDKRequestToRESTRequest)({draftPosts:t,publish:a?.publish,returnFullEntity:a?.returnFullEntity,fieldsets:a?.fieldsets}),[{transformFn:eM,paths:[{path:"draftPosts.heroImage"},{path:"draftPosts.coverMedia.image"},{path:"draftPosts.media.wixMedia.image"}]},{transformFn:ex,paths:[{path:"draftPosts.url"},{path:"draftPosts.translations.url"}]},{transformFn:e4,paths:[{path:"draftPosts.coverMedia.video"}]},{transformFn:oa,paths:[{path:"draftPosts.media.wixMedia.videoV2"}]}]),function({host:t}){let a=(0,en.transformPaths)(e,[{transformFn:eB,paths:[{path:"fieldMask"}]},{transformFn:es.transformSDKTimestampToRESTTimestamp,paths:[{path:"draftPosts.editedDate"},{path:"draftPosts.scheduledPublishDate"},{path:"draftPosts.firstPublishedDate"},{path:"draftPosts.createdDate"},{path:"draftPosts.coverMedia.image.urlExpirationDate"},{path:"draftPosts.coverMedia.video.thumbnail.urlExpirationDate"},{path:"draftPosts.heroImage.urlExpirationDate"},{path:"draftPosts.richContent.metadata.createdTimestamp"},{path:"draftPosts.richContent.metadata.updatedTimestamp"},{path:"draftPosts.moderationDetails.submittedDate"},{path:"draftPosts.moderationDetails.moderationDate"},{path:"draftPosts.media.wixMedia.image.urlExpirationDate"},{path:"draftPosts.media.wixMedia.videoV2.urlExpirationDate"},{path:"draftPosts.media.wixMedia.videoV2.resolutions.urlExpirationDate"},{path:"draftPosts.media.wixMedia.videoV2.resolutions.poster.urlExpirationDate"},{path:"draftPosts.media.wixMedia.videoV2.posters.urlExpirationDate"}]},{transformFn:eV.transformSDKFloatToRESTFloat,paths:[{path:"draftPosts.coverMedia.image.focalPoint.x"},{path:"draftPosts.coverMedia.image.focalPoint.y"},{path:"draftPosts.coverMedia.video.thumbnail.focalPoint.x"},{path:"draftPosts.coverMedia.video.thumbnail.focalPoint.y"},{path:"draftPosts.heroImage.focalPoint.x"},{path:"draftPosts.heroImage.focalPoint.y"},{path:"draftPosts.media.wixMedia.image.focalPoint.x"},{path:"draftPosts.media.wixMedia.image.focalPoint.y"},{path:"draftPosts.media.wixMedia.videoV2.resolutions.poster.focalPoint.x"},{path:"draftPosts.media.wixMedia.videoV2.resolutions.poster.focalPoint.y"},{path:"draftPosts.media.wixMedia.videoV2.posters.focalPoint.x"},{path:"draftPosts.media.wixMedia.videoV2.posters.focalPoint.y"},{path:"draftPosts.richContent.nodes.galleryData.items.image.media.duration"},{path:"draftPosts.richContent.nodes.galleryData.items.video.media.duration"},{path:"draftPosts.richContent.nodes.galleryData.items.video.thumbnail.duration"},{path:"draftPosts.richContent.nodes.galleryData.options.item.ratio"},{path:"draftPosts.richContent.nodes.imageData.image.duration"},{path:"draftPosts.richContent.nodes.mapData.mapSettings.lat"},{path:"draftPosts.richContent.nodes.mapData.mapSettings.lng"},{path:"draftPosts.richContent.nodes.pollData.poll.image.duration"},{path:"draftPosts.richContent.nodes.pollData.poll.options.image.duration"},{path:"draftPosts.richContent.nodes.pollData.design.poll.background.image.duration"},{path:"draftPosts.richContent.nodes.appEmbedData.image.duration"},{path:"draftPosts.richContent.nodes.videoData.video.duration"},{path:"draftPosts.richContent.nodes.videoData.thumbnail.duration"},{path:"draftPosts.richContent.nodes.audioData.audio.duration"},{path:"draftPosts.richContent.nodes.audioData.coverImage.duration"}]}]);return{entityFqdn:"wix.blog.v3.draft",method:"POST",methodFqn:"com.wixpress.npm.communities.platformized.blog.v3.DraftPostService.BulkCreateDraftPosts",packageName:or,url:oo({protoPath:"/v3/bulk/draft-posts/create",data:a,host:t}),data:a,transformResponse:t=>(0,en.transformPaths)(t,[{transformFn:es.transformRESTTimestampToSDKTimestamp,paths:[{path:"results.item.editedDate"},{path:"results.item.scheduledPublishDate"},{path:"results.item.firstPublishedDate"},{path:"results.item.createdDate"},{path:"results.item.coverMedia.image.urlExpirationDate"},{path:"results.item.coverMedia.video.thumbnail.urlExpirationDate"},{path:"results.item.heroImage.urlExpirationDate"}
1,{path:"results.item.richContent.metadata.createdTimestamp"},{path:"results.item.richContent.metadata.updatedTimestamp"},{path:"results.item.moderationDetails.submittedDate"},{path:"results.item.moderationDetails.moderationDate"},{path:"results.item.media.wixMedia.image.urlExpirationDate"},{path:"results.item.media.wixMedia.videoV2.urlExpirationDate"},{path:"results.item.media.wixMedia.videoV2.resolutions.urlExpirationDate"},{path:"results.item.media.wixMedia.videoV2.resolutions.poster.urlExpirationDate"},{path:"results.item.media.wixMedia.videoV2.posters.urlExpirationDate"}]},{transformFn:eV.transformRESTFloatToSDKFloat,paths:[{path:"results.item.coverMedia.image.focalPoint.x"},{path:"results.item.coverMedia.image.focalPoint.y"},{path:"results.item.coverMedia.video.thumbnail.focalPoint.x"},{path:"results.item.coverMedia.video.thumbnail.focalPoint.y"},{path:"results.item.heroImage.focalPoint.x"},{path:"results.item.heroImage.focalPoint.y"},{path:"results.item.media.wixMedia.image.focalPoint.x"},{path:"results.item.media.wixMedia.image.focalPoint.y"},{path:"results.item.media.wixMedia.videoV2.resolutions.poster.focalPoint.x"},{path:"results.item.media.wixMedia.videoV2.resolutions.poster.focalPoint.y"},{path:"results.item.media.wixMedia.videoV2.posters.focalPoint.x"},{path:"results.item.media.wixMedia.videoV2.posters.focalPoint.y"},{path:"results.item.richContent.nodes.galleryData.items.image.media.duration"},{path:"results.item.richContent.nodes.galleryData.items.video.media.duration"},{path:"results.item.richContent.nodes.galleryData.items.video.thumbnail.duration"},{path:"results.item.richContent.nodes.galleryData.options.item.ratio"},{path:"results.item.richContent.nodes.imageData.image.duration"},{path:"results.item.richContent.nodes.mapData.mapSettings.lat"},{path:"results.item.richContent.nodes.mapData.mapSettings.lng"},{path:"results.item.richContent.nodes.pollData.poll.image.duration"},{path:"results.item.richContent.nodes.pollData.poll.options.image.duration"},{path:"results.item.richContent.nodes.pollData.design.poll.background.image.duration"},{path:"results.item.richContent.nodes.appEmbedData.image.duration"},{path:"results.item.richContent.nodes.videoData.video.duration"},{path:"results.item.richContent.nodes.videoData.thumbnail.duration"},{path:"results.item.richContent.nodes.audioData.audio.duration"},{path:"results.item.richContent.nodes.audioData.coverImage.duration"}]}])}});r?.onSiteCall?.();try{let t=await o.request(i);return r?.onSuccess?.(t),(0,er.renameKeysFromRESTResponseToSDKResponse)((0,en.transformPaths)(t.data,[{transformFn:eI,paths:[{path:"results.item.heroImage"},{path:"results.item.coverMedia.image"},{path:"results.item.media.wixMedia.image"}]},{transformFn:eA,paths:[{path:"results.item.url"},{path:"results.item.translations.url"}]},{transformFn:ot,paths:[{path:"results.item.coverMedia.video"}]},{transformFn:oe,paths:[{path:"results.item.media.wixMedia.videoV2"}]}]))}catch(a){let t=(0,eo.transformError)(a,{spreadPathsToArguments:{},explicitPathsToArguments:{draftPosts:"$[0]",publish:"$[1].publish",returnFullEntity:"$[1].returnFullEntity",fieldsets:"$[1].fieldsets"},singleArgumentUnchanged:!1},["draftPosts","options"]);throw r?.onError?.(a),t}}async function on(t){var a;let{httpClient:e,sideEffects:o}=arguments[1],r=(a=(0,en.transformPaths)((0,er.renameKeysFromSDKRequestToRESTRequest)({draftPosts:t?.draftPosts,action:t?.action,scheduledPublishDate:t?.scheduledPublishDate,returnFullEntity:t?.returnFullEntity,fieldsets:t?.fieldsets}),[{transformFn:eM,paths:[{path:"draftPosts.draftPost.heroImage"},{path:"draftPosts.draftPost.coverMedia.image"},{path:"draftPosts.draftPost.media.wixMedia.image"}]},{transformFn:ex,paths:[{path:"draftPosts.draftPost.url"},{path:"draftPosts.draftPost.translations.url"}]},{transformFn:e4,paths:[{path:"draftPosts.draftPost.coverMedia.video"}]},{transformFn:oa,paths:[{path:"draftPosts.draftPost.media.wixMedia.videoV2"}]}]),function({host:t}){let e=(0,en.transformPaths)(a,[{transformFn:es.transformSDKTimestampToRESTTimestamp,paths:[{path:"scheduledPublishDate"},{path:"draftPosts.draftPost.editedDate"},{path:"draftPosts.draftPost.scheduledPublishDate"},{path:"draftPosts.draftPost.firstPublishedDate"},{path:"draftPosts.draftPost.createdDate"},{path:"draftPosts.draftPost.coverMedia.image.urlExpirationDate"},{path:"draftPosts.draftPost.coverMedia.video.thumbnail.urlExpirationDate"},{path:"draftPosts.draftPost.heroImage.urlExpirationDate"}
1,{path:"draftPosts.draftPost.richContent.metadata.createdTimestamp"},{path:"draftPosts.draftPost.richContent.metadata.updatedTimestamp"},{path:"draftPosts.draftPost.moderationDetails.submittedDate"},{path:"draftPosts.draftPost.moderationDetails.moderationDate"},{path:"draftPosts.draftPost.media.wixMedia.image.urlExpirationDate"},{path:"draftPosts.draftPost.media.wixMedia.videoV2.urlExpirationDate"},{path:"draftPosts.draftPost.media.wixMedia.videoV2.resolutions.urlExpirationDate"},{path:"draftPosts.draftPost.media.wixMedia.videoV2.resolutions.poster.urlExpirationDate"},{path:"draftPosts.draftPost.media.wixMedia.videoV2.posters.urlExpirationDate"}]},{transformFn:eB,paths:[{path:"draftPosts.fieldMask"}]},{transformFn:eV.transformSDKFloatToRESTFloat,paths:[{path:"draftPosts.draftPost.coverMedia.image.focalPoint.x"},{path:"draftPosts.draftPost.coverMedia.image.focalPoint.y"},{path:"draftPosts.draftPost.coverMedia.video.thumbnail.focalPoint.x"},{path:"draftPosts.draftPost.coverMedia.video.thumbnail.focalPoint.y"},{path:"draftPosts.draftPost.heroImage.focalPoint.x"},{path:"draftPosts.draftPost.heroImage.focalPoint.y"},{path:"draftPosts.draftPost.media.wixMedia.image.focalPoint.x"},{path:"draftPosts.draftPost.media.wixMedia.image.focalPoint.y"},{path:"draftPosts.draftPost.media.wixMedia.videoV2.resolutions.poster.focalPoint.x"},{path:"draftPosts.draftPost.media.wixMedia.videoV2.resolutions.poster.focalPoint.y"},{path:"draftPosts.draftPost.media.wixMedia.videoV2.posters.focalPoint.x"},{path:"draftPosts.draftPost.media.wixMedia.videoV2.posters.focalPoint.y"},{path:"draftPosts.draftPost.richContent.nodes.galleryData.items.image.media.duration"},{path:"draftPosts.draftPost.richContent.nodes.galleryData.items.video.media.duration"},{path:"draftPosts.draftPost.richContent.nodes.galleryData.items.video.thumbnail.duration"},{path:"draftPosts.draftPost.richContent.nodes.galleryData.options.item.ratio"},{path:"draftPosts.draftPost.richContent.nodes.imageData.image.duration"},{path:"draftPosts.draftPost.richContent.nodes.mapData.mapSettings.lat"},{path:"draftPosts.draftPost.richContent.nodes.mapData.mapSettings.lng"},{path:"draftPosts.draftPost.richContent.nodes.pollData.poll.image.duration"},{path:"draftPosts.draftPost.richContent.nodes.pollData.poll.options.image.duration"},{path:"draftPosts.draftPost.richContent.nodes.pollData.design.poll.background.image.duration"},{path:"draftPosts.draftPost.richContent.nodes.appEmbedData.image.duration"},{path:"draftPosts.draftPost.richContent.nodes.videoData.video.duration"},{path:"draftPosts.draftPost.richContent.nodes.videoData.thumbnail.duration"},{path:"draftPosts.draftPost.richContent.nodes.audioData.audio.duration"},{path:"draftPosts.draftPost.richContent.nodes.audioData.coverImage.duration"}]}]);return{entityFqdn:"wix.blog.v3.draft",method:"PATCH",methodFqn:"com.wixpress.npm.communities.platformized.blog.v3.DraftPostService.BulkUpdateDraftPosts",packageName:or,url:oo({protoPath:"/v3/draft-posts/update",data:e,host:t}),data:e,transformResponse:t=>(0,en.transformPaths)(t,[{transformFn:es.transformRESTTimestampToSDKTimestamp,paths:[{path:"results.item.editedDate"},{path:"results.item.scheduledPublishDate"},{path:"results.item.firstPublishedDate"},{path:"results.item.createdDate"},{path:"results.item.coverMedia.image.urlExpirationDate"},{path:"results.item.coverMedia.video.thumbnail.urlExpirationDate"},{path:"results.item.heroImage.urlExpirationDate"},{path:"results.item.richContent.metadata.createdTimestamp"},{path:"results.item.richContent.metadata.updatedTimestamp"},{path:"results.item.moderationDetails.submittedDate"},{path:"results.item.moderationDetails.moderationDate"},{path:"results.item.media.wixMedia.image.urlExpirationDate"},{path:"results.item.media.wixMedia.videoV2.urlExpirationDate"},{path:"results.item.media.wixMedia.videoV2.resolutions.urlExpirationDate"},{path:"results.item.media.wixMedia.videoV2.resolutions.poster.urlExpirationDate"},{path:"results.item.media.wixMedia.videoV2.posters.urlExpirationDate"}]},{transformFn:eV.transformRESTFloatToSDKFloat,paths:[{path:"results.item.coverMedia.image.focalPoint.x"},{path:"results.item.coverMedia.image.focalPoint.y"},{path:"results.item.coverMedia.video.thumbnail.focalPoint.x"},{path:"results.item.coverMedia.video.thumbnail.focalPoint.y"},{path:"results.item.heroImage.focalPoint.x"},{path:"results.item.heroImage.focalPoint.y"},{path:"results.item.media.wixMedia.image.focalPoint.x"},{path:"results.item.media.wixMedia.image.focalPoint.y"},{path:"results.item.media.wixMedia.videoV2.resolutions.poster.focalPoint.x"},{path:"results.item.media.wixMedia.videoV2.resolutions.poster.focalPoint.y"},{path:"results.item.media.wixMedia.videoV2.posters.focalPoint.x"},{path:"results.item.media.wixMedia.videoV2.posters.focalPoint.y"}
1,{path:"results.item.richContent.nodes.galleryData.items.image.media.duration"},{path:"results.item.richContent.nodes.galleryData.items.video.media.duration"},{path:"results.item.richContent.nodes.galleryData.items.video.thumbnail.duration"},{path:"results.item.richContent.nodes.galleryData.options.item.ratio"},{path:"results.item.richContent.nodes.imageData.image.duration"},{path:"results.item.richContent.nodes.mapData.mapSettings.lat"},{path:"results.item.richContent.nodes.mapData.mapSettings.lng"},{path:"results.item.richContent.nodes.pollData.poll.image.duration"},{path:"results.item.richContent.nodes.pollData.poll.options.image.duration"},{path:"results.item.richContent.nodes.pollData.design.poll.background.image.duration"},{path:"results.item.richContent.nodes.appEmbedData.image.duration"},{path:"results.item.richContent.nodes.videoData.video.duration"},{path:"results.item.richContent.nodes.videoData.thumbnail.duration"},{path:"results.item.richContent.nodes.audioData.audio.duration"},{path:"results.item.richContent.nodes.audioData.coverImage.duration"}]}])}});o?.onSiteCall?.();try{let t=await e.request(r);return o?.onSuccess?.(t),(0,er.renameKeysFromRESTResponseToSDKResponse)((0,en.transformPaths)(t.data,[{transformFn:eI,paths:[{path:"results.item.heroImage"},{path:"results.item.coverMedia.image"},{path:"results.item.media.wixMedia.image"}]},{transformFn:eA,paths:[{path:"results.item.url"},{path:"results.item.translations.url"}]},{transformFn:ot,paths:[{path:"results.item.coverMedia.video"}]},{transformFn:oe,paths:[{path:"results.item.media.wixMedia.videoV2"}]}]))}catch(a){let t=(0,eo.transformError)(a,{spreadPathsToArguments:{},explicitPathsToArguments:{draftPosts:"$[0].draftPosts",action:"$[0].action",scheduledPublishDate:"$[0].scheduledPublishDate",returnFullEntity:"$[0].returnFullEntity",fieldsets:"$[0].fieldsets"},singleArgumentUnchanged:!1},["options"]);throw o?.onError?.(a),t}}async function od(t){var a;let{httpClient:e,sideEffects:o}=arguments[1],r=(a=(0,er.renameKeysFromSDKRequestToRESTRequest)({language:t?.language,sort:t?.sort,paging:t?.paging,fieldsets:t?.fieldsets,draftPostIds:t?.draftPostIds}),function({host:t}){return{entityFqdn:"wix.blog.v3.draft",method:"GET",methodFqn:"com.wixpress.npm.communities.platformized.blog.v3.DraftPostService.ListDeletedDraftPosts",packageName:or,url:oo({protoPath:"/v3/draft-posts/trash-bin",data:a,host:t}),params:(0,ei.toURLSearchParams)(a),transformResponse:t=>(0,en.transformPaths)(t,[{transformFn:es.transformRESTTimestampToSDKTimestamp,paths:[{path:"draftPosts.editedDate"},{path:"draftPosts.scheduledPublishDate"},{path:"draftPosts.firstPublishedDate"},{path:"draftPosts.createdDate"},{path:"draftPosts.coverMedia.image.urlExpirationDate"},{path:"draftPosts.coverMedia.video.thumbnail.urlExpirationDate"},{path:"draftPosts.heroImage.urlExpirationDate"},{path:"draftPosts.richContent.metadata.createdTimestamp"},{path:"draftPosts.richContent.metadata.updatedTimestamp"},{path:"draftPosts.moderationDetails.submittedDate"},{path:"draftPosts.moderationDetails.moderationDate"},{path:"draftPosts.media.wixMedia.image.urlExpirationDate"},{path:"draftPosts.media.wixMedia.videoV2.urlExpirationDate"},{path:"draftPosts.media.wixMedia.videoV2.resolutions.urlExpirationDate"},{path:"draftPosts.media.wixMedia.videoV2.resolutions.poster.urlExpirationDate"},{path:"draftPosts.media.wixMedia.videoV2.posters.urlExpirationDate"}]},{transformFn:eV.transformRESTFloatToSDKFloat,paths:[{path:"draftPosts.coverMedia.image.focalPoint.x"},{path:"draftPosts.coverMedia.image.focalPoint.y"},{path:"draftPosts.coverMedia.video.thumbnail.focalPoint.x"},{path:"draftPosts.coverMedia.video.thumbnail.focalPoint.y"},{path:"draftPosts.heroImage.focalPoint.x"},{path:"draftPosts.heroImage.focalPoint.y"},{path:"draftPosts.media.wixMedia.image.focalPoint.x"},{path:"draftPosts.media.wixMedia.image.focalPoint.y"},{path:"draftPosts.media.wixMedia.videoV2.resolutions.poster.focalPoint.x"},{path:"draftPosts.media.wixMedia.videoV2.resolutions.poster.focalPoint.y"},{path:"draftPosts.media.wixMedia.videoV2.posters.focalPoint.x"},{path:"draftPosts.media.wixMedia.videoV2.posters.focalPoint.y"},{path:"draftPosts.richContent.nodes.galleryData.items.image.media.duration"},{path:"draftPosts.richContent.nodes.galleryData.items.video.media.duration"},{path:"draftPosts.richContent.nodes.galleryData.items.video.thumbnail.duration"},{path:"draftPosts.richContent.nodes.galleryData.options.item.ratio"},{path:"draftPosts.richContent.nodes.imageData.image.duration"},{path:"draftPosts.richContent.nodes.mapData.mapSettings.lat"},{path:"draftPosts.richContent.nodes.mapData.mapSettings.lng"},{path:"draftPosts.richContent.nodes.pollData.poll.image.duration"},{path:"draftPosts.richContent.nodes.pollData.poll.options.image.duration"},{path:"draftPosts.richContent.nodes.pollData.design.poll.background.image.duration"},{path:"draftPosts.richContent.nodes.appEmbedData.image.duration"},{path:"draftPosts.richContent.nodes.videoData.video.duration"},{path:"draftPosts.richContent.nodes.videoData.thumbnail.duration"},{path:"draftPosts.richContent.nodes.audioData.audio.duration"},{path:"draftPosts.richContent.nodes.audioData.coverImage.duration"}]}])}});o?.onSiteCall?.();try{let t=await e.request(r);return o?.onSuccess?.(t),(0,er.renameKeysFromRESTResponseToSDKResponse)((0,en.transformPaths)(t.data,[{transformFn:eI,paths:[{path:"draftPosts.heroImage"},{path:"draftPosts.coverMedia.image"},{path:"draftPosts.media.wixMedia.image"}]},{transformFn:eA,paths:[{path:"draftPosts.url"},{path:"draftPosts.translations.url"}]},{transformFn:ot,paths:[{path:"draftPosts.coverMedia.video"}]},{transformFn:oe,paths:[{path:"draftPosts.media.wixMedia.videoV2"}]}]))}catch(a){let t=(0,eo.transformError)(a,{spreadPathsToArguments:{},explicitPathsToArguments:{language:"$[0].language",sort:"$[0].sort",paging:"$[0].paging",fieldsets:"$[0].fieldsets",draftPostIds:"$[0].draftPostIds"},singleArgumentUnchanged:!1},["options"]);throw o?.onError?.(a),t}}
1async function op(t,a){var e;let{httpClient:o,sideEffects:r}=arguments[2],i=(e=(0,er.renameKeysFromSDKRequestToRESTRequest)({draftPostId:t,fieldsets:a?.fieldsets}),function({host:t}){return{entityFqdn:"wix.blog.v3.draft",method:"GET",methodFqn:"com.wixpress.npm.communities.platformized.blog.v3.DraftPostService.GetDraftPost",packageName:or,url:oo({protoPath:"/v3/draft-posts/{draftPostId}",data:e,host:t}),params:(0,ei.toURLSearchParams)(e),transformResponse:t=>(0,en.transformPaths)(t,[{transformFn:es.transformRESTTimestampToSDKTimestamp,paths:[{path:"draftPost.editedDate"},{path:"draftPost.scheduledPublishDate"},{path:"draftPost.firstPublishedDate"},{path:"draftPost.createdDate"},{path:"draftPost.coverMedia.image.urlExpirationDate"},{path:"draftPost.coverMedia.video.thumbnail.urlExpirationDate"},{path:"draftPost.heroImage.urlExpirationDate"},{path:"draftPost.richContent.metadata.createdTimestamp"},{path:"draftPost.richContent.metadata.updatedTimestamp"},{path:"draftPost.moderationDetails.submittedDate"},{path:"draftPost.moderationDetails.moderationDate"},{path:"draftPost.media.wixMedia.image.urlExpirationDate"},{path:"draftPost.media.wixMedia.videoV2.urlExpirationDate"},{path:"draftPost.media.wixMedia.videoV2.resolutions.urlExpirationDate"},{path:"draftPost.media.wixMedia.videoV2.resolutions.poster.urlExpirationDate"},{path:"draftPost.media.wixMedia.videoV2.posters.urlExpirationDate"}]},{transformFn:eV.transformRESTFloatToSDKFloat,paths:[{path:"draftPost.coverMedia.image.focalPoint.x"},{path:"draftPost.coverMedia.image.focalPoint.y"},{path:"draftPost.coverMedia.video.thumbnail.focalPoint.x"},{path:"draftPost.coverMedia.video.thumbnail.focalPoint.y"},{path:"draftPost.heroImage.focalPoint.x"},{path:"draftPost.heroImage.focalPoint.y"},{path:"draftPost.media.wixMedia.image.focalPoint.x"},{path:"draftPost.media.wixMedia.image.focalPoint.y"},{path:"draftPost.media.wixMedia.videoV2.resolutions.poster.focalPoint.x"},{path:"draftPost.media.wixMedia.videoV2.resolutions.poster.focalPoint.y"},{path:"draftPost.media.wixMedia.videoV2.posters.focalPoint.x"},{path:"draftPost.media.wixMedia.videoV2.posters.focalPoint.y"},{path:"draftPost.richContent.nodes.galleryData.items.image.media.duration"},{path:"draftPost.richContent.nodes.galleryData.items.video.media.duration"},{path:"draftPost.richContent.nodes.galleryData.items.video.thumbnail.duration"},{path:"draftPost.richContent.nodes.galleryData.options.item.ratio"},{path:"draftPost.richContent.nodes.imageData.image.duration"},{path:"draftPost.richContent.nodes.mapData.mapSettings.lat"},{path:"draftPost.richContent.nodes.mapData.mapSettings.lng"},{path:"draftPost.richContent.nodes.pollData.poll.image.duration"},{path:"draftPost.richContent.nodes.pollData.poll.options.image.duration"},{path:"draftPost.richContent.nodes.pollData.design.poll.background.image.duration"},{path:"draftPost.richContent.nodes.appEmbedData.image.duration"},{path:"draftPost.richContent.nodes.videoData.video.duration"},{path:"draftPost.richContent.nodes.videoData.thumbnail.duration"},{path:"draftPost.richContent.nodes.audioData.audio.duration"},{path:"draftPost.richContent.nodes.audioData.coverImage.duration"}]}])}});r?.onSiteCall?.();try{let t=await o.request(i);return r?.onSuccess?.(t),(0,er.renameKeysFromRESTResponseToSDKResponse)((0,en.transformPaths)(t.data,[{transformFn:eI,paths:[{path:"draftPost.heroImage"},{path:"draftPost.coverMedia.image"},{path:"draftPost.media.wixMedia.image"}]},{transformFn:eA,paths:[{path:"draftPost.url"},{path:"draftPost.translations.url"}]},{transformFn:ot,paths:[{path:"draftPost.coverMedia.video"}]},{transformFn:oe,paths:[{path:"draftPost.media.wixMedia.videoV2"}]}]))}catch(a){let t=(0,eo.transformError)(a,{spreadPathsToArguments:{},explicitPathsToArguments:{draftPostId:"$[0]",fieldsets:"$[1].fieldsets"},singleArgumentUnchanged:!1},["draftPostId","options"]);throw r?.onError?.(a),t}}async function om(t,a,e){var o;let{httpClient:r,sideEffects:i}=arguments[3],s=(o=(0,en.transformPaths)((0,er.renameKeysFromSDKRequestToRESTRequest)({draftPost:{...a,id:t},action:e?.action,scheduledPublishDate:e?.scheduledPublishDate,fieldsets:e?.fieldsets}),[{transformFn:eM,paths:[{path:"draftPost.heroImage"},{path:"draftPost.coverMedia.image"},{path:"draftPost.media.wixMedia.image"}]},{transformFn:ex,paths:[{path:"draftPost.url"},{path:"draftPost.translations.url"}]},{transformFn:e4,paths:[{path:"draftPost.coverMedia.video"}]},{transformFn:oa,paths:[{path:"draftPost.media.wixMedia.videoV2"}]}]),function({host:t}){let a=(0,en.transformPaths)(o,[{transformFn:eB,paths:[{path:"fieldMask"}]},{transformFn:es.transformSDKTimestampToRESTTimestamp,paths:[{path:"scheduledPublishDate"},{path:"draftPost.editedDate"},{path:"draftPost.scheduledPublishDate"},{path:"draftPost.firstPublishedDate"},{path:"draftPost.createdDate"},{path:"draftPost.coverMedia.image.urlExpirationDate"},{path:"draftPost.coverMedia.video.thumbnail.urlExpirationDate"},{path:"draftPost.heroImage.urlExpirationDate"}
1,{path:"draftPost.richContent.metadata.createdTimestamp"},{path:"draftPost.richContent.metadata.updatedTimestamp"},{path:"draftPost.moderationDetails.submittedDate"},{path:"draftPost.moderationDetails.moderationDate"},{path:"draftPost.media.wixMedia.image.urlExpirationDate"},{path:"draftPost.media.wixMedia.videoV2.urlExpirationDate"},{path:"draftPost.media.wixMedia.videoV2.resolutions.urlExpirationDate"},{path:"draftPost.media.wixMedia.videoV2.resolutions.poster.urlExpirationDate"},{path:"draftPost.media.wixMedia.videoV2.posters.urlExpirationDate"}]},{transformFn:eV.transformSDKFloatToRESTFloat,paths:[{path:"draftPost.coverMedia.image.focalPoint.x"},{path:"draftPost.coverMedia.image.focalPoint.y"},{path:"draftPost.coverMedia.video.thumbnail.focalPoint.x"},{path:"draftPost.coverMedia.video.thumbnail.focalPoint.y"},{path:"draftPost.heroImage.focalPoint.x"},{path:"draftPost.heroImage.focalPoint.y"},{path:"draftPost.media.wixMedia.image.focalPoint.x"},{path:"draftPost.media.wixMedia.image.focalPoint.y"},{path:"draftPost.media.wixMedia.videoV2.resolutions.poster.focalPoint.x"},{path:"draftPost.media.wixMedia.videoV2.resolutions.poster.focalPoint.y"},{path:"draftPost.media.wixMedia.videoV2.posters.focalPoint.x"},{path:"draftPost.media.wixMedia.videoV2.posters.focalPoint.y"},{path:"draftPost.richContent.nodes.galleryData.items.image.media.duration"},{path:"draftPost.richContent.nodes.galleryData.items.video.media.duration"},{path:"draftPost.richContent.nodes.galleryData.items.video.thumbnail.duration"},{path:"draftPost.richContent.nodes.galleryData.options.item.ratio"},{path:"draftPost.richContent.nodes.imageData.image.duration"},{path:"draftPost.richContent.nodes.mapData.mapSettings.lat"},{path:"draftPost.richContent.nodes.mapData.mapSettings.lng"},{path:"draftPost.richContent.nodes.pollData.poll.image.duration"},{path:"draftPost.richContent.nodes.pollData.poll.options.image.duration"},{path:"draftPost.richContent.nodes.pollData.design.poll.background.image.duration"},{path:"draftPost.richContent.nodes.appEmbedData.image.duration"},{path:"draftPost.richContent.nodes.videoData.video.duration"},{path:"draftPost.richContent.nodes.videoData.thumbnail.duration"},{path:"draftPost.richContent.nodes.audioData.audio.duration"},{path:"draftPost.richContent.nodes.audioData.coverImage.duration"}]}]);return{entityFqdn:"wix.blog.v3.draft",method:"PATCH",methodFqn:"com.wixpress.npm.communities.platformized.blog.v3.DraftPostService.UpdateDraftPost",packageName:or,url:oo({protoPath:"/v3/draft-posts/{draftPost.id}",data:a,host:t}),data:a,transformResponse:t=>(0,en.transformPaths)(t,[{transformFn:es.transformRESTTimestampToSDKTimestamp,paths:[{path:"draftPost.editedDate"},{path:"draftPost.scheduledPublishDate"},{path:"draftPost.firstPublishedDate"},{path:"draftPost.createdDate"},{path:"draftPost.coverMedia.image.urlExpirationDate"},{path:"draftPost.coverMedia.video.thumbnail.urlExpirationDate"},{path:"draftPost.heroImage.urlExpirationDate"},{path:"draftPost.richContent.metadata.createdTimestamp"},{path:"draftPost.richContent.metadata.updatedTimestamp"},{path:"draftPost.moderationDetails.submittedDate"},{path:"draftPost.moderationDetails.moderationDate"},{path:"draftPost.media.wixMedia.image.urlExpirationDate"},{path:"draftPost.media.wixMedia.videoV2.urlExpirationDate"},{path:"draftPost.media.wixMedia.videoV2.resolutions.urlExpirationDate"},{path:"draftPost.media.wixMedia.videoV2.resolutions.poster.urlExpirationDate"},{path:"draftPost.media.wixMedia.videoV2.posters.urlExpirationDate"}]},{transformFn:eV.transformRESTFloatToSDKFloat,paths:[{path:"draftPost.coverMedia.image.focalPoint.x"},{path:"draftPost.coverMedia.image.focalPoint.y"},{path:"draftPost.coverMedia.video.thumbnail.focalPoint.x"},{path:"draftPost.coverMedia.video.thumbnail.focalPoint.y"},{path:"draftPost.heroImage.focalPoint.x"},{path:"draftPost.heroImage.focalPoint.y"},{path:"draftPost.media.wixMedia.image.focalPoint.x"},{path:"draftPost.media.wixMedia.image.focalPoint.y"},{path:"draftPost.media.wixMedia.videoV2.resolutions.poster.focalPoint.x"},{path:"draftPost.media.wixMedia.videoV2.resolutions.poster.focalPoint.y"},{path:"draftPost.media.wixMedia.videoV2.posters.focalPoint.x"},{path:"draftPost.media.wixMedia.videoV2.posters.focalPoint.y"}
1,{path:"draftPost.richContent.nodes.galleryData.items.image.media.duration"},{path:"draftPost.richContent.nodes.galleryData.items.video.media.duration"},{path:"draftPost.richContent.nodes.galleryData.items.video.thumbnail.duration"},{path:"draftPost.richContent.nodes.galleryData.options.item.ratio"},{path:"draftPost.richContent.nodes.imageData.image.duration"},{path:"draftPost.richContent.nodes.mapData.mapSettings.lat"},{path:"draftPost.richContent.nodes.mapData.mapSettings.lng"},{path:"draftPost.richContent.nodes.pollData.poll.image.duration"},{path:"draftPost.richContent.nodes.pollData.poll.options.image.duration"},{path:"draftPost.richContent.nodes.pollData.design.poll.background.image.duration"},{path:"draftPost.richContent.nodes.appEmbedData.image.duration"},{path:"draftPost.richContent.nodes.videoData.video.duration"},{path:"draftPost.richContent.nodes.videoData.thumbnail.duration"},{path:"draftPost.richContent.nodes.audioData.audio.duration"},{path:"draftPost.richContent.nodes.audioData.coverImage.duration"}]}])}});i?.onSiteCall?.();try{let t=await r.request(s);return i?.onSuccess?.(t),(0,er.renameKeysFromRESTResponseToSDKResponse)((0,en.transformPaths)(t.data,[{transformFn:eI,paths:[{path:"draftPost.heroImage"},{path:"draftPost.coverMedia.image"},{path:"draftPost.media.wixMedia.image"}]},{transformFn:eA,paths:[{path:"draftPost.url"},{path:"draftPost.translations.url"}]},{transformFn:ot,paths:[{path:"draftPost.coverMedia.video"}]},{transformFn:oe,paths:[{path:"draftPost.media.wixMedia.videoV2"}]}]))}catch(a){let t=(0,eo.transformError)(a,{spreadPathsToArguments:{draftPost:"$[1]"},explicitPathsToArguments:{"draftPost.id":"$[0]",action:"$[2].action",scheduledPublishDate:"$[2].scheduledPublishDate",fieldsets:"$[2].fieldsets"},singleArgumentUnchanged:!1},["_id","draftPost","options"]);throw i?.onError?.(a),t}}async function oh(t,a){var e;let{httpClient:o,sideEffects:r}=arguments[2],i=(e=(0,er.renameKeysFromSDKRequestToRESTRequest)({draftPostId:t,permanent:a?.permanent}),function({host:t}){return{entityFqdn:"wix.blog.v3.draft",method:"DELETE",methodFqn:"com.wixpress.npm.communities.platformized.blog.v3.DraftPostService.DeleteDraftPost",packageName:or,url:oo({protoPath:"/v3/draft-posts/{draftPostId}",data:e,host:t}),params:(0,ei.toURLSearchParams)(e)}});r?.onSiteCall?.();try{let t=await o.request(i);r?.onSuccess?.(t)}catch(a){let t=(0,eo.transformError)(a,{spreadPathsToArguments:{},explicitPathsToArguments:{draftPostId:"$[0]",permanent:"$[1].permanent"},singleArgumentUnchanged:!1},["draftPostId","options"]);throw r?.onError?.(a),t}}async function ol(t){var a;let{httpClient:e,sideEffects:o}=arguments[1],r=(a=(0,er.renameKeysFromSDKRequestToRESTRequest)({draftPostId:t}),function({host:t}){return{entityFqdn:"wix.blog.v3.draft",method:"DELETE",methodFqn:"com.wixpress.npm.communities.platformized.blog.v3.DraftPostService.RemoveFromTrashBin",packageName:or,url:oo({protoPath:"/v3/draft-posts/trash-bin/{draftPostId}",data:a,host:t}),params:(0,ei.toURLSearchParams)(a)}});o?.onSiteCall?.();try{let t=await e.request(r);o?.onSuccess?.(t)}catch(a){let t=(0,eo.transformError)(a,{spreadPathsToArguments:{},explicitPathsToArguments:{draftPostId:"$[0]"},singleArgumentUnchanged:!1},["draftPostId"]);throw o?.onError?.(a),t}}async function ou(t,a){var e;let{httpClient:o,sideEffects:r}=arguments[2],i=(e=(0,er.renameKeysFromSDKRequestToRESTRequest)({postIds:t,permanent:a?.permanent}),function({host:t}){return{entityFqdn:"wix.blog.v3.draft",method:"DELETE",methodFqn:"com.wixpress.npm.communities.platformized.blog.v3.DraftPostService.BulkDeleteDraftPosts",packageName:or,url:oo({protoPath:"/v3/bulk/draft-posts",data:e,host:t}),params:(0,ei.toURLSearchParams)(e),transformResponse:t=>(0,en.transformPaths)(t,[{transformFn:es.transformRESTTimestampToSDKTimestamp,paths:[{path:"results.item.editedDate"},{path:"results.item.scheduledPublishDate"},{path:"results.item.firstPublishedDate"},{path:"results.item.createdDate"},{path:"results.item.coverMedia.image.urlExpirationDate"},{path:"results.item.coverMedia.video.thumbnail.urlExpirationDate"},{path:"results.item.heroImage.urlExpirationDate"}
1,{path:"results.item.richContent.metadata.createdTimestamp"},{path:"results.item.richContent.metadata.updatedTimestamp"},{path:"results.item.moderationDetails.submittedDate"},{path:"results.item.moderationDetails.moderationDate"},{path:"results.item.media.wixMedia.image.urlExpirationDate"},{path:"results.item.media.wixMedia.videoV2.urlExpirationDate"},{path:"results.item.media.wixMedia.videoV2.resolutions.urlExpirationDate"},{path:"results.item.media.wixMedia.videoV2.resolutions.poster.urlExpirationDate"},{path:"results.item.media.wixMedia.videoV2.posters.urlExpirationDate"}]},{transformFn:eV.transformRESTFloatToSDKFloat,paths:[{path:"results.item.coverMedia.image.focalPoint.x"},{path:"results.item.coverMedia.image.focalPoint.y"},{path:"results.item.coverMedia.video.thumbnail.focalPoint.x"},{path:"results.item.coverMedia.video.thumbnail.focalPoint.y"},{path:"results.item.heroImage.focalPoint.x"},{path:"results.item.heroImage.focalPoint.y"},{path:"results.item.media.wixMedia.image.focalPoint.x"},{path:"results.item.media.wixMedia.image.focalPoint.y"},{path:"results.item.media.wixMedia.videoV2.resolutions.poster.focalPoint.x"},{path:"results.item.media.wixMedia.videoV2.resolutions.poster.focalPoint.y"},{path:"results.item.media.wixMedia.videoV2.posters.focalPoint.x"},{path:"results.item.media.wixMedia.videoV2.posters.focalPoint.y"},{path:"results.item.richContent.nodes.galleryData.items.image.media.duration"},{path:"results.item.richContent.nodes.galleryData.items.video.media.duration"},{path:"results.item.richContent.nodes.galleryData.items.video.thumbnail.duration"},{path:"results.item.richContent.nodes.galleryData.options.item.ratio"},{path:"results.item.richContent.nodes.imageData.image.duration"},{path:"results.item.richContent.nodes.mapData.mapSettings.lat"},{path:"results.item.richContent.nodes.mapData.mapSettings.lng"},{path:"results.item.richContent.nodes.pollData.poll.image.duration"},{path:"results.item.richContent.nodes.pollData.poll.options.image.duration"},{path:"results.item.richContent.nodes.pollData.design.poll.background.image.duration"},{path:"results.item.richContent.nodes.appEmbedData.image.duration"},{path:"results.item.richContent.nodes.videoData.video.duration"},{path:"results.item.richContent.nodes.videoData.thumbnail.duration"},{path:"results.item.richContent.nodes.audioData.audio.duration"},{path:"results.item.richContent.nodes.audioData.coverImage.duration"}]}])}});r?.onSiteCall?.();try{let t=await o.request(i);return r?.onSuccess?.(t),(0,er.renameKeysFromRESTResponseToSDKResponse)((0,en.transformPaths)(t.data,[{transformFn:eI,paths:[{path:"results.item.heroImage"},{path:"results.item.coverMedia.image"},{path:"results.item.media.wixMedia.image"}]},{transformFn:eA,paths:[{path:"results.item.url"},{path:"results.item.translations.url"}]},{transformFn:ot,paths:[{path:"results.item.coverMedia.video"}]},{transformFn:oe,paths:[{path:"results.item.media.wixMedia.videoV2"}]}]))}catch(a){let t=(0,eo.transformError)(a,{spreadPathsToArguments:{},explicitPathsToArguments:{postIds:"$[0]",permanent:"$[1].permanent"},singleArgumentUnchanged:!1},["postIds","options"]);throw r?.onError?.(a),t}}async function oc(t){var a;let{httpClient:e,sideEffects:o}=arguments[1],r=(a=(0,er.renameKeysFromSDKRequestToRESTRequest)({status:t?.status,language:t?.language,sort:t?.sort,paging:t?.paging,fieldsets:t?.fieldsets}),function({host:t}){return{entityFqdn:"wix.blog.v3.draft",method:"GET",methodFqn:"com.wixpress.npm.communities.platformized.blog.v3.DraftPostService.ListDraftPosts",packageName:or,url:oo({protoPath:"/v3/draft-posts",data:a,host:t}),params:(0,ei.toURLSearchParams)(a),transformResponse:t=>(0,en.transformPaths)(t,[{transformFn:es.transformRESTTimestampToSDKTimestamp,paths:[{path:"draftPosts.editedDate"},{path:"draftPosts.scheduledPublishDate"},{path:"draftPosts.firstPublishedDate"},{path:"draftPosts.createdDate"},{path:"draftPosts.coverMedia.image.urlExpirationDate"},{path:"draftPosts.coverMedia.video.thumbnail.urlExpirationDate"},{path:"draftPosts.heroImage.urlExpirationDate"},{path:"draftPosts.richContent.metadata.createdTimestamp"},{path:"draftPosts.richContent.metadata.updatedTimestamp"}
1,{path:"draftPosts.moderationDetails.submittedDate"},{path:"draftPosts.moderationDetails.moderationDate"},{path:"draftPosts.media.wixMedia.image.urlExpirationDate"},{path:"draftPosts.media.wixMedia.videoV2.urlExpirationDate"},{path:"draftPosts.media.wixMedia.videoV2.resolutions.urlExpirationDate"},{path:"draftPosts.media.wixMedia.videoV2.resolutions.poster.urlExpirationDate"},{path:"draftPosts.media.wixMedia.videoV2.posters.urlExpirationDate"}]},{transformFn:eV.transformRESTFloatToSDKFloat,paths:[{path:"draftPosts.coverMedia.image.focalPoint.x"},{path:"draftPosts.coverMedia.image.focalPoint.y"},{path:"draftPosts.coverMedia.video.thumbnail.focalPoint.x"},{path:"draftPosts.coverMedia.video.thumbnail.focalPoint.y"},{path:"draftPosts.heroImage.focalPoint.x"},{path:"draftPosts.heroImage.focalPoint.y"},{path:"draftPosts.media.wixMedia.image.focalPoint.x"},{path:"draftPosts.media.wixMedia.image.focalPoint.y"},{path:"draftPosts.media.wixMedia.videoV2.resolutions.poster.focalPoint.x"},{path:"draftPosts.media.wixMedia.videoV2.resolutions.poster.focalPoint.y"},{path:"draftPosts.media.wixMedia.videoV2.posters.focalPoint.x"},{path:"draftPosts.media.wixMedia.videoV2.posters.focalPoint.y"},{path:"draftPosts.richContent.nodes.galleryData.items.image.media.duration"},{path:"draftPosts.richContent.nodes.galleryData.items.video.media.duration"},{path:"draftPosts.richContent.nodes.galleryData.items.video.thumbnail.duration"},{path:"draftPosts.richContent.nodes.galleryData.options.item.ratio"},{path:"draftPosts.richContent.nodes.imageData.image.duration"},{path:"draftPosts.richContent.nodes.mapData.mapSettings.lat"},{path:"draftPosts.richContent.nodes.mapData.mapSettings.lng"},{path:"draftPosts.richContent.nodes.pollData.poll.image.duration"},{path:"draftPosts.richContent.nodes.pollData.poll.options.image.duration"},{path:"draftPosts.richContent.nodes.pollData.design.poll.background.image.duration"},{path:"draftPosts.richContent.nodes.appEmbedData.image.duration"},{path:"draftPosts.richContent.nodes.videoData.video.duration"},{path:"draftPosts.richContent.nodes.videoData.thumbnail.duration"},{path:"draftPosts.richContent.nodes.audioData.audio.duration"},{path:"draftPosts.richContent.nodes.audioData.coverImage.duration"}]}])}});o?.onSiteCall?.();try{let t=await e.request(r);return o?.onSuccess?.(t),(0,er.renameKeysFromRESTResponseToSDKResponse)((0,en.transformPaths)(t.data,[{transformFn:eI,paths:[{path:"draftPosts.heroImage"},{path:"draftPosts.coverMedia.image"},{path:"draftPosts.media.wixMedia.image"}]},{transformFn:eA,paths:[{path:"draftPosts.url"},{path:"draftPosts.translations.url"}]},{transformFn:ot,paths:[{path:"draftPosts.coverMedia.video"}]},{transformFn:oe,paths:[{path:"draftPosts.media.wixMedia.videoV2"}]}]))}catch(a){let t=(0,eo.transformError)(a,{spreadPathsToArguments:{},explicitPathsToArguments:{status:"$[0].status",language:"$[0].language",sort:"$[0].sort",paging:"$[0].paging",fieldsets:"$[0].fieldsets"},singleArgumentUnchanged:!1},["options"]);throw o?.onError?.(a),t}}async function oP(t){var a;let{httpClient:e,sideEffects:o}=arguments[1],r=(a=(0,er.renameKeysFromSDKRequestToRESTRequest)({draftPostId:t}),function({host:t}){return{entityFqdn:"wix.blog.v3.draft",method:"GET",methodFqn:"com.wixpress.npm.communities.platformized.blog.v3.DraftPostService.GetDeletedDraftPost",packageName:or,url:oo({protoPath:"/v3/draft-posts/trash-bin/{draftPostId}",data:a,host:t}),params:(0,ei.toURLSearchParams)(a),transformResponse:t=>(0,en.transformPaths)(t,[{transformFn:es.transformRESTTimestampToSDKTimestamp,paths:[{path:"draftPost.editedDate"},{path:"draftPost.scheduledPublishDate"},{path:"draftPost.firstPublishedDate"},{path:"draftPost.createdDate"},{path:"draftPost.coverMedia.image.urlExpirationDate"},{path:"draftPost.coverMedia.video.thumbnail.urlExpirationDate"},{path:"draftPost.heroImage.urlExpirationDate"},{path:"draftPost.richContent.metadata.createdTimestamp"},{path:"draftPost.richContent.metadata.updatedTimestamp"},{path:"draftPost.moderationDetails.submittedDate"},{path:"draftPost.moderationDetails.moderationDate"},{path:"draftPost.media.wixMedia.image.urlExpirationDate"},{path:"draftPost.media.wixMedia.videoV2.urlExpirationDate"},{path:"draftPost.media.wixMedia.videoV2.resolutions.urlExpirationDate"},{path:"draftPost.media.wixMedia.videoV2.resolutions.poster.urlExpirationDate"},{path:"draftPost.media.wixMedia.videoV2.posters.urlExpirationDate"}]},{transformFn:eV.transformRESTFloatToSDKFloat,paths:[{path:"draftPost.coverMedia.image.focalPoint.x"},{path:"draftPost.coverMedia.image.focalPoint.y"},{path:"draftPost.coverMedia.video.thumbnail.focalPoint.x"},{path:"draftPost.coverMedia.video.thumbnail.focalPoint.y"},{path:"draftPost.heroImage.focalPoint.x"},{path:"draftPost.heroImage.focalPoint.y"},{path:"draftPost.media.wixMedia.image.focalPoint.x"},{path:"draftPost.media.wixMedia.image.focalPoint.y"},{path:"draftPost.media.wixMedia.videoV2.resolutions.poster.focalPoint.x"},{path:"draftPost.media.wixMedia.videoV2.resolutions.poster.focalPoint.y"},{path:"draftPost.media.wixMedia.videoV2.posters.focalPoint.x"},{path:"draftPost.media.wixMedia.videoV2.posters.focalPoint.y"}
1,{path:"draftPost.richContent.nodes.galleryData.items.image.media.duration"},{path:"draftPost.richContent.nodes.galleryData.items.video.media.duration"},{path:"draftPost.richContent.nodes.galleryData.items.video.thumbnail.duration"},{path:"draftPost.richContent.nodes.galleryData.options.item.ratio"},{path:"draftPost.richContent.nodes.imageData.image.duration"},{path:"draftPost.richContent.nodes.mapData.mapSettings.lat"},{path:"draftPost.richContent.nodes.mapData.mapSettings.lng"},{path:"draftPost.richContent.nodes.pollData.poll.image.duration"},{path:"draftPost.richContent.nodes.pollData.poll.options.image.duration"},{path:"draftPost.richContent.nodes.pollData.design.poll.background.image.duration"},{path:"draftPost.richContent.nodes.appEmbedData.image.duration"},{path:"draftPost.richContent.nodes.videoData.video.duration"},{path:"draftPost.richContent.nodes.videoData.thumbnail.duration"},{path:"draftPost.richContent.nodes.audioData.audio.duration"},{path:"draftPost.richContent.nodes.audioData.coverImage.duration"}]}])}});o?.onSiteCall?.();try{let t=await e.request(r);return o?.onSuccess?.(t),(0,er.renameKeysFromRESTResponseToSDKResponse)((0,en.transformPaths)(t.data,[{transformFn:eI,paths:[{path:"draftPost.heroImage"},{path:"draftPost.coverMedia.image"},{path:"draftPost.media.wixMedia.image"}]},{transformFn:eA,paths:[{path:"draftPost.url"},{path:"draftPost.translations.url"}]},{transformFn:ot,paths:[{path:"draftPost.coverMedia.video"}]},{transformFn:oe,paths:[{path:"draftPost.media.wixMedia.videoV2"}]}]))}catch(a){let t=(0,eo.transformError)(a,{spreadPathsToArguments:{},explicitPathsToArguments:{draftPostId:"$[0]"},singleArgumentUnchanged:!1},["draftPostId"]);throw o?.onError?.(a),t}}async function of(t){var a;let{httpClient:e,sideEffects:o}=arguments[1],r=(a=(0,er.renameKeysFromSDKRequestToRESTRequest)({draftPostId:t}),function({host:t}){return{entityFqdn:"wix.blog.v3.draft",method:"POST",methodFqn:"com.wixpress.npm.communities.platformized.blog.v3.DraftPostService.RestoreFromTrashBin",packageName:or,url:oo({protoPath:"/v3/draft-posts/trash-bin/{draftPostId}/restore",data:a,host:t}),data:a,transformResponse:t=>(0,en.transformPaths)(t,[{transformFn:es.transformRESTTimestampToSDKTimestamp,paths:[{path:"draftPost.editedDate"},{path:"draftPost.scheduledPublishDate"},{path:"draftPost.firstPublishedDate"},{path:"draftPost.createdDate"},{path:"draftPost.coverMedia.image.urlExpirationDate"},{path:"draftPost.coverMedia.video.thumbnail.urlExpirationDate"},{path:"draftPost.heroImage.urlExpirationDate"},{path:"draftPost.richContent.metadata.createdTimestamp"},{path:"draftPost.richContent.metadata.updatedTimestamp"},{path:"draftPost.moderationDetails.submittedDate"},{path:"draftPost.moderationDetails.moderationDate"},{path:"draftPost.media.wixMedia.image.urlExpirationDate"},{path:"draftPost.media.wixMedia.videoV2.urlExpirationDate"},{path:"draftPost.media.wixMedia.videoV2.resolutions.urlExpirationDate"},{path:"draftPost.media.wixMedia.videoV2.resolutions.poster.urlExpirationDate"},{path:"draftPost.media.wixMedia.videoV2.posters.urlExpirationDate"}]},{transformFn:eV.transformRESTFloatToSDKFloat,paths:[{path:"draftPost.coverMedia.image.focalPoint.x"},{path:"draftPost.coverMedia.image.focalPoint.y"},{path:"draftPost.coverMedia.video.thumbnail.focalPoint.x"},{path:"draftPost.coverMedia.video.thumbnail.focalPoint.y"},{path:"draftPost.heroImage.focalPoint.x"},{path:"draftPost.heroImage.focalPoint.y"},{path:"draftPost.media.wixMedia.image.focalPoint.x"},{path:"draftPost.media.wixMedia.image.focalPoint.y"},{path:"draftPost.media.wixMedia.videoV2.resolutions.poster.focalPoint.x"},{path:"draftPost.media.wixMedia.videoV2.resolutions.poster.focalPoint.y"},{path:"draftPost.media.wixMedia.videoV2.posters.focalPoint.x"},{path:"draftPost.media.wixMedia.videoV2.posters.focalPoint.y"},{path:"draftPost.richContent.nodes.galleryData.items.image.media.duration"},{path:"draftPost.richContent.nodes.galleryData.items.video.media.duration"},{path:"draftPost.richContent.nodes.galleryData.items.video.thumbnail.duration"},{path:"draftPost.richContent.nodes.galleryData.options.item.ratio"}
1,{path:"draftPost.richContent.nodes.imageData.image.duration"},{path:"draftPost.richContent.nodes.mapData.mapSettings.lat"},{path:"draftPost.richContent.nodes.mapData.mapSettings.lng"},{path:"draftPost.richContent.nodes.pollData.poll.image.duration"},{path:"draftPost.richContent.nodes.pollData.poll.options.image.duration"},{path:"draftPost.richContent.nodes.pollData.design.poll.background.image.duration"},{path:"draftPost.richContent.nodes.appEmbedData.image.duration"},{path:"draftPost.richContent.nodes.videoData.video.duration"},{path:"draftPost.richContent.nodes.videoData.thumbnail.duration"},{path:"draftPost.richContent.nodes.audioData.audio.duration"},{path:"draftPost.richContent.nodes.audioData.coverImage.duration"}]}])}});o?.onSiteCall?.();try{let t=await e.request(r);return o?.onSuccess?.(t),(0,er.renameKeysFromRESTResponseToSDKResponse)((0,en.transformPaths)(t.data,[{transformFn:eI,paths:[{path:"draftPost.heroImage"},{path:"draftPost.coverMedia.image"},{path:"draftPost.media.wixMedia.image"}]},{transformFn:eA,paths:[{path:"draftPost.url"},{path:"draftPost.translations.url"}]},{transformFn:ot,paths:[{path:"draftPost.coverMedia.video"}]},{transformFn:oe,paths:[{path:"draftPost.media.wixMedia.videoV2"}]}]))}catch(a){let t=(0,eo.transformError)(a,{spreadPathsToArguments:{},explicitPathsToArguments:{draftPostId:"$[0]"},singleArgumentUnchanged:!1},["draftPostId"]);throw o?.onError?.(a),t}}async function og(t){var a;let{httpClient:e,sideEffects:o}=arguments[1],r=(a=(0,er.renameKeysFromSDKRequestToRESTRequest)({draftPostId:t}),function({host:t}){return{entityFqdn:"wix.blog.v3.draft",method:"POST",methodFqn:"com.wixpress.npm.communities.platformized.blog.v3.DraftPostService.PublishDraftPost",packageName:or,url:oo({protoPath:"/v3/draft-posts/{draftPostId}/publish",data:a,host:t}),data:a}});o?.onSiteCall?.();try{let t=await e.request(r);return o?.onSuccess?.(t),(0,er.renameKeysFromRESTResponseToSDKResponse)(t.data)}catch(a){let t=(0,eo.transformError)(a,{spreadPathsToArguments:{},explicitPathsToArguments:{draftPostId:"$[0]"},singleArgumentUnchanged:!1},["draftPostId"]);throw o?.onError?.(a),t}}(m=tY||(tY={})).UNKNOWN="UNKNOWN",m.ADMIN="ADMIN",m.ADD_CATEGORIES="ADD_CATEGORIES",m.AUTO_SAVE="AUTO_SAVE",m.COPY_TEMPLATE="COPY_TEMPLATE",m.IMPORT="IMPORT",m.IMPORT_BULK="IMPORT_BULK",m.IMPORT_HTML="IMPORT_HTML",m.IMPORT_PATCH="IMPORT_PATCH",m.LANGUAGE_CHANGE="LANGUAGE_CHANGE",m.MANUAL_SAVE="MANUAL_SAVE",m.MIGRATION="MIGRATION",m.MODERATION="MODERATION",m.MOVE_TO_TRASH="MOVE_TO_TRASH",m.PRICING_PLANS_CHANGE="PRICING_PLANS_CHANGE",m.PROVISION="PROVISION",m.PUBLISH="PUBLISH",m.REASSIGN_OWNER="REASSIGN_OWNER",m.REBLOG="REBLOG",m.RESTORE="RESTORE",m.REVERT_TO_DRAFT="REVERT_TO_DRAFT",m.TRANSLATION="TRANSLATION",m.UNPUBLISH="UNPUBLISH",m.UNSCHEDULE="UNSCHEDULE",m.NEW_EDIT_SESSION="NEW_EDIT_SESSION",m.SCHEDULING_SERVICE_SCHEDULE="SCHEDULING_SERVICE_SCHEDULE",m.SCHEDULING_SERVICE_UNSCHEDULE="SCHEDULING_SERVICE_UNSCHEDULE",m.SCHEDULING_SERVICE_PUBLISH="SCHEDULING_SERVICE_PUBLISH",m.SCHEDULE="SCHEDULE",m.REMOVE_FROM_MODERATION="REMOVE_FROM_MODERATION",m.REJECT_FROM_MODERATION="REJECT_FROM_MODERATION",m.APPROVE_IN_MODERATION="APPROVE_IN_MODERATION",m.DELETE_TAG="DELETE_TAG",m.PIN="PIN",m.UNPIN="UNPIN",m.AI_AUTO_SAVE="AI_AUTO_SAVE",(h=tZ||(tZ={})).PARAGRAPH="PARAGRAPH",h.TEXT="TEXT",h.HEADING="HEADING",h.BULLETED_LIST="BULLETED_LIST",h.ORDERED_LIST="ORDERED_LIST",h.LIST_ITEM="LIST_ITEM",h.BLOCKQUOTE="BLOCKQUOTE",h.CODE_BLOCK="CODE_BLOCK",h.VIDEO="VIDEO",h.DIVIDER="DIVIDER",h.FILE="FILE",h.GALLERY="GALLERY",h.GIF="GIF",h.HTML="HTML",h.IMAGE="IMAGE",h.LINK_PREVIEW="LINK_PREVIEW",h.MAP="MAP",h.POLL="POLL",h.APP_EMBED="APP_EMBED",h.BUTTON="BUTTON",h.COLLAPSIBLE_LIST="COLLAPSIBLE_LIST",h.TABLE="TABLE",h.EMBED="EMBED",h.COLLAPSIBLE_ITEM="COLLAPSIBLE_ITEM",h.COLLAPSIBLE_ITEM_TITLE="COLLAPSIBLE_ITEM_TITLE",h.COLLAPSIBLE_ITEM_BODY="COLLAPSIBLE_ITEM_BODY",h.TABLE_CELL="TABLE_CELL",h.TABLE_ROW="TABLE_ROW",h.EXTERNAL="EXTERNAL",h.AUDIO="AUDIO",h.CAPTION="CAPTION",h.LAYOUT="LAYOUT",h.LAYOUT_CELL="LAYOUT_CELL",(l=tX||(tX={})).CONTENT="CONTENT",l.SMALL="SMALL",l.ORIGINAL="ORIGINAL",l.FULL_WIDTH="FULL_WIDTH",(u=tz||(tz={})).CENTER="CENTER",u.LEFT="LEFT",u.RIGHT="RIGHT",(c=tJ||(tJ={}
1)).LINK="LINK",c.ACTION="ACTION",(P=tQ||(tQ={})).SELF="SELF",P.BLANK="BLANK",P.PARENT="PARENT",P.TOP="TOP",(f=tj||(tj={})).AUTO="AUTO",f.LEFT="LEFT",f.RIGHT="RIGHT",f.CENTER="CENTER",f.JUSTIFY="JUSTIFY",(g=t0||(t0={})).SINGLE="SINGLE",g.DOUBLE="DOUBLE",g.DASHED="DASHED",g.DOTTED="DOTTED",(T=t3||(t3={})).LARGE="LARGE",T.MEDIUM="MEDIUM",T.SMALL="SMALL",(D=t2||(t2={})).CENTER="CENTER",D.LEFT="LEFT",D.RIGHT="RIGHT",(E=t1||(t1={})).NONE="NONE",E.FULL="FULL",E.MINI="MINI",(S=t9||(t9={})).COLLAGE="COLLAGE",S.MASONRY="MASONRY",S.GRID="GRID",S.THUMBNAIL="THUMBNAIL",S.SLIDER="SLIDER",S.SLIDESHOW="SLIDESHOW",S.PANORAMA="PANORAMA",S.COLUMN="COLUMN",S.MAGIC="MAGIC",S.FULLSIZE="FULLSIZE",(v=t5||(t5={})).ROWS="ROWS",v.COLUMNS="COLUMNS",(R=t8||(t8={})).FILL="FILL",R.FIT="FIT",(y=t7||(t7={})).TOP="TOP",y.RIGHT="RIGHT",y.BOTTOM="BOTTOM",y.LEFT="LEFT",y.NONE="NONE",(C=t6||(t6={})).NORMAL="NORMAL",C.STICKER="STICKER",(M=t4||(t4={})).HTML="HTML",M.ADSENSE="ADSENSE",(I=at||(at={})).START="START",I.END="END",I.TOP="TOP",I.HIDDEN="HIDDEN",(x=aa||(aa={})).ROADMAP="ROADMAP",x.SATELITE="SATELITE",x.HYBRID="HYBRID",x.TERRAIN="TERRAIN",(A=ae||(ae={})).CREATOR="CREATOR",A.VOTERS="VOTERS",A.EVERYONE="EVERYONE",(_=ao||(ao={})).SITE_MEMBERS="SITE_MEMBERS",_.ALL="ALL",(N=ar||(ar={})).LIST="LIST",N.GRID="GRID",(b=ai||(ai={})).LTR="LTR",b.RTL="RTL",(L=as||(as={})).COLOR="COLOR",L.IMAGE="IMAGE",L.GRADIENT="GRADIENT",(F=an||(an={})).BOLD="BOLD",F.ITALIC="ITALIC",F.UNDERLINE="UNDERLINE",F.SPOILER="SPOILER",F.ANCHOR="ANCHOR",F.MENTION="MENTION",F.LINK="LINK",F.COLOR="COLOR",F.FONT_SIZE="FONT_SIZE",F.EXTERNAL="EXTERNAL",(O=ad||(ad={})).PX="PX",O.EM="EM",(w=ap||(ap={})).PRODUCT="PRODUCT",w.EVENT="EVENT",w.BOOKING="BOOKING",(U=am||(am={})).FIRST="FIRST",U.ALL="ALL",U.NONE="NONE",(K=ah||(ah={})).LTR="LTR",K.RTL="RTL",(V=al||(al={})).TOP="TOP",V.MIDDLE="MIDDLE",V.BOTTOM="BOTTOM",(au||(au={})).NULL_VALUE="NULL_VALUE",(B=ac||(ac={})).UNKNOWN="UNKNOWN",B.PUBLISHED="PUBLISHED",B.UNPUBLISHED="UNPUBLISHED",B.SCHEDULED="SCHEDULED",B.DELETED="DELETED",B.IN_REVIEW="IN_REVIEW",(G=aP||(aP={})).UNKNOWN="UNKNOWN",G.APPROVED="APPROVED",G.REJECTED="REJECTED",(q=af||(af={})).STATUS="STATUS",q.LANGUAGE="LANGUAGE",(H=ag||(ag={})).UNKNOWN="UNKNOWN",H.ANONYMOUS_VISITOR="ANONYMOUS_VISITOR",H.MEMBER="MEMBER",H.WIX_USER="WIX_USER",H.APP="APP",(W=aT||(aT={})).UNKNOWN="UNKNOWN",W.MANUAL="MANUAL",W.AUTO_SAVE="AUTO_SAVE",W.PROVISIONING="PROVISIONING",W.IMPORT="IMPORT",W.AI_AUTO_SAVE="AI_AUTO_SAVE",(k=aD||(aD={})).UNKNOWN="UNKNOWN",k.URL="URL",k.CONTENT="CONTENT",k.RICH_CONTENT="RICH_CONTENT",k.GENERATED_EXCERPT="GENERATED_EXCERPT",($=aE||(aE={})).UPDATE="UPDATE",$.UPDATE_PUBLISH="UPDATE_PUBLISH",$.UPDATE_SCHEDULE="UPDATE_SCHEDULE",$.UPDATE_REVERT_TO_DRAFT="UPDATE_REVERT_TO_DRAFT",$.UPDATE_CANCEL_SCHEDULE="UPDATE_CANCEL_SCHEDULE",$.UPDATE_REJECT="UPDATE_REJECT",$.UPDATE_PUBLICATION="UPDATE_PUBLICATION",(Y=aS||(aS={})).EDITING_DATE_DESC="EDITING_DATE_DESC",Y.EDITING_DATE_ASC="EDITING_DATE_ASC",(Z=av||(av={})).ASC="ASC",Z.DESC="DESC";let oT=(0,e_.EventDefinition)("wix.blog.v3.draft_created",!0,t=>(0,er.renameKeysFromRESTResponseToSDKResponse)((0,en.transformPaths)(t,[{transformFn:eI,paths:[{path:"entity.heroImage"},{path:"entity.coverMedia.image"},{path:"entity.media.wixMedia.image"}]},{transformFn:es.transformRESTTimestampToSDKTimestamp,paths:[{path:"entity.editedDate"},{path:"entity.scheduledPublishDate"},{path:"entity.firstPublishedDate"},{path:"entity.createdDate"},{path:"entity.richContent.metadata.createdTimestamp"},{path:"entity.richContent.metadata.updatedTimestamp"},{path:"entity.moderationDetails.submittedDate"},{path:"entity.moderationDetails.moderationDate"},{path:"metadata.eventTime"}]},{transformFn:eA,paths:[{path:"entity.url"},{path:"entity.translations.url"}]},{transformFn:ot,paths:[{path:"entity.coverMedia.video"}]},{transformFn:eV.transformRESTFloatToSDKFloat,paths:[{path:"entity.richContent.nodes.galleryData.items.image.media.duration"},{path:"entity.richContent.nodes.galleryData.items.video.media.duration"},{path:"entity.richContent.nodes.galleryData.items.video.thumbnail.duration"},{path:"entity.richContent.nodes.galleryData.options.item.ratio"},{path:"entity.richContent.nodes.imageData.image.duration"},{path:"entity.richContent.nodes.mapData.mapSettings.lat"},{path:"entity.richContent.nodes.mapData.mapSettings.lng"},{path:"entity.richContent.nodes.pollData.poll.image.duration"},{path:"entity.richContent.nodes.pollData.poll.options.image.duration"},{path:"entity.richContent.nodes.pollData.design.poll.background.image.duration"},{path:"entity.richContent.nodes.appEmbedData.image.duration"},{path:"entity.richContent.nodes.videoData.video.duration"},{path:"entity.richContent.nodes.videoData.thumbnail.duration"},{path:"entity.richContent.nodes.audioData.audio.duration"},{path:"entity.richContent.nodes.audioData.coverImage.duration"}]},{transformFn:oe,paths:[{path:"entity.media.wixMedia.videoV2"}]}])))(),oD=(0,e_.EventDefinition)("wix.blog.v3.draft_deleted",!0,t=>(0,er.renameKeysFromRESTResponseToSDKResponse)((0,en.transformPaths)(t,[{transformFn:eI,paths:[{path:"entity.heroImage"},{path:"entity.coverMedia.image"},{path:"entity.media.wixMedia.image"}]},{transformFn:es.transformRESTTimestampToSDKTimestamp,paths:[{path:"entity.editedDate"},{path:"entity.scheduledPublishDate"},{path:"entity.firstPublishedDate"},{path:"entity.createdDate"},{path:"entity.richContent.metadata.createdTimestamp"},{path:"entity.richContent.metadata.updatedTimestamp"}
1,{path:"entity.moderationDetails.submittedDate"},{path:"entity.moderationDetails.moderationDate"},{path:"metadata.eventTime"}]},{transformFn:eA,paths:[{path:"entity.url"},{path:"entity.translations.url"}]},{transformFn:ot,paths:[{path:"entity.coverMedia.video"}]},{transformFn:eV.transformRESTFloatToSDKFloat,paths:[{path:"entity.richContent.nodes.galleryData.items.image.media.duration"},{path:"entity.richContent.nodes.galleryData.items.video.media.duration"},{path:"entity.richContent.nodes.galleryData.items.video.thumbnail.duration"},{path:"entity.richContent.nodes.galleryData.options.item.ratio"},{path:"entity.richContent.nodes.imageData.image.duration"},{path:"entity.richContent.nodes.mapData.mapSettings.lat"},{path:"entity.richContent.nodes.mapData.mapSettings.lng"},{path:"entity.richContent.nodes.pollData.poll.image.duration"},{path:"entity.richContent.nodes.pollData.poll.options.image.duration"},{path:"entity.richContent.nodes.pollData.design.poll.background.image.duration"},{path:"entity.richContent.nodes.appEmbedData.image.duration"},{path:"entity.richContent.nodes.videoData.video.duration"},{path:"entity.richContent.nodes.videoData.thumbnail.duration"},{path:"entity.richContent.nodes.audioData.audio.duration"},{path:"entity.richContent.nodes.audioData.coverImage.duration"}]},{transformFn:oe,paths:[{path:"entity.media.wixMedia.videoV2"}]}])))(),oE=(0,e_.EventDefinition)("wix.blog.v3.draft_updated",!0,t=>(0,er.renameKeysFromRESTResponseToSDKResponse)((0,en.transformPaths)(t,[{transformFn:eI,paths:[{path:"entity.heroImage"},{path:"entity.coverMedia.image"},{path:"entity.media.wixMedia.image"}]},{transformFn:es.transformRESTTimestampToSDKTimestamp,paths:[{path:"entity.editedDate"},{path:"entity.scheduledPublishDate"},{path:"entity.firstPublishedDate"},{path:"entity.createdDate"},{path:"entity.richContent.metadata.createdTimestamp"},{path:"entity.richContent.metadata.updatedTimestamp"},{path:"entity.moderationDetails.submittedDate"},{path:"entity.moderationDetails.moderationDate"},{path:"metadata.eventTime"}]},{transformFn:eA,paths:[{path:"entity.url"},{path:"entity.translations.url"}]},{transformFn:ot,paths:[{path:"entity.coverMedia.video"}]},{transformFn:eV.transformRESTFloatToSDKFloat,paths:[{path:"entity.richContent.nodes.galleryData.items.image.media.duration"},{path:"entity.richContent.nodes.galleryData.items.video.media.duration"},{path:"entity.richContent.nodes.galleryData.items.video.thumbnail.duration"},{path:"entity.richContent.nodes.galleryData.options.item.ratio"},{path:"entity.richContent.nodes.imageData.image.duration"},{path:"entity.richContent.nodes.mapData.mapSettings.lat"},{path:"entity.richContent.nodes.mapData.mapSettings.lng"},{path:"entity.richContent.nodes.pollData.poll.image.duration"},{path:"entity.richContent.nodes.pollData.poll.options.image.duration"},{path:"entity.richContent.nodes.pollData.design.poll.background.image.duration"},{path:"entity.richContent.nodes.appEmbedData.image.duration"},{path:"entity.richContent.nodes.videoData.video.duration"},{path:"entity.richContent.nodes.videoData.thumbnail.duration"},{path:"entity.richContent.nodes.audioData.audio.duration"},{path:"entity.richContent.nodes.audioData.coverImage.duration"}]},{transformFn:oe,paths:[{path:"entity.media.wixMedia.videoV2"}]}])))(),oS=(0,ei.createRESTModule)(function(t){return(a,e)=>oi(a,e,{httpClient:t})}),ov=(0,ei.createRESTModule)(function(t){return(a,e)=>os(a,e,{httpClient:t})}),oR=(0,ei.createRESTModule)(function(t){return a=>on(a,{httpClient:t})}),oy=(0,ei.createRESTModule)(function(t){return a=>od(a,{httpClient:t})}),oC=(0,ei.createRESTModule)(function(t){return(a,e)=>op(a,e,{httpClient:t})}),oM=(0,ei.createRESTModule)(function(t){return(a,e,o)=>om(a,e,o,{httpClient:t})}),oI=(0,ei.createRESTModule)(function(t){return(a,e)=>oh(a,e,{httpClient:t})}),ox=(0,ei.createRESTModule)(function(t){return a=>ol(a,{httpClient:t})}),oA=(0,ei.createRESTModule)(function(t){return(a,e)=>ou(a,e,{httpClient:t})}),o_=(0,ei.createRESTModule)(function(t){return a=>oc(a,{httpClient:t})}),oN=(0,ei.createRESTModule)(function(t){return a=>oP(a,{httpClient:t})}),ob=(0,ei.createRESTModule)(function(t){return a=>of(a,{httpClient:t})}),oL=(0,ei.createRESTModule)(function(t){return a=>(function(t){let{httpClient:a,sideEffects:e}=arguments[1];return eU({func:async o=>{var r;let i=(r={...o,...t??{}},function({host:t}){return{entityFqdn:"wix.blog.v3.draft",method:"POST",methodFqn:"com.wixpress.npm.communities.platformized.blog.v3.DraftPostService.QueryDraftPosts",packageName:or,url:oo({protoPath:"/v3/draft-posts/query",data:r,host:t}),data:r,transformResponse:t=>(0,en.transformPaths)(t,[{transformFn:es.transformRESTTimestampToSDKTimestamp,paths:[{path:"draftPosts.editedDate"},{path:"draftPosts.scheduledPublishDate"},{path:"draftPosts.firstPublishedDate"},{path:"draftPosts.createdDate"},{path:"draftPosts.coverMedia.image.urlExpirationDate"},{path:"draftPosts.coverMedia.video.thumbnail.urlExpirationDate"},{path:"draftPosts.heroImage.urlExpirationDate"},{path:"draftPosts.richContent.metadata.createdTimestamp"},{path:"draftPosts.richContent.metadata.updatedTimestamp"}
1,{path:"draftPosts.moderationDetails.submittedDate"},{path:"draftPosts.moderationDetails.moderationDate"},{path:"draftPosts.media.wixMedia.image.urlExpirationDate"},{path:"draftPosts.media.wixMedia.videoV2.urlExpirationDate"},{path:"draftPosts.media.wixMedia.videoV2.resolutions.urlExpirationDate"},{path:"draftPosts.media.wixMedia.videoV2.resolutions.poster.urlExpirationDate"},{path:"draftPosts.media.wixMedia.videoV2.posters.urlExpirationDate"}]},{transformFn:eV.transformRESTFloatToSDKFloat,paths:[{path:"draftPosts.coverMedia.image.focalPoint.x"},{path:"draftPosts.coverMedia.image.focalPoint.y"},{path:"draftPosts.coverMedia.video.thumbnail.focalPoint.x"},{path:"draftPosts.coverMedia.video.thumbnail.focalPoint.y"},{path:"draftPosts.heroImage.focalPoint.x"},{path:"draftPosts.heroImage.focalPoint.y"},{path:"draftPosts.media.wixMedia.image.focalPoint.x"},{path:"draftPosts.media.wixMedia.image.focalPoint.y"},{path:"draftPosts.media.wixMedia.videoV2.resolutions.poster.focalPoint.x"},{path:"draftPosts.media.wixMedia.videoV2.resolutions.poster.focalPoint.y"},{path:"draftPosts.media.wixMedia.videoV2.posters.focalPoint.x"},{path:"draftPosts.media.wixMedia.videoV2.posters.focalPoint.y"},{path:"draftPosts.richContent.nodes.galleryData.items.image.media.duration"},{path:"draftPosts.richContent.nodes.galleryData.items.video.media.duration"},{path:"draftPosts.richContent.nodes.galleryData.items.video.thumbnail.duration"},{path:"draftPosts.richContent.nodes.galleryData.options.item.ratio"},{path:"draftPosts.richContent.nodes.imageData.image.duration"},{path:"draftPosts.richContent.nodes.mapData.mapSettings.lat"},{path:"draftPosts.richContent.nodes.mapData.mapSettings.lng"},{path:"draftPosts.richContent.nodes.pollData.poll.image.duration"},{path:"draftPosts.richContent.nodes.pollData.poll.options.image.duration"},{path:"draftPosts.richContent.nodes.pollData.design.poll.background.image.duration"},{path:"draftPosts.richContent.nodes.appEmbedData.image.duration"},{path:"draftPosts.richContent.nodes.videoData.video.duration"},{path:"draftPosts.richContent.nodes.videoData.thumbnail.duration"},{path:"draftPosts.richContent.nodes.audioData.audio.duration"},{path:"draftPosts.richContent.nodes.audioData.coverImage.duration"}]}])}});e?.onSiteCall?.();try{let t=await a.request(i);return e?.onSuccess?.(t),t}catch(t){throw e?.onError?.(t),t}},requestTransformer:a=>{let e=[a,t];return(0,er.renameKeysFromSDKRequestToRESTRequest)({...e?.[1],query:e?.[0]})},responseTransformer:({data:t})=>{let a=(0,er.renameKeysFromRESTResponseToSDKResponse)((0,en.transformPaths)(t,[{transformFn:eI,paths:[{path:"draftPosts.heroImage"},{path:"draftPosts.coverMedia.image"},{path:"draftPosts.media.wixMedia.image"}]},{transformFn:eA,paths:[{path:"draftPosts.url"},{path:"draftPosts.translations.url"}]},{transformFn:ot,paths:[{path:"draftPosts.coverMedia.video"}]},{transformFn:oe,paths:[{path:"draftPosts.media.wixMedia.videoV2"}]}]));return{items:a?.draftPosts,pagingMetadata:a?.pagingMetadata}},errorTransformer:t=>{throw(0,eo.transformError)(t,{spreadPathsToArguments:{},explicitPathsToArguments:{query:"$[0]"},singleArgumentUnchanged:!1})},pagingMethod:"CURSOR",transformationPaths:{}})})(a,{httpClient:t})}),oF=(0,ei.createRESTModule)(function(t){return a=>og(a,{httpClient:t})}),oO=(0,eQ.createEventModule)(oT),ow=(0,eQ.createEventModule)(oD),oU=(0,eQ.createEventModule)(oE);t.s(["bulkCreateDraftPosts",0,ov,"bulkDeleteDraftPosts",0,oA,"bulkUpdateDraftPosts",0,oR,"createDraftPost",0,oS,"deleteDraftPost",0,oI,"getDeletedDraftPost",0,oN,"getDraftPost",0,oC,"listDeletedDraftPosts",0,oy,"listDraftPosts",0,o_,"onDraftCreated",0,oO,"onDraftDeleted",0,ow,"onDraftUpdated",0,oU,"publishDraftPost",0,oF,"queryDraftPosts",0,oL,"removeFromTrashBin",0,ox,"restoreFromTrashBin",0,ob,"updateDraftPost",0,oM],299642),t.s([],539028),t.i(539028),t.i(299642),t.s(["Action",()=>aE,"Alignment",()=>t2,"AppType",()=>ap,"BackgroundType",()=>as,"ButtonDataType",()=>tJ,"Crop",()=>t8,"DecorationType",()=>an,"Direction",()=>ah,"Field",()=>aD,"FontType",()=>ad,"GIFType",()=>t6,"GetDraftPostsSort",()=>aS,"InitialExpandedItems",()=>am,"LayoutType",()=>t9,"LineStyle",()=>t0,"MapType",()=>aa,"ModerationStatusStatus",()=>aP,"NodeType",()=>tZ,"NullValue",()=>au,"Orientation",()=>t5,"Origin",()=>tY,"PluginContainerDataAlignment",()=>tz,"PollLayoutDirection",()=>ai,"PollLayoutType",()=>ar,"Position",()=>at,"SortOrder",()=>
1av,"Source",()=>t4,"Status",()=>ac,"Target",()=>tQ,"TextAlignment",()=>tj,"ThumbnailsAlignment",()=>t7,"TotalDraftPostsGroupingField",()=>af,"Type",()=>aT,"VerticalAlignment",()=>al,"ViewMode",()=>t1,"ViewRole",()=>ae,"VoteRole",()=>ao,"WebhookIdentityType",()=>ag,"Width",()=>t3,"WidthType",()=>tX,"bulkCreateDraftPosts",0,ov,"bulkDeleteDraftPosts",0,oA,"bulkUpdateDraftPosts",0,oR,"createDraftPost",0,oS,"deleteDraftPost",0,oI,"getDeletedDraftPost",0,oN,"getDraftPost",0,oC,"listDeletedDraftPosts",0,oy,"listDraftPosts",0,o_,"onDraftCreated",0,oO,"onDraftDeleted",0,ow,"onDraftUpdated",0,oU,"publishDraftPost",0,oF,"queryDraftPosts",0,oL,"removeFromTrashBin",0,ox,"restoreFromTrashBin",0,ob,"updateDraftPost",0,oM],579553),t.i(579553),t.s(["Action",()=>aE,"Alignment",()=>t2,"AppType",()=>ap,"BackgroundType",()=>as,"ButtonDataType",()=>tJ,"Crop",()=>t8,"DecorationType",()=>an,"Direction",()=>ah,"Field",()=>aD,"FontType",()=>ad,"GIFType",()=>t6,"GetDraftPostsSort",()=>aS,"InitialExpandedItems",()=>am,"LayoutType",()=>t9,"LineStyle",()=>t0,"MapType",()=>aa,"ModerationStatusStatus",()=>aP,"NodeType",()=>tZ,"NullValue",()=>au,"Orientation",()=>t5,"Origin",()=>tY,"PluginContainerDataAlignment",()=>tz,"PollLayoutDirection",()=>ai,"PollLayoutType",()=>ar,"Position",()=>at,"SortOrder",()=>av,"Source",()=>t4,"Status",()=>ac,"Target",()=>tQ,"TextAlignment",()=>tj,"ThumbnailsAlignment",()=>t7,"TotalDraftPostsGroupingField",()=>af,"Type",()=>aT,"VerticalAlignment",()=>al,"ViewMode",()=>t1,"ViewRole",()=>ae,"VoteRole",()=>ao,"WebhookIdentityType",()=>ag,"Width",()=>t3,"WidthType",()=>tX,"bulkCreateDraftPosts",0,ov,"bulkDeleteDraftPosts",0,oA,"bulkUpdateDraftPosts",0,oR,"createDraftPost",0,oS,"deleteDraftPost",0,oI,"getDeletedDraftPost",0,oN,"getDraftPost",0,oC,"listDeletedDraftPosts",0,oy,"listDraftPosts",0,o_,"onDraftCreated",0,oO,"onDraftDeleted",0,ow,"onDraftUpdated",0,oU,"publishDraftPost",0,oF,"queryDraftPosts",0,oL,"removeFromTrashBin",0,ox,"restoreFromTrashBin",0,ob,"updateDraftPost",0,oM],108552),t.i(108552);var oK=t.i(951605);function oV(t){return(0,ei.resolveUrl)(Object.assign(t,{domainToMappings:{"api._api_base_domain_":[{srcPath:"/communities-blog-node-api",destPath:""}],"www._base_domain_":[{srcPath:"/_api/communities-blog-node-api",destPath:""},{srcPath:"/_api/communities-blog-node-api/v3/posts",destPath:"/v3/posts"},{srcPath:"/_api/communities-blog-node-api/v2/stats",destPath:"/v2/stats"}],"apps._base_domain_":[{srcPath:"/_api/communities-blog-node-api",destPath:""},{srcPath:"/_api/communities-blog-node-api/v3/posts",destPath:"/v3/posts"},{srcPath:"/_api/communities-blog-node-api/v2/stats",destPath:"/v2/stats"}],_:[{srcPath:"/_api/communities-blog-node-api",destPath:""},{srcPath:"/_api/communities-blog-node-api/_api/blogs/this",destPath:"/_api/blogs/this"},{srcPath:"/_api/communities-blog-node-api/_api/categories",destPath:"/_api/categories"},{srcPath:"/_api/communities-blog-node-api/_api/site-properties",destPath:"/_api/site-properties"},{srcPath:"/_api/communities-blog-node-api/_api/posts/content",destPath:"/_api/posts/content"},{srcPath:"/_api/communities-blog-node-api/v3/posts",destPath:"/v3/posts"},{srcPath:"/_api/communities-blog-node-api/v2/stats",destPath:"/v2/stats"}],"editor._base_domain_":[{srcPath:"/_api/communities-blog-node-api",destPath:""}],"blocks._base_domain_":[{srcPath:"/_api/communities-blog-node-api",destPath:""}],"create.editorx":[{srcPath:"/_api/communities-blog-node-api",destPath:""}],"*.dev.wix-code.com":[{srcPath:"/_api/communities-blog-node-api",destPath:""}],"*.pub.wix-code.com":[{srcPath:"/_api/communities-blog-node-api",destPath:""}],"bo._base_domain_":[{srcPath:"/_api/communities-blog-node-api",destPath:""},{srcPath:"/_api/communities-blog-node-api",destPath:""}],"wixbo.ai":[{srcPath:"/_api/communities-blog-node-api",destPath:""},{srcPath:"/_api/communities-blog-node-api",destPath:""}],"wix-bo.com":[{srcPath:"/_api/communities-blog-node-api",destPath:""},{srcPath:"/_api/communities-blog-node-api",destPath:""}],"manage._base_domain_":[{srcPath:"/_api/communities-blog-node-api",destPath:""}],"social-blog._base_domain_":[{srcPath:"/_api/communities-blog-node-api",destPath:""}],"editor.wixapps.net":[{srcPath:"/_api/communities-blog-node-api",destPath:""}],"dev._base_domain_":[{srcPath:"/_api/communities-blog-node-api",destPath:""}],"www.wixapis.com":[{srcPath:"/blog/v2",destPath:"/v2"},{srcPath:"/blog/v3",destPath:"/v3"},{srcPath:"/v2/stats",destPath:"/v2/stats"},{srcPath:"/v3/posts",destPath:"/v3/posts"},{srcPath:"/blog/v3/posts",destPath:"/v3/posts"},{srcPath:"/blog/v2/stats",destPath:"/v2/stats"},{srcPath:"/_api/v3/posts",destPath:"/v3/posts"}]}}))}function oB(t){return(0,ei.resolveUrl)(Object.assign(t,{domainToMappings:{"api._api_base_domain_":[{srcPath:"/communities-blog-node-api",destPath:""}],"www._base_domain_":[{srcPath:"/_api/communities-blog-node-api",destPath:""},{srcPath:"/_api/communities-blog-node-api/v3/posts",destPath:"/v3/posts"},{srcPath:"/_api/communities-blog-node-api/v2/stats",destPath:"/v2/stats"}],"apps._base_domain_":[{srcPath:"/_api/communities-blog-node-api",destPath:""},{srcPath:"/_api/communities-blog-node-api/v3/posts",destPath:"/v3/posts"},{srcPath:"/_api/communities-blog-node-api/v2/stats",destPath:"/v2/stats"}],_:[{srcPath:"/_api/communities-blog-node-api",destPath:""},{srcPath:"/_api/communities-blog-node-api/_api/blogs/this",destPath:"/_api/blogs/this"},{srcPath:"/_api/communities-blog-node-api/_api/categories",destPath:"/_api/categories"},{srcPath:"/_api/communities-blog-node-api/_api/site-properties",destPath:"/_api/site-properties"},{srcPath:"/_api/communities-blog-node-api/_api/posts/content",destPath:"/_api/posts/content"},{srcPath:"/_api/communities-blog-node-api/v3/posts",destPath:"/v3/posts"},{srcPath:"/_api/communities-blog-node-api/v2/stats",destPath:"/v2/stats"}],"editor._base_domain_":[{srcPath:"/_api/communities-blog-node-api",destPath:""}],"blocks._base_domain_":[{srcPath:"/_api/communities-blog-node-api",destPath:""}],"create.editorx":[{srcPath:"/_api/communities-blog-node-api",destPath:""}],"*.dev.wix-code.com":[{srcPath:"/_api/communities-blog-node-api",destPath:""}],"*.pub.wix-code.com":[{srcPath:"/_api/communities-blog-node-api",destPath:""}],"bo._base_domain_":[{srcPath:"/_api/communities-blog-node-api",destPath:""},{srcPath:"/_api/communities-blog-node-api",destPath:""}],"wixbo.ai":[{srcPath:"/_api/communities-blog-node-api",destPath:""},{srcPath:"/_api/communities-blog-node-api",destPath:""}],"wix-bo.com":[{srcPath:"/_api/communities-blog-node-api",destPath:""},{srcPath:"/_api/communities-blog-node-api",destPath:""}],"manage._base_domain_":[{srcPath:"/_api/communities-blog-node-api",destPath:""}],"social-blog._base_domain_":[{srcPath:"/_api/communities-blog-node-api",destPath:""}],"editor.wixapps.net":[{srcPath:"/_api/communities-blog-node-api",destPath:""}],"dev._base_domain_":[{srcPath:"/_api/communities-blog-node-api",destPath:""}],"www.wixapis.com":[{srcPath:"/blog/v2",destPath:"/v2"},{srcPath:"/blog/v3",destPath:"/v3"},{srcPath:"/v2/stats",destPath:"/v2/stats"},{srcPath:"/v3/posts",destPath:"/v3/posts"},{srcPath:"/blog/v3/posts",destPath:"/v3/posts"},{srcPath:"/blog/v2/stats",destPath:"/v2/stats"},{srcPath:"/_api/v3/posts",destPath:"/v3/posts"}]}}))}let oG="@wix/auto_sdk_blog_posts";async function oq(t){var a;let{httpClient:e,sideEffects:o}=arguments[1],r=(a=(0,er.renameKeysFromSDKRequestToRESTRequest)({rangeStart:t?.rangeStart,order:t?.order,months:t?.months,language:t?.language,timeZone:t?.timeZone}),function({host:t}){let e=(0,en.transformPaths)(a,[{transformFn:es.transformSDKTimestampToRESTTimestamp,paths:[{path:"rangeStart"},{path:"rangeEnd"}]}]);return{entityFqdn:"wix.blog.v3.post",method:"GET",methodFqn:"com.wixpress.npm.communities.platformized.blog.BlogStatsService.QueryPostCountStats",packageName:oG,url:oB({protoPath:"/v2/stats/post/count",data:e,host:t}),params:(0,ei.toURLSearchParams)(e),transformResponse:t=>(0,en.transformPaths)(t,[{transformFn:es.transformRESTTimestampToSDKTimestamp,paths:[{path:"stats.periodStart"}]}])}});o?.onSiteCall?.();try{let t=await e.request(r);return o?.onSuccess?.(t),(0,er.renameKeysFromRESTResponseToSDKResponse)(t.data)}catch(a){let t=(0,eo.transformError)(a,{spreadPathsToArguments:{},explicitPathsToArguments:{rangeStart:"$[0].rangeStart",order:"$[0].order",months:"$[0].months",language:"$[0].language",timeZone:"$[0].timeZone"},singleArgumentUnchanged:!1},["options"]);throw o?.onError?.(a),t}}
1async function oH(t){var a;let{httpClient:e,sideEffects:o}=arguments[1],r=(a=(0,er.renameKeysFromSDKRequestToRESTRequest)({language:t?.language}),function({host:t}){return{entityFqdn:"wix.blog.v3.post",method:"GET",methodFqn:"com.wixpress.npm.communities.platformized.blog.BlogStatsService.GetTotalPosts",packageName:oG,url:oB({protoPath:"/v2/stats/posts/total",data:a,host:t}),params:(0,ei.toURLSearchParams)(a)}});o?.onSiteCall?.();try{let t=await e.request(r);return o?.onSuccess?.(t),(0,er.renameKeysFromRESTResponseToSDKResponse)(t.data)}catch(a){let t=(0,eo.transformError)(a,{spreadPathsToArguments:{},explicitPathsToArguments:{language:"$[0].language"},singleArgumentUnchanged:!1},["options"]);throw o?.onError?.(a),t}}async function oW(t,a){var e;let{httpClient:o,sideEffects:r}=arguments[2],i=(e=(0,er.renameKeysFromSDKRequestToRESTRequest)({postId:t,fieldsets:a?.fieldsets}),function({host:t}){return{entityFqdn:"wix.blog.v3.post",method:"GET",methodFqn:"com.wixpress.npm.communities.platformized.blog.v3.PostService.GetPost",packageName:oG,url:oV({protoPath:"/v3/posts/{postId}",data:e,host:t}),params:(0,ei.toURLSearchParams)(e),transformResponse:t=>(0,en.transformPaths)(t,[{transformFn:es.transformRESTTimestampToSDKTimestamp,paths:[{path:"post.firstPublishedDate"},{path:"post.lastPublishedDate"},{path:"post.coverMedia.image.urlExpirationDate"},{path:"post.coverMedia.video.thumbnail.urlExpirationDate"},{path:"post.heroImage.urlExpirationDate"},{path:"post.richContent.metadata.createdTimestamp"},{path:"post.richContent.metadata.updatedTimestamp"},{path:"post.moderationDetails.submittedDate"},{path:"post.moderationDetails.moderationDate"},{path:"post.media.wixMedia.image.urlExpirationDate"},{path:"post.media.wixMedia.videoV2.urlExpirationDate"},{path:"post.media.wixMedia.videoV2.resolutions.urlExpirationDate"},{path:"post.media.wixMedia.videoV2.resolutions.poster.urlExpirationDate"},{path:"post.media.wixMedia.videoV2.posters.urlExpirationDate"}]},{transformFn:oK.transformRESTBytesToSDKBytes,paths:[{path:"post.richContentCompressed"}]},{transformFn:eV.transformRESTFloatToSDKFloat,paths:[{path:"post.coverMedia.image.focalPoint.x"},{path:"post.coverMedia.image.focalPoint.y"},{path:"post.coverMedia.video.thumbnail.focalPoint.x"},{path:"post.coverMedia.video.thumbnail.focalPoint.y"},{path:"post.heroImage.focalPoint.x"},{path:"post.heroImage.focalPoint.y"},{path:"post.media.wixMedia.image.focalPoint.x"},{path:"post.media.wixMedia.image.focalPoint.y"},{path:"post.media.wixMedia.videoV2.resolutions.poster.focalPoint.x"},{path:"post.media.wixMedia.videoV2.resolutions.poster.focalPoint.y"},{path:"post.media.wixMedia.videoV2.posters.focalPoint.x"},{path:"post.media.wixMedia.videoV2.posters.focalPoint.y"},{path:"post.metrics.averageRating"},{path:"post.richContent.nodes.galleryData.items.image.media.duration"},{path:"post.richContent.nodes.galleryData.items.video.media.duration"},{path:"post.richContent.nodes.galleryData.items.video.thumbnail.duration"},{path:"post.richContent.nodes.galleryData.options.item.ratio"},{path:"post.richContent.nodes.imageData.image.duration"},{path:"post.richContent.nodes.mapData.mapSettings.lat"},{path:"post.richContent.nodes.mapData.mapSettings.lng"},{path:"post.richContent.nodes.pollData.poll.image.duration"},{path:"post.richContent.nodes.pollData.poll.options.image.duration"},{path:"post.richContent.nodes.pollData.design.poll.background.image.duration"},{path:"post.richContent.nodes.appEmbedData.image.duration"},{path:"post.richContent.nodes.videoData.video.duration"},{path:"post.richContent.nodes.videoData.thumbnail.duration"},{path:"post.richContent.nodes.audioData.audio.duration"},{path:"post.richContent.nodes.audioData.coverImage.duration"}]}])}});r?.onSiteCall?.();try{let t=await o.request(i);return r?.onSuccess?.(t),(0,er.renameKeysFromRESTResponseToSDKResponse)((0,en.transformPaths)(t.data,[{transformFn:eA,paths:[{path:"post.url"},{path:"post.translations.url"}]},{transformFn:eI,paths:[{path:"post.heroImage"},{path:"post.coverMedia.image"},{path:"post.media.wixMedia.image"}]},{transformFn:ot,paths:[{path:"post.coverMedia.video"}]},{transformFn:oe,paths:[{path:"post.media.wixMedia.videoV2"}]}]))?.post}catch(a){let t=(0,eo.transformError)(a,{spreadPathsToArguments:{},explicitPathsToArguments:{postId:"$[0]",fieldsets:"$[1].fieldsets"},singleArgumentUnchanged:!1},["postId","options"]);throw r?.onError?.(a),t}}
1async function ok(t,a){var e;let{httpClient:o,sideEffects:r}=arguments[2],i=(e=(0,er.renameKeysFromSDKRequestToRESTRequest)({slug:t,fieldsets:a?.fieldsets}),function({host:t}){return{entityFqdn:"wix.blog.v3.post",method:"GET",methodFqn:"com.wixpress.npm.communities.platformized.blog.v3.PostService.GetPostBySlug",packageName:oG,url:oV({protoPath:"/v3/posts/slugs/{slug}",data:e,host:t}),params:(0,ei.toURLSearchParams)(e),transformResponse:t=>(0,en.transformPaths)(t,[{transformFn:es.transformRESTTimestampToSDKTimestamp,paths:[{path:"post.firstPublishedDate"},{path:"post.lastPublishedDate"},{path:"post.coverMedia.image.urlExpirationDate"},{path:"post.coverMedia.video.thumbnail.urlExpirationDate"},{path:"post.heroImage.urlExpirationDate"},{path:"post.richContent.metadata.createdTimestamp"},{path:"post.richContent.metadata.updatedTimestamp"},{path:"post.moderationDetails.submittedDate"},{path:"post.moderationDetails.moderationDate"},{path:"post.media.wixMedia.image.urlExpirationDate"},{path:"post.media.wixMedia.videoV2.urlExpirationDate"},{path:"post.media.wixMedia.videoV2.resolutions.urlExpirationDate"},{path:"post.media.wixMedia.videoV2.resolutions.poster.urlExpirationDate"},{path:"post.media.wixMedia.videoV2.posters.urlExpirationDate"}]},{transformFn:oK.transformRESTBytesToSDKBytes,paths:[{path:"post.richContentCompressed"}]},{transformFn:eV.transformRESTFloatToSDKFloat,paths:[{path:"post.coverMedia.image.focalPoint.x"},{path:"post.coverMedia.image.focalPoint.y"},{path:"post.coverMedia.video.thumbnail.focalPoint.x"},{path:"post.coverMedia.video.thumbnail.focalPoint.y"},{path:"post.heroImage.focalPoint.x"},{path:"post.heroImage.focalPoint.y"},{path:"post.media.wixMedia.image.focalPoint.x"},{path:"post.media.wixMedia.image.focalPoint.y"},{path:"post.media.wixMedia.videoV2.resolutions.poster.focalPoint.x"},{path:"post.media.wixMedia.videoV2.resolutions.poster.focalPoint.y"},{path:"post.media.wixMedia.videoV2.posters.focalPoint.x"},{path:"post.media.wixMedia.videoV2.posters.focalPoint.y"},{path:"post.metrics.averageRating"},{path:"post.richContent.nodes.galleryData.items.image.media.duration"},{path:"post.richContent.nodes.galleryData.items.video.media.duration"},{path:"post.richContent.nodes.galleryData.items.video.thumbnail.duration"},{path:"post.richContent.nodes.galleryData.options.item.ratio"},{path:"post.richContent.nodes.imageData.image.duration"},{path:"post.richContent.nodes.mapData.mapSettings.lat"},{path:"post.richContent.nodes.mapData.mapSettings.lng"},{path:"post.richContent.nodes.pollData.poll.image.duration"},{path:"post.richContent.nodes.pollData.poll.options.image.duration"},{path:"post.richContent.nodes.pollData.design.poll.background.image.duration"},{path:"post.richContent.nodes.appEmbedData.image.duration"},{path:"post.richContent.nodes.videoData.video.duration"},{path:"post.richContent.nodes.videoData.thumbnail.duration"},{path:"post.richContent.nodes.audioData.audio.duration"},{path:"post.richContent.nodes.audioData.coverImage.duration"}]}])}});r?.onSiteCall?.();try{let t=await o.request(i);return r?.onSuccess?.(t),(0,er.renameKeysFromRESTResponseToSDKResponse)((0,en.transformPaths)(t.data,[{transformFn:eA,paths:[{path:"post.url"},{path:"post.translations.url"}]},{transformFn:eI,paths:[{path:"post.heroImage"},{path:"post.coverMedia.image"},{path:"post.media.wixMedia.image"}]},{transformFn:ot,paths:[{path:"post.coverMedia.video"}]},{transformFn:oe,paths:[{path:"post.media.wixMedia.videoV2"}]}]))}catch(a){let t=(0,eo.transformError)(a,{spreadPathsToArguments:{},explicitPathsToArguments:{slug:"$[0]",fieldsets:"$[1].fieldsets"},singleArgumentUnchanged:!1},["slug","options"]);throw r?.onError?.(a),t}}async function o$(t){var a;let{httpClient:e,sideEffects:o}=arguments[1],r=(a=(0,er.renameKeysFromSDKRequestToRESTRequest)({featured:t?.featured,hashtags:t?.hashtags,categoryIds:t?.categoryIds,tagIds:t?.tagIds,sort:t?.sort,paging:t?.paging,language:t?.language,memberId:t?.memberId,fieldsets:t?.fieldsets}),function({host:t}){return{entityFqdn:"wix.blog.v3.post",method:"GET",methodFqn:"com.wixpress.npm.communities.platformized.blog.v3.PostService.ListPosts",packageName:oG,url:oV({protoPath:"/v3/posts",data:a,host:t}),params:(0,ei.toURLSearchParams)(a),transformResponse:t=>(0,en.transformPaths)(t,[{transformFn:es.transformRESTTimestampToSDKTimestamp,paths:[{path:"posts.firstPublishedDate"},{path:"posts.lastPublishedDate"},{path:"posts.coverMedia.image.urlExpirationDate"},{path:"posts.coverMedia.video.thumbnail.urlExpirationDate"},{path:"posts.heroImage.urlExpirationDate"},{path:"posts.richContent.metadata.createdTimestamp"},{path:"posts.richContent.metadata.updatedTimestamp"}
1,{path:"posts.moderationDetails.submittedDate"},{path:"posts.moderationDetails.moderationDate"},{path:"posts.media.wixMedia.image.urlExpirationDate"},{path:"posts.media.wixMedia.videoV2.urlExpirationDate"},{path:"posts.media.wixMedia.videoV2.resolutions.urlExpirationDate"},{path:"posts.media.wixMedia.videoV2.resolutions.poster.urlExpirationDate"},{path:"posts.media.wixMedia.videoV2.posters.urlExpirationDate"}]},{transformFn:oK.transformRESTBytesToSDKBytes,paths:[{path:"posts.richContentCompressed"}]},{transformFn:eV.transformRESTFloatToSDKFloat,paths:[{path:"posts.coverMedia.image.focalPoint.x"},{path:"posts.coverMedia.image.focalPoint.y"},{path:"posts.coverMedia.video.thumbnail.focalPoint.x"},{path:"posts.coverMedia.video.thumbnail.focalPoint.y"},{path:"posts.heroImage.focalPoint.x"},{path:"posts.heroImage.focalPoint.y"},{path:"posts.media.wixMedia.image.focalPoint.x"},{path:"posts.media.wixMedia.image.focalPoint.y"},{path:"posts.media.wixMedia.videoV2.resolutions.poster.focalPoint.x"},{path:"posts.media.wixMedia.videoV2.resolutions.poster.focalPoint.y"},{path:"posts.media.wixMedia.videoV2.posters.focalPoint.x"},{path:"posts.media.wixMedia.videoV2.posters.focalPoint.y"},{path:"posts.metrics.averageRating"},{path:"posts.richContent.nodes.galleryData.items.image.media.duration"},{path:"posts.richContent.nodes.galleryData.items.video.media.duration"},{path:"posts.richContent.nodes.galleryData.items.video.thumbnail.duration"},{path:"posts.richContent.nodes.galleryData.options.item.ratio"},{path:"posts.richContent.nodes.imageData.image.duration"},{path:"posts.richContent.nodes.mapData.mapSettings.lat"},{path:"posts.richContent.nodes.mapData.mapSettings.lng"},{path:"posts.richContent.nodes.pollData.poll.image.duration"},{path:"posts.richContent.nodes.pollData.poll.options.image.duration"},{path:"posts.richContent.nodes.pollData.design.poll.background.image.duration"},{path:"posts.richContent.nodes.appEmbedData.image.duration"},{path:"posts.richContent.nodes.videoData.video.duration"},{path:"posts.richContent.nodes.videoData.thumbnail.duration"},{path:"posts.richContent.nodes.audioData.audio.duration"},{path:"posts.richContent.nodes.audioData.coverImage.duration"}]}])}});o?.onSiteCall?.();try{let t=await e.request(r);return o?.onSuccess?.(t),(0,er.renameKeysFromRESTResponseToSDKResponse)((0,en.transformPaths)(t.data,[{transformFn:eA,paths:[{path:"posts.url"},{path:"posts.translations.url"}]},{transformFn:eI,paths:[{path:"posts.heroImage"},{path:"posts.coverMedia.image"},{path:"posts.media.wixMedia.image"}]},{transformFn:ot,paths:[{path:"posts.coverMedia.video"}]},{transformFn:oe,paths:[{path:"posts.media.wixMedia.videoV2"}]}]))}catch(a){let t=(0,eo.transformError)(a,{spreadPathsToArguments:{},explicitPathsToArguments:{featured:"$[0].featured",hashtags:"$[0].hashtags",categoryIds:"$[0].categoryIds",tagIds:"$[0].tagIds",sort:"$[0].sort",paging:"$[0].paging",language:"$[0].language",memberId:"$[0].memberId",fieldsets:"$[0].fieldsets"},singleArgumentUnchanged:!1},["options"]);throw o?.onError?.(a),t}}async function oY(t){var a;let{httpClient:e,sideEffects:o}=arguments[1],r=(a=(0,er.renameKeysFromSDKRequestToRESTRequest)({postId:t}),function({host:t}){return{entityFqdn:"wix.blog.v3.post",method:"GET",methodFqn:"com.wixpress.npm.communities.platformized.blog.v3.PostService.GetPostMetrics",packageName:oG,url:oV({protoPath:"/v3/posts/{postId}/metrics",data:a,host:t}),params:(0,ei.toURLSearchParams)(a),transformResponse:t=>(0,en.transformPaths)(t,[{transformFn:eV.transformRESTFloatToSDKFloat,paths:[{path:"metrics.averageRating"}]}])}});o?.onSiteCall?.();try{let t=await e.request(r);return o?.onSuccess?.(t),(0,er.renameKeysFromRESTResponseToSDKResponse)(t.data)}catch(a){let t=(0,eo.transformError)(a,{spreadPathsToArguments:{},explicitPathsToArguments:{postId:"$[0]"},singleArgumentUnchanged:!1},["postId"]);throw o?.onError?.(a),t}}(X=aR||(aR={})).PARAGRAPH="PARAGRAPH",X.TEXT="TEXT",X.HEADING="HEADING",X.BULLETED_LIST="BULLETED_LIST",X.ORDERED_LIST="ORDERED_LIST",X.LIST_ITEM="LIST_ITEM",X.BLOCKQUOTE="BLOCKQUOTE",X.CODE_BLOCK="CODE_BLOCK",X.VIDEO="VIDEO",X.DIVIDER="DIVIDER",X.FILE="FILE",X.GALLERY="GALLERY",X.GIF="GIF",X.HTML="HTML",X.IMAGE="IMAGE",X.LINK_PREVIEW="LINK_PREVIEW",X.MAP="MAP",X.POLL="POLL",X.APP_EMBED="APP_EMBED",X.BUTTON="BUTTON",X.COLLAPSIBLE_LIST="COLLAPSIBLE_LIST",X.TABLE="TABLE",X.EMBED="EMBED",X.COLLAPSIBLE_ITEM="COLLAPSIBLE_ITEM",X.COLLAPSIBLE_ITEM_TITLE="COLLAPSIBLE_ITEM_TITLE",X.COLLAPSIBLE_ITEM_BODY="COLLAPSIBLE_ITEM_BODY",X.TABLE_CELL="TABLE_CELL",X.TABLE_ROW="TABLE_ROW",X.EXTERNAL="EXTERNAL",X.AUDIO="AUDIO",X.CAPTION="CAPTION",X.LAYOUT="LAYOUT",X.LAYOUT_CELL="LAYOUT_CELL",(z=ay||(ay={})).CONTENT="CONTENT",z.SMALL="SMALL",z.ORIGINAL="ORIGINAL",z.FULL_WIDTH="FULL_WIDTH",(J=aC||(aC={})).CENTER="CENTER",J.LEFT="LEFT",J.RIGHT="RIGHT",(Q=aM||(aM={}
1)).LINK="LINK",Q.ACTION="ACTION",(j=aI||(aI={})).SELF="SELF",j.BLANK="BLANK",j.PARENT="PARENT",j.TOP="TOP",(tt=ax||(ax={})).AUTO="AUTO",tt.LEFT="LEFT",tt.RIGHT="RIGHT",tt.CENTER="CENTER",tt.JUSTIFY="JUSTIFY",(ta=aA||(aA={})).SINGLE="SINGLE",ta.DOUBLE="DOUBLE",ta.DASHED="DASHED",ta.DOTTED="DOTTED",(te=a_||(a_={})).LARGE="LARGE",te.MEDIUM="MEDIUM",te.SMALL="SMALL",(to=aN||(aN={})).CENTER="CENTER",to.LEFT="LEFT",to.RIGHT="RIGHT",(tr=ab||(ab={})).NONE="NONE",tr.FULL="FULL",tr.MINI="MINI",(ti=aL||(aL={})).COLLAGE="COLLAGE",ti.MASONRY="MASONRY",ti.GRID="GRID",ti.THUMBNAIL="THUMBNAIL",ti.SLIDER="SLIDER",ti.SLIDESHOW="SLIDESHOW",ti.PANORAMA="PANORAMA",ti.COLUMN="COLUMN",ti.MAGIC="MAGIC",ti.FULLSIZE="FULLSIZE",(ts=aF||(aF={})).ROWS="ROWS",ts.COLUMNS="COLUMNS",(tn=aO||(aO={})).FILL="FILL",tn.FIT="FIT",(td=aw||(aw={})).TOP="TOP",td.RIGHT="RIGHT",td.BOTTOM="BOTTOM",td.LEFT="LEFT",td.NONE="NONE",(tp=aU||(aU={})).GIF="GIF",tp.STICKER="STICKER",(tm=aK||(aK={})).HTML="HTML",tm.ADSENSE="ADSENSE",(th=aV||(aV={})).START="START",th.END="END",th.TOP="TOP",th.HIDDEN="HIDDEN",(tl=aB||(aB={})).ROADMAP="ROADMAP",tl.SATELITE="SATELITE",tl.HYBRID="HYBRID",tl.TERRAIN="TERRAIN",(tu=aG||(aG={})).CREATOR="CREATOR",tu.VOTERS="VOTERS",tu.EVERYONE="EVERYONE",(tc=aq||(aq={})).SITE_MEMBERS="SITE_MEMBERS",tc.ALL="ALL",(tP=aH||(aH={})).LIST="LIST",tP.GRID="GRID",(tf=aW||(aW={})).LTR="LTR",tf.RTL="RTL",(tg=ak||(ak={})).COLOR="COLOR",tg.IMAGE="IMAGE",tg.GRADIENT="GRADIENT",(tT=a$||(a$={})).BOLD="BOLD",tT.ITALIC="ITALIC",tT.UNDERLINE="UNDERLINE",tT.SPOILER="SPOILER",tT.ANCHOR="ANCHOR",tT.MENTION="MENTION",tT.LINK="LINK",tT.COLOR="COLOR",tT.FONT_SIZE="FONT_SIZE",tT.EXTERNAL="EXTERNAL",(tD=aY||(aY={})).PX="PX",tD.EM="EM",(tE=aZ||(aZ={})).PRODUCT="PRODUCT",tE.EVENT="EVENT",tE.BOOKING="BOOKING",(tS=aX||(aX={})).FIRST="FIRST",tS.ALL="ALL",tS.NONE="NONE",(tv=az||(az={})).LTR="LTR",tv.RTL="RTL",(tR=aJ||(aJ={})).TOP="TOP",tR.MIDDLE="MIDDLE",tR.BOTTOM="BOTTOM",(aQ||(aQ={})).NULL_VALUE="NULL_VALUE",(ty=aj||(aj={})).UNKNOWN="UNKNOWN",ty.APPROVED="APPROVED",ty.REJECTED="REJECTED",(tC=a0||(a0={})).UNKNOWN="UNKNOWN",tC.OLDEST="OLDEST",tC.NEWEST="NEWEST",(tM=a3||(a3={})).UNKNOWN="UNKNOWN",tM.OLDEST="OLDEST",tM.NEWEST="NEWEST",(tI=a2||(a2={})).UNKNOWN="UNKNOWN",tI.ANONYMOUS_VISITOR="ANONYMOUS_VISITOR",tI.MEMBER="MEMBER",tI.WIX_USER="WIX_USER",tI.APP="APP",(tx=a1||(a1={})).PUBLISHED_DATE_ASC="PUBLISHED_DATE_ASC",tx.PUBLISHED_DATE_DESC="PUBLISHED_DATE_DESC",(tA=a9||(a9={})).UNKNOWN="UNKNOWN",tA.ADMIN="ADMIN",tA.ADD_CATEGORIES="ADD_CATEGORIES",tA.AUTO_SAVE="AUTO_SAVE",tA.COPY_TEMPLATE="COPY_TEMPLATE",tA.IMPORT="IMPORT",tA.IMPORT_BULK="IMPORT_BULK",tA.IMPORT_HTML="IMPORT_HTML",tA.IMPORT_PATCH="IMPORT_PATCH",tA.LANGUAGE_CHANGE="LANGUAGE_CHANGE",tA.MANUAL_SAVE="MANUAL_SAVE",tA.MIGRATION="MIGRATION",tA.MODERATION="MODERATION",tA.MOVE_TO_TRASH="MOVE_TO_TRASH",tA.PRICING_PLANS_CHANGE="PRICING_PLANS_CHANGE",tA.PROVISION="PROVISION",tA.PUBLISH="PUBLISH",tA.REASSIGN_OWNER="REASSIGN_OWNER",tA.REBLOG="REBLOG",tA.RESTORE="RESTORE",tA.REVERT_TO_DRAFT="REVERT_TO_DRAFT",tA.TRANSLATION="TRANSLATION",tA.UNPUBLISH="UNPUBLISH",tA.UNSCHEDULE="UNSCHEDULE",tA.NEW_EDIT_SESSION="NEW_EDIT_SESSION",tA.SCHEDULING_SERVICE_SCHEDULE="SCHEDULING_SERVICE_SCHEDULE",tA.SCHEDULING_SERVICE_UNSCHEDULE="SCHEDULING_SERVICE_UNSCHEDULE",tA.SCHEDULING_SERVICE_PUBLISH="SCHEDULING_SERVICE_PUBLISH",tA.SCHEDULE="SCHEDULE",tA.REMOVE_FROM_MODERATION="REMOVE_FROM_MODERATION",tA.REJECT_FROM_MODERATION="REJECT_FROM_MODERATION",tA.APPROVE_IN_MODERATION="APPROVE_IN_MODERATION",tA.DELETE_TAG="DELETE_TAG",tA.PIN="PIN",tA.UNPIN="UNPIN",tA.AI_AUTO_SAVE="AI_AUTO_SAVE",(t_=a5||(a5={})).UNKNOWN="UNKNOWN",t_.PUBLISHED="PUBLISHED",t_.UNPUBLISHED="UNPUBLISHED",t_.SCHEDULED="SCHEDULED",t_.DELETED="DELETED",t_.IN_REVIEW="IN_REVIEW",(tN=a8||(a8={})).UNKNOWN="UNKNOWN",tN.TOTAL_COMMENTS="TOTAL_COMMENTS",tN.LIKE_COUNT="LIKE_COUNT",tN.VIEW_COUNT="VIEW_COUNT",tN.RATING_COUNT="RATING_COUNT",(tb=a7||(a7={})).UNKNOWN="UNKNOWN",tb.URL="URL",tb.CONTENT_TEXT="CONTENT_TEXT",tb.METRICS="METRICS",tb.SEO="SEO",tb.CONTACT_ID="CONTACT_ID",tb.RICH_CONTENT="RICH_CONTENT",tb.REFERENCE_ID="REFERENCE_ID",(tL=a6||(a6={})).FEED="FEED",tL.PUBLISHED_DATE_ASC="PUBLISHED_DATE_ASC",tL.PUBLISHED_DATE_DESC="PUBLISHED_DATE_DESC",tL.VIEW_COUNT="VIEW_COUNT",tL.LIKE_COUNT="LIKE_COUNT",tL.TITLE_ASC="TITLE_ASC",tL.TITLE_DESC="TITLE_DESC",(tF=a4||(a4={})).ASC="ASC",tF.DESC="DESC";let oZ=(0,e_.EventDefinition)("wix.blog.v3.post_created",!0,t=>(0,er.renameKeysFromRESTResponseToSDKResponse)((0,en.transformPaths)(t,[{transformFn:es.transformRESTTimestampToSDKTimestamp,paths:[{path:"entity.firstPublishedDate"},{path:"entity.lastPublishedDate"},{path:"entity.richContent.metadata.createdTimestamp"},{path:"entity.richContent.metadata.updatedTimestamp"}
1,{path:"entity.moderationDetails.submittedDate"},{path:"entity.moderationDetails.moderationDate"},{path:"metadata.eventTime"}]},{transformFn:eA,paths:[{path:"entity.url"},{path:"entity.translations.url"}]},{transformFn:eI,paths:[{path:"entity.heroImage"},{path:"entity.coverMedia.image"},{path:"entity.media.wixMedia.image"}]},{transformFn:oK.transformRESTBytesToSDKBytes,paths:[{path:"entity.richContentCompressed"}]},{transformFn:ot,paths:[{path:"entity.coverMedia.video"}]},{transformFn:eV.transformRESTFloatToSDKFloat,paths:[{path:"entity.metrics.averageRating"},{path:"entity.richContent.nodes.galleryData.items.image.media.duration"},{path:"entity.richContent.nodes.galleryData.items.video.media.duration"},{path:"entity.richContent.nodes.galleryData.items.video.thumbnail.duration"},{path:"entity.richContent.nodes.galleryData.options.item.ratio"},{path:"entity.richContent.nodes.imageData.image.duration"},{path:"entity.richContent.nodes.mapData.mapSettings.lat"},{path:"entity.richContent.nodes.mapData.mapSettings.lng"},{path:"entity.richContent.nodes.pollData.poll.image.duration"},{path:"entity.richContent.nodes.pollData.poll.options.image.duration"},{path:"entity.richContent.nodes.pollData.design.poll.background.image.duration"},{path:"entity.richContent.nodes.appEmbedData.image.duration"},{path:"entity.richContent.nodes.videoData.video.duration"},{path:"entity.richContent.nodes.videoData.thumbnail.duration"},{path:"entity.richContent.nodes.audioData.audio.duration"},{path:"entity.richContent.nodes.audioData.coverImage.duration"}]},{transformFn:oe,paths:[{path:"entity.media.wixMedia.videoV2"}]}])))(),oX=(0,e_.EventDefinition)("wix.blog.v3.post_deleted",!0,t=>(0,er.renameKeysFromRESTResponseToSDKResponse)((0,en.transformPaths)(t,[{transformFn:es.transformRESTTimestampToSDKTimestamp,paths:[{path:"entity.firstPublishedDate"},{path:"entity.lastPublishedDate"},{path:"entity.richContent.metadata.createdTimestamp"},{path:"entity.richContent.metadata.updatedTimestamp"},{path:"entity.moderationDetails.submittedDate"},{path:"entity.moderationDetails.moderationDate"},{path:"metadata.eventTime"}]},{transformFn:eA,paths:[{path:"entity.url"},{path:"entity.translations.url"}]},{transformFn:eI,paths:[{path:"entity.heroImage"},{path:"entity.coverMedia.image"},{path:"entity.media.wixMedia.image"}]},{transformFn:oK.transformRESTBytesToSDKBytes,paths:[{path:"entity.richContentCompressed"}]},{transformFn:ot,paths:[{path:"entity.coverMedia.video"}]},{transformFn:eV.transformRESTFloatToSDKFloat,paths:[{path:"entity.metrics.averageRating"},{path:"entity.richContent.nodes.galleryData.items.image.media.duration"},{path:"entity.richContent.nodes.galleryData.items.video.media.duration"},{path:"entity.richContent.nodes.galleryData.items.video.thumbnail.duration"},{path:"entity.richContent.nodes.galleryData.options.item.ratio"},{path:"entity.richContent.nodes.imageData.image.duration"},{path:"entity.richContent.nodes.mapData.mapSettings.lat"},{path:"entity.richContent.nodes.mapData.mapSettings.lng"},{path:"entity.richContent.nodes.pollData.poll.image.duration"},{path:"entity.richContent.nodes.pollData.poll.options.image.duration"},{path:"entity.richContent.nodes.pollData.design.poll.background.image.duration"},{path:"entity.richContent.nodes.appEmbedData.image.duration"},{path:"entity.richContent.nodes.videoData.video.duration"},{path:"entity.richContent.nodes.videoData.thumbnail.duration"},{path:"entity.richContent.nodes.audioData.audio.duration"},{path:"entity.richContent.nodes.audioData.coverImage.duration"}]},{transformFn:oe,paths:[{path:"entity.media.wixMedia.videoV2"}]}])))(),oz=(0,e_.EventDefinition)("wix.blog.v3.post_liked",!0,t=>(0,er.renameKeysFromRESTResponseToSDKResponse)((0,en.transformPaths)(t,[{transformFn:es.transformRESTTimestampToSDKTimestamp,paths:[{path:"metadata.eventTime"}]}])))(),oJ=(0,e_.EventDefinition)("wix.blog.v3.post_unliked",!0,t=>(0,er.renameKeysFromRESTResponseToSDKResponse)((0,en.transformPaths)(t,[{transformFn:es.transformRESTTimestampToSDKTimestamp,paths:[{path:"metadata.eventTime"}]}])))(),oQ=(0,e_.EventDefinition)("wix.blog.v3.post_updated",!0,t=>(0,er.renameKeysFromRESTResponseToSDKResponse)((0,en.transformPaths)(t,[{transformFn:es.transformRESTTimestampToSDKTimestamp,paths:[{path:"entity.firstPublishedDate"},{path:"entity.lastPublishedDate"},{path:"entity.richContent.metadata.createdTimestamp"},{path:"entity.richContent.metadata.updatedTimestamp"}
1,{path:"entity.moderationDetails.submittedDate"},{path:"entity.moderationDetails.moderationDate"},{path:"metadata.eventTime"}]},{transformFn:eA,paths:[{path:"entity.url"},{path:"entity.translations.url"}]},{transformFn:eI,paths:[{path:"entity.heroImage"},{path:"entity.coverMedia.image"},{path:"entity.media.wixMedia.image"}]},{transformFn:oK.transformRESTBytesToSDKBytes,paths:[{path:"entity.richContentCompressed"}]},{transformFn:ot,paths:[{path:"entity.coverMedia.video"}]},{transformFn:eV.transformRESTFloatToSDKFloat,paths:[{path:"entity.metrics.averageRating"},{path:"entity.richContent.nodes.galleryData.items.image.media.duration"},{path:"entity.richContent.nodes.galleryData.items.video.media.duration"},{path:"entity.richContent.nodes.galleryData.items.video.thumbnail.duration"},{path:"entity.richContent.nodes.galleryData.options.item.ratio"},{path:"entity.richContent.nodes.imageData.image.duration"},{path:"entity.richContent.nodes.mapData.mapSettings.lat"},{path:"entity.richContent.nodes.mapData.mapSettings.lng"},{path:"entity.richContent.nodes.pollData.poll.image.duration"},{path:"entity.richContent.nodes.pollData.poll.options.image.duration"},{path:"entity.richContent.nodes.pollData.design.poll.background.image.duration"},{path:"entity.richContent.nodes.appEmbedData.image.duration"},{path:"entity.richContent.nodes.videoData.video.duration"},{path:"entity.richContent.nodes.videoData.thumbnail.duration"},{path:"entity.richContent.nodes.audioData.audio.duration"},{path:"entity.richContent.nodes.audioData.coverImage.duration"}]},{transformFn:oe,paths:[{path:"entity.media.wixMedia.videoV2"}]}])))(),oj=(0,ei.createRESTModule)(function(t){return a=>oq(a,{httpClient:t})}),o0=(0,ei.createRESTModule)(function(t){return a=>oH(a,{httpClient:t})}),o3=(0,ei.createRESTModule)(function(t){return(a,e)=>oW(a,e,{httpClient:t})}),o2=(0,ei.createRESTModule)(function(t){return(a,e)=>ok(a,e,{httpClient:t})}),o1=(0,ei.createRESTModule)(function(t){return a=>o$(a,{httpClient:t})}),o9=(0,ei.createRESTModule)(function(t){return a=>(function(t){let{httpClient:a,sideEffects:e}=arguments[1];return eU({func:async o=>{var r;let i=(r={...o,...t??{}},function({host:t}){return{entityFqdn:"wix.blog.v3.post",method:"POST",methodFqn:"com.wixpress.npm.communities.platformized.blog.v3.PostService.QueryPosts",packageName:oG,url:oV({protoPath:"/v3/posts/query",data:r,host:t}),data:r,transformResponse:t=>(0,en.transformPaths)(t,[{transformFn:es.transformRESTTimestampToSDKTimestamp,paths:[{path:"posts.firstPublishedDate"},{path:"posts.lastPublishedDate"},{path:"posts.coverMedia.image.urlExpirationDate"},{path:"posts.coverMedia.video.thumbnail.urlExpirationDate"},{path:"posts.heroImage.urlExpirationDate"},{path:"posts.richContent.metadata.createdTimestamp"},{path:"posts.richContent.metadata.updatedTimestamp"},{path:"posts.moderationDetails.submittedDate"},{path:"posts.moderationDetails.moderationDate"},{path:"posts.media.wixMedia.image.urlExpirationDate"},{path:"posts.media.wixMedia.videoV2.urlExpirationDate"},{path:"posts.media.wixMedia.videoV2.resolutions.urlExpirationDate"},{path:"posts.media.wixMedia.videoV2.resolutions.poster.urlExpirationDate"},{path:"posts.media.wixMedia.videoV2.posters.urlExpirationDate"}]},{transformFn:oK.transformRESTBytesToSDKBytes,paths:[{path:"posts.richContentCompressed"}]},{transformFn:eV.transformRESTFloatToSDKFloat,paths:[{path:"posts.coverMedia.image.focalPoint.x"},{path:"posts.coverMedia.image.focalPoint.y"},{path:"posts.coverMedia.video.thumbnail.focalPoint.x"},{path:"posts.coverMedia.video.thumbnail.focalPoint.y"},{path:"posts.heroImage.focalPoint.x"},{path:"posts.heroImage.focalPoint.y"},{path:"posts.media.wixMedia.image.focalPoint.x"},{path:"posts.media.wixMedia.image.focalPoint.y"},{path:"posts.media.wixMedia.videoV2.resolutions.poster.focalPoint.x"},{path:"posts.media.wixMedia.videoV2.resolutions.poster.focalPoint.y"},{path:"posts.media.wixMedia.videoV2.posters.focalPoint.x"},{path:"posts.media.wixMedia.videoV2.posters.focalPoint.y"},{path:"posts.metrics.averageRating"},{path:"posts.richContent.nodes.galleryData.items.image.media.duration"},{path:"posts.richContent.nodes.galleryData.items.video.media.duration"},{path:"posts.richContent.nodes.galleryData.items.video.thumbnail.duration"},{path:"posts.richContent.nodes.galleryData.options.item.ratio"},{path:"posts.richContent.nodes.imageData.image.duration"},{path:"posts.richContent.nodes.mapData.mapSettings.lat"},{path:"posts.richContent.nodes.mapData.mapSettings.lng"},{path:"posts.richContent.nodes.pollData.poll.image.duration"},{path:"posts.richContent.nodes.pollData.poll.options.image.duration"},{path:"posts.richContent.nodes.pollData.design.poll.background.image.duration"},{path:"posts.richContent.nodes.appEmbedData.image.duration"},{path:"posts.richContent.nodes.videoData.video.duration"},{path:"posts.richContent.nodes.videoData.thumbnail.duration"},{path:"posts.richContent.nodes.audioData.audio.duration"},{path:"posts.richContent.nodes.audioData.coverImage.duration"}]}])}});e?.onSiteCall?.();try{let t=await a.request(i);return e?.onSuccess?.(t),t}catch(t){throw e?.onError?.(t),t}},requestTransformer:a=>{let e=[a,t];return(0,er.renameKeysFromSDKRequestToRESTRequest)({...e?.[1],query:e?.[0]})},responseTransformer:({data:t})=>{let a=(0,er.renameKeysFromRESTResponseToSDKResponse)((0,en.transformPaths)(t,[{transformFn:eA,paths:[{path:"posts.url"},{path:"posts.translations.url"}]},{transformFn:eI,paths:[{path:"posts.heroImage"},{path:"posts.coverMedia.image"},{path:"posts.media.wixMedia.image"}]},{transformFn:ot,paths:[{path:"posts.coverMedia.video"}]},{transformFn:oe,paths:[{path:"posts.media.wixMedia.videoV2"}]}]));return{items:a?.posts,pagingMetadata:a?.pagingMetadata}},errorTransformer:t=>{throw(0,eo.transformError)(t,{spreadPathsToArguments:{},explicitPathsToArguments:{query:"$[0]"},singleArgumentUnchanged:!1})},pagingMethod:"CURSOR",transformationPaths:{}})})(a,{httpClient:t})}),o5=(0,ei.createRESTModule)(function(t){return a=>oY(a,{httpClient:t})}),o8=(0,eQ.createEventModule)(oZ),o7=(0,eQ.createEventModule)(oX),o6=(0,eQ.createEventModule)(oz),o4=(0,eQ.
1createEventModule)(oJ),rt=(0,eQ.createEventModule)(oQ);t.s(["getPost",0,o3,"getPostBySlug",0,o2,"getPostMetrics",0,o5,"getTotalPosts",0,o0,"listPosts",0,o1,"onPostCreated",0,o8,"onPostDeleted",0,o7,"onPostLiked",0,o6,"onPostUnliked",0,o4,"onPostUpdated",0,rt,"queryPostCountStats",0,oj,"queryPosts",0,o9],821934),t.s([],895337),t.i(895337),t.i(821934),t.s(["Alignment",()=>aN,"AppType",()=>aZ,"BackgroundType",()=>ak,"Crop",()=>aO,"DecorationType",()=>a$,"Direction",()=>az,"Field",()=>a8,"FontType",()=>aY,"GIFType",()=>aU,"GetPostTemplatesSort",()=>a1,"GetPostsSort",()=>a6,"InitialExpandedItems",()=>aX,"LayoutType",()=>aL,"LineStyle",()=>aA,"MapType",()=>aB,"ModerationStatusStatus",()=>aj,"NodeType",()=>aR,"NullValue",()=>aQ,"Order",()=>a3,"Orientation",()=>aF,"Origin",()=>a9,"PluginContainerDataAlignment",()=>aC,"PollLayoutDirection",()=>aW,"PollLayoutType",()=>aH,"Position",()=>aV,"PostFieldField",()=>a7,"QueryPublicationsCountStatsRequestOrder",()=>a0,"SortOrder",()=>a4,"Source",()=>aK,"Status",()=>a5,"Target",()=>aI,"TextAlignment",()=>ax,"ThumbnailsAlignment",()=>aw,"Type",()=>aM,"VerticalAlignment",()=>aJ,"ViewMode",()=>ab,"ViewRole",()=>aG,"VoteRole",()=>aq,"WebhookIdentityType",()=>a2,"Width",()=>a_,"WidthType",()=>ay,"getPost",0,o3,"getPostBySlug",0,o2,"getPostMetrics",0,o5,"getTotalPosts",0,o0,"listPosts",0,o1,"onPostCreated",0,o8,"onPostDeleted",0,o7,"onPostLiked",0,o6,"onPostUnliked",0,o4,"onPostUpdated",0,rt,"queryPostCountStats",0,oj,"queryPosts",0,o9],541439),t.i(541439),t.s(["Alignment",()=>aN,"AppType",()=>aZ,"BackgroundType",()=>ak,"Crop",()=>aO,"DecorationType",()=>a$,"Direction",()=>az,"Field",()=>a8,"FontType",()=>aY,"GIFType",()=>aU,"GetPostTemplatesSort",()=>a1,"GetPostsSort",()=>a6,"InitialExpandedItems",()=>aX,"LayoutType",()=>aL,"LineStyle",()=>aA,"MapType",()=>aB,"ModerationStatusStatus",()=>aj,"NodeType",()=>aR,"NullValue",()=>aQ,"Order",()=>a3,"Orientation",()=>aF,"Origin",()=>a9,"PluginContainerDataAlignment",()=>aC,"PollLayoutDirection",()=>aW,"PollLayoutType",()=>aH,"Position",()=>aV,"PostFieldField",()=>a7,"QueryPublicationsCountStatsRequestOrder",()=>a0,"SortOrder",()=>a4,"Source",()=>aK,"Status",()=>a5,"Target",()=>aI,"TextAlignment",()=>ax,"ThumbnailsAlignment",()=>aw,"Type",()=>aM,"VerticalAlignment",()=>aJ,"ViewMode",()=>ab,"ViewRole",()=>aG,"VoteRole",()=>aq,"WebhookIdentityType",()=>a2,"Width",()=>a_,"WidthType",()=>ay,"getPost",0,o3,"getPostBySlug",0,o2,"getPostMetrics",0,o5,"getTotalPosts",0,o0,"listPosts",0,o1,"onPostCreated",0,o8,"onPostDeleted",0,o7,"onPostLiked",0,o6,"onPostUnliked",0,o4,"onPostUpdated",0,rt,"queryPostCountStats",0,oj,"queryPosts",0,o9],229698);var ra=t.i(229698);function re(t){return(0,ei.resolveUrl)(Object.assign(t,{domainToMappings:{_:[{srcPath:"/_api/communities-blog-node-api/v3/tags",destPath:"/v3/tags"}],"apps._base_domain_":[{srcPath:"/_api/communities-blog-node-api/v3/tags",destPath:"/v3/tags"}],"www._base_domain_":[{srcPath:"/_api/communities-blog-node-api/v3/tags",destPath:"/v3/tags"}],"www.wixapis.com":[{srcPath:"/v3/tags",destPath:"/v3/tags"},{srcPath:"/blog/v3/tags",destPath:"/v3/tags"}],"manage._base_domain_":[{srcPath:"/_api/communities-blog-node-api/v2/tags",destPath:"/v2/tags"},{srcPath:"/_api/communities-blog-node-api/v3/bulk/tag",destPath:"/v3/bulk/tag"},{srcPath:"/_api/communities-blog-node-api/v3/bulk/tags",destPath:"/v3/bulk/tags"},{srcPath:"/_api/communities-blog-node-api/v3/tags",destPath:"/v3/tags"}],"bo._base_domain_":[{srcPath:"/_api/communities-blog-node-api/v3/tags",destPath:"/v3/tags"}],"wixbo.ai":[{srcPath:"/_api/communities-blog-node-api/v3/tags",destPath:"/v3/tags"}],"wix-bo.com":[{srcPath:"/_api/communities-blog-node-api/v3/tags",destPath:"/v3/tags"}],"editor._base_domain_":[{srcPath:"/_api/communities-blog-node-api/v3/tags",destPath:"/v3/tags"}],"blocks._base_domain_":[{srcPath:"/_api/communities-blog-node-api/v3/tags",destPath:"/v3/tags"}],"create.editorx":[{srcPath:"/_api/communities-blog-node-api/v3/tags",destPath:"/v3/tags"}],"editor.wixapps.net":[{srcPath:"/_api/communities-blog-node-api/v3/tags",destPath:"/v3/tags"}],"*.dev.wix-code.com":[{srcPath:"/_api/communities-blog-node-api/v3/tags",destPath:"/v3/tags"}],"social-blog._base_domain_":[{srcPath:"/_api/communities-blog-node-api/v3/tags",destPath:"/v3/tags"}]}}))}let ro="@wix/auto_sdk_blog_tags";async function rr(t,a){var e;let{httpClient:o,sideEffects:r}=arguments[2],i=(e=(0,er.renameKeysFromSDKRequestToRESTRequest)({label:t,language:a?.language,slug:a?.slug,fieldsets:a?.fieldsets}),function({host:t}){return{entityFqdn:"wix.blog.v3.tag",method:"POST",methodFqn:"com.wixpress.npm.communities.platformized.blog.TagService.CreateTag",packageName:ro,url:re({protoPath:"/v3/tags",data:e,host:t}),data:e,transformResponse:t=>(0,en.transformPaths)(t,[{transformFn:es.transformRESTTimestampToSDKTimestamp,paths:[{path:"tag.createdDate"},{path:"tag.updatedDate"}]}])}});r?.onSiteCall?.();try{let t=await o.request(i);return r?.onSuccess?.(t),(0,er.renameKeysFromRESTResponseToSDKResponse)((0,en.transformPaths)(t.data,[{transformFn:eA,paths:[{path:"tag.url"}]}]))}catch(a){let t=(0,eo.transformError)(a,{spreadPathsToArguments:{},explicitPathsToArguments:{label:"$[0]",language:"$[1].language",slug:"$[1].slug",fieldsets:"$[1].fieldsets"},singleArgumentUnchanged:!1},["label","options"]);throw r?.onError?.(a),t}}
1async function ri(t,a){var e;let{httpClient:o,sideEffects:r}=arguments[2],i=(e=(0,er.renameKeysFromSDKRequestToRESTRequest)({label:t,language:a?.language,fieldsets:a?.fieldsets}),function({host:t}){return{entityFqdn:"wix.blog.v3.tag",method:"GET",methodFqn:"com.wixpress.npm.communities.platformized.blog.TagService.GetTagByLabel",packageName:ro,url:re({protoPath:"/v3/tags/labels/{label}",data:e,host:t}),params:(0,ei.toURLSearchParams)(e),transformResponse:t=>(0,en.transformPaths)(t,[{transformFn:es.transformRESTTimestampToSDKTimestamp,paths:[{path:"tag.createdDate"},{path:"tag.updatedDate"}]}])}});r?.onSiteCall?.();try{let t=await o.request(i);return r?.onSuccess?.(t),(0,er.renameKeysFromRESTResponseToSDKResponse)((0,en.transformPaths)(t.data,[{transformFn:eA,paths:[{path:"tag.url"}]}]))}catch(a){let t=(0,eo.transformError)(a,{spreadPathsToArguments:{},explicitPathsToArguments:{label:"$[0]",language:"$[1].language",fieldsets:"$[1].fieldsets"},singleArgumentUnchanged:!1},["label","options"]);throw r?.onError?.(a),t}}async function rs(t,a){var e;let{httpClient:o,sideEffects:r}=arguments[2],i=(e=(0,er.renameKeysFromSDKRequestToRESTRequest)({tagId:t,fieldsets:a?.fieldsets}),function({host:t}){return{entityFqdn:"wix.blog.v3.tag",method:"GET",methodFqn:"com.wixpress.npm.communities.platformized.blog.TagService.GetTag",packageName:ro,url:re({protoPath:"/v3/tags/{tagId}",data:e,host:t}),params:(0,ei.toURLSearchParams)(e),transformResponse:t=>(0,en.transformPaths)(t,[{transformFn:es.transformRESTTimestampToSDKTimestamp,paths:[{path:"tag.createdDate"},{path:"tag.updatedDate"}]}])}});r?.onSiteCall?.();try{let t=await o.request(i);return r?.onSuccess?.(t),(0,er.renameKeysFromRESTResponseToSDKResponse)((0,en.transformPaths)(t.data,[{transformFn:eA,paths:[{path:"tag.url"}]}]))?.tag}catch(a){let t=(0,eo.transformError)(a,{spreadPathsToArguments:{},explicitPathsToArguments:{tagId:"$[0]",fieldsets:"$[1].fieldsets"},singleArgumentUnchanged:!1},["tagId","options"]);throw r?.onError?.(a),t}}async function rn(t,a){var e;let{httpClient:o,sideEffects:r}=arguments[2],i=(e=(0,er.renameKeysFromSDKRequestToRESTRequest)({slug:t,fieldsets:a?.fieldsets,language:a?.language}),function({host:t}){return{entityFqdn:"wix.blog.v3.tag",method:"GET",methodFqn:"com.wixpress.npm.communities.platformized.blog.TagService.GetTagBySlug",packageName:ro,url:re({protoPath:"/v3/tags/slugs/{slug}",data:e,host:t}),params:(0,ei.toURLSearchParams)(e),transformResponse:t=>(0,en.transformPaths)(t,[{transformFn:es.transformRESTTimestampToSDKTimestamp,paths:[{path:"tag.createdDate"},{path:"tag.updatedDate"}]}])}});r?.onSiteCall?.();try{let t=await o.request(i);return r?.onSuccess?.(t),(0,er.renameKeysFromRESTResponseToSDKResponse)((0,en.transformPaths)(t.data,[{transformFn:eA,paths:[{path:"tag.url"}]}]))}catch(a){let t=(0,eo.transformError)(a,{spreadPathsToArguments:{},explicitPathsToArguments:{slug:"$[0]",fieldsets:"$[1].fieldsets",language:"$[1].language"},singleArgumentUnchanged:!1},["slug","options"]);throw r?.onError?.(a),t}}async function rd(t){var a;let{httpClient:e,sideEffects:o}=arguments[1],r=(a=(0,er.renameKeysFromSDKRequestToRESTRequest)({tagId:t}),function({host:t}){return{entityFqdn:"wix.blog.v3.tag",method:"DELETE",methodFqn:"com.wixpress.npm.communities.platformized.blog.TagService.DeleteTag",packageName:ro,url:re({protoPath:"/v3/tags/{tagId}",data:a,host:t}),params:(0,ei.toURLSearchParams)(a)}});o?.onSiteCall?.();try{let t=await e.request(r);o?.onSuccess?.(t)}catch(a){let t=(0,eo.transformError)(a,{spreadPathsToArguments:{},explicitPathsToArguments:{tagId:"$[0]"},singleArgumentUnchanged:!1},["tagId"]);throw o?.onError?.(a),t}}(tO=et||(et={})).UNKNOWN="UNKNOWN",tO.URL="URL",(tw=ea||(ea={})).ASC="ASC",tw.DESC="DESC",(tU=ee||(ee={})).UNKNOWN="UNKNOWN",tU.ANONYMOUS_VISITOR="ANONYMOUS_VISITOR",tU.MEMBER="MEMBER",tU.WIX_USER="WIX_USER",tU.APP="APP";let rp=(0,e_.EventDefinition)("wix.blog.v3.tag_created",!0,t=>(0,er.renameKeysFromRESTResponseToSDKResponse)((0,en.transformPaths)(t,[{transformFn:es.transformRESTTimestampToSDKTimestamp,paths:[{path:"entity.createdDate"},{path:"entity.updatedDate"},{path:"metadata.eventTime"}]},{transformFn:eA,paths:[{path:"entity.url"}]}])))(),rm=(0,e_.EventDefinition)("wix.blog.v3.tag_deleted",!0,t=>(0,er.renameKeysFromRESTResponseToSDKResponse)((0,en.transformPaths)(t,[{transformFn:es.transformRESTTimestampToSDKTimestamp,paths:[{path:"undefined.createdDate"},{path:"undefined.updatedDate"},{path:"metadata.eventTime"}]},{transformFn:eA,paths:[{path:"undefined.url"}]}])))(),rh=(0,e_.EventDefinition)("wix.blog.v3.tag_updated",!0,t=>(0,er.renameKeysFromRESTResponseToSDKResponse)((0,en.transformPaths)(t,[{transformFn:es.transformRESTTimestampToSDKTimestamp,paths:[{path:"entity.createdDate"},{path:"entity.updatedDate"},{path:"metadata.eventTime"}]},{transformFn:eA,paths:[{path:"entity.url"}]}])))(),rl=(0,ei.createRESTModule)(function(t){return(a,e)=>rr(a,e,{httpClient:t})}),ru=(0,ei.createRESTModule)(function(t){return(a,e)=>ri(a,e,{httpClient:t})}),rc=(0,ei.createRESTModule)(function(t){return(a,e)=>rs(a,e,{httpClient:t})}),rP=(0,ei.createRESTModule)(function(t){return(a,e)=>rn(a,e,{httpClient:t})}),rf=(0,ei.createRESTModule)(function(t){return a=>(function(t){let{httpClient:a,sideEffects:e}=arguments[1];return eU({func:async o=>{var r;let i=(r={...o,...t??{}},function({host:t}){return{entityFqdn:"wix.blog.v3.tag",method:"POST",methodFqn:"com.wixpress.npm.communities.platformized.blog.TagService.QueryTags",packageName:ro,url:re({protoPath:"/v3/tags/query",data:r,host:t}),data:r,transformResponse:t=>(0,en.transformPaths)(t,[{transformFn:es.transformRESTTimestampToSDKTimestamp,paths:[{path:"tags.createdDate"},{path:"tags.updatedDate"}]}])}});e?.onSiteCall?.();try{let t=await a.request(i);return e?.onSuccess?.(t),t}catch(t){throw e?.onError?.(t),t}},requestTransformer:a=>{let e=[a,t];return(0,er.renameKeysFromSDKRequestToRESTRequest)({...e?.[1],query:e?.[0]})},responseTransformer:({data:t})=>{let a=(0,er.renameKeysFromRESTResponseToSDKResponse)((0,en.transformPaths)(t,[{transformFn:eA,paths:[{path:"tags.url"}]}]));return{items:a?.tags,pagingMetadata:a?.pagingMetadata}},errorTransformer:t=>{throw(0,eo.transformError)(t,{spreadPathsToArguments:{},explicitPathsToArguments:{query:"$[0]"},singleArgumentUnchanged:!1})},pagingMethod:"OFFSET",transformationPaths:{}})})(a,{httpClient:t})}),rg=(0,ei.createRESTModule)(function(t){return a=>rd(a,{httpClient:t})}
1),rT=(0,eQ.createEventModule)(rp),rD=(0,eQ.createEventModule)(rm),rE=(0,eQ.createEventModule)(rh);t.s(["createTag",0,rl,"deleteTag",0,rg,"getTag",0,rc,"getTagByLabel",0,ru,"getTagBySlug",0,rP,"onTagCreated",0,rT,"onTagDeleted",0,rD,"onTagUpdated",0,rE,"queryTags",0,rf],294718),t.s([],405576),t.i(405576),t.i(294718),t.s(["Field",()=>et,"SortOrder",()=>ea,"WebhookIdentityType",()=>ee,"createTag",0,rl,"deleteTag",0,rg,"getTag",0,rc,"getTagByLabel",0,ru,"getTagBySlug",0,rP,"onTagCreated",0,rT,"onTagDeleted",0,rD,"onTagUpdated",0,rE,"queryTags",0,rf],292596),t.i(292596),t.s(["Field",()=>et,"SortOrder",()=>ea,"WebhookIdentityType",()=>ee,"createTag",0,rl,"deleteTag",0,rg,"getTag",0,rc,"getTagByLabel",0,ru,"getTagBySlug",0,rP,"onTagCreated",0,rT,"onTagDeleted",0,rD,"onTagUpdated",0,rE,"queryTags",0,rf],873807),t.i(873807),t.s([],987505),t.s(["posts",0,ra],661572)}]);

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.