PageSourceSearch

https://www.visittri-cities.com/dist/scripts/SaveButton.eae5e73dd248287da3c5.min.js

js visittri-cities.com collected 2026-10-03 23:57:50 UTC 1,971 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[8180],{1831:function(e,a,t){t.r(a),t.d(a,{default:function(){return u}});var r=t(6252),n=t(3577),i=["data-href","aria-label","data-entry-id","data-type","data-text-before","data-text-after"],o=(0,r._)("svg",{class:"icon icon-heart-outline","aria-label":"save icon",role:"img"},[(0,r._)("use",{href:"#heart-outline"})],-1),d=(0,r._)("svg",{class:"icon icon-heart","aria-label":"save icon",role:"img"},[(0,r._)("use",{href:"#heart"})],-1),s=["textContent"];var l=t(9713),v=t.n(l),c={mixins:[],props:{entryId:{type:[String,Number],default:null},type:{type:String,default:"itinerary"}},data:function(){return{isSaved:!1,saveLabel:"Save",saveAriaLabel:"Save to your saved items",removeLabel:"Saved",removeAriaLabel:"Saved to your saved items"}},methods:{checkIfIsSaved:function(){var e,a=this;fetch(window.itineraryCheckUrl,{method:"POST",body:JSON.stringify((e={},v()(e,window.csrfTokenName,window.csrfTokenValue),v()(e,"entry_id",this.entryId),e)),headers:{"Content-Type":"application/json"}}).then((function(e){return e.json()})).then((function(e){a.isSaved=(null==e?void 0:e.exists)||!1})).catch((function(e){console.error(e)}))}},computed:{itineraryAddUrl:function(){return window.itineraryAddUrl},itineraryRemoveUrl:function(){return window.itineraryRemoveUrl}},created:function(){this.checkIfIsSaved()}};var u=(0,t(3744).Z)(c,[["render",function(e,a,t,l,v,c){return(0,r.wg)(),(0,r.iD)("button",{class:"icon-button bg--dark-primary hover-label",type:"button","data-href":v.isSaved?c.itineraryRemoveUrl:c.itineraryAddUrl,"aria-label":v.isSaved?v.removeAriaLabel:v.saveAriaLabel,"data-entry-id":t.entryId,"data-type":t.type,"data-text-before":v.isSaved?v.removeLabel:v.saveLabel,"data-text-after":v.isSaved?v.saveLabel:v.removeLabel,"data-save-btn":""},[o,d,(0,r._)("span",{class:"hover-label__label","data-saved-item-text":"",textContent:(0,n.zw)(v.isSaved?v.removeLabel:v.saveLabel)},null,8,s)],8,i)}]])}}]);

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.