1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9208],{2286:(e,i,n)=>{"use strict";n.d(i,{Ay:()=>d}),n(14232);var a=n(80958),t=n(37876);let d=(0,a.A)("Pencil",(0,t.jsx)("path",{d:"M111.652 111.652c.565-.485 1.009-1.13 1.332-1.938.404-1.05.605-1.897.605-2.543 0-.323-.04-.767-.12-1.332l-5.813-23.372c-1.534 1.454-3.27 2.18-5.208 2.18 0 4.763-1.776 8.921-5.328 12.473-3.552 3.633-7.71 5.45-12.473 5.45 0 1.776-.726 3.471-2.18 5.086l23.251 5.812c.565.081 1.09.121 1.574.121.646 0 1.454-.201 2.422-.605a6.386 6.386 0 0 0 1.938-1.332Zm-89.007-73.99 15.016-14.896 1.332-14.41-14.41 1.332L9.567 24.583l-1.332 14.41 14.41-1.332ZM21.192 1.815 47.228 0l62.728 62.607L128 128l-65.393-18.165L0 47.35l1.695-26.157L21.192 1.816Zm24.22 21.435L97.12 74.838c4.279.081 6.418-1.736 6.418-5.45 0-.645-.08-1.372-.242-2.179L46.865 10.778 45.412 23.25Zm39.477 70.357c2.18 0 4.158-.888 5.934-2.664 1.776-1.776 2.664-3.754 2.664-5.934 0-.968-.202-2.018-.605-3.148L42.02 30.88 30.88 42.02l50.86 50.983c1.131.403 2.18.605 3.15.605ZM20.223 20.223a16.223 16.223 0 0 1 2.786-2.422 11.587 11.587 0 0 1 3.027-1.453c.888-.242 1.655-.363 2.3-.363.889 0 1.656.242 2.302.726.484.566.726 1.292.726 2.18 0 .646-.161 1.413-.484 2.301a20.86 20.86 0 0 1-1.453 3.027 10.574 10.574 0 0 1-2.422 2.907c-.888.969-1.817 1.776-2.786 2.422A11.587 11.587 0 0 1 21.192 31c-.969.242-1.736.363-2.3.363-.889 0-1.656-.242-2.302-.726-.403-.404-.605-1.13-.605-2.18 0-.727.121-1.534.363-2.422a9.816 9.816 0 0 1 1.453-2.906 13.637 13.637 0 0 1 2.422-2.907Zm3.028 25.31-12.473 1.332 56.431 56.552c.727.081 1.413.121 2.059.121 3.713 0 5.53-2.14 5.45-6.418L23.25 45.533Z"}))},2529:e=>{var i={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"RecipeTagFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"RecipeTag"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"ndbId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"public"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"recipesCount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"recipeTagId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"slug"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"updatedAt"},arguments:[],directives:[]}]}}],loc:{start:0,end:116}};i.loc.source={body:"fragment RecipeTagFragment on RecipeTag {\n name\n ndbId\n public\n recipesCount\n recipeTagId\n slug\n updatedAt\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};var n={};function a(e,i){for(var n=0;n<e.definitions.length;n++){var a=e.definitions[n];if(a.name&&a.name.value==i)return a}}i.definitions.forEach(function(e){if(e.name){var i=new Set;!function e(i,n){if("FragmentSpread"===i.kind)n.add(i.name.value);else if("VariableDefinition"===i.kind){var a=i.type;"NamedType"===a.kind&&n.add(a.name.value)}i.selectionSet&&i.selectionSet.selections.forEach(function(i){e(i,n)}),i.variableDefinitions&&i.variableDefinitions.forEach(function(i){e(i,n)}),i.definitions&&i.definitions.forEach(function(i){e(i,n)})}(e,i),n[e.name.value]=i}}),e.exports=i,e.exports.RecipeTagFragment=function(e,i){var t={kind:e.kind,definitions:[a(e,i)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var d=n[i]||new Set,r=new Set,s=new Set;for(d.forEach(function(e){s.add(e)});s.size>0;){var l=s;s=new Set,l.forEach(function(e){r.has(e)||(r.add(e),(n[e]||new Set).forEach(function(e){s.add(e)}))})}return r.forEach(function(i){var n=a(e,i);n&&t.definitions.push(n)}),t}(i,"RecipeTagFragment")},13121:(e,i,n)=>{"use strict";n.d(i,{A:()=>d}),n(14232);var a=n(80958),t=n(37876);let d=(0,a.A)("Check",(0,t.jsx)("polyline",{points:"22,62 51.3,90.5 106,33.5"}))},25066:(e,i,n)=>{"use strict";n.d(i,{A:()=>_});var a=n(47091),t=n.n(a),d=n(14232),r=n(58103),s=n.n(r),l=n(13121),o=n(26646),c=n(2286),m=n(66125),u=n(91906),f=n.n(u),p=n(68356),k=n.n(p),v=n(91715),g=n.n(v),b=n(64177),h=n(89099);let N=[".RecipeTagButton.jsx-2250258087{--selectedTag:#666;--unselectedTag:#fff;}"];N.__hash="2250258087";var x=n(24020),S=n(13115);let T=[".RecipeTagButton__wrap--isTagPage.jsx-1590311558{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;
1-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;width:calc(100vw - 3rem);max-width:100%;margin-top:1rem;}",".RecipeTagButton.jsx-1590311558{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;padding:0.25rem 0.375rem;background-color:var(--unselectedTag,#fff);color:var(--selectedTag,#666);font-size:0.75rem;font-weight:600;-webkit-letter-spacing:0.02em;-moz-letter-spacing:0.02em;-ms-letter-spacing:0.02em;letter-spacing:0.02em;text-transform:uppercase;cursor:pointer;}",".RecipeTagButton--isSelected.jsx-1590311558{background-color:var(--selectedTag,#666);color:#fff;}",".RecipeTagButton__icon.jsx-1590311558{margin-left:0.25rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;height:0.875rem;width:0.875rem;border-radius:50%;background-color:var(--selectedTag,#666);color:var(--unselectedTag,#fff);font-size:0.8em;}",".RecipeTagButton--isSelected.jsx-1590311558 .RecipeTagButton__icon.jsx-1590311558{background-color:transparent;font-size:1rem;}",".RecipeTagNameForm__fields.jsx-1590311558{padding:0;border:none;}",`.RecipeTagNameForm__input.jsx-1590311558{line-height:1.8;border:none;background-color:${x.e[0]};padding:0.25rem 0.5rem;
1min-width:200px;}`,".RecipeTagNameForm__button.jsx-1590311558{line-height:1.8;color:#fff;background-color:#000;padding:0.25rem 0.5rem;}",".RecipeTagEditButtons.jsx-1590311558{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;width:100%;margin-top:0.5rem;}",`.RecipeTagEditButtons.jsx-1590311558 button.jsx-1590311558{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding-left:0.5rem;padding-right:0.5rem;gap:0.35rem;color:${x.e[6]};}`,`@media screen and ${S.tz}{.RecipeTagButton__wrap--isTagPage.jsx-1590311558{width:auto;margin-top:0;}}`];T.__hash="1590311558";var y=n(37876);let _=function({hasIcons:e=!1,isDisabled:i=!1,isLoading:n=!1,isSelected:a,isTagPage:r=!1,onClick:u,tagName:p,public:v=!1,recipeTagId:x=""}){let S=(0,h.useRouter)(),[_,w]=d.useState(!1),[F,j]=d.useState(p),[R,{loading:D}]=(0,b.n)(f(),{refetchQueries:[{query:g(),variables:{recipeTagId:x}}]}),[E,{loading:$}]=(0,b.n)(k()),I=D||$;return(0,y.jsxs)("div",{className:`jsx-${T.__hash} jsx-${N.__hash} `+(s()("RecipeTagButton__wrap",{"RecipeTagButton__wrap__wrap--isTagPage":r})||""),children:[!_&&(0,y.jsxs)("button",{type:"button",disabled:i,onClick:u,"data-testid":"RecipeTagButton",className:`jsx-${T.__hash} jsx-${N.__hash} `+(s()("RecipeTagButton",{"RecipeTagButton--isSelected":a})||""),children:[(0,y.jsx)("span",{dangerouslySetInnerHTML:{__html:n?"...":F},className:`jsx-${T.__hash} jsx-${N.__hash}`}),e&&(0,y.jsx)("span",{"data-testid":"RecipeTagButton__icon",className:`jsx-${T.__hash} jsx-${N.__hash} RecipeTagButton__icon`,children:a?(0,y.jsx)(l.A,{}):(0,y.jsx)(o.A,{})})]}),_&&(0,y.jsx)("form",{onSubmit:function(e){e.preventDefault();let i=new FormData(e.target).get("tagName");i&&i.trim()?R({variables:{tagId:x,public:v,name:i.trim().toLowerCase()}}).catch(e=>{console.log(e.message)}).finally(()=>{w(!1),j(i)}):w(!1)},"data-testid":"RecipeTagNameForm",className:`jsx-${T.__hash} jsx-${N.__hash} RecipeTagNameForm`,children:(0,y.jsxs)("fieldset",{disabled:I,className:`jsx-${T.__hash} jsx-${N.__hash} RecipeTagNameForm__fields`,children:[(0,y.jsx)("input",{type:"text",name:"tagName",defaultValue:F||"",disabled:n,"data-testid":"RecipeTagNameForm__input",className:`jsx-${T.__hash} jsx-${N.__hash} RecipeTagNameForm__input`}),(0,y.jsx)("button",{type:"submit",className:`jsx-${T.__hash} jsx-${N.__hash} RecipeTagNameForm__button`,children:"Save"})]})}),r&&(0,y.jsxs)("div",{"data-testid":"RecipeTagEditButtons",className:`jsx-${T.__hash} jsx-${N.__hash} RecipeTagEditButtons`,children:[(0,y.jsxs)("button",{type:"button",onClick:()=>w(!_),"data-testid":"RecipeTagButton__editButton",disabled:I,className:`jsx-${T.__hash} jsx-${N.__hash}`,children:[(0,y.jsx)(c.Ay,{})," Edit"]}),(0,y.jsxs)("button",{type:"button","data-testid":"RecipeTagButton__deleteButton",disabled:I,onClick:()=>{window.confirm(`Are you sure you want to delete the "${p}" tag? (Your recipes will remain)`)&&E({variables:{id:x}}).then(()=>{S.push("/account/recipe-box/all-my-recipes")}).catch(e=>{console.error(e.message)})},className:`jsx-${T.__hash} jsx-${N.__hash}`,children:[(0,y.jsx)(m.Ay,{})," Delete"]})]}),(0,y.jsx)(t(),{id:T.__hash,children:T}),(0,y.jsx)(t(),{id:N.__hash,children:N})]})}},68356:e=>{var i={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"deleteRecipeTag"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"deleteRecipeTag"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"recipeTagId"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}}]}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"status"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:103}};i.loc.source={body:"mutation deleteRecipeTag($id: ID!) {\n deleteRecipeTag(input: { recipeTagId: $id }
1) {\n status\n }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};var n={};function a(e,i){for(var n=0;n<e.definitions.length;n++){var a=e.definitions[n];if(a.name&&a.name.value==i)return a}}i.definitions.forEach(function(e){if(e.name){var i=new Set;!function e(i,n){if("FragmentSpread"===i.kind)n.add(i.name.value);else if("VariableDefinition"===i.kind){var a=i.type;"NamedType"===a.kind&&n.add(a.name.value)}i.selectionSet&&i.selectionSet.selections.forEach(function(i){e(i,n)}),i.variableDefinitions&&i.variableDefinitions.forEach(function(i){e(i,n)}),i.definitions&&i.definitions.forEach(function(i){e(i,n)})}(e,i),n[e.name.value]=i}}),e.exports=i,e.exports.deleteRecipeTag=function(e,i){var t={kind:e.kind,definitions:[a(e,i)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var d=n[i]||new Set,r=new Set,s=new Set;for(d.forEach(function(e){s.add(e)});s.size>0;){var l=s;s=new Set,l.forEach(function(e){r.has(e)||(r.add(e),(n[e]||new Set).forEach(function(e){s.add(e)}))})}return r.forEach(function(i){var n=a(e,i);n&&t.definitions.push(n)}),t}(i,"deleteRecipeTag")},72818:(e,i,n)=>{var a={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"createRecipeTags"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"CreateRecipeTagsInput"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"createRecipeTags"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"recipeTags"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"RecipeTagFragment"},directives:[]}]}}]}}]}}],loc:{start:0,end:193}};a.loc.source={body:'#import "./fragments/RecipeTag.graphql"\n\nmutation createRecipeTags($input: CreateRecipeTagsInput!) {\n createRecipeTags(input: $input) {\n recipeTags {\n ...RecipeTagFragment\n }\n }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var t={};a.definitions=a.definitions.concat(n(2529).definitions.filter(function(e){if("FragmentDefinition"!==e.kind)return!0;var i=e.name.value;return!t[i]&&(t[i]=!0,!0)}));var d={};function r(e,i){for(var n=0;n<e.definitions.length;n++){var a=e.definitions[n];if(a.name&&a.name.value==i)return a}}a.definitions.forEach(function(e){if(e.name){var i=new Set;!function e(i,n){if("FragmentSpread"===i.kind)n.add(i.name.value);else if("VariableDefinition"===i.kind){var a=i.type;"NamedType"===a.kind&&n.add(a.name.value)}i.selectionSet&&i.selectionSet.selections.forEach(function(i){e(i,n)}),i.variableDefinitions&&i.variableDefinitions.forEach(function(i){e(i,n)}),i.definitions&&i.definitions.forEach(function(i){e(i,n)})}(e,i),d[e.name.value]=i}}),e.exports=a,e.exports.createRecipeTags=function(e,i){var n={kind:e.kind,definitions:[r(e,i)]};e.hasOwnProperty("loc")&&(n.loc=e.loc);var a=d[i]||new Set,t=new Set,s=new Set;for(a.forEach(function(e){s.add(e)});s.size>0;){var l=s;s=new Set,l.forEach(function(e){t.has(e)||(t.add(e),(d[e]||new Set).forEach(function(e){s.add(e)}))})}return t.forEach(function(i){var a=r(e,i);a&&n.definitions.push(a)}),n}(a,"createRecipeTags")},81256:e=>{var i={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"getUserDataSummary"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getUserDataSummary"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"ratedResources"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"ratedId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"ratedType"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"rating"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"updatedAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"createdAt"},arguments:[],directives:[]}]}}]}}]}}],loc:{start:0,end:158}};i.loc.source={body:"query getUserDataSummary {\n getUserDataSummary {\n ratedResources {\n ratedId\n ratedType\n rating\n updatedAt\n createdAt\n }\n }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};var n={};function a(e,i){for(var n=0;n<e.definitions.length;n++){var a=e.definitions[n];if(a.name&&a.name.value==i)return a}}i.definitions.forEach(function(e){if(e.name){var i=new Set;
1!function e(i,n){if("FragmentSpread"===i.kind)n.add(i.name.value);else if("VariableDefinition"===i.kind){var a=i.type;"NamedType"===a.kind&&n.add(a.name.value)}i.selectionSet&&i.selectionSet.selections.forEach(function(i){e(i,n)}),i.variableDefinitions&&i.variableDefinitions.forEach(function(i){e(i,n)}),i.definitions&&i.definitions.forEach(function(i){e(i,n)})}(e,i),n[e.name.value]=i}}),e.exports=i,e.exports.getUserDataSummary=function(e,i){var t={kind:e.kind,definitions:[a(e,i)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var d=n[i]||new Set,r=new Set,s=new Set;for(d.forEach(function(e){s.add(e)});s.size>0;){var l=s;s=new Set,l.forEach(function(e){r.has(e)||(r.add(e),(n[e]||new Set).forEach(function(e){s.add(e)}))})}return r.forEach(function(i){var n=a(e,i);n&&t.definitions.push(n)}),t}(i,"getUserDataSummary")},91715:(e,i,n)=>{var a={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"recipeTag"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"recipeTagId"}},type:{kind:"NamedType",name:{kind:"Name",value:"ID"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"recipeTags"}},type:{kind:"ListType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"page"}},type:{kind:"NamedType",name:{kind:"Name",value:"Int"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"limit"}},type:{kind:"NamedType",name:{kind:"Name",value:"Int"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"isExternal"}},type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"recipeTag"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"tagId"},value:{kind:"Variable",name:{kind:"Name",value:"recipeTagId"}}},{kind:"ObjectField",name:{kind:"Name",value:"tagsIds"},value:{kind:"Variable",name:{kind:"Name",value:"recipeTags"}}}]}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"recipeTagId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"slug"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"updatedAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"public"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"recipes"},arguments:[{kind:"Argument",name:{kind:"Name",value:"page"},value:{kind:"Variable",name:{kind:"Name",value:"page"}}},{kind:"Argument",name:{kind:"Name",value:"limit"},value:{kind:"Variable",name:{kind:"Name",value:"limit"}}},{kind:"Argument",name:{kind:"Name",value:"isExternal"},value:{kind:"Variable",name:{kind:"Name",value:"isExternal"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"page"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"totalCount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"totalPages"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"userRecipes"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"UserRecipeAggregatedFragment"},directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"userProfile"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"atid"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"avatarUrl"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"username"},arguments:[],directives:[]}]}}]}}]}}],loc:{start:0,end:547}};a.loc.source={body:'#import "./fragments/UserRecipeAggregated.graphql"\n\nquery recipeTag(\n $recipeTagId: ID\n $recipeTags: [ID]\n $page: Int\n $limit: Int\n $isExternal: Boolean\n) {\n recipeTag(input: { tagId: $recipeTagId, tagsIds: $recipeTags }) {\n recipeTagId\n name\n slug\n updatedAt\n public\n recipes(page: $page, limit: $limit, isExternal: $isExternal) {\n page\n totalCount\n totalPages\n userRecipes {\n ...UserRecipeAggregatedFragment\n }\n }\n userProfile {\n atid\n avatarUrl\n username\n }\n }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var t={};a.definitions=a.definitions.concat(n(15945).definitions.filter(function(e){if("FragmentDefinition"!==e.kind)return!0;var i=e.name.value;return!t[i]&&(t[i]=!0,!0)}));var d={};function r(e,i){for(var n=0;n<e.definitions.length;n++){var a=e.definitions[n];if(a.name&&a.name.value==i)return a}}a.definitions.forEach(function(e){if(e.name){var i=new Set;
1!function e(i,n){if("FragmentSpread"===i.kind)n.add(i.name.value);else if("VariableDefinition"===i.kind){var a=i.type;"NamedType"===a.kind&&n.add(a.name.value)}i.selectionSet&&i.selectionSet.selections.forEach(function(i){e(i,n)}),i.variableDefinitions&&i.variableDefinitions.forEach(function(i){e(i,n)}),i.definitions&&i.definitions.forEach(function(i){e(i,n)})}(e,i),d[e.name.value]=i}}),e.exports=a,e.exports.recipeTag=function(e,i){var n={kind:e.kind,definitions:[r(e,i)]};e.hasOwnProperty("loc")&&(n.loc=e.loc);var a=d[i]||new Set,t=new Set,s=new Set;for(a.forEach(function(e){s.add(e)});s.size>0;){var l=s;s=new Set,l.forEach(function(e){t.has(e)||(t.add(e),(d[e]||new Set).forEach(function(e){s.add(e)}))})}return t.forEach(function(i){var a=r(e,i);a&&n.definitions.push(a)}),n}(a,"recipeTag")},91906:(e,i,n)=>{var a={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"updateRecipeTag"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"tagId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"public"}},type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"name"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"updateRecipeTag"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"recipeTagId"},value:{kind:"Variable",name:{kind:"Name",value:"tagId"}}},{kind:"ObjectField",name:{kind:"Name",value:"public"},value:{kind:"Variable",name:{kind:"Name",value:"public"}}},{kind:"ObjectField",name:{kind:"Name",value:"name"},value:{kind:"Variable",name:{kind:"Name",value:"name"}}}]}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"recipeTag"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"RecipeTagFragment"},directives:[]}]}}]}}]}}],loc:{start:0,end:259}};a.loc.source={body:'#import "./fragments/RecipeTag.graphql"\n\nmutation updateRecipeTag($tagId: ID!, $public: Boolean, $name: String) {\n updateRecipeTag(\n input: { recipeTagId: $tagId, public: $public, name: $name }\n ) {\n recipeTag {\n ...RecipeTagFragment\n }\n }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var t={};a.definitions=a.definitions.concat(n(2529).definitions.filter(function(e){if("FragmentDefinition"!==e.kind)return!0;var i=e.name.value;return!t[i]&&(t[i]=!0,!0)}));var d={};function r(e,i){for(var n=0;n<e.definitions.length;n++){var a=e.definitions[n];if(a.name&&a.name.value==i)return a}}a.definitions.forEach(function(e){if(e.name){var i=new Set;!function e(i,n){if("FragmentSpread"===i.kind)n.add(i.name.value);else if("VariableDefinition"===i.kind){var a=i.type;"NamedType"===a.kind&&n.add(a.name.value)}i.selectionSet&&i.selectionSet.selections.forEach(function(i){e(i,n)}),i.variableDefinitions&&i.variableDefinitions.forEach(function(i){e(i,n)}),i.definitions&&i.definitions.forEach(function(i){e(i,n)})}(e,i),d[e.name.value]=i}}),e.exports=a,e.exports.updateRecipeTag=function(e,i){var n={kind:e.kind,definitions:[r(e,i)]};e.hasOwnProperty("loc")&&(n.loc=e.loc);var a=d[i]||new Set,t=new Set,s=new Set;for(a.forEach(function(e){s.add(e)});s.size>0;){var l=s;s=new Set,l.forEach(function(e){t.has(e)||(t.add(e),(d[e]||new Set).forEach(function(e){s.add(e)}))})}return t.forEach(function(i){var a=r(e,i);a&&n.definitions.push(a)}),n}(a,"updateRecipeTag")}}]);
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.