Deprecated: Function get_magic_quotes_gpc() is deprecated in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 99

Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 619

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 832

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 839

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 839

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 839

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 839

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 839

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 839

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 839

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 839

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 839

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 839

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 839

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 839

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 839

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 839

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 839

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 839

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 839

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 839

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 839

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 839

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 839

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 839
import{au as h}from"./header-CguoQ-HR.js";import{f as $}from"./api-BMhLuQgf.js";const i=h,w=i` mutation UpdateEmbeddedRedirectUrisMutation($serviceModuleName: String!, $redirects: [String!]) { updateEmbeddedRedirectUris(input: { channel_module_name: $serviceModuleName, embedded_redirect_uris: $redirects }) { channel { embedded_redirect_uris } errors { attribute message } } } `,b=i` mutation SendDownloadLinkMutation($phoneNumber: String!, $platform: String!, $forApplet: Boolean) { sendDownloadLinkMutation(input: { phone_number: $phoneNumber, platform: $platform, for_applet: $forApplet }) { errors { attribute message } status } } `;i` mutation AddChannelToFavoriteChannelsMutation($channelNames: [String]!) { addChannelToFavoriteChannelsMutation(input: { channel_names: $channelNames }) { favorite_channels { id } errors { attribute message } } } `;const y=i` mutation InviteUserToOrganizationMutation($emailOrLogin: String!, $orgId: String!, $allowAccountCreation: Boolean) { inviteUserToOrganization( input: { user_login: $emailOrLogin, organization_id: $orgId, create_magick_account: $allowAccountCreation } ) { errors { attribute message } org { pending_invitations { id login email email_for_org_users } expired_invitations { id login email email_for_org_users } remaining_invitations } } } `,A=i` mutation RevokeInvitationToOrganizationMutation($userId: String!, $orgId: String!) { revokeInvitationToOrganization(input: { user_id: $userId, organization_id: $orgId }) { errors { attribute message } org { users { id login email email_for_org_users } pending_invitations { id login email email_for_org_users } expired_invitations { id login email email_for_org_users } remaining_invitations } } } `,S=i` mutation ChangeOrganizationOwnerMutation($userId: String!, $orgId: String!) { changeOrganizationOwner(input: { user_id: $userId, organization_id: $orgId }) { org_owner { id login email } errors { attribute message } } } `,v=i` mutation UpdateOrganizationDetailsMutation($orgId: Int!, $name: String) { updateOrganizationDetails(input: { id: $orgId, name: $name }) { organization { name } errors { attribute message } } } `,I=i` mutation RemoveUserFromOrganizationMutation($userId: String, $orgId: String!) { removeUserFromOrganization(input: { user_id: $userId, organization_id: $orgId }) { org_users { id login email email_for_org_users } errors { attribute message } } } `,k=i` mutation CreateAppletFeedbackMutation($appletId: String!, $like: Boolean!, $opinionCode: String, $text: String) { createAppletFeedback(input: { applet_id: $appletId, like: $like, opinion_code: $opinionCode, text: $text }) { errors { attribute message } applet_feedback { like } } } `,C=i` mutation CreatePlatformSuggestionMutation( $channelId: Int! $suggestionType: String! $suggestionName: String $text: String $contextChannelId: Int ) { createPlatformSuggestion( input: { channel_id: $channelId suggestion_type: $suggestionType suggestion_name: $suggestionName text: $text context_channel_id: $contextChannelId } ) { errors { attribute message } platform_suggestion { suggestion_type } } } `,T=i` mutation AddServiceSubscriptionMutation( $channelId: Int! $newApplet: Boolean $newTrigger: Boolean $newAction: Boolean ) { addServiceSubscription( input: { channel_id: $channelId, new_applet: $newApplet, new_trigger: $newTrigger, new_action: $newAction } ) { errors { attribute message } service_update_subscription { id new_applet new_trigger new_action } } } `,z=i` mutation RestorePersonalAppletMutation($appletId: String!) { restorePersonalApplet(input: { applet_id: $appletId }) { normalized_applet { archived } errors { attribute message } } } `,x=i` mutation ReportChannelFeedbackAbuseMutation($feedbackType: String!, $id: Int!, $textApproved: Boolean!) { reportChannelFeedbackAbuse(input: { feedback_type: $feedbackType, id: $id, text_approved: $textApproved }) { errors { attribute message } } } `,U=i` query ForwardSuggestionQuery($channel: String!, $type: String!, $cursor: String, $order: String) { channel(module_name: $channel) { platform_suggestions(suggestion_type: $type, order: $order, first: 10, after: $cursor) { pageInfo { startCursor endCursor hasNextPage hasPreviousPage } total_count edges { cursor node { suggestion_name text created_at id text_approved context_channel { monochrome_image_url brand_color name } context_channel_published user { login profile_image_url } } } } } } `,O=i` query BackwardSuggestionQuery($channel: String!, $type: String!, $cursor: String, $order: String) { channel(module_name: $channel) { platform_suggestions(suggestion_type: $type, order: $order, last: 10, before: $cursor) { pageInfo { startCursor endCursor hasNextPage hasPreviousPage } total_count edges { cursor node { suggestion_name text created_at id text_approved context_channel { monochrome_image_url brand_color name } context_channel_published user { login profile_image_url } } } } } } `,M=i` query ForwardAppletQuery($appletId: String, $order: String, $cursor: String) { normalized_applets(ids: [$appletId]) { applet_feedbacks(order: $order, first: 10, after: $cursor) { pageInfo { startCursor endCursor hasNextPage hasPreviousPage } total_count edges { cursor node { text created_at id like opinion_code user { login profile_image_url } } } } } } `,F=i` query BackwardAppletQuery($appletId: String!, $order: String, $cursor: String) { normalized_applets(ids: [$appletId]) { applet_feedbacks(order: $order, first: 10, before: $cursor) { pageInfo { startCursor endCursor hasNextPage hasPreviousPage } total_count edges { cursor node { text created_at id like opinion_code user { login profile_image_url } } } } } } `,P=i` query ConnectionAlreadyExistsOnAnotherIFTTTAccountQuery($appletId: String!) { applet(id: $appletId, in_embed_view: true) { connection_already_exists } } `,Q=i` mutation LiveConfigurationUpdateMutation($applet_id: String, $metadata: JSON) { liveConfigurationUpdate(input: { applet_id: $applet_id, metadata: $metadata }) { errors { attribute message } } } `,E=i` query AppletFeedbackByUser($appletId: String!) { applet(id: $appletId) { normalized_applet { applet_feedback_by_user } } } `,d=i` id friendly_id config_type name description archived monochrome_icon_url status service_slug brand_color published installs_count author author_tier created_at by_service_owner intermediate_pro_features pro_features background_images { sm_background_image_url background_image_url_1x } channels { name module_name monochrome_image_url brand_color } `;function q(e){return o(z,{appletId:e})}function D(e){return o(E,{appletId:e}).then(t=>t.applet.normalized_applet)}function L(e){return o(P,{appletId:e}).then(t=>t.applet)}function J(e,t,n=!0){return o(y,{emailOrLogin:e,orgId:t,allowAccountCreation:n}).then(r=>r.inviteUserToOrganization)}function W(e,t){return o(A,{userId:e,orgId:t}).then(n=>n.revokeInvitationToOrganization)}function G(e,t){return o(I,{userId:e,orgId:t}).then(n=>n.removeUserFromOrganization)}function V(e,t){return o(S,{userId:e,orgId:t}).then(n=>n.changeOrganizationOwner.org_owner)}function X(e,t){return o(v,{orgId:e,name:t}).then(n=>n.updateOrganizationDetails.organization)}function H(e,t){return o(w,{serviceModuleName:e,redirects:t}).then(n=>n.updateEmbeddedRedirectUris.channel.embedded_redirect_uris)}function K(e,t,n){return o(b,{phoneNumber:e,platform:t,forApplet:n}).then(r=>r.sendDownloadLinkMutation)}function Y(e,t,n,r){return o(k,{appletId:e,like:t,opinionCode:n,text:r}).then(a=>a.createAppletFeedback)}function Z(e,t,n,r,a){return o(C,{channelId:Number(e),suggestionType:t,suggestionName:n,text:r,contextChannelId:a}).then(s=>s.createPlatformSuggestion)}function ee(e,t){let n=t.trigger||null,r=t.action||null,a=t.applet||null;return o(T,{channelId:e,newApplet:a,newTrigger:n,newAction:r}).then(s=>s.addServiceSubscription)}function te(e,t,n){return o(x,{feedbackType:e,id:t,textApproved:n}).then(r=>r.reportChannelFeedbackAbuse)}function ne(e,t){return o(Q,{applet_id:e,metadata:t}).then(n=>n.liveConfigurationUpdate)}function re(e,t,n,r,a=!0){return a?o(U,{channel:e,type:t,cursor:r,order:n}).then(s=>s.channel.platform_suggestions):o(O,{channel:e,type:t,cursor:r,order:n}).then(s=>s.channel.platform_suggestions)}function ae(e,t,n,r=!0){return r?o(M,{appletId:e,order:t,cursor:n}).then(a=>a.normalized_applets[0].applet_feedbacks):o(F,{appletId:e,order:t,cursor:n}).then(a=>a.normalized_applets[0].applet_feedbacks)}function ie(e,t,n){const r=i` query UserLiveAppletsQuery($offset: Int, $limit: Int, $applet_channel: String) { live_applets(limit: $limit, offset: $offset, order: my_applets, applet_channel: $applet_channel) { applet { normalized_applet { ${d} } } } } `;return o(r,{limit:e,offset:t,applet_channel:n})}function oe(e,t,n){const r=i` query UserAppletsQuery($user_login: String, $offset: Int, $limit: Int) { applets(user_login: $user_login, include_draft: true, include_archived: false, limit: $limit, offset: $offset) { normalized_applet { ${d} } } } `;return o(r,{user_login:e,limit:t,offset:n})}function se(e,t,n){const r=i` query UserAppletsQuery($user_login: String, $offset: Int, $limit: Int) { applets( user_login: $user_login, include_draft: true, archived: true, limit: $limit, offset: $offset, order: "created_at_asc" ) { normalized_applet { ${d} pro_features } } } `;return o(r,{user_login:e,limit:t,offset:n})}async function ue(){const e=i` query UserAppletsTotalQuery { my_applets_total } `;return(await o(e)).my_applets_total}const N=["Too many requests"];async function m(e,t={},n={}){var a,s;const r=e.trim().startsWith("mutation");window.App.jwtExp&&!n.retried&&new Date().getTime()/1e3+60>window.App.jwtExp&&await c();try{const u=await fetch("/api/v3/graph",{method:"post",mode:"cors",headers:{"Content-Type":"application/json; charset=utf-8",Authorization:`Token jwt="${window.App.userJWT}"`},body:JSON.stringify({query:e,variables:t})});if(u.ok){const p=await u.json(),l=(a=p.errors)==null?void 0:a[0];return l&&(l.message.includes("Too many requests")&&window.appendFlash("Too many requets. Please try again later.","danger"),N.some(f=>{var g;return(g=l.message)==null?void 0:g.includes(f)})||(s=window.App.Utils)==null||s.logDatadogError(l)),!n.retried&&(l==null?void 0:l.message.includes("Authentication failed"))&&await c()?m(e,t,{retried:!0}):(!l&&r&&(n.awaitClearCache?await _():_()),p)}else return Promise.reject(u)}catch(u){return Promise.reject({response:u.statusText,status:u.status,error:u})}}async function c(){return fetch("/jwt/refresh",{method:"GET",headers:{"Content-Type":"application/json"}}).then(e=>e.json()).then(e=>e.jwt?(window.App.userJWT=e.jwt,window.App.jwtExp=e.exp,!0):!1)}async function _(){fetch("/session/clear_cache",{method:"post",headers:{"X-CSRF-Token":await $()}}).catch(e=>window.App.allowDebugErrorMessages&&console.warn(e))}function o(e,t={},n={}){return m(e,t,n).then(r=>{if(r.data)return r.data;{const a=new Error("Failed GraphQL call");throw a.details=r.errors,a}}).catch(r=>{if(n.shouldRetryOnFailure)return n.shouldRetryOnFailure=!1,o(e,t,n);throw r})}function le(e){let t={},n,r,a,s;return e.forEach(u=>{if(u.attribute){if(n=u.attribute.split("/"),r=n[1],a=n[2].replace(/~1/g,"/"),s=n[3],n[4]){let p=n[3];a=`${a}/${p}`,s=n[4]}t[r]=t[r]||{},s&&a?(t[r][a]=t[r][a]||{},t[r][a][s]=t[r][a][s]||[],t[r][a][s].push(u.message)):a&&(t[r][a]=t[r][a]||[],t[r][a].push(u.message))}}),{original:e.map(u=>({data:u})),validation_errors:t}}export{o as a,m as b,L as c,Y as d,Z as e,D as f,i as g,se as h,ue as i,oe as j,ie as k,ne as l,te as m,ae as n,re as o,le as p,X as q,q as r,K as s,V as t,H as u,J as v,G as w,W as x,ee as y}; //# sourceMappingURL=graphql-BMYk2Jq9.js.map